blob: f8a60e1625dc3c1a988b189f2c352cdd338e71d2 [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.
drh92f76572012-12-13 18:51:53 +00003# Generated by GNU Autoconf 2.62 for sqlite 3.7.16.
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,
drh710658c2012-01-16 13:00:05 +00006# 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.
drh710658c2012-01-16 13:00:05 +00009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000012
drh8b727472009-01-19 18:18:40 +000013# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
drh710658c2012-01-16 13:00:05 +000015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
a.rottmann84e63352003-03-24 09:42:16 +000016 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
drh710658c2012-01-16 13:00:05 +000023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
drh8b727472009-01-19 18:18:40 +000025esac
drh710658c2012-01-16 13:00:05 +000026
a.rottmann84e63352003-03-24 09:42:16 +000027fi
drh8b727472009-01-19 18:18:40 +000028
29
drh710658c2012-01-16 13:00:05 +000030
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
drh8b727472009-01-19 18:18:40 +000040as_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
drh710658c2012-01-16 13:00:05 +000047if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000048 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;
drh710658c2012-01-16 13:00:05 +000058 case $arg in
drh8b727472009-01-19 18:18:40 +000059 *"$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
drh710658c2012-01-16 13:00:05 +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
87
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.
drh710658c2012-01-16 13:00:05 +000097case $0 in
drh8b727472009-01-19 18:18:40 +000098 *[\\/]* ) 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=.
drh710658c2012-01-16 13:00:05 +0000104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
drh8b727472009-01-19 18:18:40 +0000106IFS=$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
drh710658c2012-01-16 13:00:05 +0000117 { (exit 1); exit 1; }
drh8b727472009-01-19 18:18:40 +0000118fi
119
drh710658c2012-01-16 13:00:05 +0000120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
drh8b727472009-01-19 18:18:40 +0000123done
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
drh710658c2012-01-16 13:00:05 +0000134# 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
drh710658c2012-01-16 13:00:05 +0000149# 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
drh710658c2012-01-16 13:00:05 +0000169# CDPATH.
170$as_unset CDPATH
mlcreech94984912008-03-04 19:03:08 +0000171
172
drh710658c2012-01-16 13:00:05 +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
178fi
179
180 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}
196
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
204
205if 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=
240 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=.
245 case $as_dir in
246 /*)
247 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(
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 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" || {
447
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
450 # 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.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
drh8b727472009-01-19 18:18:40 +0000458 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" ||
drh710658c2012-01-16 13:00:05 +0000474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
a.rottmann84e63352003-03-24 09:42:16 +0000476
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
drh710658c2012-01-16 13:00:05 +0000485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
drh8b727472009-01-19 18:18:40 +0000492ECHO_C= ECHO_N= ECHO_T=
drh710658c2012-01-16 13:00:05 +0000493case `echo -n x` in
drh8b727472009-01-19 18:18:40 +0000494-n*)
drh710658c2012-01-16 13:00:05 +0000495 case `echo 'x\c'` in
drh8b727472009-01-19 18:18:40 +0000496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drh710658c2012-01-16 13:00:05 +0000497 *) ECHO_C='\c';;
drh8b727472009-01-19 18:18:40 +0000498 esac;;
499*)
500 ECHO_N='-n';;
501esac
drh710658c2012-01-16 13:00:05 +0000502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505else
506 as_expr=false
507fi
a.rottmann84e63352003-03-24 09:42:16 +0000508
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
drh710658c2012-01-16 13:00:05 +0000537 as_mkdir_p=:
a.rottmann84e63352003-03-24 09:42:16 +0000538else
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
drh710658c2012-01-16 13:00:05 +0000556 case $1 in
drh8b727472009-01-19 18:18:40 +0000557 -*)set "./$1";;
558 esac;
drh710658c2012-01-16 13:00:05 +0000559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
drh8b727472009-01-19 18:18:40 +0000560 ???[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
drh710658c2012-01-16 13:00:05 +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
drh710658c2012-01-16 13:00:05 +0000723exec 7<&0 </dev/null 6>&1
drh8b727472009-01-19 18:18:40 +0000724
drh71eb93e2001-09-28 01:34:43 +0000725# Name of the host.
drh710658c2012-01-16 13:00:05 +0000726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
drh71eb93e2001-09-28 01:34:43 +0000727# 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=
drh710658c2012-01-16 13:00:05 +0000741SHELL=${CONFIG_SHELL-/bin/sh}
drh71eb93e2001-09-28 01:34:43 +0000742
a.rottmann84e63352003-03-24 09:42:16 +0000743# Identity of this package.
mlcreechb87057f2008-03-06 07:19:20 +0000744PACKAGE_NAME='sqlite'
745PACKAGE_TARNAME='sqlite'
drh92f76572012-12-13 18:51:53 +0000746PACKAGE_VERSION='3.7.16'
747PACKAGE_STRING='sqlite 3.7.16'
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
drh710658c2012-01-16 13:00:05 +0000786ac_subst_vars='SHELL
dana9f39fd2011-08-12 16:34:42 +0000787PATH_SEPARATOR
drh710658c2012-01-16 13:00:05 +0000788PACKAGE_NAME
789PACKAGE_TARNAME
790PACKAGE_VERSION
791PACKAGE_STRING
792PACKAGE_BUGREPORT
793exec_prefix
794prefix
795program_transform_name
796bindir
797sbindir
798libexecdir
799datarootdir
800datadir
801sysconfdir
802sharedstatedir
803localstatedir
804includedir
805oldincludedir
806docdir
807infodir
808htmldir
809dvidir
810pdfdir
811psdir
812libdir
813localedir
814mandir
815DEFS
816ECHO_C
817ECHO_N
818ECHO_T
819LIBS
820build_alias
821host_alias
822target_alias
823LIBTOOL
824build
825build_cpu
826build_vendor
827build_os
828host
829host_cpu
830host_vendor
831host_os
832CC
833CFLAGS
834LDFLAGS
835CPPFLAGS
836ac_ct_CC
837EXEEXT
838OBJEXT
839SED
840GREP
841EGREP
842FGREP
843LD
844DUMPBIN
845ac_ct_DUMPBIN
846NM
847LN_S
848OBJDUMP
849AR
850STRIP
851RANLIB
852lt_ECHO
853DSYMUTIL
854NMEDIT
855LIPO
856OTOOL
857OTOOL64
858CPP
859INSTALL_PROGRAM
860INSTALL_SCRIPT
861INSTALL_DATA
862AWK
863TCLSH_CMD
864TCLLIBDIR
865program_prefix
866VERSION
867RELEASE
868VERSION_NUMBER
869BUILD_CC
870SQLITE_THREADSAFE
871XTHREADCONNECT
872ALLOWRELEASE
873TEMP_STORE
874BUILD_EXEEXT
875SQLITE_OS_UNIX
876SQLITE_OS_WIN
877SQLITE_OS_OS2
878TARGET_EXEEXT
879TCL_VERSION
880TCL_BIN_DIR
881TCL_SRC_DIR
drh710658c2012-01-16 13:00:05 +0000882TCL_INCLUDE_SPEC
883TCL_LIB_FILE
884TCL_LIB_FLAG
885TCL_LIB_SPEC
886TCL_STUB_LIB_FILE
887TCL_STUB_LIB_FLAG
888TCL_STUB_LIB_SPEC
889HAVE_TCL
890TARGET_READLINE_LIBS
891TARGET_READLINE_INC
892TARGET_HAVE_READLINE
893TARGET_DEBUG
894USE_AMALGAMATION
895OPT_FEATURE_FLAGS
896USE_GCOV
897BUILD_CFLAGS
898LIBOBJS
899LTLIBOBJS'
a.rottmann84e63352003-03-24 09:42:16 +0000900ac_subst_files=''
drh8b727472009-01-19 18:18:40 +0000901ac_user_opts='
902enable_option_checking
903enable_shared
904enable_static
905with_pic
906enable_fast_install
907with_gnu_ld
908enable_libtool_lock
909enable_largefile
910with_hints
911enable_threadsafe
912enable_cross_thread_connections
drh8b727472009-01-19 18:18:40 +0000913enable_releasemode
914enable_tempstore
915enable_tcl
916with_tcl
917enable_readline
918with_readline_lib
919with_readline_inc
920enable_debug
921enable_amalgamation
922enable_load_extension
923enable_gcov
924'
925 ac_precious_vars='build_alias
926host_alias
927target_alias
928CC
929CFLAGS
930LDFLAGS
931LIBS
932CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000933CPP
934TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000935
drh75897232000-05-29 14:26:00 +0000936
937# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000938ac_init_help=
939ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000940ac_unrecognized_opts=
941ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000942# The variables have the same names as the options, with
943# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000944cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000945exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000946no_create=
drh75897232000-05-29 14:26:00 +0000947no_recursion=
948prefix=NONE
949program_prefix=NONE
950program_suffix=NONE
951program_transform_name=s,x,x,
952silent=
953site=
954srcdir=
drh75897232000-05-29 14:26:00 +0000955verbose=
956x_includes=NONE
957x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000958
959# Installation directory options.
960# These are left unexpanded so users can "make install exec_prefix=/foo"
961# and all the variables that are supposed to be based on exec_prefix
962# by default will actually change.
963# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000964# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000965bindir='${exec_prefix}/bin'
966sbindir='${exec_prefix}/sbin'
967libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000968datarootdir='${prefix}/share'
969datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000970sysconfdir='${prefix}/etc'
971sharedstatedir='${prefix}/com'
972localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000973includedir='${prefix}/include'
974oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000975docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976infodir='${datarootdir}/info'
977htmldir='${docdir}'
978dvidir='${docdir}'
979pdfdir='${docdir}'
980psdir='${docdir}'
981libdir='${exec_prefix}/lib'
982localedir='${datarootdir}/locale'
983mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000984
drh75897232000-05-29 14:26:00 +0000985ac_prev=
drh8b727472009-01-19 18:18:40 +0000986ac_dashdash=
drh75897232000-05-29 14:26:00 +0000987for ac_option
988do
drh75897232000-05-29 14:26:00 +0000989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000991 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000992 ac_prev=
993 continue
994 fi
995
drh8b727472009-01-19 18:18:40 +0000996 case $ac_option in
drh710658c2012-01-16 13:00:05 +0000997 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998 *) ac_optarg=yes ;;
drh8b727472009-01-19 18:18:40 +0000999 esac
drh75897232000-05-29 14:26:00 +00001000
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1002
drh8b727472009-01-19 18:18:40 +00001003 case $ac_dashdash$ac_option in
1004 --)
1005 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +00001006
1007 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008 ac_prev=bindir ;;
1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +00001010 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001011
1012 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001013 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001014 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001015 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001016
1017 -cache-file | --cache-file | --cache-fil | --cache-fi \
1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019 ac_prev=cache_file ;;
1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001022 cache_file=$ac_optarg ;;
1023
1024 --config-cache | -C)
1025 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001026
drh8b727472009-01-19 18:18:40 +00001027 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001028 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001029 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001030 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001031
drh8b727472009-01-19 18:18:40 +00001032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033 | --dataroo | --dataro | --datar)
1034 ac_prev=datarootdir ;;
1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037 datarootdir=$ac_optarg ;;
1038
drh75897232000-05-29 14:26:00 +00001039 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001040 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001041 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drh710658c2012-01-16 13:00:05 +00001043 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1044 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1048 *"
1049"enable_$ac_useropt"
1050"*) ;;
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1053 esac
1054 eval enable_$ac_useropt=no ;;
1055
1056 -docdir | --docdir | --docdi | --doc | --do)
1057 ac_prev=docdir ;;
1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059 docdir=$ac_optarg ;;
1060
1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062 ac_prev=dvidir ;;
1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001065
1066 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001067 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001068 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drh710658c2012-01-16 13:00:05 +00001070 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1071 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1075 *"
1076"enable_$ac_useropt"
1077"*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001080 esac
drh8b727472009-01-19 18:18:40 +00001081 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001082
1083 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085 | --exec | --exe | --ex)
1086 ac_prev=exec_prefix ;;
1087 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001090 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001091
1092 -gas | --gas | --ga | --g)
1093 # Obsolete; use --with-gas.
1094 with_gas=yes ;;
1095
drh71eb93e2001-09-28 01:34:43 +00001096 -help | --help | --hel | --he | -h)
1097 ac_init_help=long ;;
1098 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099 ac_init_help=recursive ;;
1100 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001102
1103 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001104 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001105 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001106 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001107
drh8b727472009-01-19 18:18:40 +00001108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109 ac_prev=htmldir ;;
1110 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111 | --ht=*)
1112 htmldir=$ac_optarg ;;
1113
drh75897232000-05-29 14:26:00 +00001114 -includedir | --includedir | --includedi | --included | --include \
1115 | --includ | --inclu | --incl | --inc)
1116 ac_prev=includedir ;;
1117 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001119 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001120
1121 -infodir | --infodir | --infodi | --infod | --info | --inf)
1122 ac_prev=infodir ;;
1123 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001124 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001125
1126 -libdir | --libdir | --libdi | --libd)
1127 ac_prev=libdir ;;
1128 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001129 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001130
1131 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132 | --libexe | --libex | --libe)
1133 ac_prev=libexecdir ;;
1134 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001136 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001137
drh8b727472009-01-19 18:18:40 +00001138 -localedir | --localedir | --localedi | --localed | --locale)
1139 ac_prev=localedir ;;
1140 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141 localedir=$ac_optarg ;;
1142
drh75897232000-05-29 14:26:00 +00001143 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001144 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001145 ac_prev=localstatedir ;;
1146 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001147 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001148 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001149
1150 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151 ac_prev=mandir ;;
1152 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001153 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001154
1155 -nfp | --nfp | --nf)
1156 # Obsolete; use --without-fp.
1157 with_fp=no ;;
1158
1159 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001160 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001161 no_create=yes ;;
1162
1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165 no_recursion=yes ;;
1166
1167 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169 | --oldin | --oldi | --old | --ol | --o)
1170 ac_prev=oldincludedir ;;
1171 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001174 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001175
1176 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177 ac_prev=prefix ;;
1178 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001179 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001180
1181 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182 | --program-pre | --program-pr | --program-p)
1183 ac_prev=program_prefix ;;
1184 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001186 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001187
1188 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189 | --program-suf | --program-su | --program-s)
1190 ac_prev=program_suffix ;;
1191 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001193 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001194
1195 -program-transform-name | --program-transform-name \
1196 | --program-transform-nam | --program-transform-na \
1197 | --program-transform-n | --program-transform- \
1198 | --program-transform | --program-transfor \
1199 | --program-transfo | --program-transf \
1200 | --program-trans | --program-tran \
1201 | --progr-tra | --program-tr | --program-t)
1202 ac_prev=program_transform_name ;;
1203 -program-transform-name=* | --program-transform-name=* \
1204 | --program-transform-nam=* | --program-transform-na=* \
1205 | --program-transform-n=* | --program-transform-=* \
1206 | --program-transform=* | --program-transfor=* \
1207 | --program-transfo=* | --program-transf=* \
1208 | --program-trans=* | --program-tran=* \
1209 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001210 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001211
drh8b727472009-01-19 18:18:40 +00001212 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213 ac_prev=pdfdir ;;
1214 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215 pdfdir=$ac_optarg ;;
1216
1217 -psdir | --psdir | --psdi | --psd | --ps)
1218 ac_prev=psdir ;;
1219 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220 psdir=$ac_optarg ;;
1221
drh75897232000-05-29 14:26:00 +00001222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1224 silent=yes ;;
1225
1226 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1227 ac_prev=sbindir ;;
1228 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1229 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001230 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001231
1232 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234 | --sharedst | --shareds | --shared | --share | --shar \
1235 | --sha | --sh)
1236 ac_prev=sharedstatedir ;;
1237 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1240 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001241 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001242
1243 -site | --site | --sit)
1244 ac_prev=site ;;
1245 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001246 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001247
1248 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1249 ac_prev=srcdir ;;
1250 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001251 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001252
1253 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254 | --syscon | --sysco | --sysc | --sys | --sy)
1255 ac_prev=sysconfdir ;;
1256 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001258 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001259
1260 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001261 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001262 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001263 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001264
1265 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266 verbose=yes ;;
1267
drh71eb93e2001-09-28 01:34:43 +00001268 -version | --version | --versio | --versi | --vers | -V)
1269 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001270
1271 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001272 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001273 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drh710658c2012-01-16 13:00:05 +00001275 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1276 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001277 ac_useropt_orig=$ac_useropt
1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1280 *"
1281"with_$ac_useropt"
1282"*) ;;
1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001285 esac
drh8b727472009-01-19 18:18:40 +00001286 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001287
1288 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001289 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001290 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drh710658c2012-01-16 13:00:05 +00001292 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1293 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1297 *"
1298"with_$ac_useropt"
1299"*) ;;
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001304
1305 --x)
1306 # Obsolete; use --with-x.
1307 with_x=yes ;;
1308
1309 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310 | --x-incl | --x-inc | --x-in | --x-i)
1311 ac_prev=x_includes ;;
1312 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001314 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001315
1316 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318 ac_prev=x_libraries ;;
1319 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001321 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001322
drh710658c2012-01-16 13:00:05 +00001323 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1324Try \`$0 --help' for more information." >&2
1325 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001326 ;;
1327
drh71eb93e2001-09-28 01:34:43 +00001328 *=*)
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
drh710658c2012-01-16 13:00:05 +00001331 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1332 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1333 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001334 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001335 export $ac_envvar ;;
1336
drh75897232000-05-29 14:26:00 +00001337 *)
drh71eb93e2001-09-28 01:34:43 +00001338 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drh710658c2012-01-16 13:00:05 +00001342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +00001343 ;;
1344
1345 esac
1346done
1347
1348if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001349 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drh710658c2012-01-16 13:00:05 +00001350 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1351 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001352fi
1353
drh8b727472009-01-19 18:18:40 +00001354if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1356 no) ;;
drh710658c2012-01-16 13:00:05 +00001357 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1358 { (exit 1); exit 1; }; } ;;
1359 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001360 esac
drh8b727472009-01-19 18:18:40 +00001361fi
drh866108f2008-05-13 00:57:21 +00001362
drh8b727472009-01-19 18:18:40 +00001363# Check all directory arguments for consistency.
1364for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001368do
drh8b727472009-01-19 18:18:40 +00001369 eval ac_val=\$$ac_var
1370 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001371 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001372 */ )
1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001375 esac
drh8b727472009-01-19 18:18:40 +00001376 # Be sure to have absolute directory names.
1377 case $ac_val in
1378 [\\/$]* | ?:[\\/]* ) continue;;
1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380 esac
drh710658c2012-01-16 13:00:05 +00001381 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1382 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00001383done
drh75897232000-05-29 14:26:00 +00001384
drh71eb93e2001-09-28 01:34:43 +00001385# There might be people who depend on the old broken behavior: `$host'
1386# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001387# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001388build=$build_alias
1389host=$host_alias
1390target=$target_alias
drh75897232000-05-29 14:26:00 +00001391
a.rottmann84e63352003-03-24 09:42:16 +00001392# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001393if test "x$host_alias" != x; then
1394 if test "x$build_alias" = x; then
1395 cross_compiling=maybe
drh710658c2012-01-16 13:00:05 +00001396 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1397 If a cross compiler is detected then cross compile mode will be used." >&2
drh71eb93e2001-09-28 01:34:43 +00001398 elif test "x$build_alias" != "x$host_alias"; then
1399 cross_compiling=yes
1400 fi
1401fi
1402
1403ac_tool_prefix=
1404test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405
1406test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001407
a.rottmann84e63352003-03-24 09:42:16 +00001408
drh8b727472009-01-19 18:18:40 +00001409ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410ac_ls_di=`ls -di .` &&
1411ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drh710658c2012-01-16 13:00:05 +00001412 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1413 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001414test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
drh710658c2012-01-16 13:00:05 +00001415 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1416 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001417
1418
drh75897232000-05-29 14:26:00 +00001419# Find the source files, if location was not specified.
1420if test -z "$srcdir"; then
1421 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001422 # Try the directory containing this script, then the parent directory.
1423 ac_confdir=`$as_dirname -- "$as_myself" ||
1424$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425 X"$as_myself" : 'X\(//\)[^/]' \| \
1426 X"$as_myself" : 'X\(//\)$' \| \
1427 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428$as_echo X"$as_myself" |
1429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430 s//\1/
1431 q
1432 }
1433 /^X\(\/\/\)[^/].*/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\/\)$/{
1438 s//\1/
1439 q
1440 }
1441 /^X\(\/\).*/{
1442 s//\1/
1443 q
1444 }
1445 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001446 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001447 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001448 srcdir=..
1449 fi
1450else
1451 ac_srcdir_defaulted=no
1452fi
drh8b727472009-01-19 18:18:40 +00001453if test ! -r "$srcdir/$ac_unique_file"; then
1454 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
drh710658c2012-01-16 13:00:05 +00001455 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1456 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001457fi
drh8b727472009-01-19 18:18:40 +00001458ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459ac_abs_confdir=`(
drh710658c2012-01-16 13:00:05 +00001460 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1461 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001462 pwd)`
1463# When building in place, set srcdir=.
1464if test "$ac_abs_confdir" = "$ac_pwd"; then
1465 srcdir=.
1466fi
1467# Remove unnecessary trailing slashes from srcdir.
1468# Double slashes in file names in object file debugging info
1469# mess up M-x gdb in Emacs.
1470case $srcdir in
1471*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472esac
1473for ac_var in $ac_precious_vars; do
1474 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_env_${ac_var}_value=\$${ac_var}
1476 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478done
drh75897232000-05-29 14:26:00 +00001479
drh71eb93e2001-09-28 01:34:43 +00001480#
1481# Report the --help message.
1482#
1483if test "$ac_init_help" = "long"; then
1484 # Omit some internal or obsolete options to make the list less imposing.
1485 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001486 cat <<_ACEOF
drh92f76572012-12-13 18:51:53 +00001487\`configure' configures sqlite 3.7.16 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001488
1489Usage: $0 [OPTION]... [VAR=VALUE]...
1490
1491To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492VAR=VALUE. See below for descriptions of some of the useful variables.
1493
1494Defaults for the options are specified in brackets.
1495
1496Configuration:
1497 -h, --help display this help and exit
1498 --help=short display options specific to this package
1499 --help=recursive display the short help of all the included packages
1500 -V, --version display version information and exit
drh710658c2012-01-16 13:00:05 +00001501 -q, --quiet, --silent do not print \`checking...' messages
drh71eb93e2001-09-28 01:34:43 +00001502 --cache-file=FILE cache test results in FILE [disabled]
1503 -C, --config-cache alias for \`--cache-file=config.cache'
1504 -n, --no-create do not create output files
1505 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506
drh71eb93e2001-09-28 01:34:43 +00001507Installation directories:
1508 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001509 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001511 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001512
1513By default, \`make install' will install all the files in
1514\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1515an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516for instance \`--prefix=\$HOME'.
1517
1518For better control, use the options below.
1519
1520Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001521 --bindir=DIR user executables [EPREFIX/bin]
1522 --sbindir=DIR system admin executables [EPREFIX/sbin]
1523 --libexecdir=DIR program executables [EPREFIX/libexec]
1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1527 --libdir=DIR object code libraries [EPREFIX/lib]
1528 --includedir=DIR C header files [PREFIX/include]
1529 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1530 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1531 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1532 --infodir=DIR info documentation [DATAROOTDIR/info]
1533 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1534 --mandir=DIR man documentation [DATAROOTDIR/man]
1535 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1536 --htmldir=DIR html documentation [DOCDIR]
1537 --dvidir=DIR dvi documentation [DOCDIR]
1538 --pdfdir=DIR pdf documentation [DOCDIR]
1539 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001540_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001541
a.rottmann84e63352003-03-24 09:42:16 +00001542 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001543
1544System types:
1545 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001546 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001548fi
1549
1550if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001551 case $ac_init_help in
drh92f76572012-12-13 18:51:53 +00001552 short | recursive ) echo "Configuration of sqlite 3.7.16:";;
mlcreechb87057f2008-03-06 07:19:20 +00001553 esac
a.rottmann84e63352003-03-24 09:42:16 +00001554 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001555
1556Optional Features:
drh8b727472009-01-19 18:18:40 +00001557 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001560 --enable-shared[=PKGS] build shared libraries [default=yes]
1561 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001562 --enable-fast-install[=PKGS]
1563 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001564 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001565 --disable-largefile omit support for large files
drh94e4f822006-02-15 02:00:25 +00001566 --enable-threadsafe Support threadsafe operation
1567 --enable-cross-thread-connections
1568 Allow connection sharing across threads
drh94e4f822006-02-15 02:00:25 +00001569 --enable-releasemode Support libtool link to release mode
1570 --enable-tempstore Use an in-ram database for temporary tables
1571 (never,no,yes,always)
1572 --disable-tcl do not build TCL extension
vapier7f19c022007-02-17 14:46:31 +00001573 --disable-readline disable readline support [default=detect]
drh94e4f822006-02-15 02:00:25 +00001574 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001575 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001576 separately
mlcreecha4edab02008-03-06 04:14:17 +00001577 --enable-load-extension Enable loading of external extensions
mlcreechaac7b932008-04-01 02:45:22 +00001578 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001579
1580Optional Packages:
1581 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1582 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001583 --with-pic try to use only PIC/non-PIC objects [default=use
1584 both]
mlcreech636a9952008-05-05 22:52:56 +00001585 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh71eb93e2001-09-28 01:34:43 +00001586 --with-hints=FILE Read configuration options from FILE
drh94e4f822006-02-15 02:00:25 +00001587 --with-tcl=DIR directory containing tcl configuration
1588 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001589 --with-readline-lib specify readline library
1590 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001591
1592Some influential environment variables:
1593 CC C compiler command
1594 CFLAGS C compiler flags
1595 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1596 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001597 LIBS libraries to pass to the linker, e.g. -l<library>
drh710658c2012-01-16 13:00:05 +00001598 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
drh8b727472009-01-19 18:18:40 +00001599 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001600 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001601 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001602
1603Use these variables to override the choices made by `configure' or to help
1604it to find libraries and programs with nonstandard names/locations.
1605
a.rottmann84e63352003-03-24 09:42:16 +00001606_ACEOF
drh8b727472009-01-19 18:18:40 +00001607ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001608fi
1609
1610if test "$ac_init_help" = "recursive"; then
1611 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001612 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001613 test -d "$ac_dir" ||
1614 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1615 continue
a.rottmann84e63352003-03-24 09:42:16 +00001616 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001617
drh8b727472009-01-19 18:18:40 +00001618case "$ac_dir" in
1619.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620*)
1621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1622 # A ".." for each directory in $ac_dir_suffix.
1623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1624 case $ac_top_builddir_sub in
1625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627 esac ;;
1628esac
1629ac_abs_top_builddir=$ac_pwd
1630ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631# for backward compatibility:
1632ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001633
a.rottmann84e63352003-03-24 09:42:16 +00001634case $srcdir in
drh8b727472009-01-19 18:18:40 +00001635 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001636 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001637 ac_top_srcdir=$ac_top_builddir_sub
1638 ac_abs_top_srcdir=$ac_pwd ;;
1639 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001640 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001641 ac_top_srcdir=$srcdir
1642 ac_abs_top_srcdir=$srcdir ;;
1643 *) # Relative name.
1644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645 ac_top_srcdir=$ac_top_build_prefix$srcdir
1646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001647esac
drh8b727472009-01-19 18:18:40 +00001648ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001649
drh8b727472009-01-19 18:18:40 +00001650 cd "$ac_dir" || { ac_status=$?; continue; }
1651 # Check for guested configure.
1652 if test -f "$ac_srcdir/configure.gnu"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655 elif test -f "$ac_srcdir/configure"; then
1656 echo &&
1657 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001658 else
drh8b727472009-01-19 18:18:40 +00001659 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1660 fi || ac_status=$?
1661 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001662 done
1663fi
1664
drh8b727472009-01-19 18:18:40 +00001665test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001666if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001667 cat <<\_ACEOF
drh92f76572012-12-13 18:51:53 +00001668sqlite configure 3.7.16
drh710658c2012-01-16 13:00:05 +00001669generated by GNU Autoconf 2.62
drh71eb93e2001-09-28 01:34:43 +00001670
drh710658c2012-01-16 13:00:05 +00001671Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16722002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001673This configure script is free software; the Free Software Foundation
1674gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001675_ACEOF
drh8b727472009-01-19 18:18:40 +00001676 exit
drh71eb93e2001-09-28 01:34:43 +00001677fi
drh8b727472009-01-19 18:18:40 +00001678cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001679This file contains any messages produced by compilers while
1680running configure, to aid debugging if configure makes a mistake.
1681
drh92f76572012-12-13 18:51:53 +00001682It was created by sqlite $as_me 3.7.16, which was
drh710658c2012-01-16 13:00:05 +00001683generated by GNU Autoconf 2.62. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001684
1685 $ $0 $@
1686
a.rottmann84e63352003-03-24 09:42:16 +00001687_ACEOF
drh8b727472009-01-19 18:18:40 +00001688exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00001689{
1690cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001691## --------- ##
1692## Platform. ##
1693## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001694
1695hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1696uname -m = `(uname -m) 2>/dev/null || echo unknown`
1697uname -r = `(uname -r) 2>/dev/null || echo unknown`
1698uname -s = `(uname -s) 2>/dev/null || echo unknown`
1699uname -v = `(uname -v) 2>/dev/null || echo unknown`
1700
1701/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1702/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1703
1704/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1705/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1706/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00001707/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00001708/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1709/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1710/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1711
drh71eb93e2001-09-28 01:34:43 +00001712_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001713
1714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715for as_dir in $PATH
1716do
1717 IFS=$as_save_IFS
1718 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00001719 $as_echo "PATH: $as_dir"
1720done
drh8b727472009-01-19 18:18:40 +00001721IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00001722
drh71eb93e2001-09-28 01:34:43 +00001723} >&5
1724
a.rottmann84e63352003-03-24 09:42:16 +00001725cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001726
a.rottmann84e63352003-03-24 09:42:16 +00001727
1728## ----------- ##
1729## Core tests. ##
1730## ----------- ##
1731
1732_ACEOF
1733
drh71eb93e2001-09-28 01:34:43 +00001734
1735# Keep a trace of the command line.
1736# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001737# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001738# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001739# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001740ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001741ac_configure_args0=
1742ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00001743ac_must_keep_next=false
1744for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001745do
a.rottmann84e63352003-03-24 09:42:16 +00001746 for ac_arg
1747 do
1748 case $ac_arg in
1749 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1750 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1751 | -silent | --silent | --silen | --sile | --sil)
1752 continue ;;
drh8b727472009-01-19 18:18:40 +00001753 *\'*)
1754 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00001755 esac
1756 case $ac_pass in
drh710658c2012-01-16 13:00:05 +00001757 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
a.rottmann84e63352003-03-24 09:42:16 +00001758 2)
drh710658c2012-01-16 13:00:05 +00001759 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00001760 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001761 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001762 else
a.rottmann964dbb12004-02-26 19:47:42 +00001763 case $ac_arg in
1764 *=* | --config-cache | -C | -disable-* | --disable-* \
1765 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1766 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1767 | -with-* | --with-* | -without-* | --without-* | --x)
1768 case "$ac_configure_args0 " in
1769 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1770 esac
1771 ;;
1772 -* ) ac_must_keep_next=true ;;
1773 esac
a.rottmann84e63352003-03-24 09:42:16 +00001774 fi
drh710658c2012-01-16 13:00:05 +00001775 ac_configure_args="$ac_configure_args '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00001776 ;;
1777 esac
1778 done
drh71eb93e2001-09-28 01:34:43 +00001779done
drh710658c2012-01-16 13:00:05 +00001780$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1781$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001782
1783# When interrupted or exit'd, cleanup temporary files, and complete
1784# config.log. We remove comments because anyway the quotes in there
1785# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00001786# WARNING: Use '\'' to represent an apostrophe within the trap.
1787# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00001788trap 'exit_status=$?
1789 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001790 {
1791 echo
1792
drh710658c2012-01-16 13:00:05 +00001793 cat <<\_ASBOX
1794## ---------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001795## Cache variables. ##
drh710658c2012-01-16 13:00:05 +00001796## ---------------- ##
1797_ASBOX
a.rottmann84e63352003-03-24 09:42:16 +00001798 echo
1799 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00001800(
1801 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1802 eval ac_val=\$$ac_var
1803 case $ac_val in #(
1804 *${as_nl}*)
1805 case $ac_var in #(
drh710658c2012-01-16 13:00:05 +00001806 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1807$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
drh8b727472009-01-19 18:18:40 +00001808 esac
1809 case $ac_var in #(
1810 _ | IFS | as_nl) ;; #(
1811 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drh710658c2012-01-16 13:00:05 +00001812 *) $as_unset $ac_var ;;
drh8b727472009-01-19 18:18:40 +00001813 esac ;;
1814 esac
1815 done
drh71eb93e2001-09-28 01:34:43 +00001816 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00001817 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1818 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00001819 sed -n \
drh8b727472009-01-19 18:18:40 +00001820 "s/'\''/'\''\\\\'\'''\''/g;
1821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1822 ;; #(
drh866108f2008-05-13 00:57:21 +00001823 *)
drh8b727472009-01-19 18:18:40 +00001824 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00001825 ;;
drh8b727472009-01-19 18:18:40 +00001826 esac |
1827 sort
1828)
a.rottmann84e63352003-03-24 09:42:16 +00001829 echo
1830
drh710658c2012-01-16 13:00:05 +00001831 cat <<\_ASBOX
1832## ----------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001833## Output variables. ##
drh710658c2012-01-16 13:00:05 +00001834## ----------------- ##
1835_ASBOX
a.rottmann84e63352003-03-24 09:42:16 +00001836 echo
1837 for ac_var in $ac_subst_vars
1838 do
drh8b727472009-01-19 18:18:40 +00001839 eval ac_val=\$$ac_var
1840 case $ac_val in
1841 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1842 esac
1843 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001844 done | sort
1845 echo
1846
1847 if test -n "$ac_subst_files"; then
drh710658c2012-01-16 13:00:05 +00001848 cat <<\_ASBOX
1849## ------------------- ##
drh8b727472009-01-19 18:18:40 +00001850## File substitutions. ##
drh710658c2012-01-16 13:00:05 +00001851## ------------------- ##
1852_ASBOX
a.rottmann84e63352003-03-24 09:42:16 +00001853 echo
1854 for ac_var in $ac_subst_files
1855 do
drh8b727472009-01-19 18:18:40 +00001856 eval ac_val=\$$ac_var
1857 case $ac_val in
1858 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859 esac
1860 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001861 done | sort
1862 echo
1863 fi
1864
1865 if test -s confdefs.h; then
drh710658c2012-01-16 13:00:05 +00001866 cat <<\_ASBOX
1867## ----------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001868## confdefs.h. ##
drh710658c2012-01-16 13:00:05 +00001869## ----------- ##
1870_ASBOX
a.rottmann84e63352003-03-24 09:42:16 +00001871 echo
drh8b727472009-01-19 18:18:40 +00001872 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00001873 echo
1874 fi
1875 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00001876 $as_echo "$as_me: caught signal $ac_signal"
1877 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00001878 } >&5
drh8b727472009-01-19 18:18:40 +00001879 rm -f core *.core core.conftest.* &&
1880 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001881 exit $exit_status
drh8b727472009-01-19 18:18:40 +00001882' 0
drh71eb93e2001-09-28 01:34:43 +00001883for ac_signal in 1 2 13 15; do
drh710658c2012-01-16 13:00:05 +00001884 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
drh71eb93e2001-09-28 01:34:43 +00001885done
1886ac_signal=0
1887
1888# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00001889rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00001890
a.rottmann84e63352003-03-24 09:42:16 +00001891# Predefined preprocessor variables.
1892
1893cat >>confdefs.h <<_ACEOF
1894#define PACKAGE_NAME "$PACKAGE_NAME"
1895_ACEOF
1896
drh710658c2012-01-16 13:00:05 +00001897
a.rottmann84e63352003-03-24 09:42:16 +00001898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1900_ACEOF
1901
drh710658c2012-01-16 13:00:05 +00001902
a.rottmann84e63352003-03-24 09:42:16 +00001903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_VERSION "$PACKAGE_VERSION"
1905_ACEOF
1906
drh710658c2012-01-16 13:00:05 +00001907
a.rottmann84e63352003-03-24 09:42:16 +00001908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE_STRING "$PACKAGE_STRING"
1910_ACEOF
1911
a.rottmann84e63352003-03-24 09:42:16 +00001912
dana9f39fd2011-08-12 16:34:42 +00001913cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00001914#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
dana9f39fd2011-08-12 16:34:42 +00001915_ACEOF
1916
a.rottmann84e63352003-03-24 09:42:16 +00001917
drh71eb93e2001-09-28 01:34:43 +00001918# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00001919# Prefer an explicitly selected file to automatically selected ones.
1920ac_site_file1=NONE
1921ac_site_file2=NONE
1922if test -n "$CONFIG_SITE"; then
drh710658c2012-01-16 13:00:05 +00001923 ac_site_file1=$CONFIG_SITE
drh8b727472009-01-19 18:18:40 +00001924elif test "x$prefix" != xNONE; then
1925 ac_site_file1=$prefix/share/config.site
1926 ac_site_file2=$prefix/etc/config.site
1927else
1928 ac_site_file1=$ac_default_prefix/share/config.site
1929 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00001930fi
drh8b727472009-01-19 18:18:40 +00001931for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1932do
1933 test "x$ac_site_file" = xNONE && continue
drh710658c2012-01-16 13:00:05 +00001934 if test -r "$ac_site_file"; then
1935 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
drh8b727472009-01-19 18:18:40 +00001936$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001937 sed 's/^/| /' "$ac_site_file" >&5
drh710658c2012-01-16 13:00:05 +00001938 . "$ac_site_file"
drh75897232000-05-29 14:26:00 +00001939 fi
1940done
1941
1942if test -r "$cache_file"; then
drh710658c2012-01-16 13:00:05 +00001943 # Some versions of bash will fail to source /dev/null (special
1944 # files actually), so we avoid doing that.
1945 if test -f "$cache_file"; then
1946 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00001947$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001948 case $cache_file in
drh8b727472009-01-19 18:18:40 +00001949 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1950 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00001951 esac
1952 fi
drh75897232000-05-29 14:26:00 +00001953else
drh710658c2012-01-16 13:00:05 +00001954 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00001955$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001956 >$cache_file
1957fi
1958
1959# Check that the precious variables saved in the cache have kept the same
1960# value.
1961ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00001962for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00001963 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1964 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00001965 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1966 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00001967 case $ac_old_set,$ac_new_set in
1968 set,)
drh710658c2012-01-16 13:00:05 +00001969 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00001970$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001971 ac_cache_corrupted=: ;;
1972 ,set)
drh710658c2012-01-16 13:00:05 +00001973 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00001974$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001975 ac_cache_corrupted=: ;;
1976 ,);;
1977 *)
1978 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00001979 # differences in whitespace do not lead to failure.
1980 ac_old_val_w=`echo x $ac_old_val`
1981 ac_new_val_w=`echo x $ac_new_val`
1982 if test "$ac_old_val_w" != "$ac_new_val_w"; then
drh710658c2012-01-16 13:00:05 +00001983 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00001984$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1985 ac_cache_corrupted=:
1986 else
drh710658c2012-01-16 13:00:05 +00001987 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00001988$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1989 eval $ac_var=\$ac_old_val
1990 fi
drh710658c2012-01-16 13:00:05 +00001991 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
drh8b727472009-01-19 18:18:40 +00001992$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
drh710658c2012-01-16 13:00:05 +00001993 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
drh8b727472009-01-19 18:18:40 +00001994$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001995 fi;;
1996 esac
a.rottmann84e63352003-03-24 09:42:16 +00001997 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001998 if test "$ac_new_set" = set; then
1999 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002000 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002001 *) ac_arg=$ac_var=$ac_new_val ;;
2002 esac
2003 case " $ac_configure_args " in
2004 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
drh710658c2012-01-16 13:00:05 +00002005 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002006 esac
2007 fi
2008done
2009if $ac_cache_corrupted; then
drh710658c2012-01-16 13:00:05 +00002010 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
drh8b727472009-01-19 18:18:40 +00002011$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
drh710658c2012-01-16 13:00:05 +00002012 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2013$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2014 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00002015fi
drh710658c2012-01-16 13:00:05 +00002016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
drh8b727472009-01-19 18:18:40 +00002040
drh75897232000-05-29 14:26:00 +00002041ac_ext=c
drh75897232000-05-29 14:26:00 +00002042ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2045ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002046
a.rottmann84e63352003-03-24 09:42:16 +00002047
2048
drh04446102009-06-15 00:04:06 +00002049sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002050if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
drh710658c2012-01-16 13:00:05 +00002051{ { $as_echo "$as_me:$LINENO: error: configure script is out of date:
vapierfaa68db2009-04-01 07:38:31 +00002052 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2053 top level VERSION file = $sqlite_version_sanity_check
drh710658c2012-01-16 13:00:05 +00002054please regen with autoconf" >&5
2055$as_echo "$as_me: error: configure script is out of date:
2056 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2057 top level VERSION file = $sqlite_version_sanity_check
2058please regen with autoconf" >&2;}
2059 { (exit 1); exit 1; }; }
vapierfaa68db2009-04-01 07:38:31 +00002060fi
2061
drh75897232000-05-29 14:26:00 +00002062# The following RCS revision string applies to configure.in
drhcee4c932009-08-24 19:37:20 +00002063# $Revision: 1.56 $
drh75897232000-05-29 14:26:00 +00002064
2065#########
drh71eb93e2001-09-28 01:34:43 +00002066# Programs needed
drh75897232000-05-29 14:26:00 +00002067#
mlcreech636a9952008-05-05 22:52:56 +00002068case `pwd` in
2069 *\ * | *\ *)
drh710658c2012-01-16 13:00:05 +00002070 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
drh8b727472009-01-19 18:18:40 +00002071$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002072esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002073
mlcreech94984912008-03-04 19:03:08 +00002074
mlcreech636a9952008-05-05 22:52:56 +00002075
vapier6acb2cf2009-01-28 04:46:28 +00002076macro_version='2.2.6'
2077macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002078
mlcreech94984912008-03-04 19:03:08 +00002079
mlcreech94984912008-03-04 19:03:08 +00002080
a.rottmann9bc8b932004-02-29 15:18:31 +00002081
mlcreech636a9952008-05-05 22:52:56 +00002082
2083
2084
2085
2086
2087
2088
2089
2090
2091ltmain="$ac_aux_dir/ltmain.sh"
2092
drh71eb93e2001-09-28 01:34:43 +00002093ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002094for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
drh0fe0c462011-09-22 00:56:38 +00002095 if test -f "$ac_dir/install-sh"; then
2096 ac_aux_dir=$ac_dir
2097 ac_install_sh="$ac_aux_dir/install-sh -c"
2098 break
2099 elif test -f "$ac_dir/install.sh"; then
2100 ac_aux_dir=$ac_dir
2101 ac_install_sh="$ac_aux_dir/install.sh -c"
2102 break
2103 elif test -f "$ac_dir/shtool"; then
2104 ac_aux_dir=$ac_dir
2105 ac_install_sh="$ac_aux_dir/shtool install -c"
2106 break
2107 fi
drh71eb93e2001-09-28 01:34:43 +00002108done
2109if test -z "$ac_aux_dir"; then
drh710658c2012-01-16 13:00:05 +00002110 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2111$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2112 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002113fi
drh8b727472009-01-19 18:18:40 +00002114
2115# These three variables are undocumented and unsupported,
2116# and are intended to be withdrawn in a future Autoconf release.
2117# They can cause serious problems if a builder's source tree is in a directory
2118# whose full name contains unusual characters.
2119ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2120ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2121ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2122
drh71eb93e2001-09-28 01:34:43 +00002123
2124# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002125$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
drh710658c2012-01-16 13:00:05 +00002126 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2127$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2128 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002129
drh710658c2012-01-16 13:00:05 +00002130{ $as_echo "$as_me:$LINENO: checking build system type" >&5
drh8b727472009-01-19 18:18:40 +00002131$as_echo_n "checking build system type... " >&6; }
drh710658c2012-01-16 13:00:05 +00002132if test "${ac_cv_build+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002133 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002134else
drh8b727472009-01-19 18:18:40 +00002135 ac_build_alias=$build_alias
2136test "x$ac_build_alias" = x &&
2137 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2138test "x$ac_build_alias" = x &&
drh710658c2012-01-16 13:00:05 +00002139 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2140$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2141 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00002142ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
drh710658c2012-01-16 13:00:05 +00002143 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2144$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2145 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002146
2147fi
drh710658c2012-01-16 13:00:05 +00002148{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
drh8b727472009-01-19 18:18:40 +00002149$as_echo "$ac_cv_build" >&6; }
2150case $ac_cv_build in
2151*-*-*) ;;
drh710658c2012-01-16 13:00:05 +00002152*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2153$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2154 { (exit 1); exit 1; }; };;
drh8b727472009-01-19 18:18:40 +00002155esac
drh71eb93e2001-09-28 01:34:43 +00002156build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002157ac_save_IFS=$IFS; IFS='-'
2158set x $ac_cv_build
2159shift
2160build_cpu=$1
2161build_vendor=$2
2162shift; shift
2163# Remember, the first character of IFS is used to create $*,
2164# except with old shells:
2165build_os=$*
2166IFS=$ac_save_IFS
2167case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002168
a.rottmann84e63352003-03-24 09:42:16 +00002169
drh710658c2012-01-16 13:00:05 +00002170{ $as_echo "$as_me:$LINENO: checking host system type" >&5
drh8b727472009-01-19 18:18:40 +00002171$as_echo_n "checking host system type... " >&6; }
drh710658c2012-01-16 13:00:05 +00002172if test "${ac_cv_host+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002173 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002174else
drh8b727472009-01-19 18:18:40 +00002175 if test "x$host_alias" = x; then
2176 ac_cv_host=$ac_cv_build
2177else
2178 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
drh710658c2012-01-16 13:00:05 +00002179 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2180$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2181 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00002182fi
drh71eb93e2001-09-28 01:34:43 +00002183
2184fi
drh710658c2012-01-16 13:00:05 +00002185{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
drh8b727472009-01-19 18:18:40 +00002186$as_echo "$ac_cv_host" >&6; }
2187case $ac_cv_host in
2188*-*-*) ;;
drh710658c2012-01-16 13:00:05 +00002189*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2190$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2191 { (exit 1); exit 1; }; };;
drh8b727472009-01-19 18:18:40 +00002192esac
drh71eb93e2001-09-28 01:34:43 +00002193host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002194ac_save_IFS=$IFS; IFS='-'
2195set x $ac_cv_host
2196shift
2197host_cpu=$1
2198host_vendor=$2
2199shift; shift
2200# Remember, the first character of IFS is used to create $*,
2201# except with old shells:
2202host_os=$*
2203IFS=$ac_save_IFS
2204case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002205
a.rottmann84e63352003-03-24 09:42:16 +00002206
drh71eb93e2001-09-28 01:34:43 +00002207ac_ext=c
2208ac_cpp='$CPP $CPPFLAGS'
2209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2211ac_compiler_gnu=$ac_cv_c_compiler_gnu
2212if test -n "$ac_tool_prefix"; then
2213 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2214set dummy ${ac_tool_prefix}gcc; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002215{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002216$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002217if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002218 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002219else
2220 if test -n "$CC"; then
2221 ac_cv_prog_CC="$CC" # Let the user override the test.
2222else
a.rottmann84e63352003-03-24 09:42:16 +00002223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224for as_dir in $PATH
2225do
2226 IFS=$as_save_IFS
2227 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002228 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002229 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 +00002230 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drh710658c2012-01-16 13:00:05 +00002231 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002232 break 2
2233 fi
2234done
drh710658c2012-01-16 13:00:05 +00002235done
drh8b727472009-01-19 18:18:40 +00002236IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002237
2238fi
2239fi
2240CC=$ac_cv_prog_CC
2241if test -n "$CC"; then
drh710658c2012-01-16 13:00:05 +00002242 { $as_echo "$as_me:$LINENO: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002243$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002244else
drh710658c2012-01-16 13:00:05 +00002245 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002246$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002247fi
2248
drh8b727472009-01-19 18:18:40 +00002249
drh71eb93e2001-09-28 01:34:43 +00002250fi
2251if test -z "$ac_cv_prog_CC"; then
2252 ac_ct_CC=$CC
2253 # Extract the first word of "gcc", so it can be a program name with args.
2254set dummy gcc; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002255{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002256$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002257if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002258 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002259else
2260 if test -n "$ac_ct_CC"; then
2261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2262else
a.rottmann84e63352003-03-24 09:42:16 +00002263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264for as_dir in $PATH
2265do
2266 IFS=$as_save_IFS
2267 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002268 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002269 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 +00002270 ac_cv_prog_ac_ct_CC="gcc"
drh710658c2012-01-16 13:00:05 +00002271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002272 break 2
2273 fi
2274done
drh710658c2012-01-16 13:00:05 +00002275done
drh8b727472009-01-19 18:18:40 +00002276IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002277
2278fi
2279fi
2280ac_ct_CC=$ac_cv_prog_ac_ct_CC
2281if test -n "$ac_ct_CC"; then
drh710658c2012-01-16 13:00:05 +00002282 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002283$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002284else
drh710658c2012-01-16 13:00:05 +00002285 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002286$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002287fi
2288
drh8b727472009-01-19 18:18:40 +00002289 if test "x$ac_ct_CC" = x; then
2290 CC=""
2291 else
2292 case $cross_compiling:$ac_tool_warned in
2293yes:)
drh710658c2012-01-16 13:00:05 +00002294{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2295whose name does not start with the host triplet. If you think this
2296configuration is useful to you, please write to autoconf@gnu.org." >&5
2297$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2298whose name does not start with the host triplet. If you think this
2299configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00002300ac_tool_warned=yes ;;
2301esac
2302 CC=$ac_ct_CC
2303 fi
drh71eb93e2001-09-28 01:34:43 +00002304else
2305 CC="$ac_cv_prog_CC"
2306fi
2307
2308if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002309 if test -n "$ac_tool_prefix"; then
2310 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002311set dummy ${ac_tool_prefix}cc; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002312{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002313$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002314if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002315 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002316else
2317 if test -n "$CC"; then
2318 ac_cv_prog_CC="$CC" # Let the user override the test.
2319else
a.rottmann84e63352003-03-24 09:42:16 +00002320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321for as_dir in $PATH
2322do
2323 IFS=$as_save_IFS
2324 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002325 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002326 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 +00002327 ac_cv_prog_CC="${ac_tool_prefix}cc"
drh710658c2012-01-16 13:00:05 +00002328 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002329 break 2
2330 fi
2331done
drh710658c2012-01-16 13:00:05 +00002332done
drh8b727472009-01-19 18:18:40 +00002333IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002334
2335fi
2336fi
2337CC=$ac_cv_prog_CC
2338if test -n "$CC"; then
drh710658c2012-01-16 13:00:05 +00002339 { $as_echo "$as_me:$LINENO: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002340$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002341else
drh710658c2012-01-16 13:00:05 +00002342 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002343$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002344fi
2345
drh8b727472009-01-19 18:18:40 +00002346
a.rottmann84e63352003-03-24 09:42:16 +00002347 fi
drh71eb93e2001-09-28 01:34:43 +00002348fi
2349if test -z "$CC"; then
2350 # Extract the first word of "cc", so it can be a program name with args.
2351set dummy cc; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002352{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002353$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002354if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002355 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002356else
2357 if test -n "$CC"; then
2358 ac_cv_prog_CC="$CC" # Let the user override the test.
2359else
2360 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362for as_dir in $PATH
2363do
2364 IFS=$as_save_IFS
2365 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002366 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002367 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 +00002368 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2369 ac_prog_rejected=yes
2370 continue
2371 fi
2372 ac_cv_prog_CC="cc"
drh710658c2012-01-16 13:00:05 +00002373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002374 break 2
2375 fi
2376done
drh710658c2012-01-16 13:00:05 +00002377done
drh8b727472009-01-19 18:18:40 +00002378IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002379
2380if test $ac_prog_rejected = yes; then
2381 # We found a bogon in the path, so make sure we never use it.
2382 set dummy $ac_cv_prog_CC
2383 shift
2384 if test $# != 0; then
2385 # We chose a different compiler from the bogus one.
2386 # However, it has the same basename, so the bogon will be chosen
2387 # first if we set CC to just the basename; use the full file name.
2388 shift
a.rottmann84e63352003-03-24 09:42:16 +00002389 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002390 fi
2391fi
2392fi
2393fi
2394CC=$ac_cv_prog_CC
2395if test -n "$CC"; then
drh710658c2012-01-16 13:00:05 +00002396 { $as_echo "$as_me:$LINENO: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002397$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002398else
drh710658c2012-01-16 13:00:05 +00002399 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002400$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002401fi
2402
drh8b727472009-01-19 18:18:40 +00002403
drh71eb93e2001-09-28 01:34:43 +00002404fi
2405if test -z "$CC"; then
2406 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002407 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002408 do
2409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2410set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002411{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002412$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002413if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002414 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002415else
2416 if test -n "$CC"; then
2417 ac_cv_prog_CC="$CC" # Let the user override the test.
2418else
a.rottmann84e63352003-03-24 09:42:16 +00002419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420for as_dir in $PATH
2421do
2422 IFS=$as_save_IFS
2423 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002424 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002425 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 +00002426 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drh710658c2012-01-16 13:00:05 +00002427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002428 break 2
2429 fi
2430done
drh710658c2012-01-16 13:00:05 +00002431done
drh8b727472009-01-19 18:18:40 +00002432IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002433
2434fi
2435fi
2436CC=$ac_cv_prog_CC
2437if test -n "$CC"; then
drh710658c2012-01-16 13:00:05 +00002438 { $as_echo "$as_me:$LINENO: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002439$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002440else
drh710658c2012-01-16 13:00:05 +00002441 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002442$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002443fi
2444
drh8b727472009-01-19 18:18:40 +00002445
drh71eb93e2001-09-28 01:34:43 +00002446 test -n "$CC" && break
2447 done
2448fi
2449if test -z "$CC"; then
2450 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002451 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002452do
2453 # Extract the first word of "$ac_prog", so it can be a program name with args.
2454set dummy $ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002455{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002456$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002457if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002458 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002459else
2460 if test -n "$ac_ct_CC"; then
2461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2462else
a.rottmann84e63352003-03-24 09:42:16 +00002463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464for as_dir in $PATH
2465do
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002468 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002469 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 +00002470 ac_cv_prog_ac_ct_CC="$ac_prog"
drh710658c2012-01-16 13:00:05 +00002471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002472 break 2
2473 fi
2474done
drh710658c2012-01-16 13:00:05 +00002475done
drh8b727472009-01-19 18:18:40 +00002476IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002477
2478fi
2479fi
2480ac_ct_CC=$ac_cv_prog_ac_ct_CC
2481if test -n "$ac_ct_CC"; then
drh710658c2012-01-16 13:00:05 +00002482 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002483$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002484else
drh710658c2012-01-16 13:00:05 +00002485 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002486$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002487fi
2488
drh8b727472009-01-19 18:18:40 +00002489
drh71eb93e2001-09-28 01:34:43 +00002490 test -n "$ac_ct_CC" && break
2491done
2492
drh8b727472009-01-19 18:18:40 +00002493 if test "x$ac_ct_CC" = x; then
2494 CC=""
2495 else
2496 case $cross_compiling:$ac_tool_warned in
2497yes:)
drh710658c2012-01-16 13:00:05 +00002498{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2499whose name does not start with the host triplet. If you think this
2500configuration is useful to you, please write to autoconf@gnu.org." >&5
2501$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2502whose name does not start with the host triplet. If you think this
2503configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00002504ac_tool_warned=yes ;;
2505esac
2506 CC=$ac_ct_CC
2507 fi
drh71eb93e2001-09-28 01:34:43 +00002508fi
2509
2510fi
2511
a.rottmann84e63352003-03-24 09:42:16 +00002512
drh710658c2012-01-16 13:00:05 +00002513test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2514See \`config.log' for more details." >&5
2515$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2516See \`config.log' for more details." >&2;}
2517 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002518
2519# Provide some information about the compiler.
drh710658c2012-01-16 13:00:05 +00002520$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
drh8b727472009-01-19 18:18:40 +00002521set X $ac_compile
2522ac_compiler=$2
drh710658c2012-01-16 13:00:05 +00002523{ (ac_try="$ac_compiler --version >&5"
drh8b727472009-01-19 18:18:40 +00002524case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2527esac
drh710658c2012-01-16 13:00:05 +00002528eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2529$as_echo "$ac_try_echo") >&5
2530 (eval "$ac_compiler --version >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002531 ac_status=$?
drh710658c2012-01-16 13:00:05 +00002532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }
2534{ (ac_try="$ac_compiler -v >&5"
2535case "(($ac_try" in
2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2538esac
2539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2540$as_echo "$ac_try_echo") >&5
2541 (eval "$ac_compiler -v >&5") 2>&5
2542 ac_status=$?
2543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }
2545{ (ac_try="$ac_compiler -V >&5"
2546case "(($ac_try" in
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2549esac
2550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2551$as_echo "$ac_try_echo") >&5
2552 (eval "$ac_compiler -V >&5") 2>&5
2553 ac_status=$?
2554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }
drh71eb93e2001-09-28 01:34:43 +00002556
drh710658c2012-01-16 13:00:05 +00002557cat >conftest.$ac_ext <<_ACEOF
2558/* confdefs.h. */
2559_ACEOF
2560cat confdefs.h >>conftest.$ac_ext
2561cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002562/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002563
2564int
2565main ()
2566{
2567
2568 ;
2569 return 0;
2570}
2571_ACEOF
2572ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002573ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002574# Try to create an executable without -o first, disregard a.out.
2575# It will help us diagnose broken compilers, and finding out an intuition
2576# of exeext.
drh710658c2012-01-16 13:00:05 +00002577{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2578$as_echo_n "checking for C compiler default output file name... " >&6; }
drh8b727472009-01-19 18:18:40 +00002579ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002580
drh8b727472009-01-19 18:18:40 +00002581# The possible output files:
2582ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2583
2584ac_rmfiles=
2585for ac_file in $ac_files
2586do
2587 case $ac_file in
2588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2589 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2590 esac
2591done
2592rm -f $ac_rmfiles
2593
drh710658c2012-01-16 13:00:05 +00002594if { (ac_try="$ac_link_default"
drh8b727472009-01-19 18:18:40 +00002595case "(($ac_try" in
2596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597 *) ac_try_echo=$ac_try;;
2598esac
drh710658c2012-01-16 13:00:05 +00002599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2600$as_echo "$ac_try_echo") >&5
drh8b727472009-01-19 18:18:40 +00002601 (eval "$ac_link_default") 2>&5
2602 ac_status=$?
drh710658c2012-01-16 13:00:05 +00002603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; then
drh8b727472009-01-19 18:18:40 +00002605 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2606# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2607# in a Makefile. We should not override ac_cv_exeext if it was cached,
2608# so that the user can short-circuit this test for compilers unknown to
2609# Autoconf.
2610for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002611do
2612 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002613 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002614 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002615 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002616 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002617 # We found the default executable, but exeext='' is most
2618 # certainly right.
2619 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002620 *.* )
drh710658c2012-01-16 13:00:05 +00002621 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
drh8b727472009-01-19 18:18:40 +00002622 then :; else
2623 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2624 fi
2625 # We set ac_cv_exeext here because the later test for it is not
2626 # safe: cross compilers may not add the suffix if given an `-o'
2627 # argument, so we may need to know it at that point already.
2628 # Even if this section looks crufty: it has the advantage of
2629 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002630 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002631 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002632 break;;
drh71eb93e2001-09-28 01:34:43 +00002633 esac
2634done
drh8b727472009-01-19 18:18:40 +00002635test "$ac_cv_exeext" = no && ac_cv_exeext=
2636
drh71eb93e2001-09-28 01:34:43 +00002637else
drh8b727472009-01-19 18:18:40 +00002638 ac_file=''
2639fi
drh710658c2012-01-16 13:00:05 +00002640
2641{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2642$as_echo "$ac_file" >&6; }
2643if test -z "$ac_file"; then
2644 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002645sed 's/^/| /' conftest.$ac_ext >&5
2646
drh710658c2012-01-16 13:00:05 +00002647{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2648See \`config.log' for more details." >&5
2649$as_echo "$as_me: error: C compiler cannot create executables
2650See \`config.log' for more details." >&2;}
2651 { (exit 77); exit 77; }; }
dana9f39fd2011-08-12 16:34:42 +00002652fi
drh710658c2012-01-16 13:00:05 +00002653
dana9f39fd2011-08-12 16:34:42 +00002654ac_exeext=$ac_cv_exeext
drh71eb93e2001-09-28 01:34:43 +00002655
drh710658c2012-01-16 13:00:05 +00002656# Check that the compiler produces executables we can run. If not, either
2657# the compiler is broken, or we cross compile.
2658{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2659$as_echo_n "checking whether the C compiler works... " >&6; }
2660# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2661# If not cross compiling, check that we can run a simple program.
2662if test "$cross_compiling" != yes; then
2663 if { ac_try='./$ac_file'
2664 { (case "(($ac_try" in
2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666 *) ac_try_echo=$ac_try;;
2667esac
2668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2669$as_echo "$ac_try_echo") >&5
2670 (eval "$ac_try") 2>&5
2671 ac_status=$?
2672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2674 cross_compiling=no
2675 else
2676 if test "$cross_compiling" = maybe; then
2677 cross_compiling=yes
2678 else
2679 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2680If you meant to cross compile, use \`--host'.
2681See \`config.log' for more details." >&5
2682$as_echo "$as_me: error: cannot run C compiled programs.
2683If you meant to cross compile, use \`--host'.
2684See \`config.log' for more details." >&2;}
2685 { (exit 1); exit 1; }; }
2686 fi
2687 fi
2688fi
2689{ $as_echo "$as_me:$LINENO: result: yes" >&5
2690$as_echo "yes" >&6; }
2691
drh8b727472009-01-19 18:18:40 +00002692rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002693ac_clean_files=$ac_clean_files_save
drh710658c2012-01-16 13:00:05 +00002694# Check that the compiler produces executables we can run. If not, either
2695# the compiler is broken, or we cross compile.
2696{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2697$as_echo_n "checking whether we are cross compiling... " >&6; }
2698{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2699$as_echo "$cross_compiling" >&6; }
2700
2701{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
drh8b727472009-01-19 18:18:40 +00002702$as_echo_n "checking for suffix of executables... " >&6; }
drh710658c2012-01-16 13:00:05 +00002703if { (ac_try="$ac_link"
drh8b727472009-01-19 18:18:40 +00002704case "(($ac_try" in
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2707esac
drh710658c2012-01-16 13:00:05 +00002708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2709$as_echo "$ac_try_echo") >&5
drh8b727472009-01-19 18:18:40 +00002710 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002711 ac_status=$?
drh710658c2012-01-16 13:00:05 +00002712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; then
drh71eb93e2001-09-28 01:34:43 +00002714 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2715# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2716# work properly (i.e., refer to `conftest.exe'), while it won't with
2717# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002718for ac_file in conftest.exe conftest conftest.*; do
2719 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002720 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002722 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002723 break;;
drh71eb93e2001-09-28 01:34:43 +00002724 * ) break;;
2725 esac
2726done
2727else
drh710658c2012-01-16 13:00:05 +00002728 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2729See \`config.log' for more details." >&5
2730$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2731See \`config.log' for more details." >&2;}
2732 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002733fi
drh710658c2012-01-16 13:00:05 +00002734
2735rm -f conftest$ac_cv_exeext
2736{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
drh8b727472009-01-19 18:18:40 +00002737$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002738
2739rm -f conftest.$ac_ext
2740EXEEXT=$ac_cv_exeext
2741ac_exeext=$EXEEXT
drh710658c2012-01-16 13:00:05 +00002742{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
drh8b727472009-01-19 18:18:40 +00002743$as_echo_n "checking for suffix of object files... " >&6; }
drh710658c2012-01-16 13:00:05 +00002744if test "${ac_cv_objext+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002745 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002746else
drh710658c2012-01-16 13:00:05 +00002747 cat >conftest.$ac_ext <<_ACEOF
2748/* confdefs.h. */
2749_ACEOF
2750cat confdefs.h >>conftest.$ac_ext
2751cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002752/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002753
2754int
2755main ()
2756{
2757
2758 ;
2759 return 0;
2760}
2761_ACEOF
2762rm -f conftest.o conftest.obj
drh710658c2012-01-16 13:00:05 +00002763if { (ac_try="$ac_compile"
drh8b727472009-01-19 18:18:40 +00002764case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2767esac
drh710658c2012-01-16 13:00:05 +00002768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2769$as_echo "$ac_try_echo") >&5
drh8b727472009-01-19 18:18:40 +00002770 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002771 ac_status=$?
drh710658c2012-01-16 13:00:05 +00002772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }; then
drh8b727472009-01-19 18:18:40 +00002774 for ac_file in conftest.o conftest.obj conftest.*; do
2775 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00002776 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00002778 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2779 break;;
2780 esac
2781done
2782else
drh8b727472009-01-19 18:18:40 +00002783 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002784sed 's/^/| /' conftest.$ac_ext >&5
2785
drh710658c2012-01-16 13:00:05 +00002786{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2787See \`config.log' for more details." >&5
2788$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2789See \`config.log' for more details." >&2;}
2790 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002791fi
drh710658c2012-01-16 13:00:05 +00002792
drh71eb93e2001-09-28 01:34:43 +00002793rm -f conftest.$ac_cv_objext conftest.$ac_ext
2794fi
drh710658c2012-01-16 13:00:05 +00002795{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
drh8b727472009-01-19 18:18:40 +00002796$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002797OBJEXT=$ac_cv_objext
2798ac_objext=$OBJEXT
drh710658c2012-01-16 13:00:05 +00002799{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh8b727472009-01-19 18:18:40 +00002800$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drh710658c2012-01-16 13:00:05 +00002801if test "${ac_cv_c_compiler_gnu+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002802 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002803else
drh710658c2012-01-16 13:00:05 +00002804 cat >conftest.$ac_ext <<_ACEOF
2805/* confdefs.h. */
2806_ACEOF
2807cat confdefs.h >>conftest.$ac_ext
2808cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002809/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002810
2811int
2812main ()
2813{
2814#ifndef __GNUC__
2815 choke me
2816#endif
2817
2818 ;
2819 return 0;
2820}
2821_ACEOF
drh710658c2012-01-16 13:00:05 +00002822rm -f conftest.$ac_objext
2823if { (ac_try="$ac_compile"
2824case "(($ac_try" in
2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2827esac
2828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2829$as_echo "$ac_try_echo") >&5
2830 (eval "$ac_compile") 2>conftest.er1
2831 ac_status=$?
2832 grep -v '^ *+' conftest.er1 >conftest.err
2833 rm -f conftest.er1
2834 cat conftest.err >&5
2835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } && {
2837 test -z "$ac_c_werror_flag" ||
2838 test ! -s conftest.err
2839 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002840 ac_compiler_gnu=yes
2841else
drh710658c2012-01-16 13:00:05 +00002842 $as_echo "$as_me: failed program was:" >&5
2843sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00002846fi
drh710658c2012-01-16 13:00:05 +00002847
drh8b727472009-01-19 18:18:40 +00002848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002849ac_cv_c_compiler_gnu=$ac_compiler_gnu
2850
2851fi
drh710658c2012-01-16 13:00:05 +00002852{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh8b727472009-01-19 18:18:40 +00002853$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2854if test $ac_compiler_gnu = yes; then
2855 GCC=yes
2856else
2857 GCC=
2858fi
drh71eb93e2001-09-28 01:34:43 +00002859ac_test_CFLAGS=${CFLAGS+set}
2860ac_save_CFLAGS=$CFLAGS
drh710658c2012-01-16 13:00:05 +00002861{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh8b727472009-01-19 18:18:40 +00002862$as_echo_n "checking whether $CC accepts -g... " >&6; }
drh710658c2012-01-16 13:00:05 +00002863if test "${ac_cv_prog_cc_g+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002864 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002865else
drh8b727472009-01-19 18:18:40 +00002866 ac_save_c_werror_flag=$ac_c_werror_flag
2867 ac_c_werror_flag=yes
2868 ac_cv_prog_cc_g=no
2869 CFLAGS="-g"
drh710658c2012-01-16 13:00:05 +00002870 cat >conftest.$ac_ext <<_ACEOF
2871/* confdefs.h. */
2872_ACEOF
2873cat confdefs.h >>conftest.$ac_ext
2874cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002875/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002876
2877int
2878main ()
2879{
2880
2881 ;
2882 return 0;
2883}
2884_ACEOF
drh710658c2012-01-16 13:00:05 +00002885rm -f conftest.$ac_objext
2886if { (ac_try="$ac_compile"
2887case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890esac
2891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2892$as_echo "$ac_try_echo") >&5
2893 (eval "$ac_compile") 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } && {
2900 test -z "$ac_c_werror_flag" ||
2901 test ! -s conftest.err
2902 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002903 ac_cv_prog_cc_g=yes
2904else
drh710658c2012-01-16 13:00:05 +00002905 $as_echo "$as_me: failed program was:" >&5
2906sed 's/^/| /' conftest.$ac_ext >&5
2907
2908 CFLAGS=""
2909 cat >conftest.$ac_ext <<_ACEOF
2910/* confdefs.h. */
2911_ACEOF
2912cat confdefs.h >>conftest.$ac_ext
2913cat >>conftest.$ac_ext <<_ACEOF
drh8b727472009-01-19 18:18:40 +00002914/* end confdefs.h. */
2915
2916int
2917main ()
2918{
2919
2920 ;
2921 return 0;
2922}
2923_ACEOF
drh710658c2012-01-16 13:00:05 +00002924rm -f conftest.$ac_objext
2925if { (ac_try="$ac_compile"
2926case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929esac
2930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2931$as_echo "$ac_try_echo") >&5
2932 (eval "$ac_compile") 2>conftest.er1
2933 ac_status=$?
2934 grep -v '^ *+' conftest.er1 >conftest.err
2935 rm -f conftest.er1
2936 cat conftest.err >&5
2937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } && {
2939 test -z "$ac_c_werror_flag" ||
2940 test ! -s conftest.err
2941 } && test -s conftest.$ac_objext; then
2942 :
dana9f39fd2011-08-12 16:34:42 +00002943else
drh710658c2012-01-16 13:00:05 +00002944 $as_echo "$as_me: failed program was:" >&5
2945sed 's/^/| /' conftest.$ac_ext >&5
2946
2947 ac_c_werror_flag=$ac_save_c_werror_flag
drh8b727472009-01-19 18:18:40 +00002948 CFLAGS="-g"
drh710658c2012-01-16 13:00:05 +00002949 cat >conftest.$ac_ext <<_ACEOF
2950/* confdefs.h. */
2951_ACEOF
2952cat confdefs.h >>conftest.$ac_ext
2953cat >>conftest.$ac_ext <<_ACEOF
drh8b727472009-01-19 18:18:40 +00002954/* end confdefs.h. */
2955
2956int
2957main ()
2958{
2959
2960 ;
2961 return 0;
2962}
2963_ACEOF
drh710658c2012-01-16 13:00:05 +00002964rm -f conftest.$ac_objext
2965if { (ac_try="$ac_compile"
2966case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969esac
2970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2971$as_echo "$ac_try_echo") >&5
2972 (eval "$ac_compile") 2>conftest.er1
2973 ac_status=$?
2974 grep -v '^ *+' conftest.er1 >conftest.err
2975 rm -f conftest.er1
2976 cat conftest.err >&5
2977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } && {
2979 test -z "$ac_c_werror_flag" ||
2980 test ! -s conftest.err
2981 } && test -s conftest.$ac_objext; then
drh8b727472009-01-19 18:18:40 +00002982 ac_cv_prog_cc_g=yes
drh710658c2012-01-16 13:00:05 +00002983else
2984 $as_echo "$as_me: failed program was:" >&5
2985sed 's/^/| /' conftest.$ac_ext >&5
2986
2987
drh71eb93e2001-09-28 01:34:43 +00002988fi
drh710658c2012-01-16 13:00:05 +00002989
drh8b727472009-01-19 18:18:40 +00002990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002991fi
drh710658c2012-01-16 13:00:05 +00002992
drh8b727472009-01-19 18:18:40 +00002993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2994fi
drh710658c2012-01-16 13:00:05 +00002995
drh8b727472009-01-19 18:18:40 +00002996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2997 ac_c_werror_flag=$ac_save_c_werror_flag
2998fi
drh710658c2012-01-16 13:00:05 +00002999{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh8b727472009-01-19 18:18:40 +00003000$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003001if test "$ac_test_CFLAGS" = set; then
3002 CFLAGS=$ac_save_CFLAGS
3003elif test $ac_cv_prog_cc_g = yes; then
3004 if test "$GCC" = yes; then
3005 CFLAGS="-g -O2"
3006 else
3007 CFLAGS="-g"
3008 fi
3009else
3010 if test "$GCC" = yes; then
3011 CFLAGS="-O2"
3012 else
3013 CFLAGS=
3014 fi
3015fi
drh710658c2012-01-16 13:00:05 +00003016{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
drh8b727472009-01-19 18:18:40 +00003017$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
drh710658c2012-01-16 13:00:05 +00003018if test "${ac_cv_prog_cc_c89+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003019 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003020else
drh8b727472009-01-19 18:18:40 +00003021 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003022ac_save_CC=$CC
drh710658c2012-01-16 13:00:05 +00003023cat >conftest.$ac_ext <<_ACEOF
3024/* confdefs.h. */
3025_ACEOF
3026cat confdefs.h >>conftest.$ac_ext
3027cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003028/* end confdefs.h. */
3029#include <stdarg.h>
3030#include <stdio.h>
3031#include <sys/types.h>
3032#include <sys/stat.h>
3033/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3034struct buf { int x; };
3035FILE * (*rcsopen) (struct buf *, struct stat *, int);
3036static char *e (p, i)
3037 char **p;
3038 int i;
3039{
3040 return p[i];
3041}
3042static char *f (char * (*g) (char **, int), char **p, ...)
3043{
3044 char *s;
3045 va_list v;
3046 va_start (v,p);
3047 s = g (p, va_arg (v,int));
3048 va_end (v);
3049 return s;
3050}
a.rottmann964dbb12004-02-26 19:47:42 +00003051
3052/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3053 function prototypes and stuff, but not '\xHH' hex character constants.
3054 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003055 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003056 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3057 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003058 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003059int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3060
drh8b727472009-01-19 18:18:40 +00003061/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3062 inside strings and character constants. */
3063#define FOO(x) 'x'
3064int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3065
a.rottmann84e63352003-03-24 09:42:16 +00003066int test (int i, double x);
3067struct s1 {int (*f) (int a);};
3068struct s2 {int (*f) (double a);};
3069int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3070int argc;
3071char **argv;
3072int
3073main ()
3074{
3075return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3076 ;
3077 return 0;
3078}
3079_ACEOF
drh8b727472009-01-19 18:18:40 +00003080for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3081 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003082do
3083 CC="$ac_save_CC $ac_arg"
drh710658c2012-01-16 13:00:05 +00003084 rm -f conftest.$ac_objext
3085if { (ac_try="$ac_compile"
3086case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089esac
3090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3091$as_echo "$ac_try_echo") >&5
3092 (eval "$ac_compile") 2>conftest.er1
3093 ac_status=$?
3094 grep -v '^ *+' conftest.er1 >conftest.err
3095 rm -f conftest.er1
3096 cat conftest.err >&5
3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } && {
3099 test -z "$ac_c_werror_flag" ||
3100 test ! -s conftest.err
3101 } && test -s conftest.$ac_objext; then
drh8b727472009-01-19 18:18:40 +00003102 ac_cv_prog_cc_c89=$ac_arg
drh710658c2012-01-16 13:00:05 +00003103else
3104 $as_echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107
a.rottmann84e63352003-03-24 09:42:16 +00003108fi
drh710658c2012-01-16 13:00:05 +00003109
drh8b727472009-01-19 18:18:40 +00003110rm -f core conftest.err conftest.$ac_objext
3111 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003112done
drh8b727472009-01-19 18:18:40 +00003113rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003114CC=$ac_save_CC
3115
3116fi
drh8b727472009-01-19 18:18:40 +00003117# AC_CACHE_VAL
3118case "x$ac_cv_prog_cc_c89" in
3119 x)
drh710658c2012-01-16 13:00:05 +00003120 { $as_echo "$as_me:$LINENO: result: none needed" >&5
drh8b727472009-01-19 18:18:40 +00003121$as_echo "none needed" >&6; } ;;
3122 xno)
drh710658c2012-01-16 13:00:05 +00003123 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
drh8b727472009-01-19 18:18:40 +00003124$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003125 *)
drh8b727472009-01-19 18:18:40 +00003126 CC="$CC $ac_cv_prog_cc_c89"
drh710658c2012-01-16 13:00:05 +00003127 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
drh8b727472009-01-19 18:18:40 +00003128$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003129esac
3130
a.rottmann84e63352003-03-24 09:42:16 +00003131
drh71eb93e2001-09-28 01:34:43 +00003132ac_ext=c
3133ac_cpp='$CPP $CPPFLAGS'
3134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136ac_compiler_gnu=$ac_cv_c_compiler_gnu
3137
drh710658c2012-01-16 13:00:05 +00003138{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
drh8b727472009-01-19 18:18:40 +00003139$as_echo_n "checking for a sed that does not truncate output... " >&6; }
drh710658c2012-01-16 13:00:05 +00003140if test "${ac_cv_path_SED+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003141 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003142else
drh8b727472009-01-19 18:18:40 +00003143 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3144 for ac_i in 1 2 3 4 5 6 7; do
3145 ac_script="$ac_script$as_nl$ac_script"
3146 done
3147 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
drh710658c2012-01-16 13:00:05 +00003148 $as_unset ac_script || ac_script=
drh8b727472009-01-19 18:18:40 +00003149 if test -z "$SED"; then
3150 ac_path_SED_found=false
3151 # Loop through the user's path and test for each of PROGNAME-LIST
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003153for as_dir in $PATH
3154do
3155 IFS=$as_save_IFS
3156 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003157 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003158 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003159 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3160 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3161# Check for GNU ac_path_SED and select it if it is found.
3162 # Check for GNU $ac_path_SED
3163case `"$ac_path_SED" --version 2>&1` in
3164*GNU*)
3165 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3166*)
3167 ac_count=0
3168 $as_echo_n 0123456789 >"conftest.in"
3169 while :
3170 do
3171 cat "conftest.in" "conftest.in" >"conftest.tmp"
3172 mv "conftest.tmp" "conftest.in"
3173 cp "conftest.in" "conftest.nl"
3174 $as_echo '' >> "conftest.nl"
3175 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3176 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drh710658c2012-01-16 13:00:05 +00003177 ac_count=`expr $ac_count + 1`
drh8b727472009-01-19 18:18:40 +00003178 if test $ac_count -gt ${ac_path_SED_max-0}; then
3179 # Best one so far, save it but keep looking for a better one
3180 ac_cv_path_SED="$ac_path_SED"
3181 ac_path_SED_max=$ac_count
3182 fi
3183 # 10*(2^10) chars as input seems more than enough
3184 test $ac_count -gt 10 && break
3185 done
3186 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3187esac
3188
3189 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003190 done
3191 done
drh710658c2012-01-16 13:00:05 +00003192done
mlcreech636a9952008-05-05 22:52:56 +00003193IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003194 if test -z "$ac_cv_path_SED"; then
drh710658c2012-01-16 13:00:05 +00003195 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3196$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3197 { (exit 1); exit 1; }; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003198 fi
drh8b727472009-01-19 18:18:40 +00003199else
3200 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003201fi
drh866108f2008-05-13 00:57:21 +00003202
drh8b727472009-01-19 18:18:40 +00003203fi
drh710658c2012-01-16 13:00:05 +00003204{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
drh8b727472009-01-19 18:18:40 +00003205$as_echo "$ac_cv_path_SED" >&6; }
3206 SED="$ac_cv_path_SED"
3207 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003208
mlcreech636a9952008-05-05 22:52:56 +00003209test -z "$SED" && SED=sed
3210Xsed="$SED -e 1s/^X//"
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
drh710658c2012-01-16 13:00:05 +00003222{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
drh8b727472009-01-19 18:18:40 +00003223$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
drh710658c2012-01-16 13:00:05 +00003224if test "${ac_cv_path_GREP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003225 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003226else
drh8b727472009-01-19 18:18:40 +00003227 if test -z "$GREP"; then
3228 ac_path_GREP_found=false
3229 # Loop through the user's path and test for each of PROGNAME-LIST
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3232do
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003235 for ac_prog in grep ggrep; do
drh8b727472009-01-19 18:18:40 +00003236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3238 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3239# Check for GNU ac_path_GREP and select it if it is found.
3240 # Check for GNU $ac_path_GREP
3241case `"$ac_path_GREP" --version 2>&1` in
3242*GNU*)
3243 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3244*)
3245 ac_count=0
3246 $as_echo_n 0123456789 >"conftest.in"
3247 while :
3248 do
3249 cat "conftest.in" "conftest.in" >"conftest.tmp"
3250 mv "conftest.tmp" "conftest.in"
3251 cp "conftest.in" "conftest.nl"
3252 $as_echo 'GREP' >> "conftest.nl"
3253 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drh710658c2012-01-16 13:00:05 +00003255 ac_count=`expr $ac_count + 1`
drh8b727472009-01-19 18:18:40 +00003256 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3257 # Best one so far, save it but keep looking for a better one
3258 ac_cv_path_GREP="$ac_path_GREP"
3259 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003260 fi
drh8b727472009-01-19 18:18:40 +00003261 # 10*(2^10) chars as input seems more than enough
3262 test $ac_count -gt 10 && break
3263 done
3264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3265esac
3266
3267 $ac_path_GREP_found && break 3
3268 done
3269 done
drh710658c2012-01-16 13:00:05 +00003270done
drh8b727472009-01-19 18:18:40 +00003271IFS=$as_save_IFS
3272 if test -z "$ac_cv_path_GREP"; then
drh710658c2012-01-16 13:00:05 +00003273 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3274$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3275 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00003276 fi
3277else
3278 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003279fi
drh8b727472009-01-19 18:18:40 +00003280
3281fi
drh710658c2012-01-16 13:00:05 +00003282{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
drh8b727472009-01-19 18:18:40 +00003283$as_echo "$ac_cv_path_GREP" >&6; }
3284 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003285
3286
drh710658c2012-01-16 13:00:05 +00003287{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
drh8b727472009-01-19 18:18:40 +00003288$as_echo_n "checking for egrep... " >&6; }
drh710658c2012-01-16 13:00:05 +00003289if test "${ac_cv_path_EGREP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003290 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003291else
drh8b727472009-01-19 18:18:40 +00003292 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3293 then ac_cv_path_EGREP="$GREP -E"
3294 else
3295 if test -z "$EGREP"; then
3296 ac_path_EGREP_found=false
3297 # Loop through the user's path and test for each of PROGNAME-LIST
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3300do
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003303 for ac_prog in egrep; do
drh8b727472009-01-19 18:18:40 +00003304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3306 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3307# Check for GNU ac_path_EGREP and select it if it is found.
3308 # Check for GNU $ac_path_EGREP
3309case `"$ac_path_EGREP" --version 2>&1` in
3310*GNU*)
3311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3312*)
3313 ac_count=0
3314 $as_echo_n 0123456789 >"conftest.in"
3315 while :
3316 do
3317 cat "conftest.in" "conftest.in" >"conftest.tmp"
3318 mv "conftest.tmp" "conftest.in"
3319 cp "conftest.in" "conftest.nl"
3320 $as_echo 'EGREP' >> "conftest.nl"
3321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drh710658c2012-01-16 13:00:05 +00003323 ac_count=`expr $ac_count + 1`
drh8b727472009-01-19 18:18:40 +00003324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3325 # Best one so far, save it but keep looking for a better one
3326 ac_cv_path_EGREP="$ac_path_EGREP"
3327 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003328 fi
drh8b727472009-01-19 18:18:40 +00003329 # 10*(2^10) chars as input seems more than enough
3330 test $ac_count -gt 10 && break
3331 done
3332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3333esac
3334
3335 $ac_path_EGREP_found && break 3
3336 done
3337 done
drh710658c2012-01-16 13:00:05 +00003338done
drh8b727472009-01-19 18:18:40 +00003339IFS=$as_save_IFS
3340 if test -z "$ac_cv_path_EGREP"; then
drh710658c2012-01-16 13:00:05 +00003341 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3342$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3343 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00003344 fi
3345else
3346 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003347fi
drh8b727472009-01-19 18:18:40 +00003348
3349 fi
3350fi
drh710658c2012-01-16 13:00:05 +00003351{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
drh8b727472009-01-19 18:18:40 +00003352$as_echo "$ac_cv_path_EGREP" >&6; }
3353 EGREP="$ac_cv_path_EGREP"
3354
3355
drh710658c2012-01-16 13:00:05 +00003356{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
drh8b727472009-01-19 18:18:40 +00003357$as_echo_n "checking for fgrep... " >&6; }
drh710658c2012-01-16 13:00:05 +00003358if test "${ac_cv_path_FGREP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003359 $as_echo_n "(cached) " >&6
3360else
3361 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3362 then ac_cv_path_FGREP="$GREP -F"
3363 else
3364 if test -z "$FGREP"; then
3365 ac_path_FGREP_found=false
3366 # Loop through the user's path and test for each of PROGNAME-LIST
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3369do
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003372 for ac_prog in fgrep; do
drh8b727472009-01-19 18:18:40 +00003373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3375 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3376# Check for GNU ac_path_FGREP and select it if it is found.
3377 # Check for GNU $ac_path_FGREP
3378case `"$ac_path_FGREP" --version 2>&1` in
3379*GNU*)
3380 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3381*)
3382 ac_count=0
3383 $as_echo_n 0123456789 >"conftest.in"
3384 while :
3385 do
3386 cat "conftest.in" "conftest.in" >"conftest.tmp"
3387 mv "conftest.tmp" "conftest.in"
3388 cp "conftest.in" "conftest.nl"
3389 $as_echo 'FGREP' >> "conftest.nl"
3390 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drh710658c2012-01-16 13:00:05 +00003392 ac_count=`expr $ac_count + 1`
drh8b727472009-01-19 18:18:40 +00003393 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3394 # Best one so far, save it but keep looking for a better one
3395 ac_cv_path_FGREP="$ac_path_FGREP"
3396 ac_path_FGREP_max=$ac_count
3397 fi
3398 # 10*(2^10) chars as input seems more than enough
3399 test $ac_count -gt 10 && break
3400 done
3401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3402esac
3403
3404 $ac_path_FGREP_found && break 3
3405 done
3406 done
drh710658c2012-01-16 13:00:05 +00003407done
drh8b727472009-01-19 18:18:40 +00003408IFS=$as_save_IFS
3409 if test -z "$ac_cv_path_FGREP"; then
drh710658c2012-01-16 13:00:05 +00003410 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3411$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3412 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00003413 fi
3414else
3415 ac_cv_path_FGREP=$FGREP
3416fi
3417
3418 fi
3419fi
drh710658c2012-01-16 13:00:05 +00003420{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
drh8b727472009-01-19 18:18:40 +00003421$as_echo "$ac_cv_path_FGREP" >&6; }
3422 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003423
3424
3425test -z "$GREP" && GREP=grep
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
a.rottmann9bc8b932004-02-29 15:18:31 +00003442
3443
a.rottmann84e63352003-03-24 09:42:16 +00003444
drh8b727472009-01-19 18:18:40 +00003445# Check whether --with-gnu-ld was given.
drh710658c2012-01-16 13:00:05 +00003446if test "${with_gnu_ld+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003447 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003448else
3449 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003450fi
3451
drh71eb93e2001-09-28 01:34:43 +00003452ac_prog=ld
3453if test "$GCC" = yes; then
3454 # Check if gcc -print-prog-name=ld gives a path.
drh710658c2012-01-16 13:00:05 +00003455 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
drh8b727472009-01-19 18:18:40 +00003456$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003457 case $host in
3458 *-*-mingw*)
3459 # gcc leaves a trailing carriage return which upsets mingw
3460 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3461 *)
3462 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3463 esac
3464 case $ac_prog in
3465 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003466 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003467 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003468 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003469 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3470 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3471 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003472 done
3473 test -z "$LD" && LD="$ac_prog"
3474 ;;
3475 "")
3476 # If it fails, then pretend we aren't using GCC.
3477 ac_prog=ld
3478 ;;
3479 *)
3480 # If it is relative, then search for the first ld in PATH.
3481 with_gnu_ld=unknown
3482 ;;
3483 esac
3484elif test "$with_gnu_ld" = yes; then
drh710658c2012-01-16 13:00:05 +00003485 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003486$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003487else
drh710658c2012-01-16 13:00:05 +00003488 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003489$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003490fi
drh710658c2012-01-16 13:00:05 +00003491if test "${lt_cv_path_LD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003492 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003493else
3494 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003495 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003496 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003497 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003498 test -z "$ac_dir" && ac_dir=.
3499 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3500 lt_cv_path_LD="$ac_dir/$ac_prog"
3501 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003502 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003503 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003504 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3505 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003506 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003507 ;;
3508 *)
drh71eb93e2001-09-28 01:34:43 +00003509 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003510 ;;
3511 esac
drh71eb93e2001-09-28 01:34:43 +00003512 fi
3513 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003514 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003515else
3516 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3517fi
3518fi
3519
3520LD="$lt_cv_path_LD"
3521if test -n "$LD"; then
drh710658c2012-01-16 13:00:05 +00003522 { $as_echo "$as_me:$LINENO: result: $LD" >&5
drh8b727472009-01-19 18:18:40 +00003523$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003524else
drh710658c2012-01-16 13:00:05 +00003525 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003526$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003527fi
drh710658c2012-01-16 13:00:05 +00003528test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3529$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3530 { (exit 1); exit 1; }; }
3531{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003532$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drh710658c2012-01-16 13:00:05 +00003533if test "${lt_cv_prog_gnu_ld+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003534 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003535else
vapier7f19c022007-02-17 14:46:31 +00003536 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003537case `$LD -v 2>&1 </dev/null` in
3538*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003539 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003540 ;;
3541*)
drh71eb93e2001-09-28 01:34:43 +00003542 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003543 ;;
3544esac
drh71eb93e2001-09-28 01:34:43 +00003545fi
drh710658c2012-01-16 13:00:05 +00003546{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
drh8b727472009-01-19 18:18:40 +00003547$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003548with_gnu_ld=$lt_cv_prog_gnu_ld
3549
a.rottmann84e63352003-03-24 09:42:16 +00003550
drh71eb93e2001-09-28 01:34:43 +00003551
mlcreech636a9952008-05-05 22:52:56 +00003552
3553
3554
3555
3556
3557
drh710658c2012-01-16 13:00:05 +00003558{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
drh8b727472009-01-19 18:18:40 +00003559$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drh710658c2012-01-16 13:00:05 +00003560if test "${lt_cv_path_NM+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003561 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003562else
3563 if test -n "$NM"; then
3564 # Let the user override the test.
3565 lt_cv_path_NM="$NM"
3566else
vapier7f19c022007-02-17 14:46:31 +00003567 lt_nm_to_check="${ac_tool_prefix}nm"
3568 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3569 lt_nm_to_check="$lt_nm_to_check nm"
3570 fi
3571 for lt_tmp_nm in $lt_nm_to_check; do
3572 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3573 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3574 IFS="$lt_save_ifs"
3575 test -z "$ac_dir" && ac_dir=.
3576 tmp_nm="$ac_dir/$lt_tmp_nm"
3577 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3578 # Check to see if the nm accepts a BSD-compat flag.
3579 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3580 # nm: unknown option "B" ignored
3581 # Tru64's nm complains that /dev/null is an invalid object file
3582 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3583 */dev/null* | *'Invalid file or object type'*)
3584 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003585 break
3586 ;;
3587 *)
vapier7f19c022007-02-17 14:46:31 +00003588 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3589 */dev/null*)
3590 lt_cv_path_NM="$tmp_nm -p"
3591 break
3592 ;;
3593 *)
3594 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3595 continue # so that we can try to find one that supports BSD flags
3596 ;;
3597 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003598 ;;
3599 esac
vapier7f19c022007-02-17 14:46:31 +00003600 fi
3601 done
3602 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003603 done
mlcreech636a9952008-05-05 22:52:56 +00003604 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003605fi
3606fi
drh710658c2012-01-16 13:00:05 +00003607{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
drh8b727472009-01-19 18:18:40 +00003608$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003609if test "$lt_cv_path_NM" != "no"; then
3610 NM="$lt_cv_path_NM"
3611else
3612 # Didn't find any BSD compatible name lister, look for dumpbin.
3613 if test -n "$ac_tool_prefix"; then
3614 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3615 do
3616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3617set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +00003618{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003619$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00003620if test "${ac_cv_prog_DUMPBIN+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003621 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003622else
3623 if test -n "$DUMPBIN"; then
3624 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3625else
3626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627for as_dir in $PATH
3628do
3629 IFS=$as_save_IFS
3630 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003631 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003632 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 +00003633 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drh710658c2012-01-16 13:00:05 +00003634 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003635 break 2
3636 fi
3637done
drh710658c2012-01-16 13:00:05 +00003638done
drh8b727472009-01-19 18:18:40 +00003639IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003640
mlcreech636a9952008-05-05 22:52:56 +00003641fi
3642fi
3643DUMPBIN=$ac_cv_prog_DUMPBIN
3644if test -n "$DUMPBIN"; then
drh710658c2012-01-16 13:00:05 +00003645 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003646$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003647else
drh710658c2012-01-16 13:00:05 +00003648 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003649$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003650fi
3651
drh8b727472009-01-19 18:18:40 +00003652
mlcreech636a9952008-05-05 22:52:56 +00003653 test -n "$DUMPBIN" && break
3654 done
3655fi
3656if test -z "$DUMPBIN"; then
3657 ac_ct_DUMPBIN=$DUMPBIN
3658 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3659do
3660 # Extract the first word of "$ac_prog", so it can be a program name with args.
3661set dummy $ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +00003662{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003663$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00003664if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003665 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003666else
3667 if test -n "$ac_ct_DUMPBIN"; then
3668 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3669else
3670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671for as_dir in $PATH
3672do
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003675 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003676 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 +00003677 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drh710658c2012-01-16 13:00:05 +00003678 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003679 break 2
3680 fi
3681done
drh710658c2012-01-16 13:00:05 +00003682done
drh8b727472009-01-19 18:18:40 +00003683IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003684
3685fi
3686fi
3687ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3688if test -n "$ac_ct_DUMPBIN"; then
drh710658c2012-01-16 13:00:05 +00003689 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003690$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003691else
drh710658c2012-01-16 13:00:05 +00003692 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003693$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003694fi
3695
drh8b727472009-01-19 18:18:40 +00003696
mlcreech636a9952008-05-05 22:52:56 +00003697 test -n "$ac_ct_DUMPBIN" && break
3698done
3699
drh8b727472009-01-19 18:18:40 +00003700 if test "x$ac_ct_DUMPBIN" = x; then
3701 DUMPBIN=":"
3702 else
3703 case $cross_compiling:$ac_tool_warned in
3704yes:)
drh710658c2012-01-16 13:00:05 +00003705{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3706whose name does not start with the host triplet. If you think this
3707configuration is useful to you, please write to autoconf@gnu.org." >&5
3708$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3709whose name does not start with the host triplet. If you think this
3710configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00003711ac_tool_warned=yes ;;
3712esac
3713 DUMPBIN=$ac_ct_DUMPBIN
3714 fi
mlcreech636a9952008-05-05 22:52:56 +00003715fi
3716
3717
3718 if test "$DUMPBIN" != ":"; then
3719 NM="$DUMPBIN"
3720 fi
3721fi
3722test -z "$NM" && NM=nm
3723
3724
3725
3726
3727
3728
drh710658c2012-01-16 13:00:05 +00003729{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
drh8b727472009-01-19 18:18:40 +00003730$as_echo_n "checking the name lister ($NM) interface... " >&6; }
drh710658c2012-01-16 13:00:05 +00003731if test "${lt_cv_nm_interface+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003732 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003733else
3734 lt_cv_nm_interface="BSD nm"
3735 echo "int some_variable = 0;" > conftest.$ac_ext
drh92f76572012-12-13 18:51:53 +00003736 (eval echo "\"\$as_me:3736: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003737 (eval "$ac_compile" 2>conftest.err)
3738 cat conftest.err >&5
drh92f76572012-12-13 18:51:53 +00003739 (eval echo "\"\$as_me:3739: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003740 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3741 cat conftest.err >&5
drh92f76572012-12-13 18:51:53 +00003742 (eval echo "\"\$as_me:3742: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003743 cat conftest.out >&5
3744 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3745 lt_cv_nm_interface="MS dumpbin"
3746 fi
3747 rm -f conftest*
3748fi
drh710658c2012-01-16 13:00:05 +00003749{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
drh8b727472009-01-19 18:18:40 +00003750$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003751
drh710658c2012-01-16 13:00:05 +00003752{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
drh8b727472009-01-19 18:18:40 +00003753$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003754LN_S=$as_ln_s
3755if test "$LN_S" = "ln -s"; then
drh710658c2012-01-16 13:00:05 +00003756 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00003757$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003758else
drh710658c2012-01-16 13:00:05 +00003759 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
drh8b727472009-01-19 18:18:40 +00003760$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003761fi
3762
mlcreech636a9952008-05-05 22:52:56 +00003763# find the maximum length of command line arguments
drh710658c2012-01-16 13:00:05 +00003764{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
drh8b727472009-01-19 18:18:40 +00003765$as_echo_n "checking the maximum length of command line arguments... " >&6; }
drh710658c2012-01-16 13:00:05 +00003766if test "${lt_cv_sys_max_cmd_len+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003767 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003768else
3769 i=0
3770 teststring="ABCD"
3771
3772 case $build_os in
3773 msdosdjgpp*)
3774 # On DJGPP, this test can blow up pretty badly due to problems in libc
3775 # (any single argument exceeding 2000 bytes causes a buffer overrun
3776 # during glob expansion). Even if it were fixed, the result of this
3777 # check would be larger than it should be.
3778 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3779 ;;
3780
3781 gnu*)
3782 # Under GNU Hurd, this test is not required because there is
3783 # no limit to the length of command line arguments.
3784 # Libtool will interpret -1 as no limit whatsoever
3785 lt_cv_sys_max_cmd_len=-1;
3786 ;;
3787
vapier6acb2cf2009-01-28 04:46:28 +00003788 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003789 # On Win9x/ME, this test blows up -- it succeeds, but takes
3790 # about 5 minutes as the teststring grows exponentially.
3791 # Worse, since 9x/ME are not pre-emptively multitasking,
3792 # you end up with a "frozen" computer, even though with patience
3793 # the test eventually succeeds (with a max line length of 256k).
3794 # Instead, let's just punt: use the minimum linelength reported by
3795 # all of the supported platforms: 8192 (on NT/2K/XP).
3796 lt_cv_sys_max_cmd_len=8192;
3797 ;;
3798
3799 amigaos*)
3800 # On AmigaOS with pdksh, this test takes hours, literally.
3801 # So we just punt and use a minimum line length of 8192.
3802 lt_cv_sys_max_cmd_len=8192;
3803 ;;
3804
3805 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3806 # This has been around since 386BSD, at least. Likely further.
3807 if test -x /sbin/sysctl; then
3808 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3809 elif test -x /usr/sbin/sysctl; then
3810 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3811 else
3812 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3813 fi
3814 # And add a safety zone
3815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3817 ;;
3818
3819 interix*)
3820 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3821 lt_cv_sys_max_cmd_len=196608
3822 ;;
3823
3824 osf*)
3825 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3826 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3827 # nice to cause kernel panics so lets avoid the loop below.
3828 # First set a reasonable default.
3829 lt_cv_sys_max_cmd_len=16384
3830 #
3831 if test -x /sbin/sysconfig; then
3832 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3833 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3834 esac
3835 fi
3836 ;;
3837 sco3.2v5*)
3838 lt_cv_sys_max_cmd_len=102400
3839 ;;
3840 sysv5* | sco5v6* | sysv4.2uw2*)
3841 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3842 if test -n "$kargmax"; then
3843 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3844 else
3845 lt_cv_sys_max_cmd_len=32768
3846 fi
3847 ;;
3848 *)
3849 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3850 if test -n "$lt_cv_sys_max_cmd_len"; then
3851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3853 else
3854 # Make teststring a little bigger before we do anything with it.
3855 # a 1K string should be a reasonable start.
3856 for i in 1 2 3 4 5 6 7 8 ; do
3857 teststring=$teststring$teststring
3858 done
3859 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3860 # If test is not a shell built-in, we'll probably end up computing a
3861 # maximum length that is only half of the actual maximum length, but
3862 # we can't tell.
3863 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3864 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3865 test $i != 17 # 1/2 MB should be enough
3866 do
3867 i=`expr $i + 1`
3868 teststring=$teststring$teststring
3869 done
3870 # Only check the string length outside the loop.
3871 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3872 teststring=
3873 # Add a significant safety factor because C++ compilers can tack on
3874 # massive amounts of additional arguments before passing them to the
3875 # linker. It appears as though 1/2 is a usable value.
3876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3877 fi
3878 ;;
3879 esac
3880
3881fi
3882
3883if test -n $lt_cv_sys_max_cmd_len ; then
drh710658c2012-01-16 13:00:05 +00003884 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
drh8b727472009-01-19 18:18:40 +00003885$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003886else
drh710658c2012-01-16 13:00:05 +00003887 { $as_echo "$as_me:$LINENO: result: none" >&5
drh8b727472009-01-19 18:18:40 +00003888$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003889fi
3890max_cmd_len=$lt_cv_sys_max_cmd_len
3891
3892
3893
3894
3895
3896
3897: ${CP="cp -f"}
3898: ${MV="mv -f"}
3899: ${RM="rm -f"}
3900
drh710658c2012-01-16 13:00:05 +00003901{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
drh8b727472009-01-19 18:18:40 +00003902$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003903# Try some XSI features
3904xsi_shell=no
3905( _lt_dummy="a/b/c"
3906 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3907 = c,a/b,, \
3908 && eval 'test $(( 1 + 1 )) -eq 2 \
3909 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3910 && xsi_shell=yes
drh710658c2012-01-16 13:00:05 +00003911{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
drh8b727472009-01-19 18:18:40 +00003912$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003913
3914
drh710658c2012-01-16 13:00:05 +00003915{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
drh8b727472009-01-19 18:18:40 +00003916$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003917lt_shell_append=no
3918( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3919 >/dev/null 2>&1 \
3920 && lt_shell_append=yes
drh710658c2012-01-16 13:00:05 +00003921{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
drh8b727472009-01-19 18:18:40 +00003922$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003923
3924
3925if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3926 lt_unset=unset
3927else
3928 lt_unset=false
3929fi
3930
3931
3932
3933
3934
3935# test EBCDIC or ASCII
3936case `echo X|tr X '\101'` in
3937 A) # ASCII based system
3938 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3939 lt_SP2NL='tr \040 \012'
3940 lt_NL2SP='tr \015\012 \040\040'
3941 ;;
3942 *) # EBCDIC based system
3943 lt_SP2NL='tr \100 \n'
3944 lt_NL2SP='tr \r\n \100\100'
3945 ;;
3946esac
3947
3948
3949
3950
3951
3952
3953
3954
3955
drh710658c2012-01-16 13:00:05 +00003956{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
drh8b727472009-01-19 18:18:40 +00003957$as_echo_n "checking for $LD option to reload object files... " >&6; }
drh710658c2012-01-16 13:00:05 +00003958if test "${lt_cv_ld_reload_flag+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003959 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003960else
3961 lt_cv_ld_reload_flag='-r'
3962fi
drh710658c2012-01-16 13:00:05 +00003963{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
drh8b727472009-01-19 18:18:40 +00003964$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003965reload_flag=$lt_cv_ld_reload_flag
3966case $reload_flag in
3967"" | " "*) ;;
3968*) reload_flag=" $reload_flag" ;;
3969esac
3970reload_cmds='$LD$reload_flag -o $output$reload_objs'
3971case $host_os in
3972 darwin*)
3973 if test "$GCC" = yes; then
3974 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3975 else
3976 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3977 fi
3978 ;;
3979esac
3980
3981
3982
3983
3984
3985
3986
3987
3988
vapier6acb2cf2009-01-28 04:46:28 +00003989if test -n "$ac_tool_prefix"; then
3990 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3991set dummy ${ac_tool_prefix}objdump; ac_word=$2
drh710658c2012-01-16 13:00:05 +00003992{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00003993$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00003994if test "${ac_cv_prog_OBJDUMP+set}" = set; then
vapier6acb2cf2009-01-28 04:46:28 +00003995 $as_echo_n "(cached) " >&6
3996else
3997 if test -n "$OBJDUMP"; then
3998 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3999else
4000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001for as_dir in $PATH
4002do
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004005 for ac_exec_ext in '' $ac_executable_extensions; do
vapier6acb2cf2009-01-28 04:46:28 +00004006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
drh710658c2012-01-16 13:00:05 +00004008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004009 break 2
4010 fi
4011done
drh710658c2012-01-16 13:00:05 +00004012done
vapier6acb2cf2009-01-28 04:46:28 +00004013IFS=$as_save_IFS
4014
4015fi
4016fi
4017OBJDUMP=$ac_cv_prog_OBJDUMP
4018if test -n "$OBJDUMP"; then
drh710658c2012-01-16 13:00:05 +00004019 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004020$as_echo "$OBJDUMP" >&6; }
4021else
drh710658c2012-01-16 13:00:05 +00004022 { $as_echo "$as_me:$LINENO: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004023$as_echo "no" >&6; }
4024fi
4025
4026
4027fi
4028if test -z "$ac_cv_prog_OBJDUMP"; then
4029 ac_ct_OBJDUMP=$OBJDUMP
4030 # Extract the first word of "objdump", so it can be a program name with args.
4031set dummy objdump; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004032{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004033$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004034if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
vapier6acb2cf2009-01-28 04:46:28 +00004035 $as_echo_n "(cached) " >&6
4036else
4037 if test -n "$ac_ct_OBJDUMP"; then
4038 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4039else
4040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041for as_dir in $PATH
4042do
4043 IFS=$as_save_IFS
4044 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004045 for ac_exec_ext in '' $ac_executable_extensions; do
vapier6acb2cf2009-01-28 04:46:28 +00004046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4047 ac_cv_prog_ac_ct_OBJDUMP="objdump"
drh710658c2012-01-16 13:00:05 +00004048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004049 break 2
4050 fi
4051done
drh710658c2012-01-16 13:00:05 +00004052done
vapier6acb2cf2009-01-28 04:46:28 +00004053IFS=$as_save_IFS
4054
4055fi
4056fi
4057ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4058if test -n "$ac_ct_OBJDUMP"; then
drh710658c2012-01-16 13:00:05 +00004059 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004060$as_echo "$ac_ct_OBJDUMP" >&6; }
4061else
drh710658c2012-01-16 13:00:05 +00004062 { $as_echo "$as_me:$LINENO: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004063$as_echo "no" >&6; }
4064fi
4065
4066 if test "x$ac_ct_OBJDUMP" = x; then
4067 OBJDUMP="false"
4068 else
4069 case $cross_compiling:$ac_tool_warned in
4070yes:)
drh710658c2012-01-16 13:00:05 +00004071{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4072whose name does not start with the host triplet. If you think this
4073configuration is useful to you, please write to autoconf@gnu.org." >&5
4074$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4075whose name does not start with the host triplet. If you think this
4076configuration is useful to you, please write to autoconf@gnu.org." >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004077ac_tool_warned=yes ;;
4078esac
4079 OBJDUMP=$ac_ct_OBJDUMP
4080 fi
4081else
4082 OBJDUMP="$ac_cv_prog_OBJDUMP"
4083fi
4084
4085test -z "$OBJDUMP" && OBJDUMP=objdump
4086
4087
4088
4089
4090
4091
4092
4093
mlcreech636a9952008-05-05 22:52:56 +00004094
drh710658c2012-01-16 13:00:05 +00004095{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
drh8b727472009-01-19 18:18:40 +00004096$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drh710658c2012-01-16 13:00:05 +00004097if test "${lt_cv_deplibs_check_method+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004098 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004099else
4100 lt_cv_file_magic_cmd='$MAGIC_CMD'
4101lt_cv_file_magic_test_file=
4102lt_cv_deplibs_check_method='unknown'
4103# Need to set the preceding variable on all platforms that support
4104# interlibrary dependencies.
4105# 'none' -- dependencies not supported.
4106# `unknown' -- same as none, but documents that we really don't know.
4107# 'pass_all' -- all dependencies passed with no checks.
4108# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004109# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004110# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004111# If you have `file' or equivalent on your system and you're not sure
4112# whether `pass_all' will *always* work, you probably want this one.
4113
4114case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004115aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004116 lt_cv_deplibs_check_method=pass_all
4117 ;;
4118
4119beos*)
4120 lt_cv_deplibs_check_method=pass_all
4121 ;;
4122
vapier7f19c022007-02-17 14:46:31 +00004123bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4125 lt_cv_file_magic_cmd='/usr/bin/file -L'
4126 lt_cv_file_magic_test_file=/shlib/libc.so
4127 ;;
4128
a.rottmann9bc8b932004-02-29 15:18:31 +00004129cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004130 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004131 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004132 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004133 ;;
4134
4135mingw* | pw32*)
4136 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004137 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4138 # unless we find 'file', for example because we are cross-compiling.
4139 if ( file / ) >/dev/null 2>&1; then
4140 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4141 lt_cv_file_magic_cmd='func_win32_libid'
4142 else
4143 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4144 lt_cv_file_magic_cmd='$OBJDUMP -f'
4145 fi
drh71eb93e2001-09-28 01:34:43 +00004146 ;;
4147
vapier6acb2cf2009-01-28 04:46:28 +00004148cegcc)
4149 # use the weaker test based on 'objdump'. See mingw*.
4150 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4151 lt_cv_file_magic_cmd='$OBJDUMP -f'
4152 ;;
4153
drh71eb93e2001-09-28 01:34:43 +00004154darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004155 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004156 ;;
4157
mlcreech636a9952008-05-05 22:52:56 +00004158freebsd* | dragonfly*)
4159 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004160 case $host_cpu in
4161 i*86 )
4162 # Not sure whether the presence of OpenBSD here was a mistake.
4163 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004164 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 +00004165 lt_cv_file_magic_cmd=/usr/bin/file
4166 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4167 ;;
4168 esac
4169 else
4170 lt_cv_deplibs_check_method=pass_all
4171 fi
4172 ;;
4173
4174gnu*)
4175 lt_cv_deplibs_check_method=pass_all
4176 ;;
4177
a.rottmann9bc8b932004-02-29 15:18:31 +00004178hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004179 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004180 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004181 ia64*)
4182 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4183 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4184 ;;
4185 hppa*64*)
4186 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]'
4187 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4188 ;;
4189 *)
4190 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4191 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4192 ;;
4193 esac
drh71eb93e2001-09-28 01:34:43 +00004194 ;;
4195
mlcreech636a9952008-05-05 22:52:56 +00004196interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004197 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4199 ;;
4200
a.rottmann84e63352003-03-24 09:42:16 +00004201irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004202 case $LD in
4203 *-32|*"-32 ") libmagic=32-bit;;
4204 *-n32|*"-n32 ") libmagic=N32;;
4205 *-64|*"-64 ") libmagic=64-bit;;
4206 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004207 esac
drh71eb93e2001-09-28 01:34:43 +00004208 lt_cv_deplibs_check_method=pass_all
4209 ;;
4210
4211# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004212linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004213 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004214 ;;
4215
vapier7f19c022007-02-17 14:46:31 +00004216netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004217 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004219 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004220 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004221 fi
4222 ;;
4223
4224newos6*)
4225 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4226 lt_cv_file_magic_cmd=/usr/bin/file
4227 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4228 ;;
4229
mlcreech636a9952008-05-05 22:52:56 +00004230*nto* | *qnx*)
4231 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004232 ;;
4233
a.rottmann84e63352003-03-24 09:42:16 +00004234openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004235 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004236 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004237 else
vapier7f19c022007-02-17 14:46:31 +00004238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004239 fi
drh71eb93e2001-09-28 01:34:43 +00004240 ;;
4241
4242osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004243 lt_cv_deplibs_check_method=pass_all
4244 ;;
4245
mlcreech636a9952008-05-05 22:52:56 +00004246rdos*)
4247 lt_cv_deplibs_check_method=pass_all
4248 ;;
4249
drh71eb93e2001-09-28 01:34:43 +00004250solaris*)
4251 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004252 ;;
4253
mlcreech636a9952008-05-05 22:52:56 +00004254sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4255 lt_cv_deplibs_check_method=pass_all
4256 ;;
4257
vapier7f19c022007-02-17 14:46:31 +00004258sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004259 case $host_vendor in
4260 motorola)
4261 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]'
4262 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4263 ;;
4264 ncr)
4265 lt_cv_deplibs_check_method=pass_all
4266 ;;
4267 sequent)
4268 lt_cv_file_magic_cmd='/bin/file'
4269 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4270 ;;
4271 sni)
4272 lt_cv_file_magic_cmd='/bin/file'
4273 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4274 lt_cv_file_magic_test_file=/lib/libc.so
4275 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004276 siemens)
4277 lt_cv_deplibs_check_method=pass_all
4278 ;;
vapier7f19c022007-02-17 14:46:31 +00004279 pc)
4280 lt_cv_deplibs_check_method=pass_all
4281 ;;
drh71eb93e2001-09-28 01:34:43 +00004282 esac
4283 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004284
mlcreech636a9952008-05-05 22:52:56 +00004285tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004286 lt_cv_deplibs_check_method=pass_all
4287 ;;
drh71eb93e2001-09-28 01:34:43 +00004288esac
4289
4290fi
drh710658c2012-01-16 13:00:05 +00004291{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
drh8b727472009-01-19 18:18:40 +00004292$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004293file_magic_cmd=$lt_cv_file_magic_cmd
4294deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004295test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004296
drh71eb93e2001-09-28 01:34:43 +00004297
drh71eb93e2001-09-28 01:34:43 +00004298
drh71eb93e2001-09-28 01:34:43 +00004299
mlcreech636a9952008-05-05 22:52:56 +00004300
4301
4302
4303
4304
4305
4306
4307
4308if test -n "$ac_tool_prefix"; then
4309 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4310set dummy ${ac_tool_prefix}ar; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004311{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004312$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004313if test "${ac_cv_prog_AR+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004314 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004315else
4316 if test -n "$AR"; then
4317 ac_cv_prog_AR="$AR" # Let the user override the test.
4318else
4319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320for as_dir in $PATH
4321do
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004324 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004325 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 +00004326 ac_cv_prog_AR="${ac_tool_prefix}ar"
drh710658c2012-01-16 13:00:05 +00004327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004328 break 2
4329 fi
4330done
drh710658c2012-01-16 13:00:05 +00004331done
drh8b727472009-01-19 18:18:40 +00004332IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004333
4334fi
4335fi
4336AR=$ac_cv_prog_AR
4337if test -n "$AR"; then
drh710658c2012-01-16 13:00:05 +00004338 { $as_echo "$as_me:$LINENO: result: $AR" >&5
drh8b727472009-01-19 18:18:40 +00004339$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004340else
drh710658c2012-01-16 13:00:05 +00004341 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004342$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004343fi
4344
drh8b727472009-01-19 18:18:40 +00004345
mlcreech636a9952008-05-05 22:52:56 +00004346fi
4347if test -z "$ac_cv_prog_AR"; then
4348 ac_ct_AR=$AR
4349 # Extract the first word of "ar", so it can be a program name with args.
4350set dummy ar; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004351{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004352$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004353if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004354 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004355else
4356 if test -n "$ac_ct_AR"; then
4357 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4358else
4359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360for as_dir in $PATH
4361do
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004364 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004365 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 +00004366 ac_cv_prog_ac_ct_AR="ar"
drh710658c2012-01-16 13:00:05 +00004367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004368 break 2
4369 fi
4370done
drh710658c2012-01-16 13:00:05 +00004371done
drh8b727472009-01-19 18:18:40 +00004372IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004373
4374fi
4375fi
4376ac_ct_AR=$ac_cv_prog_ac_ct_AR
4377if test -n "$ac_ct_AR"; then
drh710658c2012-01-16 13:00:05 +00004378 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
drh8b727472009-01-19 18:18:40 +00004379$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004380else
drh710658c2012-01-16 13:00:05 +00004381 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004382$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004383fi
4384
drh8b727472009-01-19 18:18:40 +00004385 if test "x$ac_ct_AR" = x; then
4386 AR="false"
4387 else
4388 case $cross_compiling:$ac_tool_warned in
4389yes:)
drh710658c2012-01-16 13:00:05 +00004390{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4391whose name does not start with the host triplet. If you think this
4392configuration is useful to you, please write to autoconf@gnu.org." >&5
4393$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4394whose name does not start with the host triplet. If you think this
4395configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00004396ac_tool_warned=yes ;;
4397esac
4398 AR=$ac_ct_AR
4399 fi
mlcreech636a9952008-05-05 22:52:56 +00004400else
4401 AR="$ac_cv_prog_AR"
4402fi
4403
4404test -z "$AR" && AR=ar
4405test -z "$AR_FLAGS" && AR_FLAGS=cru
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417if test -n "$ac_tool_prefix"; then
4418 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4419set dummy ${ac_tool_prefix}strip; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004420{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004421$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004422if test "${ac_cv_prog_STRIP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004423 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004424else
4425 if test -n "$STRIP"; then
4426 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4427else
4428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429for as_dir in $PATH
4430do
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004433 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004434 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 +00004435 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drh710658c2012-01-16 13:00:05 +00004436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004437 break 2
4438 fi
4439done
drh710658c2012-01-16 13:00:05 +00004440done
drh8b727472009-01-19 18:18:40 +00004441IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004442
4443fi
4444fi
4445STRIP=$ac_cv_prog_STRIP
4446if test -n "$STRIP"; then
drh710658c2012-01-16 13:00:05 +00004447 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004448$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004449else
drh710658c2012-01-16 13:00:05 +00004450 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004451$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004452fi
4453
drh8b727472009-01-19 18:18:40 +00004454
mlcreech636a9952008-05-05 22:52:56 +00004455fi
4456if test -z "$ac_cv_prog_STRIP"; then
4457 ac_ct_STRIP=$STRIP
4458 # Extract the first word of "strip", so it can be a program name with args.
4459set dummy strip; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004460{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004461$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004462if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004463 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004464else
4465 if test -n "$ac_ct_STRIP"; then
4466 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4467else
4468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469for as_dir in $PATH
4470do
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004473 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004474 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 +00004475 ac_cv_prog_ac_ct_STRIP="strip"
drh710658c2012-01-16 13:00:05 +00004476 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004477 break 2
4478 fi
4479done
drh710658c2012-01-16 13:00:05 +00004480done
drh8b727472009-01-19 18:18:40 +00004481IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004482
4483fi
4484fi
4485ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4486if test -n "$ac_ct_STRIP"; then
drh710658c2012-01-16 13:00:05 +00004487 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004488$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004489else
drh710658c2012-01-16 13:00:05 +00004490 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004491$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004492fi
4493
drh8b727472009-01-19 18:18:40 +00004494 if test "x$ac_ct_STRIP" = x; then
4495 STRIP=":"
4496 else
4497 case $cross_compiling:$ac_tool_warned in
4498yes:)
drh710658c2012-01-16 13:00:05 +00004499{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4500whose name does not start with the host triplet. If you think this
4501configuration is useful to you, please write to autoconf@gnu.org." >&5
4502$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4503whose name does not start with the host triplet. If you think this
4504configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00004505ac_tool_warned=yes ;;
4506esac
4507 STRIP=$ac_ct_STRIP
4508 fi
mlcreech636a9952008-05-05 22:52:56 +00004509else
4510 STRIP="$ac_cv_prog_STRIP"
4511fi
4512
4513test -z "$STRIP" && STRIP=:
4514
4515
4516
4517
4518
4519
4520if test -n "$ac_tool_prefix"; then
4521 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4522set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004523{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004524$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004525if test "${ac_cv_prog_RANLIB+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004526 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004527else
4528 if test -n "$RANLIB"; then
4529 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4530else
4531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532for as_dir in $PATH
4533do
4534 IFS=$as_save_IFS
4535 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004536 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004537 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 +00004538 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drh710658c2012-01-16 13:00:05 +00004539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004540 break 2
4541 fi
4542done
drh710658c2012-01-16 13:00:05 +00004543done
drh8b727472009-01-19 18:18:40 +00004544IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004545
4546fi
4547fi
4548RANLIB=$ac_cv_prog_RANLIB
4549if test -n "$RANLIB"; then
drh710658c2012-01-16 13:00:05 +00004550 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004551$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004552else
drh710658c2012-01-16 13:00:05 +00004553 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004554$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004555fi
4556
drh8b727472009-01-19 18:18:40 +00004557
mlcreech636a9952008-05-05 22:52:56 +00004558fi
4559if test -z "$ac_cv_prog_RANLIB"; then
4560 ac_ct_RANLIB=$RANLIB
4561 # Extract the first word of "ranlib", so it can be a program name with args.
4562set dummy ranlib; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004563{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004564$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004565if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004566 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004567else
4568 if test -n "$ac_ct_RANLIB"; then
4569 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4570else
4571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH
4573do
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004576 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004577 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 +00004578 ac_cv_prog_ac_ct_RANLIB="ranlib"
drh710658c2012-01-16 13:00:05 +00004579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004580 break 2
4581 fi
4582done
drh710658c2012-01-16 13:00:05 +00004583done
drh8b727472009-01-19 18:18:40 +00004584IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004585
4586fi
4587fi
4588ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4589if test -n "$ac_ct_RANLIB"; then
drh710658c2012-01-16 13:00:05 +00004590 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004591$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004592else
drh710658c2012-01-16 13:00:05 +00004593 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004594$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004595fi
4596
drh8b727472009-01-19 18:18:40 +00004597 if test "x$ac_ct_RANLIB" = x; then
4598 RANLIB=":"
4599 else
4600 case $cross_compiling:$ac_tool_warned in
4601yes:)
drh710658c2012-01-16 13:00:05 +00004602{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4603whose name does not start with the host triplet. If you think this
4604configuration is useful to you, please write to autoconf@gnu.org." >&5
4605$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4606whose name does not start with the host triplet. If you think this
4607configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00004608ac_tool_warned=yes ;;
4609esac
4610 RANLIB=$ac_ct_RANLIB
4611 fi
mlcreech636a9952008-05-05 22:52:56 +00004612else
4613 RANLIB="$ac_cv_prog_RANLIB"
4614fi
4615
4616test -z "$RANLIB" && RANLIB=:
4617
4618
4619
4620
4621
4622
4623# Determine commands to create old-style static archives.
4624old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4625old_postinstall_cmds='chmod 644 $oldlib'
4626old_postuninstall_cmds=
4627
4628if test -n "$RANLIB"; then
4629 case $host_os in
4630 openbsd*)
4631 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4632 ;;
4633 *)
4634 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4635 ;;
4636 esac
4637 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4638fi
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
a.rottmann9bc8b932004-02-29 15:18:31 +00004673# If no C compiler was specified, use CC.
4674LTCC=${LTCC-"$CC"}
4675
vapier7f19c022007-02-17 14:46:31 +00004676# If no C compiler flags were specified, use CFLAGS.
4677LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4678
a.rottmann9bc8b932004-02-29 15:18:31 +00004679# Allow CC to be a program name with arguments.
4680compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004681
drh71eb93e2001-09-28 01:34:43 +00004682
mlcreech636a9952008-05-05 22:52:56 +00004683# Check for command to grab the raw symbol name followed by C symbol from nm.
drh710658c2012-01-16 13:00:05 +00004684{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
drh8b727472009-01-19 18:18:40 +00004685$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
drh710658c2012-01-16 13:00:05 +00004686if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004687 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004688else
4689
4690# These are sane defaults that work on at least a few old systems.
4691# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4692
4693# Character class describing NM global symbol codes.
4694symcode='[BCDEGRST]'
4695
4696# Regexp to match symbols that can be accessed directly from C.
4697sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4698
4699# Define system-specific variables.
4700case $host_os in
4701aix*)
4702 symcode='[BCDT]'
4703 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004704cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004705 symcode='[ABCDGISTW]'
4706 ;;
4707hpux*)
4708 if test "$host_cpu" = ia64; then
4709 symcode='[ABCDEGRST]'
4710 fi
4711 ;;
4712irix* | nonstopux*)
4713 symcode='[BCDEGRST]'
4714 ;;
4715osf*)
4716 symcode='[BCDEGQRST]'
4717 ;;
4718solaris*)
4719 symcode='[BDRT]'
4720 ;;
4721sco3.2v5*)
4722 symcode='[DT]'
4723 ;;
4724sysv4.2uw2*)
4725 symcode='[DT]'
4726 ;;
4727sysv5* | sco5v6* | unixware* | OpenUNIX*)
4728 symcode='[ABDT]'
4729 ;;
4730sysv4)
4731 symcode='[DFNSTU]'
4732 ;;
4733esac
4734
4735# If we're using GNU nm, then use its standard symbol codes.
4736case `$NM -V 2>&1` in
4737*GNU* | *'with BFD'*)
4738 symcode='[ABCDGIRSTW]' ;;
4739esac
4740
4741# Transform an extracted symbol line into a proper C declaration.
4742# Some systems (esp. on ia64) link data and code symbols differently,
4743# so use this general approach.
4744lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4745
4746# Transform an extracted symbol line into symbol name and symbol address
4747lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4748lt_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'"
4749
4750# Handle CRLF in mingw tool chain
4751opt_cr=
4752case $build_os in
4753mingw*)
4754 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4755 ;;
4756esac
4757
4758# Try without a prefix underscore, then with it.
4759for ac_symprfx in "" "_"; do
4760
4761 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4762 symxfrm="\\1 $ac_symprfx\\2 \\2"
4763
4764 # Write the raw and C identifiers.
4765 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4766 # Fake it for dumpbin and say T for any non-static function
4767 # and D for any global variable.
4768 # Also find C++ and __fastcall symbols from MSVC++,
4769 # which start with @ or ?.
4770 lt_cv_sys_global_symbol_pipe="$AWK '"\
4771" {last_section=section; section=\$ 3};"\
4772" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4773" \$ 0!~/External *\|/{next};"\
4774" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4775" {if(hide[section]) next};"\
4776" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4777" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4778" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4779" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4780" ' prfx=^$ac_symprfx"
4781 else
4782 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4783 fi
4784
4785 # Check to see that the pipe works correctly.
4786 pipe_works=no
4787
4788 rm -f conftest*
4789 cat > conftest.$ac_ext <<_LT_EOF
4790#ifdef __cplusplus
4791extern "C" {
4792#endif
4793char nm_test_var;
4794void nm_test_func(void);
4795void nm_test_func(void){}
4796#ifdef __cplusplus
4797}
4798#endif
4799int main(){nm_test_var='a';nm_test_func();return(0);}
4800_LT_EOF
4801
drh710658c2012-01-16 13:00:05 +00004802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mlcreech636a9952008-05-05 22:52:56 +00004803 (eval $ac_compile) 2>&5
4804 ac_status=$?
drh710658c2012-01-16 13:00:05 +00004805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; then
mlcreech636a9952008-05-05 22:52:56 +00004807 # Now try to grab the symbols.
4808 nlist=conftest.nm
drh710658c2012-01-16 13:00:05 +00004809 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
mlcreech636a9952008-05-05 22:52:56 +00004810 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4811 ac_status=$?
drh710658c2012-01-16 13:00:05 +00004812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } && test -s "$nlist"; then
mlcreech636a9952008-05-05 22:52:56 +00004814 # Try sorting and uniquifying the output.
4815 if sort "$nlist" | uniq > "$nlist"T; then
4816 mv -f "$nlist"T "$nlist"
4817 else
4818 rm -f "$nlist"T
4819 fi
4820
4821 # Make sure that we snagged all the symbols we need.
4822 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4823 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4824 cat <<_LT_EOF > conftest.$ac_ext
4825#ifdef __cplusplus
4826extern "C" {
4827#endif
4828
4829_LT_EOF
4830 # Now generate the symbol file.
4831 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4832
4833 cat <<_LT_EOF >> conftest.$ac_ext
4834
4835/* The mapping between symbol names and symbols. */
4836const struct {
4837 const char *name;
4838 void *address;
4839}
4840lt__PROGRAM__LTX_preloaded_symbols[] =
4841{
4842 { "@PROGRAM@", (void *) 0 },
4843_LT_EOF
4844 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4845 cat <<\_LT_EOF >> conftest.$ac_ext
4846 {0, (void *) 0}
4847};
4848
4849/* This works around a problem in FreeBSD linker */
4850#ifdef FREEBSD_WORKAROUND
4851static const void *lt_preloaded_setup() {
4852 return lt__PROGRAM__LTX_preloaded_symbols;
4853}
4854#endif
4855
4856#ifdef __cplusplus
4857}
4858#endif
4859_LT_EOF
4860 # Now try linking the two files.
4861 mv conftest.$ac_objext conftstm.$ac_objext
4862 lt_save_LIBS="$LIBS"
4863 lt_save_CFLAGS="$CFLAGS"
4864 LIBS="conftstm.$ac_objext"
4865 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
drh710658c2012-01-16 13:00:05 +00004866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mlcreech636a9952008-05-05 22:52:56 +00004867 (eval $ac_link) 2>&5
4868 ac_status=$?
drh710658c2012-01-16 13:00:05 +00004869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); } && test -s conftest${ac_exeext}; then
mlcreech636a9952008-05-05 22:52:56 +00004871 pipe_works=yes
4872 fi
4873 LIBS="$lt_save_LIBS"
4874 CFLAGS="$lt_save_CFLAGS"
4875 else
4876 echo "cannot find nm_test_func in $nlist" >&5
4877 fi
4878 else
4879 echo "cannot find nm_test_var in $nlist" >&5
4880 fi
4881 else
4882 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4883 fi
4884 else
4885 echo "$progname: failed program was:" >&5
4886 cat conftest.$ac_ext >&5
4887 fi
4888 rm -rf conftest* conftst*
4889
4890 # Do not use the global_symbol_pipe unless it works.
4891 if test "$pipe_works" = yes; then
4892 break
4893 else
4894 lt_cv_sys_global_symbol_pipe=
4895 fi
4896done
4897
4898fi
4899
4900if test -z "$lt_cv_sys_global_symbol_pipe"; then
4901 lt_cv_sys_global_symbol_to_cdecl=
4902fi
4903if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drh710658c2012-01-16 13:00:05 +00004904 { $as_echo "$as_me:$LINENO: result: failed" >&5
drh8b727472009-01-19 18:18:40 +00004905$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004906else
drh710658c2012-01-16 13:00:05 +00004907 { $as_echo "$as_me:$LINENO: result: ok" >&5
drh8b727472009-01-19 18:18:40 +00004908$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004909fi
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
drh8b727472009-01-19 18:18:40 +00004933# Check whether --enable-libtool-lock was given.
drh710658c2012-01-16 13:00:05 +00004934if test "${enable_libtool_lock+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004935 enableval=$enable_libtool_lock;
4936fi
drh71eb93e2001-09-28 01:34:43 +00004937
a.rottmann9bc8b932004-02-29 15:18:31 +00004938test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00004939
a.rottmann9bc8b932004-02-29 15:18:31 +00004940# Some flags need to be propagated to the compiler or linker for good
4941# libtool support.
4942case $host in
4943ia64-*-hpux*)
4944 # Find out which ABI we are using.
4945 echo 'int i;' > conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +00004946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00004947 (eval $ac_compile) 2>&5
4948 ac_status=$?
drh710658c2012-01-16 13:00:05 +00004949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004951 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00004952 *ELF-32*)
4953 HPUX_IA64_MODE="32"
4954 ;;
4955 *ELF-64*)
4956 HPUX_IA64_MODE="64"
4957 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004958 esac
4959 fi
4960 rm -rf conftest*
4961 ;;
4962*-*-irix6*)
4963 # Find out which ABI we are using.
drh92f76572012-12-13 18:51:53 +00004964 echo '#line 4964 "configure"' > conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +00004965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004966 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00004967 ac_status=$?
drh710658c2012-01-16 13:00:05 +00004968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; then
mlcreech636a9952008-05-05 22:52:56 +00004970 if test "$lt_cv_prog_gnu_ld" = yes; then
4971 case `/usr/bin/file conftest.$ac_objext` in
4972 *32-bit*)
4973 LD="${LD-ld} -melf32bsmip"
4974 ;;
4975 *N32*)
4976 LD="${LD-ld} -melf32bmipn32"
4977 ;;
4978 *64-bit*)
4979 LD="${LD-ld} -melf64bmip"
4980 ;;
4981 esac
4982 else
4983 case `/usr/bin/file conftest.$ac_objext` in
4984 *32-bit*)
4985 LD="${LD-ld} -32"
4986 ;;
4987 *N32*)
4988 LD="${LD-ld} -n32"
4989 ;;
4990 *64-bit*)
4991 LD="${LD-ld} -64"
4992 ;;
4993 esac
4994 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004995 fi
4996 rm -rf conftest*
4997 ;;
drh71eb93e2001-09-28 01:34:43 +00004998
mlcreech636a9952008-05-05 22:52:56 +00004999x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5000s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005001 # Find out which ABI we are using.
5002 echo 'int i;' > conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +00005003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005004 (eval $ac_compile) 2>&5
5005 ac_status=$?
drh710658c2012-01-16 13:00:05 +00005006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; then
vapier7f19c022007-02-17 14:46:31 +00005008 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005009 *32-bit*)
5010 case $host in
5011 x86_64-*kfreebsd*-gnu)
5012 LD="${LD-ld} -m elf_i386_fbsd"
5013 ;;
5014 x86_64-*linux*)
5015 LD="${LD-ld} -m elf_i386"
5016 ;;
5017 ppc64-*linux*|powerpc64-*linux*)
5018 LD="${LD-ld} -m elf32ppclinux"
5019 ;;
5020 s390x-*linux*)
5021 LD="${LD-ld} -m elf_s390"
5022 ;;
5023 sparc64-*linux*)
5024 LD="${LD-ld} -m elf32_sparc"
5025 ;;
5026 esac
5027 ;;
5028 *64-bit*)
5029 case $host in
5030 x86_64-*kfreebsd*-gnu)
5031 LD="${LD-ld} -m elf_x86_64_fbsd"
5032 ;;
5033 x86_64-*linux*)
5034 LD="${LD-ld} -m elf_x86_64"
5035 ;;
5036 ppc*-*linux*|powerpc*-*linux*)
5037 LD="${LD-ld} -m elf64ppc"
5038 ;;
5039 s390*-*linux*|s390*-*tpf*)
5040 LD="${LD-ld} -m elf64_s390"
5041 ;;
5042 sparc*-*linux*)
5043 LD="${LD-ld} -m elf64_sparc"
5044 ;;
5045 esac
5046 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005047 esac
5048 fi
5049 rm -rf conftest*
5050 ;;
drh71eb93e2001-09-28 01:34:43 +00005051
a.rottmann9bc8b932004-02-29 15:18:31 +00005052*-*-sco3.2v5*)
5053 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5054 SAVE_CFLAGS="$CFLAGS"
5055 CFLAGS="$CFLAGS -belf"
drh710658c2012-01-16 13:00:05 +00005056 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
drh8b727472009-01-19 18:18:40 +00005057$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
drh710658c2012-01-16 13:00:05 +00005058if test "${lt_cv_cc_needs_belf+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005059 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005060else
5061 ac_ext=c
5062ac_cpp='$CPP $CPPFLAGS'
5063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5065ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005066
drh710658c2012-01-16 13:00:05 +00005067 cat >conftest.$ac_ext <<_ACEOF
5068/* confdefs.h. */
5069_ACEOF
5070cat confdefs.h >>conftest.$ac_ext
5071cat >>conftest.$ac_ext <<_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00005072/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005073
a.rottmann9bc8b932004-02-29 15:18:31 +00005074int
5075main ()
drh71eb93e2001-09-28 01:34:43 +00005076{
drh71eb93e2001-09-28 01:34:43 +00005077
a.rottmann9bc8b932004-02-29 15:18:31 +00005078 ;
5079 return 0;
drh71eb93e2001-09-28 01:34:43 +00005080}
a.rottmann9bc8b932004-02-29 15:18:31 +00005081_ACEOF
drh710658c2012-01-16 13:00:05 +00005082rm -f conftest.$ac_objext conftest$ac_exeext
5083if { (ac_try="$ac_link"
5084case "(($ac_try" in
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5087esac
5088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5089$as_echo "$ac_try_echo") >&5
5090 (eval "$ac_link") 2>conftest.er1
5091 ac_status=$?
5092 grep -v '^ *+' conftest.er1 >conftest.err
5093 rm -f conftest.er1
5094 cat conftest.err >&5
5095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } && {
5097 test -z "$ac_c_werror_flag" ||
5098 test ! -s conftest.err
5099 } && test -s conftest$ac_exeext && {
5100 test "$cross_compiling" = yes ||
5101 $as_test_x conftest$ac_exeext
5102 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005103 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005104else
drh710658c2012-01-16 13:00:05 +00005105 $as_echo "$as_me: failed program was:" >&5
5106sed 's/^/| /' conftest.$ac_ext >&5
5107
5108 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005109fi
drh710658c2012-01-16 13:00:05 +00005110
5111rm -rf conftest.dSYM
5112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5113 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005114 ac_ext=c
5115ac_cpp='$CPP $CPPFLAGS'
5116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118ac_compiler_gnu=$ac_cv_c_compiler_gnu
5119
drh71eb93e2001-09-28 01:34:43 +00005120fi
drh710658c2012-01-16 13:00:05 +00005121{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
drh8b727472009-01-19 18:18:40 +00005122$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005123 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5124 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5125 CFLAGS="$SAVE_CFLAGS"
5126 fi
5127 ;;
vapier7f19c022007-02-17 14:46:31 +00005128sparc*-*solaris*)
5129 # Find out which ABI we are using.
5130 echo 'int i;' > conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +00005131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vapier7f19c022007-02-17 14:46:31 +00005132 (eval $ac_compile) 2>&5
5133 ac_status=$?
drh710658c2012-01-16 13:00:05 +00005134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; then
vapier7f19c022007-02-17 14:46:31 +00005136 case `/usr/bin/file conftest.o` in
5137 *64-bit*)
5138 case $lt_cv_prog_gnu_ld in
5139 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005140 *)
5141 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5142 LD="${LD-ld} -64"
5143 fi
5144 ;;
vapier7f19c022007-02-17 14:46:31 +00005145 esac
5146 ;;
5147 esac
5148 fi
5149 rm -rf conftest*
5150 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005151esac
5152
5153need_locks="$enable_libtool_lock"
5154
drh71eb93e2001-09-28 01:34:43 +00005155
mlcreech636a9952008-05-05 22:52:56 +00005156 case $host_os in
5157 rhapsody* | darwin*)
5158 if test -n "$ac_tool_prefix"; then
5159 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5160set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005161{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005162$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005163if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005164 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005165else
5166 if test -n "$DSYMUTIL"; then
5167 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5168else
5169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170for as_dir in $PATH
5171do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005174 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005175 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 +00005176 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drh710658c2012-01-16 13:00:05 +00005177 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005178 break 2
5179 fi
5180done
drh710658c2012-01-16 13:00:05 +00005181done
drh8b727472009-01-19 18:18:40 +00005182IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005183
5184fi
5185fi
5186DSYMUTIL=$ac_cv_prog_DSYMUTIL
5187if test -n "$DSYMUTIL"; then
drh710658c2012-01-16 13:00:05 +00005188 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005189$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005190else
drh710658c2012-01-16 13:00:05 +00005191 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005192$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005193fi
5194
drh8b727472009-01-19 18:18:40 +00005195
mlcreech636a9952008-05-05 22:52:56 +00005196fi
5197if test -z "$ac_cv_prog_DSYMUTIL"; then
5198 ac_ct_DSYMUTIL=$DSYMUTIL
5199 # Extract the first word of "dsymutil", so it can be a program name with args.
5200set dummy dsymutil; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005201{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005202$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005203if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005204 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005205else
5206 if test -n "$ac_ct_DSYMUTIL"; then
5207 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5208else
5209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210for as_dir in $PATH
5211do
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005214 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005215 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 +00005216 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drh710658c2012-01-16 13:00:05 +00005217 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005218 break 2
5219 fi
5220done
drh710658c2012-01-16 13:00:05 +00005221done
drh8b727472009-01-19 18:18:40 +00005222IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005223
5224fi
5225fi
5226ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5227if test -n "$ac_ct_DSYMUTIL"; then
drh710658c2012-01-16 13:00:05 +00005228 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005229$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005230else
drh710658c2012-01-16 13:00:05 +00005231 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005232$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005233fi
5234
drh8b727472009-01-19 18:18:40 +00005235 if test "x$ac_ct_DSYMUTIL" = x; then
5236 DSYMUTIL=":"
5237 else
5238 case $cross_compiling:$ac_tool_warned in
5239yes:)
drh710658c2012-01-16 13:00:05 +00005240{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5241whose name does not start with the host triplet. If you think this
5242configuration is useful to you, please write to autoconf@gnu.org." >&5
5243$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5244whose name does not start with the host triplet. If you think this
5245configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005246ac_tool_warned=yes ;;
5247esac
5248 DSYMUTIL=$ac_ct_DSYMUTIL
5249 fi
mlcreech636a9952008-05-05 22:52:56 +00005250else
5251 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5252fi
5253
5254 if test -n "$ac_tool_prefix"; then
5255 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5256set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005257{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005258$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005259if test "${ac_cv_prog_NMEDIT+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005260 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005261else
5262 if test -n "$NMEDIT"; then
5263 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5264else
5265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266for as_dir in $PATH
5267do
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005270 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005271 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 +00005272 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drh710658c2012-01-16 13:00:05 +00005273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005274 break 2
5275 fi
5276done
drh710658c2012-01-16 13:00:05 +00005277done
drh8b727472009-01-19 18:18:40 +00005278IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005279
5280fi
5281fi
5282NMEDIT=$ac_cv_prog_NMEDIT
5283if test -n "$NMEDIT"; then
drh710658c2012-01-16 13:00:05 +00005284 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005285$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005286else
drh710658c2012-01-16 13:00:05 +00005287 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005288$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005289fi
5290
drh8b727472009-01-19 18:18:40 +00005291
mlcreech636a9952008-05-05 22:52:56 +00005292fi
5293if test -z "$ac_cv_prog_NMEDIT"; then
5294 ac_ct_NMEDIT=$NMEDIT
5295 # Extract the first word of "nmedit", so it can be a program name with args.
5296set dummy nmedit; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005297{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005298$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005299if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005300 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005301else
5302 if test -n "$ac_ct_NMEDIT"; then
5303 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5304else
5305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306for as_dir in $PATH
5307do
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005310 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005311 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 +00005312 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drh710658c2012-01-16 13:00:05 +00005313 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005314 break 2
5315 fi
5316done
drh710658c2012-01-16 13:00:05 +00005317done
drh8b727472009-01-19 18:18:40 +00005318IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005319
5320fi
5321fi
5322ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5323if test -n "$ac_ct_NMEDIT"; then
drh710658c2012-01-16 13:00:05 +00005324 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005325$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005326else
drh710658c2012-01-16 13:00:05 +00005327 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005328$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005329fi
5330
drh8b727472009-01-19 18:18:40 +00005331 if test "x$ac_ct_NMEDIT" = x; then
5332 NMEDIT=":"
5333 else
5334 case $cross_compiling:$ac_tool_warned in
5335yes:)
drh710658c2012-01-16 13:00:05 +00005336{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5337whose name does not start with the host triplet. If you think this
5338configuration is useful to you, please write to autoconf@gnu.org." >&5
5339$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5340whose name does not start with the host triplet. If you think this
5341configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005342ac_tool_warned=yes ;;
5343esac
5344 NMEDIT=$ac_ct_NMEDIT
5345 fi
mlcreech636a9952008-05-05 22:52:56 +00005346else
5347 NMEDIT="$ac_cv_prog_NMEDIT"
5348fi
5349
5350 if test -n "$ac_tool_prefix"; then
5351 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5352set dummy ${ac_tool_prefix}lipo; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005353{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005354$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005355if test "${ac_cv_prog_LIPO+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005356 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005357else
5358 if test -n "$LIPO"; then
5359 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5360else
5361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362for as_dir in $PATH
5363do
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005366 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005367 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 +00005368 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drh710658c2012-01-16 13:00:05 +00005369 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005370 break 2
5371 fi
5372done
drh710658c2012-01-16 13:00:05 +00005373done
drh8b727472009-01-19 18:18:40 +00005374IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005375
5376fi
5377fi
5378LIPO=$ac_cv_prog_LIPO
5379if test -n "$LIPO"; then
drh710658c2012-01-16 13:00:05 +00005380 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005381$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005382else
drh710658c2012-01-16 13:00:05 +00005383 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005384$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005385fi
5386
drh8b727472009-01-19 18:18:40 +00005387
mlcreech636a9952008-05-05 22:52:56 +00005388fi
5389if test -z "$ac_cv_prog_LIPO"; then
5390 ac_ct_LIPO=$LIPO
5391 # Extract the first word of "lipo", so it can be a program name with args.
5392set dummy lipo; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005393{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005394$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005395if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005396 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005397else
5398 if test -n "$ac_ct_LIPO"; then
5399 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5400else
5401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402for as_dir in $PATH
5403do
5404 IFS=$as_save_IFS
5405 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005406 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005407 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 +00005408 ac_cv_prog_ac_ct_LIPO="lipo"
drh710658c2012-01-16 13:00:05 +00005409 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005410 break 2
5411 fi
5412done
drh710658c2012-01-16 13:00:05 +00005413done
drh8b727472009-01-19 18:18:40 +00005414IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005415
5416fi
5417fi
5418ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5419if test -n "$ac_ct_LIPO"; then
drh710658c2012-01-16 13:00:05 +00005420 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005421$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005422else
drh710658c2012-01-16 13:00:05 +00005423 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005424$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005425fi
5426
drh8b727472009-01-19 18:18:40 +00005427 if test "x$ac_ct_LIPO" = x; then
5428 LIPO=":"
5429 else
5430 case $cross_compiling:$ac_tool_warned in
5431yes:)
drh710658c2012-01-16 13:00:05 +00005432{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5433whose name does not start with the host triplet. If you think this
5434configuration is useful to you, please write to autoconf@gnu.org." >&5
5435$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5436whose name does not start with the host triplet. If you think this
5437configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005438ac_tool_warned=yes ;;
5439esac
5440 LIPO=$ac_ct_LIPO
5441 fi
mlcreech636a9952008-05-05 22:52:56 +00005442else
5443 LIPO="$ac_cv_prog_LIPO"
5444fi
5445
5446 if test -n "$ac_tool_prefix"; then
5447 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5448set dummy ${ac_tool_prefix}otool; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005449{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005450$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005451if test "${ac_cv_prog_OTOOL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005452 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005453else
5454 if test -n "$OTOOL"; then
5455 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5456else
5457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458for as_dir in $PATH
5459do
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005462 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005463 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 +00005464 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drh710658c2012-01-16 13:00:05 +00005465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005466 break 2
5467 fi
5468done
drh710658c2012-01-16 13:00:05 +00005469done
drh8b727472009-01-19 18:18:40 +00005470IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005471
5472fi
5473fi
5474OTOOL=$ac_cv_prog_OTOOL
5475if test -n "$OTOOL"; then
drh710658c2012-01-16 13:00:05 +00005476 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005477$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005478else
drh710658c2012-01-16 13:00:05 +00005479 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005480$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005481fi
5482
drh8b727472009-01-19 18:18:40 +00005483
mlcreech636a9952008-05-05 22:52:56 +00005484fi
5485if test -z "$ac_cv_prog_OTOOL"; then
5486 ac_ct_OTOOL=$OTOOL
5487 # Extract the first word of "otool", so it can be a program name with args.
5488set dummy otool; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005489{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005490$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005491if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005492 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005493else
5494 if test -n "$ac_ct_OTOOL"; then
5495 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5496else
5497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498for as_dir in $PATH
5499do
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005502 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005503 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 +00005504 ac_cv_prog_ac_ct_OTOOL="otool"
drh710658c2012-01-16 13:00:05 +00005505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005506 break 2
5507 fi
5508done
drh710658c2012-01-16 13:00:05 +00005509done
drh8b727472009-01-19 18:18:40 +00005510IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005511
5512fi
5513fi
5514ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5515if test -n "$ac_ct_OTOOL"; then
drh710658c2012-01-16 13:00:05 +00005516 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005517$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005518else
drh710658c2012-01-16 13:00:05 +00005519 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005520$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005521fi
5522
drh8b727472009-01-19 18:18:40 +00005523 if test "x$ac_ct_OTOOL" = x; then
5524 OTOOL=":"
5525 else
5526 case $cross_compiling:$ac_tool_warned in
5527yes:)
drh710658c2012-01-16 13:00:05 +00005528{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5529whose name does not start with the host triplet. If you think this
5530configuration is useful to you, please write to autoconf@gnu.org." >&5
5531$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5532whose name does not start with the host triplet. If you think this
5533configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005534ac_tool_warned=yes ;;
5535esac
5536 OTOOL=$ac_ct_OTOOL
5537 fi
mlcreech636a9952008-05-05 22:52:56 +00005538else
5539 OTOOL="$ac_cv_prog_OTOOL"
5540fi
5541
5542 if test -n "$ac_tool_prefix"; then
5543 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5544set dummy ${ac_tool_prefix}otool64; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005545{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005546$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005547if test "${ac_cv_prog_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 "$OTOOL64"; then
5551 ac_cv_prog_OTOOL64="$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=.
drh710658c2012-01-16 13:00:05 +00005558 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_OTOOL64="${ac_tool_prefix}otool64"
drh710658c2012-01-16 13:00:05 +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
drh710658c2012-01-16 13:00:05 +00005565done
drh8b727472009-01-19 18:18:40 +00005566IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005567
5568fi
5569fi
5570OTOOL64=$ac_cv_prog_OTOOL64
5571if test -n "$OTOOL64"; then
drh710658c2012-01-16 13:00:05 +00005572 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005573$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005574else
drh710658c2012-01-16 13:00:05 +00005575 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005576$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005577fi
5578
drh8b727472009-01-19 18:18:40 +00005579
mlcreech636a9952008-05-05 22:52:56 +00005580fi
5581if test -z "$ac_cv_prog_OTOOL64"; then
5582 ac_ct_OTOOL64=$OTOOL64
5583 # Extract the first word of "otool64", so it can be a program name with args.
5584set dummy otool64; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005585{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005586$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005587if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005588 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005589else
5590 if test -n "$ac_ct_OTOOL64"; then
5591 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5592else
5593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594for as_dir in $PATH
5595do
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005598 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005599 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 +00005600 ac_cv_prog_ac_ct_OTOOL64="otool64"
drh710658c2012-01-16 13:00:05 +00005601 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005602 break 2
5603 fi
5604done
drh710658c2012-01-16 13:00:05 +00005605done
drh8b727472009-01-19 18:18:40 +00005606IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005607
5608fi
5609fi
5610ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5611if test -n "$ac_ct_OTOOL64"; then
drh710658c2012-01-16 13:00:05 +00005612 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005613$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005614else
drh710658c2012-01-16 13:00:05 +00005615 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005616$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005617fi
5618
drh8b727472009-01-19 18:18:40 +00005619 if test "x$ac_ct_OTOOL64" = x; then
5620 OTOOL64=":"
5621 else
5622 case $cross_compiling:$ac_tool_warned in
5623yes:)
drh710658c2012-01-16 13:00:05 +00005624{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5625whose name does not start with the host triplet. If you think this
5626configuration is useful to you, please write to autoconf@gnu.org." >&5
5627$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5628whose name does not start with the host triplet. If you think this
5629configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005630ac_tool_warned=yes ;;
5631esac
5632 OTOOL64=$ac_ct_OTOOL64
5633 fi
mlcreech636a9952008-05-05 22:52:56 +00005634else
5635 OTOOL64="$ac_cv_prog_OTOOL64"
5636fi
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
drh710658c2012-01-16 13:00:05 +00005664 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005665$as_echo_n "checking for -single_module linker flag... " >&6; }
drh710658c2012-01-16 13:00:05 +00005666if test "${lt_cv_apple_cc_single_mod+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005667 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005668else
5669 lt_cv_apple_cc_single_mod=no
5670 if test -z "${LT_MULTI_MODULE}"; then
5671 # By default we will add the -single_module flag. You can override
5672 # by either setting the environment variable LT_MULTI_MODULE
5673 # non-empty at configure time, or by adding -multi_module to the
5674 # link flags.
5675 rm -rf libconftest.dylib*
5676 echo "int foo(void){return 1;}" > conftest.c
5677 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5678-dynamiclib -Wl,-single_module conftest.c" >&5
5679 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5680 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5681 _lt_result=$?
5682 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5683 lt_cv_apple_cc_single_mod=yes
5684 else
5685 cat conftest.err >&5
5686 fi
5687 rm -rf libconftest.dylib*
5688 rm -f conftest.*
5689 fi
5690fi
drh710658c2012-01-16 13:00:05 +00005691{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
drh8b727472009-01-19 18:18:40 +00005692$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
drh710658c2012-01-16 13:00:05 +00005693 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005694$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
drh710658c2012-01-16 13:00:05 +00005695if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005696 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005697else
5698 lt_cv_ld_exported_symbols_list=no
5699 save_LDFLAGS=$LDFLAGS
5700 echo "_main" > conftest.sym
5701 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
drh710658c2012-01-16 13:00:05 +00005702 cat >conftest.$ac_ext <<_ACEOF
5703/* confdefs.h. */
5704_ACEOF
5705cat confdefs.h >>conftest.$ac_ext
5706cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +00005707/* end confdefs.h. */
5708
5709int
5710main ()
5711{
5712
5713 ;
5714 return 0;
5715}
5716_ACEOF
drh710658c2012-01-16 13:00:05 +00005717rm -f conftest.$ac_objext conftest$ac_exeext
5718if { (ac_try="$ac_link"
5719case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722esac
5723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5724$as_echo "$ac_try_echo") >&5
5725 (eval "$ac_link") 2>conftest.er1
5726 ac_status=$?
5727 grep -v '^ *+' conftest.er1 >conftest.err
5728 rm -f conftest.er1
5729 cat conftest.err >&5
5730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } && {
5732 test -z "$ac_c_werror_flag" ||
5733 test ! -s conftest.err
5734 } && test -s conftest$ac_exeext && {
5735 test "$cross_compiling" = yes ||
5736 $as_test_x conftest$ac_exeext
5737 }; then
mlcreech636a9952008-05-05 22:52:56 +00005738 lt_cv_ld_exported_symbols_list=yes
5739else
drh710658c2012-01-16 13:00:05 +00005740 $as_echo "$as_me: failed program was:" >&5
5741sed 's/^/| /' conftest.$ac_ext >&5
5742
5743 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005744fi
drh710658c2012-01-16 13:00:05 +00005745
5746rm -rf conftest.dSYM
5747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5748 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005749 LDFLAGS="$save_LDFLAGS"
5750
5751fi
drh710658c2012-01-16 13:00:05 +00005752{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
drh8b727472009-01-19 18:18:40 +00005753$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005754 case $host_os in
5755 rhapsody* | darwin1.[012])
5756 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5757 darwin1.*)
5758 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5759 darwin*) # darwin 5.x on
5760 # if running on 10.5 or later, the deployment target defaults
5761 # to the OS version, if on x86, and 10.4, the deployment
5762 # target defaults to 10.4. Don't you love it?
5763 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5764 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5765 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5766 10.[012]*)
5767 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5768 10.*)
5769 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5770 esac
5771 ;;
5772 esac
5773 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5774 _lt_dar_single_mod='$single_module'
5775 fi
5776 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5777 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5778 else
5779 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5780 fi
5781 if test "$DSYMUTIL" != ":"; then
5782 _lt_dsymutil='~$DSYMUTIL $lib || :'
5783 else
5784 _lt_dsymutil=
5785 fi
5786 ;;
5787 esac
5788
a.rottmann84e63352003-03-24 09:42:16 +00005789ac_ext=c
5790ac_cpp='$CPP $CPPFLAGS'
5791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5793ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh710658c2012-01-16 13:00:05 +00005794{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
drh8b727472009-01-19 18:18:40 +00005795$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005796# On Suns, sometimes $CPP names a directory.
5797if test -n "$CPP" && test -d "$CPP"; then
5798 CPP=
5799fi
5800if test -z "$CPP"; then
drh710658c2012-01-16 13:00:05 +00005801 if test "${ac_cv_prog_CPP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005802 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005803else
a.rottmann84e63352003-03-24 09:42:16 +00005804 # Double quotes because CPP needs to be expanded
5805 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5806 do
5807 ac_preproc_ok=false
5808for ac_c_preproc_warn_flag in '' yes
5809do
5810 # Use a header file that comes with gcc, so configuring glibc
5811 # with a fresh cross-compiler works.
5812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5813 # <limits.h> exists even on freestanding compilers.
5814 # On the NeXT, cc -E runs the code through the compiler's parser,
5815 # not just through cpp. "Syntax error" is here to catch this case.
drh710658c2012-01-16 13:00:05 +00005816 cat >conftest.$ac_ext <<_ACEOF
5817/* confdefs.h. */
5818_ACEOF
5819cat confdefs.h >>conftest.$ac_ext
5820cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005821/* end confdefs.h. */
5822#ifdef __STDC__
5823# include <limits.h>
5824#else
5825# include <assert.h>
5826#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005827 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005828_ACEOF
drh710658c2012-01-16 13:00:05 +00005829if { (ac_try="$ac_cpp conftest.$ac_ext"
5830case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5833esac
5834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5835$as_echo "$ac_try_echo") >&5
5836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5837 ac_status=$?
5838 grep -v '^ *+' conftest.er1 >conftest.err
5839 rm -f conftest.er1
5840 cat conftest.err >&5
5841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } >/dev/null && {
5843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5844 test ! -s conftest.err
5845 }; then
5846 :
dana9f39fd2011-08-12 16:34:42 +00005847else
drh710658c2012-01-16 13:00:05 +00005848 $as_echo "$as_me: failed program was:" >&5
5849sed 's/^/| /' conftest.$ac_ext >&5
5850
a.rottmann84e63352003-03-24 09:42:16 +00005851 # Broken: fails on valid input.
5852continue
5853fi
drh710658c2012-01-16 13:00:05 +00005854
5855rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005856
drh8b727472009-01-19 18:18:40 +00005857 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005858 # can be detected and how.
drh710658c2012-01-16 13:00:05 +00005859 cat >conftest.$ac_ext <<_ACEOF
5860/* confdefs.h. */
5861_ACEOF
5862cat confdefs.h >>conftest.$ac_ext
5863cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005864/* end confdefs.h. */
5865#include <ac_nonexistent.h>
5866_ACEOF
drh710658c2012-01-16 13:00:05 +00005867if { (ac_try="$ac_cpp conftest.$ac_ext"
5868case "(($ac_try" in
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5871esac
5872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5873$as_echo "$ac_try_echo") >&5
5874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5875 ac_status=$?
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
5879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } >/dev/null && {
5881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5882 test ! -s conftest.err
5883 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005884 # Broken: success on invalid input.
5885continue
5886else
drh710658c2012-01-16 13:00:05 +00005887 $as_echo "$as_me: failed program was:" >&5
5888sed 's/^/| /' conftest.$ac_ext >&5
5889
a.rottmann84e63352003-03-24 09:42:16 +00005890 # Passes both tests.
5891ac_preproc_ok=:
5892break
5893fi
drh710658c2012-01-16 13:00:05 +00005894
5895rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005896
5897done
5898# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drh710658c2012-01-16 13:00:05 +00005899rm -f conftest.err conftest.$ac_ext
5900if $ac_preproc_ok; then
a.rottmann84e63352003-03-24 09:42:16 +00005901 break
5902fi
5903
5904 done
5905 ac_cv_prog_CPP=$CPP
5906
5907fi
5908 CPP=$ac_cv_prog_CPP
5909else
5910 ac_cv_prog_CPP=$CPP
5911fi
drh710658c2012-01-16 13:00:05 +00005912{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
drh8b727472009-01-19 18:18:40 +00005913$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005914ac_preproc_ok=false
5915for ac_c_preproc_warn_flag in '' yes
5916do
5917 # Use a header file that comes with gcc, so configuring glibc
5918 # with a fresh cross-compiler works.
5919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5920 # <limits.h> exists even on freestanding compilers.
5921 # On the NeXT, cc -E runs the code through the compiler's parser,
5922 # not just through cpp. "Syntax error" is here to catch this case.
drh710658c2012-01-16 13:00:05 +00005923 cat >conftest.$ac_ext <<_ACEOF
5924/* confdefs.h. */
5925_ACEOF
5926cat confdefs.h >>conftest.$ac_ext
5927cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005928/* end confdefs.h. */
5929#ifdef __STDC__
5930# include <limits.h>
5931#else
5932# include <assert.h>
5933#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005934 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005935_ACEOF
drh710658c2012-01-16 13:00:05 +00005936if { (ac_try="$ac_cpp conftest.$ac_ext"
5937case "(($ac_try" in
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5940esac
5941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5942$as_echo "$ac_try_echo") >&5
5943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5944 ac_status=$?
5945 grep -v '^ *+' conftest.er1 >conftest.err
5946 rm -f conftest.er1
5947 cat conftest.err >&5
5948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } >/dev/null && {
5950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5951 test ! -s conftest.err
5952 }; then
5953 :
dana9f39fd2011-08-12 16:34:42 +00005954else
drh710658c2012-01-16 13:00:05 +00005955 $as_echo "$as_me: failed program was:" >&5
5956sed 's/^/| /' conftest.$ac_ext >&5
5957
a.rottmann84e63352003-03-24 09:42:16 +00005958 # Broken: fails on valid input.
5959continue
5960fi
drh710658c2012-01-16 13:00:05 +00005961
5962rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005963
drh8b727472009-01-19 18:18:40 +00005964 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005965 # can be detected and how.
drh710658c2012-01-16 13:00:05 +00005966 cat >conftest.$ac_ext <<_ACEOF
5967/* confdefs.h. */
5968_ACEOF
5969cat confdefs.h >>conftest.$ac_ext
5970cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005971/* end confdefs.h. */
5972#include <ac_nonexistent.h>
5973_ACEOF
drh710658c2012-01-16 13:00:05 +00005974if { (ac_try="$ac_cpp conftest.$ac_ext"
5975case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978esac
5979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5980$as_echo "$ac_try_echo") >&5
5981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5982 ac_status=$?
5983 grep -v '^ *+' conftest.er1 >conftest.err
5984 rm -f conftest.er1
5985 cat conftest.err >&5
5986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } >/dev/null && {
5988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5989 test ! -s conftest.err
5990 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005991 # Broken: success on invalid input.
5992continue
5993else
drh710658c2012-01-16 13:00:05 +00005994 $as_echo "$as_me: failed program was:" >&5
5995sed 's/^/| /' conftest.$ac_ext >&5
5996
a.rottmann84e63352003-03-24 09:42:16 +00005997 # Passes both tests.
5998ac_preproc_ok=:
5999break
6000fi
drh710658c2012-01-16 13:00:05 +00006001
6002rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006003
6004done
6005# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drh710658c2012-01-16 13:00:05 +00006006rm -f conftest.err conftest.$ac_ext
6007if $ac_preproc_ok; then
6008 :
a.rottmann84e63352003-03-24 09:42:16 +00006009else
drh710658c2012-01-16 13:00:05 +00006010 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6011See \`config.log' for more details." >&5
6012$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6013See \`config.log' for more details." >&2;}
6014 { (exit 1); exit 1; }; }
a.rottmann84e63352003-03-24 09:42:16 +00006015fi
6016
6017ac_ext=c
6018ac_cpp='$CPP $CPPFLAGS'
6019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6021ac_compiler_gnu=$ac_cv_c_compiler_gnu
6022
6023
drh710658c2012-01-16 13:00:05 +00006024{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
drh8b727472009-01-19 18:18:40 +00006025$as_echo_n "checking for ANSI C header files... " >&6; }
drh710658c2012-01-16 13:00:05 +00006026if test "${ac_cv_header_stdc+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006027 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006028else
drh710658c2012-01-16 13:00:05 +00006029 cat >conftest.$ac_ext <<_ACEOF
6030/* confdefs.h. */
6031_ACEOF
6032cat confdefs.h >>conftest.$ac_ext
6033cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006034/* end confdefs.h. */
6035#include <stdlib.h>
6036#include <stdarg.h>
6037#include <string.h>
6038#include <float.h>
6039
6040int
6041main ()
6042{
6043
6044 ;
6045 return 0;
6046}
6047_ACEOF
drh710658c2012-01-16 13:00:05 +00006048rm -f conftest.$ac_objext
6049if { (ac_try="$ac_compile"
6050case "(($ac_try" in
6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052 *) ac_try_echo=$ac_try;;
6053esac
6054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6055$as_echo "$ac_try_echo") >&5
6056 (eval "$ac_compile") 2>conftest.er1
6057 ac_status=$?
6058 grep -v '^ *+' conftest.er1 >conftest.err
6059 rm -f conftest.er1
6060 cat conftest.err >&5
6061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } && {
6063 test -z "$ac_c_werror_flag" ||
6064 test ! -s conftest.err
6065 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00006066 ac_cv_header_stdc=yes
6067else
drh710658c2012-01-16 13:00:05 +00006068 $as_echo "$as_me: failed program was:" >&5
6069sed 's/^/| /' conftest.$ac_ext >&5
6070
6071 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006072fi
drh710658c2012-01-16 13:00:05 +00006073
drh8b727472009-01-19 18:18:40 +00006074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006075
6076if test $ac_cv_header_stdc = yes; then
6077 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
drh710658c2012-01-16 13:00:05 +00006078 cat >conftest.$ac_ext <<_ACEOF
6079/* confdefs.h. */
6080_ACEOF
6081cat confdefs.h >>conftest.$ac_ext
6082cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006083/* end confdefs.h. */
6084#include <string.h>
6085
6086_ACEOF
6087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drh710658c2012-01-16 13:00:05 +00006088 $EGREP "memchr" >/dev/null 2>&1; then
6089 :
a.rottmann84e63352003-03-24 09:42:16 +00006090else
6091 ac_cv_header_stdc=no
6092fi
6093rm -f conftest*
6094
6095fi
6096
6097if test $ac_cv_header_stdc = yes; then
6098 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
drh710658c2012-01-16 13:00:05 +00006099 cat >conftest.$ac_ext <<_ACEOF
6100/* confdefs.h. */
6101_ACEOF
6102cat confdefs.h >>conftest.$ac_ext
6103cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006104/* end confdefs.h. */
6105#include <stdlib.h>
6106
6107_ACEOF
6108if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drh710658c2012-01-16 13:00:05 +00006109 $EGREP "free" >/dev/null 2>&1; then
6110 :
a.rottmann84e63352003-03-24 09:42:16 +00006111else
6112 ac_cv_header_stdc=no
6113fi
6114rm -f conftest*
6115
6116fi
6117
6118if test $ac_cv_header_stdc = yes; then
6119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
drh710658c2012-01-16 13:00:05 +00006120 if test "$cross_compiling" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006121 :
6122else
drh710658c2012-01-16 13:00:05 +00006123 cat >conftest.$ac_ext <<_ACEOF
6124/* confdefs.h. */
6125_ACEOF
6126cat confdefs.h >>conftest.$ac_ext
6127cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006128/* end confdefs.h. */
6129#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006130#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006131#if ((' ' & 0x0FF) == 0x020)
6132# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6133# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6134#else
6135# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006136 (('a' <= (c) && (c) <= 'i') \
6137 || ('j' <= (c) && (c) <= 'r') \
6138 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006139# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6140#endif
6141
6142#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6143int
6144main ()
6145{
6146 int i;
6147 for (i = 0; i < 256; i++)
6148 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006149 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006150 return 2;
6151 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006152}
6153_ACEOF
drh710658c2012-01-16 13:00:05 +00006154rm -f conftest$ac_exeext
6155if { (ac_try="$ac_link"
6156case "(($ac_try" in
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6159esac
6160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6161$as_echo "$ac_try_echo") >&5
6162 (eval "$ac_link") 2>&5
6163 ac_status=$?
6164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6166 { (case "(($ac_try" in
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6169esac
6170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6171$as_echo "$ac_try_echo") >&5
6172 (eval "$ac_try") 2>&5
6173 ac_status=$?
6174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; }; then
6176 :
a.rottmann84e63352003-03-24 09:42:16 +00006177else
drh710658c2012-01-16 13:00:05 +00006178 $as_echo "$as_me: program exited with status $ac_status" >&5
6179$as_echo "$as_me: failed program was:" >&5
6180sed 's/^/| /' conftest.$ac_ext >&5
6181
6182( exit $ac_status )
6183ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006184fi
drh710658c2012-01-16 13:00:05 +00006185rm -rf conftest.dSYM
6186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00006187fi
6188
drh710658c2012-01-16 13:00:05 +00006189
a.rottmann84e63352003-03-24 09:42:16 +00006190fi
6191fi
drh710658c2012-01-16 13:00:05 +00006192{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
drh8b727472009-01-19 18:18:40 +00006193$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006194if test $ac_cv_header_stdc = yes; then
6195
drh710658c2012-01-16 13:00:05 +00006196cat >>confdefs.h <<\_ACEOF
6197#define STDC_HEADERS 1
6198_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006199
6200fi
6201
6202# On IRIX 5.3, sys/types and inttypes.h are conflicting.
drh710658c2012-01-16 13:00:05 +00006203
6204
6205
6206
6207
6208
6209
6210
6211
a.rottmann84e63352003-03-24 09:42:16 +00006212for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006213 inttypes.h stdint.h unistd.h
drh710658c2012-01-16 13:00:05 +00006214do
6215as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6216{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6217$as_echo_n "checking for $ac_header... " >&6; }
6218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6219 $as_echo_n "(cached) " >&6
6220else
6221 cat >conftest.$ac_ext <<_ACEOF
6222/* confdefs.h. */
6223_ACEOF
6224cat confdefs.h >>conftest.$ac_ext
6225cat >>conftest.$ac_ext <<_ACEOF
6226/* end confdefs.h. */
6227$ac_includes_default
6228
6229#include <$ac_header>
6230_ACEOF
6231rm -f conftest.$ac_objext
6232if { (ac_try="$ac_compile"
6233case "(($ac_try" in
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6236esac
6237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6238$as_echo "$ac_try_echo") >&5
6239 (eval "$ac_compile") 2>conftest.er1
6240 ac_status=$?
6241 grep -v '^ *+' conftest.er1 >conftest.err
6242 rm -f conftest.er1
6243 cat conftest.err >&5
6244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } && {
6246 test -z "$ac_c_werror_flag" ||
6247 test ! -s conftest.err
6248 } && test -s conftest.$ac_objext; then
6249 eval "$as_ac_Header=yes"
6250else
6251 $as_echo "$as_me: failed program was:" >&5
6252sed 's/^/| /' conftest.$ac_ext >&5
6253
6254 eval "$as_ac_Header=no"
6255fi
6256
6257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258fi
6259ac_res=`eval 'as_val=${'$as_ac_Header'}
6260 $as_echo "$as_val"'`
6261 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6262$as_echo "$ac_res" >&6; }
6263if test `eval 'as_val=${'$as_ac_Header'}
6264 $as_echo "$as_val"'` = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006265 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006266#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006267_ACEOF
6268
6269fi
6270
6271done
6272
6273
drh710658c2012-01-16 13:00:05 +00006274
a.rottmann84e63352003-03-24 09:42:16 +00006275for ac_header in dlfcn.h
drh710658c2012-01-16 13:00:05 +00006276do
6277as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6278{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6279$as_echo_n "checking for $ac_header... " >&6; }
6280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6281 $as_echo_n "(cached) " >&6
6282else
6283 cat >conftest.$ac_ext <<_ACEOF
6284/* confdefs.h. */
6285_ACEOF
6286cat confdefs.h >>conftest.$ac_ext
6287cat >>conftest.$ac_ext <<_ACEOF
6288/* end confdefs.h. */
6289$ac_includes_default
6290
6291#include <$ac_header>
6292_ACEOF
6293rm -f conftest.$ac_objext
6294if { (ac_try="$ac_compile"
6295case "(($ac_try" in
6296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297 *) ac_try_echo=$ac_try;;
6298esac
6299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6300$as_echo "$ac_try_echo") >&5
6301 (eval "$ac_compile") 2>conftest.er1
6302 ac_status=$?
6303 grep -v '^ *+' conftest.er1 >conftest.err
6304 rm -f conftest.er1
6305 cat conftest.err >&5
6306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } && {
6308 test -z "$ac_c_werror_flag" ||
6309 test ! -s conftest.err
6310 } && test -s conftest.$ac_objext; then
6311 eval "$as_ac_Header=yes"
6312else
6313 $as_echo "$as_me: failed program was:" >&5
6314sed 's/^/| /' conftest.$ac_ext >&5
6315
6316 eval "$as_ac_Header=no"
6317fi
6318
6319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320fi
6321ac_res=`eval 'as_val=${'$as_ac_Header'}
6322 $as_echo "$as_val"'`
6323 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6324$as_echo "$ac_res" >&6; }
6325if test `eval 'as_val=${'$as_ac_Header'}
6326 $as_echo "$as_val"'` = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006327 cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00006328#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006329_ACEOF
6330
6331fi
6332
drh71eb93e2001-09-28 01:34:43 +00006333done
6334
drh71eb93e2001-09-28 01:34:43 +00006335
drh71eb93e2001-09-28 01:34:43 +00006336
mlcreech636a9952008-05-05 22:52:56 +00006337# Set options
mlcreech94984912008-03-04 19:03:08 +00006338
drh71eb93e2001-09-28 01:34:43 +00006339
drh71eb93e2001-09-28 01:34:43 +00006340
mlcreech636a9952008-05-05 22:52:56 +00006341 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006342
a.rottmann9bc8b932004-02-29 15:18:31 +00006343
mlcreech636a9952008-05-05 22:52:56 +00006344 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006345
a.rottmann9bc8b932004-02-29 15:18:31 +00006346
drh8b727472009-01-19 18:18:40 +00006347 # Check whether --enable-shared was given.
drh710658c2012-01-16 13:00:05 +00006348if test "${enable_shared+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006349 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006350 case $enableval in
6351 yes) enable_shared=yes ;;
6352 no) enable_shared=no ;;
6353 *)
6354 enable_shared=no
6355 # Look at the argument we got. We use all the common list separators.
6356 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6357 for pkg in $enableval; do
6358 IFS="$lt_save_ifs"
6359 if test "X$pkg" = "X$p"; then
6360 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006361 fi
mlcreech636a9952008-05-05 22:52:56 +00006362 done
6363 IFS="$lt_save_ifs"
6364 ;;
6365 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006366else
mlcreech636a9952008-05-05 22:52:56 +00006367 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006368fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006369
mlcreech636a9952008-05-05 22:52:56 +00006370
6371
6372
6373
6374
6375
6376
drh8b727472009-01-19 18:18:40 +00006377
6378 # Check whether --enable-static was given.
drh710658c2012-01-16 13:00:05 +00006379if test "${enable_static+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006380 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006381 case $enableval in
6382 yes) enable_static=yes ;;
6383 no) enable_static=no ;;
6384 *)
6385 enable_static=no
6386 # Look at the argument we got. We use all the common list separators.
6387 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6388 for pkg in $enableval; do
6389 IFS="$lt_save_ifs"
6390 if test "X$pkg" = "X$p"; then
6391 enable_static=yes
6392 fi
6393 done
6394 IFS="$lt_save_ifs"
6395 ;;
6396 esac
6397else
6398 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006399fi
mlcreech636a9952008-05-05 22:52:56 +00006400
6401
6402
6403
6404
6405
6406
6407
6408
drh8b727472009-01-19 18:18:40 +00006409
6410# Check whether --with-pic was given.
drh710658c2012-01-16 13:00:05 +00006411if test "${with_pic+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006412 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006413else
6414 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006415fi
6416
mlcreech636a9952008-05-05 22:52:56 +00006417
6418test -z "$pic_mode" && pic_mode=default
6419
6420
6421
6422
6423
6424
6425
drh8b727472009-01-19 18:18:40 +00006426 # Check whether --enable-fast-install was given.
drh710658c2012-01-16 13:00:05 +00006427if test "${enable_fast_install+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006428 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006429 case $enableval in
6430 yes) enable_fast_install=yes ;;
6431 no) enable_fast_install=no ;;
6432 *)
6433 enable_fast_install=no
6434 # Look at the argument we got. We use all the common list separators.
6435 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6436 for pkg in $enableval; do
6437 IFS="$lt_save_ifs"
6438 if test "X$pkg" = "X$p"; then
6439 enable_fast_install=yes
6440 fi
6441 done
6442 IFS="$lt_save_ifs"
6443 ;;
6444 esac
6445else
6446 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006447fi
6448
mlcreech636a9952008-05-05 22:52:56 +00006449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459# This can be used to rebuild libtool when needed
6460LIBTOOL_DEPS="$ltmain"
6461
6462# Always use our own libtool.
6463LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489test -z "$LN_S" && LN_S="ln -s"
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504if test -n "${ZSH_VERSION+set}" ; then
6505 setopt NO_GLOB_SUBST
6506fi
6507
drh710658c2012-01-16 13:00:05 +00006508{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
drh8b727472009-01-19 18:18:40 +00006509$as_echo_n "checking for objdir... " >&6; }
drh710658c2012-01-16 13:00:05 +00006510if test "${lt_cv_objdir+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006511 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006512else
6513 rm -f .libs 2>/dev/null
6514mkdir .libs 2>/dev/null
6515if test -d .libs; then
6516 lt_cv_objdir=.libs
6517else
6518 # MS-DOS does not allow filenames that begin with a dot.
6519 lt_cv_objdir=_libs
6520fi
6521rmdir .libs 2>/dev/null
6522fi
drh710658c2012-01-16 13:00:05 +00006523{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
drh8b727472009-01-19 18:18:40 +00006524$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006525objdir=$lt_cv_objdir
6526
6527
6528
6529
6530
mlcreech636a9952008-05-05 22:52:56 +00006531cat >>confdefs.h <<_ACEOF
6532#define LT_OBJDIR "$lt_cv_objdir/"
6533_ACEOF
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
a.rottmann9bc8b932004-02-29 15:18:31 +00006551case $host_os in
6552aix3*)
6553 # AIX sometimes has problems with the GCC collect2 program. For some
6554 # reason, if we set the COLLECT_NAMES environment variable, the problems
6555 # vanish in a puff of smoke.
6556 if test "X${COLLECT_NAMES+set}" != Xset; then
6557 COLLECT_NAMES=
6558 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006559 fi
6560 ;;
6561esac
6562
a.rottmann9bc8b932004-02-29 15:18:31 +00006563# Sed substitution that helps us do robust quoting. It backslashifies
6564# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006565sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006566
6567# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006568double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006569
6570# Sed substitution to delay expansion of an escaped shell variable in a
6571# double_quote_subst'ed string.
6572delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6573
mlcreech636a9952008-05-05 22:52:56 +00006574# Sed substitution to delay expansion of an escaped single quote.
6575delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6576
a.rottmann9bc8b932004-02-29 15:18:31 +00006577# Sed substitution to avoid accidental globbing in evaled expressions
6578no_glob_subst='s/\*/\\\*/g'
6579
a.rottmann9bc8b932004-02-29 15:18:31 +00006580# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006581ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006582can_build_shared=yes
6583
vapier7f19c022007-02-17 14:46:31 +00006584# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006585# which needs '.lib').
6586libext=a
mlcreech636a9952008-05-05 22:52:56 +00006587
a.rottmann9bc8b932004-02-29 15:18:31 +00006588with_gnu_ld="$lt_cv_prog_gnu_ld"
6589
a.rottmann84e63352003-03-24 09:42:16 +00006590old_CC="$CC"
6591old_CFLAGS="$CFLAGS"
6592
6593# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006594test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006595test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006596test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006597test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006598test -z "$ac_objext" && ac_objext=o
6599
vapier7f19c022007-02-17 14:46:31 +00006600for cc_temp in $compiler""; do
6601 case $cc_temp in
6602 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6603 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6604 \-*) ;;
6605 *) break;;
6606 esac
6607done
mlcreech636a9952008-05-05 22:52:56 +00006608cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006609
6610
a.rottmann9bc8b932004-02-29 15:18:31 +00006611# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006612test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006613case $deplibs_check_method in
6614file_magic*)
6615 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drh710658c2012-01-16 13:00:05 +00006616 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
drh8b727472009-01-19 18:18:40 +00006617$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
drh710658c2012-01-16 13:00:05 +00006618if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006619 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006620else
a.rottmann9bc8b932004-02-29 15:18:31 +00006621 case $MAGIC_CMD in
6622[\\/*] | ?:[\\/]*)
6623 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6624 ;;
6625*)
6626 lt_save_MAGIC_CMD="$MAGIC_CMD"
6627 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6628 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6629 for ac_dir in $ac_dummy; do
6630 IFS="$lt_save_ifs"
6631 test -z "$ac_dir" && ac_dir=.
6632 if test -f $ac_dir/${ac_tool_prefix}file; then
6633 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6634 if test -n "$file_magic_test_file"; then
6635 case $deplibs_check_method in
6636 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006637 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006638 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6639 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6640 $EGREP "$file_magic_regex" > /dev/null; then
6641 :
6642 else
mlcreech636a9952008-05-05 22:52:56 +00006643 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006644
a.rottmann9bc8b932004-02-29 15:18:31 +00006645*** Warning: the command libtool uses to detect shared libraries,
6646*** $file_magic_cmd, produces output that libtool cannot recognize.
6647*** The result is that libtool may fail to recognize shared libraries
6648*** as such. This will affect the creation of libtool libraries that
6649*** depend on shared libraries, but programs linked with such libtool
6650*** libraries will work regardless of this problem. Nevertheless, you
6651*** may want to report the problem to your system manager and/or to
6652*** bug-libtool@gnu.org
6653
mlcreech636a9952008-05-05 22:52:56 +00006654_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006655 fi ;;
6656 esac
6657 fi
6658 break
6659 fi
6660 done
6661 IFS="$lt_save_ifs"
6662 MAGIC_CMD="$lt_save_MAGIC_CMD"
6663 ;;
6664esac
6665fi
6666
6667MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6668if test -n "$MAGIC_CMD"; then
drh710658c2012-01-16 13:00:05 +00006669 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006670$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006671else
drh710658c2012-01-16 13:00:05 +00006672 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006673$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006674fi
6675
mlcreech636a9952008-05-05 22:52:56 +00006676
6677
6678
6679
a.rottmann9bc8b932004-02-29 15:18:31 +00006680if test -z "$lt_cv_path_MAGIC_CMD"; then
6681 if test -n "$ac_tool_prefix"; then
drh710658c2012-01-16 13:00:05 +00006682 { $as_echo "$as_me:$LINENO: checking for file" >&5
drh8b727472009-01-19 18:18:40 +00006683$as_echo_n "checking for file... " >&6; }
drh710658c2012-01-16 13:00:05 +00006684if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006685 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006686else
6687 case $MAGIC_CMD in
6688[\\/*] | ?:[\\/]*)
6689 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6690 ;;
6691*)
6692 lt_save_MAGIC_CMD="$MAGIC_CMD"
6693 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6694 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6695 for ac_dir in $ac_dummy; do
6696 IFS="$lt_save_ifs"
6697 test -z "$ac_dir" && ac_dir=.
6698 if test -f $ac_dir/file; then
6699 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6700 if test -n "$file_magic_test_file"; then
6701 case $deplibs_check_method in
6702 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006703 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006704 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6705 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6706 $EGREP "$file_magic_regex" > /dev/null; then
6707 :
6708 else
mlcreech636a9952008-05-05 22:52:56 +00006709 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006710
6711*** Warning: the command libtool uses to detect shared libraries,
6712*** $file_magic_cmd, produces output that libtool cannot recognize.
6713*** The result is that libtool may fail to recognize shared libraries
6714*** as such. This will affect the creation of libtool libraries that
6715*** depend on shared libraries, but programs linked with such libtool
6716*** libraries will work regardless of this problem. Nevertheless, you
6717*** may want to report the problem to your system manager and/or to
6718*** bug-libtool@gnu.org
6719
mlcreech636a9952008-05-05 22:52:56 +00006720_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006721 fi ;;
6722 esac
6723 fi
6724 break
6725 fi
6726 done
6727 IFS="$lt_save_ifs"
6728 MAGIC_CMD="$lt_save_MAGIC_CMD"
6729 ;;
6730esac
6731fi
6732
6733MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6734if test -n "$MAGIC_CMD"; then
drh710658c2012-01-16 13:00:05 +00006735 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006736$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006737else
drh710658c2012-01-16 13:00:05 +00006738 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006739$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006740fi
6741
mlcreech636a9952008-05-05 22:52:56 +00006742
a.rottmann9bc8b932004-02-29 15:18:31 +00006743 else
6744 MAGIC_CMD=:
6745 fi
6746fi
6747
6748 fi
6749 ;;
6750esac
6751
a.rottmann9bc8b932004-02-29 15:18:31 +00006752# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006753
a.rottmann9bc8b932004-02-29 15:18:31 +00006754lt_save_CC="$CC"
6755ac_ext=c
6756ac_cpp='$CPP $CPPFLAGS'
6757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6759ac_compiler_gnu=$ac_cv_c_compiler_gnu
6760
6761
6762# Source file extension for C test sources.
6763ac_ext=c
6764
6765# Object file extension for compiled C test sources.
6766objext=o
6767objext=$objext
6768
6769# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006770lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006771
6772# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006773lt_simple_link_test_code='int main(){return(0);}'
6774
6775
6776
6777
6778
a.rottmann9bc8b932004-02-29 15:18:31 +00006779
6780
6781# If no C compiler was specified, use CC.
6782LTCC=${LTCC-"$CC"}
6783
vapier7f19c022007-02-17 14:46:31 +00006784# If no C compiler flags were specified, use CFLAGS.
6785LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6786
a.rottmann9bc8b932004-02-29 15:18:31 +00006787# Allow CC to be a program name with arguments.
6788compiler=$CC
6789
mlcreech636a9952008-05-05 22:52:56 +00006790# Save the default compiler, since it gets overwritten when the other
6791# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6792compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006793
vapier7f19c022007-02-17 14:46:31 +00006794# save warnings/boilerplate of simple test code
6795ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006796echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006797eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6798_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006799$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006800
vapier7f19c022007-02-17 14:46:31 +00006801ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006802echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006803eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6804_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006805$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006806
6807
mlcreech636a9952008-05-05 22:52:56 +00006808if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006809
6810lt_prog_compiler_no_builtin_flag=
6811
6812if test "$GCC" = yes; then
6813 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6814
drh710658c2012-01-16 13:00:05 +00006815 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006816$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
drh710658c2012-01-16 13:00:05 +00006817if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006818 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006819else
6820 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006821 ac_outfile=conftest.$ac_objext
6822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006823 lt_compiler_flag="-fno-rtti -fno-exceptions"
6824 # Insert the option either (1) after the last *FLAGS variable, or
6825 # (2) before a word containing "conftest.", or (3) at the end.
6826 # Note that $ac_compile itself does not contain backslashes and begins
6827 # with a dollar sign (not a hyphen), so the echo should work correctly.
6828 # The option is referenced via a variable to avoid confusing sed.
6829 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6832 -e 's:$: $lt_compiler_flag:'`
drh92f76572012-12-13 18:51:53 +00006833 (eval echo "\"\$as_me:6833: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006834 (eval "$lt_compile" 2>conftest.err)
6835 ac_status=$?
6836 cat conftest.err >&5
drh92f76572012-12-13 18:51:53 +00006837 echo "$as_me:6837: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006838 if (exit $ac_status) && test -s "$ac_outfile"; then
6839 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006840 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006841 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6843 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006844 lt_cv_prog_compiler_rtti_exceptions=yes
6845 fi
6846 fi
mlcreech636a9952008-05-05 22:52:56 +00006847 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006848
6849fi
drh710658c2012-01-16 13:00:05 +00006850{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006851$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006852
6853if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6854 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6855else
6856 :
6857fi
6858
6859fi
6860
mlcreech636a9952008-05-05 22:52:56 +00006861
6862
6863
6864
6865
6866 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006867lt_prog_compiler_pic=
6868lt_prog_compiler_static=
6869
drh710658c2012-01-16 13:00:05 +00006870{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
drh8b727472009-01-19 18:18:40 +00006871$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006872
drh71eb93e2001-09-28 01:34:43 +00006873 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006874 lt_prog_compiler_wl='-Wl,'
6875 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006876
6877 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006878 aix*)
6879 # All AIX code is PIC.
6880 if test "$host_cpu" = ia64; then
6881 # AIX 5 now supports IA64 processor
6882 lt_prog_compiler_static='-Bstatic'
6883 fi
drh71eb93e2001-09-28 01:34:43 +00006884 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006885
drh71eb93e2001-09-28 01:34:43 +00006886 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006887 case $host_cpu in
6888 powerpc)
6889 # see comment about AmigaOS4 .so support
6890 lt_prog_compiler_pic='-fPIC'
6891 ;;
6892 m68k)
6893 # FIXME: we need at least 68020 code to build shared libraries, but
6894 # adding the `-m68020' flag to GCC prevents building anything better,
6895 # like `-m68040'.
6896 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6897 ;;
6898 esac
drh71eb93e2001-09-28 01:34:43 +00006899 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006900
mlcreech636a9952008-05-05 22:52:56 +00006901 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006902 # PIC is the default for these OSes.
6903 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006904
vapier6acb2cf2009-01-28 04:46:28 +00006905 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006906 # This hack is so that the source file can tell whether it is being
6907 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006908 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6909 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006910 lt_prog_compiler_pic='-DDLL_EXPORT'
6911 ;;
6912
drh71eb93e2001-09-28 01:34:43 +00006913 darwin* | rhapsody*)
6914 # PIC is the default on this platform
6915 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006916 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006917 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006918
a.rottmann9bc8b932004-02-29 15:18:31 +00006919 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006920 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6921 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6922 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006923 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006924 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006925 # +Z the default
6926 ;;
6927 *)
6928 lt_prog_compiler_pic='-fPIC'
6929 ;;
6930 esac
6931 ;;
6932
mlcreech636a9952008-05-05 22:52:56 +00006933 interix[3-9]*)
6934 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6935 # Instead, we relocate shared libraries at runtime.
6936 ;;
6937
6938 msdosdjgpp*)
6939 # Just because we use GCC doesn't mean we suddenly get shared libraries
6940 # on systems that don't support them.
6941 lt_prog_compiler_can_build_shared=no
6942 enable_shared=no
6943 ;;
6944
6945 *nto* | *qnx*)
6946 # QNX uses GNU C++, but need to define -shared option too, otherwise
6947 # it will coredump.
6948 lt_prog_compiler_pic='-fPIC -shared'
6949 ;;
6950
6951 sysv4*MP*)
6952 if test -d /usr/nec; then
6953 lt_prog_compiler_pic=-Kconform_pic
6954 fi
6955 ;;
6956
drh71eb93e2001-09-28 01:34:43 +00006957 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006958 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006959 ;;
6960 esac
6961 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006962 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006963 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006964 aix*)
6965 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006966 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006967 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006968 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006969 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006970 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006971 fi
6972 ;;
6973
vapier6acb2cf2009-01-28 04:46:28 +00006974 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006975 # This hack is so that the source file can tell whether it is being
6976 # built for inclusion in a dll (and should export symbols for example).
6977 lt_prog_compiler_pic='-DDLL_EXPORT'
6978 ;;
6979
a.rottmann84e63352003-03-24 09:42:16 +00006980 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006981 lt_prog_compiler_wl='-Wl,'
6982 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6983 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006984 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006985 hppa*64*|ia64*)
6986 # +Z the default
6987 ;;
6988 *)
6989 lt_prog_compiler_pic='+Z'
6990 ;;
6991 esac
6992 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6993 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006994 ;;
6995
6996 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006997 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006998 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006999 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00007000 ;;
7001
mlcreech636a9952008-05-05 22:52:56 +00007002 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00007003 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00007004 # old Intel for x86_64 which still supported -KPIC.
7005 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007006 lt_prog_compiler_wl='-Wl,'
7007 lt_prog_compiler_pic='-KPIC'
7008 lt_prog_compiler_static='-static'
7009 ;;
vapier6acb2cf2009-01-28 04:46:28 +00007010 # icc used to be incompatible with GCC.
7011 # ICC 10 doesn't accept -KPIC any more.
7012 icc* | ifort*)
7013 lt_prog_compiler_wl='-Wl,'
7014 lt_prog_compiler_pic='-fPIC'
7015 lt_prog_compiler_static='-static'
7016 ;;
7017 # Lahey Fortran 8.1.
7018 lf95*)
7019 lt_prog_compiler_wl='-Wl,'
7020 lt_prog_compiler_pic='--shared'
7021 lt_prog_compiler_static='--static'
7022 ;;
vapier7f19c022007-02-17 14:46:31 +00007023 pgcc* | pgf77* | pgf90* | pgf95*)
7024 # Portland Group compilers (*not* the Pentium gcc compiler,
7025 # which looks to be a dead project)
7026 lt_prog_compiler_wl='-Wl,'
7027 lt_prog_compiler_pic='-fpic'
7028 lt_prog_compiler_static='-Bstatic'
7029 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007030 ccc*)
7031 lt_prog_compiler_wl='-Wl,'
7032 # All Alpha code is PIC.
7033 lt_prog_compiler_static='-non_shared'
7034 ;;
mlcreech636a9952008-05-05 22:52:56 +00007035 xl*)
7036 # IBM XL C 8.0/Fortran 10.1 on PPC
7037 lt_prog_compiler_wl='-Wl,'
7038 lt_prog_compiler_pic='-qpic'
7039 lt_prog_compiler_static='-qstaticlink'
7040 ;;
7041 *)
7042 case `$CC -V 2>&1 | sed 5q` in
7043 *Sun\ C*)
7044 # Sun C 5.9
7045 lt_prog_compiler_pic='-KPIC'
7046 lt_prog_compiler_static='-Bstatic'
7047 lt_prog_compiler_wl='-Wl,'
7048 ;;
7049 *Sun\ F*)
7050 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7051 lt_prog_compiler_pic='-KPIC'
7052 lt_prog_compiler_static='-Bstatic'
7053 lt_prog_compiler_wl=''
7054 ;;
7055 esac
7056 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007057 esac
drh71eb93e2001-09-28 01:34:43 +00007058 ;;
7059
mlcreech636a9952008-05-05 22:52:56 +00007060 newsos6)
7061 lt_prog_compiler_pic='-KPIC'
7062 lt_prog_compiler_static='-Bstatic'
7063 ;;
7064
7065 *nto* | *qnx*)
7066 # QNX uses GNU C++, but need to define -shared option too, otherwise
7067 # it will coredump.
7068 lt_prog_compiler_pic='-fPIC -shared'
7069 ;;
7070
drh71eb93e2001-09-28 01:34:43 +00007071 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007072 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00007073 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00007074 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00007075 ;;
7076
mlcreech636a9952008-05-05 22:52:56 +00007077 rdos*)
7078 lt_prog_compiler_static='-non_shared'
7079 ;;
7080
drh71eb93e2001-09-28 01:34:43 +00007081 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007082 lt_prog_compiler_pic='-KPIC'
7083 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00007084 case $cc_basename in
7085 f77* | f90* | f95*)
7086 lt_prog_compiler_wl='-Qoption ld ';;
7087 *)
7088 lt_prog_compiler_wl='-Wl,';;
7089 esac
drh71eb93e2001-09-28 01:34:43 +00007090 ;;
7091
7092 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007093 lt_prog_compiler_wl='-Qoption ld '
7094 lt_prog_compiler_pic='-PIC'
7095 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007096 ;;
7097
vapier7f19c022007-02-17 14:46:31 +00007098 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007099 lt_prog_compiler_wl='-Wl,'
7100 lt_prog_compiler_pic='-KPIC'
7101 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007102 ;;
7103
7104 sysv4*MP*)
7105 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00007106 lt_prog_compiler_pic='-Kconform_pic'
7107 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007108 fi
7109 ;;
7110
vapier7f19c022007-02-17 14:46:31 +00007111 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7112 lt_prog_compiler_wl='-Wl,'
7113 lt_prog_compiler_pic='-KPIC'
7114 lt_prog_compiler_static='-Bstatic'
7115 ;;
7116
7117 unicos*)
7118 lt_prog_compiler_wl='-Wl,'
7119 lt_prog_compiler_can_build_shared=no
7120 ;;
7121
a.rottmann9bc8b932004-02-29 15:18:31 +00007122 uts4*)
7123 lt_prog_compiler_pic='-pic'
7124 lt_prog_compiler_static='-Bstatic'
7125 ;;
7126
drh71eb93e2001-09-28 01:34:43 +00007127 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007128 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00007129 ;;
7130 esac
7131 fi
7132
mlcreech636a9952008-05-05 22:52:56 +00007133case $host_os in
7134 # For platforms which do not support PIC, -DPIC is meaningless:
7135 *djgpp*)
7136 lt_prog_compiler_pic=
7137 ;;
7138 *)
7139 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7140 ;;
7141esac
drh710658c2012-01-16 13:00:05 +00007142{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
drh8b727472009-01-19 18:18:40 +00007143$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007144
7145
7146
7147
7148
drh71eb93e2001-09-28 01:34:43 +00007149
a.rottmann9bc8b932004-02-29 15:18:31 +00007150#
7151# Check to make sure the PIC flag actually works.
7152#
7153if test -n "$lt_prog_compiler_pic"; then
drh710658c2012-01-16 13:00:05 +00007154 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
drh8b727472009-01-19 18:18:40 +00007155$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
drh710658c2012-01-16 13:00:05 +00007156if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007157 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007158else
mlcreech636a9952008-05-05 22:52:56 +00007159 lt_cv_prog_compiler_pic_works=no
7160 ac_outfile=conftest.$ac_objext
7161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007162 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7163 # Insert the option either (1) after the last *FLAGS variable, or
7164 # (2) before a word containing "conftest.", or (3) at the end.
7165 # Note that $ac_compile itself does not contain backslashes and begins
7166 # with a dollar sign (not a hyphen), so the echo should work correctly.
7167 # The option is referenced via a variable to avoid confusing sed.
7168 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7171 -e 's:$: $lt_compiler_flag:'`
drh92f76572012-12-13 18:51:53 +00007172 (eval echo "\"\$as_me:7172: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007173 (eval "$lt_compile" 2>conftest.err)
7174 ac_status=$?
7175 cat conftest.err >&5
drh92f76572012-12-13 18:51:53 +00007176 echo "$as_me:7176: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007177 if (exit $ac_status) && test -s "$ac_outfile"; then
7178 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007179 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007180 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7182 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007183 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007184 fi
7185 fi
mlcreech636a9952008-05-05 22:52:56 +00007186 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007187
a.rottmann9bc8b932004-02-29 15:18:31 +00007188fi
drh710658c2012-01-16 13:00:05 +00007189{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
drh8b727472009-01-19 18:18:40 +00007190$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007191
mlcreech636a9952008-05-05 22:52:56 +00007192if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007193 case $lt_prog_compiler_pic in
7194 "" | " "*) ;;
7195 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7196 esac
drh71eb93e2001-09-28 01:34:43 +00007197else
a.rottmann9bc8b932004-02-29 15:18:31 +00007198 lt_prog_compiler_pic=
7199 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007200fi
7201
a.rottmann84e63352003-03-24 09:42:16 +00007202fi
mlcreech636a9952008-05-05 22:52:56 +00007203
7204
7205
7206
7207
a.rottmann84e63352003-03-24 09:42:16 +00007208
vapier7f19c022007-02-17 14:46:31 +00007209#
7210# Check to make sure the static flag actually works.
7211#
7212wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drh710658c2012-01-16 13:00:05 +00007213{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
drh8b727472009-01-19 18:18:40 +00007214$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
drh710658c2012-01-16 13:00:05 +00007215if test "${lt_cv_prog_compiler_static_works+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007216 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007217else
mlcreech636a9952008-05-05 22:52:56 +00007218 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007219 save_LDFLAGS="$LDFLAGS"
7220 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007221 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007222 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7223 # The linker can only warn and ignore the option if not recognized
7224 # So say no if there are warnings
7225 if test -s conftest.err; then
7226 # Append any errors to the config.log.
7227 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007228 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007229 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7230 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007231 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007232 fi
7233 else
mlcreech636a9952008-05-05 22:52:56 +00007234 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007235 fi
7236 fi
mlcreech636a9952008-05-05 22:52:56 +00007237 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007238 LDFLAGS="$save_LDFLAGS"
7239
7240fi
drh710658c2012-01-16 13:00:05 +00007241{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
drh8b727472009-01-19 18:18:40 +00007242$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007243
mlcreech636a9952008-05-05 22:52:56 +00007244if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007245 :
7246else
7247 lt_prog_compiler_static=
7248fi
7249
7250
mlcreech636a9952008-05-05 22:52:56 +00007251
7252
7253
7254
7255
drh710658c2012-01-16 13:00:05 +00007256 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007257$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drh710658c2012-01-16 13:00:05 +00007258if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007259 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007260else
a.rottmann9bc8b932004-02-29 15:18:31 +00007261 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007262 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007263 mkdir conftest
7264 cd conftest
7265 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007267
a.rottmann9bc8b932004-02-29 15:18:31 +00007268 lt_compiler_flag="-o out/conftest2.$ac_objext"
7269 # Insert the option either (1) after the last *FLAGS variable, or
7270 # (2) before a word containing "conftest.", or (3) at the end.
7271 # Note that $ac_compile itself does not contain backslashes and begins
7272 # with a dollar sign (not a hyphen), so the echo should work correctly.
7273 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7276 -e 's:$: $lt_compiler_flag:'`
drh92f76572012-12-13 18:51:53 +00007277 (eval echo "\"\$as_me:7277: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007278 (eval "$lt_compile" 2>out/conftest.err)
7279 ac_status=$?
7280 cat out/conftest.err >&5
drh92f76572012-12-13 18:51:53 +00007281 echo "$as_me:7281: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007282 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7283 then
7284 # The compiler can only warn and ignore the option if not recognized
7285 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007286 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007287 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7288 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007289 lt_cv_prog_compiler_c_o=yes
7290 fi
7291 fi
vapier7f19c022007-02-17 14:46:31 +00007292 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007293 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007294 # SGI C++ compiler will create directory out/ii_files/ for
7295 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007296 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7297 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007298 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007299 $RM -r conftest
7300 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007301
7302fi
drh710658c2012-01-16 13:00:05 +00007303{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007304$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007305
7306
7307
7308
7309
7310
drh710658c2012-01-16 13:00:05 +00007311 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007312$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drh710658c2012-01-16 13:00:05 +00007313if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007314 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007315else
7316 lt_cv_prog_compiler_c_o=no
7317 $RM -r conftest 2>/dev/null
7318 mkdir conftest
7319 cd conftest
7320 mkdir out
7321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7322
7323 lt_compiler_flag="-o out/conftest2.$ac_objext"
7324 # Insert the option either (1) after the last *FLAGS variable, or
7325 # (2) before a word containing "conftest.", or (3) at the end.
7326 # Note that $ac_compile itself does not contain backslashes and begins
7327 # with a dollar sign (not a hyphen), so the echo should work correctly.
7328 lt_compile=`echo "$ac_compile" | $SED \
7329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7331 -e 's:$: $lt_compiler_flag:'`
drh92f76572012-12-13 18:51:53 +00007332 (eval echo "\"\$as_me:7332: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007333 (eval "$lt_compile" 2>out/conftest.err)
7334 ac_status=$?
7335 cat out/conftest.err >&5
drh92f76572012-12-13 18:51:53 +00007336 echo "$as_me:7336: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007337 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7338 then
7339 # The compiler can only warn and ignore the option if not recognized
7340 # So say no if there are warnings
7341 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7342 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7343 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7344 lt_cv_prog_compiler_c_o=yes
7345 fi
7346 fi
7347 chmod u+w . 2>&5
7348 $RM conftest*
7349 # SGI C++ compiler will create directory out/ii_files/ for
7350 # template instantiation
7351 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7352 $RM out/* && rmdir out
7353 cd ..
7354 $RM -r conftest
7355 $RM conftest*
7356
7357fi
drh710658c2012-01-16 13:00:05 +00007358{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007359$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007360
7361
drh71eb93e2001-09-28 01:34:43 +00007362
a.rottmann84e63352003-03-24 09:42:16 +00007363
drh71eb93e2001-09-28 01:34:43 +00007364hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007365if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007366 # do not overwrite the value of need_locks provided by the user
drh710658c2012-01-16 13:00:05 +00007367 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
drh8b727472009-01-19 18:18:40 +00007368$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007369 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007370 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007371 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7372 touch conftest.a
7373 ln conftest.a conftest.b 2>&5 || hard_links=no
7374 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drh710658c2012-01-16 13:00:05 +00007375 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
drh8b727472009-01-19 18:18:40 +00007376$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007377 if test "$hard_links" = no; then
drh710658c2012-01-16 13:00:05 +00007378 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh8b727472009-01-19 18:18:40 +00007379$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007380 need_locks=warn
7381 fi
7382else
7383 need_locks=no
7384fi
7385
mlcreech636a9952008-05-05 22:52:56 +00007386
7387
7388
7389
7390
drh710658c2012-01-16 13:00:05 +00007391 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00007392$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007393
7394 runpath_var=
7395 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007396 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007397 archive_cmds=
7398 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007399 compiler_needs_object=no
7400 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007401 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007402 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7403 hardcode_automatic=no
7404 hardcode_direct=no
7405 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007406 hardcode_libdir_flag_spec=
7407 hardcode_libdir_flag_spec_ld=
7408 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007409 hardcode_minus_L=no
7410 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007411 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007412 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007413 module_cmds=
7414 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007415 old_archive_from_new_cmds=
7416 old_archive_from_expsyms_cmds=
7417 thread_safe_flag_spec=
7418 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007419 # include_expsyms should be a list of space-separated symbols to be *always*
7420 # included in the symbol list
7421 include_expsyms=
7422 # exclude_expsyms can be an extended regexp of symbols to exclude
7423 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7424 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7425 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007426 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007427 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7428 # platforms (ab)use it in PIC code, but their linkers get confused if
7429 # the symbol is explicitly referenced. Since portable code cannot
7430 # rely on this symbol name, it's probably fine to never include it in
7431 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007432 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007433 extract_expsyms_cmds=
7434
7435 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007436 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007437 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7438 # When not using gcc, we currently assume that we are using
7439 # Microsoft Visual C++.
7440 if test "$GCC" != yes; then
7441 with_gnu_ld=no
7442 fi
7443 ;;
vapier7f19c022007-02-17 14:46:31 +00007444 interix*)
7445 # we just hope/assume this is gcc and not c89 (= MSVC++)
7446 with_gnu_ld=yes
7447 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007448 openbsd*)
7449 with_gnu_ld=no
7450 ;;
7451 esac
7452
7453 ld_shlibs=yes
7454 if test "$with_gnu_ld" = yes; then
7455 # If archive_cmds runs LD, not CC, wlarc should be empty
7456 wlarc='${wl}'
7457
vapier7f19c022007-02-17 14:46:31 +00007458 # Set some defaults for GNU ld with shared library support. These
7459 # are reset later if shared libraries are not supported. Putting them
7460 # here allows them to be overridden if necessary.
7461 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007462 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007463 export_dynamic_flag_spec='${wl}--export-dynamic'
7464 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007465 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7466 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7467 else
7468 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007469 fi
7470 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007471 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007472 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7473 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7474 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7475 *\ 2.11.*) ;; # other 2.11 versions
7476 *) supports_anon_versioning=yes ;;
7477 esac
7478
a.rottmann9bc8b932004-02-29 15:18:31 +00007479 # See if GNU ld supports shared libraries.
7480 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007481 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007482 # On AIX/PPC, the GNU linker is very broken
7483 if test "$host_cpu" != ia64; then
7484 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007485 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007486
7487*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7488*** to be unable to reliably create shared libraries on AIX.
7489*** Therefore, libtool is disabling shared libraries support. If you
7490*** really care for shared libraries, you may want to modify your PATH
7491*** so that a non-GNU linker is found, and then restart.
7492
mlcreech636a9952008-05-05 22:52:56 +00007493_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007494 fi
7495 ;;
7496
7497 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007498 case $host_cpu in
7499 powerpc)
7500 # see comment about AmigaOS4 .so support
7501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7502 archive_expsym_cmds=''
7503 ;;
7504 m68k)
7505 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)'
7506 hardcode_libdir_flag_spec='-L$libdir'
7507 hardcode_minus_L=yes
7508 ;;
7509 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007510 ;;
7511
7512 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007513 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007514 allow_undefined_flag=unsupported
7515 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7516 # support --undefined. This deserves some investigation. FIXME
7517 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7518 else
7519 ld_shlibs=no
7520 fi
7521 ;;
7522
vapier6acb2cf2009-01-28 04:46:28 +00007523 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007524 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007525 # as there is no search path for DLLs.
7526 hardcode_libdir_flag_spec='-L$libdir'
7527 allow_undefined_flag=unsupported
7528 always_export_symbols=no
7529 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007530 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 +00007531
mlcreech636a9952008-05-05 22:52:56 +00007532 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007533 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 +00007534 # If the export-symbols file already is a .def file (1st line
7535 # is EXPORTS), use it as is; otherwise, prepend...
7536 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7537 cp $export_symbols $output_objdir/$soname.def;
7538 else
7539 echo EXPORTS > $output_objdir/$soname.def;
7540 cat $export_symbols >> $output_objdir/$soname.def;
7541 fi~
vapier7f19c022007-02-17 14:46:31 +00007542 $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 +00007543 else
7544 ld_shlibs=no
7545 fi
7546 ;;
7547
mlcreech636a9952008-05-05 22:52:56 +00007548 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007549 hardcode_direct=no
7550 hardcode_shlibpath_var=no
7551 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7552 export_dynamic_flag_spec='${wl}-E'
7553 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7554 # Instead, shared libraries are loaded at an image base (0x10000000 by
7555 # default) and relocated if they conflict, which is a slow very memory
7556 # consuming and fragmenting process. To avoid this, we pick a random,
7557 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7558 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7559 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7560 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'
7561 ;;
7562
mlcreech636a9952008-05-05 22:52:56 +00007563 gnu* | linux* | tpf* | k*bsd*-gnu)
7564 tmp_diet=no
7565 if test "$host_os" = linux-dietlibc; then
7566 case $cc_basename in
7567 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7568 esac
7569 fi
7570 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7571 && test "$tmp_diet" = no
7572 then
vapier7f19c022007-02-17 14:46:31 +00007573 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007574 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007575 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007576 pgcc*) # Portland Group C compiler
7577 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 +00007578 tmp_addflag=' $pic_flag'
7579 ;;
7580 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007581 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 +00007582 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007583 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007584 tmp_addflag=' -i_dynamic' ;;
7585 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7586 tmp_addflag=' -i_dynamic -nofor_main' ;;
7587 ifc* | ifort*) # Intel Fortran compiler
7588 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007589 lf95*) # Lahey Fortran 8.1
7590 whole_archive_flag_spec=
7591 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007592 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7593 tmp_sharedflag='-qmkshrobj'
7594 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007595 esac
mlcreech636a9952008-05-05 22:52:56 +00007596 case `$CC -V 2>&1 | sed 5q` in
7597 *Sun\ C*) # Sun C 5.9
7598 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'
7599 compiler_needs_object=yes
7600 tmp_sharedflag='-G' ;;
7601 *Sun\ F*) # Sun Fortran 8.3
7602 tmp_sharedflag='-G' ;;
7603 esac
7604 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007605
mlcreech636a9952008-05-05 22:52:56 +00007606 if test "x$supports_anon_versioning" = xyes; then
7607 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7608 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7609 echo "local: *; };" >> $output_objdir/$libname.ver~
7610 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7611 fi
7612
7613 case $cc_basename in
7614 xlf*)
7615 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7616 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7617 hardcode_libdir_flag_spec=
7618 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7619 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7620 if test "x$supports_anon_versioning" = xyes; then
7621 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7622 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7623 echo "local: *; };" >> $output_objdir/$libname.ver~
7624 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7625 fi
7626 ;;
7627 esac
vapier7f19c022007-02-17 14:46:31 +00007628 else
mlcreech636a9952008-05-05 22:52:56 +00007629 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007630 fi
7631 ;;
7632
7633 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007634 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007635 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7636 wlarc=
7637 else
7638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7639 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7640 fi
7641 ;;
7642
vapier7f19c022007-02-17 14:46:31 +00007643 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007644 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007645 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007646 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007647
7648*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7649*** create shared libraries on Solaris systems. Therefore, libtool
7650*** is disabling shared libraries support. We urge you to upgrade GNU
7651*** binutils to release 2.9.1 or newer. Another option is to modify
7652*** your PATH or compiler configuration so that the native linker is
7653*** used, and then restart.
7654
mlcreech636a9952008-05-05 22:52:56 +00007655_LT_EOF
7656 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7658 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7659 else
7660 ld_shlibs=no
7661 fi
7662 ;;
7663
vapier7f19c022007-02-17 14:46:31 +00007664 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7665 case `$LD -v 2>&1` in
7666 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7667 ld_shlibs=no
7668 cat <<_LT_EOF 1>&2
7669
7670*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7671*** reliably create shared libraries on SCO systems. Therefore, libtool
7672*** is disabling shared libraries support. We urge you to upgrade GNU
7673*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7674*** your PATH or compiler configuration so that the native linker is
7675*** used, and then restart.
7676
7677_LT_EOF
7678 ;;
7679 *)
mlcreech636a9952008-05-05 22:52:56 +00007680 # For security reasons, it is highly recommended that you always
7681 # use absolute paths for naming shared libraries, and exclude the
7682 # DT_RUNPATH tag from executables and libraries. But doing so
7683 # requires that you compile everything twice, which is a pain.
7684 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7687 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 +00007688 else
7689 ld_shlibs=no
7690 fi
7691 ;;
7692 esac
7693 ;;
7694
a.rottmann9bc8b932004-02-29 15:18:31 +00007695 sunos4*)
7696 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7697 wlarc=
7698 hardcode_direct=yes
7699 hardcode_shlibpath_var=no
7700 ;;
7701
a.rottmann9bc8b932004-02-29 15:18:31 +00007702 *)
mlcreech636a9952008-05-05 22:52:56 +00007703 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7705 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7706 else
7707 ld_shlibs=no
7708 fi
7709 ;;
7710 esac
7711
vapier7f19c022007-02-17 14:46:31 +00007712 if test "$ld_shlibs" = no; then
7713 runpath_var=
7714 hardcode_libdir_flag_spec=
7715 export_dynamic_flag_spec=
7716 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007717 fi
7718 else
7719 # PORTME fill in a description of your system's linker (not GNU ld)
7720 case $host_os in
7721 aix3*)
7722 allow_undefined_flag=unsupported
7723 always_export_symbols=yes
7724 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'
7725 # Note: this linker hardcodes the directories in LIBPATH if there
7726 # are no directories specified by -L.
7727 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007728 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007729 # Neither direct hardcoding nor static linking is supported with a
7730 # broken collect2.
7731 hardcode_direct=unsupported
7732 fi
7733 ;;
7734
mlcreech636a9952008-05-05 22:52:56 +00007735 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007736 if test "$host_cpu" = ia64; then
7737 # On IA64, the linker does run time linking by default, so we don't
7738 # have to do anything special.
7739 aix_use_runtimelinking=no
7740 exp_sym_flag='-Bexport'
7741 no_entry_flag=""
7742 else
7743 # If we're using GNU nm, then we don't want the "-C" option.
7744 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007745 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7746 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 +00007747 else
mlcreech636a9952008-05-05 22:52:56 +00007748 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 +00007749 fi
7750 aix_use_runtimelinking=no
7751
7752 # Test if we are trying to use run time linking or normal
7753 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7754 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007755 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007756 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007757 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7758 aix_use_runtimelinking=yes
7759 break
7760 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007761 done
vapier7f19c022007-02-17 14:46:31 +00007762 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007763 esac
7764
7765 exp_sym_flag='-bexport'
7766 no_entry_flag='-bnoentry'
7767 fi
7768
7769 # When large executables or shared objects are built, AIX ld can
7770 # have problems creating the table of contents. If linking a library
7771 # or program results in "error TOC overflow" add -mminimal-toc to
7772 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7773 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7774
7775 archive_cmds=''
7776 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007777 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007778 hardcode_libdir_separator=':'
7779 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007780 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007781
7782 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007783 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007784 # We only want to do this on AIX 4.2 and lower, the check
7785 # below for broken collect2 doesn't work under 4.3+
7786 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007787 if test -f "$collect2name" &&
7788 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007789 then
mlcreech636a9952008-05-05 22:52:56 +00007790 # We have reworked collect2
7791 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007792 else
mlcreech636a9952008-05-05 22:52:56 +00007793 # We have old collect2
7794 hardcode_direct=unsupported
7795 # It fails to find uninstalled libraries when the uninstalled
7796 # path is not listed in the libpath. Setting hardcode_minus_L
7797 # to unsupported forces relinking
7798 hardcode_minus_L=yes
7799 hardcode_libdir_flag_spec='-L$libdir'
7800 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007801 fi
vapier7f19c022007-02-17 14:46:31 +00007802 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007803 esac
7804 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007805 if test "$aix_use_runtimelinking" = yes; then
7806 shared_flag="$shared_flag "'${wl}-G'
7807 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007808 else
7809 # not using gcc
7810 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007811 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7812 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007813 shared_flag='-G'
7814 else
vapier7f19c022007-02-17 14:46:31 +00007815 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007816 shared_flag='${wl}-G'
7817 else
7818 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007819 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007820 fi
7821 fi
7822
vapier6acb2cf2009-01-28 04:46:28 +00007823 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007824 # It seems that -bexpall does not export symbols beginning with
7825 # underscore (_), so it is better to generate a list of symbols to export.
7826 always_export_symbols=yes
7827 if test "$aix_use_runtimelinking" = yes; then
7828 # Warning - without using the other runtime loading flags (-brtl),
7829 # -berok will link without error, but may produce a broken library.
7830 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007831 # Determine the default libpath from the value encoded in an
7832 # empty executable.
drh710658c2012-01-16 13:00:05 +00007833 cat >conftest.$ac_ext <<_ACEOF
7834/* confdefs.h. */
7835_ACEOF
7836cat confdefs.h >>conftest.$ac_ext
7837cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007838/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007839
a.rottmann84e63352003-03-24 09:42:16 +00007840int
7841main ()
7842{
a.rottmann9bc8b932004-02-29 15:18:31 +00007843
a.rottmann84e63352003-03-24 09:42:16 +00007844 ;
7845 return 0;
7846}
7847_ACEOF
drh710658c2012-01-16 13:00:05 +00007848rm -f conftest.$ac_objext conftest$ac_exeext
7849if { (ac_try="$ac_link"
7850case "(($ac_try" in
7851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852 *) ac_try_echo=$ac_try;;
7853esac
7854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7855$as_echo "$ac_try_echo") >&5
7856 (eval "$ac_link") 2>conftest.er1
7857 ac_status=$?
7858 grep -v '^ *+' conftest.er1 >conftest.err
7859 rm -f conftest.er1
7860 cat conftest.err >&5
7861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } && {
7863 test -z "$ac_c_werror_flag" ||
7864 test ! -s conftest.err
7865 } && test -s conftest$ac_exeext && {
7866 test "$cross_compiling" = yes ||
7867 $as_test_x conftest$ac_exeext
7868 }; then
a.rottmann84e63352003-03-24 09:42:16 +00007869
mlcreech636a9952008-05-05 22:52:56 +00007870lt_aix_libpath_sed='
7871 /Import File Strings/,/^$/ {
7872 /^0/ {
7873 s/^0 *\(.*\)$/\1/
7874 p
7875 }
7876 }'
7877aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007878# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007879if test -z "$aix_libpath"; then
7880 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7881fi
drh710658c2012-01-16 13:00:05 +00007882else
7883 $as_echo "$as_me: failed program was:" >&5
7884sed 's/^/| /' conftest.$ac_ext >&5
7885
7886
a.rottmann84e63352003-03-24 09:42:16 +00007887fi
drh710658c2012-01-16 13:00:05 +00007888
7889rm -rf conftest.dSYM
7890rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7891 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007892if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007893
mlcreech636a9952008-05-05 22:52:56 +00007894 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7895 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"
7896 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007897 if test "$host_cpu" = ia64; then
7898 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7899 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007900 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 +00007901 else
mlcreech636a9952008-05-05 22:52:56 +00007902 # Determine the default libpath from the value encoded in an
7903 # empty executable.
drh710658c2012-01-16 13:00:05 +00007904 cat >conftest.$ac_ext <<_ACEOF
7905/* confdefs.h. */
7906_ACEOF
7907cat confdefs.h >>conftest.$ac_ext
7908cat >>conftest.$ac_ext <<_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007909/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007910
a.rottmann9bc8b932004-02-29 15:18:31 +00007911int
7912main ()
7913{
a.rottmann84e63352003-03-24 09:42:16 +00007914
a.rottmann9bc8b932004-02-29 15:18:31 +00007915 ;
7916 return 0;
7917}
7918_ACEOF
drh710658c2012-01-16 13:00:05 +00007919rm -f conftest.$ac_objext conftest$ac_exeext
7920if { (ac_try="$ac_link"
7921case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924esac
7925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7926$as_echo "$ac_try_echo") >&5
7927 (eval "$ac_link") 2>conftest.er1
7928 ac_status=$?
7929 grep -v '^ *+' conftest.er1 >conftest.err
7930 rm -f conftest.er1
7931 cat conftest.err >&5
7932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } && {
7934 test -z "$ac_c_werror_flag" ||
7935 test ! -s conftest.err
7936 } && test -s conftest$ac_exeext && {
7937 test "$cross_compiling" = yes ||
7938 $as_test_x conftest$ac_exeext
7939 }; then
a.rottmann84e63352003-03-24 09:42:16 +00007940
mlcreech636a9952008-05-05 22:52:56 +00007941lt_aix_libpath_sed='
7942 /Import File Strings/,/^$/ {
7943 /^0/ {
7944 s/^0 *\(.*\)$/\1/
7945 p
7946 }
7947 }'
7948aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007949# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007950if test -z "$aix_libpath"; then
7951 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7952fi
drh710658c2012-01-16 13:00:05 +00007953else
7954 $as_echo "$as_me: failed program was:" >&5
7955sed 's/^/| /' conftest.$ac_ext >&5
7956
7957
a.rottmann9bc8b932004-02-29 15:18:31 +00007958fi
drh710658c2012-01-16 13:00:05 +00007959
7960rm -rf conftest.dSYM
7961rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7962 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007963if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007964
a.rottmann9bc8b932004-02-29 15:18:31 +00007965 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7966 # Warning - without using the other run time loading flags,
7967 # -berok will link without error, but may produce a broken library.
7968 no_undefined_flag=' ${wl}-bernotok'
7969 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007970 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007971 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007972 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007973 # This is similar to how AIX traditionally builds its shared libraries.
7974 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 +00007975 fi
7976 fi
a.rottmann84e63352003-03-24 09:42:16 +00007977 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007978
7979 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007980 case $host_cpu in
7981 powerpc)
7982 # see comment about AmigaOS4 .so support
7983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7984 archive_expsym_cmds=''
7985 ;;
7986 m68k)
7987 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)'
7988 hardcode_libdir_flag_spec='-L$libdir'
7989 hardcode_minus_L=yes
7990 ;;
7991 esac
a.rottmann84e63352003-03-24 09:42:16 +00007992 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007993
vapier7f19c022007-02-17 14:46:31 +00007994 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007995 export_dynamic_flag_spec=-rdynamic
7996 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007997
vapier6acb2cf2009-01-28 04:46:28 +00007998 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007999 # When not using gcc, we currently assume that we are using
8000 # Microsoft Visual C++.
8001 # hardcode_libdir_flag_spec is actually meaningless, as there is
8002 # no search path for DLLs.
8003 hardcode_libdir_flag_spec=' '
8004 allow_undefined_flag=unsupported
8005 # Tell ltmain to make .lib files, not .a files.
8006 libext=lib
8007 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00008008 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00008009 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00008010 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 +00008011 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00008012 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00008013 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00008014 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008015 fix_srcfile_path='`cygpath -w "$srcfile"`'
8016 enable_shared_with_static_runtimes=yes
8017 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008018
a.rottmann9bc8b932004-02-29 15:18:31 +00008019 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00008020
8021
8022 archive_cmds_need_lc=no
8023 hardcode_direct=no
8024 hardcode_automatic=yes
8025 hardcode_shlibpath_var=unsupported
8026 whole_archive_flag_spec=''
8027 link_all_deplibs=yes
8028 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00008029 case $cc_basename in
8030 ifort*) _lt_dar_can_shared=yes ;;
8031 *) _lt_dar_can_shared=$GCC ;;
8032 esac
8033 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00008034 output_verbose_link_cmd=echo
8035 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8036 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8037 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}"
8038 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}"
8039
8040 else
8041 ld_shlibs=no
8042 fi
8043
a.rottmann9bc8b932004-02-29 15:18:31 +00008044 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008045
a.rottmann9bc8b932004-02-29 15:18:31 +00008046 dgux*)
8047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8048 hardcode_libdir_flag_spec='-L$libdir'
8049 hardcode_shlibpath_var=no
8050 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008051
a.rottmann9bc8b932004-02-29 15:18:31 +00008052 freebsd1*)
8053 ld_shlibs=no
8054 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008055
a.rottmann9bc8b932004-02-29 15:18:31 +00008056 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8057 # support. Future versions do this automatically, but an explicit c++rt0.o
8058 # does not break anything, and helps significantly (at the cost of a little
8059 # extra space).
8060 freebsd2.2*)
8061 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8062 hardcode_libdir_flag_spec='-R$libdir'
8063 hardcode_direct=yes
8064 hardcode_shlibpath_var=no
8065 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008066
a.rottmann9bc8b932004-02-29 15:18:31 +00008067 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8068 freebsd2*)
8069 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8070 hardcode_direct=yes
8071 hardcode_minus_L=yes
8072 hardcode_shlibpath_var=no
8073 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008074
a.rottmann9bc8b932004-02-29 15:18:31 +00008075 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00008076 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008077 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8078 hardcode_libdir_flag_spec='-R$libdir'
8079 hardcode_direct=yes
8080 hardcode_shlibpath_var=no
8081 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008082
a.rottmann9bc8b932004-02-29 15:18:31 +00008083 hpux9*)
8084 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008085 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 +00008086 else
mlcreech636a9952008-05-05 22:52:56 +00008087 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 +00008088 fi
8089 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8090 hardcode_libdir_separator=:
8091 hardcode_direct=yes
8092
8093 # hardcode_minus_L: Not really in the search PATH,
8094 # but as the default location of the library.
8095 hardcode_minus_L=yes
8096 export_dynamic_flag_spec='${wl}-E'
8097 ;;
8098
vapier7f19c022007-02-17 14:46:31 +00008099 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008100 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00008101 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8102 else
8103 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8104 fi
8105 if test "$with_gnu_ld" = no; then
8106 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00008107 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00008108 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00008109 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00008110 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00008111 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00008112 # hardcode_minus_L: Not really in the search PATH,
8113 # but as the default location of the library.
8114 hardcode_minus_L=yes
8115 fi
8116 ;;
8117
8118 hpux11*)
8119 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8120 case $host_cpu in
8121 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008122 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8123 ;;
vapier7f19c022007-02-17 14:46:31 +00008124 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00008125 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008126 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008127 *)
8128 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8129 ;;
8130 esac
8131 else
vapier7f19c022007-02-17 14:46:31 +00008132 case $host_cpu in
8133 hppa*64*)
8134 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8135 ;;
8136 ia64*)
8137 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00008138 ;;
8139 *)
vapier7f19c022007-02-17 14:46:31 +00008140 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 +00008141 ;;
8142 esac
8143 fi
8144 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00008145 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8146 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00008147
vapier7f19c022007-02-17 14:46:31 +00008148 case $host_cpu in
8149 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00008150 hardcode_direct=no
8151 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008152 ;;
8153 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008154 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00008155 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008156 export_dynamic_flag_spec='${wl}-E'
8157
8158 # hardcode_minus_L: Not really in the search PATH,
8159 # but as the default location of the library.
8160 hardcode_minus_L=yes
8161 ;;
8162 esac
8163 fi
8164 ;;
8165
8166 irix5* | irix6* | nonstopux*)
8167 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008168 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'
8169 # Try to use the -exported_symbol ld option, if it does not
8170 # work, assume that -exports_file does not work either and
8171 # implicitly export all symbols.
8172 save_LDFLAGS="$LDFLAGS"
8173 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
drh710658c2012-01-16 13:00:05 +00008174 cat >conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +00008175int foo(void) {}
8176_ACEOF
drh710658c2012-01-16 13:00:05 +00008177rm -f conftest.$ac_objext conftest$ac_exeext
8178if { (ac_try="$ac_link"
8179case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8182esac
8183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8184$as_echo "$ac_try_echo") >&5
8185 (eval "$ac_link") 2>conftest.er1
8186 ac_status=$?
8187 grep -v '^ *+' conftest.er1 >conftest.err
8188 rm -f conftest.er1
8189 cat conftest.err >&5
8190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } && {
8192 test -z "$ac_c_werror_flag" ||
8193 test ! -s conftest.err
8194 } && test -s conftest$ac_exeext && {
8195 test "$cross_compiling" = yes ||
8196 $as_test_x conftest$ac_exeext
8197 }; then
mlcreech636a9952008-05-05 22:52:56 +00008198 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'
8199
drh710658c2012-01-16 13:00:05 +00008200else
8201 $as_echo "$as_me: failed program was:" >&5
8202sed 's/^/| /' conftest.$ac_ext >&5
8203
8204
mlcreech636a9952008-05-05 22:52:56 +00008205fi
drh710658c2012-01-16 13:00:05 +00008206
8207rm -rf conftest.dSYM
8208rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8209 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008210 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00008211 else
mlcreech636a9952008-05-05 22:52:56 +00008212 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'
8213 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 +00008214 fi
mlcreech636a9952008-05-05 22:52:56 +00008215 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008216 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8217 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00008218 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008219 link_all_deplibs=yes
8220 ;;
8221
vapier7f19c022007-02-17 14:46:31 +00008222 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008223 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008224 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8225 else
8226 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8227 fi
8228 hardcode_libdir_flag_spec='-R$libdir'
8229 hardcode_direct=yes
8230 hardcode_shlibpath_var=no
8231 ;;
8232
8233 newsos6)
8234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8235 hardcode_direct=yes
8236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8237 hardcode_libdir_separator=:
8238 hardcode_shlibpath_var=no
8239 ;;
8240
mlcreech636a9952008-05-05 22:52:56 +00008241 *nto* | *qnx*)
8242 ;;
8243
a.rottmann9bc8b932004-02-29 15:18:31 +00008244 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008245 if test -f /usr/libexec/ld.so; then
8246 hardcode_direct=yes
8247 hardcode_shlibpath_var=no
8248 hardcode_direct_absolute=yes
8249 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8250 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8251 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8252 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8253 export_dynamic_flag_spec='${wl}-E'
8254 else
8255 case $host_os in
8256 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8257 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8258 hardcode_libdir_flag_spec='-R$libdir'
8259 ;;
8260 *)
8261 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8262 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8263 ;;
8264 esac
8265 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008266 else
mlcreech636a9952008-05-05 22:52:56 +00008267 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008268 fi
8269 ;;
8270
8271 os2*)
8272 hardcode_libdir_flag_spec='-L$libdir'
8273 hardcode_minus_L=yes
8274 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008275 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'
8276 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008277 ;;
8278
8279 osf3*)
8280 if test "$GCC" = yes; then
8281 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008282 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 +00008283 else
8284 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008285 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 +00008286 fi
mlcreech636a9952008-05-05 22:52:56 +00008287 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8289 hardcode_libdir_separator=:
8290 ;;
8291
8292 osf4* | osf5*) # as osf3* with the addition of -msym flag
8293 if test "$GCC" = yes; then
8294 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008295 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 +00008296 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8297 else
8298 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008299 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'
8300 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~
8301 $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 +00008302
8303 # Both c and cxx compiler support -rpath directly
8304 hardcode_libdir_flag_spec='-rpath $libdir'
8305 fi
mlcreech636a9952008-05-05 22:52:56 +00008306 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008307 hardcode_libdir_separator=:
8308 ;;
8309
a.rottmann9bc8b932004-02-29 15:18:31 +00008310 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008311 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008312 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008313 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008314 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8315 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8316 $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 +00008317 else
mlcreech636a9952008-05-05 22:52:56 +00008318 case `$CC -V 2>&1` in
8319 *"Compilers 5.0"*)
8320 wlarc=''
8321 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8322 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8323 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8324 ;;
8325 *)
8326 wlarc='${wl}'
8327 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8328 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8329 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8330 ;;
8331 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008332 fi
8333 hardcode_libdir_flag_spec='-R$libdir'
8334 hardcode_shlibpath_var=no
8335 case $host_os in
8336 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008337 *)
mlcreech636a9952008-05-05 22:52:56 +00008338 # The compiler driver will combine and reorder linker options,
8339 # but understands `-z linker_flag'. GCC discards it without `$wl',
8340 # but is careful enough not to reorder.
8341 # Supported since Solaris 2.6 (maybe 2.5.1?)
8342 if test "$GCC" = yes; then
8343 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8344 else
8345 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8346 fi
8347 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008348 esac
8349 link_all_deplibs=yes
8350 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008351
a.rottmann9bc8b932004-02-29 15:18:31 +00008352 sunos4*)
8353 if test "x$host_vendor" = xsequent; then
8354 # Use $CC to link under sequent, because it throws in some extra .o
8355 # files that make .init and .fini sections work.
8356 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8357 else
8358 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8359 fi
8360 hardcode_libdir_flag_spec='-L$libdir'
8361 hardcode_direct=yes
8362 hardcode_minus_L=yes
8363 hardcode_shlibpath_var=no
8364 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008365
a.rottmann9bc8b932004-02-29 15:18:31 +00008366 sysv4)
8367 case $host_vendor in
8368 sni)
8369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8370 hardcode_direct=yes # is this really true???
8371 ;;
8372 siemens)
8373 ## LD is ld it makes a PLAMLIB
8374 ## CC just makes a GrossModule.
8375 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8376 reload_cmds='$CC -r -o $output$reload_objs'
8377 hardcode_direct=no
8378 ;;
8379 motorola)
8380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8381 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8382 ;;
8383 esac
8384 runpath_var='LD_RUN_PATH'
8385 hardcode_shlibpath_var=no
8386 ;;
8387
8388 sysv4.3*)
8389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8390 hardcode_shlibpath_var=no
8391 export_dynamic_flag_spec='-Bexport'
8392 ;;
8393
8394 sysv4*MP*)
8395 if test -d /usr/nec; then
8396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8397 hardcode_shlibpath_var=no
8398 runpath_var=LD_RUN_PATH
8399 hardcode_runpath_var=yes
8400 ld_shlibs=yes
8401 fi
8402 ;;
8403
mlcreech636a9952008-05-05 22:52:56 +00008404 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008405 no_undefined_flag='${wl}-z,text'
8406 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008407 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008408 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008409
a.rottmann9bc8b932004-02-29 15:18:31 +00008410 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008411 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8412 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 +00008413 else
vapier7f19c022007-02-17 14:46:31 +00008414 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8415 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 +00008416 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008417 ;;
8418
vapier7f19c022007-02-17 14:46:31 +00008419 sysv5* | sco3.2v5* | sco5v6*)
8420 # Note: We can NOT use -z defs as we might desire, because we do not
8421 # link with -lc, and that would cause any symbols used from libc to
8422 # always be unresolved, which means just about no library would
8423 # ever link correctly. If we're not using GNU ld we use -z text
8424 # though, which does catch some bad symbols but isn't as heavy-handed
8425 # as -z defs.
8426 no_undefined_flag='${wl}-z,text'
8427 allow_undefined_flag='${wl}-z,nodefs'
8428 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008429 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008430 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008431 hardcode_libdir_separator=':'
8432 link_all_deplibs=yes
8433 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008434 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008435
8436 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008437 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8438 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008439 else
mlcreech636a9952008-05-05 22:52:56 +00008440 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8441 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008442 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008443 ;;
8444
8445 uts4*)
8446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8447 hardcode_libdir_flag_spec='-L$libdir'
8448 hardcode_shlibpath_var=no
8449 ;;
8450
8451 *)
8452 ld_shlibs=no
8453 ;;
8454 esac
mlcreech636a9952008-05-05 22:52:56 +00008455
8456 if test x$host_vendor = xsni; then
8457 case $host in
8458 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8459 export_dynamic_flag_spec='${wl}-Blargedynsym'
8460 ;;
8461 esac
8462 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008463 fi
8464
drh710658c2012-01-16 13:00:05 +00008465{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
drh8b727472009-01-19 18:18:40 +00008466$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008467test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008468
mlcreech636a9952008-05-05 22:52:56 +00008469with_gnu_ld=$with_gnu_ld
8470
8471
danielk197733a14782008-08-04 14:50:05 +00008472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
a.rottmann9bc8b932004-02-29 15:18:31 +00008485#
8486# Do we need to explicitly link libc?
8487#
8488case "x$archive_cmds_need_lc" in
8489x|xyes)
8490 # Assume -lc should be added
8491 archive_cmds_need_lc=yes
8492
8493 if test "$enable_shared" = yes && test "$GCC" = yes; then
8494 case $archive_cmds in
8495 *'~'*)
8496 # FIXME: we may have to deal with multi-command sequences.
8497 ;;
8498 '$CC '*)
8499 # Test whether the compiler implicitly links with -lc since on some
8500 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8501 # to ld, don't add -lc before -lgcc.
drh710658c2012-01-16 13:00:05 +00008502 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
drh8b727472009-01-19 18:18:40 +00008503$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008504 $RM conftest*
8505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008506
drh710658c2012-01-16 13:00:05 +00008507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008508 (eval $ac_compile) 2>&5
8509 ac_status=$?
drh710658c2012-01-16 13:00:05 +00008510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); } 2>conftest.err; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008512 soname=conftest
8513 lib=conftest
8514 libobjs=conftest.$ac_objext
8515 deplibs=
8516 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008517 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008518 compiler_flags=-v
8519 linker_flags=-v
8520 verstring=
8521 output_objdir=.
8522 libname=conftest
8523 lt_save_allow_undefined_flag=$allow_undefined_flag
8524 allow_undefined_flag=
drh710658c2012-01-16 13:00:05 +00008525 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
mlcreech636a9952008-05-05 22:52:56 +00008526 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008527 ac_status=$?
drh710658c2012-01-16 13:00:05 +00008528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }
a.rottmann9bc8b932004-02-29 15:18:31 +00008530 then
8531 archive_cmds_need_lc=no
8532 else
8533 archive_cmds_need_lc=yes
8534 fi
8535 allow_undefined_flag=$lt_save_allow_undefined_flag
8536 else
8537 cat conftest.err 1>&5
8538 fi
mlcreech636a9952008-05-05 22:52:56 +00008539 $RM conftest*
drh710658c2012-01-16 13:00:05 +00008540 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
drh8b727472009-01-19 18:18:40 +00008541$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008542 ;;
8543 esac
drh71eb93e2001-09-28 01:34:43 +00008544 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008545 ;;
8546esac
drh71eb93e2001-09-28 01:34:43 +00008547
mlcreech636a9952008-05-05 22:52:56 +00008548
danielk197733a14782008-08-04 14:50:05 +00008549
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
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
drh710658c2012-01-16 13:00:05 +00008704 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
drh8b727472009-01-19 18:18:40 +00008705$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008706
8707if test "$GCC" = yes; then
8708 case $host_os in
8709 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8710 *) lt_awk_arg="/^libraries:/" ;;
8711 esac
8712 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8713 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8714 # if the path contains ";" then we assume it to be the separator
8715 # otherwise default to the standard path separator (i.e. ":") - it is
8716 # assumed that no part of a normal pathname contains ";" but that should
8717 # okay in the real world where ";" in dirpaths is itself problematic.
8718 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8719 else
8720 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8721 fi
8722 # Ok, now we have the path, separated by spaces, we can step through it
8723 # and add multilib dir if necessary.
8724 lt_tmp_lt_search_path_spec=
8725 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8726 for lt_sys_path in $lt_search_path_spec; do
8727 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8728 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8729 else
8730 test -d "$lt_sys_path" && \
8731 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8732 fi
8733 done
8734 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8735BEGIN {RS=" "; FS="/|\n";} {
8736 lt_foo="";
8737 lt_count=0;
8738 for (lt_i = NF; lt_i > 0; lt_i--) {
8739 if ($lt_i != "" && $lt_i != ".") {
8740 if ($lt_i == "..") {
8741 lt_count++;
8742 } else {
8743 if (lt_count == 0) {
8744 lt_foo="/" $lt_i lt_foo;
8745 } else {
8746 lt_count--;
8747 }
8748 }
8749 }
8750 }
8751 if (lt_foo != "") { lt_freq[lt_foo]++; }
8752 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8753}'`
8754 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8755else
8756 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8757fi
drh71eb93e2001-09-28 01:34:43 +00008758library_names_spec=
8759libname_spec='lib$name'
8760soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008761shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008762postinstall_cmds=
8763postuninstall_cmds=
8764finish_cmds=
8765finish_eval=
8766shlibpath_var=
8767shlibpath_overrides_runpath=unknown
8768version_type=none
8769dynamic_linker="$host_os ld.so"
8770sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008771need_lib_prefix=unknown
8772hardcode_into_libs=no
8773
8774# when you set need_version to no, make sure it does not cause -set_version
8775# flags to be left without arguments
8776need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008777
8778case $host_os in
8779aix3*)
8780 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008782 shlibpath_var=LIBPATH
8783
a.rottmann9bc8b932004-02-29 15:18:31 +00008784 # AIX 3 has no versioning support, so we append a major version to the name.
8785 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008786 ;;
8787
mlcreech636a9952008-05-05 22:52:56 +00008788aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008789 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008790 need_lib_prefix=no
8791 need_version=no
8792 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008793 if test "$host_cpu" = ia64; then
8794 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008795 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008796 shlibpath_var=LD_LIBRARY_PATH
8797 else
8798 # With GCC up to 2.95.x, collect2 would create an import file
8799 # for dependence libraries. The import file would start with
8800 # the line `#! .'. This would cause the generated library to
8801 # depend on `.', always an invalid library. This was fixed in
8802 # development snapshots of GCC prior to 3.0.
8803 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008804 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008805 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8806 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008807 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008808 :
8809 else
8810 can_build_shared=no
8811 fi
8812 ;;
drh71eb93e2001-09-28 01:34:43 +00008813 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008814 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8815 # soname into executable. Probably we can add versioning support to
8816 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008817 if test "$aix_use_runtimelinking" = yes; then
8818 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8819 # instead of lib<name>.a to let people know that these are not
8820 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008822 else
8823 # We preserve .a as extension for shared libraries through AIX4.2
8824 # and later when we are not doing run time linking.
8825 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008826 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008827 fi
8828 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008829 fi
8830 ;;
8831
8832amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008833 case $host_cpu in
8834 powerpc)
8835 # Since July 2007 AmigaOS4 officially supports .so libraries.
8836 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8838 ;;
8839 m68k)
8840 library_names_spec='$libname.ixlibrary $libname.a'
8841 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8842 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'
8843 ;;
8844 esac
drh71eb93e2001-09-28 01:34:43 +00008845 ;;
8846
8847beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008848 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008849 dynamic_linker="$host_os ld.so"
8850 shlibpath_var=LIBRARY_PATH
8851 ;;
8852
vapier7f19c022007-02-17 14:46:31 +00008853bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008854 version_type=linux
8855 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8857 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008858 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8859 shlibpath_var=LD_LIBRARY_PATH
8860 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8861 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8862 # the default ld.so.conf also contains /usr/contrib/lib and
8863 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8864 # libtool to hard-code these into programs
8865 ;;
8866
vapier6acb2cf2009-01-28 04:46:28 +00008867cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008868 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008869 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008870 need_version=no
8871 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008872
drh71eb93e2001-09-28 01:34:43 +00008873 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008874 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008875 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008876 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8877 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008878 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008879 dldir=$destdir/`dirname \$dlpath`~
8880 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008881 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008882 chmod a+x \$dldir/$dlname~
8883 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8884 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8885 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008886 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008887 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008888 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008889 shlibpath_overrides_runpath=yes
8890
8891 case $host_os in
8892 cygwin*)
8893 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8894 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8895 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8896 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008897 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008898 # MinGW DLLs use traditional 'lib' prefix
8899 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008900 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8901 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008902 # It is most probably a Windows format PATH printed by
8903 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8904 # path with ; separators, and with drive letters. We can handle the
8905 # drive letters (cygwin fileutils understands them), so leave them,
8906 # especially as we might pass files found there to a mingw objdump,
8907 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008908 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008909 else
mlcreech636a9952008-05-05 22:52:56 +00008910 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008911 fi
8912 ;;
8913 pw32*)
8914 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008915 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 +00008916 ;;
8917 esac
drh71eb93e2001-09-28 01:34:43 +00008918 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008919
drh71eb93e2001-09-28 01:34:43 +00008920 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008921 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008922 ;;
8923 esac
8924 dynamic_linker='Win32 ld.exe'
8925 # FIXME: first we should search . and the directory the executable is in
8926 shlibpath_var=PATH
8927 ;;
8928
8929darwin* | rhapsody*)
8930 dynamic_linker="$host_os dyld"
8931 version_type=darwin
8932 need_lib_prefix=no
8933 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008934 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008935 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008936 shlibpath_overrides_runpath=yes
8937 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008938 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008939
8940 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008941 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8942 ;;
8943
8944dgux*)
8945 version_type=linux
8946 need_lib_prefix=no
8947 need_version=no
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8949 soname_spec='${libname}${release}${shared_ext}$major'
8950 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008951 ;;
8952
a.rottmann84e63352003-03-24 09:42:16 +00008953freebsd1*)
8954 dynamic_linker=no
8955 ;;
8956
vapier7f19c022007-02-17 14:46:31 +00008957freebsd* | dragonfly*)
8958 # DragonFly does not have aout. When/if they implement a new
8959 # versioning mechanism, adjust this.
8960 if test -x /usr/bin/objformat; then
8961 objformat=`/usr/bin/objformat`
8962 else
8963 case $host_os in
8964 freebsd[123]*) objformat=aout ;;
8965 *) objformat=elf ;;
8966 esac
8967 fi
8968 # Handle Gentoo/FreeBSD as it was Linux
8969 case $host_vendor in
8970 gentoo)
8971 version_type=linux ;;
8972 *)
8973 version_type=freebsd-$objformat ;;
8974 esac
8975
drh71eb93e2001-09-28 01:34:43 +00008976 case $version_type in
8977 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008979 need_version=no
8980 need_lib_prefix=no
8981 ;;
8982 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008984 need_version=yes
8985 ;;
vapier7f19c022007-02-17 14:46:31 +00008986 linux)
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8988 soname_spec='${libname}${release}${shared_ext}$major'
8989 need_lib_prefix=no
8990 need_version=no
8991 ;;
drh71eb93e2001-09-28 01:34:43 +00008992 esac
8993 shlibpath_var=LD_LIBRARY_PATH
8994 case $host_os in
8995 freebsd2*)
8996 shlibpath_overrides_runpath=yes
8997 ;;
vapier7f19c022007-02-17 14:46:31 +00008998 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008999 shlibpath_overrides_runpath=yes
9000 hardcode_into_libs=yes
9001 ;;
vapier7f19c022007-02-17 14:46:31 +00009002 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9003 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00009004 shlibpath_overrides_runpath=no
9005 hardcode_into_libs=yes
9006 ;;
mlcreech636a9952008-05-05 22:52:56 +00009007 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00009008 shlibpath_overrides_runpath=yes
9009 hardcode_into_libs=yes
9010 ;;
drh71eb93e2001-09-28 01:34:43 +00009011 esac
9012 ;;
9013
9014gnu*)
9015 version_type=linux
9016 need_lib_prefix=no
9017 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009020 shlibpath_var=LD_LIBRARY_PATH
9021 hardcode_into_libs=yes
9022 ;;
9023
9024hpux9* | hpux10* | hpux11*)
9025 # Give a soname corresponding to the major version so that dld.sl refuses to
9026 # link against other versions.
9027 version_type=sunos
9028 need_lib_prefix=no
9029 need_version=no
vapier7f19c022007-02-17 14:46:31 +00009030 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00009031 ia64*)
vapier7f19c022007-02-17 14:46:31 +00009032 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00009033 hardcode_into_libs=yes
9034 dynamic_linker="$host_os dld.so"
9035 shlibpath_var=LD_LIBRARY_PATH
9036 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 if test "X$HPUX_IA64_MODE" = X32; then
9040 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9041 else
9042 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9043 fi
9044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9045 ;;
mlcreech636a9952008-05-05 22:52:56 +00009046 hppa*64*)
9047 shrext_cmds='.sl'
9048 hardcode_into_libs=yes
9049 dynamic_linker="$host_os dld.sl"
9050 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9053 soname_spec='${libname}${release}${shared_ext}$major'
9054 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9056 ;;
9057 *)
vapier7f19c022007-02-17 14:46:31 +00009058 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00009059 dynamic_linker="$host_os dld.sl"
9060 shlibpath_var=SHLIB_PATH
9061 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9063 soname_spec='${libname}${release}${shared_ext}$major'
9064 ;;
9065 esac
drh71eb93e2001-09-28 01:34:43 +00009066 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9067 postinstall_cmds='chmod 555 $lib'
9068 ;;
9069
mlcreech636a9952008-05-05 22:52:56 +00009070interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00009071 version_type=linux
9072 need_lib_prefix=no
9073 need_version=no
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9075 soname_spec='${libname}${release}${shared_ext}$major'
9076 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9077 shlibpath_var=LD_LIBRARY_PATH
9078 shlibpath_overrides_runpath=no
9079 hardcode_into_libs=yes
9080 ;;
9081
a.rottmann84e63352003-03-24 09:42:16 +00009082irix5* | irix6* | nonstopux*)
9083 case $host_os in
9084 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009085 *)
9086 if test "$lt_cv_prog_gnu_ld" = yes; then
9087 version_type=linux
9088 else
9089 version_type=irix
9090 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00009091 esac
drh71eb93e2001-09-28 01:34:43 +00009092 need_lib_prefix=no
9093 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009094 soname_spec='${libname}${release}${shared_ext}$major'
9095 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 +00009096 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00009097 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00009098 libsuff= shlibsuff=
9099 ;;
9100 *)
9101 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00009102 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9103 libsuff= shlibsuff= libmagic=32-bit;;
9104 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9105 libsuff=32 shlibsuff=N32 libmagic=N32;;
9106 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9107 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00009108 *) libsuff= shlibsuff= libmagic=never-match;;
9109 esac
9110 ;;
9111 esac
9112 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9113 shlibpath_overrides_runpath=no
9114 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9115 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00009116 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00009117 ;;
9118
9119# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00009120linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00009121 dynamic_linker=no
9122 ;;
9123
9124# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00009125linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00009126 version_type=linux
9127 need_lib_prefix=no
9128 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9130 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9132 shlibpath_var=LD_LIBRARY_PATH
9133 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00009134 # Some binutils ld are patched to set DT_RUNPATH
9135 save_LDFLAGS=$LDFLAGS
9136 save_libdir=$libdir
9137 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9138 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
drh710658c2012-01-16 13:00:05 +00009139 cat >conftest.$ac_ext <<_ACEOF
9140/* confdefs.h. */
9141_ACEOF
9142cat confdefs.h >>conftest.$ac_ext
9143cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +00009144/* end confdefs.h. */
9145
9146int
9147main ()
9148{
9149
9150 ;
9151 return 0;
9152}
9153_ACEOF
drh710658c2012-01-16 13:00:05 +00009154rm -f conftest.$ac_objext conftest$ac_exeext
9155if { (ac_try="$ac_link"
9156case "(($ac_try" in
9157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9158 *) ac_try_echo=$ac_try;;
9159esac
9160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9161$as_echo "$ac_try_echo") >&5
9162 (eval "$ac_link") 2>conftest.er1
9163 ac_status=$?
9164 grep -v '^ *+' conftest.er1 >conftest.err
9165 rm -f conftest.er1
9166 cat conftest.err >&5
9167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } && {
9169 test -z "$ac_c_werror_flag" ||
9170 test ! -s conftest.err
9171 } && test -s conftest$ac_exeext && {
9172 test "$cross_compiling" = yes ||
9173 $as_test_x conftest$ac_exeext
9174 }; then
9175 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00009176 shlibpath_overrides_runpath=yes
9177fi
drh710658c2012-01-16 13:00:05 +00009178
9179else
9180 $as_echo "$as_me: failed program was:" >&5
9181sed 's/^/| /' conftest.$ac_ext >&5
9182
9183
mlcreech636a9952008-05-05 22:52:56 +00009184fi
drh710658c2012-01-16 13:00:05 +00009185
9186rm -rf conftest.dSYM
9187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9188 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009189 LDFLAGS=$save_LDFLAGS
9190 libdir=$save_libdir
9191
drh71eb93e2001-09-28 01:34:43 +00009192 # This implies no fast_install, which is unacceptable.
9193 # Some rework will be needed to allow for fast_install
9194 # before this can be enabled.
9195 hardcode_into_libs=yes
9196
a.rottmann9bc8b932004-02-29 15:18:31 +00009197 # Append ld.so.conf contents to the search path
9198 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00009199 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 +00009200 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00009201 fi
9202
drh71eb93e2001-09-28 01:34:43 +00009203 # We used to test for /lib/ld.so.1 and disable shared libraries on
9204 # powerpc, because MkLinux only supported shared libraries with the
9205 # GNU dynamic linker. Since this was broken with cross compilers,
9206 # most powerpc-linux boxes support dynamic linking these days and
9207 # people can always --disable-shared, the test was removed, and we
9208 # assume the GNU/Linux dynamic linker is in use.
9209 dynamic_linker='GNU/Linux ld.so'
9210 ;;
9211
9212netbsd*)
9213 version_type=sunos
9214 need_lib_prefix=no
9215 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00009216 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9219 dynamic_linker='NetBSD (a.out) ld.so'
9220 else
a.rottmann9bc8b932004-02-29 15:18:31 +00009221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9222 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009223 dynamic_linker='NetBSD ld.elf_so'
9224 fi
9225 shlibpath_var=LD_LIBRARY_PATH
9226 shlibpath_overrides_runpath=yes
9227 hardcode_into_libs=yes
9228 ;;
9229
9230newsos6)
9231 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 shlibpath_var=LD_LIBRARY_PATH
9234 shlibpath_overrides_runpath=yes
9235 ;;
9236
mlcreech636a9952008-05-05 22:52:56 +00009237*nto* | *qnx*)
9238 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00009239 need_lib_prefix=no
9240 need_version=no
9241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9242 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009243 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009244 shlibpath_overrides_runpath=no
9245 hardcode_into_libs=yes
9246 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00009247 ;;
9248
drh71eb93e2001-09-28 01:34:43 +00009249openbsd*)
9250 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00009251 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00009252 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00009253 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9254 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00009255 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9256 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00009257 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00009258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9259 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9260 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009261 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 +00009262 case $host_os in
9263 openbsd2.[89] | openbsd2.[89].*)
9264 shlibpath_overrides_runpath=no
9265 ;;
9266 *)
9267 shlibpath_overrides_runpath=yes
9268 ;;
9269 esac
a.rottmann84e63352003-03-24 09:42:16 +00009270 else
9271 shlibpath_overrides_runpath=yes
9272 fi
drh71eb93e2001-09-28 01:34:43 +00009273 ;;
9274
9275os2*)
9276 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00009277 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00009278 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009279 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00009280 dynamic_linker='OS/2 ld.exe'
9281 shlibpath_var=LIBPATH
9282 ;;
9283
9284osf3* | osf4* | osf5*)
9285 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00009286 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009287 need_version=no
9288 soname_spec='${libname}${release}${shared_ext}$major'
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009290 shlibpath_var=LD_LIBRARY_PATH
9291 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9292 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9293 ;;
9294
mlcreech636a9952008-05-05 22:52:56 +00009295rdos*)
9296 dynamic_linker=no
9297 ;;
9298
drh71eb93e2001-09-28 01:34:43 +00009299solaris*)
9300 version_type=linux
9301 need_lib_prefix=no
9302 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9304 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009305 shlibpath_var=LD_LIBRARY_PATH
9306 shlibpath_overrides_runpath=yes
9307 hardcode_into_libs=yes
9308 # ldd complains unless libraries are executable
9309 postinstall_cmds='chmod +x $lib'
9310 ;;
9311
9312sunos4*)
9313 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009315 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9316 shlibpath_var=LD_LIBRARY_PATH
9317 shlibpath_overrides_runpath=yes
9318 if test "$with_gnu_ld" = yes; then
9319 need_lib_prefix=no
9320 fi
9321 need_version=yes
9322 ;;
9323
vapier7f19c022007-02-17 14:46:31 +00009324sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009325 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009328 shlibpath_var=LD_LIBRARY_PATH
9329 case $host_vendor in
9330 sni)
9331 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009332 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009333 runpath_var=LD_RUN_PATH
9334 ;;
9335 siemens)
9336 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009337 ;;
9338 motorola)
9339 need_lib_prefix=no
9340 need_version=no
9341 shlibpath_overrides_runpath=no
9342 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9343 ;;
9344 esac
9345 ;;
9346
9347sysv4*MP*)
9348 if test -d /usr/nec ;then
9349 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009350 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9351 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009352 shlibpath_var=LD_LIBRARY_PATH
9353 fi
9354 ;;
9355
vapier7f19c022007-02-17 14:46:31 +00009356sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9357 version_type=freebsd-elf
9358 need_lib_prefix=no
9359 need_version=no
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009363 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009364 hardcode_into_libs=yes
9365 if test "$with_gnu_ld" = yes; then
9366 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009367 else
9368 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009369 case $host_os in
9370 sco3.2v5*)
9371 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9372 ;;
9373 esac
9374 fi
9375 sys_lib_dlsearch_path_spec='/usr/lib'
9376 ;;
9377
mlcreech636a9952008-05-05 22:52:56 +00009378tpf*)
9379 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9380 version_type=linux
9381 need_lib_prefix=no
9382 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009384 shlibpath_var=LD_LIBRARY_PATH
9385 shlibpath_overrides_runpath=no
9386 hardcode_into_libs=yes
9387 ;;
9388
a.rottmann9bc8b932004-02-29 15:18:31 +00009389uts4*)
9390 version_type=linux
9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9392 soname_spec='${libname}${release}${shared_ext}$major'
9393 shlibpath_var=LD_LIBRARY_PATH
9394 ;;
9395
drh71eb93e2001-09-28 01:34:43 +00009396*)
9397 dynamic_linker=no
9398 ;;
9399esac
drh710658c2012-01-16 13:00:05 +00009400{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
drh8b727472009-01-19 18:18:40 +00009401$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009402test "$dynamic_linker" = no && can_build_shared=no
9403
vapier7f19c022007-02-17 14:46:31 +00009404variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9405if test "$GCC" = yes; then
9406 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9407fi
9408
mlcreech636a9952008-05-05 22:52:56 +00009409if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9410 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9411fi
9412if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9413 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9414fi
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
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
drh710658c2012-01-16 13:00:05 +00009502 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
drh8b727472009-01-19 18:18:40 +00009503$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009504hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009505if test -n "$hardcode_libdir_flag_spec" ||
9506 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009507 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009508
mlcreech636a9952008-05-05 22:52:56 +00009509 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009510 if test "$hardcode_direct" != no &&
9511 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9512 # have to relink, otherwise we might link with an installed library
9513 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009514 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009515 test "$hardcode_minus_L" != no; then
9516 # Linking always hardcodes the temporary library directory.
9517 hardcode_action=relink
9518 else
9519 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9520 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009521 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009522else
9523 # We cannot hardcode anything, or else we can only hardcode existing
9524 # directories.
9525 hardcode_action=unsupported
9526fi
drh710658c2012-01-16 13:00:05 +00009527{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
drh8b727472009-01-19 18:18:40 +00009528$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009529
mlcreech636a9952008-05-05 22:52:56 +00009530if test "$hardcode_action" = relink ||
9531 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009532 # Fast installation is not supported
9533 enable_fast_install=no
9534elif test "$shlibpath_overrides_runpath" = yes ||
9535 test "$enable_shared" = no; then
9536 # Fast installation is not necessary
9537 enable_fast_install=needless
9538fi
9539
a.rottmann84e63352003-03-24 09:42:16 +00009540
mlcreech636a9952008-05-05 22:52:56 +00009541
9542
9543
9544
9545 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009546 enable_dlopen=unknown
9547 enable_dlopen_self=unknown
9548 enable_dlopen_self_static=unknown
9549else
9550 lt_cv_dlopen=no
9551 lt_cv_dlopen_libs=
9552
9553 case $host_os in
9554 beos*)
9555 lt_cv_dlopen="load_add_on"
9556 lt_cv_dlopen_libs=
9557 lt_cv_dlopen_self=yes
9558 ;;
9559
vapier6acb2cf2009-01-28 04:46:28 +00009560 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009561 lt_cv_dlopen="LoadLibrary"
9562 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009563 ;;
drh71eb93e2001-09-28 01:34:43 +00009564
a.rottmann9bc8b932004-02-29 15:18:31 +00009565 cygwin*)
9566 lt_cv_dlopen="dlopen"
9567 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009568 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009569
9570 darwin*)
9571 # if libdl is installed we need to link against it
drh710658c2012-01-16 13:00:05 +00009572 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009573$as_echo_n "checking for dlopen in -ldl... " >&6; }
drh710658c2012-01-16 13:00:05 +00009574if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009575 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009576else
9577 ac_check_lib_save_LIBS=$LIBS
9578LIBS="-ldl $LIBS"
drh710658c2012-01-16 13:00:05 +00009579cat >conftest.$ac_ext <<_ACEOF
9580/* confdefs.h. */
9581_ACEOF
9582cat confdefs.h >>conftest.$ac_ext
9583cat >>conftest.$ac_ext <<_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00009584/* end confdefs.h. */
9585
drh8b727472009-01-19 18:18:40 +00009586/* Override any GCC internal prototype to avoid an error.
9587 Use char because int might match the return type of a GCC
9588 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009589#ifdef __cplusplus
9590extern "C"
9591#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009592char dlopen ();
9593int
9594main ()
9595{
drh8b727472009-01-19 18:18:40 +00009596return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009597 ;
9598 return 0;
9599}
9600_ACEOF
drh710658c2012-01-16 13:00:05 +00009601rm -f conftest.$ac_objext conftest$ac_exeext
9602if { (ac_try="$ac_link"
9603case "(($ac_try" in
9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9606esac
9607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9608$as_echo "$ac_try_echo") >&5
9609 (eval "$ac_link") 2>conftest.er1
9610 ac_status=$?
9611 grep -v '^ *+' conftest.er1 >conftest.err
9612 rm -f conftest.er1
9613 cat conftest.err >&5
9614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); } && {
9616 test -z "$ac_c_werror_flag" ||
9617 test ! -s conftest.err
9618 } && test -s conftest$ac_exeext && {
9619 test "$cross_compiling" = yes ||
9620 $as_test_x conftest$ac_exeext
9621 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009622 ac_cv_lib_dl_dlopen=yes
9623else
drh710658c2012-01-16 13:00:05 +00009624 $as_echo "$as_me: failed program was:" >&5
9625sed 's/^/| /' conftest.$ac_ext >&5
9626
9627 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009628fi
drh710658c2012-01-16 13:00:05 +00009629
9630rm -rf conftest.dSYM
9631rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9632 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009633LIBS=$ac_check_lib_save_LIBS
9634fi
drh710658c2012-01-16 13:00:05 +00009635{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009636$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drh710658c2012-01-16 13:00:05 +00009637if test $ac_cv_lib_dl_dlopen = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009638 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9639else
9640
9641 lt_cv_dlopen="dyld"
9642 lt_cv_dlopen_libs=
9643 lt_cv_dlopen_self=yes
9644
9645fi
9646
mlcreech636a9952008-05-05 22:52:56 +00009647 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009648
drh71eb93e2001-09-28 01:34:43 +00009649 *)
drh710658c2012-01-16 13:00:05 +00009650 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9651$as_echo_n "checking for shl_load... " >&6; }
9652if test "${ac_cv_func_shl_load+set}" = set; then
9653 $as_echo_n "(cached) " >&6
9654else
9655 cat >conftest.$ac_ext <<_ACEOF
9656/* confdefs.h. */
9657_ACEOF
9658cat confdefs.h >>conftest.$ac_ext
9659cat >>conftest.$ac_ext <<_ACEOF
9660/* end confdefs.h. */
9661/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9663#define shl_load innocuous_shl_load
9664
9665/* System header to define __stub macros and hopefully few prototypes,
9666 which can conflict with char shl_load (); below.
9667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9668 <limits.h> exists even on freestanding compilers. */
9669
9670#ifdef __STDC__
9671# include <limits.h>
9672#else
9673# include <assert.h>
9674#endif
9675
9676#undef shl_load
9677
9678/* Override any GCC internal prototype to avoid an error.
9679 Use char because int might match the return type of a GCC
9680 builtin and then its argument prototype would still apply. */
9681#ifdef __cplusplus
9682extern "C"
9683#endif
9684char shl_load ();
9685/* The GNU C library defines this for functions which it implements
9686 to always fail with ENOSYS. Some functions are actually named
9687 something starting with __ and the normal name is an alias. */
9688#if defined __stub_shl_load || defined __stub___shl_load
9689choke me
9690#endif
9691
9692int
9693main ()
9694{
9695return shl_load ();
9696 ;
9697 return 0;
9698}
9699_ACEOF
9700rm -f conftest.$ac_objext conftest$ac_exeext
9701if { (ac_try="$ac_link"
9702case "(($ac_try" in
9703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704 *) ac_try_echo=$ac_try;;
9705esac
9706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9707$as_echo "$ac_try_echo") >&5
9708 (eval "$ac_link") 2>conftest.er1
9709 ac_status=$?
9710 grep -v '^ *+' conftest.er1 >conftest.err
9711 rm -f conftest.er1
9712 cat conftest.err >&5
9713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } && {
9715 test -z "$ac_c_werror_flag" ||
9716 test ! -s conftest.err
9717 } && test -s conftest$ac_exeext && {
9718 test "$cross_compiling" = yes ||
9719 $as_test_x conftest$ac_exeext
9720 }; then
9721 ac_cv_func_shl_load=yes
9722else
9723 $as_echo "$as_me: failed program was:" >&5
9724sed 's/^/| /' conftest.$ac_ext >&5
9725
9726 ac_cv_func_shl_load=no
9727fi
9728
9729rm -rf conftest.dSYM
9730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9731 conftest$ac_exeext conftest.$ac_ext
9732fi
9733{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9734$as_echo "$ac_cv_func_shl_load" >&6; }
9735if test $ac_cv_func_shl_load = yes; then
drh71eb93e2001-09-28 01:34:43 +00009736 lt_cv_dlopen="shl_load"
9737else
drh710658c2012-01-16 13:00:05 +00009738 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009739$as_echo_n "checking for shl_load in -ldld... " >&6; }
drh710658c2012-01-16 13:00:05 +00009740if test "${ac_cv_lib_dld_shl_load+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009741 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009742else
9743 ac_check_lib_save_LIBS=$LIBS
9744LIBS="-ldld $LIBS"
drh710658c2012-01-16 13:00:05 +00009745cat >conftest.$ac_ext <<_ACEOF
9746/* confdefs.h. */
9747_ACEOF
9748cat confdefs.h >>conftest.$ac_ext
9749cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009750/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009751
drh8b727472009-01-19 18:18:40 +00009752/* Override any GCC internal prototype to avoid an error.
9753 Use char because int might match the return type of a GCC
9754 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009755#ifdef __cplusplus
9756extern "C"
9757#endif
drh71eb93e2001-09-28 01:34:43 +00009758char shl_load ();
9759int
9760main ()
9761{
drh8b727472009-01-19 18:18:40 +00009762return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009763 ;
9764 return 0;
9765}
9766_ACEOF
drh710658c2012-01-16 13:00:05 +00009767rm -f conftest.$ac_objext conftest$ac_exeext
9768if { (ac_try="$ac_link"
9769case "(($ac_try" in
9770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9771 *) ac_try_echo=$ac_try;;
9772esac
9773eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9774$as_echo "$ac_try_echo") >&5
9775 (eval "$ac_link") 2>conftest.er1
9776 ac_status=$?
9777 grep -v '^ *+' conftest.er1 >conftest.err
9778 rm -f conftest.er1
9779 cat conftest.err >&5
9780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } && {
9782 test -z "$ac_c_werror_flag" ||
9783 test ! -s conftest.err
9784 } && test -s conftest$ac_exeext && {
9785 test "$cross_compiling" = yes ||
9786 $as_test_x conftest$ac_exeext
9787 }; then
drh71eb93e2001-09-28 01:34:43 +00009788 ac_cv_lib_dld_shl_load=yes
9789else
drh710658c2012-01-16 13:00:05 +00009790 $as_echo "$as_me: failed program was:" >&5
9791sed 's/^/| /' conftest.$ac_ext >&5
9792
9793 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009794fi
drh710658c2012-01-16 13:00:05 +00009795
9796rm -rf conftest.dSYM
9797rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9798 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009799LIBS=$ac_check_lib_save_LIBS
9800fi
drh710658c2012-01-16 13:00:05 +00009801{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
drh8b727472009-01-19 18:18:40 +00009802$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drh710658c2012-01-16 13:00:05 +00009803if test $ac_cv_lib_dld_shl_load = yes; then
mlcreech636a9952008-05-05 22:52:56 +00009804 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009805else
drh710658c2012-01-16 13:00:05 +00009806 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9807$as_echo_n "checking for dlopen... " >&6; }
9808if test "${ac_cv_func_dlopen+set}" = set; then
9809 $as_echo_n "(cached) " >&6
9810else
9811 cat >conftest.$ac_ext <<_ACEOF
9812/* confdefs.h. */
9813_ACEOF
9814cat confdefs.h >>conftest.$ac_ext
9815cat >>conftest.$ac_ext <<_ACEOF
9816/* end confdefs.h. */
9817/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9819#define dlopen innocuous_dlopen
9820
9821/* System header to define __stub macros and hopefully few prototypes,
9822 which can conflict with char dlopen (); below.
9823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9824 <limits.h> exists even on freestanding compilers. */
9825
9826#ifdef __STDC__
9827# include <limits.h>
9828#else
9829# include <assert.h>
9830#endif
9831
9832#undef dlopen
9833
9834/* Override any GCC internal prototype to avoid an error.
9835 Use char because int might match the return type of a GCC
9836 builtin and then its argument prototype would still apply. */
9837#ifdef __cplusplus
9838extern "C"
9839#endif
9840char dlopen ();
9841/* The GNU C library defines this for functions which it implements
9842 to always fail with ENOSYS. Some functions are actually named
9843 something starting with __ and the normal name is an alias. */
9844#if defined __stub_dlopen || defined __stub___dlopen
9845choke me
9846#endif
9847
9848int
9849main ()
9850{
9851return dlopen ();
9852 ;
9853 return 0;
9854}
9855_ACEOF
9856rm -f conftest.$ac_objext conftest$ac_exeext
9857if { (ac_try="$ac_link"
9858case "(($ac_try" in
9859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860 *) ac_try_echo=$ac_try;;
9861esac
9862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9863$as_echo "$ac_try_echo") >&5
9864 (eval "$ac_link") 2>conftest.er1
9865 ac_status=$?
9866 grep -v '^ *+' conftest.er1 >conftest.err
9867 rm -f conftest.er1
9868 cat conftest.err >&5
9869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } && {
9871 test -z "$ac_c_werror_flag" ||
9872 test ! -s conftest.err
9873 } && test -s conftest$ac_exeext && {
9874 test "$cross_compiling" = yes ||
9875 $as_test_x conftest$ac_exeext
9876 }; then
9877 ac_cv_func_dlopen=yes
9878else
9879 $as_echo "$as_me: failed program was:" >&5
9880sed 's/^/| /' conftest.$ac_ext >&5
9881
9882 ac_cv_func_dlopen=no
9883fi
9884
9885rm -rf conftest.dSYM
9886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9887 conftest$ac_exeext conftest.$ac_ext
9888fi
9889{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9890$as_echo "$ac_cv_func_dlopen" >&6; }
9891if test $ac_cv_func_dlopen = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009892 lt_cv_dlopen="dlopen"
9893else
drh710658c2012-01-16 13:00:05 +00009894 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009895$as_echo_n "checking for dlopen in -ldl... " >&6; }
drh710658c2012-01-16 13:00:05 +00009896if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009897 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009898else
9899 ac_check_lib_save_LIBS=$LIBS
9900LIBS="-ldl $LIBS"
drh710658c2012-01-16 13:00:05 +00009901cat >conftest.$ac_ext <<_ACEOF
9902/* confdefs.h. */
9903_ACEOF
9904cat confdefs.h >>conftest.$ac_ext
9905cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009906/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009907
drh8b727472009-01-19 18:18:40 +00009908/* Override any GCC internal prototype to avoid an error.
9909 Use char because int might match the return type of a GCC
9910 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009911#ifdef __cplusplus
9912extern "C"
9913#endif
drh71eb93e2001-09-28 01:34:43 +00009914char dlopen ();
9915int
9916main ()
9917{
drh8b727472009-01-19 18:18:40 +00009918return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009919 ;
9920 return 0;
9921}
9922_ACEOF
drh710658c2012-01-16 13:00:05 +00009923rm -f conftest.$ac_objext conftest$ac_exeext
9924if { (ac_try="$ac_link"
9925case "(($ac_try" in
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9928esac
9929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9930$as_echo "$ac_try_echo") >&5
9931 (eval "$ac_link") 2>conftest.er1
9932 ac_status=$?
9933 grep -v '^ *+' conftest.er1 >conftest.err
9934 rm -f conftest.er1
9935 cat conftest.err >&5
9936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } && {
9938 test -z "$ac_c_werror_flag" ||
9939 test ! -s conftest.err
9940 } && test -s conftest$ac_exeext && {
9941 test "$cross_compiling" = yes ||
9942 $as_test_x conftest$ac_exeext
9943 }; then
drh71eb93e2001-09-28 01:34:43 +00009944 ac_cv_lib_dl_dlopen=yes
9945else
drh710658c2012-01-16 13:00:05 +00009946 $as_echo "$as_me: failed program was:" >&5
9947sed 's/^/| /' conftest.$ac_ext >&5
9948
9949 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009950fi
drh710658c2012-01-16 13:00:05 +00009951
9952rm -rf conftest.dSYM
9953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9954 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009955LIBS=$ac_check_lib_save_LIBS
9956fi
drh710658c2012-01-16 13:00:05 +00009957{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009958$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drh710658c2012-01-16 13:00:05 +00009959if test $ac_cv_lib_dl_dlopen = yes; then
drh71eb93e2001-09-28 01:34:43 +00009960 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9961else
drh710658c2012-01-16 13:00:05 +00009962 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
drh8b727472009-01-19 18:18:40 +00009963$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drh710658c2012-01-16 13:00:05 +00009964if test "${ac_cv_lib_svld_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009965 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009966else
9967 ac_check_lib_save_LIBS=$LIBS
9968LIBS="-lsvld $LIBS"
drh710658c2012-01-16 13:00:05 +00009969cat >conftest.$ac_ext <<_ACEOF
9970/* confdefs.h. */
9971_ACEOF
9972cat confdefs.h >>conftest.$ac_ext
9973cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009974/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009975
drh8b727472009-01-19 18:18:40 +00009976/* Override any GCC internal prototype to avoid an error.
9977 Use char because int might match the return type of a GCC
9978 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009979#ifdef __cplusplus
9980extern "C"
9981#endif
drh71eb93e2001-09-28 01:34:43 +00009982char dlopen ();
9983int
9984main ()
9985{
drh8b727472009-01-19 18:18:40 +00009986return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009987 ;
9988 return 0;
9989}
9990_ACEOF
drh710658c2012-01-16 13:00:05 +00009991rm -f conftest.$ac_objext conftest$ac_exeext
9992if { (ac_try="$ac_link"
9993case "(($ac_try" in
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9996esac
9997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9998$as_echo "$ac_try_echo") >&5
9999 (eval "$ac_link") 2>conftest.er1
10000 ac_status=$?
10001 grep -v '^ *+' conftest.er1 >conftest.err
10002 rm -f conftest.er1
10003 cat conftest.err >&5
10004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } && {
10006 test -z "$ac_c_werror_flag" ||
10007 test ! -s conftest.err
10008 } && test -s conftest$ac_exeext && {
10009 test "$cross_compiling" = yes ||
10010 $as_test_x conftest$ac_exeext
10011 }; then
drh71eb93e2001-09-28 01:34:43 +000010012 ac_cv_lib_svld_dlopen=yes
10013else
drh710658c2012-01-16 13:00:05 +000010014 $as_echo "$as_me: failed program was:" >&5
10015sed 's/^/| /' conftest.$ac_ext >&5
10016
10017 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +000010018fi
drh710658c2012-01-16 13:00:05 +000010019
10020rm -rf conftest.dSYM
10021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10022 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000010023LIBS=$ac_check_lib_save_LIBS
10024fi
drh710658c2012-01-16 13:00:05 +000010025{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
drh8b727472009-01-19 18:18:40 +000010026$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drh710658c2012-01-16 13:00:05 +000010027if test $ac_cv_lib_svld_dlopen = yes; then
drh71eb93e2001-09-28 01:34:43 +000010028 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +000010029else
drh710658c2012-01-16 13:00:05 +000010030 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
drh8b727472009-01-19 18:18:40 +000010031$as_echo_n "checking for dld_link in -ldld... " >&6; }
drh710658c2012-01-16 13:00:05 +000010032if test "${ac_cv_lib_dld_dld_link+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010033 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010034else
10035 ac_check_lib_save_LIBS=$LIBS
10036LIBS="-ldld $LIBS"
drh710658c2012-01-16 13:00:05 +000010037cat >conftest.$ac_ext <<_ACEOF
10038/* confdefs.h. */
10039_ACEOF
10040cat confdefs.h >>conftest.$ac_ext
10041cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000010042/* end confdefs.h. */
10043
drh8b727472009-01-19 18:18:40 +000010044/* Override any GCC internal prototype to avoid an error.
10045 Use char because int might match the return type of a GCC
10046 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +000010047#ifdef __cplusplus
10048extern "C"
10049#endif
a.rottmann84e63352003-03-24 09:42:16 +000010050char dld_link ();
10051int
10052main ()
10053{
drh8b727472009-01-19 18:18:40 +000010054return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +000010055 ;
10056 return 0;
10057}
10058_ACEOF
drh710658c2012-01-16 13:00:05 +000010059rm -f conftest.$ac_objext conftest$ac_exeext
10060if { (ac_try="$ac_link"
10061case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10064esac
10065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10066$as_echo "$ac_try_echo") >&5
10067 (eval "$ac_link") 2>conftest.er1
10068 ac_status=$?
10069 grep -v '^ *+' conftest.er1 >conftest.err
10070 rm -f conftest.er1
10071 cat conftest.err >&5
10072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } && {
10074 test -z "$ac_c_werror_flag" ||
10075 test ! -s conftest.err
10076 } && test -s conftest$ac_exeext && {
10077 test "$cross_compiling" = yes ||
10078 $as_test_x conftest$ac_exeext
10079 }; then
a.rottmann84e63352003-03-24 09:42:16 +000010080 ac_cv_lib_dld_dld_link=yes
10081else
drh710658c2012-01-16 13:00:05 +000010082 $as_echo "$as_me: failed program was:" >&5
10083sed 's/^/| /' conftest.$ac_ext >&5
10084
10085 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +000010086fi
drh710658c2012-01-16 13:00:05 +000010087
10088rm -rf conftest.dSYM
10089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10090 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000010091LIBS=$ac_check_lib_save_LIBS
10092fi
drh710658c2012-01-16 13:00:05 +000010093{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
drh8b727472009-01-19 18:18:40 +000010094$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drh710658c2012-01-16 13:00:05 +000010095if test $ac_cv_lib_dld_dld_link = yes; then
mlcreech636a9952008-05-05 22:52:56 +000010096 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +000010097fi
10098
drh71eb93e2001-09-28 01:34:43 +000010099
10100fi
10101
drh71eb93e2001-09-28 01:34:43 +000010102
10103fi
10104
a.rottmann84e63352003-03-24 09:42:16 +000010105
10106fi
10107
10108
10109fi
10110
10111
drh71eb93e2001-09-28 01:34:43 +000010112fi
10113
10114 ;;
10115 esac
10116
10117 if test "x$lt_cv_dlopen" != xno; then
10118 enable_dlopen=yes
10119 else
10120 enable_dlopen=no
10121 fi
10122
10123 case $lt_cv_dlopen in
10124 dlopen)
10125 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +000010126 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +000010127
10128 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +000010129 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +000010130
10131 save_LIBS="$LIBS"
10132 LIBS="$lt_cv_dlopen_libs $LIBS"
10133
drh710658c2012-01-16 13:00:05 +000010134 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +000010135$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drh710658c2012-01-16 13:00:05 +000010136if test "${lt_cv_dlopen_self+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010137 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010138else
10139 if test "$cross_compiling" = yes; then :
10140 lt_cv_dlopen_self=cross
10141else
a.rottmann9bc8b932004-02-29 15:18:31 +000010142 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +000010143 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +000010144 cat > conftest.$ac_ext <<_LT_EOF
drh92f76572012-12-13 18:51:53 +000010145#line 10145 "configure"
drh71eb93e2001-09-28 01:34:43 +000010146#include "confdefs.h"
10147
10148#if HAVE_DLFCN_H
10149#include <dlfcn.h>
10150#endif
10151
10152#include <stdio.h>
10153
10154#ifdef RTLD_GLOBAL
10155# define LT_DLGLOBAL RTLD_GLOBAL
10156#else
10157# ifdef DL_GLOBAL
10158# define LT_DLGLOBAL DL_GLOBAL
10159# else
10160# define LT_DLGLOBAL 0
10161# endif
10162#endif
10163
10164/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10165 find out it does not work in some platform. */
10166#ifndef LT_DLLAZY_OR_NOW
10167# ifdef RTLD_LAZY
10168# define LT_DLLAZY_OR_NOW RTLD_LAZY
10169# else
10170# ifdef DL_LAZY
10171# define LT_DLLAZY_OR_NOW DL_LAZY
10172# else
10173# ifdef RTLD_NOW
10174# define LT_DLLAZY_OR_NOW RTLD_NOW
10175# else
10176# ifdef DL_NOW
10177# define LT_DLLAZY_OR_NOW DL_NOW
10178# else
10179# define LT_DLLAZY_OR_NOW 0
10180# endif
10181# endif
10182# endif
10183# endif
10184#endif
10185
drh71eb93e2001-09-28 01:34:43 +000010186void fnord() { int i=42;}
10187int main ()
10188{
10189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10190 int status = $lt_dlunknown;
10191
10192 if (self)
10193 {
10194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10195 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10196 /* dlclose (self); */
10197 }
vapier7f19c022007-02-17 14:46:31 +000010198 else
10199 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +000010200
vapier6acb2cf2009-01-28 04:46:28 +000010201 return status;
drh71eb93e2001-09-28 01:34:43 +000010202}
mlcreech636a9952008-05-05 22:52:56 +000010203_LT_EOF
drh710658c2012-01-16 13:00:05 +000010204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +000010205 (eval $ac_link) 2>&5
10206 ac_status=$?
drh710658c2012-01-16 13:00:05 +000010207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010209 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000010210 lt_status=$?
10211 case x$lt_status in
10212 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10213 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +000010214 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +000010215 esac
10216 else :
10217 # compilation failed
10218 lt_cv_dlopen_self=no
10219 fi
10220fi
10221rm -fr conftest*
10222
a.rottmann84e63352003-03-24 09:42:16 +000010223
drh71eb93e2001-09-28 01:34:43 +000010224fi
drh710658c2012-01-16 13:00:05 +000010225{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
drh8b727472009-01-19 18:18:40 +000010226$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010227
10228 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +000010229 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drh710658c2012-01-16 13:00:05 +000010230 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +000010231$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drh710658c2012-01-16 13:00:05 +000010232if test "${lt_cv_dlopen_self_static+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010233 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010234else
10235 if test "$cross_compiling" = yes; then :
10236 lt_cv_dlopen_self_static=cross
10237else
a.rottmann9bc8b932004-02-29 15:18:31 +000010238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +000010239 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +000010240 cat > conftest.$ac_ext <<_LT_EOF
drh92f76572012-12-13 18:51:53 +000010241#line 10241 "configure"
drh71eb93e2001-09-28 01:34:43 +000010242#include "confdefs.h"
10243
10244#if HAVE_DLFCN_H
10245#include <dlfcn.h>
10246#endif
10247
10248#include <stdio.h>
10249
10250#ifdef RTLD_GLOBAL
10251# define LT_DLGLOBAL RTLD_GLOBAL
10252#else
10253# ifdef DL_GLOBAL
10254# define LT_DLGLOBAL DL_GLOBAL
10255# else
10256# define LT_DLGLOBAL 0
10257# endif
10258#endif
10259
10260/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10261 find out it does not work in some platform. */
10262#ifndef LT_DLLAZY_OR_NOW
10263# ifdef RTLD_LAZY
10264# define LT_DLLAZY_OR_NOW RTLD_LAZY
10265# else
10266# ifdef DL_LAZY
10267# define LT_DLLAZY_OR_NOW DL_LAZY
10268# else
10269# ifdef RTLD_NOW
10270# define LT_DLLAZY_OR_NOW RTLD_NOW
10271# else
10272# ifdef DL_NOW
10273# define LT_DLLAZY_OR_NOW DL_NOW
10274# else
10275# define LT_DLLAZY_OR_NOW 0
10276# endif
10277# endif
10278# endif
10279# endif
10280#endif
10281
drh71eb93e2001-09-28 01:34:43 +000010282void fnord() { int i=42;}
10283int main ()
10284{
10285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10286 int status = $lt_dlunknown;
10287
10288 if (self)
10289 {
10290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10291 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10292 /* dlclose (self); */
10293 }
vapier7f19c022007-02-17 14:46:31 +000010294 else
10295 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +000010296
vapier6acb2cf2009-01-28 04:46:28 +000010297 return status;
drh71eb93e2001-09-28 01:34:43 +000010298}
mlcreech636a9952008-05-05 22:52:56 +000010299_LT_EOF
drh710658c2012-01-16 13:00:05 +000010300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +000010301 (eval $ac_link) 2>&5
10302 ac_status=$?
drh710658c2012-01-16 13:00:05 +000010303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010305 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000010306 lt_status=$?
10307 case x$lt_status in
10308 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10309 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +000010310 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +000010311 esac
10312 else :
10313 # compilation failed
10314 lt_cv_dlopen_self_static=no
10315 fi
10316fi
10317rm -fr conftest*
10318
a.rottmann84e63352003-03-24 09:42:16 +000010319
drh71eb93e2001-09-28 01:34:43 +000010320fi
drh710658c2012-01-16 13:00:05 +000010321{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
drh8b727472009-01-19 18:18:40 +000010322$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010323 fi
10324
10325 CPPFLAGS="$save_CPPFLAGS"
10326 LDFLAGS="$save_LDFLAGS"
10327 LIBS="$save_LIBS"
10328 ;;
10329 esac
10330
10331 case $lt_cv_dlopen_self in
10332 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10333 *) enable_dlopen_self=unknown ;;
10334 esac
10335
10336 case $lt_cv_dlopen_self_static in
10337 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10338 *) enable_dlopen_self_static=unknown ;;
10339 esac
10340fi
10341
drh71eb93e2001-09-28 01:34:43 +000010342
drh71eb93e2001-09-28 01:34:43 +000010343
a.rottmann9bc8b932004-02-29 15:18:31 +000010344
a.rottmann9bc8b932004-02-29 15:18:31 +000010345
mlcreech636a9952008-05-05 22:52:56 +000010346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358striplib=
10359old_striplib=
drh710658c2012-01-16 13:00:05 +000010360{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
drh8b727472009-01-19 18:18:40 +000010361$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010362if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10363 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10364 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drh710658c2012-01-16 13:00:05 +000010365 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010366$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010367else
10368# FIXME - insert some real tests, host_os isn't really good enough
10369 case $host_os in
10370 darwin*)
10371 if test -n "$STRIP" ; then
10372 striplib="$STRIP -x"
10373 old_striplib="$STRIP -S"
drh710658c2012-01-16 13:00:05 +000010374 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010375$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010376 else
drh710658c2012-01-16 13:00:05 +000010377 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010378$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010379 fi
a.rottmann84e63352003-03-24 09:42:16 +000010380 ;;
mlcreech636a9952008-05-05 22:52:56 +000010381 *)
drh710658c2012-01-16 13:00:05 +000010382 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010383$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010384 ;;
10385 esac
mlcreech636a9952008-05-05 22:52:56 +000010386fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010387
a.rottmann9bc8b932004-02-29 15:18:31 +000010388
drh71eb93e2001-09-28 01:34:43 +000010389
drh71eb93e2001-09-28 01:34:43 +000010390
a.rottmann84e63352003-03-24 09:42:16 +000010391
drh71eb93e2001-09-28 01:34:43 +000010392
drh71eb93e2001-09-28 01:34:43 +000010393
a.rottmann9bc8b932004-02-29 15:18:31 +000010394
drh71eb93e2001-09-28 01:34:43 +000010395
drh71eb93e2001-09-28 01:34:43 +000010396
drh71eb93e2001-09-28 01:34:43 +000010397
drh71eb93e2001-09-28 01:34:43 +000010398
mlcreech636a9952008-05-05 22:52:56 +000010399 # Report which library types will actually be built
drh710658c2012-01-16 13:00:05 +000010400 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +000010401$as_echo_n "checking if libtool supports shared libraries... " >&6; }
drh710658c2012-01-16 13:00:05 +000010402 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
drh8b727472009-01-19 18:18:40 +000010403$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010404
drh710658c2012-01-16 13:00:05 +000010405 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
drh8b727472009-01-19 18:18:40 +000010406$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010407 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010408
mlcreech636a9952008-05-05 22:52:56 +000010409 # On AIX, shared libraries and static libraries use the same namespace, and
10410 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +000010411 case $host_os in
10412 aix3*)
vapier7f19c022007-02-17 14:46:31 +000010413 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +000010414 if test -n "$RANLIB"; then
10415 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10416 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +000010417 fi
10418 ;;
10419
mlcreech636a9952008-05-05 22:52:56 +000010420 aix[4-9]*)
10421 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10422 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010423 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010424 ;;
10425 esac
drh710658c2012-01-16 13:00:05 +000010426 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
drh8b727472009-01-19 18:18:40 +000010427$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010428
drh710658c2012-01-16 13:00:05 +000010429 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
drh8b727472009-01-19 18:18:40 +000010430$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010431 # Make sure either enable_shared or enable_static is yes.
10432 test "$enable_shared" = yes || enable_static=yes
drh710658c2012-01-16 13:00:05 +000010433 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
drh8b727472009-01-19 18:18:40 +000010434$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +000010435
a.rottmann9bc8b932004-02-29 15:18:31 +000010436
a.rottmann9bc8b932004-02-29 15:18:31 +000010437
a.rottmann9bc8b932004-02-29 15:18:31 +000010438
vapier7f19c022007-02-17 14:46:31 +000010439fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010440ac_ext=c
10441ac_cpp='$CPP $CPPFLAGS'
10442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10444ac_compiler_gnu=$ac_cv_c_compiler_gnu
10445
10446CC="$lt_save_CC"
10447
a.rottmann9bc8b932004-02-29 15:18:31 +000010448
a.rottmann9bc8b932004-02-29 15:18:31 +000010449
10450
a.rottmann9bc8b932004-02-29 15:18:31 +000010451
a.rottmann9bc8b932004-02-29 15:18:31 +000010452
a.rottmann9bc8b932004-02-29 15:18:31 +000010453
a.rottmann9bc8b932004-02-29 15:18:31 +000010454
a.rottmann9bc8b932004-02-29 15:18:31 +000010455
a.rottmann9bc8b932004-02-29 15:18:31 +000010456
vapier7f19c022007-02-17 14:46:31 +000010457
a.rottmann9bc8b932004-02-29 15:18:31 +000010458
10459
drh8b727472009-01-19 18:18:40 +000010460 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +000010461
vapier7f19c022007-02-17 14:46:31 +000010462
10463
vapier7f19c022007-02-17 14:46:31 +000010464
mlcreech636a9952008-05-05 22:52:56 +000010465# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +000010466
10467
drh71eb93e2001-09-28 01:34:43 +000010468# Find a good install program. We prefer a C program (faster),
10469# so one script is as good as another. But avoid the broken or
10470# incompatible versions:
10471# SysV /etc/install, /usr/sbin/install
10472# SunOS /usr/etc/install
10473# IRIX /sbin/install
10474# AIX /bin/install
10475# AmigaOS /C/install, which installs bootblocks on floppy discs
10476# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10477# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10478# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +000010479# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +000010480# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +000010481# Reject install programs that cannot install multiple files.
drh710658c2012-01-16 13:00:05 +000010482{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
drh8b727472009-01-19 18:18:40 +000010483$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000010484if test -z "$INSTALL"; then
drh710658c2012-01-16 13:00:05 +000010485if test "${ac_cv_path_install+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010486 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010487else
a.rottmann84e63352003-03-24 09:42:16 +000010488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489for as_dir in $PATH
10490do
10491 IFS=$as_save_IFS
10492 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +000010493 # Account for people who put trailing slashes in PATH elements.
10494case $as_dir/ in
10495 ./ | .// | /cC/* | \
a.rottmann84e63352003-03-24 09:42:16 +000010496 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
drh710658c2012-01-16 13:00:05 +000010497 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +000010498 /usr/ucb/* ) ;;
10499 *)
10500 # OSF1 and SCO ODT 3.0 have their own names for install.
10501 # Don't use installbsd from OSF since it installs stuff as root
10502 # by default.
10503 for ac_prog in ginstall scoinst install; do
10504 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000010505 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 +000010506 if test $ac_prog = install &&
10507 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10508 # AIX install. It has an incompatible calling convention.
10509 :
10510 elif test $ac_prog = install &&
10511 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10512 # program-specific install script used by HP pwplus--don't use.
10513 :
10514 else
drh8b727472009-01-19 18:18:40 +000010515 rm -rf conftest.one conftest.two conftest.dir
10516 echo one > conftest.one
10517 echo two > conftest.two
10518 mkdir conftest.dir
10519 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10520 test -s conftest.one && test -s conftest.two &&
10521 test -s conftest.dir/conftest.one &&
10522 test -s conftest.dir/conftest.two
10523 then
10524 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10525 break 3
10526 fi
a.rottmann964dbb12004-02-26 19:47:42 +000010527 fi
10528 fi
drh71eb93e2001-09-28 01:34:43 +000010529 done
a.rottmann84e63352003-03-24 09:42:16 +000010530 done
10531 ;;
10532esac
a.rottmann84e63352003-03-24 09:42:16 +000010533
drh710658c2012-01-16 13:00:05 +000010534done
drh8b727472009-01-19 18:18:40 +000010535IFS=$as_save_IFS
10536
10537rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +000010538
10539fi
10540 if test "${ac_cv_path_install+set}" = set; then
10541 INSTALL=$ac_cv_path_install
10542 else
drh8b727472009-01-19 18:18:40 +000010543 # As a last resort, use the slow shell script. Don't cache a
10544 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +000010545 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +000010546 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +000010547 INSTALL=$ac_install_sh
10548 fi
10549fi
drh710658c2012-01-16 13:00:05 +000010550{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
drh8b727472009-01-19 18:18:40 +000010551$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010552
10553# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10554# It thinks the first close brace ends the variable substitution.
10555test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10556
10557test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10558
10559test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10560
drhf1878b42006-01-23 18:06:52 +000010561for ac_prog in gawk mawk nawk awk
10562do
10563 # Extract the first word of "$ac_prog", so it can be a program name with args.
10564set dummy $ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +000010565{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010566$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +000010567if test "${ac_cv_prog_AWK+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010568 $as_echo_n "(cached) " >&6
drhf1878b42006-01-23 18:06:52 +000010569else
10570 if test -n "$AWK"; then
10571 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10572else
10573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10574for as_dir in $PATH
10575do
10576 IFS=$as_save_IFS
10577 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +000010578 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000010579 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 +000010580 ac_cv_prog_AWK="$ac_prog"
drh710658c2012-01-16 13:00:05 +000010581 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
drhf1878b42006-01-23 18:06:52 +000010582 break 2
10583 fi
10584done
drh710658c2012-01-16 13:00:05 +000010585done
drh8b727472009-01-19 18:18:40 +000010586IFS=$as_save_IFS
drhf1878b42006-01-23 18:06:52 +000010587
10588fi
10589fi
10590AWK=$ac_cv_prog_AWK
10591if test -n "$AWK"; then
drh710658c2012-01-16 13:00:05 +000010592 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
drh8b727472009-01-19 18:18:40 +000010593$as_echo "$AWK" >&6; }
drhf1878b42006-01-23 18:06:52 +000010594else
drh710658c2012-01-16 13:00:05 +000010595 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010596$as_echo "no" >&6; }
drhf1878b42006-01-23 18:06:52 +000010597fi
10598
drh8b727472009-01-19 18:18:40 +000010599
drhf1878b42006-01-23 18:06:52 +000010600 test -n "$AWK" && break
10601done
10602
a.rottmann84e63352003-03-24 09:42:16 +000010603
drh75897232000-05-29 14:26:00 +000010604#########
mlcreech636a9952008-05-05 22:52:56 +000010605# Enable large file support (if special flags are necessary)
10606#
drh8b727472009-01-19 18:18:40 +000010607# Check whether --enable-largefile was given.
drh710658c2012-01-16 13:00:05 +000010608if test "${enable_largefile+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010609 enableval=$enable_largefile;
10610fi
mlcreech636a9952008-05-05 22:52:56 +000010611
10612if test "$enable_largefile" != no; then
10613
drh710658c2012-01-16 13:00:05 +000010614 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010615$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
drh710658c2012-01-16 13:00:05 +000010616if test "${ac_cv_sys_largefile_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010617 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000010618else
mlcreech636a9952008-05-05 22:52:56 +000010619 ac_cv_sys_largefile_CC=no
10620 if test "$GCC" != yes; then
10621 ac_save_CC=$CC
10622 while :; do
drh8b727472009-01-19 18:18:40 +000010623 # IRIX 6.2 and later do not support large files by default,
10624 # so use the C compiler's -n32 option if that helps.
drh710658c2012-01-16 13:00:05 +000010625 cat >conftest.$ac_ext <<_ACEOF
10626/* confdefs.h. */
10627_ACEOF
10628cat confdefs.h >>conftest.$ac_ext
10629cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000010630/* end confdefs.h. */
10631#include <sys/types.h>
10632 /* Check that off_t can represent 2**63 - 1 correctly.
10633 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10634 since some C++ compilers masquerading as C compilers
10635 incorrectly reject 9223372036854775807. */
10636#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10637 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10638 && LARGE_OFF_T % 2147483647 == 1)
10639 ? 1 : -1];
10640int
10641main ()
10642{
10643
10644 ;
10645 return 0;
10646}
10647_ACEOF
drh710658c2012-01-16 13:00:05 +000010648 rm -f conftest.$ac_objext
10649if { (ac_try="$ac_compile"
10650case "(($ac_try" in
10651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652 *) ac_try_echo=$ac_try;;
10653esac
10654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10655$as_echo "$ac_try_echo") >&5
10656 (eval "$ac_compile") 2>conftest.er1
10657 ac_status=$?
10658 grep -v '^ *+' conftest.er1 >conftest.err
10659 rm -f conftest.er1
10660 cat conftest.err >&5
10661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } && {
10663 test -z "$ac_c_werror_flag" ||
10664 test ! -s conftest.err
10665 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010666 break
drh710658c2012-01-16 13:00:05 +000010667else
10668 $as_echo "$as_me: failed program was:" >&5
10669sed 's/^/| /' conftest.$ac_ext >&5
10670
10671
mlcreech636a9952008-05-05 22:52:56 +000010672fi
drh710658c2012-01-16 13:00:05 +000010673
drh8b727472009-01-19 18:18:40 +000010674rm -f core conftest.err conftest.$ac_objext
10675 CC="$CC -n32"
drh710658c2012-01-16 13:00:05 +000010676 rm -f conftest.$ac_objext
10677if { (ac_try="$ac_compile"
10678case "(($ac_try" in
10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10680 *) ac_try_echo=$ac_try;;
10681esac
10682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10683$as_echo "$ac_try_echo") >&5
10684 (eval "$ac_compile") 2>conftest.er1
10685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } && {
10691 test -z "$ac_c_werror_flag" ||
10692 test ! -s conftest.err
10693 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010694 ac_cv_sys_largefile_CC=' -n32'; break
drh710658c2012-01-16 13:00:05 +000010695else
10696 $as_echo "$as_me: failed program was:" >&5
10697sed 's/^/| /' conftest.$ac_ext >&5
10698
10699
mlcreech636a9952008-05-05 22:52:56 +000010700fi
drh710658c2012-01-16 13:00:05 +000010701
drh8b727472009-01-19 18:18:40 +000010702rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010703 break
10704 done
10705 CC=$ac_save_CC
10706 rm -f conftest.$ac_ext
10707 fi
10708fi
drh710658c2012-01-16 13:00:05 +000010709{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
drh8b727472009-01-19 18:18:40 +000010710$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010711 if test "$ac_cv_sys_largefile_CC" != no; then
10712 CC=$CC$ac_cv_sys_largefile_CC
10713 fi
10714
drh710658c2012-01-16 13:00:05 +000010715 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010716$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
drh710658c2012-01-16 13:00:05 +000010717if test "${ac_cv_sys_file_offset_bits+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010718 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010719else
10720 while :; do
drh710658c2012-01-16 13:00:05 +000010721 cat >conftest.$ac_ext <<_ACEOF
10722/* confdefs.h. */
10723_ACEOF
10724cat confdefs.h >>conftest.$ac_ext
10725cat >>conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000010726/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010727#include <sys/types.h>
10728 /* Check that off_t can represent 2**63 - 1 correctly.
10729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10730 since some C++ compilers masquerading as C compilers
10731 incorrectly reject 9223372036854775807. */
10732#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10734 && LARGE_OFF_T % 2147483647 == 1)
10735 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010736int
10737main ()
10738{
mlcreech636a9952008-05-05 22:52:56 +000010739
mlcreechb87057f2008-03-06 07:19:20 +000010740 ;
10741 return 0;
10742}
10743_ACEOF
drh710658c2012-01-16 13:00:05 +000010744rm -f conftest.$ac_objext
10745if { (ac_try="$ac_compile"
10746case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10749esac
10750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10751$as_echo "$ac_try_echo") >&5
10752 (eval "$ac_compile") 2>conftest.er1
10753 ac_status=$?
10754 grep -v '^ *+' conftest.er1 >conftest.err
10755 rm -f conftest.er1
10756 cat conftest.err >&5
10757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } && {
10759 test -z "$ac_c_werror_flag" ||
10760 test ! -s conftest.err
10761 } && test -s conftest.$ac_objext; then
drh8b727472009-01-19 18:18:40 +000010762 ac_cv_sys_file_offset_bits=no; break
drh710658c2012-01-16 13:00:05 +000010763else
10764 $as_echo "$as_me: failed program was:" >&5
10765sed 's/^/| /' conftest.$ac_ext >&5
10766
10767
mlcreech636a9952008-05-05 22:52:56 +000010768fi
drh710658c2012-01-16 13:00:05 +000010769
drh8b727472009-01-19 18:18:40 +000010770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +000010771 cat >conftest.$ac_ext <<_ACEOF
10772/* confdefs.h. */
10773_ACEOF
10774cat confdefs.h >>conftest.$ac_ext
10775cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000010776/* end confdefs.h. */
10777#define _FILE_OFFSET_BITS 64
10778#include <sys/types.h>
10779 /* Check that off_t can represent 2**63 - 1 correctly.
10780 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10781 since some C++ compilers masquerading as C compilers
10782 incorrectly reject 9223372036854775807. */
10783#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10784 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10785 && LARGE_OFF_T % 2147483647 == 1)
10786 ? 1 : -1];
10787int
10788main ()
10789{
10790
10791 ;
10792 return 0;
10793}
10794_ACEOF
drh710658c2012-01-16 13:00:05 +000010795rm -f conftest.$ac_objext
10796if { (ac_try="$ac_compile"
10797case "(($ac_try" in
10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799 *) ac_try_echo=$ac_try;;
10800esac
10801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10802$as_echo "$ac_try_echo") >&5
10803 (eval "$ac_compile") 2>conftest.er1
10804 ac_status=$?
10805 grep -v '^ *+' conftest.er1 >conftest.err
10806 rm -f conftest.er1
10807 cat conftest.err >&5
10808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } && {
10810 test -z "$ac_c_werror_flag" ||
10811 test ! -s conftest.err
10812 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010813 ac_cv_sys_file_offset_bits=64; break
drh710658c2012-01-16 13:00:05 +000010814else
10815 $as_echo "$as_me: failed program was:" >&5
10816sed 's/^/| /' conftest.$ac_ext >&5
10817
10818
mlcreech636a9952008-05-05 22:52:56 +000010819fi
drh710658c2012-01-16 13:00:05 +000010820
drh8b727472009-01-19 18:18:40 +000010821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10822 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010823 break
10824done
10825fi
drh710658c2012-01-16 13:00:05 +000010826{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
drh8b727472009-01-19 18:18:40 +000010827$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10828case $ac_cv_sys_file_offset_bits in #(
10829 no | unknown) ;;
10830 *)
mlcreech636a9952008-05-05 22:52:56 +000010831cat >>confdefs.h <<_ACEOF
10832#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10833_ACEOF
drh8b727472009-01-19 18:18:40 +000010834;;
10835esac
10836rm -rf conftest*
10837 if test $ac_cv_sys_file_offset_bits = unknown; then
drh710658c2012-01-16 13:00:05 +000010838 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010839$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
drh710658c2012-01-16 13:00:05 +000010840if test "${ac_cv_sys_large_files+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010841 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010842else
10843 while :; do
drh710658c2012-01-16 13:00:05 +000010844 cat >conftest.$ac_ext <<_ACEOF
10845/* confdefs.h. */
10846_ACEOF
10847cat confdefs.h >>conftest.$ac_ext
10848cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000010849/* end confdefs.h. */
10850#include <sys/types.h>
10851 /* Check that off_t can represent 2**63 - 1 correctly.
10852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10853 since some C++ compilers masquerading as C compilers
10854 incorrectly reject 9223372036854775807. */
10855#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10857 && LARGE_OFF_T % 2147483647 == 1)
10858 ? 1 : -1];
10859int
10860main ()
10861{
10862
10863 ;
10864 return 0;
10865}
10866_ACEOF
drh710658c2012-01-16 13:00:05 +000010867rm -f conftest.$ac_objext
10868if { (ac_try="$ac_compile"
10869case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10872esac
10873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10874$as_echo "$ac_try_echo") >&5
10875 (eval "$ac_compile") 2>conftest.er1
10876 ac_status=$?
10877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
10880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } && {
10882 test -z "$ac_c_werror_flag" ||
10883 test ! -s conftest.err
10884 } && test -s conftest.$ac_objext; then
drh8b727472009-01-19 18:18:40 +000010885 ac_cv_sys_large_files=no; break
drh710658c2012-01-16 13:00:05 +000010886else
10887 $as_echo "$as_me: failed program was:" >&5
10888sed 's/^/| /' conftest.$ac_ext >&5
10889
10890
mlcreech636a9952008-05-05 22:52:56 +000010891fi
drh710658c2012-01-16 13:00:05 +000010892
drh8b727472009-01-19 18:18:40 +000010893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +000010894 cat >conftest.$ac_ext <<_ACEOF
10895/* confdefs.h. */
10896_ACEOF
10897cat confdefs.h >>conftest.$ac_ext
10898cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000010899/* end confdefs.h. */
10900#define _LARGE_FILES 1
10901#include <sys/types.h>
10902 /* Check that off_t can represent 2**63 - 1 correctly.
10903 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10904 since some C++ compilers masquerading as C compilers
10905 incorrectly reject 9223372036854775807. */
10906#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10907 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10908 && LARGE_OFF_T % 2147483647 == 1)
10909 ? 1 : -1];
10910int
10911main ()
10912{
10913
10914 ;
10915 return 0;
10916}
10917_ACEOF
drh710658c2012-01-16 13:00:05 +000010918rm -f conftest.$ac_objext
10919if { (ac_try="$ac_compile"
10920case "(($ac_try" in
10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922 *) ac_try_echo=$ac_try;;
10923esac
10924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10925$as_echo "$ac_try_echo") >&5
10926 (eval "$ac_compile") 2>conftest.er1
10927 ac_status=$?
10928 grep -v '^ *+' conftest.er1 >conftest.err
10929 rm -f conftest.er1
10930 cat conftest.err >&5
10931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } && {
10933 test -z "$ac_c_werror_flag" ||
10934 test ! -s conftest.err
10935 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010936 ac_cv_sys_large_files=1; break
drh710658c2012-01-16 13:00:05 +000010937else
10938 $as_echo "$as_me: failed program was:" >&5
10939sed 's/^/| /' conftest.$ac_ext >&5
10940
10941
mlcreech636a9952008-05-05 22:52:56 +000010942fi
drh710658c2012-01-16 13:00:05 +000010943
drh8b727472009-01-19 18:18:40 +000010944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10945 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010946 break
10947done
10948fi
drh710658c2012-01-16 13:00:05 +000010949{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
drh8b727472009-01-19 18:18:40 +000010950$as_echo "$ac_cv_sys_large_files" >&6; }
10951case $ac_cv_sys_large_files in #(
10952 no | unknown) ;;
10953 *)
mlcreech636a9952008-05-05 22:52:56 +000010954cat >>confdefs.h <<_ACEOF
10955#define _LARGE_FILES $ac_cv_sys_large_files
10956_ACEOF
drh8b727472009-01-19 18:18:40 +000010957;;
10958esac
10959rm -rf conftest*
10960 fi
mlcreech636a9952008-05-05 22:52:56 +000010961fi
10962
10963
10964#########
10965# Check for needed/wanted data types
drh710658c2012-01-16 13:00:05 +000010966{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
10967$as_echo_n "checking for int8_t... " >&6; }
10968if test "${ac_cv_type_int8_t+set}" = set; then
10969 $as_echo_n "(cached) " >&6
10970else
10971 ac_cv_type_int8_t=no
10972cat >conftest.$ac_ext <<_ACEOF
10973/* confdefs.h. */
10974_ACEOF
10975cat confdefs.h >>conftest.$ac_ext
10976cat >>conftest.$ac_ext <<_ACEOF
10977/* end confdefs.h. */
10978$ac_includes_default
10979int
10980main ()
10981{
10982if (sizeof (int8_t))
10983 return 0;
10984 ;
10985 return 0;
10986}
10987_ACEOF
10988rm -f conftest.$ac_objext
10989if { (ac_try="$ac_compile"
10990case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10993esac
10994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10995$as_echo "$ac_try_echo") >&5
10996 (eval "$ac_compile") 2>conftest.er1
10997 ac_status=$?
10998 grep -v '^ *+' conftest.er1 >conftest.err
10999 rm -f conftest.er1
11000 cat conftest.err >&5
11001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } && {
11003 test -z "$ac_c_werror_flag" ||
11004 test ! -s conftest.err
11005 } && test -s conftest.$ac_objext; then
11006 cat >conftest.$ac_ext <<_ACEOF
11007/* confdefs.h. */
11008_ACEOF
11009cat confdefs.h >>conftest.$ac_ext
11010cat >>conftest.$ac_ext <<_ACEOF
11011/* end confdefs.h. */
11012$ac_includes_default
11013int
11014main ()
11015{
11016if (sizeof ((int8_t)))
11017 return 0;
11018 ;
11019 return 0;
11020}
11021_ACEOF
11022rm -f conftest.$ac_objext
11023if { (ac_try="$ac_compile"
11024case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11027esac
11028eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11029$as_echo "$ac_try_echo") >&5
11030 (eval "$ac_compile") 2>conftest.er1
11031 ac_status=$?
11032 grep -v '^ *+' conftest.er1 >conftest.err
11033 rm -f conftest.er1
11034 cat conftest.err >&5
11035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } && {
11037 test -z "$ac_c_werror_flag" ||
11038 test ! -s conftest.err
11039 } && test -s conftest.$ac_objext; then
11040 :
11041else
11042 $as_echo "$as_me: failed program was:" >&5
11043sed 's/^/| /' conftest.$ac_ext >&5
11044
11045 ac_cv_type_int8_t=yes
11046fi
11047
11048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11049else
11050 $as_echo "$as_me: failed program was:" >&5
11051sed 's/^/| /' conftest.$ac_ext >&5
11052
11053
11054fi
11055
11056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11057fi
11058{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11059$as_echo "$ac_cv_type_int8_t" >&6; }
11060if test $ac_cv_type_int8_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011061
11062cat >>confdefs.h <<_ACEOF
11063#define HAVE_INT8_T 1
11064_ACEOF
11065
11066
11067fi
drh710658c2012-01-16 13:00:05 +000011068{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
11069$as_echo_n "checking for int16_t... " >&6; }
11070if test "${ac_cv_type_int16_t+set}" = set; then
11071 $as_echo_n "(cached) " >&6
11072else
11073 ac_cv_type_int16_t=no
11074cat >conftest.$ac_ext <<_ACEOF
11075/* confdefs.h. */
11076_ACEOF
11077cat confdefs.h >>conftest.$ac_ext
11078cat >>conftest.$ac_ext <<_ACEOF
11079/* end confdefs.h. */
11080$ac_includes_default
11081int
11082main ()
11083{
11084if (sizeof (int16_t))
11085 return 0;
11086 ;
11087 return 0;
11088}
11089_ACEOF
11090rm -f conftest.$ac_objext
11091if { (ac_try="$ac_compile"
11092case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11095esac
11096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11097$as_echo "$ac_try_echo") >&5
11098 (eval "$ac_compile") 2>conftest.er1
11099 ac_status=$?
11100 grep -v '^ *+' conftest.er1 >conftest.err
11101 rm -f conftest.er1
11102 cat conftest.err >&5
11103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } && {
11105 test -z "$ac_c_werror_flag" ||
11106 test ! -s conftest.err
11107 } && test -s conftest.$ac_objext; then
11108 cat >conftest.$ac_ext <<_ACEOF
11109/* confdefs.h. */
11110_ACEOF
11111cat confdefs.h >>conftest.$ac_ext
11112cat >>conftest.$ac_ext <<_ACEOF
11113/* end confdefs.h. */
11114$ac_includes_default
11115int
11116main ()
11117{
11118if (sizeof ((int16_t)))
11119 return 0;
11120 ;
11121 return 0;
11122}
11123_ACEOF
11124rm -f conftest.$ac_objext
11125if { (ac_try="$ac_compile"
11126case "(($ac_try" in
11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128 *) ac_try_echo=$ac_try;;
11129esac
11130eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11131$as_echo "$ac_try_echo") >&5
11132 (eval "$ac_compile") 2>conftest.er1
11133 ac_status=$?
11134 grep -v '^ *+' conftest.er1 >conftest.err
11135 rm -f conftest.er1
11136 cat conftest.err >&5
11137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } && {
11139 test -z "$ac_c_werror_flag" ||
11140 test ! -s conftest.err
11141 } && test -s conftest.$ac_objext; then
11142 :
11143else
11144 $as_echo "$as_me: failed program was:" >&5
11145sed 's/^/| /' conftest.$ac_ext >&5
11146
11147 ac_cv_type_int16_t=yes
11148fi
11149
11150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11151else
11152 $as_echo "$as_me: failed program was:" >&5
11153sed 's/^/| /' conftest.$ac_ext >&5
11154
11155
11156fi
11157
11158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11159fi
11160{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11161$as_echo "$ac_cv_type_int16_t" >&6; }
11162if test $ac_cv_type_int16_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011163
11164cat >>confdefs.h <<_ACEOF
11165#define HAVE_INT16_T 1
11166_ACEOF
11167
11168
11169fi
drh710658c2012-01-16 13:00:05 +000011170{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
11171$as_echo_n "checking for int32_t... " >&6; }
11172if test "${ac_cv_type_int32_t+set}" = set; then
11173 $as_echo_n "(cached) " >&6
11174else
11175 ac_cv_type_int32_t=no
11176cat >conftest.$ac_ext <<_ACEOF
11177/* confdefs.h. */
11178_ACEOF
11179cat confdefs.h >>conftest.$ac_ext
11180cat >>conftest.$ac_ext <<_ACEOF
11181/* end confdefs.h. */
11182$ac_includes_default
11183int
11184main ()
11185{
11186if (sizeof (int32_t))
11187 return 0;
11188 ;
11189 return 0;
11190}
11191_ACEOF
11192rm -f conftest.$ac_objext
11193if { (ac_try="$ac_compile"
11194case "(($ac_try" in
11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 *) ac_try_echo=$ac_try;;
11197esac
11198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11199$as_echo "$ac_try_echo") >&5
11200 (eval "$ac_compile") 2>conftest.er1
11201 ac_status=$?
11202 grep -v '^ *+' conftest.er1 >conftest.err
11203 rm -f conftest.er1
11204 cat conftest.err >&5
11205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } && {
11207 test -z "$ac_c_werror_flag" ||
11208 test ! -s conftest.err
11209 } && test -s conftest.$ac_objext; then
11210 cat >conftest.$ac_ext <<_ACEOF
11211/* confdefs.h. */
11212_ACEOF
11213cat confdefs.h >>conftest.$ac_ext
11214cat >>conftest.$ac_ext <<_ACEOF
11215/* end confdefs.h. */
11216$ac_includes_default
11217int
11218main ()
11219{
11220if (sizeof ((int32_t)))
11221 return 0;
11222 ;
11223 return 0;
11224}
11225_ACEOF
11226rm -f conftest.$ac_objext
11227if { (ac_try="$ac_compile"
11228case "(($ac_try" in
11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230 *) ac_try_echo=$ac_try;;
11231esac
11232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11233$as_echo "$ac_try_echo") >&5
11234 (eval "$ac_compile") 2>conftest.er1
11235 ac_status=$?
11236 grep -v '^ *+' conftest.er1 >conftest.err
11237 rm -f conftest.er1
11238 cat conftest.err >&5
11239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } && {
11241 test -z "$ac_c_werror_flag" ||
11242 test ! -s conftest.err
11243 } && test -s conftest.$ac_objext; then
11244 :
11245else
11246 $as_echo "$as_me: failed program was:" >&5
11247sed 's/^/| /' conftest.$ac_ext >&5
11248
11249 ac_cv_type_int32_t=yes
11250fi
11251
11252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11253else
11254 $as_echo "$as_me: failed program was:" >&5
11255sed 's/^/| /' conftest.$ac_ext >&5
11256
11257
11258fi
11259
11260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11261fi
11262{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11263$as_echo "$ac_cv_type_int32_t" >&6; }
11264if test $ac_cv_type_int32_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011265
11266cat >>confdefs.h <<_ACEOF
11267#define HAVE_INT32_T 1
11268_ACEOF
11269
11270
11271fi
drh710658c2012-01-16 13:00:05 +000011272{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5
11273$as_echo_n "checking for int64_t... " >&6; }
11274if test "${ac_cv_type_int64_t+set}" = set; then
11275 $as_echo_n "(cached) " >&6
11276else
11277 ac_cv_type_int64_t=no
11278cat >conftest.$ac_ext <<_ACEOF
11279/* confdefs.h. */
11280_ACEOF
11281cat confdefs.h >>conftest.$ac_ext
11282cat >>conftest.$ac_ext <<_ACEOF
11283/* end confdefs.h. */
11284$ac_includes_default
11285int
11286main ()
11287{
11288if (sizeof (int64_t))
11289 return 0;
11290 ;
11291 return 0;
11292}
11293_ACEOF
11294rm -f conftest.$ac_objext
11295if { (ac_try="$ac_compile"
11296case "(($ac_try" in
11297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298 *) ac_try_echo=$ac_try;;
11299esac
11300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11301$as_echo "$ac_try_echo") >&5
11302 (eval "$ac_compile") 2>conftest.er1
11303 ac_status=$?
11304 grep -v '^ *+' conftest.er1 >conftest.err
11305 rm -f conftest.er1
11306 cat conftest.err >&5
11307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } && {
11309 test -z "$ac_c_werror_flag" ||
11310 test ! -s conftest.err
11311 } && test -s conftest.$ac_objext; then
11312 cat >conftest.$ac_ext <<_ACEOF
11313/* confdefs.h. */
11314_ACEOF
11315cat confdefs.h >>conftest.$ac_ext
11316cat >>conftest.$ac_ext <<_ACEOF
11317/* end confdefs.h. */
11318$ac_includes_default
11319int
11320main ()
11321{
11322if (sizeof ((int64_t)))
11323 return 0;
11324 ;
11325 return 0;
11326}
11327_ACEOF
11328rm -f conftest.$ac_objext
11329if { (ac_try="$ac_compile"
11330case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11333esac
11334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11335$as_echo "$ac_try_echo") >&5
11336 (eval "$ac_compile") 2>conftest.er1
11337 ac_status=$?
11338 grep -v '^ *+' conftest.er1 >conftest.err
11339 rm -f conftest.er1
11340 cat conftest.err >&5
11341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } && {
11343 test -z "$ac_c_werror_flag" ||
11344 test ! -s conftest.err
11345 } && test -s conftest.$ac_objext; then
11346 :
11347else
11348 $as_echo "$as_me: failed program was:" >&5
11349sed 's/^/| /' conftest.$ac_ext >&5
11350
11351 ac_cv_type_int64_t=yes
11352fi
11353
11354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11355else
11356 $as_echo "$as_me: failed program was:" >&5
11357sed 's/^/| /' conftest.$ac_ext >&5
11358
11359
11360fi
11361
11362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11363fi
11364{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11365$as_echo "$ac_cv_type_int64_t" >&6; }
11366if test $ac_cv_type_int64_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011367
11368cat >>confdefs.h <<_ACEOF
11369#define HAVE_INT64_T 1
11370_ACEOF
11371
11372
11373fi
drh710658c2012-01-16 13:00:05 +000011374{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
11375$as_echo_n "checking for intptr_t... " >&6; }
11376if test "${ac_cv_type_intptr_t+set}" = set; then
11377 $as_echo_n "(cached) " >&6
11378else
11379 ac_cv_type_intptr_t=no
11380cat >conftest.$ac_ext <<_ACEOF
11381/* confdefs.h. */
11382_ACEOF
11383cat confdefs.h >>conftest.$ac_ext
11384cat >>conftest.$ac_ext <<_ACEOF
11385/* end confdefs.h. */
11386$ac_includes_default
11387int
11388main ()
11389{
11390if (sizeof (intptr_t))
11391 return 0;
11392 ;
11393 return 0;
11394}
11395_ACEOF
11396rm -f conftest.$ac_objext
11397if { (ac_try="$ac_compile"
11398case "(($ac_try" in
11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11401esac
11402eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11403$as_echo "$ac_try_echo") >&5
11404 (eval "$ac_compile") 2>conftest.er1
11405 ac_status=$?
11406 grep -v '^ *+' conftest.er1 >conftest.err
11407 rm -f conftest.er1
11408 cat conftest.err >&5
11409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); } && {
11411 test -z "$ac_c_werror_flag" ||
11412 test ! -s conftest.err
11413 } && test -s conftest.$ac_objext; then
11414 cat >conftest.$ac_ext <<_ACEOF
11415/* confdefs.h. */
11416_ACEOF
11417cat confdefs.h >>conftest.$ac_ext
11418cat >>conftest.$ac_ext <<_ACEOF
11419/* end confdefs.h. */
11420$ac_includes_default
11421int
11422main ()
11423{
11424if (sizeof ((intptr_t)))
11425 return 0;
11426 ;
11427 return 0;
11428}
11429_ACEOF
11430rm -f conftest.$ac_objext
11431if { (ac_try="$ac_compile"
11432case "(($ac_try" in
11433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434 *) ac_try_echo=$ac_try;;
11435esac
11436eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11437$as_echo "$ac_try_echo") >&5
11438 (eval "$ac_compile") 2>conftest.er1
11439 ac_status=$?
11440 grep -v '^ *+' conftest.er1 >conftest.err
11441 rm -f conftest.er1
11442 cat conftest.err >&5
11443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } && {
11445 test -z "$ac_c_werror_flag" ||
11446 test ! -s conftest.err
11447 } && test -s conftest.$ac_objext; then
11448 :
11449else
11450 $as_echo "$as_me: failed program was:" >&5
11451sed 's/^/| /' conftest.$ac_ext >&5
11452
11453 ac_cv_type_intptr_t=yes
11454fi
11455
11456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11457else
11458 $as_echo "$as_me: failed program was:" >&5
11459sed 's/^/| /' conftest.$ac_ext >&5
11460
11461
11462fi
11463
11464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465fi
11466{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
11467$as_echo "$ac_cv_type_intptr_t" >&6; }
11468if test $ac_cv_type_intptr_t = yes; then
danielk197733a14782008-08-04 14:50:05 +000011469
11470cat >>confdefs.h <<_ACEOF
11471#define HAVE_INTPTR_T 1
11472_ACEOF
11473
11474
11475fi
drh710658c2012-01-16 13:00:05 +000011476{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
11477$as_echo_n "checking for uint8_t... " >&6; }
11478if test "${ac_cv_type_uint8_t+set}" = set; then
11479 $as_echo_n "(cached) " >&6
11480else
11481 ac_cv_type_uint8_t=no
11482cat >conftest.$ac_ext <<_ACEOF
11483/* confdefs.h. */
11484_ACEOF
11485cat confdefs.h >>conftest.$ac_ext
11486cat >>conftest.$ac_ext <<_ACEOF
11487/* end confdefs.h. */
11488$ac_includes_default
11489int
11490main ()
11491{
11492if (sizeof (uint8_t))
11493 return 0;
11494 ;
11495 return 0;
11496}
11497_ACEOF
11498rm -f conftest.$ac_objext
11499if { (ac_try="$ac_compile"
11500case "(($ac_try" in
11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502 *) ac_try_echo=$ac_try;;
11503esac
11504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11505$as_echo "$ac_try_echo") >&5
11506 (eval "$ac_compile") 2>conftest.er1
11507 ac_status=$?
11508 grep -v '^ *+' conftest.er1 >conftest.err
11509 rm -f conftest.er1
11510 cat conftest.err >&5
11511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } && {
11513 test -z "$ac_c_werror_flag" ||
11514 test ! -s conftest.err
11515 } && test -s conftest.$ac_objext; then
11516 cat >conftest.$ac_ext <<_ACEOF
11517/* confdefs.h. */
11518_ACEOF
11519cat confdefs.h >>conftest.$ac_ext
11520cat >>conftest.$ac_ext <<_ACEOF
11521/* end confdefs.h. */
11522$ac_includes_default
11523int
11524main ()
11525{
11526if (sizeof ((uint8_t)))
11527 return 0;
11528 ;
11529 return 0;
11530}
11531_ACEOF
11532rm -f conftest.$ac_objext
11533if { (ac_try="$ac_compile"
11534case "(($ac_try" in
11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536 *) ac_try_echo=$ac_try;;
11537esac
11538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11539$as_echo "$ac_try_echo") >&5
11540 (eval "$ac_compile") 2>conftest.er1
11541 ac_status=$?
11542 grep -v '^ *+' conftest.er1 >conftest.err
11543 rm -f conftest.er1
11544 cat conftest.err >&5
11545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } && {
11547 test -z "$ac_c_werror_flag" ||
11548 test ! -s conftest.err
11549 } && test -s conftest.$ac_objext; then
11550 :
11551else
11552 $as_echo "$as_me: failed program was:" >&5
11553sed 's/^/| /' conftest.$ac_ext >&5
11554
11555 ac_cv_type_uint8_t=yes
11556fi
11557
11558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11559else
11560 $as_echo "$as_me: failed program was:" >&5
11561sed 's/^/| /' conftest.$ac_ext >&5
11562
11563
11564fi
11565
11566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11567fi
11568{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
11569$as_echo "$ac_cv_type_uint8_t" >&6; }
11570if test $ac_cv_type_uint8_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011571
11572cat >>confdefs.h <<_ACEOF
11573#define HAVE_UINT8_T 1
11574_ACEOF
11575
11576
11577fi
drh710658c2012-01-16 13:00:05 +000011578{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
11579$as_echo_n "checking for uint16_t... " >&6; }
11580if test "${ac_cv_type_uint16_t+set}" = set; then
11581 $as_echo_n "(cached) " >&6
11582else
11583 ac_cv_type_uint16_t=no
11584cat >conftest.$ac_ext <<_ACEOF
11585/* confdefs.h. */
11586_ACEOF
11587cat confdefs.h >>conftest.$ac_ext
11588cat >>conftest.$ac_ext <<_ACEOF
11589/* end confdefs.h. */
11590$ac_includes_default
11591int
11592main ()
11593{
11594if (sizeof (uint16_t))
11595 return 0;
11596 ;
11597 return 0;
11598}
11599_ACEOF
11600rm -f conftest.$ac_objext
11601if { (ac_try="$ac_compile"
11602case "(($ac_try" in
11603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11604 *) ac_try_echo=$ac_try;;
11605esac
11606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11607$as_echo "$ac_try_echo") >&5
11608 (eval "$ac_compile") 2>conftest.er1
11609 ac_status=$?
11610 grep -v '^ *+' conftest.er1 >conftest.err
11611 rm -f conftest.er1
11612 cat conftest.err >&5
11613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); } && {
11615 test -z "$ac_c_werror_flag" ||
11616 test ! -s conftest.err
11617 } && test -s conftest.$ac_objext; then
11618 cat >conftest.$ac_ext <<_ACEOF
11619/* confdefs.h. */
11620_ACEOF
11621cat confdefs.h >>conftest.$ac_ext
11622cat >>conftest.$ac_ext <<_ACEOF
11623/* end confdefs.h. */
11624$ac_includes_default
11625int
11626main ()
11627{
11628if (sizeof ((uint16_t)))
11629 return 0;
11630 ;
11631 return 0;
11632}
11633_ACEOF
11634rm -f conftest.$ac_objext
11635if { (ac_try="$ac_compile"
11636case "(($ac_try" in
11637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11638 *) ac_try_echo=$ac_try;;
11639esac
11640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11641$as_echo "$ac_try_echo") >&5
11642 (eval "$ac_compile") 2>conftest.er1
11643 ac_status=$?
11644 grep -v '^ *+' conftest.er1 >conftest.err
11645 rm -f conftest.er1
11646 cat conftest.err >&5
11647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); } && {
11649 test -z "$ac_c_werror_flag" ||
11650 test ! -s conftest.err
11651 } && test -s conftest.$ac_objext; then
11652 :
11653else
11654 $as_echo "$as_me: failed program was:" >&5
11655sed 's/^/| /' conftest.$ac_ext >&5
11656
11657 ac_cv_type_uint16_t=yes
11658fi
11659
11660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11661else
11662 $as_echo "$as_me: failed program was:" >&5
11663sed 's/^/| /' conftest.$ac_ext >&5
11664
11665
11666fi
11667
11668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11669fi
11670{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
11671$as_echo "$ac_cv_type_uint16_t" >&6; }
11672if test $ac_cv_type_uint16_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011673
11674cat >>confdefs.h <<_ACEOF
11675#define HAVE_UINT16_T 1
11676_ACEOF
11677
11678
11679fi
drh710658c2012-01-16 13:00:05 +000011680{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
11681$as_echo_n "checking for uint32_t... " >&6; }
11682if test "${ac_cv_type_uint32_t+set}" = set; then
11683 $as_echo_n "(cached) " >&6
11684else
11685 ac_cv_type_uint32_t=no
11686cat >conftest.$ac_ext <<_ACEOF
11687/* confdefs.h. */
11688_ACEOF
11689cat confdefs.h >>conftest.$ac_ext
11690cat >>conftest.$ac_ext <<_ACEOF
11691/* end confdefs.h. */
11692$ac_includes_default
11693int
11694main ()
11695{
11696if (sizeof (uint32_t))
11697 return 0;
11698 ;
11699 return 0;
11700}
11701_ACEOF
11702rm -f conftest.$ac_objext
11703if { (ac_try="$ac_compile"
11704case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11707esac
11708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11709$as_echo "$ac_try_echo") >&5
11710 (eval "$ac_compile") 2>conftest.er1
11711 ac_status=$?
11712 grep -v '^ *+' conftest.er1 >conftest.err
11713 rm -f conftest.er1
11714 cat conftest.err >&5
11715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } && {
11717 test -z "$ac_c_werror_flag" ||
11718 test ! -s conftest.err
11719 } && test -s conftest.$ac_objext; then
11720 cat >conftest.$ac_ext <<_ACEOF
11721/* confdefs.h. */
11722_ACEOF
11723cat confdefs.h >>conftest.$ac_ext
11724cat >>conftest.$ac_ext <<_ACEOF
11725/* end confdefs.h. */
11726$ac_includes_default
11727int
11728main ()
11729{
11730if (sizeof ((uint32_t)))
11731 return 0;
11732 ;
11733 return 0;
11734}
11735_ACEOF
11736rm -f conftest.$ac_objext
11737if { (ac_try="$ac_compile"
11738case "(($ac_try" in
11739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11740 *) ac_try_echo=$ac_try;;
11741esac
11742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11743$as_echo "$ac_try_echo") >&5
11744 (eval "$ac_compile") 2>conftest.er1
11745 ac_status=$?
11746 grep -v '^ *+' conftest.er1 >conftest.err
11747 rm -f conftest.er1
11748 cat conftest.err >&5
11749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } && {
11751 test -z "$ac_c_werror_flag" ||
11752 test ! -s conftest.err
11753 } && test -s conftest.$ac_objext; then
11754 :
11755else
11756 $as_echo "$as_me: failed program was:" >&5
11757sed 's/^/| /' conftest.$ac_ext >&5
11758
11759 ac_cv_type_uint32_t=yes
11760fi
11761
11762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11763else
11764 $as_echo "$as_me: failed program was:" >&5
11765sed 's/^/| /' conftest.$ac_ext >&5
11766
11767
11768fi
11769
11770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11771fi
11772{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11773$as_echo "$ac_cv_type_uint32_t" >&6; }
11774if test $ac_cv_type_uint32_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011775
11776cat >>confdefs.h <<_ACEOF
11777#define HAVE_UINT32_T 1
11778_ACEOF
11779
11780
11781fi
drh710658c2012-01-16 13:00:05 +000011782{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
11783$as_echo_n "checking for uint64_t... " >&6; }
11784if test "${ac_cv_type_uint64_t+set}" = set; then
11785 $as_echo_n "(cached) " >&6
11786else
11787 ac_cv_type_uint64_t=no
11788cat >conftest.$ac_ext <<_ACEOF
11789/* confdefs.h. */
11790_ACEOF
11791cat confdefs.h >>conftest.$ac_ext
11792cat >>conftest.$ac_ext <<_ACEOF
11793/* end confdefs.h. */
11794$ac_includes_default
11795int
11796main ()
11797{
11798if (sizeof (uint64_t))
11799 return 0;
11800 ;
11801 return 0;
11802}
11803_ACEOF
11804rm -f conftest.$ac_objext
11805if { (ac_try="$ac_compile"
11806case "(($ac_try" in
11807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808 *) ac_try_echo=$ac_try;;
11809esac
11810eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11811$as_echo "$ac_try_echo") >&5
11812 (eval "$ac_compile") 2>conftest.er1
11813 ac_status=$?
11814 grep -v '^ *+' conftest.er1 >conftest.err
11815 rm -f conftest.er1
11816 cat conftest.err >&5
11817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); } && {
11819 test -z "$ac_c_werror_flag" ||
11820 test ! -s conftest.err
11821 } && test -s conftest.$ac_objext; then
11822 cat >conftest.$ac_ext <<_ACEOF
11823/* confdefs.h. */
11824_ACEOF
11825cat confdefs.h >>conftest.$ac_ext
11826cat >>conftest.$ac_ext <<_ACEOF
11827/* end confdefs.h. */
11828$ac_includes_default
11829int
11830main ()
11831{
11832if (sizeof ((uint64_t)))
11833 return 0;
11834 ;
11835 return 0;
11836}
11837_ACEOF
11838rm -f conftest.$ac_objext
11839if { (ac_try="$ac_compile"
11840case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11843esac
11844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11845$as_echo "$ac_try_echo") >&5
11846 (eval "$ac_compile") 2>conftest.er1
11847 ac_status=$?
11848 grep -v '^ *+' conftest.er1 >conftest.err
11849 rm -f conftest.er1
11850 cat conftest.err >&5
11851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } && {
11853 test -z "$ac_c_werror_flag" ||
11854 test ! -s conftest.err
11855 } && test -s conftest.$ac_objext; then
11856 :
11857else
11858 $as_echo "$as_me: failed program was:" >&5
11859sed 's/^/| /' conftest.$ac_ext >&5
11860
11861 ac_cv_type_uint64_t=yes
11862fi
11863
11864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11865else
11866 $as_echo "$as_me: failed program was:" >&5
11867sed 's/^/| /' conftest.$ac_ext >&5
11868
11869
11870fi
11871
11872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11873fi
11874{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11875$as_echo "$ac_cv_type_uint64_t" >&6; }
11876if test $ac_cv_type_uint64_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011877
11878cat >>confdefs.h <<_ACEOF
11879#define HAVE_UINT64_T 1
11880_ACEOF
11881
11882
11883fi
drh710658c2012-01-16 13:00:05 +000011884{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
11885$as_echo_n "checking for uintptr_t... " >&6; }
11886if test "${ac_cv_type_uintptr_t+set}" = set; then
11887 $as_echo_n "(cached) " >&6
11888else
11889 ac_cv_type_uintptr_t=no
11890cat >conftest.$ac_ext <<_ACEOF
11891/* confdefs.h. */
11892_ACEOF
11893cat confdefs.h >>conftest.$ac_ext
11894cat >>conftest.$ac_ext <<_ACEOF
11895/* end confdefs.h. */
11896$ac_includes_default
11897int
11898main ()
11899{
11900if (sizeof (uintptr_t))
11901 return 0;
11902 ;
11903 return 0;
11904}
11905_ACEOF
11906rm -f conftest.$ac_objext
11907if { (ac_try="$ac_compile"
11908case "(($ac_try" in
11909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11910 *) ac_try_echo=$ac_try;;
11911esac
11912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11913$as_echo "$ac_try_echo") >&5
11914 (eval "$ac_compile") 2>conftest.er1
11915 ac_status=$?
11916 grep -v '^ *+' conftest.er1 >conftest.err
11917 rm -f conftest.er1
11918 cat conftest.err >&5
11919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } && {
11921 test -z "$ac_c_werror_flag" ||
11922 test ! -s conftest.err
11923 } && test -s conftest.$ac_objext; then
11924 cat >conftest.$ac_ext <<_ACEOF
11925/* confdefs.h. */
11926_ACEOF
11927cat confdefs.h >>conftest.$ac_ext
11928cat >>conftest.$ac_ext <<_ACEOF
11929/* end confdefs.h. */
11930$ac_includes_default
11931int
11932main ()
11933{
11934if (sizeof ((uintptr_t)))
11935 return 0;
11936 ;
11937 return 0;
11938}
11939_ACEOF
11940rm -f conftest.$ac_objext
11941if { (ac_try="$ac_compile"
11942case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11945esac
11946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11947$as_echo "$ac_try_echo") >&5
11948 (eval "$ac_compile") 2>conftest.er1
11949 ac_status=$?
11950 grep -v '^ *+' conftest.er1 >conftest.err
11951 rm -f conftest.er1
11952 cat conftest.err >&5
11953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); } && {
11955 test -z "$ac_c_werror_flag" ||
11956 test ! -s conftest.err
11957 } && test -s conftest.$ac_objext; then
11958 :
11959else
11960 $as_echo "$as_me: failed program was:" >&5
11961sed 's/^/| /' conftest.$ac_ext >&5
11962
11963 ac_cv_type_uintptr_t=yes
11964fi
11965
11966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11967else
11968 $as_echo "$as_me: failed program was:" >&5
11969sed 's/^/| /' conftest.$ac_ext >&5
11970
11971
11972fi
11973
11974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11975fi
11976{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11977$as_echo "$ac_cv_type_uintptr_t" >&6; }
11978if test $ac_cv_type_uintptr_t = yes; then
danielk197733a14782008-08-04 14:50:05 +000011979
11980cat >>confdefs.h <<_ACEOF
11981#define HAVE_UINTPTR_T 1
11982_ACEOF
11983
11984
11985fi
mlcreechb87057f2008-03-06 07:19:20 +000011986
11987
11988#########
11989# Check for needed/wanted headers
drh710658c2012-01-16 13:00:05 +000011990
11991
11992
11993
drh86c5a932012-02-08 12:13:28 +000011994
11995for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
drh710658c2012-01-16 13:00:05 +000011996do
11997as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11999 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12000$as_echo_n "checking for $ac_header... " >&6; }
12001if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12002 $as_echo_n "(cached) " >&6
12003fi
12004ac_res=`eval 'as_val=${'$as_ac_Header'}
12005 $as_echo "$as_val"'`
12006 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12007$as_echo "$ac_res" >&6; }
12008else
12009 # Is the header compilable?
12010{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12011$as_echo_n "checking $ac_header usability... " >&6; }
12012cat >conftest.$ac_ext <<_ACEOF
12013/* confdefs.h. */
12014_ACEOF
12015cat confdefs.h >>conftest.$ac_ext
12016cat >>conftest.$ac_ext <<_ACEOF
12017/* end confdefs.h. */
12018$ac_includes_default
12019#include <$ac_header>
12020_ACEOF
12021rm -f conftest.$ac_objext
12022if { (ac_try="$ac_compile"
12023case "(($ac_try" in
12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025 *) ac_try_echo=$ac_try;;
12026esac
12027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12028$as_echo "$ac_try_echo") >&5
12029 (eval "$ac_compile") 2>conftest.er1
12030 ac_status=$?
12031 grep -v '^ *+' conftest.er1 >conftest.err
12032 rm -f conftest.er1
12033 cat conftest.err >&5
12034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } && {
12036 test -z "$ac_c_werror_flag" ||
12037 test ! -s conftest.err
12038 } && test -s conftest.$ac_objext; then
12039 ac_header_compiler=yes
12040else
12041 $as_echo "$as_me: failed program was:" >&5
12042sed 's/^/| /' conftest.$ac_ext >&5
12043
12044 ac_header_compiler=no
12045fi
12046
12047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12048{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12049$as_echo "$ac_header_compiler" >&6; }
12050
12051# Is the header present?
12052{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12053$as_echo_n "checking $ac_header presence... " >&6; }
12054cat >conftest.$ac_ext <<_ACEOF
12055/* confdefs.h. */
12056_ACEOF
12057cat confdefs.h >>conftest.$ac_ext
12058cat >>conftest.$ac_ext <<_ACEOF
12059/* end confdefs.h. */
12060#include <$ac_header>
12061_ACEOF
12062if { (ac_try="$ac_cpp conftest.$ac_ext"
12063case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12066esac
12067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12068$as_echo "$ac_try_echo") >&5
12069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12070 ac_status=$?
12071 grep -v '^ *+' conftest.er1 >conftest.err
12072 rm -f conftest.er1
12073 cat conftest.err >&5
12074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } >/dev/null && {
12076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12077 test ! -s conftest.err
12078 }; then
12079 ac_header_preproc=yes
12080else
12081 $as_echo "$as_me: failed program was:" >&5
12082sed 's/^/| /' conftest.$ac_ext >&5
12083
12084 ac_header_preproc=no
12085fi
12086
12087rm -f conftest.err conftest.$ac_ext
12088{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12089$as_echo "$ac_header_preproc" >&6; }
12090
12091# So? What about this header?
12092case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12093 yes:no: )
12094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12095$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12097$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12098 ac_header_preproc=yes
12099 ;;
12100 no:yes:* )
12101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12102$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12104$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12106$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12108$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12110$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12112$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12113
12114 ;;
12115esac
12116{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12117$as_echo_n "checking for $ac_header... " >&6; }
12118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12119 $as_echo_n "(cached) " >&6
12120else
12121 eval "$as_ac_Header=\$ac_header_preproc"
12122fi
12123ac_res=`eval 'as_val=${'$as_ac_Header'}
12124 $as_echo "$as_val"'`
12125 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12126$as_echo "$ac_res" >&6; }
12127
12128fi
12129if test `eval 'as_val=${'$as_ac_Header'}
12130 $as_echo "$as_val"'` = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000012131 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000012132#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000012133_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000012134
mlcreechb87057f2008-03-06 07:19:20 +000012135fi
12136
12137done
12138
12139
12140#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000012141# Figure out whether or not we have these functions
12142#
drh710658c2012-01-16 13:00:05 +000012143
12144
12145
12146
12147
12148
12149
drh6a8ab6d2011-11-09 01:53:25 +000012150for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s utime malloc_usable_size
drh710658c2012-01-16 13:00:05 +000012151do
12152as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12153{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12154$as_echo_n "checking for $ac_func... " >&6; }
12155if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12156 $as_echo_n "(cached) " >&6
12157else
12158 cat >conftest.$ac_ext <<_ACEOF
12159/* confdefs.h. */
12160_ACEOF
12161cat confdefs.h >>conftest.$ac_ext
12162cat >>conftest.$ac_ext <<_ACEOF
12163/* end confdefs.h. */
12164/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12166#define $ac_func innocuous_$ac_func
12167
12168/* System header to define __stub macros and hopefully few prototypes,
12169 which can conflict with char $ac_func (); below.
12170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12171 <limits.h> exists even on freestanding compilers. */
12172
12173#ifdef __STDC__
12174# include <limits.h>
12175#else
12176# include <assert.h>
12177#endif
12178
12179#undef $ac_func
12180
12181/* Override any GCC internal prototype to avoid an error.
12182 Use char because int might match the return type of a GCC
12183 builtin and then its argument prototype would still apply. */
12184#ifdef __cplusplus
12185extern "C"
12186#endif
12187char $ac_func ();
12188/* The GNU C library defines this for functions which it implements
12189 to always fail with ENOSYS. Some functions are actually named
12190 something starting with __ and the normal name is an alias. */
12191#if defined __stub_$ac_func || defined __stub___$ac_func
12192choke me
12193#endif
12194
12195int
12196main ()
12197{
12198return $ac_func ();
12199 ;
12200 return 0;
12201}
12202_ACEOF
12203rm -f conftest.$ac_objext conftest$ac_exeext
12204if { (ac_try="$ac_link"
12205case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12208esac
12209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12210$as_echo "$ac_try_echo") >&5
12211 (eval "$ac_link") 2>conftest.er1
12212 ac_status=$?
12213 grep -v '^ *+' conftest.er1 >conftest.err
12214 rm -f conftest.er1
12215 cat conftest.err >&5
12216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } && {
12218 test -z "$ac_c_werror_flag" ||
12219 test ! -s conftest.err
12220 } && test -s conftest$ac_exeext && {
12221 test "$cross_compiling" = yes ||
12222 $as_test_x conftest$ac_exeext
12223 }; then
12224 eval "$as_ac_var=yes"
12225else
12226 $as_echo "$as_me: failed program was:" >&5
12227sed 's/^/| /' conftest.$ac_ext >&5
12228
12229 eval "$as_ac_var=no"
12230fi
12231
12232rm -rf conftest.dSYM
12233rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12234 conftest$ac_exeext conftest.$ac_ext
12235fi
12236ac_res=`eval 'as_val=${'$as_ac_var'}
12237 $as_echo "$as_val"'`
12238 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12239$as_echo "$ac_res" >&6; }
12240if test `eval 'as_val=${'$as_ac_var'}
12241 $as_echo "$as_val"'` = yes; then
mlcreech5b0a9eb2008-03-09 01:38:09 +000012242 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000012243#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000012244_ACEOF
12245
12246fi
12247done
12248
12249
mlcreechab1c47b2008-03-09 02:51:10 +000012250#########
mlcreechf3868112008-03-11 18:03:30 +000012251# By default, we use the amalgamation (this may be changed below...)
12252#
12253USE_AMALGAMATION=1
12254
12255#########
mlcreechab1c47b2008-03-09 02:51:10 +000012256# See whether we can run specific tclsh versions known to work well;
12257# if not, then we fall back to plain tclsh.
12258# TODO: try other versions before falling back?
12259#
drhd7ceb372010-07-27 16:42:22 +000012260for ac_prog in tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000012261do
12262 # Extract the first word of "$ac_prog", so it can be a program name with args.
12263set dummy $ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +000012264{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000012265$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +000012266if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012267 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000012268else
12269 if test -n "$TCLSH_CMD"; then
12270 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
12271else
12272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273for as_dir in $PATH
12274do
12275 IFS=$as_save_IFS
12276 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +000012277 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000012278 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 +000012279 ac_cv_prog_TCLSH_CMD="$ac_prog"
drh710658c2012-01-16 13:00:05 +000012280 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000012281 break 2
12282 fi
12283done
drh710658c2012-01-16 13:00:05 +000012284done
drh8b727472009-01-19 18:18:40 +000012285IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000012286
12287fi
12288fi
12289TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
12290if test -n "$TCLSH_CMD"; then
drh710658c2012-01-16 13:00:05 +000012291 { $as_echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
drh8b727472009-01-19 18:18:40 +000012292$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012293else
drh710658c2012-01-16 13:00:05 +000012294 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012295$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012296fi
12297
drh8b727472009-01-19 18:18:40 +000012298
mlcreechab1c47b2008-03-09 02:51:10 +000012299 test -n "$TCLSH_CMD" && break
12300done
mlcreechf3868112008-03-11 18:03:30 +000012301test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000012302
mlcreechf3868112008-03-11 18:03:30 +000012303if test "$TCLSH_CMD" = "none"; then
12304 # If we can't find a local tclsh, then building the amalgamation will fail.
12305 # We act as though --disable-amalgamation has been used.
12306 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
12307 USE_AMALGAMATION=0
12308 TCLSH_CMD="tclsh"
12309fi
mlcreechab1c47b2008-03-09 02:51:10 +000012310
12311
mlcreech5b0a9eb2008-03-09 01:38:09 +000012312
vapier6acb2cf2009-01-28 04:46:28 +000012313if test "x${TCLLIBDIR+set}" != "xset" ; then
12314 TCLLIBDIR='$(libdir)'
12315 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
12316 TCLLIBDIR=$i
12317 break
12318 done
12319 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
12320fi
12321
12322
mlcreech5b0a9eb2008-03-09 01:38:09 +000012323#########
drh75897232000-05-29 14:26:00 +000012324# Set up an appropriate program prefix
12325#
12326if test "$program_prefix" = "NONE"; then
12327 program_prefix=""
12328fi
12329
a.rottmann84e63352003-03-24 09:42:16 +000012330
drh4b2266a2004-11-27 15:52:16 +000012331VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
drh710658c2012-01-16 13:00:05 +000012332{ $as_echo "$as_me:$LINENO: Version set to $VERSION" >&5
vapier6acb2cf2009-01-28 04:46:28 +000012333$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000012334
12335RELEASE=`cat $srcdir/VERSION`
drh710658c2012-01-16 13:00:05 +000012336{ $as_echo "$as_me:$LINENO: Release set to $RELEASE" >&5
vapier6acb2cf2009-01-28 04:46:28 +000012337$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000012338
vapier6acb2cf2009-01-28 04:46:28 +000012339VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000012340 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000012341 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
drh710658c2012-01-16 13:00:05 +000012342{ $as_echo "$as_me:$LINENO: Version number set to $VERSION_NUMBER" >&5
vapier6acb2cf2009-01-28 04:46:28 +000012343$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000012344
drh26d0e2a2005-07-06 13:51:27 +000012345
drh75897232000-05-29 14:26:00 +000012346#########
12347# Check to see if the --with-hints=FILE option is used. If there is none,
12348# then check for a files named "$host.hints" and ../$hosts.hints where
12349# $host is the hostname of the build system. If still no hints are
12350# found, try looking in $system.hints and ../$system.hints where
12351# $system is the result of uname -s.
12352#
drh71eb93e2001-09-28 01:34:43 +000012353
drh8b727472009-01-19 18:18:40 +000012354# Check whether --with-hints was given.
drh710658c2012-01-16 13:00:05 +000012355if test "${with_hints+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012356 withval=$with_hints; hints=$withval
12357fi
12358
drh75897232000-05-29 14:26:00 +000012359if test "$hints" = ""; then
12360 host=`hostname | sed 's/\..*//'`
12361 if test -r $host.hints; then
12362 hints=$host.hints
12363 else
12364 if test -r ../$host.hints; then
12365 hints=../$host.hints
12366 fi
12367 fi
12368fi
12369if test "$hints" = ""; then
12370 sys=`uname -s`
12371 if test -r $sys.hints; then
12372 hints=$sys.hints
12373 else
12374 if test -r ../$sys.hints; then
12375 hints=../$sys.hints
12376 fi
12377 fi
12378fi
12379if test "$hints" != ""; then
drh710658c2012-01-16 13:00:05 +000012380 { $as_echo "$as_me:$LINENO: result: reading hints from $hints" >&5
drh8b727472009-01-19 18:18:40 +000012381$as_echo "reading hints from $hints" >&6; }
drh75897232000-05-29 14:26:00 +000012382 . $hints
12383fi
12384
12385#########
12386# Locate a compiler for the build machine. This compiler should
12387# generate command-line programs that run on the build machine.
12388#
vapier7f19c022007-02-17 14:46:31 +000012389if test x"$cross_compiling" = xno; then
12390 BUILD_CC=$CC
12391 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000012392else
vapier7f19c022007-02-17 14:46:31 +000012393 if test "${BUILD_CC+set}" != set; then
12394 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000012395do
12396 # Extract the first word of "$ac_prog", so it can be a program name with args.
12397set dummy $ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +000012398{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000012399$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +000012400if test "${ac_cv_prog_BUILD_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012401 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000012402else
vapier7f19c022007-02-17 14:46:31 +000012403 if test -n "$BUILD_CC"; then
12404 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000012405else
a.rottmann84e63352003-03-24 09:42:16 +000012406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12407for as_dir in $PATH
12408do
12409 IFS=$as_save_IFS
12410 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +000012411 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000012412 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 +000012413 ac_cv_prog_BUILD_CC="$ac_prog"
drh710658c2012-01-16 13:00:05 +000012414 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000012415 break 2
12416 fi
12417done
drh710658c2012-01-16 13:00:05 +000012418done
drh8b727472009-01-19 18:18:40 +000012419IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000012420
drh71eb93e2001-09-28 01:34:43 +000012421fi
12422fi
vapier7f19c022007-02-17 14:46:31 +000012423BUILD_CC=$ac_cv_prog_BUILD_CC
12424if test -n "$BUILD_CC"; then
drh710658c2012-01-16 13:00:05 +000012425 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
drh8b727472009-01-19 18:18:40 +000012426$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000012427else
drh710658c2012-01-16 13:00:05 +000012428 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012429$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000012430fi
drh75897232000-05-29 14:26:00 +000012431
drh8b727472009-01-19 18:18:40 +000012432
vapier7f19c022007-02-17 14:46:31 +000012433 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000012434done
drh75897232000-05-29 14:26:00 +000012435
vapier7f19c022007-02-17 14:46:31 +000012436 fi
12437 if test "${BUILD_CFLAGS+set}" != set; then
12438 BUILD_CFLAGS="-g"
12439 fi
drh71eb93e2001-09-28 01:34:43 +000012440fi
12441
a.rottmann84e63352003-03-24 09:42:16 +000012442
drh297ecf12001-04-05 15:57:13 +000012443##########
dougcurrie0f290bf2004-06-21 18:57:29 +000012444# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000012445#
drh8b727472009-01-19 18:18:40 +000012446# Check whether --enable-threadsafe was given.
drh710658c2012-01-16 13:00:05 +000012447if test "${enable_threadsafe+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012448 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000012449else
drh5a3032b2007-09-03 16:12:09 +000012450 enable_threadsafe=yes
drh8b727472009-01-19 18:18:40 +000012451fi
12452
drh710658c2012-01-16 13:00:05 +000012453{ $as_echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
drh8b727472009-01-19 18:18:40 +000012454$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000012455if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000012456 SQLITE_THREADSAFE=0
drh710658c2012-01-16 13:00:05 +000012457 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012458$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012459else
drh5a3032b2007-09-03 16:12:09 +000012460 SQLITE_THREADSAFE=1
drh710658c2012-01-16 13:00:05 +000012461 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000012462$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012463fi
12464
a.rottmann964dbb12004-02-26 19:47:42 +000012465
drh5a3032b2007-09-03 16:12:09 +000012466if test "$SQLITE_THREADSAFE" = "1"; then
drh710658c2012-01-16 13:00:05 +000012467 { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
drh8b727472009-01-19 18:18:40 +000012468$as_echo_n "checking for library containing pthread_create... " >&6; }
drh710658c2012-01-16 13:00:05 +000012469if test "${ac_cv_search_pthread_create+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012470 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000012471else
mlcreechc658b0f2008-03-09 02:20:11 +000012472 ac_func_search_save_LIBS=$LIBS
drh710658c2012-01-16 13:00:05 +000012473cat >conftest.$ac_ext <<_ACEOF
12474/* confdefs.h. */
12475_ACEOF
12476cat confdefs.h >>conftest.$ac_ext
12477cat >>conftest.$ac_ext <<_ACEOF
dougcurrie65623c72004-09-20 14:57:23 +000012478/* end confdefs.h. */
12479
drh8b727472009-01-19 18:18:40 +000012480/* Override any GCC internal prototype to avoid an error.
12481 Use char because int might match the return type of a GCC
12482 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000012483#ifdef __cplusplus
12484extern "C"
12485#endif
dougcurrie65623c72004-09-20 14:57:23 +000012486char pthread_create ();
12487int
12488main ()
12489{
drh8b727472009-01-19 18:18:40 +000012490return pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000012491 ;
12492 return 0;
12493}
12494_ACEOF
drh8b727472009-01-19 18:18:40 +000012495for ac_lib in '' pthread; do
12496 if test -z "$ac_lib"; then
12497 ac_res="none required"
12498 else
12499 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000012500 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000012501 fi
drh710658c2012-01-16 13:00:05 +000012502 rm -f conftest.$ac_objext conftest$ac_exeext
12503if { (ac_try="$ac_link"
12504case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12507esac
12508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12509$as_echo "$ac_try_echo") >&5
12510 (eval "$ac_link") 2>conftest.er1
12511 ac_status=$?
12512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
12515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } && {
12517 test -z "$ac_c_werror_flag" ||
12518 test ! -s conftest.err
12519 } && test -s conftest$ac_exeext && {
12520 test "$cross_compiling" = yes ||
12521 $as_test_x conftest$ac_exeext
12522 }; then
drh8b727472009-01-19 18:18:40 +000012523 ac_cv_search_pthread_create=$ac_res
drh710658c2012-01-16 13:00:05 +000012524else
12525 $as_echo "$as_me: failed program was:" >&5
12526sed 's/^/| /' conftest.$ac_ext >&5
12527
12528
mlcreechc658b0f2008-03-09 02:20:11 +000012529fi
drh710658c2012-01-16 13:00:05 +000012530
12531rm -rf conftest.dSYM
12532rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12533 conftest$ac_exeext
12534 if test "${ac_cv_search_pthread_create+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012535 break
drh866108f2008-05-13 00:57:21 +000012536fi
drh8b727472009-01-19 18:18:40 +000012537done
drh710658c2012-01-16 13:00:05 +000012538if test "${ac_cv_search_pthread_create+set}" = set; then
12539 :
drh8b727472009-01-19 18:18:40 +000012540else
12541 ac_cv_search_pthread_create=no
12542fi
12543rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000012544LIBS=$ac_func_search_save_LIBS
12545fi
drh710658c2012-01-16 13:00:05 +000012546{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
drh8b727472009-01-19 18:18:40 +000012547$as_echo "$ac_cv_search_pthread_create" >&6; }
12548ac_res=$ac_cv_search_pthread_create
drh710658c2012-01-16 13:00:05 +000012549if test "$ac_res" != no; then
drh8b727472009-01-19 18:18:40 +000012550 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000012551
dougcurrie65623c72004-09-20 14:57:23 +000012552fi
12553
mlcreechc658b0f2008-03-09 02:20:11 +000012554fi
dougcurrie65623c72004-09-20 14:57:23 +000012555
xdong28f79f72003-09-23 00:35:21 +000012556##########
drh91636d52005-11-24 23:14:00 +000012557# Do we want to allow a connection created in one thread to be used
12558# in another thread. This does not work on many Linux systems (ex: RedHat 9)
12559# due to bugs in the threading implementations. This is thus off by default.
12560#
drh8b727472009-01-19 18:18:40 +000012561# Check whether --enable-cross-thread-connections was given.
drh710658c2012-01-16 13:00:05 +000012562if test "${enable_cross_thread_connections+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012563 enableval=$enable_cross_thread_connections;
drh91636d52005-11-24 23:14:00 +000012564else
12565 enable_xthreadconnect=no
drh8b727472009-01-19 18:18:40 +000012566fi
12567
drh710658c2012-01-16 13:00:05 +000012568{ $as_echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
drh8b727472009-01-19 18:18:40 +000012569$as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
drh91636d52005-11-24 23:14:00 +000012570if test "$enable_xthreadconnect" = "no"; then
12571 XTHREADCONNECT=''
drh710658c2012-01-16 13:00:05 +000012572 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012573$as_echo "no" >&6; }
drh91636d52005-11-24 23:14:00 +000012574else
12575 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
drh710658c2012-01-16 13:00:05 +000012576 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000012577$as_echo "yes" >&6; }
drh91636d52005-11-24 23:14:00 +000012578fi
12579
12580
12581##########
xdong28f79f72003-09-23 00:35:21 +000012582# Do we want to support release
12583#
drh8b727472009-01-19 18:18:40 +000012584# Check whether --enable-releasemode was given.
drh710658c2012-01-16 13:00:05 +000012585if test "${enable_releasemode+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012586 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000012587else
12588 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000012589fi
12590
drh710658c2012-01-16 13:00:05 +000012591{ $as_echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
drh8b727472009-01-19 18:18:40 +000012592$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000012593if test "$enable_releasemode" = "no"; then
12594 ALLOWRELEASE=""
drh710658c2012-01-16 13:00:05 +000012595 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012596$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000012597else
drh0b47d342007-11-27 14:50:06 +000012598 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drh710658c2012-01-16 13:00:05 +000012599 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000012600$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000012601fi
paulb0208cc2003-04-13 18:26:49 +000012602
a.rottmann964dbb12004-02-26 19:47:42 +000012603
paulb0208cc2003-04-13 18:26:49 +000012604##########
12605# Do we want temporary databases in memory
12606#
drh8b727472009-01-19 18:18:40 +000012607# Check whether --enable-tempstore was given.
drh710658c2012-01-16 13:00:05 +000012608if test "${enable_tempstore+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012609 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000012610else
drh54414bb2005-10-10 00:05:50 +000012611 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000012612fi
12613
drh710658c2012-01-16 13:00:05 +000012614{ $as_echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
drh8b727472009-01-19 18:18:40 +000012615$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000012616case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000012617 never )
paul2dc96f92003-04-20 11:46:34 +000012618 TEMP_STORE=0
drh710658c2012-01-16 13:00:05 +000012619 { $as_echo "$as_me:$LINENO: result: never" >&5
drh8b727472009-01-19 18:18:40 +000012620$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012621 ;;
12622 no )
paul2dc96f92003-04-20 11:46:34 +000012623 TEMP_STORE=1
drh710658c2012-01-16 13:00:05 +000012624 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012625$as_echo "no" >&6; }
12626 ;;
12627 yes )
12628 TEMP_STORE=2
drh710658c2012-01-16 13:00:05 +000012629 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000012630$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012631 ;;
12632 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000012633 TEMP_STORE=3
drh710658c2012-01-16 13:00:05 +000012634 { $as_echo "$as_me:$LINENO: result: always" >&5
drh8b727472009-01-19 18:18:40 +000012635$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000012636 ;;
paulb0208cc2003-04-13 18:26:49 +000012637 * )
drh54414bb2005-10-10 00:05:50 +000012638 TEMP_STORE=1
drh710658c2012-01-16 13:00:05 +000012639 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012640$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012641 ;;
12642esac
12643
12644
12645
drh75897232000-05-29 14:26:00 +000012646###########
12647# Lots of things are different if we are compiling for Windows using
12648# the CYGWIN environment. So check for that special case and handle
12649# things accordingly.
12650#
drh710658c2012-01-16 13:00:05 +000012651{ $as_echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
drh8b727472009-01-19 18:18:40 +000012652$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000012653if test "$config_BUILD_EXEEXT" = ".exe"; then
12654 CYGWIN=yes
drh710658c2012-01-16 13:00:05 +000012655 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000012656$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000012657else
drh710658c2012-01-16 13:00:05 +000012658 { $as_echo "$as_me:$LINENO: result: unknown" >&5
drh8b727472009-01-19 18:18:40 +000012659$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000012660fi
12661if test "$CYGWIN" != "yes"; then
drh710658c2012-01-16 13:00:05 +000012662 { $as_echo "$as_me:$LINENO: checking host system type" >&5
12663$as_echo_n "checking host system type... " >&6; }
12664if test "${ac_cv_host+set}" = set; then
12665 $as_echo_n "(cached) " >&6
12666else
12667 if test "x$host_alias" = x; then
12668 ac_cv_host=$ac_cv_build
12669else
12670 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12671 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12672$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12673 { (exit 1); exit 1; }; }
12674fi
12675
12676fi
12677{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12678$as_echo "$ac_cv_host" >&6; }
12679case $ac_cv_host in
12680*-*-*) ;;
12681*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12682$as_echo "$as_me: error: invalid value of canonical host" >&2;}
12683 { (exit 1); exit 1; }; };;
12684esac
12685host=$ac_cv_host
12686ac_save_IFS=$IFS; IFS='-'
12687set x $ac_cv_host
12688shift
12689host_cpu=$1
12690host_vendor=$2
12691shift; shift
12692# Remember, the first character of IFS is used to create $*,
12693# except with old shells:
12694host_os=$*
12695IFS=$ac_save_IFS
12696case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12697
a.rottmann84e63352003-03-24 09:42:16 +000012698
12699case $host_os in
drh71eb93e2001-09-28 01:34:43 +000012700 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000012701 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000012702esac
drh75897232000-05-29 14:26:00 +000012703
drh75897232000-05-29 14:26:00 +000012704fi
12705if test "$CYGWIN" = "yes"; then
12706 BUILD_EXEEXT=.exe
12707else
dougcurrie6194a5f2003-12-19 20:09:51 +000012708 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000012709fi
vapier7f19c022007-02-17 14:46:31 +000012710if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000012711 TARGET_EXEEXT=$BUILD_EXEEXT
12712else
12713 TARGET_EXEEXT=$config_TARGET_EXEEXT
12714fi
12715if test "$TARGET_EXEEXT" = ".exe"; then
drh60a1e4b2006-06-03 18:02:15 +000012716 if test $OS2_SHELL ; then
danielk197729bafea2008-06-26 10:41:19 +000012717 SQLITE_OS_UNIX=0
12718 SQLITE_OS_WIN=0
12719 SQLITE_OS_OS2=1
12720 CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1"
drh60a1e4b2006-06-03 18:02:15 +000012721 else
danielk197729bafea2008-06-26 10:41:19 +000012722 SQLITE_OS_UNIX=0
12723 SQLITE_OS_WIN=1
12724 SQLITE_OS_OS2=0
danielk197729bafea2008-06-26 10:41:19 +000012725 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh60a1e4b2006-06-03 18:02:15 +000012726 fi
drh75897232000-05-29 14:26:00 +000012727else
danielk197729bafea2008-06-26 10:41:19 +000012728 SQLITE_OS_UNIX=1
12729 SQLITE_OS_WIN=0
12730 SQLITE_OS_OS2=0
danielk197729bafea2008-06-26 10:41:19 +000012731 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000012732fi
drh75897232000-05-29 14:26:00 +000012733
a.rottmann84e63352003-03-24 09:42:16 +000012734
12735
12736
12737
12738
drh75897232000-05-29 14:26:00 +000012739
drh75897232000-05-29 14:26:00 +000012740##########
drh7b5717e2004-11-25 13:50:01 +000012741# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000012742#
drh7b5717e2004-11-25 13:50:01 +000012743# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12744# macros in the in the tcl.m4 file of the standard TCL distribution.
12745# Those macros could not be used directly since we have to make some
12746# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000012747#
drh8b727472009-01-19 18:18:40 +000012748# Check whether --enable-tcl was given.
drh710658c2012-01-16 13:00:05 +000012749if test "${enable_tcl+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012750 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000012751else
drh7b5717e2004-11-25 13:50:01 +000012752 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000012753fi
12754
drh7b5717e2004-11-25 13:50:01 +000012755if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000012756
drh8b727472009-01-19 18:18:40 +000012757# Check whether --with-tcl was given.
drh710658c2012-01-16 13:00:05 +000012758if test "${with_tcl+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012759 withval=$with_tcl; with_tclconfig=${withval}
12760fi
12761
drh710658c2012-01-16 13:00:05 +000012762 { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5
drh8b727472009-01-19 18:18:40 +000012763$as_echo_n "checking for Tcl configuration... " >&6; }
drh710658c2012-01-16 13:00:05 +000012764 if test "${ac_cv_c_tclconfig+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012765 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000012766else
a.rottmann84e63352003-03-24 09:42:16 +000012767
drh7b5717e2004-11-25 13:50:01 +000012768 # First check to see if --with-tcl was specified.
12769 if test x"${with_tclconfig}" != x ; then
12770 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12771 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12772 else
drh710658c2012-01-16 13:00:05 +000012773 { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
12774$as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
12775 { (exit 1); exit 1; }; }
drh7b5717e2004-11-25 13:50:01 +000012776 fi
12777 fi
vapier6acb2cf2009-01-28 04:46:28 +000012778
12779 # Start autosearch by asking tclsh
drhe74f4652012-08-15 16:06:54 +000012780 if test x"${ac_cv_c_tclconfig}" = x ; then
12781 if test x"$cross_compiling" = xno; then
12782 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
12783 do
12784 if test -f "$i/tclConfig.sh" ; then
12785 ac_cv_c_tclconfig="$i"
12786 break
12787 fi
12788 done
12789 fi
vapier6acb2cf2009-01-28 04:46:28 +000012790 fi
12791
drh7b5717e2004-11-25 13:50:01 +000012792 # then check for a private Tcl installation
12793 if test x"${ac_cv_c_tclconfig}" = x ; then
12794 for i in \
12795 ../tcl \
12796 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12797 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12798 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12799 ../../tcl \
12800 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12801 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12802 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12803 ../../../tcl \
12804 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12805 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12806 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
12807 do
12808 if test -f "$i/unix/tclConfig.sh" ; then
12809 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12810 break
12811 fi
12812 done
12813 fi
12814
12815 # check in a few common install locations
12816 if test x"${ac_cv_c_tclconfig}" = x ; then
12817 for i in \
12818 `ls -d ${libdir} 2>/dev/null` \
12819 `ls -d /usr/local/lib 2>/dev/null` \
12820 `ls -d /usr/contrib/lib 2>/dev/null` \
12821 `ls -d /usr/lib 2>/dev/null`
12822 do
12823 if test -f "$i/tclConfig.sh" ; then
12824 ac_cv_c_tclconfig=`(cd $i; pwd)`
12825 break
12826 fi
12827 done
12828 fi
12829
12830 # check in a few other private locations
12831 if test x"${ac_cv_c_tclconfig}" = x ; then
12832 for i in \
12833 ${srcdir}/../tcl \
12834 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12835 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12836 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
12837 do
12838 if test -f "$i/unix/tclConfig.sh" ; then
12839 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12840 break
12841 fi
12842 done
12843 fi
12844
drh75897232000-05-29 14:26:00 +000012845fi
12846
drh7b5717e2004-11-25 13:50:01 +000012847
12848 if test x"${ac_cv_c_tclconfig}" = x ; then
12849 use_tcl=no
drh710658c2012-01-16 13:00:05 +000012850 { $as_echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
drh8b727472009-01-19 18:18:40 +000012851$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
drh710658c2012-01-16 13:00:05 +000012852 { $as_echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
drh8b727472009-01-19 18:18:40 +000012853$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
drh710658c2012-01-16 13:00:05 +000012854 { $as_echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
drh8b727472009-01-19 18:18:40 +000012855$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000012856 else
12857 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drh710658c2012-01-16 13:00:05 +000012858 { $as_echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000012859$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000012860
drh710658c2012-01-16 13:00:05 +000012861 { $as_echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000012862$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000012863 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drh710658c2012-01-16 13:00:05 +000012864 { $as_echo "$as_me:$LINENO: result: loading" >&5
drh8b727472009-01-19 18:18:40 +000012865$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000012866 . $TCL_BIN_DIR/tclConfig.sh
12867 else
drh710658c2012-01-16 13:00:05 +000012868 { $as_echo "$as_me:$LINENO: result: file not found" >&5
drh8b727472009-01-19 18:18:40 +000012869$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000012870 fi
drh7b5717e2004-11-25 13:50:01 +000012871
12872 #
12873 # If the TCL_BIN_DIR is the build directory (not the install directory),
12874 # then set the common variable name to the value of the build variables.
12875 # For example, the variable TCL_LIB_SPEC will be set to the value
12876 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12877 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12878 # installed and uninstalled version of Tcl.
12879 #
12880
mlcreechab1c47b2008-03-09 02:51:10 +000012881 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000012882 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12883 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12884 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12885 fi
12886
12887 #
12888 # eval is required to do the TCL_DBGX substitution
12889 #
12890
12891 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12892 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12893 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12894
12895 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12896 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12897 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
drh7b5717e2004-11-25 13:50:01 +000012911 fi
drh75897232000-05-29 14:26:00 +000012912fi
drh7b5717e2004-11-25 13:50:01 +000012913if test "${use_tcl}" = "no" ; then
12914 HAVE_TCL=""
12915else
12916 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000012917fi
drh75897232000-05-29 14:26:00 +000012918
a.rottmann84e63352003-03-24 09:42:16 +000012919
drh75897232000-05-29 14:26:00 +000012920##########
12921# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000012922# that use "readline()" library.
12923#
vapier7f19c022007-02-17 14:46:31 +000012924TARGET_READLINE_LIBS=""
12925TARGET_READLINE_INC=""
12926TARGET_HAVE_READLINE=0
drh8b727472009-01-19 18:18:40 +000012927# Check whether --enable-readline was given.
drh710658c2012-01-16 13:00:05 +000012928if test "${enable_readline+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012929 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000012930else
vapier7f19c022007-02-17 14:46:31 +000012931 with_readline=auto
drh8b727472009-01-19 18:18:40 +000012932fi
12933
vapier7f19c022007-02-17 14:46:31 +000012934
12935if test x"$with_readline" != xno; then
12936 found="yes"
12937
12938
drh8b727472009-01-19 18:18:40 +000012939# Check whether --with-readline-lib was given.
drh710658c2012-01-16 13:00:05 +000012940if test "${with_readline_lib+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012941 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000012942else
12943 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000012944fi
12945
vapier7f19c022007-02-17 14:46:31 +000012946 if test "x$with_readline_lib" = xauto; then
12947 save_LIBS="$LIBS"
12948 LIBS=""
drh710658c2012-01-16 13:00:05 +000012949 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
drh8b727472009-01-19 18:18:40 +000012950$as_echo_n "checking for library containing tgetent... " >&6; }
drh710658c2012-01-16 13:00:05 +000012951if test "${ac_cv_search_tgetent+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012952 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000012953else
drh71eb93e2001-09-28 01:34:43 +000012954 ac_func_search_save_LIBS=$LIBS
drh710658c2012-01-16 13:00:05 +000012955cat >conftest.$ac_ext <<_ACEOF
12956/* confdefs.h. */
12957_ACEOF
12958cat confdefs.h >>conftest.$ac_ext
12959cat >>conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000012960/* end confdefs.h. */
12961
drh8b727472009-01-19 18:18:40 +000012962/* Override any GCC internal prototype to avoid an error.
12963 Use char because int might match the return type of a GCC
12964 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000012965#ifdef __cplusplus
12966extern "C"
12967#endif
paul38372372003-04-22 08:04:49 +000012968char tgetent ();
12969int
12970main ()
12971{
drh8b727472009-01-19 18:18:40 +000012972return tgetent ();
paul38372372003-04-22 08:04:49 +000012973 ;
12974 return 0;
12975}
12976_ACEOF
drh8b727472009-01-19 18:18:40 +000012977for ac_lib in '' readline ncurses curses termcap; do
12978 if test -z "$ac_lib"; then
12979 ac_res="none required"
12980 else
12981 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000012982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000012983 fi
drh710658c2012-01-16 13:00:05 +000012984 rm -f conftest.$ac_objext conftest$ac_exeext
12985if { (ac_try="$ac_link"
12986case "(($ac_try" in
12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988 *) ac_try_echo=$ac_try;;
12989esac
12990eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12991$as_echo "$ac_try_echo") >&5
12992 (eval "$ac_link") 2>conftest.er1
12993 ac_status=$?
12994 grep -v '^ *+' conftest.er1 >conftest.err
12995 rm -f conftest.er1
12996 cat conftest.err >&5
12997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); } && {
12999 test -z "$ac_c_werror_flag" ||
13000 test ! -s conftest.err
13001 } && test -s conftest$ac_exeext && {
13002 test "$cross_compiling" = yes ||
13003 $as_test_x conftest$ac_exeext
13004 }; then
drh8b727472009-01-19 18:18:40 +000013005 ac_cv_search_tgetent=$ac_res
drh710658c2012-01-16 13:00:05 +000013006else
13007 $as_echo "$as_me: failed program was:" >&5
13008sed 's/^/| /' conftest.$ac_ext >&5
13009
13010
mlcreech94984912008-03-04 19:03:08 +000013011fi
drh710658c2012-01-16 13:00:05 +000013012
13013rm -rf conftest.dSYM
13014rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13015 conftest$ac_exeext
13016 if test "${ac_cv_search_tgetent+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013017 break
drh866108f2008-05-13 00:57:21 +000013018fi
drh8b727472009-01-19 18:18:40 +000013019done
drh710658c2012-01-16 13:00:05 +000013020if test "${ac_cv_search_tgetent+set}" = set; then
13021 :
drh8b727472009-01-19 18:18:40 +000013022else
13023 ac_cv_search_tgetent=no
13024fi
13025rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000013026LIBS=$ac_func_search_save_LIBS
13027fi
drh710658c2012-01-16 13:00:05 +000013028{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
drh8b727472009-01-19 18:18:40 +000013029$as_echo "$ac_cv_search_tgetent" >&6; }
13030ac_res=$ac_cv_search_tgetent
drh710658c2012-01-16 13:00:05 +000013031if test "$ac_res" != no; then
drh8b727472009-01-19 18:18:40 +000013032 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000013033 term_LIBS="$LIBS"
13034else
13035 term_LIBS=""
paul38372372003-04-22 08:04:49 +000013036fi
13037
drh710658c2012-01-16 13:00:05 +000013038 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
drh8b727472009-01-19 18:18:40 +000013039$as_echo_n "checking for readline in -lreadline... " >&6; }
drh710658c2012-01-16 13:00:05 +000013040if test "${ac_cv_lib_readline_readline+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013041 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000013042else
13043 ac_check_lib_save_LIBS=$LIBS
13044LIBS="-lreadline $LIBS"
drh710658c2012-01-16 13:00:05 +000013045cat >conftest.$ac_ext <<_ACEOF
13046/* confdefs.h. */
13047_ACEOF
13048cat confdefs.h >>conftest.$ac_ext
13049cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000013050/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000013051
drh8b727472009-01-19 18:18:40 +000013052/* Override any GCC internal prototype to avoid an error.
13053 Use char because int might match the return type of a GCC
13054 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000013055#ifdef __cplusplus
13056extern "C"
13057#endif
drh71eb93e2001-09-28 01:34:43 +000013058char readline ();
13059int
13060main ()
13061{
drh8b727472009-01-19 18:18:40 +000013062return readline ();
drh71eb93e2001-09-28 01:34:43 +000013063 ;
13064 return 0;
13065}
13066_ACEOF
drh710658c2012-01-16 13:00:05 +000013067rm -f conftest.$ac_objext conftest$ac_exeext
13068if { (ac_try="$ac_link"
13069case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13072esac
13073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13074$as_echo "$ac_try_echo") >&5
13075 (eval "$ac_link") 2>conftest.er1
13076 ac_status=$?
13077 grep -v '^ *+' conftest.er1 >conftest.err
13078 rm -f conftest.er1
13079 cat conftest.err >&5
13080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } && {
13082 test -z "$ac_c_werror_flag" ||
13083 test ! -s conftest.err
13084 } && test -s conftest$ac_exeext && {
13085 test "$cross_compiling" = yes ||
13086 $as_test_x conftest$ac_exeext
13087 }; then
paul38372372003-04-22 08:04:49 +000013088 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000013089else
drh710658c2012-01-16 13:00:05 +000013090 $as_echo "$as_me: failed program was:" >&5
13091sed 's/^/| /' conftest.$ac_ext >&5
13092
13093 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000013094fi
drh710658c2012-01-16 13:00:05 +000013095
13096rm -rf conftest.dSYM
13097rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13098 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000013099LIBS=$ac_check_lib_save_LIBS
13100fi
drh710658c2012-01-16 13:00:05 +000013101{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
drh8b727472009-01-19 18:18:40 +000013102$as_echo "$ac_cv_lib_readline_readline" >&6; }
drh710658c2012-01-16 13:00:05 +000013103if test $ac_cv_lib_readline_readline = yes; then
vapier7f19c022007-02-17 14:46:31 +000013104 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000013105else
vapier7f19c022007-02-17 14:46:31 +000013106 found="no"
13107fi
drhf1878b42006-01-23 18:06:52 +000013108
vapier7f19c022007-02-17 14:46:31 +000013109 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
13110 LIBS="$save_LIBS"
13111 else
13112 TARGET_READLINE_LIBS="$with_readline_lib"
13113 fi
13114
13115
drh8b727472009-01-19 18:18:40 +000013116# Check whether --with-readline-inc was given.
drh710658c2012-01-16 13:00:05 +000013117if test "${with_readline_inc+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013118 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000013119else
vapier7f19c022007-02-17 14:46:31 +000013120 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000013121fi
13122
vapier7f19c022007-02-17 14:46:31 +000013123 if test "x$with_readline_inc" = xauto; then
drh710658c2012-01-16 13:00:05 +000013124 if test "${ac_cv_header_readline_h+set}" = set; then
13125 { $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13126$as_echo_n "checking for readline.h... " >&6; }
13127if test "${ac_cv_header_readline_h+set}" = set; then
13128 $as_echo_n "(cached) " >&6
13129fi
13130{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13131$as_echo "$ac_cv_header_readline_h" >&6; }
13132else
13133 # Is the header compilable?
13134{ $as_echo "$as_me:$LINENO: checking readline.h usability" >&5
13135$as_echo_n "checking readline.h usability... " >&6; }
13136cat >conftest.$ac_ext <<_ACEOF
13137/* confdefs.h. */
13138_ACEOF
13139cat confdefs.h >>conftest.$ac_ext
13140cat >>conftest.$ac_ext <<_ACEOF
13141/* end confdefs.h. */
13142$ac_includes_default
13143#include <readline.h>
13144_ACEOF
13145rm -f conftest.$ac_objext
13146if { (ac_try="$ac_compile"
13147case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13150esac
13151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13152$as_echo "$ac_try_echo") >&5
13153 (eval "$ac_compile") 2>conftest.er1
13154 ac_status=$?
13155 grep -v '^ *+' conftest.er1 >conftest.err
13156 rm -f conftest.er1
13157 cat conftest.err >&5
13158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); } && {
13160 test -z "$ac_c_werror_flag" ||
13161 test ! -s conftest.err
13162 } && test -s conftest.$ac_objext; then
13163 ac_header_compiler=yes
13164else
13165 $as_echo "$as_me: failed program was:" >&5
13166sed 's/^/| /' conftest.$ac_ext >&5
13167
13168 ac_header_compiler=no
13169fi
13170
13171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13172{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13173$as_echo "$ac_header_compiler" >&6; }
13174
13175# Is the header present?
13176{ $as_echo "$as_me:$LINENO: checking readline.h presence" >&5
13177$as_echo_n "checking readline.h presence... " >&6; }
13178cat >conftest.$ac_ext <<_ACEOF
13179/* confdefs.h. */
13180_ACEOF
13181cat confdefs.h >>conftest.$ac_ext
13182cat >>conftest.$ac_ext <<_ACEOF
13183/* end confdefs.h. */
13184#include <readline.h>
13185_ACEOF
13186if { (ac_try="$ac_cpp conftest.$ac_ext"
13187case "(($ac_try" in
13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13190esac
13191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13192$as_echo "$ac_try_echo") >&5
13193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13194 ac_status=$?
13195 grep -v '^ *+' conftest.er1 >conftest.err
13196 rm -f conftest.er1
13197 cat conftest.err >&5
13198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); } >/dev/null && {
13200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13201 test ! -s conftest.err
13202 }; then
13203 ac_header_preproc=yes
13204else
13205 $as_echo "$as_me: failed program was:" >&5
13206sed 's/^/| /' conftest.$ac_ext >&5
13207
13208 ac_header_preproc=no
13209fi
13210
13211rm -f conftest.err conftest.$ac_ext
13212{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13213$as_echo "$ac_header_preproc" >&6; }
13214
13215# So? What about this header?
13216case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13217 yes:no: )
13218 { $as_echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13219$as_echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13220 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
13221$as_echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
13222 ac_header_preproc=yes
13223 ;;
13224 no:yes:* )
13225 { $as_echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
13226$as_echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
13227 { $as_echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
13228$as_echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
13229 { $as_echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
13230$as_echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
13231 { $as_echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
13232$as_echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13233 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
13234$as_echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
13235 { $as_echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
13236$as_echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
13237
13238 ;;
13239esac
13240{ $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13241$as_echo_n "checking for readline.h... " >&6; }
13242if test "${ac_cv_header_readline_h+set}" = set; then
13243 $as_echo_n "(cached) " >&6
13244else
13245 ac_cv_header_readline_h=$ac_header_preproc
13246fi
13247{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13248$as_echo "$ac_cv_header_readline_h" >&6; }
13249
13250fi
13251if test $ac_cv_header_readline_h = yes; then
vapier7f19c022007-02-17 14:46:31 +000013252 found="yes"
13253else
drh75897232000-05-29 14:26:00 +000013254
vapier7f19c022007-02-17 14:46:31 +000013255 found="no"
13256 if test "$cross_compiling" != yes; then
13257 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
13258 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000013259 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
drh710658c2012-01-16 13:00:05 +000013260{ $as_echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
drh8b727472009-01-19 18:18:40 +000013261$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
drh710658c2012-01-16 13:00:05 +000013262if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
drh8b727472009-01-19 18:18:40 +000013263 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000013264else
13265 test "$cross_compiling" = yes &&
drh710658c2012-01-16 13:00:05 +000013266 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13267$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
13268 { (exit 1); exit 1; }; }
vapier7f19c022007-02-17 14:46:31 +000013269if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000013270 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000013271else
drh71eb93e2001-09-28 01:34:43 +000013272 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000013273fi
13274fi
drh710658c2012-01-16 13:00:05 +000013275ac_res=`eval 'as_val=${'$as_ac_File'}
13276 $as_echo "$as_val"'`
13277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
drh8b727472009-01-19 18:18:40 +000013278$as_echo "$ac_res" >&6; }
drh710658c2012-01-16 13:00:05 +000013279if test `eval 'as_val=${'$as_ac_File'}
13280 $as_echo "$as_val"'` = yes; then
drh75897232000-05-29 14:26:00 +000013281 found=yes
drh75897232000-05-29 14:26:00 +000013282fi
13283
vapier7f19c022007-02-17 14:46:31 +000013284 if test "$found" = "yes"; then
13285 TARGET_READLINE_INC="-I$dir/$subdir"
13286 break
13287 fi
13288 done
13289 test "$found" = "yes" && break
13290 done
13291 fi
13292
13293fi
13294
13295
13296 else
13297 TARGET_READLINE_INC="$with_readline_inc"
13298 fi
13299
13300 if test x"$found" = xno; then
13301 TARGET_READLINE_LIBS=""
13302 TARGET_READLINE_INC=""
13303 TARGET_HAVE_READLINE=0
13304 else
13305 TARGET_HAVE_READLINE=1
13306 fi
13307fi
13308
13309
13310
13311
13312
13313##########
13314# Figure out what C libraries are required to compile programs
13315# that use "fdatasync()" function.
13316#
drh710658c2012-01-16 13:00:05 +000013317{ $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000013318$as_echo_n "checking for library containing fdatasync... " >&6; }
drh710658c2012-01-16 13:00:05 +000013319if test "${ac_cv_search_fdatasync+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013320 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000013321else
vapier7f19c022007-02-17 14:46:31 +000013322 ac_func_search_save_LIBS=$LIBS
drh710658c2012-01-16 13:00:05 +000013323cat >conftest.$ac_ext <<_ACEOF
13324/* confdefs.h. */
13325_ACEOF
13326cat confdefs.h >>conftest.$ac_ext
13327cat >>conftest.$ac_ext <<_ACEOF
vapier7f19c022007-02-17 14:46:31 +000013328/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000013329
drh8b727472009-01-19 18:18:40 +000013330/* Override any GCC internal prototype to avoid an error.
13331 Use char because int might match the return type of a GCC
13332 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000013333#ifdef __cplusplus
13334extern "C"
13335#endif
13336char fdatasync ();
13337int
13338main ()
13339{
drh8b727472009-01-19 18:18:40 +000013340return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000013341 ;
13342 return 0;
13343}
13344_ACEOF
drh8b727472009-01-19 18:18:40 +000013345for ac_lib in '' rt; do
13346 if test -z "$ac_lib"; then
13347 ac_res="none required"
13348 else
13349 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000013350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000013351 fi
drh710658c2012-01-16 13:00:05 +000013352 rm -f conftest.$ac_objext conftest$ac_exeext
13353if { (ac_try="$ac_link"
13354case "(($ac_try" in
13355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13356 *) ac_try_echo=$ac_try;;
13357esac
13358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13359$as_echo "$ac_try_echo") >&5
13360 (eval "$ac_link") 2>conftest.er1
13361 ac_status=$?
13362 grep -v '^ *+' conftest.er1 >conftest.err
13363 rm -f conftest.er1
13364 cat conftest.err >&5
13365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); } && {
13367 test -z "$ac_c_werror_flag" ||
13368 test ! -s conftest.err
13369 } && test -s conftest$ac_exeext && {
13370 test "$cross_compiling" = yes ||
13371 $as_test_x conftest$ac_exeext
13372 }; then
drh8b727472009-01-19 18:18:40 +000013373 ac_cv_search_fdatasync=$ac_res
drh710658c2012-01-16 13:00:05 +000013374else
13375 $as_echo "$as_me: failed program was:" >&5
13376sed 's/^/| /' conftest.$ac_ext >&5
13377
13378
mlcreech94984912008-03-04 19:03:08 +000013379fi
drh710658c2012-01-16 13:00:05 +000013380
13381rm -rf conftest.dSYM
13382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13383 conftest$ac_exeext
13384 if test "${ac_cv_search_fdatasync+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013385 break
drh866108f2008-05-13 00:57:21 +000013386fi
drh8b727472009-01-19 18:18:40 +000013387done
drh710658c2012-01-16 13:00:05 +000013388if test "${ac_cv_search_fdatasync+set}" = set; then
13389 :
drh8b727472009-01-19 18:18:40 +000013390else
13391 ac_cv_search_fdatasync=no
13392fi
13393rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000013394LIBS=$ac_func_search_save_LIBS
13395fi
drh710658c2012-01-16 13:00:05 +000013396{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000013397$as_echo "$ac_cv_search_fdatasync" >&6; }
13398ac_res=$ac_cv_search_fdatasync
drh710658c2012-01-16 13:00:05 +000013399if test "$ac_res" != no; then
drh8b727472009-01-19 18:18:40 +000013400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000013401
vapier7f19c022007-02-17 14:46:31 +000013402fi
13403
a.rottmann84e63352003-03-24 09:42:16 +000013404
drh75897232000-05-29 14:26:00 +000013405#########
tpoindex9d9f76c2005-01-03 21:28:56 +000013406# check for debug enabled
drh8b727472009-01-19 18:18:40 +000013407# Check whether --enable-debug was given.
drh710658c2012-01-16 13:00:05 +000013408if test "${enable_debug+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013409 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000013410else
13411 use_debug=no
drh8b727472009-01-19 18:18:40 +000013412fi
13413
tpoindex9d9f76c2005-01-03 21:28:56 +000013414if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000013415 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000013416else
13417 TARGET_DEBUG="-DNDEBUG"
13418fi
13419
13420
13421#########
mlcreech94984912008-03-04 19:03:08 +000013422# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000013423# Check whether --enable-amalgamation was given.
drh710658c2012-01-16 13:00:05 +000013424if test "${enable_amalgamation+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013425 enableval=$enable_amalgamation; use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000013426else
13427 use_amalgamation=yes
drh8b727472009-01-19 18:18:40 +000013428fi
13429
mlcreechf3868112008-03-11 18:03:30 +000013430if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000013431 USE_AMALGAMATION=0
13432fi
13433
13434
13435#########
mlcreecha4edab02008-03-06 04:14:17 +000013436# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000013437# Check whether --enable-load-extension was given.
drh710658c2012-01-16 13:00:05 +000013438if test "${enable_load_extension+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013439 enableval=$enable_load_extension; use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000013440else
13441 use_loadextension=no
drh8b727472009-01-19 18:18:40 +000013442fi
13443
mlcreecha4edab02008-03-06 04:14:17 +000013444if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000013445 OPT_FEATURE_FLAGS=""
drh710658c2012-01-16 13:00:05 +000013446 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000013447$as_echo_n "checking for library containing dlopen... " >&6; }
drh710658c2012-01-16 13:00:05 +000013448if test "${ac_cv_search_dlopen+set}" = set; then
drhdbe4b882011-06-20 18:00:17 +000013449 $as_echo_n "(cached) " >&6
13450else
13451 ac_func_search_save_LIBS=$LIBS
drh710658c2012-01-16 13:00:05 +000013452cat >conftest.$ac_ext <<_ACEOF
13453/* confdefs.h. */
13454_ACEOF
13455cat confdefs.h >>conftest.$ac_ext
13456cat >>conftest.$ac_ext <<_ACEOF
drhdbe4b882011-06-20 18:00:17 +000013457/* end confdefs.h. */
13458
13459/* Override any GCC internal prototype to avoid an error.
13460 Use char because int might match the return type of a GCC
13461 builtin and then its argument prototype would still apply. */
13462#ifdef __cplusplus
13463extern "C"
13464#endif
13465char dlopen ();
13466int
13467main ()
13468{
13469return dlopen ();
13470 ;
13471 return 0;
13472}
13473_ACEOF
13474for ac_lib in '' dl; do
13475 if test -z "$ac_lib"; then
13476 ac_res="none required"
13477 else
13478 ac_res=-l$ac_lib
13479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13480 fi
drh710658c2012-01-16 13:00:05 +000013481 rm -f conftest.$ac_objext conftest$ac_exeext
13482if { (ac_try="$ac_link"
13483case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13486esac
13487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13488$as_echo "$ac_try_echo") >&5
13489 (eval "$ac_link") 2>conftest.er1
13490 ac_status=$?
13491 grep -v '^ *+' conftest.er1 >conftest.err
13492 rm -f conftest.er1
13493 cat conftest.err >&5
13494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } && {
13496 test -z "$ac_c_werror_flag" ||
13497 test ! -s conftest.err
13498 } && test -s conftest$ac_exeext && {
13499 test "$cross_compiling" = yes ||
13500 $as_test_x conftest$ac_exeext
13501 }; then
drhdbe4b882011-06-20 18:00:17 +000013502 ac_cv_search_dlopen=$ac_res
drh710658c2012-01-16 13:00:05 +000013503else
13504 $as_echo "$as_me: failed program was:" >&5
13505sed 's/^/| /' conftest.$ac_ext >&5
13506
13507
drhdbe4b882011-06-20 18:00:17 +000013508fi
drh710658c2012-01-16 13:00:05 +000013509
13510rm -rf conftest.dSYM
13511rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13512 conftest$ac_exeext
13513 if test "${ac_cv_search_dlopen+set}" = set; then
drhdbe4b882011-06-20 18:00:17 +000013514 break
13515fi
13516done
drh710658c2012-01-16 13:00:05 +000013517if test "${ac_cv_search_dlopen+set}" = set; then
13518 :
drhdbe4b882011-06-20 18:00:17 +000013519else
13520 ac_cv_search_dlopen=no
13521fi
13522rm conftest.$ac_ext
13523LIBS=$ac_func_search_save_LIBS
13524fi
drh710658c2012-01-16 13:00:05 +000013525{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000013526$as_echo "$ac_cv_search_dlopen" >&6; }
13527ac_res=$ac_cv_search_dlopen
drh710658c2012-01-16 13:00:05 +000013528if test "$ac_res" != no; then
drhdbe4b882011-06-20 18:00:17 +000013529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13530
13531fi
13532
mlcreecha4edab02008-03-06 04:14:17 +000013533else
shanefbedede2008-07-22 05:05:01 +000013534 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000013535fi
13536
mlcreechaac7b932008-04-01 02:45:22 +000013537#########
shaneb1cd7302008-10-22 18:27:31 +000013538# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013539for option in $CFLAGS $CPPFLAGS
13540do
13541 case $option in
danielk197733a14782008-08-04 14:50:05 +000013542 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000013543 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013544 esac
13545done
13546
13547
danielk197733a14782008-08-04 14:50:05 +000013548
shaneb1cd7302008-10-22 18:27:31 +000013549# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013550ac_temp_CFLAGS=""
13551for option in $CFLAGS
13552do
13553 case $option in
13554 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013555 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013556 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013557 esac
13558done
13559CFLAGS=$ac_temp_CFLAGS
13560
13561
shaneb1cd7302008-10-22 18:27:31 +000013562# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013563ac_temp_CPPFLAGS=""
13564for option in $CPPFLAGS
13565do
13566 case $option in
13567 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013568 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013569 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013570 esac
13571done
13572CPPFLAGS=$ac_temp_CPPFLAGS
13573
danielk197733a14782008-08-04 14:50:05 +000013574
drh8b727472009-01-19 18:18:40 +000013575# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013576ac_temp_BUILD_CFLAGS=""
13577for option in $BUILD_CFLAGS
13578do
13579 case $option in
13580 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013581 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013582 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013583 esac
13584done
13585BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
13586
13587
13588#########
13589# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000013590# Check whether --enable-gcov was given.
drh710658c2012-01-16 13:00:05 +000013591if test "${enable_gcov+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013592 enableval=$enable_gcov; use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000013593else
13594 use_gcov=no
drh8b727472009-01-19 18:18:40 +000013595fi
13596
mlcreechaac7b932008-04-01 02:45:22 +000013597if test "${use_gcov}" = "yes" ; then
13598 USE_GCOV=1
13599else
13600 USE_GCOV=0
13601fi
13602
13603
danielk197733a14782008-08-04 14:50:05 +000013604
drh2dfbbca2000-07-28 14:32:48 +000013605#########
mlcreechb87057f2008-03-06 07:19:20 +000013606# Output the config header
drh8b727472009-01-19 18:18:40 +000013607ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000013608
13609
13610#########
drh75897232000-05-29 14:26:00 +000013611# Generate the output files.
13612#
mlcreechdf59c7c2008-03-06 07:51:15 +000013613
drh8b727472009-01-19 18:18:40 +000013614ac_config_files="$ac_config_files Makefile sqlite3.pc"
13615
drh71eb93e2001-09-28 01:34:43 +000013616cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000013617# This file is a shell script that caches the results of configure
13618# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000013619# scripts and configure runs, see configure's option --config-cache.
13620# It is not useful on other systems. If it contains results you don't
13621# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000013622#
drh71eb93e2001-09-28 01:34:43 +000013623# config.status only pays attention to the cache file if you give it
13624# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000013625#
a.rottmann84e63352003-03-24 09:42:16 +000013626# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000013627# loading this file, other *unset* `ac_cv_foo' will be assigned the
13628# following values.
13629
13630_ACEOF
13631
drh75897232000-05-29 14:26:00 +000013632# The following way of writing the cache mishandles newlines in values,
13633# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000013634# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000013635# Ultrix sh set writes to stderr and can't be redirected directly,
13636# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000013637(
13638 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13639 eval ac_val=\$$ac_var
13640 case $ac_val in #(
13641 *${as_nl}*)
13642 case $ac_var in #(
drh710658c2012-01-16 13:00:05 +000013643 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13644$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
drh8b727472009-01-19 18:18:40 +000013645 esac
13646 case $ac_var in #(
13647 _ | IFS | as_nl) ;; #(
13648 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drh710658c2012-01-16 13:00:05 +000013649 *) $as_unset $ac_var ;;
drh8b727472009-01-19 18:18:40 +000013650 esac ;;
13651 esac
13652 done
13653
drh71eb93e2001-09-28 01:34:43 +000013654 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000013655 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13656 *${as_nl}ac_space=\ *)
drh710658c2012-01-16 13:00:05 +000013657 # `set' does not quote correctly, so add quotes (double-quote
13658 # substitution turns \\\\ into \\, and sed turns \\ into \).
drh71eb93e2001-09-28 01:34:43 +000013659 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000013660 "s/'/'\\\\''/g;
13661 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000013662 ;; #(
drh71eb93e2001-09-28 01:34:43 +000013663 *)
13664 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000013665 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000013666 ;;
drh8b727472009-01-19 18:18:40 +000013667 esac |
13668 sort
13669) |
drh71eb93e2001-09-28 01:34:43 +000013670 sed '
drh8b727472009-01-19 18:18:40 +000013671 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000013672 t clear
drh8b727472009-01-19 18:18:40 +000013673 :clear
drh71eb93e2001-09-28 01:34:43 +000013674 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13675 t end
drh8b727472009-01-19 18:18:40 +000013676 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13677 :end' >>confcache
13678if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13679 if test -w "$cache_file"; then
drh710658c2012-01-16 13:00:05 +000013680 test "x$cache_file" != "x/dev/null" &&
13681 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000013682$as_echo "$as_me: updating cache $cache_file" >&6;}
drh710658c2012-01-16 13:00:05 +000013683 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000013684 else
drh710658c2012-01-16 13:00:05 +000013685 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000013686$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000013687 fi
13688fi
13689rm -f confcache
13690
drh75897232000-05-29 14:26:00 +000013691test "x$prefix" = xNONE && prefix=$ac_default_prefix
13692# Let make expand exec_prefix.
13693test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13694
mlcreechb87057f2008-03-06 07:19:20 +000013695DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000013696
13697ac_libobjs=
13698ac_ltlibobjs=
13699for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13700 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000013701 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13702 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13703 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13704 # will be set to the directory where LIBOBJS objects are built.
drh710658c2012-01-16 13:00:05 +000013705 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13706 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000013707done
13708LIBOBJS=$ac_libobjs
13709
13710LTLIBOBJS=$ac_ltlibobjs
13711
13712
13713
drh710658c2012-01-16 13:00:05 +000013714: ${CONFIG_STATUS=./config.status}
drh8b727472009-01-19 18:18:40 +000013715ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000013716ac_clean_files_save=$ac_clean_files
13717ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drh710658c2012-01-16 13:00:05 +000013718{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000013719$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
drh710658c2012-01-16 13:00:05 +000013720cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013721#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000013722# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000013723# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000013724# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000013725# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000013726
drh71eb93e2001-09-28 01:34:43 +000013727debug=false
a.rottmann84e63352003-03-24 09:42:16 +000013728ac_cs_recheck=false
13729ac_cs_silent=false
dana9f39fd2011-08-12 16:34:42 +000013730SHELL=\${CONFIG_SHELL-$SHELL}
drh710658c2012-01-16 13:00:05 +000013731_ACEOF
13732
13733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13734## --------------------- ##
13735## M4sh Initialization. ##
13736## --------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000013737
drh8b727472009-01-19 18:18:40 +000013738# Be more Bourne compatible
13739DUALCASE=1; export DUALCASE # for MKS sh
drh710658c2012-01-16 13:00:05 +000013740if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
drh71eb93e2001-09-28 01:34:43 +000013741 emulate sh
13742 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000013743 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000013744 # is contrary to our usage. Disable this feature.
13745 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000013746 setopt NO_GLOB_SUBST
13747else
drh710658c2012-01-16 13:00:05 +000013748 case `(set -o) 2>/dev/null` in
13749 *posix*) set -o posix ;;
drh8b727472009-01-19 18:18:40 +000013750esac
drh710658c2012-01-16 13:00:05 +000013751
a.rottmann84e63352003-03-24 09:42:16 +000013752fi
drh8b727472009-01-19 18:18:40 +000013753
13754
drh710658c2012-01-16 13:00:05 +000013755
13756
13757# PATH needs CR
13758# Avoid depending upon Character Ranges.
13759as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13760as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13761as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13762as_cr_digits='0123456789'
13763as_cr_alnum=$as_cr_Letters$as_cr_digits
13764
drh8b727472009-01-19 18:18:40 +000013765as_nl='
13766'
13767export as_nl
13768# Printing a long string crashes Solaris 7 /usr/bin/printf.
13769as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13770as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13771as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drh710658c2012-01-16 13:00:05 +000013772if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000013773 as_echo='printf %s\n'
13774 as_echo_n='printf %s'
13775else
13776 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13777 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13778 as_echo_n='/usr/ucb/echo -n'
13779 else
13780 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13781 as_echo_n_body='eval
13782 arg=$1;
drh710658c2012-01-16 13:00:05 +000013783 case $arg in
drh8b727472009-01-19 18:18:40 +000013784 *"$as_nl"*)
13785 expr "X$arg" : "X\\(.*\\)$as_nl";
13786 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13787 esac;
13788 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13789 '
13790 export as_echo_n_body
13791 as_echo_n='sh -c $as_echo_n_body as_echo'
13792 fi
13793 export as_echo_body
13794 as_echo='sh -c $as_echo_body as_echo'
13795fi
13796
13797# The user is always right.
13798if test "${PATH_SEPARATOR+set}" != set; then
13799 PATH_SEPARATOR=:
13800 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13801 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13802 PATH_SEPARATOR=';'
13803 }
13804fi
a.rottmann84e63352003-03-24 09:42:16 +000013805
drh710658c2012-01-16 13:00:05 +000013806# Support unset when possible.
13807if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13808 as_unset=unset
13809else
13810 as_unset=false
13811fi
13812
mlcreech94984912008-03-04 19:03:08 +000013813
drh8b727472009-01-19 18:18:40 +000013814# IFS
13815# We need space, tab and new line, in precisely that order. Quoting is
13816# there to prevent editors from complaining about space-tab.
13817# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13818# splitting by setting IFS to empty value.)
13819IFS=" "" $as_nl"
13820
13821# Find who we are. Look in the path if we contain no directory separator.
drh710658c2012-01-16 13:00:05 +000013822case $0 in
drh8b727472009-01-19 18:18:40 +000013823 *[\\/]* ) as_myself=$0 ;;
13824 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13825for as_dir in $PATH
13826do
13827 IFS=$as_save_IFS
13828 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +000013829 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13830done
drh8b727472009-01-19 18:18:40 +000013831IFS=$as_save_IFS
13832
13833 ;;
13834esac
13835# We did not find ourselves, most probably we were run as `sh COMMAND'
13836# in which case we are not to be found in the path.
13837if test "x$as_myself" = x; then
13838 as_myself=$0
13839fi
13840if test ! -f "$as_myself"; then
13841 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drh710658c2012-01-16 13:00:05 +000013842 { (exit 1); exit 1; }
drh8b727472009-01-19 18:18:40 +000013843fi
13844
drh710658c2012-01-16 13:00:05 +000013845# Work around bugs in pre-3.0 UWIN ksh.
13846for as_var in ENV MAIL MAILPATH
13847do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
drh8b727472009-01-19 18:18:40 +000013848done
mlcreech94984912008-03-04 19:03:08 +000013849PS1='$ '
13850PS2='> '
13851PS4='+ '
13852
13853# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000013854LC_ALL=C
13855export LC_ALL
13856LANGUAGE=C
13857export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000013858
drh710658c2012-01-16 13:00:05 +000013859# Required to use basename.
drh8b727472009-01-19 18:18:40 +000013860if expr a : '\(a\)' >/dev/null 2>&1 &&
13861 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000013862 as_expr=expr
13863else
13864 as_expr=false
13865fi
13866
drh8b727472009-01-19 18:18:40 +000013867if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000013868 as_basename=basename
13869else
13870 as_basename=false
13871fi
13872
13873
drh710658c2012-01-16 13:00:05 +000013874# Name of the executable.
drh8b727472009-01-19 18:18:40 +000013875as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000013876$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13877 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000013878 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13879$as_echo X/"$0" |
13880 sed '/^.*\/\([^/][^/]*\)\/*$/{
13881 s//\1/
13882 q
13883 }
13884 /^X\/\(\/\/\)$/{
13885 s//\1/
13886 q
13887 }
13888 /^X\/\(\/\).*/{
13889 s//\1/
13890 q
13891 }
13892 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000013893
drh710658c2012-01-16 13:00:05 +000013894# CDPATH.
13895$as_unset CDPATH
13896
13897
13898
13899 as_lineno_1=$LINENO
13900 as_lineno_2=$LINENO
13901 test "x$as_lineno_1" != "x$as_lineno_2" &&
13902 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13903
13904 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13905 # uniformly replaced by the line number. The first 'sed' inserts a
13906 # line-number line after each line using $LINENO; the second 'sed'
13907 # does the real work. The second script uses 'N' to pair each
13908 # line-number line with the line containing $LINENO, and appends
13909 # trailing '-' during substitution so that $LINENO is not a special
13910 # case at line end.
13911 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13912 # scripts with optimization help from Paolo Bonzini. Blame Lee
13913 # E. McMahon (1931-1989) for sed's syntax. :-)
13914 sed -n '
13915 p
13916 /[$]LINENO/=
13917 ' <$as_myself |
13918 sed '
13919 s/[$]LINENO.*/&-/
13920 t lineno
13921 b
13922 :lineno
13923 N
13924 :loop
13925 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13926 t loop
13927 s/-\n.*//
13928 ' >$as_me.lineno &&
13929 chmod +x "$as_me.lineno" ||
13930 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13931 { (exit 1); exit 1; }; }
13932
13933 # Don't try to exec as it changes $[0], causing all sort of problems
13934 # (the dirname of $[0] is not the place where we might find the
13935 # original and so on. Autoconf is especially sensitive to this).
13936 . "./$as_me.lineno"
13937 # Exit status is that of the last command.
13938 exit
13939}
13940
13941
13942if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13943 as_dirname=dirname
13944else
13945 as_dirname=false
13946fi
drh866108f2008-05-13 00:57:21 +000013947
drh8b727472009-01-19 18:18:40 +000013948ECHO_C= ECHO_N= ECHO_T=
drh710658c2012-01-16 13:00:05 +000013949case `echo -n x` in
drh8b727472009-01-19 18:18:40 +000013950-n*)
drh710658c2012-01-16 13:00:05 +000013951 case `echo 'x\c'` in
drh8b727472009-01-19 18:18:40 +000013952 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drh710658c2012-01-16 13:00:05 +000013953 *) ECHO_C='\c';;
drh8b727472009-01-19 18:18:40 +000013954 esac;;
13955*)
13956 ECHO_N='-n';;
13957esac
drh710658c2012-01-16 13:00:05 +000013958if expr a : '\(a\)' >/dev/null 2>&1 &&
13959 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13960 as_expr=expr
13961else
13962 as_expr=false
13963fi
drh71eb93e2001-09-28 01:34:43 +000013964
13965rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000013966if test -d conf$$.dir; then
13967 rm -f conf$$.dir/conf$$.file
13968else
13969 rm -f conf$$.dir
13970 mkdir conf$$.dir 2>/dev/null
13971fi
13972if (echo >conf$$.file) 2>/dev/null; then
13973 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000013974 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000013975 # ... but there are two gotchas:
13976 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13977 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13978 # In both cases, we have to default to `cp -p'.
13979 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13980 as_ln_s='cp -p'
13981 elif ln conf$$.file conf$$ 2>/dev/null; then
13982 as_ln_s=ln
13983 else
13984 as_ln_s='cp -p'
mlcreech636a9952008-05-05 22:52:56 +000013985 fi
drh71eb93e2001-09-28 01:34:43 +000013986else
13987 as_ln_s='cp -p'
13988fi
drh8b727472009-01-19 18:18:40 +000013989rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13990rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000013991
a.rottmann84e63352003-03-24 09:42:16 +000013992if mkdir -p . 2>/dev/null; then
drh710658c2012-01-16 13:00:05 +000013993 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000013994else
a.rottmann964dbb12004-02-26 19:47:42 +000013995 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000013996 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000013997fi
13998
drh8b727472009-01-19 18:18:40 +000013999if test -x / >/dev/null 2>&1; then
14000 as_test_x='test -x'
14001else
14002 if ls -dL / >/dev/null 2>&1; then
14003 as_ls_L_option=L
14004 else
14005 as_ls_L_option=
14006 fi
14007 as_test_x='
14008 eval sh -c '\''
14009 if test -d "$1"; then
14010 test -d "$1/.";
14011 else
drh710658c2012-01-16 13:00:05 +000014012 case $1 in
drh8b727472009-01-19 18:18:40 +000014013 -*)set "./$1";;
14014 esac;
drh710658c2012-01-16 13:00:05 +000014015 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
drh8b727472009-01-19 18:18:40 +000014016 ???[sx]*):;;*)false;;esac;fi
14017 '\'' sh
14018 '
14019fi
14020as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +000014021
14022# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000014023as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000014024
14025# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000014026as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000014027
drh71eb93e2001-09-28 01:34:43 +000014028
drh71eb93e2001-09-28 01:34:43 +000014029exec 6>&1
14030
drh710658c2012-01-16 13:00:05 +000014031# Save the log message, to keep $[0] and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000014032# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000014033# values after options handling.
14034ac_log="
drh92f76572012-12-13 18:51:53 +000014035This file was extended by sqlite $as_me 3.7.16, which was
drh710658c2012-01-16 13:00:05 +000014036generated by GNU Autoconf 2.62. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000014037
14038 CONFIG_FILES = $CONFIG_FILES
14039 CONFIG_HEADERS = $CONFIG_HEADERS
14040 CONFIG_LINKS = $CONFIG_LINKS
14041 CONFIG_COMMANDS = $CONFIG_COMMANDS
14042 $ $0 $@
14043
drh8b727472009-01-19 18:18:40 +000014044on `(hostname || uname -n) 2>/dev/null | sed 1q`
14045"
14046
drh71eb93e2001-09-28 01:34:43 +000014047_ACEOF
14048
drh8b727472009-01-19 18:18:40 +000014049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014050# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000014051config_files="$ac_config_files"
14052config_headers="$ac_config_headers"
14053config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000014054
drh8b727472009-01-19 18:18:40 +000014055_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014056
drh8b727472009-01-19 18:18:40 +000014057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014058ac_cs_usage="\
drh710658c2012-01-16 13:00:05 +000014059\`$as_me' instantiates files from templates according to the
14060current configuration.
drh71eb93e2001-09-28 01:34:43 +000014061
drh710658c2012-01-16 13:00:05 +000014062Usage: $0 [OPTIONS] [FILE]...
drh71eb93e2001-09-28 01:34:43 +000014063
14064 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000014065 -V, --version print version number and configuration settings, then exit
drh710658c2012-01-16 13:00:05 +000014066 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000014067 -d, --debug don't remove temporary files
14068 --recheck update $as_me by reconfiguring in the same conditions
drh710658c2012-01-16 13:00:05 +000014069 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000014070 instantiate the configuration file FILE
drh710658c2012-01-16 13:00:05 +000014071 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000014072 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000014073
14074Configuration files:
14075$config_files
14076
mlcreechb87057f2008-03-06 07:19:20 +000014077Configuration headers:
14078$config_headers
14079
mlcreech636a9952008-05-05 22:52:56 +000014080Configuration commands:
14081$config_commands
14082
drh710658c2012-01-16 13:00:05 +000014083Report bugs to <bug-autoconf@gnu.org>."
drh8b727472009-01-19 18:18:40 +000014084
mlcreech94984912008-03-04 19:03:08 +000014085_ACEOF
drh8b727472009-01-19 18:18:40 +000014086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh866108f2008-05-13 00:57:21 +000014087ac_cs_version="\\
drh92f76572012-12-13 18:51:53 +000014088sqlite config.status 3.7.16
drh710658c2012-01-16 13:00:05 +000014089configured by $0, generated by GNU Autoconf 2.62,
14090 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
drh866108f2008-05-13 00:57:21 +000014091
drh710658c2012-01-16 13:00:05 +000014092Copyright (C) 2008 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000014093This config.status script is free software; the Free Software Foundation
14094gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000014095
14096ac_pwd='$ac_pwd'
14097srcdir='$srcdir'
14098INSTALL='$INSTALL'
14099AWK='$AWK'
14100test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000014101_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014102
drh8b727472009-01-19 18:18:40 +000014103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14104# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000014105ac_need_defaults=:
14106while test $# != 0
14107do
14108 case $1 in
drh710658c2012-01-16 13:00:05 +000014109 --*=*)
drh8b727472009-01-19 18:18:40 +000014110 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14111 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000014112 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000014113 ;;
drh8b727472009-01-19 18:18:40 +000014114 *)
a.rottmann84e63352003-03-24 09:42:16 +000014115 ac_option=$1
14116 ac_optarg=$2
14117 ac_shift=shift
14118 ;;
drh75897232000-05-29 14:26:00 +000014119 esac
14120
a.rottmann84e63352003-03-24 09:42:16 +000014121 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000014122 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000014123 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000014124 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000014125 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14126 $as_echo "$ac_cs_version"; exit ;;
14127 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000014128 debug=: ;;
14129 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000014130 $ac_shift
drh8b727472009-01-19 18:18:40 +000014131 case $ac_optarg in
14132 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14133 esac
drh710658c2012-01-16 13:00:05 +000014134 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000014135 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000014136 --header | --heade | --head | --hea )
14137 $ac_shift
drh8b727472009-01-19 18:18:40 +000014138 case $ac_optarg in
14139 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14140 esac
drh710658c2012-01-16 13:00:05 +000014141 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000014142 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000014143 --he | --h)
14144 # Conflict between --help and --header
drh710658c2012-01-16 13:00:05 +000014145 { $as_echo "$as_me: error: ambiguous option: $1
14146Try \`$0 --help' for more information." >&2
14147 { (exit 1); exit 1; }; };;
drh8b727472009-01-19 18:18:40 +000014148 --help | --hel | -h )
14149 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000014150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14151 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14152 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000014153
drh71eb93e2001-09-28 01:34:43 +000014154 # This is an error.
drh710658c2012-01-16 13:00:05 +000014155 -*) { $as_echo "$as_me: error: unrecognized option: $1
14156Try \`$0 --help' for more information." >&2
14157 { (exit 1); exit 1; }; } ;;
drh71eb93e2001-09-28 01:34:43 +000014158
drh710658c2012-01-16 13:00:05 +000014159 *) ac_config_targets="$ac_config_targets $1"
drh8b727472009-01-19 18:18:40 +000014160 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000014161
14162 esac
14163 shift
14164done
14165
a.rottmann84e63352003-03-24 09:42:16 +000014166ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000014167
a.rottmann84e63352003-03-24 09:42:16 +000014168if $ac_cs_silent; then
14169 exec 6>/dev/null
14170 ac_configure_extra_args="$ac_configure_extra_args --silent"
14171fi
drh71eb93e2001-09-28 01:34:43 +000014172
14173_ACEOF
drh8b727472009-01-19 18:18:40 +000014174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000014175if \$ac_cs_recheck; then
drh8b727472009-01-19 18:18:40 +000014176 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14177 shift
14178 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14179 CONFIG_SHELL='$SHELL'
14180 export CONFIG_SHELL
14181 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000014182fi
drh71eb93e2001-09-28 01:34:43 +000014183
a.rottmann84e63352003-03-24 09:42:16 +000014184_ACEOF
drh8b727472009-01-19 18:18:40 +000014185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14186exec 5>>config.log
14187{
14188 echo
14189 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14190## Running $as_me. ##
14191_ASBOX
14192 $as_echo "$ac_log"
14193} >&5
a.rottmann84e63352003-03-24 09:42:16 +000014194
drh8b727472009-01-19 18:18:40 +000014195_ACEOF
14196cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000014197#
drh8b727472009-01-19 18:18:40 +000014198# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000014199#
14200
14201
14202# The HP-UX ksh and POSIX shell print the target directory to stdout
14203# if CDPATH is set.
14204(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14205
14206sed_quote_subst='$sed_quote_subst'
14207double_quote_subst='$double_quote_subst'
14208delay_variable_subst='$delay_variable_subst'
14209macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14210macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14211enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14212enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14213pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14214enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14215host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14216host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14217host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14218build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14219build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14220build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14221SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14222Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14223GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14224EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14225FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14226LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14227NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14228LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14229max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14230ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14231exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14232lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14233lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14234lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14235reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14236reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000014237OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000014238deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14239file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14240AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14241AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14242STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14243RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14244old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14245old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14246old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14247CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14248CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14249compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14250GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14251lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14252lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14253lt_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"`'
14254lt_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"`'
14255objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14256SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14257ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14258MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14259lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14260lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14261lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14262lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14263lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14264need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14265DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14266NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14267LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14268OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14269OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14270libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14271shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14272extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14273archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14274enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14275export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14276whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14277compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14278old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14279old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14280archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14281archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14282module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14283module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14284with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14285allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14286no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14287hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14288hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14289hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14290hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14291hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14292hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14293hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14294hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14295inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14296link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14297fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14298always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14299export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14300exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14301include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14302prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14303file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14304variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14305need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14306need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14307version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14308runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14309shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14310shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14311libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14312library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14313soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14314postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14315postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14316finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14317finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14318hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14319sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14320sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14321hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14322enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14323enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14324enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14325old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14326striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14327
14328LTCC='$LTCC'
14329LTCFLAGS='$LTCFLAGS'
14330compiler='$compiler_DEFAULT'
14331
14332# Quote evaled strings.
14333for var in SED \
14334GREP \
14335EGREP \
14336FGREP \
14337LD \
14338NM \
14339LN_S \
14340lt_SP2NL \
14341lt_NL2SP \
14342reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000014343OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000014344deplibs_check_method \
14345file_magic_cmd \
14346AR \
14347AR_FLAGS \
14348STRIP \
14349RANLIB \
14350CC \
14351CFLAGS \
14352compiler \
14353lt_cv_sys_global_symbol_pipe \
14354lt_cv_sys_global_symbol_to_cdecl \
14355lt_cv_sys_global_symbol_to_c_name_address \
14356lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14357SHELL \
14358ECHO \
14359lt_prog_compiler_no_builtin_flag \
14360lt_prog_compiler_wl \
14361lt_prog_compiler_pic \
14362lt_prog_compiler_static \
14363lt_cv_prog_compiler_c_o \
14364need_locks \
14365DSYMUTIL \
14366NMEDIT \
14367LIPO \
14368OTOOL \
14369OTOOL64 \
14370shrext_cmds \
14371export_dynamic_flag_spec \
14372whole_archive_flag_spec \
14373compiler_needs_object \
14374with_gnu_ld \
14375allow_undefined_flag \
14376no_undefined_flag \
14377hardcode_libdir_flag_spec \
14378hardcode_libdir_flag_spec_ld \
14379hardcode_libdir_separator \
14380fix_srcfile_path \
14381exclude_expsyms \
14382include_expsyms \
14383file_list_spec \
14384variables_saved_for_relink \
14385libname_spec \
14386library_names_spec \
14387soname_spec \
14388finish_eval \
14389old_striplib \
14390striplib; do
14391 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14392 *[\\\\\\\`\\"\\\$]*)
14393 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14394 ;;
14395 *)
14396 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14397 ;;
14398 esac
14399done
14400
14401# Double-quote double-evaled strings.
14402for var in reload_cmds \
14403old_postinstall_cmds \
14404old_postuninstall_cmds \
14405old_archive_cmds \
14406extract_expsyms_cmds \
14407old_archive_from_new_cmds \
14408old_archive_from_expsyms_cmds \
14409archive_cmds \
14410archive_expsym_cmds \
14411module_cmds \
14412module_expsym_cmds \
14413export_symbols_cmds \
14414prelink_cmds \
14415postinstall_cmds \
14416postuninstall_cmds \
14417finish_cmds \
14418sys_lib_search_path_spec \
14419sys_lib_dlsearch_path_spec; do
14420 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14421 *[\\\\\\\`\\"\\\$]*)
14422 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14423 ;;
14424 *)
14425 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14426 ;;
14427 esac
14428done
14429
14430# Fix-up fallback echo if it was mangled by the above quoting rules.
14431case \$lt_ECHO in
14432*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14433 ;;
14434esac
14435
14436ac_aux_dir='$ac_aux_dir'
14437xsi_shell='$xsi_shell'
14438lt_shell_append='$lt_shell_append'
14439
14440# See if we are running on zsh, and set the options which allow our
14441# commands through without removal of \ escapes INIT.
14442if test -n "\${ZSH_VERSION+set}" ; then
14443 setopt NO_GLOB_SUBST
14444fi
14445
14446
14447 PACKAGE='$PACKAGE'
14448 VERSION='$VERSION'
14449 TIMESTAMP='$TIMESTAMP'
14450 RM='$RM'
14451 ofile='$ofile'
14452
14453
14454
14455
mlcreech94984912008-03-04 19:03:08 +000014456_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000014457
drh8b727472009-01-19 18:18:40 +000014458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000014459
drh8b727472009-01-19 18:18:40 +000014460# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000014461for ac_config_target in $ac_config_targets
14462do
drh8b727472009-01-19 18:18:40 +000014463 case $ac_config_target in
14464 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14465 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14466 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14467 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
14468
drh710658c2012-01-16 13:00:05 +000014469 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14470$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14471 { (exit 1); exit 1; }; };;
drh71eb93e2001-09-28 01:34:43 +000014472 esac
14473done
14474
drh8b727472009-01-19 18:18:40 +000014475
drh71eb93e2001-09-28 01:34:43 +000014476# If the user did not use the arguments to specify the items to instantiate,
14477# then the envvar interface is used. Set only those that are not.
14478# We use the long form for the default assignment because of an extremely
14479# bizarre bug on SunOS 4.1.3.
14480if $ac_need_defaults; then
14481 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000014482 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000014483 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000014484fi
14485
a.rottmann84e63352003-03-24 09:42:16 +000014486# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000014487# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000014488# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000014489# Hook for its removal unless debugging.
14490# Note that there is a small window in which the directory will not be cleaned:
14491# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000014492$debug ||
14493{
drh710658c2012-01-16 13:00:05 +000014494 tmp=
drh8b727472009-01-19 18:18:40 +000014495 trap 'exit_status=$?
drh710658c2012-01-16 13:00:05 +000014496 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
drh8b727472009-01-19 18:18:40 +000014497' 0
drh710658c2012-01-16 13:00:05 +000014498 trap '{ (exit 1); exit 1; }' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000014499}
drh71eb93e2001-09-28 01:34:43 +000014500# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000014501
drh71eb93e2001-09-28 01:34:43 +000014502{
drh8b727472009-01-19 18:18:40 +000014503 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drh710658c2012-01-16 13:00:05 +000014504 test -n "$tmp" && test -d "$tmp"
drh71eb93e2001-09-28 01:34:43 +000014505} ||
14506{
drh8b727472009-01-19 18:18:40 +000014507 tmp=./conf$$-$RANDOM
14508 (umask 077 && mkdir "$tmp")
drh710658c2012-01-16 13:00:05 +000014509} ||
14510{
14511 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14512 { (exit 1); exit 1; }
14513}
drh71eb93e2001-09-28 01:34:43 +000014514
drh8b727472009-01-19 18:18:40 +000014515# Set up the scripts for CONFIG_FILES section.
14516# No need to generate them if there are no CONFIG_FILES.
14517# This happens for instance with `./config.status config.h'.
14518if test -n "$CONFIG_FILES"; then
14519
14520
drh710658c2012-01-16 13:00:05 +000014521ac_cr=' '
drh8b727472009-01-19 18:18:40 +000014522ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14523if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
drh0fe0c462011-09-22 00:56:38 +000014524 ac_cs_awk_cr='\\r'
drh8b727472009-01-19 18:18:40 +000014525else
14526 ac_cs_awk_cr=$ac_cr
14527fi
14528
drh710658c2012-01-16 13:00:05 +000014529echo 'BEGIN {' >"$tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000014530_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014531
mlcreech94984912008-03-04 19:03:08 +000014532
drh8b727472009-01-19 18:18:40 +000014533{
14534 echo "cat >conf$$subs.awk <<_ACEOF" &&
14535 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14536 echo "_ACEOF"
14537} >conf$$subs.sh ||
drh710658c2012-01-16 13:00:05 +000014538 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14539$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14540 { (exit 1); exit 1; }; }
14541ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
drh8b727472009-01-19 18:18:40 +000014542ac_delim='%!_!# '
14543for ac_last_try in false false false false false :; do
14544 . ./conf$$subs.sh ||
drh710658c2012-01-16 13:00:05 +000014545 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14546$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14547 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000014548
drh710658c2012-01-16 13:00:05 +000014549 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000014550 break
14551 elif $ac_last_try; then
drh710658c2012-01-16 13:00:05 +000014552 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14553$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14554 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014555 else
14556 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000014557 fi
drh8b727472009-01-19 18:18:40 +000014558done
14559rm -f conf$$subs.sh
14560
14561cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh710658c2012-01-16 13:00:05 +000014562cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
drh8b727472009-01-19 18:18:40 +000014563_ACEOF
14564sed -n '
14565h
14566s/^/S["/; s/!.*/"]=/
14567p
14568g
14569s/^[^!]*!//
14570:repl
14571t repl
14572s/'"$ac_delim"'$//
14573t delim
14574:nl
14575h
drh710658c2012-01-16 13:00:05 +000014576s/\(.\{148\}\).*/\1/
drh8b727472009-01-19 18:18:40 +000014577t more1
14578s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14579p
14580n
14581b repl
14582:more1
14583s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14584p
14585g
14586s/.\{148\}//
14587t nl
14588:delim
14589h
drh710658c2012-01-16 13:00:05 +000014590s/\(.\{148\}\).*/\1/
drh8b727472009-01-19 18:18:40 +000014591t more2
14592s/["\\]/\\&/g; s/^/"/; s/$/"/
14593p
14594b
14595:more2
14596s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14597p
14598g
14599s/.\{148\}//
14600t delim
14601' <conf$$subs.awk | sed '
14602/^[^""]/{
14603 N
14604 s/\n//
14605}
14606' >>$CONFIG_STATUS || ac_write_fail=1
14607rm -f conf$$subs.awk
14608cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14609_ACAWK
drh710658c2012-01-16 13:00:05 +000014610cat >>"\$tmp/subs1.awk" <<_ACAWK &&
drh8b727472009-01-19 18:18:40 +000014611 for (key in S) S_is_set[key] = 1
14612 FS = ""
14613
14614}
14615{
14616 line = $ 0
14617 nfields = split(line, field, "@")
14618 substed = 0
14619 len = length(field[1])
14620 for (i = 2; i < nfields; i++) {
14621 key = field[i]
14622 keylen = length(key)
14623 if (S_is_set[key]) {
14624 value = S[key]
14625 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14626 len += length(value) + length(field[++i])
14627 substed = 1
14628 } else
14629 len += 1 + keylen
14630 }
14631
14632 print line
14633}
14634
14635_ACAWK
14636_ACEOF
14637cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14638if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14639 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14640else
14641 cat
drh710658c2012-01-16 13:00:05 +000014642fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14643 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14644$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14645 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014646_ACEOF
14647
drh710658c2012-01-16 13:00:05 +000014648# VPATH may cause trouble with some makes, so we remove $(srcdir),
14649# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
drh8b727472009-01-19 18:18:40 +000014650# trailing colons and then remove the whole line if VPATH becomes empty
14651# (actually we leave an empty line to preserve line numbers).
14652if test "x$srcdir" = x.; then
drh710658c2012-01-16 13:00:05 +000014653 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14654s/:*\$(srcdir):*/:/
14655s/:*\${srcdir}:*/:/
14656s/:*@srcdir@:*/:/
14657s/^\([^=]*=[ ]*\):*/\1/
drh8b727472009-01-19 18:18:40 +000014658s/:*$//
14659s/^[^=]*=[ ]*$//
14660}'
14661fi
14662
14663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014664fi # test -n "$CONFIG_FILES"
14665
drh8b727472009-01-19 18:18:40 +000014666# Set up the scripts for CONFIG_HEADERS section.
14667# No need to generate them if there are no CONFIG_HEADERS.
14668# This happens for instance with `./config.status Makefile'.
14669if test -n "$CONFIG_HEADERS"; then
drh710658c2012-01-16 13:00:05 +000014670cat >"$tmp/defines.awk" <<\_ACAWK ||
drh8b727472009-01-19 18:18:40 +000014671BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000014672_ACEOF
drh8b727472009-01-19 18:18:40 +000014673
14674# Transform confdefs.h into an awk script `defines.awk', embedded as
14675# here-document in config.status, that substitutes the proper values into
14676# config.h.in to produce config.h.
14677
14678# Create a delimiter string that does not exist in confdefs.h, to ease
14679# handling of long lines.
14680ac_delim='%!_!# '
14681for ac_last_try in false false :; do
drh710658c2012-01-16 13:00:05 +000014682 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14683 if test -z "$ac_t"; then
drh8b727472009-01-19 18:18:40 +000014684 break
14685 elif $ac_last_try; then
drh710658c2012-01-16 13:00:05 +000014686 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14687$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14688 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014689 else
14690 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14691 fi
14692done
14693
14694# For the awk script, D is an array of macro values keyed by name,
14695# likewise P contains macro parameters if any. Preserve backslash
14696# newline sequences.
14697
14698ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14699sed -n '
14700s/.\{148\}/&'"$ac_delim"'/g
14701t rset
14702:rset
14703s/^[ ]*#[ ]*define[ ][ ]*/ /
14704t def
14705d
14706:def
14707s/\\$//
14708t bsnl
14709s/["\\]/\\&/g
14710s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14711D["\1"]=" \3"/p
14712s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14713d
14714:bsnl
14715s/["\\]/\\&/g
14716s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14717D["\1"]=" \3\\\\\\n"\\/p
14718t cont
14719s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14720t cont
14721d
14722:cont
14723n
14724s/.\{148\}/&'"$ac_delim"'/g
14725t clear
14726:clear
14727s/\\$//
14728t bsnlc
14729s/["\\]/\\&/g; s/^/"/; s/$/"/p
14730d
14731:bsnlc
14732s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14733b cont
14734' <confdefs.h | sed '
14735s/'"$ac_delim"'/"\\\
14736"/g' >>$CONFIG_STATUS || ac_write_fail=1
14737
14738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14739 for (key in D) D_is_set[key] = 1
14740 FS = ""
14741}
14742/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14743 line = \$ 0
14744 split(line, arg, " ")
14745 if (arg[1] == "#") {
14746 defundef = arg[2]
14747 mac1 = arg[3]
14748 } else {
14749 defundef = substr(arg[1], 2)
14750 mac1 = arg[2]
14751 }
14752 split(mac1, mac2, "(") #)
14753 macro = mac2[1]
14754 if (D_is_set[macro]) {
14755 # Preserve the white space surrounding the "#".
drh710658c2012-01-16 13:00:05 +000014756 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000014757 print prefix "define", macro P[macro] D[macro]
14758 next
14759 } else {
14760 # Replace #undef with comments. This is necessary, for example,
14761 # in the case of _POSIX_SOURCE, which is predefined and required
14762 # on some systems where configure will not decide to define it.
14763 if (defundef == "undef") {
drh710658c2012-01-16 13:00:05 +000014764 print "/*", line, "*/"
drh8b727472009-01-19 18:18:40 +000014765 next
14766 }
14767 }
14768}
14769{ print }
14770_ACAWK
14771_ACEOF
14772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh710658c2012-01-16 13:00:05 +000014773 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14774$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14775 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014776fi # test -n "$CONFIG_HEADERS"
14777
14778
14779eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14780shift
14781for ac_tag
14782do
14783 case $ac_tag in
14784 :[FHLC]) ac_mode=$ac_tag; continue;;
14785 esac
14786 case $ac_mode$ac_tag in
14787 :[FHL]*:*);;
drh710658c2012-01-16 13:00:05 +000014788 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14789$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14790 { (exit 1); exit 1; }; };;
drh8b727472009-01-19 18:18:40 +000014791 :[FH]-) ac_tag=-:-;;
14792 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14793 esac
14794 ac_save_IFS=$IFS
14795 IFS=:
14796 set x $ac_tag
14797 IFS=$ac_save_IFS
14798 shift
14799 ac_file=$1
14800 shift
14801
14802 case $ac_mode in
14803 :L) ac_source=$1;;
14804 :[FH])
14805 ac_file_inputs=
14806 for ac_f
14807 do
14808 case $ac_f in
drh710658c2012-01-16 13:00:05 +000014809 -) ac_f="$tmp/stdin";;
drh8b727472009-01-19 18:18:40 +000014810 *) # Look for the file first in the build tree, then in the source tree
14811 # (if the path is not absolute). The absolute path cannot be DOS-style,
14812 # because $ac_f cannot contain `:'.
14813 test -f "$ac_f" ||
14814 case $ac_f in
14815 [\\/$]*) false;;
14816 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14817 esac ||
drh710658c2012-01-16 13:00:05 +000014818 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14819$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14820 { (exit 1); exit 1; }; };;
drh8b727472009-01-19 18:18:40 +000014821 esac
14822 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
drh710658c2012-01-16 13:00:05 +000014823 ac_file_inputs="$ac_file_inputs '$ac_f'"
drh8b727472009-01-19 18:18:40 +000014824 done
14825
14826 # Let's still pretend it is `configure' which instantiates (i.e., don't
14827 # use $as_me), people would be surprised to read:
14828 # /* config.h. Generated by config.status. */
14829 configure_input='Generated from '`
14830 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14831 `' by configure.'
14832 if test x"$ac_file" != x-; then
14833 configure_input="$ac_file. $configure_input"
drh710658c2012-01-16 13:00:05 +000014834 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000014835$as_echo "$as_me: creating $ac_file" >&6;}
14836 fi
14837 # Neutralize special characters interpreted by sed in replacement strings.
14838 case $configure_input in #(
14839 *\&* | *\|* | *\\* )
14840 ac_sed_conf_input=`$as_echo "$configure_input" |
14841 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14842 *) ac_sed_conf_input=$configure_input;;
14843 esac
14844
14845 case $ac_tag in
drh710658c2012-01-16 13:00:05 +000014846 *:-:* | *:-) cat >"$tmp/stdin" \
14847 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14848$as_echo "$as_me: error: could not create $ac_file" >&2;}
14849 { (exit 1); exit 1; }; } ;;
drh8b727472009-01-19 18:18:40 +000014850 esac
14851 ;;
drh71eb93e2001-09-28 01:34:43 +000014852 esac
14853
drh8b727472009-01-19 18:18:40 +000014854 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000014855$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000014856 X"$ac_file" : 'X\(//\)[^/]' \| \
14857 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000014858 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14859$as_echo X"$ac_file" |
14860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14861 s//\1/
14862 q
14863 }
14864 /^X\(\/\/\)[^/].*/{
14865 s//\1/
14866 q
14867 }
14868 /^X\(\/\/\)$/{
14869 s//\1/
14870 q
14871 }
14872 /^X\(\/\).*/{
14873 s//\1/
14874 q
14875 }
14876 s/.*/./; q'`
drh710658c2012-01-16 13:00:05 +000014877 { as_dir="$ac_dir"
14878 case $as_dir in #(
14879 -*) as_dir=./$as_dir;;
14880 esac
14881 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14882 as_dirs=
14883 while :; do
14884 case $as_dir in #(
14885 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14886 *) as_qdir=$as_dir;;
14887 esac
14888 as_dirs="'$as_qdir' $as_dirs"
14889 as_dir=`$as_dirname -- "$as_dir" ||
14890$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14891 X"$as_dir" : 'X\(//\)[^/]' \| \
14892 X"$as_dir" : 'X\(//\)$' \| \
14893 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14894$as_echo X"$as_dir" |
14895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14896 s//\1/
14897 q
14898 }
14899 /^X\(\/\/\)[^/].*/{
14900 s//\1/
14901 q
14902 }
14903 /^X\(\/\/\)$/{
14904 s//\1/
14905 q
14906 }
14907 /^X\(\/\).*/{
14908 s//\1/
14909 q
14910 }
14911 s/.*/./; q'`
14912 test -d "$as_dir" && break
14913 done
14914 test -z "$as_dirs" || eval "mkdir $as_dirs"
14915 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14916$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14917 { (exit 1); exit 1; }; }; }
a.rottmann84e63352003-03-24 09:42:16 +000014918 ac_builddir=.
14919
drh8b727472009-01-19 18:18:40 +000014920case "$ac_dir" in
14921.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14922*)
14923 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14924 # A ".." for each directory in $ac_dir_suffix.
14925 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14926 case $ac_top_builddir_sub in
14927 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14928 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14929 esac ;;
14930esac
14931ac_abs_top_builddir=$ac_pwd
14932ac_abs_builddir=$ac_pwd$ac_dir_suffix
14933# for backward compatibility:
14934ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000014935
14936case $srcdir in
drh8b727472009-01-19 18:18:40 +000014937 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000014938 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000014939 ac_top_srcdir=$ac_top_builddir_sub
14940 ac_abs_top_srcdir=$ac_pwd ;;
14941 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000014942 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000014943 ac_top_srcdir=$srcdir
14944 ac_abs_top_srcdir=$srcdir ;;
14945 *) # Relative name.
14946 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14947 ac_top_srcdir=$ac_top_build_prefix$srcdir
14948 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000014949esac
drh8b727472009-01-19 18:18:40 +000014950ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000014951
a.rottmann84e63352003-03-24 09:42:16 +000014952
drh8b727472009-01-19 18:18:40 +000014953 case $ac_mode in
14954 :F)
14955 #
14956 # CONFIG_FILE
14957 #
drh75897232000-05-29 14:26:00 +000014958
drh71eb93e2001-09-28 01:34:43 +000014959 case $INSTALL in
14960 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000014961 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000014962 esac
mlcreech94984912008-03-04 19:03:08 +000014963_ACEOF
drh8b727472009-01-19 18:18:40 +000014964
14965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14966# If the template does not know about datarootdir, expand it.
14967# FIXME: This hack should be removed a few years after 2.60.
14968ac_datarootdir_hack=; ac_datarootdir_seen=
drh710658c2012-01-16 13:00:05 +000014969
drh8b727472009-01-19 18:18:40 +000014970ac_sed_dataroot='
14971/datarootdir/ {
14972 p
14973 q
14974}
14975/@datadir@/p
14976/@docdir@/p
14977/@infodir@/p
14978/@localedir@/p
drh710658c2012-01-16 13:00:05 +000014979/@mandir@/p
14980'
drh8b727472009-01-19 18:18:40 +000014981case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14982*datarootdir*) ac_datarootdir_seen=yes;;
14983*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
drh710658c2012-01-16 13:00:05 +000014984 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000014985$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14986_ACEOF
14987cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14988 ac_datarootdir_hack='
14989 s&@datadir@&$datadir&g
14990 s&@docdir@&$docdir&g
14991 s&@infodir@&$infodir&g
14992 s&@localedir@&$localedir&g
14993 s&@mandir@&$mandir&g
drh710658c2012-01-16 13:00:05 +000014994 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000014995esac
14996_ACEOF
14997
14998# Neutralize VPATH when `$srcdir' = `.'.
14999# Shell code in configure.ac might set extrasub.
15000# FIXME: do we really want to maintain this feature?
15001cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15002ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000015003$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000015004_ACEOF
drh8b727472009-01-19 18:18:40 +000015005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000015006:t
15007/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000015008s|@configure_input@|$ac_sed_conf_input|;t t
15009s&@top_builddir@&$ac_top_builddir_sub&;t t
15010s&@top_build_prefix@&$ac_top_build_prefix&;t t
15011s&@srcdir@&$ac_srcdir&;t t
15012s&@abs_srcdir@&$ac_abs_srcdir&;t t
15013s&@top_srcdir@&$ac_top_srcdir&;t t
15014s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15015s&@builddir@&$ac_builddir&;t t
15016s&@abs_builddir@&$ac_abs_builddir&;t t
15017s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15018s&@INSTALL@&$ac_INSTALL&;t t
15019$ac_datarootdir_hack
15020"
drh710658c2012-01-16 13:00:05 +000015021eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15022 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15023$as_echo "$as_me: error: could not create $ac_file" >&2;}
15024 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000015025
drh8b727472009-01-19 18:18:40 +000015026test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
drh710658c2012-01-16 13:00:05 +000015027 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15028 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15029 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15030which seems to be undefined. Please make sure it is defined." >&5
drh8b727472009-01-19 18:18:40 +000015031$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drh710658c2012-01-16 13:00:05 +000015032which seems to be undefined. Please make sure it is defined." >&2;}
drh866108f2008-05-13 00:57:21 +000015033
drh710658c2012-01-16 13:00:05 +000015034 rm -f "$tmp/stdin"
drh866108f2008-05-13 00:57:21 +000015035 case $ac_file in
drh710658c2012-01-16 13:00:05 +000015036 -) cat "$tmp/out" && rm -f "$tmp/out";;
15037 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
drh8b727472009-01-19 18:18:40 +000015038 esac \
drh710658c2012-01-16 13:00:05 +000015039 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15040$as_echo "$as_me: error: could not create $ac_file" >&2;}
15041 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000015042 ;;
15043 :H)
15044 #
15045 # CONFIG_HEADER
15046 #
drh866108f2008-05-13 00:57:21 +000015047 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000015048 {
15049 $as_echo "/* $configure_input */" \
drh710658c2012-01-16 13:00:05 +000015050 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15051 } >"$tmp/config.h" \
15052 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15053$as_echo "$as_me: error: could not create $ac_file" >&2;}
15054 { (exit 1); exit 1; }; }
15055 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15056 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000015057$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000015058 else
drh8b727472009-01-19 18:18:40 +000015059 rm -f "$ac_file"
drh710658c2012-01-16 13:00:05 +000015060 mv "$tmp/config.h" "$ac_file" \
15061 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15062$as_echo "$as_me: error: could not create $ac_file" >&2;}
15063 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +000015064 fi
15065 else
drh8b727472009-01-19 18:18:40 +000015066 $as_echo "/* $configure_input */" \
drh710658c2012-01-16 13:00:05 +000015067 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15068 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15069$as_echo "$as_me: error: could not create -" >&2;}
15070 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +000015071 fi
drh8b727472009-01-19 18:18:40 +000015072 ;;
drh866108f2008-05-13 00:57:21 +000015073
drh710658c2012-01-16 13:00:05 +000015074 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000015075$as_echo "$as_me: executing $ac_file commands" >&6;}
15076 ;;
15077 esac
drh866108f2008-05-13 00:57:21 +000015078
15079
drh8b727472009-01-19 18:18:40 +000015080 case $ac_file$ac_mode in
15081 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000015082
15083 # See if we are running on zsh, and set the options which allow our
15084 # commands through without removal of \ escapes.
15085 if test -n "${ZSH_VERSION+set}" ; then
15086 setopt NO_GLOB_SUBST
15087 fi
15088
15089 cfgfile="${ofile}T"
15090 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15091 $RM "$cfgfile"
15092
15093 cat <<_LT_EOF >> "$cfgfile"
15094#! $SHELL
15095
15096# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15097# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15098# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15099# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15100#
15101# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15102# 2006, 2007, 2008 Free Software Foundation, Inc.
15103# Written by Gordon Matzigkeit, 1996
15104#
15105# This file is part of GNU Libtool.
15106#
15107# GNU Libtool is free software; you can redistribute it and/or
15108# modify it under the terms of the GNU General Public License as
15109# published by the Free Software Foundation; either version 2 of
15110# the License, or (at your option) any later version.
15111#
15112# As a special exception to the GNU General Public License,
15113# if you distribute this file as part of a program or library that
15114# is built using GNU Libtool, you may include this file under the
15115# same distribution terms that you use for the rest of that program.
15116#
15117# GNU Libtool is distributed in the hope that it will be useful,
15118# but WITHOUT ANY WARRANTY; without even the implied warranty of
15119# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15120# GNU General Public License for more details.
15121#
15122# You should have received a copy of the GNU General Public License
15123# along with GNU Libtool; see the file COPYING. If not, a copy
15124# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15125# obtained by writing to the Free Software Foundation, Inc.,
15126# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15127
15128
15129# The names of the tagged configurations supported by this script.
15130available_tags=""
15131
15132# ### BEGIN LIBTOOL CONFIG
15133
15134# Which release of libtool.m4 was used?
15135macro_version=$macro_version
15136macro_revision=$macro_revision
15137
15138# Whether or not to build shared libraries.
15139build_libtool_libs=$enable_shared
15140
15141# Whether or not to build static libraries.
15142build_old_libs=$enable_static
15143
15144# What type of objects to build.
15145pic_mode=$pic_mode
15146
15147# Whether or not to optimize for fast installation.
15148fast_install=$enable_fast_install
15149
15150# The host system.
15151host_alias=$host_alias
15152host=$host
15153host_os=$host_os
15154
15155# The build system.
15156build_alias=$build_alias
15157build=$build
15158build_os=$build_os
15159
15160# A sed program that does not truncate output.
15161SED=$lt_SED
15162
15163# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15164Xsed="\$SED -e 1s/^X//"
15165
15166# A grep program that handles long lines.
15167GREP=$lt_GREP
15168
15169# An ERE matcher.
15170EGREP=$lt_EGREP
15171
15172# A literal string matcher.
15173FGREP=$lt_FGREP
15174
15175# A BSD- or MS-compatible name lister.
15176NM=$lt_NM
15177
15178# Whether we need soft or hard links.
15179LN_S=$lt_LN_S
15180
15181# What is the maximum length of a command?
15182max_cmd_len=$max_cmd_len
15183
15184# Object file suffix (normally "o").
15185objext=$ac_objext
15186
15187# Executable file suffix (normally "").
15188exeext=$exeext
15189
15190# whether the shell understands "unset".
15191lt_unset=$lt_unset
15192
15193# turn spaces into newlines.
15194SP2NL=$lt_lt_SP2NL
15195
15196# turn newlines into spaces.
15197NL2SP=$lt_lt_NL2SP
15198
15199# How to create reloadable object files.
15200reload_flag=$lt_reload_flag
15201reload_cmds=$lt_reload_cmds
15202
vapier6acb2cf2009-01-28 04:46:28 +000015203# An object symbol dumper.
15204OBJDUMP=$lt_OBJDUMP
15205
mlcreech636a9952008-05-05 22:52:56 +000015206# Method to check whether dependent libraries are shared objects.
15207deplibs_check_method=$lt_deplibs_check_method
15208
15209# Command to use when deplibs_check_method == "file_magic".
15210file_magic_cmd=$lt_file_magic_cmd
15211
15212# The archiver.
15213AR=$lt_AR
15214AR_FLAGS=$lt_AR_FLAGS
15215
15216# A symbol stripping program.
15217STRIP=$lt_STRIP
15218
15219# Commands used to install an old-style archive.
15220RANLIB=$lt_RANLIB
15221old_postinstall_cmds=$lt_old_postinstall_cmds
15222old_postuninstall_cmds=$lt_old_postuninstall_cmds
15223
15224# A C compiler.
15225LTCC=$lt_CC
15226
15227# LTCC compiler flags.
15228LTCFLAGS=$lt_CFLAGS
15229
15230# Take the output of nm and produce a listing of raw symbols and C names.
15231global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15232
15233# Transform the output of nm in a proper C declaration.
15234global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15235
15236# Transform the output of nm in a C name address pair.
15237global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15238
15239# Transform the output of nm in a C name address pair when lib prefix is needed.
15240global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15241
15242# The name of the directory that contains temporary libtool files.
15243objdir=$objdir
15244
15245# Shell to use when invoking shell scripts.
15246SHELL=$lt_SHELL
15247
15248# An echo program that does not interpret backslashes.
15249ECHO=$lt_ECHO
15250
15251# Used to examine libraries when file_magic_cmd begins with "file".
15252MAGIC_CMD=$MAGIC_CMD
15253
15254# Must we lock files when doing compilation?
15255need_locks=$lt_need_locks
15256
15257# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15258DSYMUTIL=$lt_DSYMUTIL
15259
15260# Tool to change global to local symbols on Mac OS X.
15261NMEDIT=$lt_NMEDIT
15262
15263# Tool to manipulate fat objects and archives on Mac OS X.
15264LIPO=$lt_LIPO
15265
15266# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15267OTOOL=$lt_OTOOL
15268
15269# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15270OTOOL64=$lt_OTOOL64
15271
15272# Old archive suffix (normally "a").
15273libext=$libext
15274
15275# Shared library suffix (normally ".so").
15276shrext_cmds=$lt_shrext_cmds
15277
15278# The commands to extract the exported symbol list from a shared archive.
15279extract_expsyms_cmds=$lt_extract_expsyms_cmds
15280
15281# Variables whose values should be saved in libtool wrapper scripts and
15282# restored at link time.
15283variables_saved_for_relink=$lt_variables_saved_for_relink
15284
15285# Do we need the "lib" prefix for modules?
15286need_lib_prefix=$need_lib_prefix
15287
15288# Do we need a version for libraries?
15289need_version=$need_version
15290
15291# Library versioning type.
15292version_type=$version_type
15293
15294# Shared library runtime path variable.
15295runpath_var=$runpath_var
15296
15297# Shared library path variable.
15298shlibpath_var=$shlibpath_var
15299
15300# Is shlibpath searched before the hard-coded library search path?
15301shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15302
15303# Format of library name prefix.
15304libname_spec=$lt_libname_spec
15305
15306# List of archive names. First name is the real one, the rest are links.
15307# The last name is the one that the linker finds with -lNAME
15308library_names_spec=$lt_library_names_spec
15309
15310# The coded name of the library, if different from the real name.
15311soname_spec=$lt_soname_spec
15312
15313# Command to use after installation of a shared archive.
15314postinstall_cmds=$lt_postinstall_cmds
15315
15316# Command to use after uninstallation of a shared archive.
15317postuninstall_cmds=$lt_postuninstall_cmds
15318
15319# Commands used to finish a libtool library installation in a directory.
15320finish_cmds=$lt_finish_cmds
15321
15322# As "finish_cmds", except a single script fragment to be evaled but
15323# not shown.
15324finish_eval=$lt_finish_eval
15325
15326# Whether we should hardcode library paths into libraries.
15327hardcode_into_libs=$hardcode_into_libs
15328
15329# Compile-time system search path for libraries.
15330sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15331
15332# Run-time system search path for libraries.
15333sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15334
15335# Whether dlopen is supported.
15336dlopen_support=$enable_dlopen
15337
15338# Whether dlopen of programs is supported.
15339dlopen_self=$enable_dlopen_self
15340
15341# Whether dlopen of statically linked programs is supported.
15342dlopen_self_static=$enable_dlopen_self_static
15343
15344# Commands to strip libraries.
15345old_striplib=$lt_old_striplib
15346striplib=$lt_striplib
15347
15348
15349# The linker used to build libraries.
15350LD=$lt_LD
15351
15352# Commands used to build an old-style archive.
15353old_archive_cmds=$lt_old_archive_cmds
15354
15355# A language specific compiler.
15356CC=$lt_compiler
15357
15358# Is the compiler the GNU compiler?
15359with_gcc=$GCC
15360
15361# Compiler flag to turn off builtin functions.
15362no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15363
15364# How to pass a linker flag through the compiler.
15365wl=$lt_lt_prog_compiler_wl
15366
15367# Additional compiler flags for building library objects.
15368pic_flag=$lt_lt_prog_compiler_pic
15369
15370# Compiler flag to prevent dynamic linking.
15371link_static_flag=$lt_lt_prog_compiler_static
15372
15373# Does compiler simultaneously support -c and -o options?
15374compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15375
15376# Whether or not to add -lc for building shared libraries.
15377build_libtool_need_lc=$archive_cmds_need_lc
15378
15379# Whether or not to disallow shared libs when runtime libs are static.
15380allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15381
15382# Compiler flag to allow reflexive dlopens.
15383export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15384
15385# Compiler flag to generate shared objects directly from archives.
15386whole_archive_flag_spec=$lt_whole_archive_flag_spec
15387
15388# Whether the compiler copes with passing no objects directly.
15389compiler_needs_object=$lt_compiler_needs_object
15390
15391# Create an old-style archive from a shared archive.
15392old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15393
15394# Create a temporary old-style archive to link instead of a shared archive.
15395old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15396
15397# Commands used to build a shared archive.
15398archive_cmds=$lt_archive_cmds
15399archive_expsym_cmds=$lt_archive_expsym_cmds
15400
15401# Commands used to build a loadable module if different from building
15402# a shared archive.
15403module_cmds=$lt_module_cmds
15404module_expsym_cmds=$lt_module_expsym_cmds
15405
15406# Whether we are building with GNU ld or not.
15407with_gnu_ld=$lt_with_gnu_ld
15408
15409# Flag that allows shared libraries with undefined symbols to be built.
15410allow_undefined_flag=$lt_allow_undefined_flag
15411
15412# Flag that enforces no undefined symbols.
15413no_undefined_flag=$lt_no_undefined_flag
15414
15415# Flag to hardcode \$libdir into a binary during linking.
15416# This must work even if \$libdir does not exist
15417hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15418
15419# If ld is used when linking, flag to hardcode \$libdir into a binary
15420# during linking. This must work even if \$libdir does not exist.
15421hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15422
15423# Whether we need a single "-rpath" flag with a separated argument.
15424hardcode_libdir_separator=$lt_hardcode_libdir_separator
15425
15426# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15427# DIR into the resulting binary.
15428hardcode_direct=$hardcode_direct
15429
15430# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15431# DIR into the resulting binary and the resulting library dependency is
15432# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15433# library is relocated.
15434hardcode_direct_absolute=$hardcode_direct_absolute
15435
15436# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15437# into the resulting binary.
15438hardcode_minus_L=$hardcode_minus_L
15439
15440# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15441# into the resulting binary.
15442hardcode_shlibpath_var=$hardcode_shlibpath_var
15443
15444# Set to "yes" if building a shared library automatically hardcodes DIR
15445# into the library and all subsequent libraries and executables linked
15446# against it.
15447hardcode_automatic=$hardcode_automatic
15448
15449# Set to yes if linker adds runtime paths of dependent libraries
15450# to runtime path list.
15451inherit_rpath=$inherit_rpath
15452
15453# Whether libtool must link a program against all its dependency libraries.
15454link_all_deplibs=$link_all_deplibs
15455
15456# Fix the shell variable \$srcfile for the compiler.
15457fix_srcfile_path=$lt_fix_srcfile_path
15458
15459# Set to "yes" if exported symbols are required.
15460always_export_symbols=$always_export_symbols
15461
15462# The commands to list exported symbols.
15463export_symbols_cmds=$lt_export_symbols_cmds
15464
15465# Symbols that should not be listed in the preloaded symbols.
15466exclude_expsyms=$lt_exclude_expsyms
15467
15468# Symbols that must always be exported.
15469include_expsyms=$lt_include_expsyms
15470
15471# Commands necessary for linking programs (against libraries) with templates.
15472prelink_cmds=$lt_prelink_cmds
15473
15474# Specify filename containing input files.
15475file_list_spec=$lt_file_list_spec
15476
15477# How to hardcode a shared library path into an executable.
15478hardcode_action=$hardcode_action
15479
15480# ### END LIBTOOL CONFIG
15481
15482_LT_EOF
15483
15484 case $host_os in
15485 aix3*)
15486 cat <<\_LT_EOF >> "$cfgfile"
15487# AIX sometimes has problems with the GCC collect2 program. For some
15488# reason, if we set the COLLECT_NAMES environment variable, the problems
15489# vanish in a puff of smoke.
15490if test "X${COLLECT_NAMES+set}" != Xset; then
15491 COLLECT_NAMES=
15492 export COLLECT_NAMES
15493fi
15494_LT_EOF
15495 ;;
15496 esac
15497
15498
15499ltmain="$ac_aux_dir/ltmain.sh"
15500
15501
15502 # We use sed instead of cat because bash on DJGPP gets confused if
15503 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15504 # text mode, it properly converts lines to CR/LF. This bash problem
15505 # is reportedly fixed, but why not run on old versions too?
15506 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15507 || (rm -f "$cfgfile"; exit 1)
15508
15509 case $xsi_shell in
15510 yes)
15511 cat << \_LT_EOF >> "$cfgfile"
15512
15513# func_dirname file append nondir_replacement
15514# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15515# otherwise set result to NONDIR_REPLACEMENT.
15516func_dirname ()
15517{
15518 case ${1} in
15519 */*) func_dirname_result="${1%/*}${2}" ;;
15520 * ) func_dirname_result="${3}" ;;
15521 esac
15522}
15523
15524# func_basename file
15525func_basename ()
15526{
15527 func_basename_result="${1##*/}"
15528}
15529
15530# func_dirname_and_basename file append nondir_replacement
15531# perform func_basename and func_dirname in a single function
15532# call:
15533# dirname: Compute the dirname of FILE. If nonempty,
15534# add APPEND to the result, otherwise set result
15535# to NONDIR_REPLACEMENT.
15536# value returned in "$func_dirname_result"
15537# basename: Compute filename of FILE.
15538# value retuned in "$func_basename_result"
15539# Implementation must be kept synchronized with func_dirname
15540# and func_basename. For efficiency, we do not delegate to
15541# those functions but instead duplicate the functionality here.
15542func_dirname_and_basename ()
15543{
15544 case ${1} in
15545 */*) func_dirname_result="${1%/*}${2}" ;;
15546 * ) func_dirname_result="${3}" ;;
15547 esac
15548 func_basename_result="${1##*/}"
15549}
15550
15551# func_stripname prefix suffix name
15552# strip PREFIX and SUFFIX off of NAME.
15553# PREFIX and SUFFIX must not contain globbing or regex special
15554# characters, hashes, percent signs, but SUFFIX may contain a leading
15555# dot (in which case that matches only a dot).
15556func_stripname ()
15557{
15558 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15559 # positional parameters, so assign one to ordinary parameter first.
15560 func_stripname_result=${3}
15561 func_stripname_result=${func_stripname_result#"${1}"}
15562 func_stripname_result=${func_stripname_result%"${2}"}
15563}
15564
15565# func_opt_split
15566func_opt_split ()
15567{
15568 func_opt_split_opt=${1%%=*}
15569 func_opt_split_arg=${1#*=}
15570}
15571
15572# func_lo2o object
15573func_lo2o ()
15574{
15575 case ${1} in
15576 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15577 *) func_lo2o_result=${1} ;;
15578 esac
15579}
15580
15581# func_xform libobj-or-source
15582func_xform ()
15583{
15584 func_xform_result=${1%.*}.lo
15585}
15586
15587# func_arith arithmetic-term...
15588func_arith ()
15589{
15590 func_arith_result=$(( $* ))
15591}
15592
15593# func_len string
15594# STRING may not start with a hyphen.
15595func_len ()
15596{
15597 func_len_result=${#1}
15598}
15599
15600_LT_EOF
15601 ;;
15602 *) # Bourne compatible functions.
15603 cat << \_LT_EOF >> "$cfgfile"
15604
15605# func_dirname file append nondir_replacement
15606# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15607# otherwise set result to NONDIR_REPLACEMENT.
15608func_dirname ()
15609{
15610 # Extract subdirectory from the argument.
15611 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15612 if test "X$func_dirname_result" = "X${1}"; then
15613 func_dirname_result="${3}"
15614 else
15615 func_dirname_result="$func_dirname_result${2}"
15616 fi
15617}
15618
15619# func_basename file
15620func_basename ()
15621{
15622 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15623}
15624
15625
15626# func_stripname prefix suffix name
15627# strip PREFIX and SUFFIX off of NAME.
15628# PREFIX and SUFFIX must not contain globbing or regex special
15629# characters, hashes, percent signs, but SUFFIX may contain a leading
15630# dot (in which case that matches only a dot).
15631# func_strip_suffix prefix name
15632func_stripname ()
15633{
15634 case ${2} in
15635 .*) func_stripname_result=`$ECHO "X${3}" \
15636 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15637 *) func_stripname_result=`$ECHO "X${3}" \
15638 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15639 esac
15640}
15641
15642# sed scripts:
15643my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15644my_sed_long_arg='1s/^-[^=]*=//'
15645
15646# func_opt_split
15647func_opt_split ()
15648{
15649 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15650 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15651}
15652
15653# func_lo2o object
15654func_lo2o ()
15655{
15656 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15657}
15658
15659# func_xform libobj-or-source
15660func_xform ()
15661{
15662 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15663}
15664
15665# func_arith arithmetic-term...
15666func_arith ()
15667{
15668 func_arith_result=`expr "$@"`
15669}
15670
15671# func_len string
15672# STRING may not start with a hyphen.
15673func_len ()
15674{
15675 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15676}
15677
15678_LT_EOF
15679esac
15680
15681case $lt_shell_append in
15682 yes)
15683 cat << \_LT_EOF >> "$cfgfile"
15684
15685# func_append var value
15686# Append VALUE to the end of shell variable VAR.
15687func_append ()
15688{
15689 eval "$1+=\$2"
15690}
15691_LT_EOF
15692 ;;
15693 *)
15694 cat << \_LT_EOF >> "$cfgfile"
15695
15696# func_append var value
15697# Append VALUE to the end of shell variable VAR.
15698func_append ()
15699{
15700 eval "$1=\$$1\$2"
15701}
15702
15703_LT_EOF
15704 ;;
15705 esac
15706
15707
15708 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15709 || (rm -f "$cfgfile"; exit 1)
15710
15711 mv -f "$cfgfile" "$ofile" ||
15712 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15713 chmod +x "$ofile"
15714
15715 ;;
mlcreech94984912008-03-04 19:03:08 +000015716
drh8b727472009-01-19 18:18:40 +000015717 esac
15718done # for ac_tag
15719
drh71eb93e2001-09-28 01:34:43 +000015720
drh710658c2012-01-16 13:00:05 +000015721{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000015722_ACEOF
drh710658c2012-01-16 13:00:05 +000015723chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000015724ac_clean_files=$ac_clean_files_save
15725
drh8b727472009-01-19 18:18:40 +000015726test $ac_write_fail = 0 ||
drh710658c2012-01-16 13:00:05 +000015727 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15728$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15729 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000015730
a.rottmann84e63352003-03-24 09:42:16 +000015731
drh71eb93e2001-09-28 01:34:43 +000015732# configure is writing to config.log, and then calls config.status.
15733# config.status does its own redirection, appending to config.log.
15734# Unfortunately, on DOS this fails, as config.log is still kept open
15735# by configure, so config.status won't be able to write to it; its
15736# output is simply discarded. So we exec the FD to /dev/null,
15737# effectively closing config.log, so it can be properly (re)opened and
15738# appended to by config.status. When coming back to configure, we
15739# need to make the FD available again.
15740if test "$no_create" != yes; then
15741 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000015742 ac_config_status_args=
15743 test "$silent" = yes &&
15744 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000015745 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000015746 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000015747 exec 5>>config.log
15748 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15749 # would make configure fail if this is the last instruction.
drh710658c2012-01-16 13:00:05 +000015750 $ac_cs_success || { (exit 1); exit 1; }
drh71eb93e2001-09-28 01:34:43 +000015751fi
drh8b727472009-01-19 18:18:40 +000015752if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drh710658c2012-01-16 13:00:05 +000015753 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
15754$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000015755fi
drhbc7a22d2009-10-13 22:47:13 +000015756