blob: 9e639e7f7573b56c03bd521b2e68293ec03e87b1 [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.
drh916cd232014-10-28 12:35:28 +00003# Generated by GNU Autoconf 2.62 for sqlite 3.8.8.
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'
drh916cd232014-10-28 12:35:28 +0000746PACKAGE_VERSION='3.8.8'
747PACKAGE_STRING='sqlite 3.8.8'
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
drh710658c2012-01-16 13:00:05 +0000871ALLOWRELEASE
872TEMP_STORE
873BUILD_EXEEXT
874SQLITE_OS_UNIX
875SQLITE_OS_WIN
drh710658c2012-01-16 13:00:05 +0000876TARGET_EXEEXT
877TCL_VERSION
878TCL_BIN_DIR
879TCL_SRC_DIR
drh710658c2012-01-16 13:00:05 +0000880TCL_INCLUDE_SPEC
881TCL_LIB_FILE
882TCL_LIB_FLAG
883TCL_LIB_SPEC
884TCL_STUB_LIB_FILE
885TCL_STUB_LIB_FLAG
886TCL_STUB_LIB_SPEC
887HAVE_TCL
888TARGET_READLINE_LIBS
889TARGET_READLINE_INC
890TARGET_HAVE_READLINE
891TARGET_DEBUG
892USE_AMALGAMATION
893OPT_FEATURE_FLAGS
894USE_GCOV
895BUILD_CFLAGS
896LIBOBJS
897LTLIBOBJS'
a.rottmann84e63352003-03-24 09:42:16 +0000898ac_subst_files=''
drh8b727472009-01-19 18:18:40 +0000899ac_user_opts='
900enable_option_checking
901enable_shared
902enable_static
903with_pic
904enable_fast_install
905with_gnu_ld
906enable_libtool_lock
907enable_largefile
drh8b727472009-01-19 18:18:40 +0000908enable_threadsafe
drh8b727472009-01-19 18:18:40 +0000909enable_releasemode
910enable_tempstore
911enable_tcl
912with_tcl
913enable_readline
914with_readline_lib
915with_readline_inc
916enable_debug
917enable_amalgamation
918enable_load_extension
919enable_gcov
920'
921 ac_precious_vars='build_alias
922host_alias
923target_alias
924CC
925CFLAGS
926LDFLAGS
927LIBS
928CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000929CPP
930TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000931
drh75897232000-05-29 14:26:00 +0000932
933# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000934ac_init_help=
935ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000936ac_unrecognized_opts=
937ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000938# The variables have the same names as the options, with
939# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000940cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000941exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000942no_create=
drh75897232000-05-29 14:26:00 +0000943no_recursion=
944prefix=NONE
945program_prefix=NONE
946program_suffix=NONE
947program_transform_name=s,x,x,
948silent=
949site=
950srcdir=
drh75897232000-05-29 14:26:00 +0000951verbose=
952x_includes=NONE
953x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000954
955# Installation directory options.
956# These are left unexpanded so users can "make install exec_prefix=/foo"
957# and all the variables that are supposed to be based on exec_prefix
958# by default will actually change.
959# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000960# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000961bindir='${exec_prefix}/bin'
962sbindir='${exec_prefix}/sbin'
963libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000964datarootdir='${prefix}/share'
965datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000966sysconfdir='${prefix}/etc'
967sharedstatedir='${prefix}/com'
968localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000969includedir='${prefix}/include'
970oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000971docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
972infodir='${datarootdir}/info'
973htmldir='${docdir}'
974dvidir='${docdir}'
975pdfdir='${docdir}'
976psdir='${docdir}'
977libdir='${exec_prefix}/lib'
978localedir='${datarootdir}/locale'
979mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000980
drh75897232000-05-29 14:26:00 +0000981ac_prev=
drh8b727472009-01-19 18:18:40 +0000982ac_dashdash=
drh75897232000-05-29 14:26:00 +0000983for ac_option
984do
drh75897232000-05-29 14:26:00 +0000985 # If the previous option needs an argument, assign it.
986 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000987 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000988 ac_prev=
989 continue
990 fi
991
drh8b727472009-01-19 18:18:40 +0000992 case $ac_option in
drh710658c2012-01-16 13:00:05 +0000993 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
994 *) ac_optarg=yes ;;
drh8b727472009-01-19 18:18:40 +0000995 esac
drh75897232000-05-29 14:26:00 +0000996
997 # Accept the important Cygnus configure options, so we can diagnose typos.
998
drh8b727472009-01-19 18:18:40 +0000999 case $ac_dashdash$ac_option in
1000 --)
1001 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +00001002
1003 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1004 ac_prev=bindir ;;
1005 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +00001006 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001007
1008 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001009 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001010 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001011 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001012
1013 -cache-file | --cache-file | --cache-fil | --cache-fi \
1014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1015 ac_prev=cache_file ;;
1016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001018 cache_file=$ac_optarg ;;
1019
1020 --config-cache | -C)
1021 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001022
drh8b727472009-01-19 18:18:40 +00001023 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001024 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001025 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001026 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001027
drh8b727472009-01-19 18:18:40 +00001028 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1029 | --dataroo | --dataro | --datar)
1030 ac_prev=datarootdir ;;
1031 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1032 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1033 datarootdir=$ac_optarg ;;
1034
drh75897232000-05-29 14:26:00 +00001035 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001036 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001037 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drh710658c2012-01-16 13:00:05 +00001039 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1040 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1044 *"
1045"enable_$ac_useropt"
1046"*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval enable_$ac_useropt=no ;;
1051
1052 -docdir | --docdir | --docdi | --doc | --do)
1053 ac_prev=docdir ;;
1054 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055 docdir=$ac_optarg ;;
1056
1057 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1058 ac_prev=dvidir ;;
1059 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001061
1062 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001063 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001064 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drh710658c2012-01-16 13:00:05 +00001066 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1067 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1071 *"
1072"enable_$ac_useropt"
1073"*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001076 esac
drh8b727472009-01-19 18:18:40 +00001077 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001078
1079 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081 | --exec | --exe | --ex)
1082 ac_prev=exec_prefix ;;
1083 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001086 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001087
1088 -gas | --gas | --ga | --g)
1089 # Obsolete; use --with-gas.
1090 with_gas=yes ;;
1091
drh71eb93e2001-09-28 01:34:43 +00001092 -help | --help | --hel | --he | -h)
1093 ac_init_help=long ;;
1094 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095 ac_init_help=recursive ;;
1096 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001098
1099 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001100 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001101 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001102 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001103
drh8b727472009-01-19 18:18:40 +00001104 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105 ac_prev=htmldir ;;
1106 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107 | --ht=*)
1108 htmldir=$ac_optarg ;;
1109
drh75897232000-05-29 14:26:00 +00001110 -includedir | --includedir | --includedi | --included | --include \
1111 | --includ | --inclu | --incl | --inc)
1112 ac_prev=includedir ;;
1113 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001115 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001116
1117 -infodir | --infodir | --infodi | --infod | --info | --inf)
1118 ac_prev=infodir ;;
1119 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001120 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001121
1122 -libdir | --libdir | --libdi | --libd)
1123 ac_prev=libdir ;;
1124 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001125 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001126
1127 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128 | --libexe | --libex | --libe)
1129 ac_prev=libexecdir ;;
1130 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001132 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001133
drh8b727472009-01-19 18:18:40 +00001134 -localedir | --localedir | --localedi | --localed | --locale)
1135 ac_prev=localedir ;;
1136 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137 localedir=$ac_optarg ;;
1138
drh75897232000-05-29 14:26:00 +00001139 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001140 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001141 ac_prev=localstatedir ;;
1142 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001143 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001144 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001145
1146 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147 ac_prev=mandir ;;
1148 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001149 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001150
1151 -nfp | --nfp | --nf)
1152 # Obsolete; use --without-fp.
1153 with_fp=no ;;
1154
1155 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001156 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001157 no_create=yes ;;
1158
1159 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1161 no_recursion=yes ;;
1162
1163 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165 | --oldin | --oldi | --old | --ol | --o)
1166 ac_prev=oldincludedir ;;
1167 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001170 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001171
1172 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173 ac_prev=prefix ;;
1174 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001175 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001176
1177 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178 | --program-pre | --program-pr | --program-p)
1179 ac_prev=program_prefix ;;
1180 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001182 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001183
1184 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185 | --program-suf | --program-su | --program-s)
1186 ac_prev=program_suffix ;;
1187 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001189 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001190
1191 -program-transform-name | --program-transform-name \
1192 | --program-transform-nam | --program-transform-na \
1193 | --program-transform-n | --program-transform- \
1194 | --program-transform | --program-transfor \
1195 | --program-transfo | --program-transf \
1196 | --program-trans | --program-tran \
1197 | --progr-tra | --program-tr | --program-t)
1198 ac_prev=program_transform_name ;;
1199 -program-transform-name=* | --program-transform-name=* \
1200 | --program-transform-nam=* | --program-transform-na=* \
1201 | --program-transform-n=* | --program-transform-=* \
1202 | --program-transform=* | --program-transfor=* \
1203 | --program-transfo=* | --program-transf=* \
1204 | --program-trans=* | --program-tran=* \
1205 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001206 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001207
drh8b727472009-01-19 18:18:40 +00001208 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209 ac_prev=pdfdir ;;
1210 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211 pdfdir=$ac_optarg ;;
1212
1213 -psdir | --psdir | --psdi | --psd | --ps)
1214 ac_prev=psdir ;;
1215 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1216 psdir=$ac_optarg ;;
1217
drh75897232000-05-29 14:26:00 +00001218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 silent=yes ;;
1221
1222 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223 ac_prev=sbindir ;;
1224 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001226 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001227
1228 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230 | --sharedst | --shareds | --shared | --share | --shar \
1231 | --sha | --sh)
1232 ac_prev=sharedstatedir ;;
1233 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001237 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001238
1239 -site | --site | --sit)
1240 ac_prev=site ;;
1241 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001242 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001243
1244 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245 ac_prev=srcdir ;;
1246 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001247 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001248
1249 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250 | --syscon | --sysco | --sysc | --sys | --sy)
1251 ac_prev=sysconfdir ;;
1252 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001254 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001255
1256 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001257 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001258 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001259 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001260
1261 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1262 verbose=yes ;;
1263
drh71eb93e2001-09-28 01:34:43 +00001264 -version | --version | --versio | --versi | --vers | -V)
1265 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001266
1267 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001268 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001269 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drh710658c2012-01-16 13:00:05 +00001271 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1272 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001273 ac_useropt_orig=$ac_useropt
1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1276 *"
1277"with_$ac_useropt"
1278"*) ;;
1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1280 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001281 esac
drh8b727472009-01-19 18:18:40 +00001282 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001283
1284 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001285 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001286 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drh710658c2012-01-16 13:00:05 +00001288 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1289 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1293 *"
1294"with_$ac_useropt"
1295"*) ;;
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1298 esac
1299 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001300
1301 --x)
1302 # Obsolete; use --with-x.
1303 with_x=yes ;;
1304
1305 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306 | --x-incl | --x-inc | --x-in | --x-i)
1307 ac_prev=x_includes ;;
1308 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001310 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001311
1312 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314 ac_prev=x_libraries ;;
1315 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001317 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001318
drh710658c2012-01-16 13:00:05 +00001319 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1320Try \`$0 --help' for more information." >&2
1321 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001322 ;;
1323
drh71eb93e2001-09-28 01:34:43 +00001324 *=*)
1325 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1326 # Reject names that are not valid shell variable names.
drh710658c2012-01-16 13:00:05 +00001327 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1328 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1329 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001330 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001331 export $ac_envvar ;;
1332
drh75897232000-05-29 14:26:00 +00001333 *)
drh71eb93e2001-09-28 01:34:43 +00001334 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001335 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001337 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drh710658c2012-01-16 13:00:05 +00001338 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +00001339 ;;
1340
1341 esac
1342done
1343
1344if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001345 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drh710658c2012-01-16 13:00:05 +00001346 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1347 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001348fi
1349
drh8b727472009-01-19 18:18:40 +00001350if test -n "$ac_unrecognized_opts"; then
1351 case $enable_option_checking in
1352 no) ;;
drh710658c2012-01-16 13:00:05 +00001353 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1354 { (exit 1); exit 1; }; } ;;
1355 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001356 esac
drh8b727472009-01-19 18:18:40 +00001357fi
drh866108f2008-05-13 00:57:21 +00001358
drh8b727472009-01-19 18:18:40 +00001359# Check all directory arguments for consistency.
1360for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001364do
drh8b727472009-01-19 18:18:40 +00001365 eval ac_val=\$$ac_var
1366 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001367 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001368 */ )
1369 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1370 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001371 esac
drh8b727472009-01-19 18:18:40 +00001372 # Be sure to have absolute directory names.
1373 case $ac_val in
1374 [\\/$]* | ?:[\\/]* ) continue;;
1375 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1376 esac
drh710658c2012-01-16 13:00:05 +00001377 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1378 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00001379done
drh75897232000-05-29 14:26:00 +00001380
drh71eb93e2001-09-28 01:34:43 +00001381# There might be people who depend on the old broken behavior: `$host'
1382# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001383# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001384build=$build_alias
1385host=$host_alias
1386target=$target_alias
drh75897232000-05-29 14:26:00 +00001387
a.rottmann84e63352003-03-24 09:42:16 +00001388# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001389if test "x$host_alias" != x; then
1390 if test "x$build_alias" = x; then
1391 cross_compiling=maybe
drh710658c2012-01-16 13:00:05 +00001392 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1393 If a cross compiler is detected then cross compile mode will be used." >&2
drh71eb93e2001-09-28 01:34:43 +00001394 elif test "x$build_alias" != "x$host_alias"; then
1395 cross_compiling=yes
1396 fi
1397fi
1398
1399ac_tool_prefix=
1400test -n "$host_alias" && ac_tool_prefix=$host_alias-
1401
1402test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001403
a.rottmann84e63352003-03-24 09:42:16 +00001404
drh8b727472009-01-19 18:18:40 +00001405ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406ac_ls_di=`ls -di .` &&
1407ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drh710658c2012-01-16 13:00:05 +00001408 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1409 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001410test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
drh710658c2012-01-16 13:00:05 +00001411 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1412 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001413
1414
drh75897232000-05-29 14:26:00 +00001415# Find the source files, if location was not specified.
1416if test -z "$srcdir"; then
1417 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir=`$as_dirname -- "$as_myself" ||
1420$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424$as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426 s//\1/
1427 q
1428 }
1429 /^X\(\/\/\)[^/].*/{
1430 s//\1/
1431 q
1432 }
1433 /^X\(\/\/\)$/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\).*/{
1438 s//\1/
1439 q
1440 }
1441 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001442 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001443 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001444 srcdir=..
1445 fi
1446else
1447 ac_srcdir_defaulted=no
1448fi
drh8b727472009-01-19 18:18:40 +00001449if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
drh710658c2012-01-16 13:00:05 +00001451 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1452 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001453fi
drh8b727472009-01-19 18:18:40 +00001454ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455ac_abs_confdir=`(
drh710658c2012-01-16 13:00:05 +00001456 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1457 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001458 pwd)`
1459# When building in place, set srcdir=.
1460if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 srcdir=.
1462fi
1463# Remove unnecessary trailing slashes from srcdir.
1464# Double slashes in file names in object file debugging info
1465# mess up M-x gdb in Emacs.
1466case $srcdir in
1467*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468esac
1469for ac_var in $ac_precious_vars; do
1470 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_${ac_var}_value=\$${ac_var}
1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474done
drh75897232000-05-29 14:26:00 +00001475
drh71eb93e2001-09-28 01:34:43 +00001476#
1477# Report the --help message.
1478#
1479if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001482 cat <<_ACEOF
drh916cd232014-10-28 12:35:28 +00001483\`configure' configures sqlite 3.8.8 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001484
1485Usage: $0 [OPTION]... [VAR=VALUE]...
1486
1487To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488VAR=VALUE. See below for descriptions of some of the useful variables.
1489
1490Defaults for the options are specified in brackets.
1491
1492Configuration:
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
drh710658c2012-01-16 13:00:05 +00001497 -q, --quiet, --silent do not print \`checking...' messages
drh71eb93e2001-09-28 01:34:43 +00001498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1502
drh71eb93e2001-09-28 01:34:43 +00001503Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001505 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001507 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001508
1509By default, \`make install' will install all the files in
1510\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512for instance \`--prefix=\$HOME'.
1513
1514For better control, use the options below.
1515
1516Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --libdir=DIR object code libraries [EPREFIX/lib]
1524 --includedir=DIR C header files [PREFIX/include]
1525 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 --infodir=DIR info documentation [DATAROOTDIR/info]
1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 --mandir=DIR man documentation [DATAROOTDIR/man]
1531 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1532 --htmldir=DIR html documentation [DOCDIR]
1533 --dvidir=DIR dvi documentation [DOCDIR]
1534 --pdfdir=DIR pdf documentation [DOCDIR]
1535 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001536_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001537
a.rottmann84e63352003-03-24 09:42:16 +00001538 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001539
1540System types:
1541 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001542 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1543_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001544fi
1545
1546if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001547 case $ac_init_help in
drh916cd232014-10-28 12:35:28 +00001548 short | recursive ) echo "Configuration of sqlite 3.8.8:";;
mlcreechb87057f2008-03-06 07:19:20 +00001549 esac
a.rottmann84e63352003-03-24 09:42:16 +00001550 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001551
1552Optional Features:
drh8b727472009-01-19 18:18:40 +00001553 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001554 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1555 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001556 --enable-shared[=PKGS] build shared libraries [default=yes]
1557 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001558 --enable-fast-install[=PKGS]
1559 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001560 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001561 --disable-largefile omit support for large files
drh05c7e0b2015-01-10 14:27:17 +00001562 --disable-threadsafe Disable mutexing
drh94e4f822006-02-15 02:00:25 +00001563 --enable-releasemode Support libtool link to release mode
1564 --enable-tempstore Use an in-ram database for temporary tables
1565 (never,no,yes,always)
1566 --disable-tcl do not build TCL extension
vapier7f19c022007-02-17 14:46:31 +00001567 --disable-readline disable readline support [default=detect]
drh94e4f822006-02-15 02:00:25 +00001568 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001569 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001570 separately
drh05c7e0b2015-01-10 14:27:17 +00001571 --disable-load-extension
1572 Disable loading of external extensions
mlcreechaac7b932008-04-01 02:45:22 +00001573 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001574
1575Optional Packages:
1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001578 --with-pic try to use only PIC/non-PIC objects [default=use
1579 both]
mlcreech636a9952008-05-05 22:52:56 +00001580 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh94e4f822006-02-15 02:00:25 +00001581 --with-tcl=DIR directory containing tcl configuration
1582 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001583 --with-readline-lib specify readline library
1584 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001585
1586Some influential environment variables:
1587 CC C compiler command
1588 CFLAGS C compiler flags
1589 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1590 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001591 LIBS libraries to pass to the linker, e.g. -l<library>
drh710658c2012-01-16 13:00:05 +00001592 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
drh8b727472009-01-19 18:18:40 +00001593 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001594 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001595 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001596
1597Use these variables to override the choices made by `configure' or to help
1598it to find libraries and programs with nonstandard names/locations.
1599
a.rottmann84e63352003-03-24 09:42:16 +00001600_ACEOF
drh8b727472009-01-19 18:18:40 +00001601ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001602fi
1603
1604if test "$ac_init_help" = "recursive"; then
1605 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001606 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001607 test -d "$ac_dir" ||
1608 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1609 continue
a.rottmann84e63352003-03-24 09:42:16 +00001610 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001611
drh8b727472009-01-19 18:18:40 +00001612case "$ac_dir" in
1613.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614*)
1615 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1616 # A ".." for each directory in $ac_dir_suffix.
1617 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1618 case $ac_top_builddir_sub in
1619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621 esac ;;
1622esac
1623ac_abs_top_builddir=$ac_pwd
1624ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625# for backward compatibility:
1626ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001627
a.rottmann84e63352003-03-24 09:42:16 +00001628case $srcdir in
drh8b727472009-01-19 18:18:40 +00001629 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001630 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001631 ac_top_srcdir=$ac_top_builddir_sub
1632 ac_abs_top_srcdir=$ac_pwd ;;
1633 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001634 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001635 ac_top_srcdir=$srcdir
1636 ac_abs_top_srcdir=$srcdir ;;
1637 *) # Relative name.
1638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639 ac_top_srcdir=$ac_top_build_prefix$srcdir
1640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001641esac
drh8b727472009-01-19 18:18:40 +00001642ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001643
drh8b727472009-01-19 18:18:40 +00001644 cd "$ac_dir" || { ac_status=$?; continue; }
1645 # Check for guested configure.
1646 if test -f "$ac_srcdir/configure.gnu"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649 elif test -f "$ac_srcdir/configure"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001652 else
drh8b727472009-01-19 18:18:40 +00001653 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1654 fi || ac_status=$?
1655 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001656 done
1657fi
1658
drh8b727472009-01-19 18:18:40 +00001659test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001660if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001661 cat <<\_ACEOF
drh916cd232014-10-28 12:35:28 +00001662sqlite configure 3.8.8
drh710658c2012-01-16 13:00:05 +00001663generated by GNU Autoconf 2.62
drh71eb93e2001-09-28 01:34:43 +00001664
drh710658c2012-01-16 13:00:05 +00001665Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16662002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001667This configure script is free software; the Free Software Foundation
1668gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001669_ACEOF
drh8b727472009-01-19 18:18:40 +00001670 exit
drh71eb93e2001-09-28 01:34:43 +00001671fi
drh8b727472009-01-19 18:18:40 +00001672cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001673This file contains any messages produced by compilers while
1674running configure, to aid debugging if configure makes a mistake.
1675
drh916cd232014-10-28 12:35:28 +00001676It was created by sqlite $as_me 3.8.8, which was
drh710658c2012-01-16 13:00:05 +00001677generated by GNU Autoconf 2.62. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001678
1679 $ $0 $@
1680
a.rottmann84e63352003-03-24 09:42:16 +00001681_ACEOF
drh8b727472009-01-19 18:18:40 +00001682exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00001683{
1684cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001685## --------- ##
1686## Platform. ##
1687## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001688
1689hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1690uname -m = `(uname -m) 2>/dev/null || echo unknown`
1691uname -r = `(uname -r) 2>/dev/null || echo unknown`
1692uname -s = `(uname -s) 2>/dev/null || echo unknown`
1693uname -v = `(uname -v) 2>/dev/null || echo unknown`
1694
1695/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1696/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1697
1698/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1699/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1700/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00001701/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00001702/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1703/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1704/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1705
drh71eb93e2001-09-28 01:34:43 +00001706_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001707
1708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709for as_dir in $PATH
1710do
1711 IFS=$as_save_IFS
1712 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00001713 $as_echo "PATH: $as_dir"
1714done
drh8b727472009-01-19 18:18:40 +00001715IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00001716
drh71eb93e2001-09-28 01:34:43 +00001717} >&5
1718
a.rottmann84e63352003-03-24 09:42:16 +00001719cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001720
a.rottmann84e63352003-03-24 09:42:16 +00001721
1722## ----------- ##
1723## Core tests. ##
1724## ----------- ##
1725
1726_ACEOF
1727
drh71eb93e2001-09-28 01:34:43 +00001728
1729# Keep a trace of the command line.
1730# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001731# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001732# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001733# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001734ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001735ac_configure_args0=
1736ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00001737ac_must_keep_next=false
1738for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001739do
a.rottmann84e63352003-03-24 09:42:16 +00001740 for ac_arg
1741 do
1742 case $ac_arg in
1743 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1744 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1745 | -silent | --silent | --silen | --sile | --sil)
1746 continue ;;
drh8b727472009-01-19 18:18:40 +00001747 *\'*)
1748 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00001749 esac
1750 case $ac_pass in
drh710658c2012-01-16 13:00:05 +00001751 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
a.rottmann84e63352003-03-24 09:42:16 +00001752 2)
drh710658c2012-01-16 13:00:05 +00001753 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00001754 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001755 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001756 else
a.rottmann964dbb12004-02-26 19:47:42 +00001757 case $ac_arg in
1758 *=* | --config-cache | -C | -disable-* | --disable-* \
1759 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1760 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1761 | -with-* | --with-* | -without-* | --without-* | --x)
1762 case "$ac_configure_args0 " in
1763 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1764 esac
1765 ;;
1766 -* ) ac_must_keep_next=true ;;
1767 esac
a.rottmann84e63352003-03-24 09:42:16 +00001768 fi
drh710658c2012-01-16 13:00:05 +00001769 ac_configure_args="$ac_configure_args '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00001770 ;;
1771 esac
1772 done
drh71eb93e2001-09-28 01:34:43 +00001773done
drh710658c2012-01-16 13:00:05 +00001774$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1775$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001776
1777# When interrupted or exit'd, cleanup temporary files, and complete
1778# config.log. We remove comments because anyway the quotes in there
1779# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00001780# WARNING: Use '\'' to represent an apostrophe within the trap.
1781# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00001782trap 'exit_status=$?
1783 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001784 {
1785 echo
1786
drh710658c2012-01-16 13:00:05 +00001787 cat <<\_ASBOX
1788## ---------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001789## Cache variables. ##
drh710658c2012-01-16 13:00:05 +00001790## ---------------- ##
1791_ASBOX
a.rottmann84e63352003-03-24 09:42:16 +00001792 echo
1793 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00001794(
1795 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1796 eval ac_val=\$$ac_var
1797 case $ac_val in #(
1798 *${as_nl}*)
1799 case $ac_var in #(
drh710658c2012-01-16 13:00:05 +00001800 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1801$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
drh8b727472009-01-19 18:18:40 +00001802 esac
1803 case $ac_var in #(
1804 _ | IFS | as_nl) ;; #(
1805 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drh710658c2012-01-16 13:00:05 +00001806 *) $as_unset $ac_var ;;
drh8b727472009-01-19 18:18:40 +00001807 esac ;;
1808 esac
1809 done
drh71eb93e2001-09-28 01:34:43 +00001810 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00001811 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1812 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00001813 sed -n \
drh8b727472009-01-19 18:18:40 +00001814 "s/'\''/'\''\\\\'\'''\''/g;
1815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1816 ;; #(
drh866108f2008-05-13 00:57:21 +00001817 *)
drh8b727472009-01-19 18:18:40 +00001818 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00001819 ;;
drh8b727472009-01-19 18:18:40 +00001820 esac |
1821 sort
1822)
a.rottmann84e63352003-03-24 09:42:16 +00001823 echo
1824
drh710658c2012-01-16 13:00:05 +00001825 cat <<\_ASBOX
1826## ----------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001827## Output variables. ##
drh710658c2012-01-16 13:00:05 +00001828## ----------------- ##
1829_ASBOX
a.rottmann84e63352003-03-24 09:42:16 +00001830 echo
1831 for ac_var in $ac_subst_vars
1832 do
drh8b727472009-01-19 18:18:40 +00001833 eval ac_val=\$$ac_var
1834 case $ac_val in
1835 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1836 esac
1837 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001838 done | sort
1839 echo
1840
1841 if test -n "$ac_subst_files"; then
drh710658c2012-01-16 13:00:05 +00001842 cat <<\_ASBOX
1843## ------------------- ##
drh8b727472009-01-19 18:18:40 +00001844## File substitutions. ##
drh710658c2012-01-16 13:00:05 +00001845## ------------------- ##
1846_ASBOX
a.rottmann84e63352003-03-24 09:42:16 +00001847 echo
1848 for ac_var in $ac_subst_files
1849 do
drh8b727472009-01-19 18:18:40 +00001850 eval ac_val=\$$ac_var
1851 case $ac_val in
1852 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1853 esac
1854 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001855 done | sort
1856 echo
1857 fi
1858
1859 if test -s confdefs.h; then
drh710658c2012-01-16 13:00:05 +00001860 cat <<\_ASBOX
1861## ----------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001862## confdefs.h. ##
drh710658c2012-01-16 13:00:05 +00001863## ----------- ##
1864_ASBOX
a.rottmann84e63352003-03-24 09:42:16 +00001865 echo
drh8b727472009-01-19 18:18:40 +00001866 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00001867 echo
1868 fi
1869 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00001870 $as_echo "$as_me: caught signal $ac_signal"
1871 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00001872 } >&5
drh8b727472009-01-19 18:18:40 +00001873 rm -f core *.core core.conftest.* &&
1874 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001875 exit $exit_status
drh8b727472009-01-19 18:18:40 +00001876' 0
drh71eb93e2001-09-28 01:34:43 +00001877for ac_signal in 1 2 13 15; do
drh710658c2012-01-16 13:00:05 +00001878 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
drh71eb93e2001-09-28 01:34:43 +00001879done
1880ac_signal=0
1881
1882# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00001883rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00001884
a.rottmann84e63352003-03-24 09:42:16 +00001885# Predefined preprocessor variables.
1886
1887cat >>confdefs.h <<_ACEOF
1888#define PACKAGE_NAME "$PACKAGE_NAME"
1889_ACEOF
1890
drh710658c2012-01-16 13:00:05 +00001891
a.rottmann84e63352003-03-24 09:42:16 +00001892cat >>confdefs.h <<_ACEOF
1893#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1894_ACEOF
1895
drh710658c2012-01-16 13:00:05 +00001896
a.rottmann84e63352003-03-24 09:42:16 +00001897cat >>confdefs.h <<_ACEOF
1898#define PACKAGE_VERSION "$PACKAGE_VERSION"
1899_ACEOF
1900
drh710658c2012-01-16 13:00:05 +00001901
a.rottmann84e63352003-03-24 09:42:16 +00001902cat >>confdefs.h <<_ACEOF
1903#define PACKAGE_STRING "$PACKAGE_STRING"
1904_ACEOF
1905
a.rottmann84e63352003-03-24 09:42:16 +00001906
dana9f39fd2011-08-12 16:34:42 +00001907cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00001908#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
dana9f39fd2011-08-12 16:34:42 +00001909_ACEOF
1910
a.rottmann84e63352003-03-24 09:42:16 +00001911
drh71eb93e2001-09-28 01:34:43 +00001912# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00001913# Prefer an explicitly selected file to automatically selected ones.
1914ac_site_file1=NONE
1915ac_site_file2=NONE
1916if test -n "$CONFIG_SITE"; then
drh710658c2012-01-16 13:00:05 +00001917 ac_site_file1=$CONFIG_SITE
drh8b727472009-01-19 18:18:40 +00001918elif test "x$prefix" != xNONE; then
1919 ac_site_file1=$prefix/share/config.site
1920 ac_site_file2=$prefix/etc/config.site
1921else
1922 ac_site_file1=$ac_default_prefix/share/config.site
1923 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00001924fi
drh8b727472009-01-19 18:18:40 +00001925for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1926do
1927 test "x$ac_site_file" = xNONE && continue
drh710658c2012-01-16 13:00:05 +00001928 if test -r "$ac_site_file"; then
1929 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
drh8b727472009-01-19 18:18:40 +00001930$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001931 sed 's/^/| /' "$ac_site_file" >&5
drh710658c2012-01-16 13:00:05 +00001932 . "$ac_site_file"
drh75897232000-05-29 14:26:00 +00001933 fi
1934done
1935
1936if test -r "$cache_file"; then
drh710658c2012-01-16 13:00:05 +00001937 # Some versions of bash will fail to source /dev/null (special
1938 # files actually), so we avoid doing that.
1939 if test -f "$cache_file"; then
1940 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00001941$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001942 case $cache_file in
drh8b727472009-01-19 18:18:40 +00001943 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1944 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00001945 esac
1946 fi
drh75897232000-05-29 14:26:00 +00001947else
drh710658c2012-01-16 13:00:05 +00001948 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00001949$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001950 >$cache_file
1951fi
1952
1953# Check that the precious variables saved in the cache have kept the same
1954# value.
1955ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00001956for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00001957 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1958 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00001959 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1960 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00001961 case $ac_old_set,$ac_new_set in
1962 set,)
drh710658c2012-01-16 13:00:05 +00001963 { $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 +00001964$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001965 ac_cache_corrupted=: ;;
1966 ,set)
drh710658c2012-01-16 13:00:05 +00001967 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00001968$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001969 ac_cache_corrupted=: ;;
1970 ,);;
1971 *)
1972 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00001973 # differences in whitespace do not lead to failure.
1974 ac_old_val_w=`echo x $ac_old_val`
1975 ac_new_val_w=`echo x $ac_new_val`
1976 if test "$ac_old_val_w" != "$ac_new_val_w"; then
drh710658c2012-01-16 13:00:05 +00001977 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00001978$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1979 ac_cache_corrupted=:
1980 else
drh710658c2012-01-16 13:00:05 +00001981 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00001982$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1983 eval $ac_var=\$ac_old_val
1984 fi
drh710658c2012-01-16 13:00:05 +00001985 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
drh8b727472009-01-19 18:18:40 +00001986$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
drh710658c2012-01-16 13:00:05 +00001987 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
drh8b727472009-01-19 18:18:40 +00001988$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001989 fi;;
1990 esac
a.rottmann84e63352003-03-24 09:42:16 +00001991 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001992 if test "$ac_new_set" = set; then
1993 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00001994 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00001995 *) ac_arg=$ac_var=$ac_new_val ;;
1996 esac
1997 case " $ac_configure_args " in
1998 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
drh710658c2012-01-16 13:00:05 +00001999 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002000 esac
2001 fi
2002done
2003if $ac_cache_corrupted; then
drh710658c2012-01-16 13:00:05 +00002004 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
drh8b727472009-01-19 18:18:40 +00002005$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
drh710658c2012-01-16 13:00:05 +00002006 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2007$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2008 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00002009fi
drh710658c2012-01-16 13:00:05 +00002010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
drh8b727472009-01-19 18:18:40 +00002034
drh75897232000-05-29 14:26:00 +00002035ac_ext=c
drh75897232000-05-29 14:26:00 +00002036ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002040
a.rottmann84e63352003-03-24 09:42:16 +00002041
2042
drh04446102009-06-15 00:04:06 +00002043sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002044if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
drh710658c2012-01-16 13:00:05 +00002045{ { $as_echo "$as_me:$LINENO: error: configure script is out of date:
vapierfaa68db2009-04-01 07:38:31 +00002046 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2047 top level VERSION file = $sqlite_version_sanity_check
drh710658c2012-01-16 13:00:05 +00002048please regen with autoconf" >&5
2049$as_echo "$as_me: error: configure script is out of date:
2050 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2051 top level VERSION file = $sqlite_version_sanity_check
2052please regen with autoconf" >&2;}
2053 { (exit 1); exit 1; }; }
vapierfaa68db2009-04-01 07:38:31 +00002054fi
2055
drh75897232000-05-29 14:26:00 +00002056#########
drh71eb93e2001-09-28 01:34:43 +00002057# Programs needed
drh75897232000-05-29 14:26:00 +00002058#
mlcreech636a9952008-05-05 22:52:56 +00002059case `pwd` in
2060 *\ * | *\ *)
drh710658c2012-01-16 13:00:05 +00002061 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
drh8b727472009-01-19 18:18:40 +00002062$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002063esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002064
mlcreech94984912008-03-04 19:03:08 +00002065
mlcreech636a9952008-05-05 22:52:56 +00002066
vapier6acb2cf2009-01-28 04:46:28 +00002067macro_version='2.2.6'
2068macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002069
mlcreech94984912008-03-04 19:03:08 +00002070
mlcreech94984912008-03-04 19:03:08 +00002071
a.rottmann9bc8b932004-02-29 15:18:31 +00002072
mlcreech636a9952008-05-05 22:52:56 +00002073
2074
2075
2076
2077
2078
2079
2080
2081
2082ltmain="$ac_aux_dir/ltmain.sh"
2083
drh71eb93e2001-09-28 01:34:43 +00002084ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002085for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
drh0fe0c462011-09-22 00:56:38 +00002086 if test -f "$ac_dir/install-sh"; then
2087 ac_aux_dir=$ac_dir
2088 ac_install_sh="$ac_aux_dir/install-sh -c"
2089 break
2090 elif test -f "$ac_dir/install.sh"; then
2091 ac_aux_dir=$ac_dir
2092 ac_install_sh="$ac_aux_dir/install.sh -c"
2093 break
2094 elif test -f "$ac_dir/shtool"; then
2095 ac_aux_dir=$ac_dir
2096 ac_install_sh="$ac_aux_dir/shtool install -c"
2097 break
2098 fi
drh71eb93e2001-09-28 01:34:43 +00002099done
2100if test -z "$ac_aux_dir"; then
drh710658c2012-01-16 13:00:05 +00002101 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2102$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2103 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002104fi
drh8b727472009-01-19 18:18:40 +00002105
2106# These three variables are undocumented and unsupported,
2107# and are intended to be withdrawn in a future Autoconf release.
2108# They can cause serious problems if a builder's source tree is in a directory
2109# whose full name contains unusual characters.
2110ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2111ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2112ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2113
drh71eb93e2001-09-28 01:34:43 +00002114
2115# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002116$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
drh710658c2012-01-16 13:00:05 +00002117 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2118$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2119 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002120
drh710658c2012-01-16 13:00:05 +00002121{ $as_echo "$as_me:$LINENO: checking build system type" >&5
drh8b727472009-01-19 18:18:40 +00002122$as_echo_n "checking build system type... " >&6; }
drh710658c2012-01-16 13:00:05 +00002123if test "${ac_cv_build+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002124 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002125else
drh8b727472009-01-19 18:18:40 +00002126 ac_build_alias=$build_alias
2127test "x$ac_build_alias" = x &&
2128 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2129test "x$ac_build_alias" = x &&
drh710658c2012-01-16 13:00:05 +00002130 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2131$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2132 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00002133ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
drh710658c2012-01-16 13:00:05 +00002134 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2135$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2136 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002137
2138fi
drh710658c2012-01-16 13:00:05 +00002139{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
drh8b727472009-01-19 18:18:40 +00002140$as_echo "$ac_cv_build" >&6; }
2141case $ac_cv_build in
2142*-*-*) ;;
drh710658c2012-01-16 13:00:05 +00002143*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2144$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2145 { (exit 1); exit 1; }; };;
drh8b727472009-01-19 18:18:40 +00002146esac
drh71eb93e2001-09-28 01:34:43 +00002147build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002148ac_save_IFS=$IFS; IFS='-'
2149set x $ac_cv_build
2150shift
2151build_cpu=$1
2152build_vendor=$2
2153shift; shift
2154# Remember, the first character of IFS is used to create $*,
2155# except with old shells:
2156build_os=$*
2157IFS=$ac_save_IFS
2158case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002159
a.rottmann84e63352003-03-24 09:42:16 +00002160
drh710658c2012-01-16 13:00:05 +00002161{ $as_echo "$as_me:$LINENO: checking host system type" >&5
drh8b727472009-01-19 18:18:40 +00002162$as_echo_n "checking host system type... " >&6; }
drh710658c2012-01-16 13:00:05 +00002163if test "${ac_cv_host+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002164 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002165else
drh8b727472009-01-19 18:18:40 +00002166 if test "x$host_alias" = x; then
2167 ac_cv_host=$ac_cv_build
2168else
2169 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
drh710658c2012-01-16 13:00:05 +00002170 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2171$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2172 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00002173fi
drh71eb93e2001-09-28 01:34:43 +00002174
2175fi
drh710658c2012-01-16 13:00:05 +00002176{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
drh8b727472009-01-19 18:18:40 +00002177$as_echo "$ac_cv_host" >&6; }
2178case $ac_cv_host in
2179*-*-*) ;;
drh710658c2012-01-16 13:00:05 +00002180*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2181$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2182 { (exit 1); exit 1; }; };;
drh8b727472009-01-19 18:18:40 +00002183esac
drh71eb93e2001-09-28 01:34:43 +00002184host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002185ac_save_IFS=$IFS; IFS='-'
2186set x $ac_cv_host
2187shift
2188host_cpu=$1
2189host_vendor=$2
2190shift; shift
2191# Remember, the first character of IFS is used to create $*,
2192# except with old shells:
2193host_os=$*
2194IFS=$ac_save_IFS
2195case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002196
a.rottmann84e63352003-03-24 09:42:16 +00002197
drh71eb93e2001-09-28 01:34:43 +00002198ac_ext=c
2199ac_cpp='$CPP $CPPFLAGS'
2200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2202ac_compiler_gnu=$ac_cv_c_compiler_gnu
2203if test -n "$ac_tool_prefix"; then
2204 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2205set dummy ${ac_tool_prefix}gcc; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002206{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002207$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002208if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002209 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002210else
2211 if test -n "$CC"; then
2212 ac_cv_prog_CC="$CC" # Let the user override the test.
2213else
a.rottmann84e63352003-03-24 09:42:16 +00002214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215for as_dir in $PATH
2216do
2217 IFS=$as_save_IFS
2218 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002219 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002220 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 +00002221 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drh710658c2012-01-16 13:00:05 +00002222 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002223 break 2
2224 fi
2225done
drh710658c2012-01-16 13:00:05 +00002226done
drh8b727472009-01-19 18:18:40 +00002227IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002228
2229fi
2230fi
2231CC=$ac_cv_prog_CC
2232if test -n "$CC"; then
drh710658c2012-01-16 13:00:05 +00002233 { $as_echo "$as_me:$LINENO: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002234$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002235else
drh710658c2012-01-16 13:00:05 +00002236 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002237$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002238fi
2239
drh8b727472009-01-19 18:18:40 +00002240
drh71eb93e2001-09-28 01:34:43 +00002241fi
2242if test -z "$ac_cv_prog_CC"; then
2243 ac_ct_CC=$CC
2244 # Extract the first word of "gcc", so it can be a program name with args.
2245set dummy gcc; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002246{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002247$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002248if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002249 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002250else
2251 if test -n "$ac_ct_CC"; then
2252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2253else
a.rottmann84e63352003-03-24 09:42:16 +00002254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255for as_dir in $PATH
2256do
2257 IFS=$as_save_IFS
2258 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002259 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002260 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 +00002261 ac_cv_prog_ac_ct_CC="gcc"
drh710658c2012-01-16 13:00:05 +00002262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002263 break 2
2264 fi
2265done
drh710658c2012-01-16 13:00:05 +00002266done
drh8b727472009-01-19 18:18:40 +00002267IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002268
2269fi
2270fi
2271ac_ct_CC=$ac_cv_prog_ac_ct_CC
2272if test -n "$ac_ct_CC"; then
drh710658c2012-01-16 13:00:05 +00002273 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002274$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002275else
drh710658c2012-01-16 13:00:05 +00002276 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002277$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002278fi
2279
drh8b727472009-01-19 18:18:40 +00002280 if test "x$ac_ct_CC" = x; then
2281 CC=""
2282 else
2283 case $cross_compiling:$ac_tool_warned in
2284yes:)
drh710658c2012-01-16 13:00:05 +00002285{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2286whose name does not start with the host triplet. If you think this
2287configuration is useful to you, please write to autoconf@gnu.org." >&5
2288$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2289whose name does not start with the host triplet. If you think this
2290configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00002291ac_tool_warned=yes ;;
2292esac
2293 CC=$ac_ct_CC
2294 fi
drh71eb93e2001-09-28 01:34:43 +00002295else
2296 CC="$ac_cv_prog_CC"
2297fi
2298
2299if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002300 if test -n "$ac_tool_prefix"; then
2301 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002302set dummy ${ac_tool_prefix}cc; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002303{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002304$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002305if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002306 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002307else
2308 if test -n "$CC"; then
2309 ac_cv_prog_CC="$CC" # Let the user override the test.
2310else
a.rottmann84e63352003-03-24 09:42:16 +00002311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312for as_dir in $PATH
2313do
2314 IFS=$as_save_IFS
2315 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002316 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002317 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 +00002318 ac_cv_prog_CC="${ac_tool_prefix}cc"
drh710658c2012-01-16 13:00:05 +00002319 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002320 break 2
2321 fi
2322done
drh710658c2012-01-16 13:00:05 +00002323done
drh8b727472009-01-19 18:18:40 +00002324IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002325
2326fi
2327fi
2328CC=$ac_cv_prog_CC
2329if test -n "$CC"; then
drh710658c2012-01-16 13:00:05 +00002330 { $as_echo "$as_me:$LINENO: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002331$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002332else
drh710658c2012-01-16 13:00:05 +00002333 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002334$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002335fi
2336
drh8b727472009-01-19 18:18:40 +00002337
a.rottmann84e63352003-03-24 09:42:16 +00002338 fi
drh71eb93e2001-09-28 01:34:43 +00002339fi
2340if test -z "$CC"; then
2341 # Extract the first word of "cc", so it can be a program name with args.
2342set dummy cc; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002343{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002344$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002345if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002346 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002347else
2348 if test -n "$CC"; then
2349 ac_cv_prog_CC="$CC" # Let the user override the test.
2350else
2351 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353for as_dir in $PATH
2354do
2355 IFS=$as_save_IFS
2356 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002357 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002359 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2360 ac_prog_rejected=yes
2361 continue
2362 fi
2363 ac_cv_prog_CC="cc"
drh710658c2012-01-16 13:00:05 +00002364 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002365 break 2
2366 fi
2367done
drh710658c2012-01-16 13:00:05 +00002368done
drh8b727472009-01-19 18:18:40 +00002369IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002370
2371if test $ac_prog_rejected = yes; then
2372 # We found a bogon in the path, so make sure we never use it.
2373 set dummy $ac_cv_prog_CC
2374 shift
2375 if test $# != 0; then
2376 # We chose a different compiler from the bogus one.
2377 # However, it has the same basename, so the bogon will be chosen
2378 # first if we set CC to just the basename; use the full file name.
2379 shift
a.rottmann84e63352003-03-24 09:42:16 +00002380 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002381 fi
2382fi
2383fi
2384fi
2385CC=$ac_cv_prog_CC
2386if test -n "$CC"; then
drh710658c2012-01-16 13:00:05 +00002387 { $as_echo "$as_me:$LINENO: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002388$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002389else
drh710658c2012-01-16 13:00:05 +00002390 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002391$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002392fi
2393
drh8b727472009-01-19 18:18:40 +00002394
drh71eb93e2001-09-28 01:34:43 +00002395fi
2396if test -z "$CC"; then
2397 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002398 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002399 do
2400 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2401set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002402{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002403$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002404if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002405 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002406else
2407 if test -n "$CC"; then
2408 ac_cv_prog_CC="$CC" # Let the user override the test.
2409else
a.rottmann84e63352003-03-24 09:42:16 +00002410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411for as_dir in $PATH
2412do
2413 IFS=$as_save_IFS
2414 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002415 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002416 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 +00002417 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drh710658c2012-01-16 13:00:05 +00002418 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002419 break 2
2420 fi
2421done
drh710658c2012-01-16 13:00:05 +00002422done
drh8b727472009-01-19 18:18:40 +00002423IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002424
2425fi
2426fi
2427CC=$ac_cv_prog_CC
2428if test -n "$CC"; then
drh710658c2012-01-16 13:00:05 +00002429 { $as_echo "$as_me:$LINENO: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002430$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002431else
drh710658c2012-01-16 13:00:05 +00002432 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002433$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002434fi
2435
drh8b727472009-01-19 18:18:40 +00002436
drh71eb93e2001-09-28 01:34:43 +00002437 test -n "$CC" && break
2438 done
2439fi
2440if test -z "$CC"; then
2441 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002442 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002443do
2444 # Extract the first word of "$ac_prog", so it can be a program name with args.
2445set dummy $ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002446{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002447$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002448if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002449 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002450else
2451 if test -n "$ac_ct_CC"; then
2452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2453else
a.rottmann84e63352003-03-24 09:42:16 +00002454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455for as_dir in $PATH
2456do
2457 IFS=$as_save_IFS
2458 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002459 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002460 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 +00002461 ac_cv_prog_ac_ct_CC="$ac_prog"
drh710658c2012-01-16 13:00:05 +00002462 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002463 break 2
2464 fi
2465done
drh710658c2012-01-16 13:00:05 +00002466done
drh8b727472009-01-19 18:18:40 +00002467IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002468
2469fi
2470fi
2471ac_ct_CC=$ac_cv_prog_ac_ct_CC
2472if test -n "$ac_ct_CC"; then
drh710658c2012-01-16 13:00:05 +00002473 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002474$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002475else
drh710658c2012-01-16 13:00:05 +00002476 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002477$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002478fi
2479
drh8b727472009-01-19 18:18:40 +00002480
drh71eb93e2001-09-28 01:34:43 +00002481 test -n "$ac_ct_CC" && break
2482done
2483
drh8b727472009-01-19 18:18:40 +00002484 if test "x$ac_ct_CC" = x; then
2485 CC=""
2486 else
2487 case $cross_compiling:$ac_tool_warned in
2488yes:)
drh710658c2012-01-16 13:00:05 +00002489{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2490whose name does not start with the host triplet. If you think this
2491configuration is useful to you, please write to autoconf@gnu.org." >&5
2492$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2493whose name does not start with the host triplet. If you think this
2494configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00002495ac_tool_warned=yes ;;
2496esac
2497 CC=$ac_ct_CC
2498 fi
drh71eb93e2001-09-28 01:34:43 +00002499fi
2500
2501fi
2502
a.rottmann84e63352003-03-24 09:42:16 +00002503
drh710658c2012-01-16 13:00:05 +00002504test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2505See \`config.log' for more details." >&5
2506$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2507See \`config.log' for more details." >&2;}
2508 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002509
2510# Provide some information about the compiler.
drh710658c2012-01-16 13:00:05 +00002511$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
drh8b727472009-01-19 18:18:40 +00002512set X $ac_compile
2513ac_compiler=$2
drh710658c2012-01-16 13:00:05 +00002514{ (ac_try="$ac_compiler --version >&5"
drh8b727472009-01-19 18:18:40 +00002515case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518esac
drh710658c2012-01-16 13:00:05 +00002519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2520$as_echo "$ac_try_echo") >&5
2521 (eval "$ac_compiler --version >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002522 ac_status=$?
drh710658c2012-01-16 13:00:05 +00002523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }
2525{ (ac_try="$ac_compiler -v >&5"
2526case "(($ac_try" in
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2529esac
2530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2531$as_echo "$ac_try_echo") >&5
2532 (eval "$ac_compiler -v >&5") 2>&5
2533 ac_status=$?
2534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }
2536{ (ac_try="$ac_compiler -V >&5"
2537case "(($ac_try" in
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2540esac
2541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2542$as_echo "$ac_try_echo") >&5
2543 (eval "$ac_compiler -V >&5") 2>&5
2544 ac_status=$?
2545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }
drh71eb93e2001-09-28 01:34:43 +00002547
drh710658c2012-01-16 13:00:05 +00002548cat >conftest.$ac_ext <<_ACEOF
2549/* confdefs.h. */
2550_ACEOF
2551cat confdefs.h >>conftest.$ac_ext
2552cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002553/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002554
2555int
2556main ()
2557{
2558
2559 ;
2560 return 0;
2561}
2562_ACEOF
2563ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002564ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002565# Try to create an executable without -o first, disregard a.out.
2566# It will help us diagnose broken compilers, and finding out an intuition
2567# of exeext.
drh710658c2012-01-16 13:00:05 +00002568{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2569$as_echo_n "checking for C compiler default output file name... " >&6; }
drh8b727472009-01-19 18:18:40 +00002570ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002571
drh8b727472009-01-19 18:18:40 +00002572# The possible output files:
2573ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2574
2575ac_rmfiles=
2576for ac_file in $ac_files
2577do
2578 case $ac_file in
2579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2580 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2581 esac
2582done
2583rm -f $ac_rmfiles
2584
drh710658c2012-01-16 13:00:05 +00002585if { (ac_try="$ac_link_default"
drh8b727472009-01-19 18:18:40 +00002586case "(($ac_try" in
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2589esac
drh710658c2012-01-16 13:00:05 +00002590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2591$as_echo "$ac_try_echo") >&5
drh8b727472009-01-19 18:18:40 +00002592 (eval "$ac_link_default") 2>&5
2593 ac_status=$?
drh710658c2012-01-16 13:00:05 +00002594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; then
drh8b727472009-01-19 18:18:40 +00002596 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2597# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2598# in a Makefile. We should not override ac_cv_exeext if it was cached,
2599# so that the user can short-circuit this test for compilers unknown to
2600# Autoconf.
2601for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002602do
2603 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002604 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002606 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002607 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002608 # We found the default executable, but exeext='' is most
2609 # certainly right.
2610 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002611 *.* )
drh710658c2012-01-16 13:00:05 +00002612 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
drh8b727472009-01-19 18:18:40 +00002613 then :; else
2614 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2615 fi
2616 # We set ac_cv_exeext here because the later test for it is not
2617 # safe: cross compilers may not add the suffix if given an `-o'
2618 # argument, so we may need to know it at that point already.
2619 # Even if this section looks crufty: it has the advantage of
2620 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002621 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002622 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002623 break;;
drh71eb93e2001-09-28 01:34:43 +00002624 esac
2625done
drh8b727472009-01-19 18:18:40 +00002626test "$ac_cv_exeext" = no && ac_cv_exeext=
2627
drh71eb93e2001-09-28 01:34:43 +00002628else
drh8b727472009-01-19 18:18:40 +00002629 ac_file=''
2630fi
drh710658c2012-01-16 13:00:05 +00002631
2632{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2633$as_echo "$ac_file" >&6; }
2634if test -z "$ac_file"; then
2635 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002636sed 's/^/| /' conftest.$ac_ext >&5
2637
drh710658c2012-01-16 13:00:05 +00002638{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2639See \`config.log' for more details." >&5
2640$as_echo "$as_me: error: C compiler cannot create executables
2641See \`config.log' for more details." >&2;}
2642 { (exit 77); exit 77; }; }
dana9f39fd2011-08-12 16:34:42 +00002643fi
drh710658c2012-01-16 13:00:05 +00002644
dana9f39fd2011-08-12 16:34:42 +00002645ac_exeext=$ac_cv_exeext
drh71eb93e2001-09-28 01:34:43 +00002646
drh710658c2012-01-16 13:00:05 +00002647# Check that the compiler produces executables we can run. If not, either
2648# the compiler is broken, or we cross compile.
2649{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2650$as_echo_n "checking whether the C compiler works... " >&6; }
2651# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2652# If not cross compiling, check that we can run a simple program.
2653if test "$cross_compiling" != yes; then
2654 if { ac_try='./$ac_file'
2655 { (case "(($ac_try" in
2656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657 *) ac_try_echo=$ac_try;;
2658esac
2659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2660$as_echo "$ac_try_echo") >&5
2661 (eval "$ac_try") 2>&5
2662 ac_status=$?
2663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2665 cross_compiling=no
2666 else
2667 if test "$cross_compiling" = maybe; then
2668 cross_compiling=yes
2669 else
2670 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2671If you meant to cross compile, use \`--host'.
2672See \`config.log' for more details." >&5
2673$as_echo "$as_me: error: cannot run C compiled programs.
2674If you meant to cross compile, use \`--host'.
2675See \`config.log' for more details." >&2;}
2676 { (exit 1); exit 1; }; }
2677 fi
2678 fi
2679fi
2680{ $as_echo "$as_me:$LINENO: result: yes" >&5
2681$as_echo "yes" >&6; }
2682
drh8b727472009-01-19 18:18:40 +00002683rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002684ac_clean_files=$ac_clean_files_save
drh710658c2012-01-16 13:00:05 +00002685# Check that the compiler produces executables we can run. If not, either
2686# the compiler is broken, or we cross compile.
2687{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2688$as_echo_n "checking whether we are cross compiling... " >&6; }
2689{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2690$as_echo "$cross_compiling" >&6; }
2691
2692{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
drh8b727472009-01-19 18:18:40 +00002693$as_echo_n "checking for suffix of executables... " >&6; }
drh710658c2012-01-16 13:00:05 +00002694if { (ac_try="$ac_link"
drh8b727472009-01-19 18:18:40 +00002695case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2698esac
drh710658c2012-01-16 13:00:05 +00002699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2700$as_echo "$ac_try_echo") >&5
drh8b727472009-01-19 18:18:40 +00002701 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002702 ac_status=$?
drh710658c2012-01-16 13:00:05 +00002703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; then
drh71eb93e2001-09-28 01:34:43 +00002705 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2706# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2707# work properly (i.e., refer to `conftest.exe'), while it won't with
2708# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002709for ac_file in conftest.exe conftest conftest.*; do
2710 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002711 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002713 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002714 break;;
drh71eb93e2001-09-28 01:34:43 +00002715 * ) break;;
2716 esac
2717done
2718else
drh710658c2012-01-16 13:00:05 +00002719 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2720See \`config.log' for more details." >&5
2721$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2722See \`config.log' for more details." >&2;}
2723 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002724fi
drh710658c2012-01-16 13:00:05 +00002725
2726rm -f conftest$ac_cv_exeext
2727{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
drh8b727472009-01-19 18:18:40 +00002728$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002729
2730rm -f conftest.$ac_ext
2731EXEEXT=$ac_cv_exeext
2732ac_exeext=$EXEEXT
drh710658c2012-01-16 13:00:05 +00002733{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
drh8b727472009-01-19 18:18:40 +00002734$as_echo_n "checking for suffix of object files... " >&6; }
drh710658c2012-01-16 13:00:05 +00002735if test "${ac_cv_objext+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002736 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002737else
drh710658c2012-01-16 13:00:05 +00002738 cat >conftest.$ac_ext <<_ACEOF
2739/* confdefs.h. */
2740_ACEOF
2741cat confdefs.h >>conftest.$ac_ext
2742cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002743/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002744
2745int
2746main ()
2747{
2748
2749 ;
2750 return 0;
2751}
2752_ACEOF
2753rm -f conftest.o conftest.obj
drh710658c2012-01-16 13:00:05 +00002754if { (ac_try="$ac_compile"
drh8b727472009-01-19 18:18:40 +00002755case "(($ac_try" in
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2758esac
drh710658c2012-01-16 13:00:05 +00002759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2760$as_echo "$ac_try_echo") >&5
drh8b727472009-01-19 18:18:40 +00002761 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002762 ac_status=$?
drh710658c2012-01-16 13:00:05 +00002763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; then
drh8b727472009-01-19 18:18:40 +00002765 for ac_file in conftest.o conftest.obj conftest.*; do
2766 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00002767 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00002769 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2770 break;;
2771 esac
2772done
2773else
drh8b727472009-01-19 18:18:40 +00002774 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002775sed 's/^/| /' conftest.$ac_ext >&5
2776
drh710658c2012-01-16 13:00:05 +00002777{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2778See \`config.log' for more details." >&5
2779$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2780See \`config.log' for more details." >&2;}
2781 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002782fi
drh710658c2012-01-16 13:00:05 +00002783
drh71eb93e2001-09-28 01:34:43 +00002784rm -f conftest.$ac_cv_objext conftest.$ac_ext
2785fi
drh710658c2012-01-16 13:00:05 +00002786{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
drh8b727472009-01-19 18:18:40 +00002787$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002788OBJEXT=$ac_cv_objext
2789ac_objext=$OBJEXT
drh710658c2012-01-16 13:00:05 +00002790{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh8b727472009-01-19 18:18:40 +00002791$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drh710658c2012-01-16 13:00:05 +00002792if test "${ac_cv_c_compiler_gnu+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002793 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002794else
drh710658c2012-01-16 13:00:05 +00002795 cat >conftest.$ac_ext <<_ACEOF
2796/* confdefs.h. */
2797_ACEOF
2798cat confdefs.h >>conftest.$ac_ext
2799cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002800/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002801
2802int
2803main ()
2804{
2805#ifndef __GNUC__
2806 choke me
2807#endif
2808
2809 ;
2810 return 0;
2811}
2812_ACEOF
drh710658c2012-01-16 13:00:05 +00002813rm -f conftest.$ac_objext
2814if { (ac_try="$ac_compile"
2815case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818esac
2819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2820$as_echo "$ac_try_echo") >&5
2821 (eval "$ac_compile") 2>conftest.er1
2822 ac_status=$?
2823 grep -v '^ *+' conftest.er1 >conftest.err
2824 rm -f conftest.er1
2825 cat conftest.err >&5
2826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } && {
2828 test -z "$ac_c_werror_flag" ||
2829 test ! -s conftest.err
2830 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002831 ac_compiler_gnu=yes
2832else
drh710658c2012-01-16 13:00:05 +00002833 $as_echo "$as_me: failed program was:" >&5
2834sed 's/^/| /' conftest.$ac_ext >&5
2835
2836 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00002837fi
drh710658c2012-01-16 13:00:05 +00002838
drh8b727472009-01-19 18:18:40 +00002839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002840ac_cv_c_compiler_gnu=$ac_compiler_gnu
2841
2842fi
drh710658c2012-01-16 13:00:05 +00002843{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh8b727472009-01-19 18:18:40 +00002844$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2845if test $ac_compiler_gnu = yes; then
2846 GCC=yes
2847else
2848 GCC=
2849fi
drh71eb93e2001-09-28 01:34:43 +00002850ac_test_CFLAGS=${CFLAGS+set}
2851ac_save_CFLAGS=$CFLAGS
drh710658c2012-01-16 13:00:05 +00002852{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh8b727472009-01-19 18:18:40 +00002853$as_echo_n "checking whether $CC accepts -g... " >&6; }
drh710658c2012-01-16 13:00:05 +00002854if test "${ac_cv_prog_cc_g+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002855 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002856else
drh8b727472009-01-19 18:18:40 +00002857 ac_save_c_werror_flag=$ac_c_werror_flag
2858 ac_c_werror_flag=yes
2859 ac_cv_prog_cc_g=no
2860 CFLAGS="-g"
drh710658c2012-01-16 13:00:05 +00002861 cat >conftest.$ac_ext <<_ACEOF
2862/* confdefs.h. */
2863_ACEOF
2864cat confdefs.h >>conftest.$ac_ext
2865cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002866/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002867
2868int
2869main ()
2870{
2871
2872 ;
2873 return 0;
2874}
2875_ACEOF
drh710658c2012-01-16 13:00:05 +00002876rm -f conftest.$ac_objext
2877if { (ac_try="$ac_compile"
2878case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881esac
2882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2883$as_echo "$ac_try_echo") >&5
2884 (eval "$ac_compile") 2>conftest.er1
2885 ac_status=$?
2886 grep -v '^ *+' conftest.er1 >conftest.err
2887 rm -f conftest.er1
2888 cat conftest.err >&5
2889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); } && {
2891 test -z "$ac_c_werror_flag" ||
2892 test ! -s conftest.err
2893 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002894 ac_cv_prog_cc_g=yes
2895else
drh710658c2012-01-16 13:00:05 +00002896 $as_echo "$as_me: failed program was:" >&5
2897sed 's/^/| /' conftest.$ac_ext >&5
2898
2899 CFLAGS=""
2900 cat >conftest.$ac_ext <<_ACEOF
2901/* confdefs.h. */
2902_ACEOF
2903cat confdefs.h >>conftest.$ac_ext
2904cat >>conftest.$ac_ext <<_ACEOF
drh8b727472009-01-19 18:18:40 +00002905/* end confdefs.h. */
2906
2907int
2908main ()
2909{
2910
2911 ;
2912 return 0;
2913}
2914_ACEOF
drh710658c2012-01-16 13:00:05 +00002915rm -f conftest.$ac_objext
2916if { (ac_try="$ac_compile"
2917case "(($ac_try" in
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2920esac
2921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2922$as_echo "$ac_try_echo") >&5
2923 (eval "$ac_compile") 2>conftest.er1
2924 ac_status=$?
2925 grep -v '^ *+' conftest.er1 >conftest.err
2926 rm -f conftest.er1
2927 cat conftest.err >&5
2928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } && {
2930 test -z "$ac_c_werror_flag" ||
2931 test ! -s conftest.err
2932 } && test -s conftest.$ac_objext; then
2933 :
dana9f39fd2011-08-12 16:34:42 +00002934else
drh710658c2012-01-16 13:00:05 +00002935 $as_echo "$as_me: failed program was:" >&5
2936sed 's/^/| /' conftest.$ac_ext >&5
2937
2938 ac_c_werror_flag=$ac_save_c_werror_flag
drh8b727472009-01-19 18:18:40 +00002939 CFLAGS="-g"
drh710658c2012-01-16 13:00:05 +00002940 cat >conftest.$ac_ext <<_ACEOF
2941/* confdefs.h. */
2942_ACEOF
2943cat confdefs.h >>conftest.$ac_ext
2944cat >>conftest.$ac_ext <<_ACEOF
drh8b727472009-01-19 18:18:40 +00002945/* end confdefs.h. */
2946
2947int
2948main ()
2949{
2950
2951 ;
2952 return 0;
2953}
2954_ACEOF
drh710658c2012-01-16 13:00:05 +00002955rm -f conftest.$ac_objext
2956if { (ac_try="$ac_compile"
2957case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2960esac
2961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2962$as_echo "$ac_try_echo") >&5
2963 (eval "$ac_compile") 2>conftest.er1
2964 ac_status=$?
2965 grep -v '^ *+' conftest.er1 >conftest.err
2966 rm -f conftest.er1
2967 cat conftest.err >&5
2968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } && {
2970 test -z "$ac_c_werror_flag" ||
2971 test ! -s conftest.err
2972 } && test -s conftest.$ac_objext; then
drh8b727472009-01-19 18:18:40 +00002973 ac_cv_prog_cc_g=yes
drh710658c2012-01-16 13:00:05 +00002974else
2975 $as_echo "$as_me: failed program was:" >&5
2976sed 's/^/| /' conftest.$ac_ext >&5
2977
2978
drh71eb93e2001-09-28 01:34:43 +00002979fi
drh710658c2012-01-16 13:00:05 +00002980
drh8b727472009-01-19 18:18:40 +00002981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002982fi
drh710658c2012-01-16 13:00:05 +00002983
drh8b727472009-01-19 18:18:40 +00002984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985fi
drh710658c2012-01-16 13:00:05 +00002986
drh8b727472009-01-19 18:18:40 +00002987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 ac_c_werror_flag=$ac_save_c_werror_flag
2989fi
drh710658c2012-01-16 13:00:05 +00002990{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh8b727472009-01-19 18:18:40 +00002991$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002992if test "$ac_test_CFLAGS" = set; then
2993 CFLAGS=$ac_save_CFLAGS
2994elif test $ac_cv_prog_cc_g = yes; then
2995 if test "$GCC" = yes; then
2996 CFLAGS="-g -O2"
2997 else
2998 CFLAGS="-g"
2999 fi
3000else
3001 if test "$GCC" = yes; then
3002 CFLAGS="-O2"
3003 else
3004 CFLAGS=
3005 fi
3006fi
drh710658c2012-01-16 13:00:05 +00003007{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
drh8b727472009-01-19 18:18:40 +00003008$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
drh710658c2012-01-16 13:00:05 +00003009if test "${ac_cv_prog_cc_c89+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003010 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003011else
drh8b727472009-01-19 18:18:40 +00003012 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003013ac_save_CC=$CC
drh710658c2012-01-16 13:00:05 +00003014cat >conftest.$ac_ext <<_ACEOF
3015/* confdefs.h. */
3016_ACEOF
3017cat confdefs.h >>conftest.$ac_ext
3018cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003019/* end confdefs.h. */
3020#include <stdarg.h>
3021#include <stdio.h>
3022#include <sys/types.h>
3023#include <sys/stat.h>
3024/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3025struct buf { int x; };
3026FILE * (*rcsopen) (struct buf *, struct stat *, int);
3027static char *e (p, i)
3028 char **p;
3029 int i;
3030{
3031 return p[i];
3032}
3033static char *f (char * (*g) (char **, int), char **p, ...)
3034{
3035 char *s;
3036 va_list v;
3037 va_start (v,p);
3038 s = g (p, va_arg (v,int));
3039 va_end (v);
3040 return s;
3041}
a.rottmann964dbb12004-02-26 19:47:42 +00003042
3043/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3044 function prototypes and stuff, but not '\xHH' hex character constants.
3045 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003046 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003047 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3048 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003049 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003050int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3051
drh8b727472009-01-19 18:18:40 +00003052/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3053 inside strings and character constants. */
3054#define FOO(x) 'x'
3055int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3056
a.rottmann84e63352003-03-24 09:42:16 +00003057int test (int i, double x);
3058struct s1 {int (*f) (int a);};
3059struct s2 {int (*f) (double a);};
3060int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3061int argc;
3062char **argv;
3063int
3064main ()
3065{
3066return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3067 ;
3068 return 0;
3069}
3070_ACEOF
drh8b727472009-01-19 18:18:40 +00003071for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3072 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003073do
3074 CC="$ac_save_CC $ac_arg"
drh710658c2012-01-16 13:00:05 +00003075 rm -f conftest.$ac_objext
3076if { (ac_try="$ac_compile"
3077case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080esac
3081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3082$as_echo "$ac_try_echo") >&5
3083 (eval "$ac_compile") 2>conftest.er1
3084 ac_status=$?
3085 grep -v '^ *+' conftest.er1 >conftest.err
3086 rm -f conftest.er1
3087 cat conftest.err >&5
3088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } && {
3090 test -z "$ac_c_werror_flag" ||
3091 test ! -s conftest.err
3092 } && test -s conftest.$ac_objext; then
drh8b727472009-01-19 18:18:40 +00003093 ac_cv_prog_cc_c89=$ac_arg
drh710658c2012-01-16 13:00:05 +00003094else
3095 $as_echo "$as_me: failed program was:" >&5
3096sed 's/^/| /' conftest.$ac_ext >&5
3097
3098
a.rottmann84e63352003-03-24 09:42:16 +00003099fi
drh710658c2012-01-16 13:00:05 +00003100
drh8b727472009-01-19 18:18:40 +00003101rm -f core conftest.err conftest.$ac_objext
3102 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003103done
drh8b727472009-01-19 18:18:40 +00003104rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003105CC=$ac_save_CC
3106
3107fi
drh8b727472009-01-19 18:18:40 +00003108# AC_CACHE_VAL
3109case "x$ac_cv_prog_cc_c89" in
3110 x)
drh710658c2012-01-16 13:00:05 +00003111 { $as_echo "$as_me:$LINENO: result: none needed" >&5
drh8b727472009-01-19 18:18:40 +00003112$as_echo "none needed" >&6; } ;;
3113 xno)
drh710658c2012-01-16 13:00:05 +00003114 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
drh8b727472009-01-19 18:18:40 +00003115$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003116 *)
drh8b727472009-01-19 18:18:40 +00003117 CC="$CC $ac_cv_prog_cc_c89"
drh710658c2012-01-16 13:00:05 +00003118 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
drh8b727472009-01-19 18:18:40 +00003119$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003120esac
3121
a.rottmann84e63352003-03-24 09:42:16 +00003122
drh71eb93e2001-09-28 01:34:43 +00003123ac_ext=c
3124ac_cpp='$CPP $CPPFLAGS'
3125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3127ac_compiler_gnu=$ac_cv_c_compiler_gnu
3128
drh710658c2012-01-16 13:00:05 +00003129{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
drh8b727472009-01-19 18:18:40 +00003130$as_echo_n "checking for a sed that does not truncate output... " >&6; }
drh710658c2012-01-16 13:00:05 +00003131if test "${ac_cv_path_SED+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003132 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003133else
drh8b727472009-01-19 18:18:40 +00003134 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3135 for ac_i in 1 2 3 4 5 6 7; do
3136 ac_script="$ac_script$as_nl$ac_script"
3137 done
3138 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
drh710658c2012-01-16 13:00:05 +00003139 $as_unset ac_script || ac_script=
drh8b727472009-01-19 18:18:40 +00003140 if test -z "$SED"; then
3141 ac_path_SED_found=false
3142 # Loop through the user's path and test for each of PROGNAME-LIST
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003144for as_dir in $PATH
3145do
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003148 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003149 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003150 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3151 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3152# Check for GNU ac_path_SED and select it if it is found.
3153 # Check for GNU $ac_path_SED
3154case `"$ac_path_SED" --version 2>&1` in
3155*GNU*)
3156 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3157*)
3158 ac_count=0
3159 $as_echo_n 0123456789 >"conftest.in"
3160 while :
3161 do
3162 cat "conftest.in" "conftest.in" >"conftest.tmp"
3163 mv "conftest.tmp" "conftest.in"
3164 cp "conftest.in" "conftest.nl"
3165 $as_echo '' >> "conftest.nl"
3166 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drh710658c2012-01-16 13:00:05 +00003168 ac_count=`expr $ac_count + 1`
drh8b727472009-01-19 18:18:40 +00003169 if test $ac_count -gt ${ac_path_SED_max-0}; then
3170 # Best one so far, save it but keep looking for a better one
3171 ac_cv_path_SED="$ac_path_SED"
3172 ac_path_SED_max=$ac_count
3173 fi
3174 # 10*(2^10) chars as input seems more than enough
3175 test $ac_count -gt 10 && break
3176 done
3177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3178esac
3179
3180 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003181 done
3182 done
drh710658c2012-01-16 13:00:05 +00003183done
mlcreech636a9952008-05-05 22:52:56 +00003184IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003185 if test -z "$ac_cv_path_SED"; then
drh710658c2012-01-16 13:00:05 +00003186 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3187$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3188 { (exit 1); exit 1; }; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003189 fi
drh8b727472009-01-19 18:18:40 +00003190else
3191 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003192fi
drh866108f2008-05-13 00:57:21 +00003193
drh8b727472009-01-19 18:18:40 +00003194fi
drh710658c2012-01-16 13:00:05 +00003195{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
drh8b727472009-01-19 18:18:40 +00003196$as_echo "$ac_cv_path_SED" >&6; }
3197 SED="$ac_cv_path_SED"
3198 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003199
mlcreech636a9952008-05-05 22:52:56 +00003200test -z "$SED" && SED=sed
3201Xsed="$SED -e 1s/^X//"
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
drh710658c2012-01-16 13:00:05 +00003213{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
drh8b727472009-01-19 18:18:40 +00003214$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
drh710658c2012-01-16 13:00:05 +00003215if test "${ac_cv_path_GREP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003216 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003217else
drh8b727472009-01-19 18:18:40 +00003218 if test -z "$GREP"; then
3219 ac_path_GREP_found=false
3220 # Loop through the user's path and test for each of PROGNAME-LIST
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3223do
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003226 for ac_prog in grep ggrep; do
drh8b727472009-01-19 18:18:40 +00003227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3229 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3230# Check for GNU ac_path_GREP and select it if it is found.
3231 # Check for GNU $ac_path_GREP
3232case `"$ac_path_GREP" --version 2>&1` in
3233*GNU*)
3234 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3235*)
3236 ac_count=0
3237 $as_echo_n 0123456789 >"conftest.in"
3238 while :
3239 do
3240 cat "conftest.in" "conftest.in" >"conftest.tmp"
3241 mv "conftest.tmp" "conftest.in"
3242 cp "conftest.in" "conftest.nl"
3243 $as_echo 'GREP' >> "conftest.nl"
3244 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drh710658c2012-01-16 13:00:05 +00003246 ac_count=`expr $ac_count + 1`
drh8b727472009-01-19 18:18:40 +00003247 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3248 # Best one so far, save it but keep looking for a better one
3249 ac_cv_path_GREP="$ac_path_GREP"
3250 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003251 fi
drh8b727472009-01-19 18:18:40 +00003252 # 10*(2^10) chars as input seems more than enough
3253 test $ac_count -gt 10 && break
3254 done
3255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3256esac
3257
3258 $ac_path_GREP_found && break 3
3259 done
3260 done
drh710658c2012-01-16 13:00:05 +00003261done
drh8b727472009-01-19 18:18:40 +00003262IFS=$as_save_IFS
3263 if test -z "$ac_cv_path_GREP"; then
drh710658c2012-01-16 13:00:05 +00003264 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3265$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3266 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00003267 fi
3268else
3269 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003270fi
drh8b727472009-01-19 18:18:40 +00003271
3272fi
drh710658c2012-01-16 13:00:05 +00003273{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
drh8b727472009-01-19 18:18:40 +00003274$as_echo "$ac_cv_path_GREP" >&6; }
3275 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003276
3277
drh710658c2012-01-16 13:00:05 +00003278{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
drh8b727472009-01-19 18:18:40 +00003279$as_echo_n "checking for egrep... " >&6; }
drh710658c2012-01-16 13:00:05 +00003280if test "${ac_cv_path_EGREP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003281 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003282else
drh8b727472009-01-19 18:18:40 +00003283 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3284 then ac_cv_path_EGREP="$GREP -E"
3285 else
3286 if test -z "$EGREP"; then
3287 ac_path_EGREP_found=false
3288 # Loop through the user's path and test for each of PROGNAME-LIST
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3291do
3292 IFS=$as_save_IFS
3293 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003294 for ac_prog in egrep; do
drh8b727472009-01-19 18:18:40 +00003295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3297 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3298# Check for GNU ac_path_EGREP and select it if it is found.
3299 # Check for GNU $ac_path_EGREP
3300case `"$ac_path_EGREP" --version 2>&1` in
3301*GNU*)
3302 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3303*)
3304 ac_count=0
3305 $as_echo_n 0123456789 >"conftest.in"
3306 while :
3307 do
3308 cat "conftest.in" "conftest.in" >"conftest.tmp"
3309 mv "conftest.tmp" "conftest.in"
3310 cp "conftest.in" "conftest.nl"
3311 $as_echo 'EGREP' >> "conftest.nl"
3312 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drh710658c2012-01-16 13:00:05 +00003314 ac_count=`expr $ac_count + 1`
drh8b727472009-01-19 18:18:40 +00003315 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3316 # Best one so far, save it but keep looking for a better one
3317 ac_cv_path_EGREP="$ac_path_EGREP"
3318 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003319 fi
drh8b727472009-01-19 18:18:40 +00003320 # 10*(2^10) chars as input seems more than enough
3321 test $ac_count -gt 10 && break
3322 done
3323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3324esac
3325
3326 $ac_path_EGREP_found && break 3
3327 done
3328 done
drh710658c2012-01-16 13:00:05 +00003329done
drh8b727472009-01-19 18:18:40 +00003330IFS=$as_save_IFS
3331 if test -z "$ac_cv_path_EGREP"; then
drh710658c2012-01-16 13:00:05 +00003332 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3333$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3334 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00003335 fi
3336else
3337 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003338fi
drh8b727472009-01-19 18:18:40 +00003339
3340 fi
3341fi
drh710658c2012-01-16 13:00:05 +00003342{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
drh8b727472009-01-19 18:18:40 +00003343$as_echo "$ac_cv_path_EGREP" >&6; }
3344 EGREP="$ac_cv_path_EGREP"
3345
3346
drh710658c2012-01-16 13:00:05 +00003347{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
drh8b727472009-01-19 18:18:40 +00003348$as_echo_n "checking for fgrep... " >&6; }
drh710658c2012-01-16 13:00:05 +00003349if test "${ac_cv_path_FGREP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003350 $as_echo_n "(cached) " >&6
3351else
3352 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3353 then ac_cv_path_FGREP="$GREP -F"
3354 else
3355 if test -z "$FGREP"; then
3356 ac_path_FGREP_found=false
3357 # Loop through the user's path and test for each of PROGNAME-LIST
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3360do
3361 IFS=$as_save_IFS
3362 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003363 for ac_prog in fgrep; do
drh8b727472009-01-19 18:18:40 +00003364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3366 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3367# Check for GNU ac_path_FGREP and select it if it is found.
3368 # Check for GNU $ac_path_FGREP
3369case `"$ac_path_FGREP" --version 2>&1` in
3370*GNU*)
3371 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3372*)
3373 ac_count=0
3374 $as_echo_n 0123456789 >"conftest.in"
3375 while :
3376 do
3377 cat "conftest.in" "conftest.in" >"conftest.tmp"
3378 mv "conftest.tmp" "conftest.in"
3379 cp "conftest.in" "conftest.nl"
3380 $as_echo 'FGREP' >> "conftest.nl"
3381 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3382 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drh710658c2012-01-16 13:00:05 +00003383 ac_count=`expr $ac_count + 1`
drh8b727472009-01-19 18:18:40 +00003384 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3385 # Best one so far, save it but keep looking for a better one
3386 ac_cv_path_FGREP="$ac_path_FGREP"
3387 ac_path_FGREP_max=$ac_count
3388 fi
3389 # 10*(2^10) chars as input seems more than enough
3390 test $ac_count -gt 10 && break
3391 done
3392 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3393esac
3394
3395 $ac_path_FGREP_found && break 3
3396 done
3397 done
drh710658c2012-01-16 13:00:05 +00003398done
drh8b727472009-01-19 18:18:40 +00003399IFS=$as_save_IFS
3400 if test -z "$ac_cv_path_FGREP"; then
drh710658c2012-01-16 13:00:05 +00003401 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3402$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3403 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00003404 fi
3405else
3406 ac_cv_path_FGREP=$FGREP
3407fi
3408
3409 fi
3410fi
drh710658c2012-01-16 13:00:05 +00003411{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
drh8b727472009-01-19 18:18:40 +00003412$as_echo "$ac_cv_path_FGREP" >&6; }
3413 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003414
3415
3416test -z "$GREP" && GREP=grep
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
a.rottmann9bc8b932004-02-29 15:18:31 +00003433
3434
a.rottmann84e63352003-03-24 09:42:16 +00003435
drh8b727472009-01-19 18:18:40 +00003436# Check whether --with-gnu-ld was given.
drh710658c2012-01-16 13:00:05 +00003437if test "${with_gnu_ld+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003438 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003439else
3440 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003441fi
3442
drh71eb93e2001-09-28 01:34:43 +00003443ac_prog=ld
3444if test "$GCC" = yes; then
3445 # Check if gcc -print-prog-name=ld gives a path.
drh710658c2012-01-16 13:00:05 +00003446 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
drh8b727472009-01-19 18:18:40 +00003447$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003448 case $host in
3449 *-*-mingw*)
3450 # gcc leaves a trailing carriage return which upsets mingw
3451 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3452 *)
3453 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3454 esac
3455 case $ac_prog in
3456 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003457 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003458 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003459 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003460 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3461 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3462 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003463 done
3464 test -z "$LD" && LD="$ac_prog"
3465 ;;
3466 "")
3467 # If it fails, then pretend we aren't using GCC.
3468 ac_prog=ld
3469 ;;
3470 *)
3471 # If it is relative, then search for the first ld in PATH.
3472 with_gnu_ld=unknown
3473 ;;
3474 esac
3475elif test "$with_gnu_ld" = yes; then
drh710658c2012-01-16 13:00:05 +00003476 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003477$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003478else
drh710658c2012-01-16 13:00:05 +00003479 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003480$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003481fi
drh710658c2012-01-16 13:00:05 +00003482if test "${lt_cv_path_LD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003483 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003484else
3485 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003486 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003487 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003488 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003489 test -z "$ac_dir" && ac_dir=.
3490 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3491 lt_cv_path_LD="$ac_dir/$ac_prog"
3492 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003493 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003494 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003495 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3496 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003497 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003498 ;;
3499 *)
drh71eb93e2001-09-28 01:34:43 +00003500 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003501 ;;
3502 esac
drh71eb93e2001-09-28 01:34:43 +00003503 fi
3504 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003505 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003506else
3507 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3508fi
3509fi
3510
3511LD="$lt_cv_path_LD"
3512if test -n "$LD"; then
drh710658c2012-01-16 13:00:05 +00003513 { $as_echo "$as_me:$LINENO: result: $LD" >&5
drh8b727472009-01-19 18:18:40 +00003514$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003515else
drh710658c2012-01-16 13:00:05 +00003516 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003517$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003518fi
drh710658c2012-01-16 13:00:05 +00003519test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3520$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3521 { (exit 1); exit 1; }; }
3522{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003523$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drh710658c2012-01-16 13:00:05 +00003524if test "${lt_cv_prog_gnu_ld+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003525 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003526else
vapier7f19c022007-02-17 14:46:31 +00003527 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003528case `$LD -v 2>&1 </dev/null` in
3529*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003530 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003531 ;;
3532*)
drh71eb93e2001-09-28 01:34:43 +00003533 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003534 ;;
3535esac
drh71eb93e2001-09-28 01:34:43 +00003536fi
drh710658c2012-01-16 13:00:05 +00003537{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
drh8b727472009-01-19 18:18:40 +00003538$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003539with_gnu_ld=$lt_cv_prog_gnu_ld
3540
a.rottmann84e63352003-03-24 09:42:16 +00003541
drh71eb93e2001-09-28 01:34:43 +00003542
mlcreech636a9952008-05-05 22:52:56 +00003543
3544
3545
3546
3547
3548
drh710658c2012-01-16 13:00:05 +00003549{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
drh8b727472009-01-19 18:18:40 +00003550$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drh710658c2012-01-16 13:00:05 +00003551if test "${lt_cv_path_NM+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003552 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003553else
3554 if test -n "$NM"; then
3555 # Let the user override the test.
3556 lt_cv_path_NM="$NM"
3557else
vapier7f19c022007-02-17 14:46:31 +00003558 lt_nm_to_check="${ac_tool_prefix}nm"
3559 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3560 lt_nm_to_check="$lt_nm_to_check nm"
3561 fi
3562 for lt_tmp_nm in $lt_nm_to_check; do
3563 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3564 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3565 IFS="$lt_save_ifs"
3566 test -z "$ac_dir" && ac_dir=.
3567 tmp_nm="$ac_dir/$lt_tmp_nm"
3568 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3569 # Check to see if the nm accepts a BSD-compat flag.
3570 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3571 # nm: unknown option "B" ignored
3572 # Tru64's nm complains that /dev/null is an invalid object file
3573 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3574 */dev/null* | *'Invalid file or object type'*)
3575 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003576 break
3577 ;;
3578 *)
vapier7f19c022007-02-17 14:46:31 +00003579 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3580 */dev/null*)
3581 lt_cv_path_NM="$tmp_nm -p"
3582 break
3583 ;;
3584 *)
3585 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3586 continue # so that we can try to find one that supports BSD flags
3587 ;;
3588 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003589 ;;
3590 esac
vapier7f19c022007-02-17 14:46:31 +00003591 fi
3592 done
3593 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003594 done
mlcreech636a9952008-05-05 22:52:56 +00003595 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003596fi
3597fi
drh710658c2012-01-16 13:00:05 +00003598{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
drh8b727472009-01-19 18:18:40 +00003599$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003600if test "$lt_cv_path_NM" != "no"; then
3601 NM="$lt_cv_path_NM"
3602else
3603 # Didn't find any BSD compatible name lister, look for dumpbin.
3604 if test -n "$ac_tool_prefix"; then
3605 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3606 do
3607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3608set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +00003609{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003610$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00003611if test "${ac_cv_prog_DUMPBIN+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003612 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003613else
3614 if test -n "$DUMPBIN"; then
3615 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3616else
3617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618for as_dir in $PATH
3619do
3620 IFS=$as_save_IFS
3621 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003622 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003623 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 +00003624 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drh710658c2012-01-16 13:00:05 +00003625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003626 break 2
3627 fi
3628done
drh710658c2012-01-16 13:00:05 +00003629done
drh8b727472009-01-19 18:18:40 +00003630IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003631
mlcreech636a9952008-05-05 22:52:56 +00003632fi
3633fi
3634DUMPBIN=$ac_cv_prog_DUMPBIN
3635if test -n "$DUMPBIN"; then
drh710658c2012-01-16 13:00:05 +00003636 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003637$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003638else
drh710658c2012-01-16 13:00:05 +00003639 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003640$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003641fi
3642
drh8b727472009-01-19 18:18:40 +00003643
mlcreech636a9952008-05-05 22:52:56 +00003644 test -n "$DUMPBIN" && break
3645 done
3646fi
3647if test -z "$DUMPBIN"; then
3648 ac_ct_DUMPBIN=$DUMPBIN
3649 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3650do
3651 # Extract the first word of "$ac_prog", so it can be a program name with args.
3652set dummy $ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +00003653{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003654$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00003655if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003656 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003657else
3658 if test -n "$ac_ct_DUMPBIN"; then
3659 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3660else
3661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662for as_dir in $PATH
3663do
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003666 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003667 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 +00003668 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drh710658c2012-01-16 13:00:05 +00003669 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003670 break 2
3671 fi
3672done
drh710658c2012-01-16 13:00:05 +00003673done
drh8b727472009-01-19 18:18:40 +00003674IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003675
3676fi
3677fi
3678ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3679if test -n "$ac_ct_DUMPBIN"; then
drh710658c2012-01-16 13:00:05 +00003680 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003681$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003682else
drh710658c2012-01-16 13:00:05 +00003683 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003684$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003685fi
3686
drh8b727472009-01-19 18:18:40 +00003687
mlcreech636a9952008-05-05 22:52:56 +00003688 test -n "$ac_ct_DUMPBIN" && break
3689done
3690
drh8b727472009-01-19 18:18:40 +00003691 if test "x$ac_ct_DUMPBIN" = x; then
3692 DUMPBIN=":"
3693 else
3694 case $cross_compiling:$ac_tool_warned in
3695yes:)
drh710658c2012-01-16 13:00:05 +00003696{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3697whose name does not start with the host triplet. If you think this
3698configuration is useful to you, please write to autoconf@gnu.org." >&5
3699$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3700whose name does not start with the host triplet. If you think this
3701configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00003702ac_tool_warned=yes ;;
3703esac
3704 DUMPBIN=$ac_ct_DUMPBIN
3705 fi
mlcreech636a9952008-05-05 22:52:56 +00003706fi
3707
3708
3709 if test "$DUMPBIN" != ":"; then
3710 NM="$DUMPBIN"
3711 fi
3712fi
3713test -z "$NM" && NM=nm
3714
3715
3716
3717
3718
3719
drh710658c2012-01-16 13:00:05 +00003720{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
drh8b727472009-01-19 18:18:40 +00003721$as_echo_n "checking the name lister ($NM) interface... " >&6; }
drh710658c2012-01-16 13:00:05 +00003722if test "${lt_cv_nm_interface+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003723 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003724else
3725 lt_cv_nm_interface="BSD nm"
3726 echo "int some_variable = 0;" > conftest.$ac_ext
drh05c7e0b2015-01-10 14:27:17 +00003727 (eval echo "\"\$as_me:3727: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003728 (eval "$ac_compile" 2>conftest.err)
3729 cat conftest.err >&5
drh05c7e0b2015-01-10 14:27:17 +00003730 (eval echo "\"\$as_me:3730: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003731 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3732 cat conftest.err >&5
drh05c7e0b2015-01-10 14:27:17 +00003733 (eval echo "\"\$as_me:3733: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003734 cat conftest.out >&5
3735 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3736 lt_cv_nm_interface="MS dumpbin"
3737 fi
3738 rm -f conftest*
3739fi
drh710658c2012-01-16 13:00:05 +00003740{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
drh8b727472009-01-19 18:18:40 +00003741$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003742
drh710658c2012-01-16 13:00:05 +00003743{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
drh8b727472009-01-19 18:18:40 +00003744$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003745LN_S=$as_ln_s
3746if test "$LN_S" = "ln -s"; then
drh710658c2012-01-16 13:00:05 +00003747 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00003748$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003749else
drh710658c2012-01-16 13:00:05 +00003750 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
drh8b727472009-01-19 18:18:40 +00003751$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003752fi
3753
mlcreech636a9952008-05-05 22:52:56 +00003754# find the maximum length of command line arguments
drh710658c2012-01-16 13:00:05 +00003755{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
drh8b727472009-01-19 18:18:40 +00003756$as_echo_n "checking the maximum length of command line arguments... " >&6; }
drh710658c2012-01-16 13:00:05 +00003757if test "${lt_cv_sys_max_cmd_len+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003758 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003759else
3760 i=0
3761 teststring="ABCD"
3762
3763 case $build_os in
3764 msdosdjgpp*)
3765 # On DJGPP, this test can blow up pretty badly due to problems in libc
3766 # (any single argument exceeding 2000 bytes causes a buffer overrun
3767 # during glob expansion). Even if it were fixed, the result of this
3768 # check would be larger than it should be.
3769 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3770 ;;
3771
3772 gnu*)
3773 # Under GNU Hurd, this test is not required because there is
3774 # no limit to the length of command line arguments.
3775 # Libtool will interpret -1 as no limit whatsoever
3776 lt_cv_sys_max_cmd_len=-1;
3777 ;;
3778
vapier6acb2cf2009-01-28 04:46:28 +00003779 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003780 # On Win9x/ME, this test blows up -- it succeeds, but takes
3781 # about 5 minutes as the teststring grows exponentially.
3782 # Worse, since 9x/ME are not pre-emptively multitasking,
3783 # you end up with a "frozen" computer, even though with patience
3784 # the test eventually succeeds (with a max line length of 256k).
3785 # Instead, let's just punt: use the minimum linelength reported by
3786 # all of the supported platforms: 8192 (on NT/2K/XP).
3787 lt_cv_sys_max_cmd_len=8192;
3788 ;;
3789
3790 amigaos*)
3791 # On AmigaOS with pdksh, this test takes hours, literally.
3792 # So we just punt and use a minimum line length of 8192.
3793 lt_cv_sys_max_cmd_len=8192;
3794 ;;
3795
3796 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3797 # This has been around since 386BSD, at least. Likely further.
3798 if test -x /sbin/sysctl; then
3799 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3800 elif test -x /usr/sbin/sysctl; then
3801 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3802 else
3803 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3804 fi
3805 # And add a safety zone
3806 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3808 ;;
3809
3810 interix*)
3811 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3812 lt_cv_sys_max_cmd_len=196608
3813 ;;
3814
3815 osf*)
3816 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3817 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3818 # nice to cause kernel panics so lets avoid the loop below.
3819 # First set a reasonable default.
3820 lt_cv_sys_max_cmd_len=16384
3821 #
3822 if test -x /sbin/sysconfig; then
3823 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3824 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3825 esac
3826 fi
3827 ;;
3828 sco3.2v5*)
3829 lt_cv_sys_max_cmd_len=102400
3830 ;;
3831 sysv5* | sco5v6* | sysv4.2uw2*)
3832 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3833 if test -n "$kargmax"; then
3834 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3835 else
3836 lt_cv_sys_max_cmd_len=32768
3837 fi
3838 ;;
3839 *)
3840 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3841 if test -n "$lt_cv_sys_max_cmd_len"; then
3842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3844 else
3845 # Make teststring a little bigger before we do anything with it.
3846 # a 1K string should be a reasonable start.
3847 for i in 1 2 3 4 5 6 7 8 ; do
3848 teststring=$teststring$teststring
3849 done
3850 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3851 # If test is not a shell built-in, we'll probably end up computing a
3852 # maximum length that is only half of the actual maximum length, but
3853 # we can't tell.
3854 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3855 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3856 test $i != 17 # 1/2 MB should be enough
3857 do
3858 i=`expr $i + 1`
3859 teststring=$teststring$teststring
3860 done
3861 # Only check the string length outside the loop.
3862 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3863 teststring=
3864 # Add a significant safety factor because C++ compilers can tack on
3865 # massive amounts of additional arguments before passing them to the
3866 # linker. It appears as though 1/2 is a usable value.
3867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3868 fi
3869 ;;
3870 esac
3871
3872fi
3873
3874if test -n $lt_cv_sys_max_cmd_len ; then
drh710658c2012-01-16 13:00:05 +00003875 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
drh8b727472009-01-19 18:18:40 +00003876$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003877else
drh710658c2012-01-16 13:00:05 +00003878 { $as_echo "$as_me:$LINENO: result: none" >&5
drh8b727472009-01-19 18:18:40 +00003879$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003880fi
3881max_cmd_len=$lt_cv_sys_max_cmd_len
3882
3883
3884
3885
3886
3887
3888: ${CP="cp -f"}
3889: ${MV="mv -f"}
3890: ${RM="rm -f"}
3891
drh710658c2012-01-16 13:00:05 +00003892{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
drh8b727472009-01-19 18:18:40 +00003893$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003894# Try some XSI features
3895xsi_shell=no
3896( _lt_dummy="a/b/c"
3897 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3898 = c,a/b,, \
3899 && eval 'test $(( 1 + 1 )) -eq 2 \
3900 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3901 && xsi_shell=yes
drh710658c2012-01-16 13:00:05 +00003902{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
drh8b727472009-01-19 18:18:40 +00003903$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003904
3905
drh710658c2012-01-16 13:00:05 +00003906{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
drh8b727472009-01-19 18:18:40 +00003907$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003908lt_shell_append=no
3909( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3910 >/dev/null 2>&1 \
3911 && lt_shell_append=yes
drh710658c2012-01-16 13:00:05 +00003912{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
drh8b727472009-01-19 18:18:40 +00003913$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003914
3915
3916if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3917 lt_unset=unset
3918else
3919 lt_unset=false
3920fi
3921
3922
3923
3924
3925
3926# test EBCDIC or ASCII
3927case `echo X|tr X '\101'` in
3928 A) # ASCII based system
3929 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3930 lt_SP2NL='tr \040 \012'
3931 lt_NL2SP='tr \015\012 \040\040'
3932 ;;
3933 *) # EBCDIC based system
3934 lt_SP2NL='tr \100 \n'
3935 lt_NL2SP='tr \r\n \100\100'
3936 ;;
3937esac
3938
3939
3940
3941
3942
3943
3944
3945
3946
drh710658c2012-01-16 13:00:05 +00003947{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
drh8b727472009-01-19 18:18:40 +00003948$as_echo_n "checking for $LD option to reload object files... " >&6; }
drh710658c2012-01-16 13:00:05 +00003949if test "${lt_cv_ld_reload_flag+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003950 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003951else
3952 lt_cv_ld_reload_flag='-r'
3953fi
drh710658c2012-01-16 13:00:05 +00003954{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
drh8b727472009-01-19 18:18:40 +00003955$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003956reload_flag=$lt_cv_ld_reload_flag
3957case $reload_flag in
3958"" | " "*) ;;
3959*) reload_flag=" $reload_flag" ;;
3960esac
3961reload_cmds='$LD$reload_flag -o $output$reload_objs'
3962case $host_os in
3963 darwin*)
3964 if test "$GCC" = yes; then
3965 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3966 else
3967 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3968 fi
3969 ;;
3970esac
3971
3972
3973
3974
3975
3976
3977
3978
3979
vapier6acb2cf2009-01-28 04:46:28 +00003980if test -n "$ac_tool_prefix"; then
3981 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3982set dummy ${ac_tool_prefix}objdump; ac_word=$2
drh710658c2012-01-16 13:00:05 +00003983{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00003984$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00003985if test "${ac_cv_prog_OBJDUMP+set}" = set; then
vapier6acb2cf2009-01-28 04:46:28 +00003986 $as_echo_n "(cached) " >&6
3987else
3988 if test -n "$OBJDUMP"; then
3989 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3990else
3991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992for as_dir in $PATH
3993do
3994 IFS=$as_save_IFS
3995 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003996 for ac_exec_ext in '' $ac_executable_extensions; do
vapier6acb2cf2009-01-28 04:46:28 +00003997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3998 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
drh710658c2012-01-16 13:00:05 +00003999 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004000 break 2
4001 fi
4002done
drh710658c2012-01-16 13:00:05 +00004003done
vapier6acb2cf2009-01-28 04:46:28 +00004004IFS=$as_save_IFS
4005
4006fi
4007fi
4008OBJDUMP=$ac_cv_prog_OBJDUMP
4009if test -n "$OBJDUMP"; then
drh710658c2012-01-16 13:00:05 +00004010 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004011$as_echo "$OBJDUMP" >&6; }
4012else
drh710658c2012-01-16 13:00:05 +00004013 { $as_echo "$as_me:$LINENO: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004014$as_echo "no" >&6; }
4015fi
4016
4017
4018fi
4019if test -z "$ac_cv_prog_OBJDUMP"; then
4020 ac_ct_OBJDUMP=$OBJDUMP
4021 # Extract the first word of "objdump", so it can be a program name with args.
4022set dummy objdump; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004023{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004024$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004025if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
vapier6acb2cf2009-01-28 04:46:28 +00004026 $as_echo_n "(cached) " >&6
4027else
4028 if test -n "$ac_ct_OBJDUMP"; then
4029 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4030else
4031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032for as_dir in $PATH
4033do
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004036 for ac_exec_ext in '' $ac_executable_extensions; do
vapier6acb2cf2009-01-28 04:46:28 +00004037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4038 ac_cv_prog_ac_ct_OBJDUMP="objdump"
drh710658c2012-01-16 13:00:05 +00004039 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004040 break 2
4041 fi
4042done
drh710658c2012-01-16 13:00:05 +00004043done
vapier6acb2cf2009-01-28 04:46:28 +00004044IFS=$as_save_IFS
4045
4046fi
4047fi
4048ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4049if test -n "$ac_ct_OBJDUMP"; then
drh710658c2012-01-16 13:00:05 +00004050 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004051$as_echo "$ac_ct_OBJDUMP" >&6; }
4052else
drh710658c2012-01-16 13:00:05 +00004053 { $as_echo "$as_me:$LINENO: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004054$as_echo "no" >&6; }
4055fi
4056
4057 if test "x$ac_ct_OBJDUMP" = x; then
4058 OBJDUMP="false"
4059 else
4060 case $cross_compiling:$ac_tool_warned in
4061yes:)
drh710658c2012-01-16 13:00:05 +00004062{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4063whose name does not start with the host triplet. If you think this
4064configuration is useful to you, please write to autoconf@gnu.org." >&5
4065$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4066whose name does not start with the host triplet. If you think this
4067configuration is useful to you, please write to autoconf@gnu.org." >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004068ac_tool_warned=yes ;;
4069esac
4070 OBJDUMP=$ac_ct_OBJDUMP
4071 fi
4072else
4073 OBJDUMP="$ac_cv_prog_OBJDUMP"
4074fi
4075
4076test -z "$OBJDUMP" && OBJDUMP=objdump
4077
4078
4079
4080
4081
4082
4083
4084
mlcreech636a9952008-05-05 22:52:56 +00004085
drh710658c2012-01-16 13:00:05 +00004086{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
drh8b727472009-01-19 18:18:40 +00004087$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drh710658c2012-01-16 13:00:05 +00004088if test "${lt_cv_deplibs_check_method+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004089 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004090else
4091 lt_cv_file_magic_cmd='$MAGIC_CMD'
4092lt_cv_file_magic_test_file=
4093lt_cv_deplibs_check_method='unknown'
4094# Need to set the preceding variable on all platforms that support
4095# interlibrary dependencies.
4096# 'none' -- dependencies not supported.
4097# `unknown' -- same as none, but documents that we really don't know.
4098# 'pass_all' -- all dependencies passed with no checks.
4099# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004100# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004101# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004102# If you have `file' or equivalent on your system and you're not sure
4103# whether `pass_all' will *always* work, you probably want this one.
4104
4105case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004106aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004107 lt_cv_deplibs_check_method=pass_all
4108 ;;
4109
4110beos*)
4111 lt_cv_deplibs_check_method=pass_all
4112 ;;
4113
vapier7f19c022007-02-17 14:46:31 +00004114bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4116 lt_cv_file_magic_cmd='/usr/bin/file -L'
4117 lt_cv_file_magic_test_file=/shlib/libc.so
4118 ;;
4119
a.rottmann9bc8b932004-02-29 15:18:31 +00004120cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004121 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004122 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004123 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004124 ;;
4125
4126mingw* | pw32*)
4127 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004128 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4129 # unless we find 'file', for example because we are cross-compiling.
4130 if ( file / ) >/dev/null 2>&1; then
4131 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4132 lt_cv_file_magic_cmd='func_win32_libid'
4133 else
4134 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4135 lt_cv_file_magic_cmd='$OBJDUMP -f'
4136 fi
drh71eb93e2001-09-28 01:34:43 +00004137 ;;
4138
vapier6acb2cf2009-01-28 04:46:28 +00004139cegcc)
4140 # use the weaker test based on 'objdump'. See mingw*.
4141 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4142 lt_cv_file_magic_cmd='$OBJDUMP -f'
4143 ;;
4144
drh71eb93e2001-09-28 01:34:43 +00004145darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004146 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004147 ;;
4148
mlcreech636a9952008-05-05 22:52:56 +00004149freebsd* | dragonfly*)
4150 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004151 case $host_cpu in
4152 i*86 )
4153 # Not sure whether the presence of OpenBSD here was a mistake.
4154 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004155 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 +00004156 lt_cv_file_magic_cmd=/usr/bin/file
4157 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4158 ;;
4159 esac
4160 else
4161 lt_cv_deplibs_check_method=pass_all
4162 fi
4163 ;;
4164
4165gnu*)
4166 lt_cv_deplibs_check_method=pass_all
4167 ;;
4168
a.rottmann9bc8b932004-02-29 15:18:31 +00004169hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004170 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004171 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004172 ia64*)
4173 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4174 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4175 ;;
4176 hppa*64*)
4177 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]'
4178 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4179 ;;
4180 *)
4181 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4182 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4183 ;;
4184 esac
drh71eb93e2001-09-28 01:34:43 +00004185 ;;
4186
mlcreech636a9952008-05-05 22:52:56 +00004187interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004188 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4190 ;;
4191
a.rottmann84e63352003-03-24 09:42:16 +00004192irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004193 case $LD in
4194 *-32|*"-32 ") libmagic=32-bit;;
4195 *-n32|*"-n32 ") libmagic=N32;;
4196 *-64|*"-64 ") libmagic=64-bit;;
4197 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004198 esac
drh71eb93e2001-09-28 01:34:43 +00004199 lt_cv_deplibs_check_method=pass_all
4200 ;;
4201
4202# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004203linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004204 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004205 ;;
4206
vapier7f19c022007-02-17 14:46:31 +00004207netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004208 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004210 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004212 fi
4213 ;;
4214
4215newos6*)
4216 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4217 lt_cv_file_magic_cmd=/usr/bin/file
4218 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4219 ;;
4220
mlcreech636a9952008-05-05 22:52:56 +00004221*nto* | *qnx*)
4222 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004223 ;;
4224
a.rottmann84e63352003-03-24 09:42:16 +00004225openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004226 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004227 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004228 else
vapier7f19c022007-02-17 14:46:31 +00004229 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004230 fi
drh71eb93e2001-09-28 01:34:43 +00004231 ;;
4232
4233osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004234 lt_cv_deplibs_check_method=pass_all
4235 ;;
4236
mlcreech636a9952008-05-05 22:52:56 +00004237rdos*)
4238 lt_cv_deplibs_check_method=pass_all
4239 ;;
4240
drh71eb93e2001-09-28 01:34:43 +00004241solaris*)
4242 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004243 ;;
4244
mlcreech636a9952008-05-05 22:52:56 +00004245sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4246 lt_cv_deplibs_check_method=pass_all
4247 ;;
4248
vapier7f19c022007-02-17 14:46:31 +00004249sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004250 case $host_vendor in
4251 motorola)
4252 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]'
4253 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4254 ;;
4255 ncr)
4256 lt_cv_deplibs_check_method=pass_all
4257 ;;
4258 sequent)
4259 lt_cv_file_magic_cmd='/bin/file'
4260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4261 ;;
4262 sni)
4263 lt_cv_file_magic_cmd='/bin/file'
4264 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4265 lt_cv_file_magic_test_file=/lib/libc.so
4266 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004267 siemens)
4268 lt_cv_deplibs_check_method=pass_all
4269 ;;
vapier7f19c022007-02-17 14:46:31 +00004270 pc)
4271 lt_cv_deplibs_check_method=pass_all
4272 ;;
drh71eb93e2001-09-28 01:34:43 +00004273 esac
4274 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004275
mlcreech636a9952008-05-05 22:52:56 +00004276tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004277 lt_cv_deplibs_check_method=pass_all
4278 ;;
drh71eb93e2001-09-28 01:34:43 +00004279esac
4280
4281fi
drh710658c2012-01-16 13:00:05 +00004282{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
drh8b727472009-01-19 18:18:40 +00004283$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004284file_magic_cmd=$lt_cv_file_magic_cmd
4285deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004286test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004287
drh71eb93e2001-09-28 01:34:43 +00004288
drh71eb93e2001-09-28 01:34:43 +00004289
drh71eb93e2001-09-28 01:34:43 +00004290
mlcreech636a9952008-05-05 22:52:56 +00004291
4292
4293
4294
4295
4296
4297
4298
4299if test -n "$ac_tool_prefix"; then
4300 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4301set dummy ${ac_tool_prefix}ar; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004302{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004303$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004304if test "${ac_cv_prog_AR+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004305 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004306else
4307 if test -n "$AR"; then
4308 ac_cv_prog_AR="$AR" # Let the user override the test.
4309else
4310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311for as_dir in $PATH
4312do
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004315 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004316 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 +00004317 ac_cv_prog_AR="${ac_tool_prefix}ar"
drh710658c2012-01-16 13:00:05 +00004318 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004319 break 2
4320 fi
4321done
drh710658c2012-01-16 13:00:05 +00004322done
drh8b727472009-01-19 18:18:40 +00004323IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004324
4325fi
4326fi
4327AR=$ac_cv_prog_AR
4328if test -n "$AR"; then
drh710658c2012-01-16 13:00:05 +00004329 { $as_echo "$as_me:$LINENO: result: $AR" >&5
drh8b727472009-01-19 18:18:40 +00004330$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004331else
drh710658c2012-01-16 13:00:05 +00004332 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004333$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004334fi
4335
drh8b727472009-01-19 18:18:40 +00004336
mlcreech636a9952008-05-05 22:52:56 +00004337fi
4338if test -z "$ac_cv_prog_AR"; then
4339 ac_ct_AR=$AR
4340 # Extract the first word of "ar", so it can be a program name with args.
4341set dummy ar; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004342{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004343$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004344if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004345 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004346else
4347 if test -n "$ac_ct_AR"; then
4348 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4349else
4350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351for as_dir in $PATH
4352do
4353 IFS=$as_save_IFS
4354 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004355 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004356 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 +00004357 ac_cv_prog_ac_ct_AR="ar"
drh710658c2012-01-16 13:00:05 +00004358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004359 break 2
4360 fi
4361done
drh710658c2012-01-16 13:00:05 +00004362done
drh8b727472009-01-19 18:18:40 +00004363IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004364
4365fi
4366fi
4367ac_ct_AR=$ac_cv_prog_ac_ct_AR
4368if test -n "$ac_ct_AR"; then
drh710658c2012-01-16 13:00:05 +00004369 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
drh8b727472009-01-19 18:18:40 +00004370$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004371else
drh710658c2012-01-16 13:00:05 +00004372 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004373$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004374fi
4375
drh8b727472009-01-19 18:18:40 +00004376 if test "x$ac_ct_AR" = x; then
4377 AR="false"
4378 else
4379 case $cross_compiling:$ac_tool_warned in
4380yes:)
drh710658c2012-01-16 13:00:05 +00004381{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4382whose name does not start with the host triplet. If you think this
4383configuration is useful to you, please write to autoconf@gnu.org." >&5
4384$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4385whose name does not start with the host triplet. If you think this
4386configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00004387ac_tool_warned=yes ;;
4388esac
4389 AR=$ac_ct_AR
4390 fi
mlcreech636a9952008-05-05 22:52:56 +00004391else
4392 AR="$ac_cv_prog_AR"
4393fi
4394
4395test -z "$AR" && AR=ar
4396test -z "$AR_FLAGS" && AR_FLAGS=cru
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408if test -n "$ac_tool_prefix"; then
4409 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4410set dummy ${ac_tool_prefix}strip; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004411{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004412$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004413if test "${ac_cv_prog_STRIP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004414 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004415else
4416 if test -n "$STRIP"; then
4417 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4418else
4419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420for as_dir in $PATH
4421do
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004424 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004425 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 +00004426 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drh710658c2012-01-16 13:00:05 +00004427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004428 break 2
4429 fi
4430done
drh710658c2012-01-16 13:00:05 +00004431done
drh8b727472009-01-19 18:18:40 +00004432IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004433
4434fi
4435fi
4436STRIP=$ac_cv_prog_STRIP
4437if test -n "$STRIP"; then
drh710658c2012-01-16 13:00:05 +00004438 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004439$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004440else
drh710658c2012-01-16 13:00:05 +00004441 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004442$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004443fi
4444
drh8b727472009-01-19 18:18:40 +00004445
mlcreech636a9952008-05-05 22:52:56 +00004446fi
4447if test -z "$ac_cv_prog_STRIP"; then
4448 ac_ct_STRIP=$STRIP
4449 # Extract the first word of "strip", so it can be a program name with args.
4450set dummy strip; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004451{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004452$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004453if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004454 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004455else
4456 if test -n "$ac_ct_STRIP"; then
4457 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4458else
4459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460for as_dir in $PATH
4461do
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004464 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004465 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 +00004466 ac_cv_prog_ac_ct_STRIP="strip"
drh710658c2012-01-16 13:00:05 +00004467 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004468 break 2
4469 fi
4470done
drh710658c2012-01-16 13:00:05 +00004471done
drh8b727472009-01-19 18:18:40 +00004472IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004473
4474fi
4475fi
4476ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4477if test -n "$ac_ct_STRIP"; then
drh710658c2012-01-16 13:00:05 +00004478 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004479$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004480else
drh710658c2012-01-16 13:00:05 +00004481 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004482$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004483fi
4484
drh8b727472009-01-19 18:18:40 +00004485 if test "x$ac_ct_STRIP" = x; then
4486 STRIP=":"
4487 else
4488 case $cross_compiling:$ac_tool_warned in
4489yes:)
drh710658c2012-01-16 13:00:05 +00004490{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4491whose name does not start with the host triplet. If you think this
4492configuration is useful to you, please write to autoconf@gnu.org." >&5
4493$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4494whose name does not start with the host triplet. If you think this
4495configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00004496ac_tool_warned=yes ;;
4497esac
4498 STRIP=$ac_ct_STRIP
4499 fi
mlcreech636a9952008-05-05 22:52:56 +00004500else
4501 STRIP="$ac_cv_prog_STRIP"
4502fi
4503
4504test -z "$STRIP" && STRIP=:
4505
4506
4507
4508
4509
4510
4511if test -n "$ac_tool_prefix"; then
4512 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4513set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004514{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004515$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004516if test "${ac_cv_prog_RANLIB+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004517 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004518else
4519 if test -n "$RANLIB"; then
4520 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4521else
4522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH
4524do
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004527 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004528 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 +00004529 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drh710658c2012-01-16 13:00:05 +00004530 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004531 break 2
4532 fi
4533done
drh710658c2012-01-16 13:00:05 +00004534done
drh8b727472009-01-19 18:18:40 +00004535IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004536
4537fi
4538fi
4539RANLIB=$ac_cv_prog_RANLIB
4540if test -n "$RANLIB"; then
drh710658c2012-01-16 13:00:05 +00004541 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004542$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004543else
drh710658c2012-01-16 13:00:05 +00004544 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004545$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004546fi
4547
drh8b727472009-01-19 18:18:40 +00004548
mlcreech636a9952008-05-05 22:52:56 +00004549fi
4550if test -z "$ac_cv_prog_RANLIB"; then
4551 ac_ct_RANLIB=$RANLIB
4552 # Extract the first word of "ranlib", so it can be a program name with args.
4553set dummy ranlib; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004554{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004555$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004556if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004557 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004558else
4559 if test -n "$ac_ct_RANLIB"; then
4560 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4561else
4562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH
4564do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004567 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004568 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 +00004569 ac_cv_prog_ac_ct_RANLIB="ranlib"
drh710658c2012-01-16 13:00:05 +00004570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004571 break 2
4572 fi
4573done
drh710658c2012-01-16 13:00:05 +00004574done
drh8b727472009-01-19 18:18:40 +00004575IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004576
4577fi
4578fi
4579ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4580if test -n "$ac_ct_RANLIB"; then
drh710658c2012-01-16 13:00:05 +00004581 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004582$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004583else
drh710658c2012-01-16 13:00:05 +00004584 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004585$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004586fi
4587
drh8b727472009-01-19 18:18:40 +00004588 if test "x$ac_ct_RANLIB" = x; then
4589 RANLIB=":"
4590 else
4591 case $cross_compiling:$ac_tool_warned in
4592yes:)
drh710658c2012-01-16 13:00:05 +00004593{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4594whose name does not start with the host triplet. If you think this
4595configuration is useful to you, please write to autoconf@gnu.org." >&5
4596$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4597whose name does not start with the host triplet. If you think this
4598configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00004599ac_tool_warned=yes ;;
4600esac
4601 RANLIB=$ac_ct_RANLIB
4602 fi
mlcreech636a9952008-05-05 22:52:56 +00004603else
4604 RANLIB="$ac_cv_prog_RANLIB"
4605fi
4606
4607test -z "$RANLIB" && RANLIB=:
4608
4609
4610
4611
4612
4613
4614# Determine commands to create old-style static archives.
4615old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4616old_postinstall_cmds='chmod 644 $oldlib'
4617old_postuninstall_cmds=
4618
4619if test -n "$RANLIB"; then
4620 case $host_os in
4621 openbsd*)
4622 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4623 ;;
4624 *)
4625 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4626 ;;
4627 esac
4628 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4629fi
4630
4631
4632
4633
4634
4635
4636
4637
4638
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
a.rottmann9bc8b932004-02-29 15:18:31 +00004664# If no C compiler was specified, use CC.
4665LTCC=${LTCC-"$CC"}
4666
vapier7f19c022007-02-17 14:46:31 +00004667# If no C compiler flags were specified, use CFLAGS.
4668LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4669
a.rottmann9bc8b932004-02-29 15:18:31 +00004670# Allow CC to be a program name with arguments.
4671compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004672
drh71eb93e2001-09-28 01:34:43 +00004673
mlcreech636a9952008-05-05 22:52:56 +00004674# Check for command to grab the raw symbol name followed by C symbol from nm.
drh710658c2012-01-16 13:00:05 +00004675{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
drh8b727472009-01-19 18:18:40 +00004676$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
drh710658c2012-01-16 13:00:05 +00004677if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004678 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004679else
4680
4681# These are sane defaults that work on at least a few old systems.
4682# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4683
4684# Character class describing NM global symbol codes.
4685symcode='[BCDEGRST]'
4686
4687# Regexp to match symbols that can be accessed directly from C.
4688sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4689
4690# Define system-specific variables.
4691case $host_os in
4692aix*)
4693 symcode='[BCDT]'
4694 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004695cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004696 symcode='[ABCDGISTW]'
4697 ;;
4698hpux*)
4699 if test "$host_cpu" = ia64; then
4700 symcode='[ABCDEGRST]'
4701 fi
4702 ;;
4703irix* | nonstopux*)
4704 symcode='[BCDEGRST]'
4705 ;;
4706osf*)
4707 symcode='[BCDEGQRST]'
4708 ;;
4709solaris*)
4710 symcode='[BDRT]'
4711 ;;
4712sco3.2v5*)
4713 symcode='[DT]'
4714 ;;
4715sysv4.2uw2*)
4716 symcode='[DT]'
4717 ;;
4718sysv5* | sco5v6* | unixware* | OpenUNIX*)
4719 symcode='[ABDT]'
4720 ;;
4721sysv4)
4722 symcode='[DFNSTU]'
4723 ;;
4724esac
4725
4726# If we're using GNU nm, then use its standard symbol codes.
4727case `$NM -V 2>&1` in
4728*GNU* | *'with BFD'*)
4729 symcode='[ABCDGIRSTW]' ;;
4730esac
4731
4732# Transform an extracted symbol line into a proper C declaration.
4733# Some systems (esp. on ia64) link data and code symbols differently,
4734# so use this general approach.
4735lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4736
4737# Transform an extracted symbol line into symbol name and symbol address
4738lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4739lt_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'"
4740
4741# Handle CRLF in mingw tool chain
4742opt_cr=
4743case $build_os in
4744mingw*)
4745 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4746 ;;
4747esac
4748
4749# Try without a prefix underscore, then with it.
4750for ac_symprfx in "" "_"; do
4751
4752 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4753 symxfrm="\\1 $ac_symprfx\\2 \\2"
4754
4755 # Write the raw and C identifiers.
4756 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4757 # Fake it for dumpbin and say T for any non-static function
4758 # and D for any global variable.
4759 # Also find C++ and __fastcall symbols from MSVC++,
4760 # which start with @ or ?.
4761 lt_cv_sys_global_symbol_pipe="$AWK '"\
4762" {last_section=section; section=\$ 3};"\
4763" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4764" \$ 0!~/External *\|/{next};"\
4765" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4766" {if(hide[section]) next};"\
4767" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4768" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4769" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4770" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4771" ' prfx=^$ac_symprfx"
4772 else
4773 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4774 fi
4775
4776 # Check to see that the pipe works correctly.
4777 pipe_works=no
4778
4779 rm -f conftest*
4780 cat > conftest.$ac_ext <<_LT_EOF
4781#ifdef __cplusplus
4782extern "C" {
4783#endif
4784char nm_test_var;
4785void nm_test_func(void);
4786void nm_test_func(void){}
4787#ifdef __cplusplus
4788}
4789#endif
4790int main(){nm_test_var='a';nm_test_func();return(0);}
4791_LT_EOF
4792
drh710658c2012-01-16 13:00:05 +00004793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mlcreech636a9952008-05-05 22:52:56 +00004794 (eval $ac_compile) 2>&5
4795 ac_status=$?
drh710658c2012-01-16 13:00:05 +00004796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; then
mlcreech636a9952008-05-05 22:52:56 +00004798 # Now try to grab the symbols.
4799 nlist=conftest.nm
drh710658c2012-01-16 13:00:05 +00004800 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
mlcreech636a9952008-05-05 22:52:56 +00004801 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4802 ac_status=$?
drh710658c2012-01-16 13:00:05 +00004803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } && test -s "$nlist"; then
mlcreech636a9952008-05-05 22:52:56 +00004805 # Try sorting and uniquifying the output.
4806 if sort "$nlist" | uniq > "$nlist"T; then
4807 mv -f "$nlist"T "$nlist"
4808 else
4809 rm -f "$nlist"T
4810 fi
4811
4812 # Make sure that we snagged all the symbols we need.
4813 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4814 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4815 cat <<_LT_EOF > conftest.$ac_ext
4816#ifdef __cplusplus
4817extern "C" {
4818#endif
4819
4820_LT_EOF
4821 # Now generate the symbol file.
4822 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4823
4824 cat <<_LT_EOF >> conftest.$ac_ext
4825
4826/* The mapping between symbol names and symbols. */
4827const struct {
4828 const char *name;
4829 void *address;
4830}
4831lt__PROGRAM__LTX_preloaded_symbols[] =
4832{
4833 { "@PROGRAM@", (void *) 0 },
4834_LT_EOF
4835 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4836 cat <<\_LT_EOF >> conftest.$ac_ext
4837 {0, (void *) 0}
4838};
4839
4840/* This works around a problem in FreeBSD linker */
4841#ifdef FREEBSD_WORKAROUND
4842static const void *lt_preloaded_setup() {
4843 return lt__PROGRAM__LTX_preloaded_symbols;
4844}
4845#endif
4846
4847#ifdef __cplusplus
4848}
4849#endif
4850_LT_EOF
4851 # Now try linking the two files.
4852 mv conftest.$ac_objext conftstm.$ac_objext
4853 lt_save_LIBS="$LIBS"
4854 lt_save_CFLAGS="$CFLAGS"
4855 LIBS="conftstm.$ac_objext"
4856 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
drh710658c2012-01-16 13:00:05 +00004857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mlcreech636a9952008-05-05 22:52:56 +00004858 (eval $ac_link) 2>&5
4859 ac_status=$?
drh710658c2012-01-16 13:00:05 +00004860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } && test -s conftest${ac_exeext}; then
mlcreech636a9952008-05-05 22:52:56 +00004862 pipe_works=yes
4863 fi
4864 LIBS="$lt_save_LIBS"
4865 CFLAGS="$lt_save_CFLAGS"
4866 else
4867 echo "cannot find nm_test_func in $nlist" >&5
4868 fi
4869 else
4870 echo "cannot find nm_test_var in $nlist" >&5
4871 fi
4872 else
4873 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4874 fi
4875 else
4876 echo "$progname: failed program was:" >&5
4877 cat conftest.$ac_ext >&5
4878 fi
4879 rm -rf conftest* conftst*
4880
4881 # Do not use the global_symbol_pipe unless it works.
4882 if test "$pipe_works" = yes; then
4883 break
4884 else
4885 lt_cv_sys_global_symbol_pipe=
4886 fi
4887done
4888
4889fi
4890
4891if test -z "$lt_cv_sys_global_symbol_pipe"; then
4892 lt_cv_sys_global_symbol_to_cdecl=
4893fi
4894if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drh710658c2012-01-16 13:00:05 +00004895 { $as_echo "$as_me:$LINENO: result: failed" >&5
drh8b727472009-01-19 18:18:40 +00004896$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004897else
drh710658c2012-01-16 13:00:05 +00004898 { $as_echo "$as_me:$LINENO: result: ok" >&5
drh8b727472009-01-19 18:18:40 +00004899$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004900fi
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
drh8b727472009-01-19 18:18:40 +00004924# Check whether --enable-libtool-lock was given.
drh710658c2012-01-16 13:00:05 +00004925if test "${enable_libtool_lock+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004926 enableval=$enable_libtool_lock;
4927fi
drh71eb93e2001-09-28 01:34:43 +00004928
a.rottmann9bc8b932004-02-29 15:18:31 +00004929test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00004930
a.rottmann9bc8b932004-02-29 15:18:31 +00004931# Some flags need to be propagated to the compiler or linker for good
4932# libtool support.
4933case $host in
4934ia64-*-hpux*)
4935 # Find out which ABI we are using.
4936 echo 'int i;' > conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +00004937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00004938 (eval $ac_compile) 2>&5
4939 ac_status=$?
drh710658c2012-01-16 13:00:05 +00004940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004942 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00004943 *ELF-32*)
4944 HPUX_IA64_MODE="32"
4945 ;;
4946 *ELF-64*)
4947 HPUX_IA64_MODE="64"
4948 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004949 esac
4950 fi
4951 rm -rf conftest*
4952 ;;
4953*-*-irix6*)
4954 # Find out which ABI we are using.
drh05c7e0b2015-01-10 14:27:17 +00004955 echo '#line 4955 "configure"' > conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +00004956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004957 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00004958 ac_status=$?
drh710658c2012-01-16 13:00:05 +00004959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; then
mlcreech636a9952008-05-05 22:52:56 +00004961 if test "$lt_cv_prog_gnu_ld" = yes; then
4962 case `/usr/bin/file conftest.$ac_objext` in
4963 *32-bit*)
4964 LD="${LD-ld} -melf32bsmip"
4965 ;;
4966 *N32*)
4967 LD="${LD-ld} -melf32bmipn32"
4968 ;;
4969 *64-bit*)
4970 LD="${LD-ld} -melf64bmip"
4971 ;;
4972 esac
4973 else
4974 case `/usr/bin/file conftest.$ac_objext` in
4975 *32-bit*)
4976 LD="${LD-ld} -32"
4977 ;;
4978 *N32*)
4979 LD="${LD-ld} -n32"
4980 ;;
4981 *64-bit*)
4982 LD="${LD-ld} -64"
4983 ;;
4984 esac
4985 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004986 fi
4987 rm -rf conftest*
4988 ;;
drh71eb93e2001-09-28 01:34:43 +00004989
mlcreech636a9952008-05-05 22:52:56 +00004990x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4991s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004992 # Find out which ABI we are using.
4993 echo 'int i;' > conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +00004994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004995 (eval $ac_compile) 2>&5
4996 ac_status=$?
drh710658c2012-01-16 13:00:05 +00004997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; then
vapier7f19c022007-02-17 14:46:31 +00004999 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005000 *32-bit*)
5001 case $host in
5002 x86_64-*kfreebsd*-gnu)
5003 LD="${LD-ld} -m elf_i386_fbsd"
5004 ;;
5005 x86_64-*linux*)
5006 LD="${LD-ld} -m elf_i386"
5007 ;;
5008 ppc64-*linux*|powerpc64-*linux*)
5009 LD="${LD-ld} -m elf32ppclinux"
5010 ;;
5011 s390x-*linux*)
5012 LD="${LD-ld} -m elf_s390"
5013 ;;
5014 sparc64-*linux*)
5015 LD="${LD-ld} -m elf32_sparc"
5016 ;;
5017 esac
5018 ;;
5019 *64-bit*)
5020 case $host in
5021 x86_64-*kfreebsd*-gnu)
5022 LD="${LD-ld} -m elf_x86_64_fbsd"
5023 ;;
5024 x86_64-*linux*)
5025 LD="${LD-ld} -m elf_x86_64"
5026 ;;
5027 ppc*-*linux*|powerpc*-*linux*)
5028 LD="${LD-ld} -m elf64ppc"
5029 ;;
5030 s390*-*linux*|s390*-*tpf*)
5031 LD="${LD-ld} -m elf64_s390"
5032 ;;
5033 sparc*-*linux*)
5034 LD="${LD-ld} -m elf64_sparc"
5035 ;;
5036 esac
5037 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005038 esac
5039 fi
5040 rm -rf conftest*
5041 ;;
drh71eb93e2001-09-28 01:34:43 +00005042
a.rottmann9bc8b932004-02-29 15:18:31 +00005043*-*-sco3.2v5*)
5044 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5045 SAVE_CFLAGS="$CFLAGS"
5046 CFLAGS="$CFLAGS -belf"
drh710658c2012-01-16 13:00:05 +00005047 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
drh8b727472009-01-19 18:18:40 +00005048$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
drh710658c2012-01-16 13:00:05 +00005049if test "${lt_cv_cc_needs_belf+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005050 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005051else
5052 ac_ext=c
5053ac_cpp='$CPP $CPPFLAGS'
5054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5056ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005057
drh710658c2012-01-16 13:00:05 +00005058 cat >conftest.$ac_ext <<_ACEOF
5059/* confdefs.h. */
5060_ACEOF
5061cat confdefs.h >>conftest.$ac_ext
5062cat >>conftest.$ac_ext <<_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00005063/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005064
a.rottmann9bc8b932004-02-29 15:18:31 +00005065int
5066main ()
drh71eb93e2001-09-28 01:34:43 +00005067{
drh71eb93e2001-09-28 01:34:43 +00005068
a.rottmann9bc8b932004-02-29 15:18:31 +00005069 ;
5070 return 0;
drh71eb93e2001-09-28 01:34:43 +00005071}
a.rottmann9bc8b932004-02-29 15:18:31 +00005072_ACEOF
drh710658c2012-01-16 13:00:05 +00005073rm -f conftest.$ac_objext conftest$ac_exeext
5074if { (ac_try="$ac_link"
5075case "(($ac_try" in
5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077 *) ac_try_echo=$ac_try;;
5078esac
5079eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5080$as_echo "$ac_try_echo") >&5
5081 (eval "$ac_link") 2>conftest.er1
5082 ac_status=$?
5083 grep -v '^ *+' conftest.er1 >conftest.err
5084 rm -f conftest.er1
5085 cat conftest.err >&5
5086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } && {
5088 test -z "$ac_c_werror_flag" ||
5089 test ! -s conftest.err
5090 } && test -s conftest$ac_exeext && {
5091 test "$cross_compiling" = yes ||
5092 $as_test_x conftest$ac_exeext
5093 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005094 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005095else
drh710658c2012-01-16 13:00:05 +00005096 $as_echo "$as_me: failed program was:" >&5
5097sed 's/^/| /' conftest.$ac_ext >&5
5098
5099 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005100fi
drh710658c2012-01-16 13:00:05 +00005101
5102rm -rf conftest.dSYM
5103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5104 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005105 ac_ext=c
5106ac_cpp='$CPP $CPPFLAGS'
5107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5109ac_compiler_gnu=$ac_cv_c_compiler_gnu
5110
drh71eb93e2001-09-28 01:34:43 +00005111fi
drh710658c2012-01-16 13:00:05 +00005112{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
drh8b727472009-01-19 18:18:40 +00005113$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005114 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5115 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5116 CFLAGS="$SAVE_CFLAGS"
5117 fi
5118 ;;
vapier7f19c022007-02-17 14:46:31 +00005119sparc*-*solaris*)
5120 # Find out which ABI we are using.
5121 echo 'int i;' > conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +00005122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vapier7f19c022007-02-17 14:46:31 +00005123 (eval $ac_compile) 2>&5
5124 ac_status=$?
drh710658c2012-01-16 13:00:05 +00005125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); }; then
vapier7f19c022007-02-17 14:46:31 +00005127 case `/usr/bin/file conftest.o` in
5128 *64-bit*)
5129 case $lt_cv_prog_gnu_ld in
5130 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005131 *)
5132 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5133 LD="${LD-ld} -64"
5134 fi
5135 ;;
vapier7f19c022007-02-17 14:46:31 +00005136 esac
5137 ;;
5138 esac
5139 fi
5140 rm -rf conftest*
5141 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005142esac
5143
5144need_locks="$enable_libtool_lock"
5145
drh71eb93e2001-09-28 01:34:43 +00005146
mlcreech636a9952008-05-05 22:52:56 +00005147 case $host_os in
5148 rhapsody* | darwin*)
5149 if test -n "$ac_tool_prefix"; then
5150 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5151set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005152{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005153$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005154if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005155 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005156else
5157 if test -n "$DSYMUTIL"; then
5158 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5159else
5160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161for as_dir in $PATH
5162do
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005165 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005166 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 +00005167 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drh710658c2012-01-16 13:00:05 +00005168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005169 break 2
5170 fi
5171done
drh710658c2012-01-16 13:00:05 +00005172done
drh8b727472009-01-19 18:18:40 +00005173IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005174
5175fi
5176fi
5177DSYMUTIL=$ac_cv_prog_DSYMUTIL
5178if test -n "$DSYMUTIL"; then
drh710658c2012-01-16 13:00:05 +00005179 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005180$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005181else
drh710658c2012-01-16 13:00:05 +00005182 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005183$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005184fi
5185
drh8b727472009-01-19 18:18:40 +00005186
mlcreech636a9952008-05-05 22:52:56 +00005187fi
5188if test -z "$ac_cv_prog_DSYMUTIL"; then
5189 ac_ct_DSYMUTIL=$DSYMUTIL
5190 # Extract the first word of "dsymutil", so it can be a program name with args.
5191set dummy dsymutil; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005192{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005193$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005194if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005195 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005196else
5197 if test -n "$ac_ct_DSYMUTIL"; then
5198 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5199else
5200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201for as_dir in $PATH
5202do
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005205 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005206 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 +00005207 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drh710658c2012-01-16 13:00:05 +00005208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005209 break 2
5210 fi
5211done
drh710658c2012-01-16 13:00:05 +00005212done
drh8b727472009-01-19 18:18:40 +00005213IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005214
5215fi
5216fi
5217ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5218if test -n "$ac_ct_DSYMUTIL"; then
drh710658c2012-01-16 13:00:05 +00005219 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005220$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005221else
drh710658c2012-01-16 13:00:05 +00005222 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005223$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005224fi
5225
drh8b727472009-01-19 18:18:40 +00005226 if test "x$ac_ct_DSYMUTIL" = x; then
5227 DSYMUTIL=":"
5228 else
5229 case $cross_compiling:$ac_tool_warned in
5230yes:)
drh710658c2012-01-16 13:00:05 +00005231{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5232whose name does not start with the host triplet. If you think this
5233configuration is useful to you, please write to autoconf@gnu.org." >&5
5234$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5235whose name does not start with the host triplet. If you think this
5236configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005237ac_tool_warned=yes ;;
5238esac
5239 DSYMUTIL=$ac_ct_DSYMUTIL
5240 fi
mlcreech636a9952008-05-05 22:52:56 +00005241else
5242 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5243fi
5244
5245 if test -n "$ac_tool_prefix"; then
5246 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5247set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005248{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005249$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005250if test "${ac_cv_prog_NMEDIT+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005251 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005252else
5253 if test -n "$NMEDIT"; then
5254 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5255else
5256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257for as_dir in $PATH
5258do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005261 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005262 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 +00005263 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drh710658c2012-01-16 13:00:05 +00005264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005265 break 2
5266 fi
5267done
drh710658c2012-01-16 13:00:05 +00005268done
drh8b727472009-01-19 18:18:40 +00005269IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005270
5271fi
5272fi
5273NMEDIT=$ac_cv_prog_NMEDIT
5274if test -n "$NMEDIT"; then
drh710658c2012-01-16 13:00:05 +00005275 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005276$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005277else
drh710658c2012-01-16 13:00:05 +00005278 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005279$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005280fi
5281
drh8b727472009-01-19 18:18:40 +00005282
mlcreech636a9952008-05-05 22:52:56 +00005283fi
5284if test -z "$ac_cv_prog_NMEDIT"; then
5285 ac_ct_NMEDIT=$NMEDIT
5286 # Extract the first word of "nmedit", so it can be a program name with args.
5287set dummy nmedit; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005288{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005289$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005290if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005291 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005292else
5293 if test -n "$ac_ct_NMEDIT"; then
5294 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5295else
5296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297for as_dir in $PATH
5298do
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005301 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005302 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 +00005303 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drh710658c2012-01-16 13:00:05 +00005304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005305 break 2
5306 fi
5307done
drh710658c2012-01-16 13:00:05 +00005308done
drh8b727472009-01-19 18:18:40 +00005309IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005310
5311fi
5312fi
5313ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5314if test -n "$ac_ct_NMEDIT"; then
drh710658c2012-01-16 13:00:05 +00005315 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005316$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005317else
drh710658c2012-01-16 13:00:05 +00005318 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005319$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005320fi
5321
drh8b727472009-01-19 18:18:40 +00005322 if test "x$ac_ct_NMEDIT" = x; then
5323 NMEDIT=":"
5324 else
5325 case $cross_compiling:$ac_tool_warned in
5326yes:)
drh710658c2012-01-16 13:00:05 +00005327{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5328whose name does not start with the host triplet. If you think this
5329configuration is useful to you, please write to autoconf@gnu.org." >&5
5330$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5331whose name does not start with the host triplet. If you think this
5332configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005333ac_tool_warned=yes ;;
5334esac
5335 NMEDIT=$ac_ct_NMEDIT
5336 fi
mlcreech636a9952008-05-05 22:52:56 +00005337else
5338 NMEDIT="$ac_cv_prog_NMEDIT"
5339fi
5340
5341 if test -n "$ac_tool_prefix"; then
5342 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5343set dummy ${ac_tool_prefix}lipo; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005344{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005345$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005346if test "${ac_cv_prog_LIPO+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005347 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005348else
5349 if test -n "$LIPO"; then
5350 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5351else
5352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353for as_dir in $PATH
5354do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005357 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005358 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 +00005359 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drh710658c2012-01-16 13:00:05 +00005360 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005361 break 2
5362 fi
5363done
drh710658c2012-01-16 13:00:05 +00005364done
drh8b727472009-01-19 18:18:40 +00005365IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005366
5367fi
5368fi
5369LIPO=$ac_cv_prog_LIPO
5370if test -n "$LIPO"; then
drh710658c2012-01-16 13:00:05 +00005371 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005372$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005373else
drh710658c2012-01-16 13:00:05 +00005374 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005375$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005376fi
5377
drh8b727472009-01-19 18:18:40 +00005378
mlcreech636a9952008-05-05 22:52:56 +00005379fi
5380if test -z "$ac_cv_prog_LIPO"; then
5381 ac_ct_LIPO=$LIPO
5382 # Extract the first word of "lipo", so it can be a program name with args.
5383set dummy lipo; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005384{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005385$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005386if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005387 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005388else
5389 if test -n "$ac_ct_LIPO"; then
5390 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5391else
5392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393for as_dir in $PATH
5394do
5395 IFS=$as_save_IFS
5396 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005397 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005398 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 +00005399 ac_cv_prog_ac_ct_LIPO="lipo"
drh710658c2012-01-16 13:00:05 +00005400 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005401 break 2
5402 fi
5403done
drh710658c2012-01-16 13:00:05 +00005404done
drh8b727472009-01-19 18:18:40 +00005405IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005406
5407fi
5408fi
5409ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5410if test -n "$ac_ct_LIPO"; then
drh710658c2012-01-16 13:00:05 +00005411 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005412$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005413else
drh710658c2012-01-16 13:00:05 +00005414 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005415$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005416fi
5417
drh8b727472009-01-19 18:18:40 +00005418 if test "x$ac_ct_LIPO" = x; then
5419 LIPO=":"
5420 else
5421 case $cross_compiling:$ac_tool_warned in
5422yes:)
drh710658c2012-01-16 13:00:05 +00005423{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5424whose name does not start with the host triplet. If you think this
5425configuration is useful to you, please write to autoconf@gnu.org." >&5
5426$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5427whose name does not start with the host triplet. If you think this
5428configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005429ac_tool_warned=yes ;;
5430esac
5431 LIPO=$ac_ct_LIPO
5432 fi
mlcreech636a9952008-05-05 22:52:56 +00005433else
5434 LIPO="$ac_cv_prog_LIPO"
5435fi
5436
5437 if test -n "$ac_tool_prefix"; then
5438 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5439set dummy ${ac_tool_prefix}otool; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005440{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005441$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005442if test "${ac_cv_prog_OTOOL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005443 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005444else
5445 if test -n "$OTOOL"; then
5446 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5447else
5448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449for as_dir in $PATH
5450do
5451 IFS=$as_save_IFS
5452 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005453 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005454 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 +00005455 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drh710658c2012-01-16 13:00:05 +00005456 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005457 break 2
5458 fi
5459done
drh710658c2012-01-16 13:00:05 +00005460done
drh8b727472009-01-19 18:18:40 +00005461IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005462
5463fi
5464fi
5465OTOOL=$ac_cv_prog_OTOOL
5466if test -n "$OTOOL"; then
drh710658c2012-01-16 13:00:05 +00005467 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005468$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005469else
drh710658c2012-01-16 13:00:05 +00005470 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005471$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005472fi
5473
drh8b727472009-01-19 18:18:40 +00005474
mlcreech636a9952008-05-05 22:52:56 +00005475fi
5476if test -z "$ac_cv_prog_OTOOL"; then
5477 ac_ct_OTOOL=$OTOOL
5478 # Extract the first word of "otool", so it can be a program name with args.
5479set dummy otool; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005480{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005481$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005482if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005483 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005484else
5485 if test -n "$ac_ct_OTOOL"; then
5486 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5487else
5488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489for as_dir in $PATH
5490do
5491 IFS=$as_save_IFS
5492 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005493 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005494 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 +00005495 ac_cv_prog_ac_ct_OTOOL="otool"
drh710658c2012-01-16 13:00:05 +00005496 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005497 break 2
5498 fi
5499done
drh710658c2012-01-16 13:00:05 +00005500done
drh8b727472009-01-19 18:18:40 +00005501IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005502
5503fi
5504fi
5505ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5506if test -n "$ac_ct_OTOOL"; then
drh710658c2012-01-16 13:00:05 +00005507 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005508$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005509else
drh710658c2012-01-16 13:00:05 +00005510 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005511$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005512fi
5513
drh8b727472009-01-19 18:18:40 +00005514 if test "x$ac_ct_OTOOL" = x; then
5515 OTOOL=":"
5516 else
5517 case $cross_compiling:$ac_tool_warned in
5518yes:)
drh710658c2012-01-16 13:00:05 +00005519{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5520whose name does not start with the host triplet. If you think this
5521configuration is useful to you, please write to autoconf@gnu.org." >&5
5522$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5523whose name does not start with the host triplet. If you think this
5524configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005525ac_tool_warned=yes ;;
5526esac
5527 OTOOL=$ac_ct_OTOOL
5528 fi
mlcreech636a9952008-05-05 22:52:56 +00005529else
5530 OTOOL="$ac_cv_prog_OTOOL"
5531fi
5532
5533 if test -n "$ac_tool_prefix"; then
5534 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5535set dummy ${ac_tool_prefix}otool64; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005536{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005537$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005538if test "${ac_cv_prog_OTOOL64+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005539 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005540else
5541 if test -n "$OTOOL64"; then
5542 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5543else
5544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545for as_dir in $PATH
5546do
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005549 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005550 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 +00005551 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drh710658c2012-01-16 13:00:05 +00005552 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005553 break 2
5554 fi
5555done
drh710658c2012-01-16 13:00:05 +00005556done
drh8b727472009-01-19 18:18:40 +00005557IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005558
5559fi
5560fi
5561OTOOL64=$ac_cv_prog_OTOOL64
5562if test -n "$OTOOL64"; then
drh710658c2012-01-16 13:00:05 +00005563 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005564$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005565else
drh710658c2012-01-16 13:00:05 +00005566 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005567$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005568fi
5569
drh8b727472009-01-19 18:18:40 +00005570
mlcreech636a9952008-05-05 22:52:56 +00005571fi
5572if test -z "$ac_cv_prog_OTOOL64"; then
5573 ac_ct_OTOOL64=$OTOOL64
5574 # Extract the first word of "otool64", so it can be a program name with args.
5575set dummy otool64; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005576{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005577$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005578if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005579 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005580else
5581 if test -n "$ac_ct_OTOOL64"; then
5582 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5583else
5584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585for as_dir in $PATH
5586do
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005589 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005590 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 +00005591 ac_cv_prog_ac_ct_OTOOL64="otool64"
drh710658c2012-01-16 13:00:05 +00005592 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005593 break 2
5594 fi
5595done
drh710658c2012-01-16 13:00:05 +00005596done
drh8b727472009-01-19 18:18:40 +00005597IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005598
5599fi
5600fi
5601ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5602if test -n "$ac_ct_OTOOL64"; then
drh710658c2012-01-16 13:00:05 +00005603 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005604$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005605else
drh710658c2012-01-16 13:00:05 +00005606 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005607$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005608fi
5609
drh8b727472009-01-19 18:18:40 +00005610 if test "x$ac_ct_OTOOL64" = x; then
5611 OTOOL64=":"
5612 else
5613 case $cross_compiling:$ac_tool_warned in
5614yes:)
drh710658c2012-01-16 13:00:05 +00005615{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5616whose name does not start with the host triplet. If you think this
5617configuration is useful to you, please write to autoconf@gnu.org." >&5
5618$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5619whose name does not start with the host triplet. If you think this
5620configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005621ac_tool_warned=yes ;;
5622esac
5623 OTOOL64=$ac_ct_OTOOL64
5624 fi
mlcreech636a9952008-05-05 22:52:56 +00005625else
5626 OTOOL64="$ac_cv_prog_OTOOL64"
5627fi
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
drh710658c2012-01-16 13:00:05 +00005655 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005656$as_echo_n "checking for -single_module linker flag... " >&6; }
drh710658c2012-01-16 13:00:05 +00005657if test "${lt_cv_apple_cc_single_mod+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005658 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005659else
5660 lt_cv_apple_cc_single_mod=no
5661 if test -z "${LT_MULTI_MODULE}"; then
5662 # By default we will add the -single_module flag. You can override
5663 # by either setting the environment variable LT_MULTI_MODULE
5664 # non-empty at configure time, or by adding -multi_module to the
5665 # link flags.
5666 rm -rf libconftest.dylib*
5667 echo "int foo(void){return 1;}" > conftest.c
5668 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5669-dynamiclib -Wl,-single_module conftest.c" >&5
5670 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5671 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5672 _lt_result=$?
5673 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5674 lt_cv_apple_cc_single_mod=yes
5675 else
5676 cat conftest.err >&5
5677 fi
5678 rm -rf libconftest.dylib*
5679 rm -f conftest.*
5680 fi
5681fi
drh710658c2012-01-16 13:00:05 +00005682{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
drh8b727472009-01-19 18:18:40 +00005683$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
drh710658c2012-01-16 13:00:05 +00005684 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005685$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
drh710658c2012-01-16 13:00:05 +00005686if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005687 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005688else
5689 lt_cv_ld_exported_symbols_list=no
5690 save_LDFLAGS=$LDFLAGS
5691 echo "_main" > conftest.sym
5692 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
drh710658c2012-01-16 13:00:05 +00005693 cat >conftest.$ac_ext <<_ACEOF
5694/* confdefs.h. */
5695_ACEOF
5696cat confdefs.h >>conftest.$ac_ext
5697cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +00005698/* end confdefs.h. */
5699
5700int
5701main ()
5702{
5703
5704 ;
5705 return 0;
5706}
5707_ACEOF
drh710658c2012-01-16 13:00:05 +00005708rm -f conftest.$ac_objext conftest$ac_exeext
5709if { (ac_try="$ac_link"
5710case "(($ac_try" in
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5713esac
5714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5715$as_echo "$ac_try_echo") >&5
5716 (eval "$ac_link") 2>conftest.er1
5717 ac_status=$?
5718 grep -v '^ *+' conftest.er1 >conftest.err
5719 rm -f conftest.er1
5720 cat conftest.err >&5
5721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } && {
5723 test -z "$ac_c_werror_flag" ||
5724 test ! -s conftest.err
5725 } && test -s conftest$ac_exeext && {
5726 test "$cross_compiling" = yes ||
5727 $as_test_x conftest$ac_exeext
5728 }; then
mlcreech636a9952008-05-05 22:52:56 +00005729 lt_cv_ld_exported_symbols_list=yes
5730else
drh710658c2012-01-16 13:00:05 +00005731 $as_echo "$as_me: failed program was:" >&5
5732sed 's/^/| /' conftest.$ac_ext >&5
5733
5734 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005735fi
drh710658c2012-01-16 13:00:05 +00005736
5737rm -rf conftest.dSYM
5738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5739 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005740 LDFLAGS="$save_LDFLAGS"
5741
5742fi
drh710658c2012-01-16 13:00:05 +00005743{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
drh8b727472009-01-19 18:18:40 +00005744$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005745 case $host_os in
5746 rhapsody* | darwin1.[012])
5747 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5748 darwin1.*)
5749 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5750 darwin*) # darwin 5.x on
5751 # if running on 10.5 or later, the deployment target defaults
5752 # to the OS version, if on x86, and 10.4, the deployment
5753 # target defaults to 10.4. Don't you love it?
5754 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5755 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5756 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5757 10.[012]*)
5758 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5759 10.*)
5760 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5761 esac
5762 ;;
5763 esac
5764 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5765 _lt_dar_single_mod='$single_module'
5766 fi
5767 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5768 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5769 else
5770 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5771 fi
5772 if test "$DSYMUTIL" != ":"; then
5773 _lt_dsymutil='~$DSYMUTIL $lib || :'
5774 else
5775 _lt_dsymutil=
5776 fi
5777 ;;
5778 esac
5779
a.rottmann84e63352003-03-24 09:42:16 +00005780ac_ext=c
5781ac_cpp='$CPP $CPPFLAGS'
5782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh710658c2012-01-16 13:00:05 +00005785{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
drh8b727472009-01-19 18:18:40 +00005786$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005787# On Suns, sometimes $CPP names a directory.
5788if test -n "$CPP" && test -d "$CPP"; then
5789 CPP=
5790fi
5791if test -z "$CPP"; then
drh710658c2012-01-16 13:00:05 +00005792 if test "${ac_cv_prog_CPP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005793 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005794else
a.rottmann84e63352003-03-24 09:42:16 +00005795 # Double quotes because CPP needs to be expanded
5796 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5797 do
5798 ac_preproc_ok=false
5799for ac_c_preproc_warn_flag in '' yes
5800do
5801 # Use a header file that comes with gcc, so configuring glibc
5802 # with a fresh cross-compiler works.
5803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5804 # <limits.h> exists even on freestanding compilers.
5805 # On the NeXT, cc -E runs the code through the compiler's parser,
5806 # not just through cpp. "Syntax error" is here to catch this case.
drh710658c2012-01-16 13:00:05 +00005807 cat >conftest.$ac_ext <<_ACEOF
5808/* confdefs.h. */
5809_ACEOF
5810cat confdefs.h >>conftest.$ac_ext
5811cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005812/* end confdefs.h. */
5813#ifdef __STDC__
5814# include <limits.h>
5815#else
5816# include <assert.h>
5817#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005818 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005819_ACEOF
drh710658c2012-01-16 13:00:05 +00005820if { (ac_try="$ac_cpp conftest.$ac_ext"
5821case "(($ac_try" in
5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823 *) ac_try_echo=$ac_try;;
5824esac
5825eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5826$as_echo "$ac_try_echo") >&5
5827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5828 ac_status=$?
5829 grep -v '^ *+' conftest.er1 >conftest.err
5830 rm -f conftest.er1
5831 cat conftest.err >&5
5832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } >/dev/null && {
5834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5835 test ! -s conftest.err
5836 }; then
5837 :
dana9f39fd2011-08-12 16:34:42 +00005838else
drh710658c2012-01-16 13:00:05 +00005839 $as_echo "$as_me: failed program was:" >&5
5840sed 's/^/| /' conftest.$ac_ext >&5
5841
a.rottmann84e63352003-03-24 09:42:16 +00005842 # Broken: fails on valid input.
5843continue
5844fi
drh710658c2012-01-16 13:00:05 +00005845
5846rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005847
drh8b727472009-01-19 18:18:40 +00005848 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005849 # can be detected and how.
drh710658c2012-01-16 13:00:05 +00005850 cat >conftest.$ac_ext <<_ACEOF
5851/* confdefs.h. */
5852_ACEOF
5853cat confdefs.h >>conftest.$ac_ext
5854cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005855/* end confdefs.h. */
5856#include <ac_nonexistent.h>
5857_ACEOF
drh710658c2012-01-16 13:00:05 +00005858if { (ac_try="$ac_cpp conftest.$ac_ext"
5859case "(($ac_try" in
5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5862esac
5863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5864$as_echo "$ac_try_echo") >&5
5865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } >/dev/null && {
5872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5873 test ! -s conftest.err
5874 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005875 # Broken: success on invalid input.
5876continue
5877else
drh710658c2012-01-16 13:00:05 +00005878 $as_echo "$as_me: failed program was:" >&5
5879sed 's/^/| /' conftest.$ac_ext >&5
5880
a.rottmann84e63352003-03-24 09:42:16 +00005881 # Passes both tests.
5882ac_preproc_ok=:
5883break
5884fi
drh710658c2012-01-16 13:00:05 +00005885
5886rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005887
5888done
5889# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drh710658c2012-01-16 13:00:05 +00005890rm -f conftest.err conftest.$ac_ext
5891if $ac_preproc_ok; then
a.rottmann84e63352003-03-24 09:42:16 +00005892 break
5893fi
5894
5895 done
5896 ac_cv_prog_CPP=$CPP
5897
5898fi
5899 CPP=$ac_cv_prog_CPP
5900else
5901 ac_cv_prog_CPP=$CPP
5902fi
drh710658c2012-01-16 13:00:05 +00005903{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
drh8b727472009-01-19 18:18:40 +00005904$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005905ac_preproc_ok=false
5906for ac_c_preproc_warn_flag in '' yes
5907do
5908 # Use a header file that comes with gcc, so configuring glibc
5909 # with a fresh cross-compiler works.
5910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5911 # <limits.h> exists even on freestanding compilers.
5912 # On the NeXT, cc -E runs the code through the compiler's parser,
5913 # not just through cpp. "Syntax error" is here to catch this case.
drh710658c2012-01-16 13:00:05 +00005914 cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h. */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005919/* end confdefs.h. */
5920#ifdef __STDC__
5921# include <limits.h>
5922#else
5923# include <assert.h>
5924#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005925 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005926_ACEOF
drh710658c2012-01-16 13:00:05 +00005927if { (ac_try="$ac_cpp conftest.$ac_ext"
5928case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931esac
5932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5933$as_echo "$ac_try_echo") >&5
5934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5935 ac_status=$?
5936 grep -v '^ *+' conftest.er1 >conftest.err
5937 rm -f conftest.er1
5938 cat conftest.err >&5
5939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } >/dev/null && {
5941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5942 test ! -s conftest.err
5943 }; then
5944 :
dana9f39fd2011-08-12 16:34:42 +00005945else
drh710658c2012-01-16 13:00:05 +00005946 $as_echo "$as_me: failed program was:" >&5
5947sed 's/^/| /' conftest.$ac_ext >&5
5948
a.rottmann84e63352003-03-24 09:42:16 +00005949 # Broken: fails on valid input.
5950continue
5951fi
drh710658c2012-01-16 13:00:05 +00005952
5953rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005954
drh8b727472009-01-19 18:18:40 +00005955 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005956 # can be detected and how.
drh710658c2012-01-16 13:00:05 +00005957 cat >conftest.$ac_ext <<_ACEOF
5958/* confdefs.h. */
5959_ACEOF
5960cat confdefs.h >>conftest.$ac_ext
5961cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005962/* end confdefs.h. */
5963#include <ac_nonexistent.h>
5964_ACEOF
drh710658c2012-01-16 13:00:05 +00005965if { (ac_try="$ac_cpp conftest.$ac_ext"
5966case "(($ac_try" in
5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968 *) ac_try_echo=$ac_try;;
5969esac
5970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5971$as_echo "$ac_try_echo") >&5
5972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5973 ac_status=$?
5974 grep -v '^ *+' conftest.er1 >conftest.err
5975 rm -f conftest.er1
5976 cat conftest.err >&5
5977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); } >/dev/null && {
5979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5980 test ! -s conftest.err
5981 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005982 # Broken: success on invalid input.
5983continue
5984else
drh710658c2012-01-16 13:00:05 +00005985 $as_echo "$as_me: failed program was:" >&5
5986sed 's/^/| /' conftest.$ac_ext >&5
5987
a.rottmann84e63352003-03-24 09:42:16 +00005988 # Passes both tests.
5989ac_preproc_ok=:
5990break
5991fi
drh710658c2012-01-16 13:00:05 +00005992
5993rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005994
5995done
5996# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drh710658c2012-01-16 13:00:05 +00005997rm -f conftest.err conftest.$ac_ext
5998if $ac_preproc_ok; then
5999 :
a.rottmann84e63352003-03-24 09:42:16 +00006000else
drh710658c2012-01-16 13:00:05 +00006001 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6002See \`config.log' for more details." >&5
6003$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6004See \`config.log' for more details." >&2;}
6005 { (exit 1); exit 1; }; }
a.rottmann84e63352003-03-24 09:42:16 +00006006fi
6007
6008ac_ext=c
6009ac_cpp='$CPP $CPPFLAGS'
6010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6012ac_compiler_gnu=$ac_cv_c_compiler_gnu
6013
6014
drh710658c2012-01-16 13:00:05 +00006015{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
drh8b727472009-01-19 18:18:40 +00006016$as_echo_n "checking for ANSI C header files... " >&6; }
drh710658c2012-01-16 13:00:05 +00006017if test "${ac_cv_header_stdc+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006018 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006019else
drh710658c2012-01-16 13:00:05 +00006020 cat >conftest.$ac_ext <<_ACEOF
6021/* confdefs.h. */
6022_ACEOF
6023cat confdefs.h >>conftest.$ac_ext
6024cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006025/* end confdefs.h. */
6026#include <stdlib.h>
6027#include <stdarg.h>
6028#include <string.h>
6029#include <float.h>
6030
6031int
6032main ()
6033{
6034
6035 ;
6036 return 0;
6037}
6038_ACEOF
drh710658c2012-01-16 13:00:05 +00006039rm -f conftest.$ac_objext
6040if { (ac_try="$ac_compile"
6041case "(($ac_try" in
6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043 *) ac_try_echo=$ac_try;;
6044esac
6045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6046$as_echo "$ac_try_echo") >&5
6047 (eval "$ac_compile") 2>conftest.er1
6048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
6052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } && {
6054 test -z "$ac_c_werror_flag" ||
6055 test ! -s conftest.err
6056 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00006057 ac_cv_header_stdc=yes
6058else
drh710658c2012-01-16 13:00:05 +00006059 $as_echo "$as_me: failed program was:" >&5
6060sed 's/^/| /' conftest.$ac_ext >&5
6061
6062 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006063fi
drh710658c2012-01-16 13:00:05 +00006064
drh8b727472009-01-19 18:18:40 +00006065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006066
6067if test $ac_cv_header_stdc = yes; then
6068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
drh710658c2012-01-16 13:00:05 +00006069 cat >conftest.$ac_ext <<_ACEOF
6070/* confdefs.h. */
6071_ACEOF
6072cat confdefs.h >>conftest.$ac_ext
6073cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006074/* end confdefs.h. */
6075#include <string.h>
6076
6077_ACEOF
6078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drh710658c2012-01-16 13:00:05 +00006079 $EGREP "memchr" >/dev/null 2>&1; then
6080 :
a.rottmann84e63352003-03-24 09:42:16 +00006081else
6082 ac_cv_header_stdc=no
6083fi
6084rm -f conftest*
6085
6086fi
6087
6088if test $ac_cv_header_stdc = yes; then
6089 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
drh710658c2012-01-16 13:00:05 +00006090 cat >conftest.$ac_ext <<_ACEOF
6091/* confdefs.h. */
6092_ACEOF
6093cat confdefs.h >>conftest.$ac_ext
6094cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006095/* end confdefs.h. */
6096#include <stdlib.h>
6097
6098_ACEOF
6099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drh710658c2012-01-16 13:00:05 +00006100 $EGREP "free" >/dev/null 2>&1; then
6101 :
a.rottmann84e63352003-03-24 09:42:16 +00006102else
6103 ac_cv_header_stdc=no
6104fi
6105rm -f conftest*
6106
6107fi
6108
6109if test $ac_cv_header_stdc = yes; then
6110 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
drh710658c2012-01-16 13:00:05 +00006111 if test "$cross_compiling" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006112 :
6113else
drh710658c2012-01-16 13:00:05 +00006114 cat >conftest.$ac_ext <<_ACEOF
6115/* confdefs.h. */
6116_ACEOF
6117cat confdefs.h >>conftest.$ac_ext
6118cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006119/* end confdefs.h. */
6120#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006121#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006122#if ((' ' & 0x0FF) == 0x020)
6123# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6124# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6125#else
6126# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006127 (('a' <= (c) && (c) <= 'i') \
6128 || ('j' <= (c) && (c) <= 'r') \
6129 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006130# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6131#endif
6132
6133#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6134int
6135main ()
6136{
6137 int i;
6138 for (i = 0; i < 256; i++)
6139 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006140 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006141 return 2;
6142 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006143}
6144_ACEOF
drh710658c2012-01-16 13:00:05 +00006145rm -f conftest$ac_exeext
6146if { (ac_try="$ac_link"
6147case "(($ac_try" in
6148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149 *) ac_try_echo=$ac_try;;
6150esac
6151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6152$as_echo "$ac_try_echo") >&5
6153 (eval "$ac_link") 2>&5
6154 ac_status=$?
6155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6157 { (case "(($ac_try" in
6158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159 *) ac_try_echo=$ac_try;;
6160esac
6161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6162$as_echo "$ac_try_echo") >&5
6163 (eval "$ac_try") 2>&5
6164 ac_status=$?
6165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); }; }; then
6167 :
a.rottmann84e63352003-03-24 09:42:16 +00006168else
drh710658c2012-01-16 13:00:05 +00006169 $as_echo "$as_me: program exited with status $ac_status" >&5
6170$as_echo "$as_me: failed program was:" >&5
6171sed 's/^/| /' conftest.$ac_ext >&5
6172
6173( exit $ac_status )
6174ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006175fi
drh710658c2012-01-16 13:00:05 +00006176rm -rf conftest.dSYM
6177rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00006178fi
6179
drh710658c2012-01-16 13:00:05 +00006180
a.rottmann84e63352003-03-24 09:42:16 +00006181fi
6182fi
drh710658c2012-01-16 13:00:05 +00006183{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
drh8b727472009-01-19 18:18:40 +00006184$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006185if test $ac_cv_header_stdc = yes; then
6186
drh710658c2012-01-16 13:00:05 +00006187cat >>confdefs.h <<\_ACEOF
6188#define STDC_HEADERS 1
6189_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006190
6191fi
6192
6193# On IRIX 5.3, sys/types and inttypes.h are conflicting.
drh710658c2012-01-16 13:00:05 +00006194
6195
6196
6197
6198
6199
6200
6201
6202
a.rottmann84e63352003-03-24 09:42:16 +00006203for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006204 inttypes.h stdint.h unistd.h
drh710658c2012-01-16 13:00:05 +00006205do
6206as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6207{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6208$as_echo_n "checking for $ac_header... " >&6; }
6209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6210 $as_echo_n "(cached) " >&6
6211else
6212 cat >conftest.$ac_ext <<_ACEOF
6213/* confdefs.h. */
6214_ACEOF
6215cat confdefs.h >>conftest.$ac_ext
6216cat >>conftest.$ac_ext <<_ACEOF
6217/* end confdefs.h. */
6218$ac_includes_default
6219
6220#include <$ac_header>
6221_ACEOF
6222rm -f conftest.$ac_objext
6223if { (ac_try="$ac_compile"
6224case "(($ac_try" in
6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226 *) ac_try_echo=$ac_try;;
6227esac
6228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6229$as_echo "$ac_try_echo") >&5
6230 (eval "$ac_compile") 2>conftest.er1
6231 ac_status=$?
6232 grep -v '^ *+' conftest.er1 >conftest.err
6233 rm -f conftest.er1
6234 cat conftest.err >&5
6235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } && {
6237 test -z "$ac_c_werror_flag" ||
6238 test ! -s conftest.err
6239 } && test -s conftest.$ac_objext; then
6240 eval "$as_ac_Header=yes"
6241else
6242 $as_echo "$as_me: failed program was:" >&5
6243sed 's/^/| /' conftest.$ac_ext >&5
6244
6245 eval "$as_ac_Header=no"
6246fi
6247
6248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249fi
6250ac_res=`eval 'as_val=${'$as_ac_Header'}
6251 $as_echo "$as_val"'`
6252 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6253$as_echo "$ac_res" >&6; }
6254if test `eval 'as_val=${'$as_ac_Header'}
6255 $as_echo "$as_val"'` = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006256 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006257#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006258_ACEOF
6259
6260fi
6261
6262done
6263
6264
drh710658c2012-01-16 13:00:05 +00006265
a.rottmann84e63352003-03-24 09:42:16 +00006266for ac_header in dlfcn.h
drh710658c2012-01-16 13:00:05 +00006267do
6268as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6269{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6270$as_echo_n "checking for $ac_header... " >&6; }
6271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6272 $as_echo_n "(cached) " >&6
6273else
6274 cat >conftest.$ac_ext <<_ACEOF
6275/* confdefs.h. */
6276_ACEOF
6277cat confdefs.h >>conftest.$ac_ext
6278cat >>conftest.$ac_ext <<_ACEOF
6279/* end confdefs.h. */
6280$ac_includes_default
6281
6282#include <$ac_header>
6283_ACEOF
6284rm -f conftest.$ac_objext
6285if { (ac_try="$ac_compile"
6286case "(($ac_try" in
6287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6288 *) ac_try_echo=$ac_try;;
6289esac
6290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6291$as_echo "$ac_try_echo") >&5
6292 (eval "$ac_compile") 2>conftest.er1
6293 ac_status=$?
6294 grep -v '^ *+' conftest.er1 >conftest.err
6295 rm -f conftest.er1
6296 cat conftest.err >&5
6297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } && {
6299 test -z "$ac_c_werror_flag" ||
6300 test ! -s conftest.err
6301 } && test -s conftest.$ac_objext; then
6302 eval "$as_ac_Header=yes"
6303else
6304 $as_echo "$as_me: failed program was:" >&5
6305sed 's/^/| /' conftest.$ac_ext >&5
6306
6307 eval "$as_ac_Header=no"
6308fi
6309
6310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311fi
6312ac_res=`eval 'as_val=${'$as_ac_Header'}
6313 $as_echo "$as_val"'`
6314 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6315$as_echo "$ac_res" >&6; }
6316if test `eval 'as_val=${'$as_ac_Header'}
6317 $as_echo "$as_val"'` = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006318 cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00006319#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006320_ACEOF
6321
6322fi
6323
drh71eb93e2001-09-28 01:34:43 +00006324done
6325
drh71eb93e2001-09-28 01:34:43 +00006326
drh71eb93e2001-09-28 01:34:43 +00006327
mlcreech636a9952008-05-05 22:52:56 +00006328# Set options
mlcreech94984912008-03-04 19:03:08 +00006329
drh71eb93e2001-09-28 01:34:43 +00006330
drh71eb93e2001-09-28 01:34:43 +00006331
mlcreech636a9952008-05-05 22:52:56 +00006332 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006333
a.rottmann9bc8b932004-02-29 15:18:31 +00006334
mlcreech636a9952008-05-05 22:52:56 +00006335 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006336
a.rottmann9bc8b932004-02-29 15:18:31 +00006337
drh8b727472009-01-19 18:18:40 +00006338 # Check whether --enable-shared was given.
drh710658c2012-01-16 13:00:05 +00006339if test "${enable_shared+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006340 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006341 case $enableval in
6342 yes) enable_shared=yes ;;
6343 no) enable_shared=no ;;
6344 *)
6345 enable_shared=no
6346 # Look at the argument we got. We use all the common list separators.
6347 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6348 for pkg in $enableval; do
6349 IFS="$lt_save_ifs"
6350 if test "X$pkg" = "X$p"; then
6351 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006352 fi
mlcreech636a9952008-05-05 22:52:56 +00006353 done
6354 IFS="$lt_save_ifs"
6355 ;;
6356 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006357else
mlcreech636a9952008-05-05 22:52:56 +00006358 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006359fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006360
mlcreech636a9952008-05-05 22:52:56 +00006361
6362
6363
6364
6365
6366
6367
drh8b727472009-01-19 18:18:40 +00006368
6369 # Check whether --enable-static was given.
drh710658c2012-01-16 13:00:05 +00006370if test "${enable_static+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006371 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006372 case $enableval in
6373 yes) enable_static=yes ;;
6374 no) enable_static=no ;;
6375 *)
6376 enable_static=no
6377 # Look at the argument we got. We use all the common list separators.
6378 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6379 for pkg in $enableval; do
6380 IFS="$lt_save_ifs"
6381 if test "X$pkg" = "X$p"; then
6382 enable_static=yes
6383 fi
6384 done
6385 IFS="$lt_save_ifs"
6386 ;;
6387 esac
6388else
6389 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006390fi
mlcreech636a9952008-05-05 22:52:56 +00006391
6392
6393
6394
6395
6396
6397
6398
6399
drh8b727472009-01-19 18:18:40 +00006400
6401# Check whether --with-pic was given.
drh710658c2012-01-16 13:00:05 +00006402if test "${with_pic+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006403 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006404else
6405 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006406fi
6407
mlcreech636a9952008-05-05 22:52:56 +00006408
6409test -z "$pic_mode" && pic_mode=default
6410
6411
6412
6413
6414
6415
6416
drh8b727472009-01-19 18:18:40 +00006417 # Check whether --enable-fast-install was given.
drh710658c2012-01-16 13:00:05 +00006418if test "${enable_fast_install+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006419 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006420 case $enableval in
6421 yes) enable_fast_install=yes ;;
6422 no) enable_fast_install=no ;;
6423 *)
6424 enable_fast_install=no
6425 # Look at the argument we got. We use all the common list separators.
6426 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6427 for pkg in $enableval; do
6428 IFS="$lt_save_ifs"
6429 if test "X$pkg" = "X$p"; then
6430 enable_fast_install=yes
6431 fi
6432 done
6433 IFS="$lt_save_ifs"
6434 ;;
6435 esac
6436else
6437 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006438fi
6439
mlcreech636a9952008-05-05 22:52:56 +00006440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450# This can be used to rebuild libtool when needed
6451LIBTOOL_DEPS="$ltmain"
6452
6453# Always use our own libtool.
6454LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480test -z "$LN_S" && LN_S="ln -s"
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495if test -n "${ZSH_VERSION+set}" ; then
6496 setopt NO_GLOB_SUBST
6497fi
6498
drh710658c2012-01-16 13:00:05 +00006499{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
drh8b727472009-01-19 18:18:40 +00006500$as_echo_n "checking for objdir... " >&6; }
drh710658c2012-01-16 13:00:05 +00006501if test "${lt_cv_objdir+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006502 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006503else
6504 rm -f .libs 2>/dev/null
6505mkdir .libs 2>/dev/null
6506if test -d .libs; then
6507 lt_cv_objdir=.libs
6508else
6509 # MS-DOS does not allow filenames that begin with a dot.
6510 lt_cv_objdir=_libs
6511fi
6512rmdir .libs 2>/dev/null
6513fi
drh710658c2012-01-16 13:00:05 +00006514{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
drh8b727472009-01-19 18:18:40 +00006515$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006516objdir=$lt_cv_objdir
6517
6518
6519
6520
6521
mlcreech636a9952008-05-05 22:52:56 +00006522cat >>confdefs.h <<_ACEOF
6523#define LT_OBJDIR "$lt_cv_objdir/"
6524_ACEOF
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
a.rottmann9bc8b932004-02-29 15:18:31 +00006542case $host_os in
6543aix3*)
6544 # AIX sometimes has problems with the GCC collect2 program. For some
6545 # reason, if we set the COLLECT_NAMES environment variable, the problems
6546 # vanish in a puff of smoke.
6547 if test "X${COLLECT_NAMES+set}" != Xset; then
6548 COLLECT_NAMES=
6549 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006550 fi
6551 ;;
6552esac
6553
a.rottmann9bc8b932004-02-29 15:18:31 +00006554# Sed substitution that helps us do robust quoting. It backslashifies
6555# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006556sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006557
6558# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006559double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006560
6561# Sed substitution to delay expansion of an escaped shell variable in a
6562# double_quote_subst'ed string.
6563delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6564
mlcreech636a9952008-05-05 22:52:56 +00006565# Sed substitution to delay expansion of an escaped single quote.
6566delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6567
a.rottmann9bc8b932004-02-29 15:18:31 +00006568# Sed substitution to avoid accidental globbing in evaled expressions
6569no_glob_subst='s/\*/\\\*/g'
6570
a.rottmann9bc8b932004-02-29 15:18:31 +00006571# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006572ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006573can_build_shared=yes
6574
vapier7f19c022007-02-17 14:46:31 +00006575# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006576# which needs '.lib').
6577libext=a
mlcreech636a9952008-05-05 22:52:56 +00006578
a.rottmann9bc8b932004-02-29 15:18:31 +00006579with_gnu_ld="$lt_cv_prog_gnu_ld"
6580
a.rottmann84e63352003-03-24 09:42:16 +00006581old_CC="$CC"
6582old_CFLAGS="$CFLAGS"
6583
6584# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006585test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006586test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006587test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006588test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006589test -z "$ac_objext" && ac_objext=o
6590
vapier7f19c022007-02-17 14:46:31 +00006591for cc_temp in $compiler""; do
6592 case $cc_temp in
6593 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6594 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6595 \-*) ;;
6596 *) break;;
6597 esac
6598done
mlcreech636a9952008-05-05 22:52:56 +00006599cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006600
6601
a.rottmann9bc8b932004-02-29 15:18:31 +00006602# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006603test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006604case $deplibs_check_method in
6605file_magic*)
6606 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drh710658c2012-01-16 13:00:05 +00006607 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
drh8b727472009-01-19 18:18:40 +00006608$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
drh710658c2012-01-16 13:00:05 +00006609if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006610 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006611else
a.rottmann9bc8b932004-02-29 15:18:31 +00006612 case $MAGIC_CMD in
6613[\\/*] | ?:[\\/]*)
6614 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6615 ;;
6616*)
6617 lt_save_MAGIC_CMD="$MAGIC_CMD"
6618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6619 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6620 for ac_dir in $ac_dummy; do
6621 IFS="$lt_save_ifs"
6622 test -z "$ac_dir" && ac_dir=.
6623 if test -f $ac_dir/${ac_tool_prefix}file; then
6624 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6625 if test -n "$file_magic_test_file"; then
6626 case $deplibs_check_method in
6627 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006628 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6630 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6631 $EGREP "$file_magic_regex" > /dev/null; then
6632 :
6633 else
mlcreech636a9952008-05-05 22:52:56 +00006634 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006635
a.rottmann9bc8b932004-02-29 15:18:31 +00006636*** Warning: the command libtool uses to detect shared libraries,
6637*** $file_magic_cmd, produces output that libtool cannot recognize.
6638*** The result is that libtool may fail to recognize shared libraries
6639*** as such. This will affect the creation of libtool libraries that
6640*** depend on shared libraries, but programs linked with such libtool
6641*** libraries will work regardless of this problem. Nevertheless, you
6642*** may want to report the problem to your system manager and/or to
6643*** bug-libtool@gnu.org
6644
mlcreech636a9952008-05-05 22:52:56 +00006645_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006646 fi ;;
6647 esac
6648 fi
6649 break
6650 fi
6651 done
6652 IFS="$lt_save_ifs"
6653 MAGIC_CMD="$lt_save_MAGIC_CMD"
6654 ;;
6655esac
6656fi
6657
6658MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6659if test -n "$MAGIC_CMD"; then
drh710658c2012-01-16 13:00:05 +00006660 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006661$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006662else
drh710658c2012-01-16 13:00:05 +00006663 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006664$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006665fi
6666
mlcreech636a9952008-05-05 22:52:56 +00006667
6668
6669
6670
a.rottmann9bc8b932004-02-29 15:18:31 +00006671if test -z "$lt_cv_path_MAGIC_CMD"; then
6672 if test -n "$ac_tool_prefix"; then
drh710658c2012-01-16 13:00:05 +00006673 { $as_echo "$as_me:$LINENO: checking for file" >&5
drh8b727472009-01-19 18:18:40 +00006674$as_echo_n "checking for file... " >&6; }
drh710658c2012-01-16 13:00:05 +00006675if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006676 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006677else
6678 case $MAGIC_CMD in
6679[\\/*] | ?:[\\/]*)
6680 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6681 ;;
6682*)
6683 lt_save_MAGIC_CMD="$MAGIC_CMD"
6684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6685 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6686 for ac_dir in $ac_dummy; do
6687 IFS="$lt_save_ifs"
6688 test -z "$ac_dir" && ac_dir=.
6689 if test -f $ac_dir/file; then
6690 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6691 if test -n "$file_magic_test_file"; then
6692 case $deplibs_check_method in
6693 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006694 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006695 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6696 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6697 $EGREP "$file_magic_regex" > /dev/null; then
6698 :
6699 else
mlcreech636a9952008-05-05 22:52:56 +00006700 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006701
6702*** Warning: the command libtool uses to detect shared libraries,
6703*** $file_magic_cmd, produces output that libtool cannot recognize.
6704*** The result is that libtool may fail to recognize shared libraries
6705*** as such. This will affect the creation of libtool libraries that
6706*** depend on shared libraries, but programs linked with such libtool
6707*** libraries will work regardless of this problem. Nevertheless, you
6708*** may want to report the problem to your system manager and/or to
6709*** bug-libtool@gnu.org
6710
mlcreech636a9952008-05-05 22:52:56 +00006711_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006712 fi ;;
6713 esac
6714 fi
6715 break
6716 fi
6717 done
6718 IFS="$lt_save_ifs"
6719 MAGIC_CMD="$lt_save_MAGIC_CMD"
6720 ;;
6721esac
6722fi
6723
6724MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6725if test -n "$MAGIC_CMD"; then
drh710658c2012-01-16 13:00:05 +00006726 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006727$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006728else
drh710658c2012-01-16 13:00:05 +00006729 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006730$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006731fi
6732
mlcreech636a9952008-05-05 22:52:56 +00006733
a.rottmann9bc8b932004-02-29 15:18:31 +00006734 else
6735 MAGIC_CMD=:
6736 fi
6737fi
6738
6739 fi
6740 ;;
6741esac
6742
a.rottmann9bc8b932004-02-29 15:18:31 +00006743# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006744
a.rottmann9bc8b932004-02-29 15:18:31 +00006745lt_save_CC="$CC"
6746ac_ext=c
6747ac_cpp='$CPP $CPPFLAGS'
6748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6750ac_compiler_gnu=$ac_cv_c_compiler_gnu
6751
6752
6753# Source file extension for C test sources.
6754ac_ext=c
6755
6756# Object file extension for compiled C test sources.
6757objext=o
6758objext=$objext
6759
6760# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006761lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006762
6763# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006764lt_simple_link_test_code='int main(){return(0);}'
6765
6766
6767
6768
6769
a.rottmann9bc8b932004-02-29 15:18:31 +00006770
6771
6772# If no C compiler was specified, use CC.
6773LTCC=${LTCC-"$CC"}
6774
vapier7f19c022007-02-17 14:46:31 +00006775# If no C compiler flags were specified, use CFLAGS.
6776LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6777
a.rottmann9bc8b932004-02-29 15:18:31 +00006778# Allow CC to be a program name with arguments.
6779compiler=$CC
6780
mlcreech636a9952008-05-05 22:52:56 +00006781# Save the default compiler, since it gets overwritten when the other
6782# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6783compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006784
vapier7f19c022007-02-17 14:46:31 +00006785# save warnings/boilerplate of simple test code
6786ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006787echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006788eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6789_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006790$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006791
vapier7f19c022007-02-17 14:46:31 +00006792ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006793echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006794eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6795_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006796$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006797
6798
mlcreech636a9952008-05-05 22:52:56 +00006799if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006800
6801lt_prog_compiler_no_builtin_flag=
6802
6803if test "$GCC" = yes; then
6804 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6805
drh710658c2012-01-16 13:00:05 +00006806 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006807$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
drh710658c2012-01-16 13:00:05 +00006808if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006809 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006810else
6811 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006812 ac_outfile=conftest.$ac_objext
6813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006814 lt_compiler_flag="-fno-rtti -fno-exceptions"
6815 # Insert the option either (1) after the last *FLAGS variable, or
6816 # (2) before a word containing "conftest.", or (3) at the end.
6817 # Note that $ac_compile itself does not contain backslashes and begins
6818 # with a dollar sign (not a hyphen), so the echo should work correctly.
6819 # The option is referenced via a variable to avoid confusing sed.
6820 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6823 -e 's:$: $lt_compiler_flag:'`
drh05c7e0b2015-01-10 14:27:17 +00006824 (eval echo "\"\$as_me:6824: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006825 (eval "$lt_compile" 2>conftest.err)
6826 ac_status=$?
6827 cat conftest.err >&5
drh05c7e0b2015-01-10 14:27:17 +00006828 echo "$as_me:6828: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006829 if (exit $ac_status) && test -s "$ac_outfile"; then
6830 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006831 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006832 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006835 lt_cv_prog_compiler_rtti_exceptions=yes
6836 fi
6837 fi
mlcreech636a9952008-05-05 22:52:56 +00006838 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006839
6840fi
drh710658c2012-01-16 13:00:05 +00006841{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006842$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006843
6844if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6845 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6846else
6847 :
6848fi
6849
6850fi
6851
mlcreech636a9952008-05-05 22:52:56 +00006852
6853
6854
6855
6856
6857 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006858lt_prog_compiler_pic=
6859lt_prog_compiler_static=
6860
drh710658c2012-01-16 13:00:05 +00006861{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
drh8b727472009-01-19 18:18:40 +00006862$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006863
drh71eb93e2001-09-28 01:34:43 +00006864 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006865 lt_prog_compiler_wl='-Wl,'
6866 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006867
6868 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006869 aix*)
6870 # All AIX code is PIC.
6871 if test "$host_cpu" = ia64; then
6872 # AIX 5 now supports IA64 processor
6873 lt_prog_compiler_static='-Bstatic'
6874 fi
drh71eb93e2001-09-28 01:34:43 +00006875 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006876
drh71eb93e2001-09-28 01:34:43 +00006877 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006878 case $host_cpu in
6879 powerpc)
6880 # see comment about AmigaOS4 .so support
6881 lt_prog_compiler_pic='-fPIC'
6882 ;;
6883 m68k)
6884 # FIXME: we need at least 68020 code to build shared libraries, but
6885 # adding the `-m68020' flag to GCC prevents building anything better,
6886 # like `-m68040'.
6887 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6888 ;;
6889 esac
drh71eb93e2001-09-28 01:34:43 +00006890 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006891
mlcreech636a9952008-05-05 22:52:56 +00006892 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006893 # PIC is the default for these OSes.
6894 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006895
vapier6acb2cf2009-01-28 04:46:28 +00006896 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006897 # This hack is so that the source file can tell whether it is being
6898 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006899 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6900 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006901 lt_prog_compiler_pic='-DDLL_EXPORT'
6902 ;;
6903
drh71eb93e2001-09-28 01:34:43 +00006904 darwin* | rhapsody*)
6905 # PIC is the default on this platform
6906 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006907 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006908 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006909
a.rottmann9bc8b932004-02-29 15:18:31 +00006910 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006911 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6912 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6913 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006914 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006915 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006916 # +Z the default
6917 ;;
6918 *)
6919 lt_prog_compiler_pic='-fPIC'
6920 ;;
6921 esac
6922 ;;
6923
mlcreech636a9952008-05-05 22:52:56 +00006924 interix[3-9]*)
6925 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6926 # Instead, we relocate shared libraries at runtime.
6927 ;;
6928
6929 msdosdjgpp*)
6930 # Just because we use GCC doesn't mean we suddenly get shared libraries
6931 # on systems that don't support them.
6932 lt_prog_compiler_can_build_shared=no
6933 enable_shared=no
6934 ;;
6935
6936 *nto* | *qnx*)
6937 # QNX uses GNU C++, but need to define -shared option too, otherwise
6938 # it will coredump.
6939 lt_prog_compiler_pic='-fPIC -shared'
6940 ;;
6941
6942 sysv4*MP*)
6943 if test -d /usr/nec; then
6944 lt_prog_compiler_pic=-Kconform_pic
6945 fi
6946 ;;
6947
drh71eb93e2001-09-28 01:34:43 +00006948 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006949 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006950 ;;
6951 esac
6952 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006953 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006954 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006955 aix*)
6956 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006957 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006958 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006959 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006960 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006961 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006962 fi
6963 ;;
6964
vapier6acb2cf2009-01-28 04:46:28 +00006965 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006966 # This hack is so that the source file can tell whether it is being
6967 # built for inclusion in a dll (and should export symbols for example).
6968 lt_prog_compiler_pic='-DDLL_EXPORT'
6969 ;;
6970
a.rottmann84e63352003-03-24 09:42:16 +00006971 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006972 lt_prog_compiler_wl='-Wl,'
6973 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6974 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006975 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006976 hppa*64*|ia64*)
6977 # +Z the default
6978 ;;
6979 *)
6980 lt_prog_compiler_pic='+Z'
6981 ;;
6982 esac
6983 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6984 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006985 ;;
6986
6987 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006988 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006989 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006990 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006991 ;;
6992
mlcreech636a9952008-05-05 22:52:56 +00006993 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006994 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00006995 # old Intel for x86_64 which still supported -KPIC.
6996 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006997 lt_prog_compiler_wl='-Wl,'
6998 lt_prog_compiler_pic='-KPIC'
6999 lt_prog_compiler_static='-static'
7000 ;;
vapier6acb2cf2009-01-28 04:46:28 +00007001 # icc used to be incompatible with GCC.
7002 # ICC 10 doesn't accept -KPIC any more.
7003 icc* | ifort*)
7004 lt_prog_compiler_wl='-Wl,'
7005 lt_prog_compiler_pic='-fPIC'
7006 lt_prog_compiler_static='-static'
7007 ;;
7008 # Lahey Fortran 8.1.
7009 lf95*)
7010 lt_prog_compiler_wl='-Wl,'
7011 lt_prog_compiler_pic='--shared'
7012 lt_prog_compiler_static='--static'
7013 ;;
vapier7f19c022007-02-17 14:46:31 +00007014 pgcc* | pgf77* | pgf90* | pgf95*)
7015 # Portland Group compilers (*not* the Pentium gcc compiler,
7016 # which looks to be a dead project)
7017 lt_prog_compiler_wl='-Wl,'
7018 lt_prog_compiler_pic='-fpic'
7019 lt_prog_compiler_static='-Bstatic'
7020 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007021 ccc*)
7022 lt_prog_compiler_wl='-Wl,'
7023 # All Alpha code is PIC.
7024 lt_prog_compiler_static='-non_shared'
7025 ;;
mlcreech636a9952008-05-05 22:52:56 +00007026 xl*)
7027 # IBM XL C 8.0/Fortran 10.1 on PPC
7028 lt_prog_compiler_wl='-Wl,'
7029 lt_prog_compiler_pic='-qpic'
7030 lt_prog_compiler_static='-qstaticlink'
7031 ;;
7032 *)
7033 case `$CC -V 2>&1 | sed 5q` in
7034 *Sun\ C*)
7035 # Sun C 5.9
7036 lt_prog_compiler_pic='-KPIC'
7037 lt_prog_compiler_static='-Bstatic'
7038 lt_prog_compiler_wl='-Wl,'
7039 ;;
7040 *Sun\ F*)
7041 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7042 lt_prog_compiler_pic='-KPIC'
7043 lt_prog_compiler_static='-Bstatic'
7044 lt_prog_compiler_wl=''
7045 ;;
7046 esac
7047 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007048 esac
drh71eb93e2001-09-28 01:34:43 +00007049 ;;
7050
mlcreech636a9952008-05-05 22:52:56 +00007051 newsos6)
7052 lt_prog_compiler_pic='-KPIC'
7053 lt_prog_compiler_static='-Bstatic'
7054 ;;
7055
7056 *nto* | *qnx*)
7057 # QNX uses GNU C++, but need to define -shared option too, otherwise
7058 # it will coredump.
7059 lt_prog_compiler_pic='-fPIC -shared'
7060 ;;
7061
drh71eb93e2001-09-28 01:34:43 +00007062 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007063 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00007064 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00007065 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00007066 ;;
7067
mlcreech636a9952008-05-05 22:52:56 +00007068 rdos*)
7069 lt_prog_compiler_static='-non_shared'
7070 ;;
7071
drh71eb93e2001-09-28 01:34:43 +00007072 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007073 lt_prog_compiler_pic='-KPIC'
7074 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00007075 case $cc_basename in
7076 f77* | f90* | f95*)
7077 lt_prog_compiler_wl='-Qoption ld ';;
7078 *)
7079 lt_prog_compiler_wl='-Wl,';;
7080 esac
drh71eb93e2001-09-28 01:34:43 +00007081 ;;
7082
7083 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007084 lt_prog_compiler_wl='-Qoption ld '
7085 lt_prog_compiler_pic='-PIC'
7086 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007087 ;;
7088
vapier7f19c022007-02-17 14:46:31 +00007089 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007090 lt_prog_compiler_wl='-Wl,'
7091 lt_prog_compiler_pic='-KPIC'
7092 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007093 ;;
7094
7095 sysv4*MP*)
7096 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00007097 lt_prog_compiler_pic='-Kconform_pic'
7098 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007099 fi
7100 ;;
7101
vapier7f19c022007-02-17 14:46:31 +00007102 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7103 lt_prog_compiler_wl='-Wl,'
7104 lt_prog_compiler_pic='-KPIC'
7105 lt_prog_compiler_static='-Bstatic'
7106 ;;
7107
7108 unicos*)
7109 lt_prog_compiler_wl='-Wl,'
7110 lt_prog_compiler_can_build_shared=no
7111 ;;
7112
a.rottmann9bc8b932004-02-29 15:18:31 +00007113 uts4*)
7114 lt_prog_compiler_pic='-pic'
7115 lt_prog_compiler_static='-Bstatic'
7116 ;;
7117
drh71eb93e2001-09-28 01:34:43 +00007118 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007119 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00007120 ;;
7121 esac
7122 fi
7123
mlcreech636a9952008-05-05 22:52:56 +00007124case $host_os in
7125 # For platforms which do not support PIC, -DPIC is meaningless:
7126 *djgpp*)
7127 lt_prog_compiler_pic=
7128 ;;
7129 *)
7130 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7131 ;;
7132esac
drh710658c2012-01-16 13:00:05 +00007133{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
drh8b727472009-01-19 18:18:40 +00007134$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007135
7136
7137
7138
7139
drh71eb93e2001-09-28 01:34:43 +00007140
a.rottmann9bc8b932004-02-29 15:18:31 +00007141#
7142# Check to make sure the PIC flag actually works.
7143#
7144if test -n "$lt_prog_compiler_pic"; then
drh710658c2012-01-16 13:00:05 +00007145 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
drh8b727472009-01-19 18:18:40 +00007146$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
drh710658c2012-01-16 13:00:05 +00007147if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007148 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007149else
mlcreech636a9952008-05-05 22:52:56 +00007150 lt_cv_prog_compiler_pic_works=no
7151 ac_outfile=conftest.$ac_objext
7152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007153 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7154 # Insert the option either (1) after the last *FLAGS variable, or
7155 # (2) before a word containing "conftest.", or (3) at the end.
7156 # Note that $ac_compile itself does not contain backslashes and begins
7157 # with a dollar sign (not a hyphen), so the echo should work correctly.
7158 # The option is referenced via a variable to avoid confusing sed.
7159 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7162 -e 's:$: $lt_compiler_flag:'`
drh05c7e0b2015-01-10 14:27:17 +00007163 (eval echo "\"\$as_me:7163: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007164 (eval "$lt_compile" 2>conftest.err)
7165 ac_status=$?
7166 cat conftest.err >&5
drh05c7e0b2015-01-10 14:27:17 +00007167 echo "$as_me:7167: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007168 if (exit $ac_status) && test -s "$ac_outfile"; then
7169 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007170 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007171 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7173 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007174 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007175 fi
7176 fi
mlcreech636a9952008-05-05 22:52:56 +00007177 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007178
a.rottmann9bc8b932004-02-29 15:18:31 +00007179fi
drh710658c2012-01-16 13:00:05 +00007180{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
drh8b727472009-01-19 18:18:40 +00007181$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007182
mlcreech636a9952008-05-05 22:52:56 +00007183if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007184 case $lt_prog_compiler_pic in
7185 "" | " "*) ;;
7186 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7187 esac
drh71eb93e2001-09-28 01:34:43 +00007188else
a.rottmann9bc8b932004-02-29 15:18:31 +00007189 lt_prog_compiler_pic=
7190 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007191fi
7192
a.rottmann84e63352003-03-24 09:42:16 +00007193fi
mlcreech636a9952008-05-05 22:52:56 +00007194
7195
7196
7197
7198
a.rottmann84e63352003-03-24 09:42:16 +00007199
vapier7f19c022007-02-17 14:46:31 +00007200#
7201# Check to make sure the static flag actually works.
7202#
7203wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drh710658c2012-01-16 13:00:05 +00007204{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
drh8b727472009-01-19 18:18:40 +00007205$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
drh710658c2012-01-16 13:00:05 +00007206if test "${lt_cv_prog_compiler_static_works+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007207 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007208else
mlcreech636a9952008-05-05 22:52:56 +00007209 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007210 save_LDFLAGS="$LDFLAGS"
7211 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007212 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007213 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7214 # The linker can only warn and ignore the option if not recognized
7215 # So say no if there are warnings
7216 if test -s conftest.err; then
7217 # Append any errors to the config.log.
7218 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007219 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7221 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007222 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007223 fi
7224 else
mlcreech636a9952008-05-05 22:52:56 +00007225 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007226 fi
7227 fi
mlcreech636a9952008-05-05 22:52:56 +00007228 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007229 LDFLAGS="$save_LDFLAGS"
7230
7231fi
drh710658c2012-01-16 13:00:05 +00007232{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
drh8b727472009-01-19 18:18:40 +00007233$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007234
mlcreech636a9952008-05-05 22:52:56 +00007235if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007236 :
7237else
7238 lt_prog_compiler_static=
7239fi
7240
7241
mlcreech636a9952008-05-05 22:52:56 +00007242
7243
7244
7245
7246
drh710658c2012-01-16 13:00:05 +00007247 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007248$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drh710658c2012-01-16 13:00:05 +00007249if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007250 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007251else
a.rottmann9bc8b932004-02-29 15:18:31 +00007252 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007253 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007254 mkdir conftest
7255 cd conftest
7256 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007258
a.rottmann9bc8b932004-02-29 15:18:31 +00007259 lt_compiler_flag="-o out/conftest2.$ac_objext"
7260 # Insert the option either (1) after the last *FLAGS variable, or
7261 # (2) before a word containing "conftest.", or (3) at the end.
7262 # Note that $ac_compile itself does not contain backslashes and begins
7263 # with a dollar sign (not a hyphen), so the echo should work correctly.
7264 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7267 -e 's:$: $lt_compiler_flag:'`
drh05c7e0b2015-01-10 14:27:17 +00007268 (eval echo "\"\$as_me:7268: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007269 (eval "$lt_compile" 2>out/conftest.err)
7270 ac_status=$?
7271 cat out/conftest.err >&5
drh05c7e0b2015-01-10 14:27:17 +00007272 echo "$as_me:7272: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007273 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7274 then
7275 # The compiler can only warn and ignore the option if not recognized
7276 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007277 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007278 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7279 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007280 lt_cv_prog_compiler_c_o=yes
7281 fi
7282 fi
vapier7f19c022007-02-17 14:46:31 +00007283 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007284 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007285 # SGI C++ compiler will create directory out/ii_files/ for
7286 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007287 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7288 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007289 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007290 $RM -r conftest
7291 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007292
7293fi
drh710658c2012-01-16 13:00:05 +00007294{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007295$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007296
7297
7298
7299
7300
7301
drh710658c2012-01-16 13:00:05 +00007302 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007303$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drh710658c2012-01-16 13:00:05 +00007304if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007305 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007306else
7307 lt_cv_prog_compiler_c_o=no
7308 $RM -r conftest 2>/dev/null
7309 mkdir conftest
7310 cd conftest
7311 mkdir out
7312 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7313
7314 lt_compiler_flag="-o out/conftest2.$ac_objext"
7315 # Insert the option either (1) after the last *FLAGS variable, or
7316 # (2) before a word containing "conftest.", or (3) at the end.
7317 # Note that $ac_compile itself does not contain backslashes and begins
7318 # with a dollar sign (not a hyphen), so the echo should work correctly.
7319 lt_compile=`echo "$ac_compile" | $SED \
7320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7322 -e 's:$: $lt_compiler_flag:'`
drh05c7e0b2015-01-10 14:27:17 +00007323 (eval echo "\"\$as_me:7323: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007324 (eval "$lt_compile" 2>out/conftest.err)
7325 ac_status=$?
7326 cat out/conftest.err >&5
drh05c7e0b2015-01-10 14:27:17 +00007327 echo "$as_me:7327: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007328 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7329 then
7330 # The compiler can only warn and ignore the option if not recognized
7331 # So say no if there are warnings
7332 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7333 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7334 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7335 lt_cv_prog_compiler_c_o=yes
7336 fi
7337 fi
7338 chmod u+w . 2>&5
7339 $RM conftest*
7340 # SGI C++ compiler will create directory out/ii_files/ for
7341 # template instantiation
7342 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7343 $RM out/* && rmdir out
7344 cd ..
7345 $RM -r conftest
7346 $RM conftest*
7347
7348fi
drh710658c2012-01-16 13:00:05 +00007349{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007350$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007351
7352
drh71eb93e2001-09-28 01:34:43 +00007353
a.rottmann84e63352003-03-24 09:42:16 +00007354
drh71eb93e2001-09-28 01:34:43 +00007355hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007356if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007357 # do not overwrite the value of need_locks provided by the user
drh710658c2012-01-16 13:00:05 +00007358 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
drh8b727472009-01-19 18:18:40 +00007359$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007360 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007361 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007362 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7363 touch conftest.a
7364 ln conftest.a conftest.b 2>&5 || hard_links=no
7365 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drh710658c2012-01-16 13:00:05 +00007366 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
drh8b727472009-01-19 18:18:40 +00007367$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007368 if test "$hard_links" = no; then
drh710658c2012-01-16 13:00:05 +00007369 { $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 +00007370$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007371 need_locks=warn
7372 fi
7373else
7374 need_locks=no
7375fi
7376
mlcreech636a9952008-05-05 22:52:56 +00007377
7378
7379
7380
7381
drh710658c2012-01-16 13:00:05 +00007382 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00007383$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007384
7385 runpath_var=
7386 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007387 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007388 archive_cmds=
7389 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007390 compiler_needs_object=no
7391 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007392 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007393 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7394 hardcode_automatic=no
7395 hardcode_direct=no
7396 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007397 hardcode_libdir_flag_spec=
7398 hardcode_libdir_flag_spec_ld=
7399 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007400 hardcode_minus_L=no
7401 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007402 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007403 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007404 module_cmds=
7405 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007406 old_archive_from_new_cmds=
7407 old_archive_from_expsyms_cmds=
7408 thread_safe_flag_spec=
7409 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007410 # include_expsyms should be a list of space-separated symbols to be *always*
7411 # included in the symbol list
7412 include_expsyms=
7413 # exclude_expsyms can be an extended regexp of symbols to exclude
7414 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7415 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7416 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007417 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007418 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7419 # platforms (ab)use it in PIC code, but their linkers get confused if
7420 # the symbol is explicitly referenced. Since portable code cannot
7421 # rely on this symbol name, it's probably fine to never include it in
7422 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007423 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007424 extract_expsyms_cmds=
7425
7426 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007427 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007428 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7429 # When not using gcc, we currently assume that we are using
7430 # Microsoft Visual C++.
7431 if test "$GCC" != yes; then
7432 with_gnu_ld=no
7433 fi
7434 ;;
vapier7f19c022007-02-17 14:46:31 +00007435 interix*)
7436 # we just hope/assume this is gcc and not c89 (= MSVC++)
7437 with_gnu_ld=yes
7438 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007439 openbsd*)
7440 with_gnu_ld=no
7441 ;;
7442 esac
7443
7444 ld_shlibs=yes
7445 if test "$with_gnu_ld" = yes; then
7446 # If archive_cmds runs LD, not CC, wlarc should be empty
7447 wlarc='${wl}'
7448
vapier7f19c022007-02-17 14:46:31 +00007449 # Set some defaults for GNU ld with shared library support. These
7450 # are reset later if shared libraries are not supported. Putting them
7451 # here allows them to be overridden if necessary.
7452 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007453 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007454 export_dynamic_flag_spec='${wl}--export-dynamic'
7455 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007456 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7457 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7458 else
7459 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007460 fi
7461 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007462 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007463 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7464 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7465 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7466 *\ 2.11.*) ;; # other 2.11 versions
7467 *) supports_anon_versioning=yes ;;
7468 esac
7469
a.rottmann9bc8b932004-02-29 15:18:31 +00007470 # See if GNU ld supports shared libraries.
7471 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007472 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007473 # On AIX/PPC, the GNU linker is very broken
7474 if test "$host_cpu" != ia64; then
7475 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007476 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007477
7478*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7479*** to be unable to reliably create shared libraries on AIX.
7480*** Therefore, libtool is disabling shared libraries support. If you
7481*** really care for shared libraries, you may want to modify your PATH
7482*** so that a non-GNU linker is found, and then restart.
7483
mlcreech636a9952008-05-05 22:52:56 +00007484_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007485 fi
7486 ;;
7487
7488 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007489 case $host_cpu in
7490 powerpc)
7491 # see comment about AmigaOS4 .so support
7492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7493 archive_expsym_cmds=''
7494 ;;
7495 m68k)
7496 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)'
7497 hardcode_libdir_flag_spec='-L$libdir'
7498 hardcode_minus_L=yes
7499 ;;
7500 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007501 ;;
7502
7503 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007504 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007505 allow_undefined_flag=unsupported
7506 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7507 # support --undefined. This deserves some investigation. FIXME
7508 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7509 else
7510 ld_shlibs=no
7511 fi
7512 ;;
7513
vapier6acb2cf2009-01-28 04:46:28 +00007514 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007515 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007516 # as there is no search path for DLLs.
7517 hardcode_libdir_flag_spec='-L$libdir'
7518 allow_undefined_flag=unsupported
7519 always_export_symbols=no
7520 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007521 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 +00007522
mlcreech636a9952008-05-05 22:52:56 +00007523 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007524 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 +00007525 # If the export-symbols file already is a .def file (1st line
7526 # is EXPORTS), use it as is; otherwise, prepend...
7527 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7528 cp $export_symbols $output_objdir/$soname.def;
7529 else
7530 echo EXPORTS > $output_objdir/$soname.def;
7531 cat $export_symbols >> $output_objdir/$soname.def;
7532 fi~
vapier7f19c022007-02-17 14:46:31 +00007533 $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 +00007534 else
7535 ld_shlibs=no
7536 fi
7537 ;;
7538
mlcreech636a9952008-05-05 22:52:56 +00007539 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007540 hardcode_direct=no
7541 hardcode_shlibpath_var=no
7542 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7543 export_dynamic_flag_spec='${wl}-E'
7544 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7545 # Instead, shared libraries are loaded at an image base (0x10000000 by
7546 # default) and relocated if they conflict, which is a slow very memory
7547 # consuming and fragmenting process. To avoid this, we pick a random,
7548 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7549 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7550 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7551 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'
7552 ;;
7553
mlcreech636a9952008-05-05 22:52:56 +00007554 gnu* | linux* | tpf* | k*bsd*-gnu)
7555 tmp_diet=no
7556 if test "$host_os" = linux-dietlibc; then
7557 case $cc_basename in
7558 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7559 esac
7560 fi
7561 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7562 && test "$tmp_diet" = no
7563 then
vapier7f19c022007-02-17 14:46:31 +00007564 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007565 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007566 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007567 pgcc*) # Portland Group C compiler
7568 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 +00007569 tmp_addflag=' $pic_flag'
7570 ;;
7571 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007572 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 +00007573 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007574 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007575 tmp_addflag=' -i_dynamic' ;;
7576 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7577 tmp_addflag=' -i_dynamic -nofor_main' ;;
7578 ifc* | ifort*) # Intel Fortran compiler
7579 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007580 lf95*) # Lahey Fortran 8.1
7581 whole_archive_flag_spec=
7582 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007583 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7584 tmp_sharedflag='-qmkshrobj'
7585 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007586 esac
mlcreech636a9952008-05-05 22:52:56 +00007587 case `$CC -V 2>&1 | sed 5q` in
7588 *Sun\ C*) # Sun C 5.9
7589 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'
7590 compiler_needs_object=yes
7591 tmp_sharedflag='-G' ;;
7592 *Sun\ F*) # Sun Fortran 8.3
7593 tmp_sharedflag='-G' ;;
7594 esac
7595 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007596
mlcreech636a9952008-05-05 22:52:56 +00007597 if test "x$supports_anon_versioning" = xyes; then
7598 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7599 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7600 echo "local: *; };" >> $output_objdir/$libname.ver~
7601 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7602 fi
7603
7604 case $cc_basename in
7605 xlf*)
7606 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7607 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7608 hardcode_libdir_flag_spec=
7609 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7610 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7611 if test "x$supports_anon_versioning" = xyes; then
7612 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7613 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7614 echo "local: *; };" >> $output_objdir/$libname.ver~
7615 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7616 fi
7617 ;;
7618 esac
vapier7f19c022007-02-17 14:46:31 +00007619 else
mlcreech636a9952008-05-05 22:52:56 +00007620 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007621 fi
7622 ;;
7623
7624 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007625 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007626 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7627 wlarc=
7628 else
7629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7630 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7631 fi
7632 ;;
7633
vapier7f19c022007-02-17 14:46:31 +00007634 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007635 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007636 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007637 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007638
7639*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7640*** create shared libraries on Solaris systems. Therefore, libtool
7641*** is disabling shared libraries support. We urge you to upgrade GNU
7642*** binutils to release 2.9.1 or newer. Another option is to modify
7643*** your PATH or compiler configuration so that the native linker is
7644*** used, and then restart.
7645
mlcreech636a9952008-05-05 22:52:56 +00007646_LT_EOF
7647 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7649 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7650 else
7651 ld_shlibs=no
7652 fi
7653 ;;
7654
vapier7f19c022007-02-17 14:46:31 +00007655 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7656 case `$LD -v 2>&1` in
7657 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7658 ld_shlibs=no
7659 cat <<_LT_EOF 1>&2
7660
7661*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7662*** reliably create shared libraries on SCO systems. Therefore, libtool
7663*** is disabling shared libraries support. We urge you to upgrade GNU
7664*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7665*** your PATH or compiler configuration so that the native linker is
7666*** used, and then restart.
7667
7668_LT_EOF
7669 ;;
7670 *)
mlcreech636a9952008-05-05 22:52:56 +00007671 # For security reasons, it is highly recommended that you always
7672 # use absolute paths for naming shared libraries, and exclude the
7673 # DT_RUNPATH tag from executables and libraries. But doing so
7674 # requires that you compile everything twice, which is a pain.
7675 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7678 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 +00007679 else
7680 ld_shlibs=no
7681 fi
7682 ;;
7683 esac
7684 ;;
7685
a.rottmann9bc8b932004-02-29 15:18:31 +00007686 sunos4*)
7687 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7688 wlarc=
7689 hardcode_direct=yes
7690 hardcode_shlibpath_var=no
7691 ;;
7692
a.rottmann9bc8b932004-02-29 15:18:31 +00007693 *)
mlcreech636a9952008-05-05 22:52:56 +00007694 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7696 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7697 else
7698 ld_shlibs=no
7699 fi
7700 ;;
7701 esac
7702
vapier7f19c022007-02-17 14:46:31 +00007703 if test "$ld_shlibs" = no; then
7704 runpath_var=
7705 hardcode_libdir_flag_spec=
7706 export_dynamic_flag_spec=
7707 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007708 fi
7709 else
7710 # PORTME fill in a description of your system's linker (not GNU ld)
7711 case $host_os in
7712 aix3*)
7713 allow_undefined_flag=unsupported
7714 always_export_symbols=yes
7715 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'
7716 # Note: this linker hardcodes the directories in LIBPATH if there
7717 # are no directories specified by -L.
7718 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007719 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007720 # Neither direct hardcoding nor static linking is supported with a
7721 # broken collect2.
7722 hardcode_direct=unsupported
7723 fi
7724 ;;
7725
mlcreech636a9952008-05-05 22:52:56 +00007726 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007727 if test "$host_cpu" = ia64; then
7728 # On IA64, the linker does run time linking by default, so we don't
7729 # have to do anything special.
7730 aix_use_runtimelinking=no
7731 exp_sym_flag='-Bexport'
7732 no_entry_flag=""
7733 else
7734 # If we're using GNU nm, then we don't want the "-C" option.
7735 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007736 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7737 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 +00007738 else
mlcreech636a9952008-05-05 22:52:56 +00007739 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 +00007740 fi
7741 aix_use_runtimelinking=no
7742
7743 # Test if we are trying to use run time linking or normal
7744 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7745 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007746 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007747 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007748 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7749 aix_use_runtimelinking=yes
7750 break
7751 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007752 done
vapier7f19c022007-02-17 14:46:31 +00007753 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007754 esac
7755
7756 exp_sym_flag='-bexport'
7757 no_entry_flag='-bnoentry'
7758 fi
7759
7760 # When large executables or shared objects are built, AIX ld can
7761 # have problems creating the table of contents. If linking a library
7762 # or program results in "error TOC overflow" add -mminimal-toc to
7763 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7764 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7765
7766 archive_cmds=''
7767 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007768 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007769 hardcode_libdir_separator=':'
7770 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007771 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007772
7773 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007774 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007775 # We only want to do this on AIX 4.2 and lower, the check
7776 # below for broken collect2 doesn't work under 4.3+
7777 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007778 if test -f "$collect2name" &&
7779 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007780 then
mlcreech636a9952008-05-05 22:52:56 +00007781 # We have reworked collect2
7782 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007783 else
mlcreech636a9952008-05-05 22:52:56 +00007784 # We have old collect2
7785 hardcode_direct=unsupported
7786 # It fails to find uninstalled libraries when the uninstalled
7787 # path is not listed in the libpath. Setting hardcode_minus_L
7788 # to unsupported forces relinking
7789 hardcode_minus_L=yes
7790 hardcode_libdir_flag_spec='-L$libdir'
7791 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007792 fi
vapier7f19c022007-02-17 14:46:31 +00007793 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007794 esac
7795 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007796 if test "$aix_use_runtimelinking" = yes; then
7797 shared_flag="$shared_flag "'${wl}-G'
7798 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007799 else
7800 # not using gcc
7801 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007802 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7803 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007804 shared_flag='-G'
7805 else
vapier7f19c022007-02-17 14:46:31 +00007806 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007807 shared_flag='${wl}-G'
7808 else
7809 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007810 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007811 fi
7812 fi
7813
vapier6acb2cf2009-01-28 04:46:28 +00007814 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007815 # It seems that -bexpall does not export symbols beginning with
7816 # underscore (_), so it is better to generate a list of symbols to export.
7817 always_export_symbols=yes
7818 if test "$aix_use_runtimelinking" = yes; then
7819 # Warning - without using the other runtime loading flags (-brtl),
7820 # -berok will link without error, but may produce a broken library.
7821 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007822 # Determine the default libpath from the value encoded in an
7823 # empty executable.
drh710658c2012-01-16 13:00:05 +00007824 cat >conftest.$ac_ext <<_ACEOF
7825/* confdefs.h. */
7826_ACEOF
7827cat confdefs.h >>conftest.$ac_ext
7828cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007829/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007830
a.rottmann84e63352003-03-24 09:42:16 +00007831int
7832main ()
7833{
a.rottmann9bc8b932004-02-29 15:18:31 +00007834
a.rottmann84e63352003-03-24 09:42:16 +00007835 ;
7836 return 0;
7837}
7838_ACEOF
drh710658c2012-01-16 13:00:05 +00007839rm -f conftest.$ac_objext conftest$ac_exeext
7840if { (ac_try="$ac_link"
7841case "(($ac_try" in
7842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7843 *) ac_try_echo=$ac_try;;
7844esac
7845eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7846$as_echo "$ac_try_echo") >&5
7847 (eval "$ac_link") 2>conftest.er1
7848 ac_status=$?
7849 grep -v '^ *+' conftest.er1 >conftest.err
7850 rm -f conftest.er1
7851 cat conftest.err >&5
7852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } && {
7854 test -z "$ac_c_werror_flag" ||
7855 test ! -s conftest.err
7856 } && test -s conftest$ac_exeext && {
7857 test "$cross_compiling" = yes ||
7858 $as_test_x conftest$ac_exeext
7859 }; then
a.rottmann84e63352003-03-24 09:42:16 +00007860
mlcreech636a9952008-05-05 22:52:56 +00007861lt_aix_libpath_sed='
7862 /Import File Strings/,/^$/ {
7863 /^0/ {
7864 s/^0 *\(.*\)$/\1/
7865 p
7866 }
7867 }'
7868aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007869# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007870if test -z "$aix_libpath"; then
7871 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7872fi
drh710658c2012-01-16 13:00:05 +00007873else
7874 $as_echo "$as_me: failed program was:" >&5
7875sed 's/^/| /' conftest.$ac_ext >&5
7876
7877
a.rottmann84e63352003-03-24 09:42:16 +00007878fi
drh710658c2012-01-16 13:00:05 +00007879
7880rm -rf conftest.dSYM
7881rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7882 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007883if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007884
mlcreech636a9952008-05-05 22:52:56 +00007885 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7886 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"
7887 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007888 if test "$host_cpu" = ia64; then
7889 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7890 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007891 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 +00007892 else
mlcreech636a9952008-05-05 22:52:56 +00007893 # Determine the default libpath from the value encoded in an
7894 # empty executable.
drh710658c2012-01-16 13:00:05 +00007895 cat >conftest.$ac_ext <<_ACEOF
7896/* confdefs.h. */
7897_ACEOF
7898cat confdefs.h >>conftest.$ac_ext
7899cat >>conftest.$ac_ext <<_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007900/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007901
a.rottmann9bc8b932004-02-29 15:18:31 +00007902int
7903main ()
7904{
a.rottmann84e63352003-03-24 09:42:16 +00007905
a.rottmann9bc8b932004-02-29 15:18:31 +00007906 ;
7907 return 0;
7908}
7909_ACEOF
drh710658c2012-01-16 13:00:05 +00007910rm -f conftest.$ac_objext conftest$ac_exeext
7911if { (ac_try="$ac_link"
7912case "(($ac_try" in
7913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914 *) ac_try_echo=$ac_try;;
7915esac
7916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7917$as_echo "$ac_try_echo") >&5
7918 (eval "$ac_link") 2>conftest.er1
7919 ac_status=$?
7920 grep -v '^ *+' conftest.er1 >conftest.err
7921 rm -f conftest.er1
7922 cat conftest.err >&5
7923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); } && {
7925 test -z "$ac_c_werror_flag" ||
7926 test ! -s conftest.err
7927 } && test -s conftest$ac_exeext && {
7928 test "$cross_compiling" = yes ||
7929 $as_test_x conftest$ac_exeext
7930 }; then
a.rottmann84e63352003-03-24 09:42:16 +00007931
mlcreech636a9952008-05-05 22:52:56 +00007932lt_aix_libpath_sed='
7933 /Import File Strings/,/^$/ {
7934 /^0/ {
7935 s/^0 *\(.*\)$/\1/
7936 p
7937 }
7938 }'
7939aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007940# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007941if test -z "$aix_libpath"; then
7942 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7943fi
drh710658c2012-01-16 13:00:05 +00007944else
7945 $as_echo "$as_me: failed program was:" >&5
7946sed 's/^/| /' conftest.$ac_ext >&5
7947
7948
a.rottmann9bc8b932004-02-29 15:18:31 +00007949fi
drh710658c2012-01-16 13:00:05 +00007950
7951rm -rf conftest.dSYM
7952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7953 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007954if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007955
a.rottmann9bc8b932004-02-29 15:18:31 +00007956 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7957 # Warning - without using the other run time loading flags,
7958 # -berok will link without error, but may produce a broken library.
7959 no_undefined_flag=' ${wl}-bernotok'
7960 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007961 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007962 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007963 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007964 # This is similar to how AIX traditionally builds its shared libraries.
7965 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 +00007966 fi
7967 fi
a.rottmann84e63352003-03-24 09:42:16 +00007968 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007969
7970 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007971 case $host_cpu in
7972 powerpc)
7973 # see comment about AmigaOS4 .so support
7974 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7975 archive_expsym_cmds=''
7976 ;;
7977 m68k)
7978 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)'
7979 hardcode_libdir_flag_spec='-L$libdir'
7980 hardcode_minus_L=yes
7981 ;;
7982 esac
a.rottmann84e63352003-03-24 09:42:16 +00007983 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007984
vapier7f19c022007-02-17 14:46:31 +00007985 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007986 export_dynamic_flag_spec=-rdynamic
7987 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007988
vapier6acb2cf2009-01-28 04:46:28 +00007989 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007990 # When not using gcc, we currently assume that we are using
7991 # Microsoft Visual C++.
7992 # hardcode_libdir_flag_spec is actually meaningless, as there is
7993 # no search path for DLLs.
7994 hardcode_libdir_flag_spec=' '
7995 allow_undefined_flag=unsupported
7996 # Tell ltmain to make .lib files, not .a files.
7997 libext=lib
7998 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007999 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00008000 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00008001 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 +00008002 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00008003 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00008004 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00008005 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008006 fix_srcfile_path='`cygpath -w "$srcfile"`'
8007 enable_shared_with_static_runtimes=yes
8008 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008009
a.rottmann9bc8b932004-02-29 15:18:31 +00008010 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00008011
8012
8013 archive_cmds_need_lc=no
8014 hardcode_direct=no
8015 hardcode_automatic=yes
8016 hardcode_shlibpath_var=unsupported
8017 whole_archive_flag_spec=''
8018 link_all_deplibs=yes
8019 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00008020 case $cc_basename in
8021 ifort*) _lt_dar_can_shared=yes ;;
8022 *) _lt_dar_can_shared=$GCC ;;
8023 esac
8024 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00008025 output_verbose_link_cmd=echo
8026 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8027 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8028 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}"
8029 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}"
8030
8031 else
8032 ld_shlibs=no
8033 fi
8034
a.rottmann9bc8b932004-02-29 15:18:31 +00008035 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008036
a.rottmann9bc8b932004-02-29 15:18:31 +00008037 dgux*)
8038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8039 hardcode_libdir_flag_spec='-L$libdir'
8040 hardcode_shlibpath_var=no
8041 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008042
a.rottmann9bc8b932004-02-29 15:18:31 +00008043 freebsd1*)
8044 ld_shlibs=no
8045 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008046
a.rottmann9bc8b932004-02-29 15:18:31 +00008047 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8048 # support. Future versions do this automatically, but an explicit c++rt0.o
8049 # does not break anything, and helps significantly (at the cost of a little
8050 # extra space).
8051 freebsd2.2*)
8052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8053 hardcode_libdir_flag_spec='-R$libdir'
8054 hardcode_direct=yes
8055 hardcode_shlibpath_var=no
8056 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008057
a.rottmann9bc8b932004-02-29 15:18:31 +00008058 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8059 freebsd2*)
8060 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8061 hardcode_direct=yes
8062 hardcode_minus_L=yes
8063 hardcode_shlibpath_var=no
8064 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008065
a.rottmann9bc8b932004-02-29 15:18:31 +00008066 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00008067 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008068 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8069 hardcode_libdir_flag_spec='-R$libdir'
8070 hardcode_direct=yes
8071 hardcode_shlibpath_var=no
8072 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008073
a.rottmann9bc8b932004-02-29 15:18:31 +00008074 hpux9*)
8075 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008076 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 +00008077 else
mlcreech636a9952008-05-05 22:52:56 +00008078 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 +00008079 fi
8080 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8081 hardcode_libdir_separator=:
8082 hardcode_direct=yes
8083
8084 # hardcode_minus_L: Not really in the search PATH,
8085 # but as the default location of the library.
8086 hardcode_minus_L=yes
8087 export_dynamic_flag_spec='${wl}-E'
8088 ;;
8089
vapier7f19c022007-02-17 14:46:31 +00008090 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008091 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00008092 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8093 else
8094 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8095 fi
8096 if test "$with_gnu_ld" = no; then
8097 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00008098 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00008099 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00008100 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00008101 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00008102 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00008103 # hardcode_minus_L: Not really in the search PATH,
8104 # but as the default location of the library.
8105 hardcode_minus_L=yes
8106 fi
8107 ;;
8108
8109 hpux11*)
8110 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8111 case $host_cpu in
8112 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008113 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8114 ;;
vapier7f19c022007-02-17 14:46:31 +00008115 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00008116 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008117 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008118 *)
8119 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8120 ;;
8121 esac
8122 else
vapier7f19c022007-02-17 14:46:31 +00008123 case $host_cpu in
8124 hppa*64*)
8125 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8126 ;;
8127 ia64*)
8128 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00008129 ;;
8130 *)
vapier7f19c022007-02-17 14:46:31 +00008131 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 +00008132 ;;
8133 esac
8134 fi
8135 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00008136 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8137 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00008138
vapier7f19c022007-02-17 14:46:31 +00008139 case $host_cpu in
8140 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00008141 hardcode_direct=no
8142 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008143 ;;
8144 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008145 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00008146 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008147 export_dynamic_flag_spec='${wl}-E'
8148
8149 # hardcode_minus_L: Not really in the search PATH,
8150 # but as the default location of the library.
8151 hardcode_minus_L=yes
8152 ;;
8153 esac
8154 fi
8155 ;;
8156
8157 irix5* | irix6* | nonstopux*)
8158 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008159 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'
8160 # Try to use the -exported_symbol ld option, if it does not
8161 # work, assume that -exports_file does not work either and
8162 # implicitly export all symbols.
8163 save_LDFLAGS="$LDFLAGS"
8164 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
drh710658c2012-01-16 13:00:05 +00008165 cat >conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +00008166int foo(void) {}
8167_ACEOF
drh710658c2012-01-16 13:00:05 +00008168rm -f conftest.$ac_objext conftest$ac_exeext
8169if { (ac_try="$ac_link"
8170case "(($ac_try" in
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8173esac
8174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8175$as_echo "$ac_try_echo") >&5
8176 (eval "$ac_link") 2>conftest.er1
8177 ac_status=$?
8178 grep -v '^ *+' conftest.er1 >conftest.err
8179 rm -f conftest.er1
8180 cat conftest.err >&5
8181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); } && {
8183 test -z "$ac_c_werror_flag" ||
8184 test ! -s conftest.err
8185 } && test -s conftest$ac_exeext && {
8186 test "$cross_compiling" = yes ||
8187 $as_test_x conftest$ac_exeext
8188 }; then
mlcreech636a9952008-05-05 22:52:56 +00008189 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'
8190
drh710658c2012-01-16 13:00:05 +00008191else
8192 $as_echo "$as_me: failed program was:" >&5
8193sed 's/^/| /' conftest.$ac_ext >&5
8194
8195
mlcreech636a9952008-05-05 22:52:56 +00008196fi
drh710658c2012-01-16 13:00:05 +00008197
8198rm -rf conftest.dSYM
8199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8200 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008201 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00008202 else
mlcreech636a9952008-05-05 22:52:56 +00008203 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'
8204 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 +00008205 fi
mlcreech636a9952008-05-05 22:52:56 +00008206 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008207 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8208 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00008209 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008210 link_all_deplibs=yes
8211 ;;
8212
vapier7f19c022007-02-17 14:46:31 +00008213 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008214 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8216 else
8217 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8218 fi
8219 hardcode_libdir_flag_spec='-R$libdir'
8220 hardcode_direct=yes
8221 hardcode_shlibpath_var=no
8222 ;;
8223
8224 newsos6)
8225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8226 hardcode_direct=yes
8227 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8228 hardcode_libdir_separator=:
8229 hardcode_shlibpath_var=no
8230 ;;
8231
mlcreech636a9952008-05-05 22:52:56 +00008232 *nto* | *qnx*)
8233 ;;
8234
a.rottmann9bc8b932004-02-29 15:18:31 +00008235 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008236 if test -f /usr/libexec/ld.so; then
8237 hardcode_direct=yes
8238 hardcode_shlibpath_var=no
8239 hardcode_direct_absolute=yes
8240 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8241 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8242 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8243 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8244 export_dynamic_flag_spec='${wl}-E'
8245 else
8246 case $host_os in
8247 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8248 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8249 hardcode_libdir_flag_spec='-R$libdir'
8250 ;;
8251 *)
8252 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8253 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8254 ;;
8255 esac
8256 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008257 else
mlcreech636a9952008-05-05 22:52:56 +00008258 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008259 fi
8260 ;;
8261
8262 os2*)
8263 hardcode_libdir_flag_spec='-L$libdir'
8264 hardcode_minus_L=yes
8265 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008266 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'
8267 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008268 ;;
8269
8270 osf3*)
8271 if test "$GCC" = yes; then
8272 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008273 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 +00008274 else
8275 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008276 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 +00008277 fi
mlcreech636a9952008-05-05 22:52:56 +00008278 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008279 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8280 hardcode_libdir_separator=:
8281 ;;
8282
8283 osf4* | osf5*) # as osf3* with the addition of -msym flag
8284 if test "$GCC" = yes; then
8285 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008286 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 +00008287 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8288 else
8289 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008290 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'
8291 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~
8292 $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 +00008293
8294 # Both c and cxx compiler support -rpath directly
8295 hardcode_libdir_flag_spec='-rpath $libdir'
8296 fi
mlcreech636a9952008-05-05 22:52:56 +00008297 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008298 hardcode_libdir_separator=:
8299 ;;
8300
a.rottmann9bc8b932004-02-29 15:18:31 +00008301 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008302 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008303 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008304 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008305 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8306 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8307 $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 +00008308 else
mlcreech636a9952008-05-05 22:52:56 +00008309 case `$CC -V 2>&1` in
8310 *"Compilers 5.0"*)
8311 wlarc=''
8312 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8313 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8314 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8315 ;;
8316 *)
8317 wlarc='${wl}'
8318 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8319 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8320 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8321 ;;
8322 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008323 fi
8324 hardcode_libdir_flag_spec='-R$libdir'
8325 hardcode_shlibpath_var=no
8326 case $host_os in
8327 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008328 *)
mlcreech636a9952008-05-05 22:52:56 +00008329 # The compiler driver will combine and reorder linker options,
8330 # but understands `-z linker_flag'. GCC discards it without `$wl',
8331 # but is careful enough not to reorder.
8332 # Supported since Solaris 2.6 (maybe 2.5.1?)
8333 if test "$GCC" = yes; then
8334 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8335 else
8336 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8337 fi
8338 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008339 esac
8340 link_all_deplibs=yes
8341 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008342
a.rottmann9bc8b932004-02-29 15:18:31 +00008343 sunos4*)
8344 if test "x$host_vendor" = xsequent; then
8345 # Use $CC to link under sequent, because it throws in some extra .o
8346 # files that make .init and .fini sections work.
8347 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8348 else
8349 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8350 fi
8351 hardcode_libdir_flag_spec='-L$libdir'
8352 hardcode_direct=yes
8353 hardcode_minus_L=yes
8354 hardcode_shlibpath_var=no
8355 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008356
a.rottmann9bc8b932004-02-29 15:18:31 +00008357 sysv4)
8358 case $host_vendor in
8359 sni)
8360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8361 hardcode_direct=yes # is this really true???
8362 ;;
8363 siemens)
8364 ## LD is ld it makes a PLAMLIB
8365 ## CC just makes a GrossModule.
8366 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8367 reload_cmds='$CC -r -o $output$reload_objs'
8368 hardcode_direct=no
8369 ;;
8370 motorola)
8371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8372 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8373 ;;
8374 esac
8375 runpath_var='LD_RUN_PATH'
8376 hardcode_shlibpath_var=no
8377 ;;
8378
8379 sysv4.3*)
8380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8381 hardcode_shlibpath_var=no
8382 export_dynamic_flag_spec='-Bexport'
8383 ;;
8384
8385 sysv4*MP*)
8386 if test -d /usr/nec; then
8387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8388 hardcode_shlibpath_var=no
8389 runpath_var=LD_RUN_PATH
8390 hardcode_runpath_var=yes
8391 ld_shlibs=yes
8392 fi
8393 ;;
8394
mlcreech636a9952008-05-05 22:52:56 +00008395 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008396 no_undefined_flag='${wl}-z,text'
8397 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008398 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008399 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008400
a.rottmann9bc8b932004-02-29 15:18:31 +00008401 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008402 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8403 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 +00008404 else
vapier7f19c022007-02-17 14:46:31 +00008405 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8406 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 +00008407 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008408 ;;
8409
vapier7f19c022007-02-17 14:46:31 +00008410 sysv5* | sco3.2v5* | sco5v6*)
8411 # Note: We can NOT use -z defs as we might desire, because we do not
8412 # link with -lc, and that would cause any symbols used from libc to
8413 # always be unresolved, which means just about no library would
8414 # ever link correctly. If we're not using GNU ld we use -z text
8415 # though, which does catch some bad symbols but isn't as heavy-handed
8416 # as -z defs.
8417 no_undefined_flag='${wl}-z,text'
8418 allow_undefined_flag='${wl}-z,nodefs'
8419 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008420 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008421 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008422 hardcode_libdir_separator=':'
8423 link_all_deplibs=yes
8424 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008425 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008426
8427 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008428 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8429 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008430 else
mlcreech636a9952008-05-05 22:52:56 +00008431 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8432 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008433 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008434 ;;
8435
8436 uts4*)
8437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8438 hardcode_libdir_flag_spec='-L$libdir'
8439 hardcode_shlibpath_var=no
8440 ;;
8441
8442 *)
8443 ld_shlibs=no
8444 ;;
8445 esac
mlcreech636a9952008-05-05 22:52:56 +00008446
8447 if test x$host_vendor = xsni; then
8448 case $host in
8449 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8450 export_dynamic_flag_spec='${wl}-Blargedynsym'
8451 ;;
8452 esac
8453 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008454 fi
8455
drh710658c2012-01-16 13:00:05 +00008456{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
drh8b727472009-01-19 18:18:40 +00008457$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008458test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008459
mlcreech636a9952008-05-05 22:52:56 +00008460with_gnu_ld=$with_gnu_ld
8461
8462
danielk197733a14782008-08-04 14:50:05 +00008463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
a.rottmann9bc8b932004-02-29 15:18:31 +00008476#
8477# Do we need to explicitly link libc?
8478#
8479case "x$archive_cmds_need_lc" in
8480x|xyes)
8481 # Assume -lc should be added
8482 archive_cmds_need_lc=yes
8483
8484 if test "$enable_shared" = yes && test "$GCC" = yes; then
8485 case $archive_cmds in
8486 *'~'*)
8487 # FIXME: we may have to deal with multi-command sequences.
8488 ;;
8489 '$CC '*)
8490 # Test whether the compiler implicitly links with -lc since on some
8491 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8492 # to ld, don't add -lc before -lgcc.
drh710658c2012-01-16 13:00:05 +00008493 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
drh8b727472009-01-19 18:18:40 +00008494$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008495 $RM conftest*
8496 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008497
drh710658c2012-01-16 13:00:05 +00008498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008499 (eval $ac_compile) 2>&5
8500 ac_status=$?
drh710658c2012-01-16 13:00:05 +00008501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } 2>conftest.err; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008503 soname=conftest
8504 lib=conftest
8505 libobjs=conftest.$ac_objext
8506 deplibs=
8507 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008508 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008509 compiler_flags=-v
8510 linker_flags=-v
8511 verstring=
8512 output_objdir=.
8513 libname=conftest
8514 lt_save_allow_undefined_flag=$allow_undefined_flag
8515 allow_undefined_flag=
drh710658c2012-01-16 13:00:05 +00008516 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
mlcreech636a9952008-05-05 22:52:56 +00008517 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008518 ac_status=$?
drh710658c2012-01-16 13:00:05 +00008519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); }
a.rottmann9bc8b932004-02-29 15:18:31 +00008521 then
8522 archive_cmds_need_lc=no
8523 else
8524 archive_cmds_need_lc=yes
8525 fi
8526 allow_undefined_flag=$lt_save_allow_undefined_flag
8527 else
8528 cat conftest.err 1>&5
8529 fi
mlcreech636a9952008-05-05 22:52:56 +00008530 $RM conftest*
drh710658c2012-01-16 13:00:05 +00008531 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
drh8b727472009-01-19 18:18:40 +00008532$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008533 ;;
8534 esac
drh71eb93e2001-09-28 01:34:43 +00008535 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008536 ;;
8537esac
drh71eb93e2001-09-28 01:34:43 +00008538
mlcreech636a9952008-05-05 22:52:56 +00008539
danielk197733a14782008-08-04 14:50:05 +00008540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
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
drh710658c2012-01-16 13:00:05 +00008695 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
drh8b727472009-01-19 18:18:40 +00008696$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008697
8698if test "$GCC" = yes; then
8699 case $host_os in
8700 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8701 *) lt_awk_arg="/^libraries:/" ;;
8702 esac
8703 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8704 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8705 # if the path contains ";" then we assume it to be the separator
8706 # otherwise default to the standard path separator (i.e. ":") - it is
8707 # assumed that no part of a normal pathname contains ";" but that should
8708 # okay in the real world where ";" in dirpaths is itself problematic.
8709 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8710 else
8711 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8712 fi
8713 # Ok, now we have the path, separated by spaces, we can step through it
8714 # and add multilib dir if necessary.
8715 lt_tmp_lt_search_path_spec=
8716 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8717 for lt_sys_path in $lt_search_path_spec; do
8718 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8719 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8720 else
8721 test -d "$lt_sys_path" && \
8722 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8723 fi
8724 done
8725 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8726BEGIN {RS=" "; FS="/|\n";} {
8727 lt_foo="";
8728 lt_count=0;
8729 for (lt_i = NF; lt_i > 0; lt_i--) {
8730 if ($lt_i != "" && $lt_i != ".") {
8731 if ($lt_i == "..") {
8732 lt_count++;
8733 } else {
8734 if (lt_count == 0) {
8735 lt_foo="/" $lt_i lt_foo;
8736 } else {
8737 lt_count--;
8738 }
8739 }
8740 }
8741 }
8742 if (lt_foo != "") { lt_freq[lt_foo]++; }
8743 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8744}'`
8745 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8746else
8747 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8748fi
drh71eb93e2001-09-28 01:34:43 +00008749library_names_spec=
8750libname_spec='lib$name'
8751soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008752shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008753postinstall_cmds=
8754postuninstall_cmds=
8755finish_cmds=
8756finish_eval=
8757shlibpath_var=
8758shlibpath_overrides_runpath=unknown
8759version_type=none
8760dynamic_linker="$host_os ld.so"
8761sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008762need_lib_prefix=unknown
8763hardcode_into_libs=no
8764
8765# when you set need_version to no, make sure it does not cause -set_version
8766# flags to be left without arguments
8767need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008768
8769case $host_os in
8770aix3*)
8771 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008772 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008773 shlibpath_var=LIBPATH
8774
a.rottmann9bc8b932004-02-29 15:18:31 +00008775 # AIX 3 has no versioning support, so we append a major version to the name.
8776 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008777 ;;
8778
mlcreech636a9952008-05-05 22:52:56 +00008779aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008780 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008781 need_lib_prefix=no
8782 need_version=no
8783 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008784 if test "$host_cpu" = ia64; then
8785 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008786 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008787 shlibpath_var=LD_LIBRARY_PATH
8788 else
8789 # With GCC up to 2.95.x, collect2 would create an import file
8790 # for dependence libraries. The import file would start with
8791 # the line `#! .'. This would cause the generated library to
8792 # depend on `.', always an invalid library. This was fixed in
8793 # development snapshots of GCC prior to 3.0.
8794 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008795 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008796 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8797 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008798 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008799 :
8800 else
8801 can_build_shared=no
8802 fi
8803 ;;
drh71eb93e2001-09-28 01:34:43 +00008804 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008805 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8806 # soname into executable. Probably we can add versioning support to
8807 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008808 if test "$aix_use_runtimelinking" = yes; then
8809 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8810 # instead of lib<name>.a to let people know that these are not
8811 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008813 else
8814 # We preserve .a as extension for shared libraries through AIX4.2
8815 # and later when we are not doing run time linking.
8816 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008817 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008818 fi
8819 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008820 fi
8821 ;;
8822
8823amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008824 case $host_cpu in
8825 powerpc)
8826 # Since July 2007 AmigaOS4 officially supports .so libraries.
8827 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8829 ;;
8830 m68k)
8831 library_names_spec='$libname.ixlibrary $libname.a'
8832 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8833 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'
8834 ;;
8835 esac
drh71eb93e2001-09-28 01:34:43 +00008836 ;;
8837
8838beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008839 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008840 dynamic_linker="$host_os ld.so"
8841 shlibpath_var=LIBRARY_PATH
8842 ;;
8843
vapier7f19c022007-02-17 14:46:31 +00008844bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008845 version_type=linux
8846 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8848 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008849 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8850 shlibpath_var=LD_LIBRARY_PATH
8851 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8852 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8853 # the default ld.so.conf also contains /usr/contrib/lib and
8854 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8855 # libtool to hard-code these into programs
8856 ;;
8857
vapier6acb2cf2009-01-28 04:46:28 +00008858cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008859 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008860 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008861 need_version=no
8862 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008863
drh71eb93e2001-09-28 01:34:43 +00008864 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008865 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008866 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008867 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8868 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008869 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008870 dldir=$destdir/`dirname \$dlpath`~
8871 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008872 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008873 chmod a+x \$dldir/$dlname~
8874 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8875 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8876 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008877 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008878 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008879 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008880 shlibpath_overrides_runpath=yes
8881
8882 case $host_os in
8883 cygwin*)
8884 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8885 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8886 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8887 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008888 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008889 # MinGW DLLs use traditional 'lib' prefix
8890 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008891 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8892 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008893 # It is most probably a Windows format PATH printed by
8894 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8895 # path with ; separators, and with drive letters. We can handle the
8896 # drive letters (cygwin fileutils understands them), so leave them,
8897 # especially as we might pass files found there to a mingw objdump,
8898 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008899 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008900 else
mlcreech636a9952008-05-05 22:52:56 +00008901 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008902 fi
8903 ;;
8904 pw32*)
8905 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008906 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 +00008907 ;;
8908 esac
drh71eb93e2001-09-28 01:34:43 +00008909 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008910
drh71eb93e2001-09-28 01:34:43 +00008911 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008912 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008913 ;;
8914 esac
8915 dynamic_linker='Win32 ld.exe'
8916 # FIXME: first we should search . and the directory the executable is in
8917 shlibpath_var=PATH
8918 ;;
8919
8920darwin* | rhapsody*)
8921 dynamic_linker="$host_os dyld"
8922 version_type=darwin
8923 need_lib_prefix=no
8924 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008925 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008926 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008927 shlibpath_overrides_runpath=yes
8928 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008929 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008930
8931 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008932 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8933 ;;
8934
8935dgux*)
8936 version_type=linux
8937 need_lib_prefix=no
8938 need_version=no
8939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8940 soname_spec='${libname}${release}${shared_ext}$major'
8941 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008942 ;;
8943
a.rottmann84e63352003-03-24 09:42:16 +00008944freebsd1*)
8945 dynamic_linker=no
8946 ;;
8947
vapier7f19c022007-02-17 14:46:31 +00008948freebsd* | dragonfly*)
8949 # DragonFly does not have aout. When/if they implement a new
8950 # versioning mechanism, adjust this.
8951 if test -x /usr/bin/objformat; then
8952 objformat=`/usr/bin/objformat`
8953 else
8954 case $host_os in
8955 freebsd[123]*) objformat=aout ;;
8956 *) objformat=elf ;;
8957 esac
8958 fi
8959 # Handle Gentoo/FreeBSD as it was Linux
8960 case $host_vendor in
8961 gentoo)
8962 version_type=linux ;;
8963 *)
8964 version_type=freebsd-$objformat ;;
8965 esac
8966
drh71eb93e2001-09-28 01:34:43 +00008967 case $version_type in
8968 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008970 need_version=no
8971 need_lib_prefix=no
8972 ;;
8973 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008974 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008975 need_version=yes
8976 ;;
vapier7f19c022007-02-17 14:46:31 +00008977 linux)
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8979 soname_spec='${libname}${release}${shared_ext}$major'
8980 need_lib_prefix=no
8981 need_version=no
8982 ;;
drh71eb93e2001-09-28 01:34:43 +00008983 esac
8984 shlibpath_var=LD_LIBRARY_PATH
8985 case $host_os in
8986 freebsd2*)
8987 shlibpath_overrides_runpath=yes
8988 ;;
vapier7f19c022007-02-17 14:46:31 +00008989 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008990 shlibpath_overrides_runpath=yes
8991 hardcode_into_libs=yes
8992 ;;
vapier7f19c022007-02-17 14:46:31 +00008993 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8994 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008995 shlibpath_overrides_runpath=no
8996 hardcode_into_libs=yes
8997 ;;
mlcreech636a9952008-05-05 22:52:56 +00008998 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008999 shlibpath_overrides_runpath=yes
9000 hardcode_into_libs=yes
9001 ;;
drh71eb93e2001-09-28 01:34:43 +00009002 esac
9003 ;;
9004
9005gnu*)
9006 version_type=linux
9007 need_lib_prefix=no
9008 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9010 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009011 shlibpath_var=LD_LIBRARY_PATH
9012 hardcode_into_libs=yes
9013 ;;
9014
9015hpux9* | hpux10* | hpux11*)
9016 # Give a soname corresponding to the major version so that dld.sl refuses to
9017 # link against other versions.
9018 version_type=sunos
9019 need_lib_prefix=no
9020 need_version=no
vapier7f19c022007-02-17 14:46:31 +00009021 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00009022 ia64*)
vapier7f19c022007-02-17 14:46:31 +00009023 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00009024 hardcode_into_libs=yes
9025 dynamic_linker="$host_os dld.so"
9026 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 if test "X$HPUX_IA64_MODE" = X32; then
9031 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9032 else
9033 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9034 fi
9035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9036 ;;
mlcreech636a9952008-05-05 22:52:56 +00009037 hppa*64*)
9038 shrext_cmds='.sl'
9039 hardcode_into_libs=yes
9040 dynamic_linker="$host_os dld.sl"
9041 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9042 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044 soname_spec='${libname}${release}${shared_ext}$major'
9045 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9046 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9047 ;;
9048 *)
vapier7f19c022007-02-17 14:46:31 +00009049 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00009050 dynamic_linker="$host_os dld.sl"
9051 shlibpath_var=SHLIB_PATH
9052 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9054 soname_spec='${libname}${release}${shared_ext}$major'
9055 ;;
9056 esac
drh71eb93e2001-09-28 01:34:43 +00009057 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9058 postinstall_cmds='chmod 555 $lib'
9059 ;;
9060
mlcreech636a9952008-05-05 22:52:56 +00009061interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00009062 version_type=linux
9063 need_lib_prefix=no
9064 need_version=no
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9066 soname_spec='${libname}${release}${shared_ext}$major'
9067 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 shlibpath_overrides_runpath=no
9070 hardcode_into_libs=yes
9071 ;;
9072
a.rottmann84e63352003-03-24 09:42:16 +00009073irix5* | irix6* | nonstopux*)
9074 case $host_os in
9075 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009076 *)
9077 if test "$lt_cv_prog_gnu_ld" = yes; then
9078 version_type=linux
9079 else
9080 version_type=irix
9081 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00009082 esac
drh71eb93e2001-09-28 01:34:43 +00009083 need_lib_prefix=no
9084 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009085 soname_spec='${libname}${release}${shared_ext}$major'
9086 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 +00009087 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00009088 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00009089 libsuff= shlibsuff=
9090 ;;
9091 *)
9092 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00009093 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9094 libsuff= shlibsuff= libmagic=32-bit;;
9095 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9096 libsuff=32 shlibsuff=N32 libmagic=N32;;
9097 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9098 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00009099 *) libsuff= shlibsuff= libmagic=never-match;;
9100 esac
9101 ;;
9102 esac
9103 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9104 shlibpath_overrides_runpath=no
9105 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9106 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00009107 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00009108 ;;
9109
9110# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00009111linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00009112 dynamic_linker=no
9113 ;;
9114
9115# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00009116linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00009117 version_type=linux
9118 need_lib_prefix=no
9119 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9123 shlibpath_var=LD_LIBRARY_PATH
9124 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00009125 # Some binutils ld are patched to set DT_RUNPATH
9126 save_LDFLAGS=$LDFLAGS
9127 save_libdir=$libdir
9128 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9129 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
drh710658c2012-01-16 13:00:05 +00009130 cat >conftest.$ac_ext <<_ACEOF
9131/* confdefs.h. */
9132_ACEOF
9133cat confdefs.h >>conftest.$ac_ext
9134cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +00009135/* end confdefs.h. */
9136
9137int
9138main ()
9139{
9140
9141 ;
9142 return 0;
9143}
9144_ACEOF
drh710658c2012-01-16 13:00:05 +00009145rm -f conftest.$ac_objext conftest$ac_exeext
9146if { (ac_try="$ac_link"
9147case "(($ac_try" in
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9150esac
9151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9152$as_echo "$ac_try_echo") >&5
9153 (eval "$ac_link") 2>conftest.er1
9154 ac_status=$?
9155 grep -v '^ *+' conftest.er1 >conftest.err
9156 rm -f conftest.er1
9157 cat conftest.err >&5
9158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); } && {
9160 test -z "$ac_c_werror_flag" ||
9161 test ! -s conftest.err
9162 } && test -s conftest$ac_exeext && {
9163 test "$cross_compiling" = yes ||
9164 $as_test_x conftest$ac_exeext
9165 }; then
9166 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00009167 shlibpath_overrides_runpath=yes
9168fi
drh710658c2012-01-16 13:00:05 +00009169
9170else
9171 $as_echo "$as_me: failed program was:" >&5
9172sed 's/^/| /' conftest.$ac_ext >&5
9173
9174
mlcreech636a9952008-05-05 22:52:56 +00009175fi
drh710658c2012-01-16 13:00:05 +00009176
9177rm -rf conftest.dSYM
9178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9179 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009180 LDFLAGS=$save_LDFLAGS
9181 libdir=$save_libdir
9182
drh71eb93e2001-09-28 01:34:43 +00009183 # This implies no fast_install, which is unacceptable.
9184 # Some rework will be needed to allow for fast_install
9185 # before this can be enabled.
9186 hardcode_into_libs=yes
9187
a.rottmann9bc8b932004-02-29 15:18:31 +00009188 # Append ld.so.conf contents to the search path
9189 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00009190 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 +00009191 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00009192 fi
9193
drh71eb93e2001-09-28 01:34:43 +00009194 # We used to test for /lib/ld.so.1 and disable shared libraries on
9195 # powerpc, because MkLinux only supported shared libraries with the
9196 # GNU dynamic linker. Since this was broken with cross compilers,
9197 # most powerpc-linux boxes support dynamic linking these days and
9198 # people can always --disable-shared, the test was removed, and we
9199 # assume the GNU/Linux dynamic linker is in use.
9200 dynamic_linker='GNU/Linux ld.so'
9201 ;;
9202
9203netbsd*)
9204 version_type=sunos
9205 need_lib_prefix=no
9206 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00009207 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9210 dynamic_linker='NetBSD (a.out) ld.so'
9211 else
a.rottmann9bc8b932004-02-29 15:18:31 +00009212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9213 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009214 dynamic_linker='NetBSD ld.elf_so'
9215 fi
9216 shlibpath_var=LD_LIBRARY_PATH
9217 shlibpath_overrides_runpath=yes
9218 hardcode_into_libs=yes
9219 ;;
9220
9221newsos6)
9222 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9224 shlibpath_var=LD_LIBRARY_PATH
9225 shlibpath_overrides_runpath=yes
9226 ;;
9227
mlcreech636a9952008-05-05 22:52:56 +00009228*nto* | *qnx*)
9229 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00009230 need_lib_prefix=no
9231 need_version=no
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009234 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009235 shlibpath_overrides_runpath=no
9236 hardcode_into_libs=yes
9237 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00009238 ;;
9239
drh71eb93e2001-09-28 01:34:43 +00009240openbsd*)
9241 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00009242 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00009243 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00009244 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9245 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00009246 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9247 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00009248 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00009249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9251 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009252 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 +00009253 case $host_os in
9254 openbsd2.[89] | openbsd2.[89].*)
9255 shlibpath_overrides_runpath=no
9256 ;;
9257 *)
9258 shlibpath_overrides_runpath=yes
9259 ;;
9260 esac
a.rottmann84e63352003-03-24 09:42:16 +00009261 else
9262 shlibpath_overrides_runpath=yes
9263 fi
drh71eb93e2001-09-28 01:34:43 +00009264 ;;
9265
9266os2*)
9267 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00009268 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00009269 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009270 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00009271 dynamic_linker='OS/2 ld.exe'
9272 shlibpath_var=LIBPATH
9273 ;;
9274
9275osf3* | osf4* | osf5*)
9276 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00009277 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009278 need_version=no
9279 soname_spec='${libname}${release}${shared_ext}$major'
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009281 shlibpath_var=LD_LIBRARY_PATH
9282 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9283 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9284 ;;
9285
mlcreech636a9952008-05-05 22:52:56 +00009286rdos*)
9287 dynamic_linker=no
9288 ;;
9289
drh71eb93e2001-09-28 01:34:43 +00009290solaris*)
9291 version_type=linux
9292 need_lib_prefix=no
9293 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009296 shlibpath_var=LD_LIBRARY_PATH
9297 shlibpath_overrides_runpath=yes
9298 hardcode_into_libs=yes
9299 # ldd complains unless libraries are executable
9300 postinstall_cmds='chmod +x $lib'
9301 ;;
9302
9303sunos4*)
9304 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009306 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9307 shlibpath_var=LD_LIBRARY_PATH
9308 shlibpath_overrides_runpath=yes
9309 if test "$with_gnu_ld" = yes; then
9310 need_lib_prefix=no
9311 fi
9312 need_version=yes
9313 ;;
9314
vapier7f19c022007-02-17 14:46:31 +00009315sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009316 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9318 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009319 shlibpath_var=LD_LIBRARY_PATH
9320 case $host_vendor in
9321 sni)
9322 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009323 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009324 runpath_var=LD_RUN_PATH
9325 ;;
9326 siemens)
9327 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009328 ;;
9329 motorola)
9330 need_lib_prefix=no
9331 need_version=no
9332 shlibpath_overrides_runpath=no
9333 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9334 ;;
9335 esac
9336 ;;
9337
9338sysv4*MP*)
9339 if test -d /usr/nec ;then
9340 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009341 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9342 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009343 shlibpath_var=LD_LIBRARY_PATH
9344 fi
9345 ;;
9346
vapier7f19c022007-02-17 14:46:31 +00009347sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9348 version_type=freebsd-elf
9349 need_lib_prefix=no
9350 need_version=no
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9352 soname_spec='${libname}${release}${shared_ext}$major'
9353 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009354 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009355 hardcode_into_libs=yes
9356 if test "$with_gnu_ld" = yes; then
9357 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009358 else
9359 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009360 case $host_os in
9361 sco3.2v5*)
9362 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9363 ;;
9364 esac
9365 fi
9366 sys_lib_dlsearch_path_spec='/usr/lib'
9367 ;;
9368
mlcreech636a9952008-05-05 22:52:56 +00009369tpf*)
9370 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9371 version_type=linux
9372 need_lib_prefix=no
9373 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009375 shlibpath_var=LD_LIBRARY_PATH
9376 shlibpath_overrides_runpath=no
9377 hardcode_into_libs=yes
9378 ;;
9379
a.rottmann9bc8b932004-02-29 15:18:31 +00009380uts4*)
9381 version_type=linux
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383 soname_spec='${libname}${release}${shared_ext}$major'
9384 shlibpath_var=LD_LIBRARY_PATH
9385 ;;
9386
drh71eb93e2001-09-28 01:34:43 +00009387*)
9388 dynamic_linker=no
9389 ;;
9390esac
drh710658c2012-01-16 13:00:05 +00009391{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
drh8b727472009-01-19 18:18:40 +00009392$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009393test "$dynamic_linker" = no && can_build_shared=no
9394
vapier7f19c022007-02-17 14:46:31 +00009395variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9396if test "$GCC" = yes; then
9397 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9398fi
9399
mlcreech636a9952008-05-05 22:52:56 +00009400if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9401 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9402fi
9403if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9404 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9405fi
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
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
drh710658c2012-01-16 13:00:05 +00009493 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
drh8b727472009-01-19 18:18:40 +00009494$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009495hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009496if test -n "$hardcode_libdir_flag_spec" ||
9497 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009498 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009499
mlcreech636a9952008-05-05 22:52:56 +00009500 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009501 if test "$hardcode_direct" != no &&
9502 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9503 # have to relink, otherwise we might link with an installed library
9504 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009505 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009506 test "$hardcode_minus_L" != no; then
9507 # Linking always hardcodes the temporary library directory.
9508 hardcode_action=relink
9509 else
9510 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9511 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009512 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009513else
9514 # We cannot hardcode anything, or else we can only hardcode existing
9515 # directories.
9516 hardcode_action=unsupported
9517fi
drh710658c2012-01-16 13:00:05 +00009518{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
drh8b727472009-01-19 18:18:40 +00009519$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009520
mlcreech636a9952008-05-05 22:52:56 +00009521if test "$hardcode_action" = relink ||
9522 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009523 # Fast installation is not supported
9524 enable_fast_install=no
9525elif test "$shlibpath_overrides_runpath" = yes ||
9526 test "$enable_shared" = no; then
9527 # Fast installation is not necessary
9528 enable_fast_install=needless
9529fi
9530
a.rottmann84e63352003-03-24 09:42:16 +00009531
mlcreech636a9952008-05-05 22:52:56 +00009532
9533
9534
9535
9536 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009537 enable_dlopen=unknown
9538 enable_dlopen_self=unknown
9539 enable_dlopen_self_static=unknown
9540else
9541 lt_cv_dlopen=no
9542 lt_cv_dlopen_libs=
9543
9544 case $host_os in
9545 beos*)
9546 lt_cv_dlopen="load_add_on"
9547 lt_cv_dlopen_libs=
9548 lt_cv_dlopen_self=yes
9549 ;;
9550
vapier6acb2cf2009-01-28 04:46:28 +00009551 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009552 lt_cv_dlopen="LoadLibrary"
9553 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009554 ;;
drh71eb93e2001-09-28 01:34:43 +00009555
a.rottmann9bc8b932004-02-29 15:18:31 +00009556 cygwin*)
9557 lt_cv_dlopen="dlopen"
9558 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009559 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009560
9561 darwin*)
9562 # if libdl is installed we need to link against it
drh710658c2012-01-16 13:00:05 +00009563 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009564$as_echo_n "checking for dlopen in -ldl... " >&6; }
drh710658c2012-01-16 13:00:05 +00009565if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009566 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009567else
9568 ac_check_lib_save_LIBS=$LIBS
9569LIBS="-ldl $LIBS"
drh710658c2012-01-16 13:00:05 +00009570cat >conftest.$ac_ext <<_ACEOF
9571/* confdefs.h. */
9572_ACEOF
9573cat confdefs.h >>conftest.$ac_ext
9574cat >>conftest.$ac_ext <<_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00009575/* end confdefs.h. */
9576
drh8b727472009-01-19 18:18:40 +00009577/* Override any GCC internal prototype to avoid an error.
9578 Use char because int might match the return type of a GCC
9579 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009580#ifdef __cplusplus
9581extern "C"
9582#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009583char dlopen ();
9584int
9585main ()
9586{
drh8b727472009-01-19 18:18:40 +00009587return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009588 ;
9589 return 0;
9590}
9591_ACEOF
drh710658c2012-01-16 13:00:05 +00009592rm -f conftest.$ac_objext conftest$ac_exeext
9593if { (ac_try="$ac_link"
9594case "(($ac_try" in
9595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9596 *) ac_try_echo=$ac_try;;
9597esac
9598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9599$as_echo "$ac_try_echo") >&5
9600 (eval "$ac_link") 2>conftest.er1
9601 ac_status=$?
9602 grep -v '^ *+' conftest.er1 >conftest.err
9603 rm -f conftest.er1
9604 cat conftest.err >&5
9605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } && {
9607 test -z "$ac_c_werror_flag" ||
9608 test ! -s conftest.err
9609 } && test -s conftest$ac_exeext && {
9610 test "$cross_compiling" = yes ||
9611 $as_test_x conftest$ac_exeext
9612 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009613 ac_cv_lib_dl_dlopen=yes
9614else
drh710658c2012-01-16 13:00:05 +00009615 $as_echo "$as_me: failed program was:" >&5
9616sed 's/^/| /' conftest.$ac_ext >&5
9617
9618 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009619fi
drh710658c2012-01-16 13:00:05 +00009620
9621rm -rf conftest.dSYM
9622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9623 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009624LIBS=$ac_check_lib_save_LIBS
9625fi
drh710658c2012-01-16 13:00:05 +00009626{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009627$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drh710658c2012-01-16 13:00:05 +00009628if test $ac_cv_lib_dl_dlopen = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009629 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9630else
9631
9632 lt_cv_dlopen="dyld"
9633 lt_cv_dlopen_libs=
9634 lt_cv_dlopen_self=yes
9635
9636fi
9637
mlcreech636a9952008-05-05 22:52:56 +00009638 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009639
drh71eb93e2001-09-28 01:34:43 +00009640 *)
drh710658c2012-01-16 13:00:05 +00009641 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9642$as_echo_n "checking for shl_load... " >&6; }
9643if test "${ac_cv_func_shl_load+set}" = set; then
9644 $as_echo_n "(cached) " >&6
9645else
9646 cat >conftest.$ac_ext <<_ACEOF
9647/* confdefs.h. */
9648_ACEOF
9649cat confdefs.h >>conftest.$ac_ext
9650cat >>conftest.$ac_ext <<_ACEOF
9651/* end confdefs.h. */
9652/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9654#define shl_load innocuous_shl_load
9655
9656/* System header to define __stub macros and hopefully few prototypes,
9657 which can conflict with char shl_load (); below.
9658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9659 <limits.h> exists even on freestanding compilers. */
9660
9661#ifdef __STDC__
9662# include <limits.h>
9663#else
9664# include <assert.h>
9665#endif
9666
9667#undef shl_load
9668
9669/* Override any GCC internal prototype to avoid an error.
9670 Use char because int might match the return type of a GCC
9671 builtin and then its argument prototype would still apply. */
9672#ifdef __cplusplus
9673extern "C"
9674#endif
9675char shl_load ();
9676/* The GNU C library defines this for functions which it implements
9677 to always fail with ENOSYS. Some functions are actually named
9678 something starting with __ and the normal name is an alias. */
9679#if defined __stub_shl_load || defined __stub___shl_load
9680choke me
9681#endif
9682
9683int
9684main ()
9685{
9686return shl_load ();
9687 ;
9688 return 0;
9689}
9690_ACEOF
9691rm -f conftest.$ac_objext conftest$ac_exeext
9692if { (ac_try="$ac_link"
9693case "(($ac_try" in
9694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9695 *) ac_try_echo=$ac_try;;
9696esac
9697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9698$as_echo "$ac_try_echo") >&5
9699 (eval "$ac_link") 2>conftest.er1
9700 ac_status=$?
9701 grep -v '^ *+' conftest.er1 >conftest.err
9702 rm -f conftest.er1
9703 cat conftest.err >&5
9704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } && {
9706 test -z "$ac_c_werror_flag" ||
9707 test ! -s conftest.err
9708 } && test -s conftest$ac_exeext && {
9709 test "$cross_compiling" = yes ||
9710 $as_test_x conftest$ac_exeext
9711 }; then
9712 ac_cv_func_shl_load=yes
9713else
9714 $as_echo "$as_me: failed program was:" >&5
9715sed 's/^/| /' conftest.$ac_ext >&5
9716
9717 ac_cv_func_shl_load=no
9718fi
9719
9720rm -rf conftest.dSYM
9721rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9722 conftest$ac_exeext conftest.$ac_ext
9723fi
9724{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9725$as_echo "$ac_cv_func_shl_load" >&6; }
9726if test $ac_cv_func_shl_load = yes; then
drh71eb93e2001-09-28 01:34:43 +00009727 lt_cv_dlopen="shl_load"
9728else
drh710658c2012-01-16 13:00:05 +00009729 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009730$as_echo_n "checking for shl_load in -ldld... " >&6; }
drh710658c2012-01-16 13:00:05 +00009731if test "${ac_cv_lib_dld_shl_load+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009732 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009733else
9734 ac_check_lib_save_LIBS=$LIBS
9735LIBS="-ldld $LIBS"
drh710658c2012-01-16 13:00:05 +00009736cat >conftest.$ac_ext <<_ACEOF
9737/* confdefs.h. */
9738_ACEOF
9739cat confdefs.h >>conftest.$ac_ext
9740cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009741/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009742
drh8b727472009-01-19 18:18:40 +00009743/* Override any GCC internal prototype to avoid an error.
9744 Use char because int might match the return type of a GCC
9745 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009746#ifdef __cplusplus
9747extern "C"
9748#endif
drh71eb93e2001-09-28 01:34:43 +00009749char shl_load ();
9750int
9751main ()
9752{
drh8b727472009-01-19 18:18:40 +00009753return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009754 ;
9755 return 0;
9756}
9757_ACEOF
drh710658c2012-01-16 13:00:05 +00009758rm -f conftest.$ac_objext conftest$ac_exeext
9759if { (ac_try="$ac_link"
9760case "(($ac_try" in
9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762 *) ac_try_echo=$ac_try;;
9763esac
9764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9765$as_echo "$ac_try_echo") >&5
9766 (eval "$ac_link") 2>conftest.er1
9767 ac_status=$?
9768 grep -v '^ *+' conftest.er1 >conftest.err
9769 rm -f conftest.er1
9770 cat conftest.err >&5
9771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } && {
9773 test -z "$ac_c_werror_flag" ||
9774 test ! -s conftest.err
9775 } && test -s conftest$ac_exeext && {
9776 test "$cross_compiling" = yes ||
9777 $as_test_x conftest$ac_exeext
9778 }; then
drh71eb93e2001-09-28 01:34:43 +00009779 ac_cv_lib_dld_shl_load=yes
9780else
drh710658c2012-01-16 13:00:05 +00009781 $as_echo "$as_me: failed program was:" >&5
9782sed 's/^/| /' conftest.$ac_ext >&5
9783
9784 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009785fi
drh710658c2012-01-16 13:00:05 +00009786
9787rm -rf conftest.dSYM
9788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9789 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009790LIBS=$ac_check_lib_save_LIBS
9791fi
drh710658c2012-01-16 13:00:05 +00009792{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
drh8b727472009-01-19 18:18:40 +00009793$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drh710658c2012-01-16 13:00:05 +00009794if test $ac_cv_lib_dld_shl_load = yes; then
mlcreech636a9952008-05-05 22:52:56 +00009795 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009796else
drh710658c2012-01-16 13:00:05 +00009797 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9798$as_echo_n "checking for dlopen... " >&6; }
9799if test "${ac_cv_func_dlopen+set}" = set; then
9800 $as_echo_n "(cached) " >&6
9801else
9802 cat >conftest.$ac_ext <<_ACEOF
9803/* confdefs.h. */
9804_ACEOF
9805cat confdefs.h >>conftest.$ac_ext
9806cat >>conftest.$ac_ext <<_ACEOF
9807/* end confdefs.h. */
9808/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9810#define dlopen innocuous_dlopen
9811
9812/* System header to define __stub macros and hopefully few prototypes,
9813 which can conflict with char dlopen (); below.
9814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9815 <limits.h> exists even on freestanding compilers. */
9816
9817#ifdef __STDC__
9818# include <limits.h>
9819#else
9820# include <assert.h>
9821#endif
9822
9823#undef dlopen
9824
9825/* Override any GCC internal prototype to avoid an error.
9826 Use char because int might match the return type of a GCC
9827 builtin and then its argument prototype would still apply. */
9828#ifdef __cplusplus
9829extern "C"
9830#endif
9831char dlopen ();
9832/* The GNU C library defines this for functions which it implements
9833 to always fail with ENOSYS. Some functions are actually named
9834 something starting with __ and the normal name is an alias. */
9835#if defined __stub_dlopen || defined __stub___dlopen
9836choke me
9837#endif
9838
9839int
9840main ()
9841{
9842return dlopen ();
9843 ;
9844 return 0;
9845}
9846_ACEOF
9847rm -f conftest.$ac_objext conftest$ac_exeext
9848if { (ac_try="$ac_link"
9849case "(($ac_try" in
9850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851 *) ac_try_echo=$ac_try;;
9852esac
9853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9854$as_echo "$ac_try_echo") >&5
9855 (eval "$ac_link") 2>conftest.er1
9856 ac_status=$?
9857 grep -v '^ *+' conftest.er1 >conftest.err
9858 rm -f conftest.er1
9859 cat conftest.err >&5
9860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } && {
9862 test -z "$ac_c_werror_flag" ||
9863 test ! -s conftest.err
9864 } && test -s conftest$ac_exeext && {
9865 test "$cross_compiling" = yes ||
9866 $as_test_x conftest$ac_exeext
9867 }; then
9868 ac_cv_func_dlopen=yes
9869else
9870 $as_echo "$as_me: failed program was:" >&5
9871sed 's/^/| /' conftest.$ac_ext >&5
9872
9873 ac_cv_func_dlopen=no
9874fi
9875
9876rm -rf conftest.dSYM
9877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9878 conftest$ac_exeext conftest.$ac_ext
9879fi
9880{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9881$as_echo "$ac_cv_func_dlopen" >&6; }
9882if test $ac_cv_func_dlopen = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009883 lt_cv_dlopen="dlopen"
9884else
drh710658c2012-01-16 13:00:05 +00009885 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009886$as_echo_n "checking for dlopen in -ldl... " >&6; }
drh710658c2012-01-16 13:00:05 +00009887if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009888 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009889else
9890 ac_check_lib_save_LIBS=$LIBS
9891LIBS="-ldl $LIBS"
drh710658c2012-01-16 13:00:05 +00009892cat >conftest.$ac_ext <<_ACEOF
9893/* confdefs.h. */
9894_ACEOF
9895cat confdefs.h >>conftest.$ac_ext
9896cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009897/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009898
drh8b727472009-01-19 18:18:40 +00009899/* Override any GCC internal prototype to avoid an error.
9900 Use char because int might match the return type of a GCC
9901 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009902#ifdef __cplusplus
9903extern "C"
9904#endif
drh71eb93e2001-09-28 01:34:43 +00009905char dlopen ();
9906int
9907main ()
9908{
drh8b727472009-01-19 18:18:40 +00009909return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009910 ;
9911 return 0;
9912}
9913_ACEOF
drh710658c2012-01-16 13:00:05 +00009914rm -f conftest.$ac_objext conftest$ac_exeext
9915if { (ac_try="$ac_link"
9916case "(($ac_try" in
9917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918 *) ac_try_echo=$ac_try;;
9919esac
9920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9921$as_echo "$ac_try_echo") >&5
9922 (eval "$ac_link") 2>conftest.er1
9923 ac_status=$?
9924 grep -v '^ *+' conftest.er1 >conftest.err
9925 rm -f conftest.er1
9926 cat conftest.err >&5
9927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } && {
9929 test -z "$ac_c_werror_flag" ||
9930 test ! -s conftest.err
9931 } && test -s conftest$ac_exeext && {
9932 test "$cross_compiling" = yes ||
9933 $as_test_x conftest$ac_exeext
9934 }; then
drh71eb93e2001-09-28 01:34:43 +00009935 ac_cv_lib_dl_dlopen=yes
9936else
drh710658c2012-01-16 13:00:05 +00009937 $as_echo "$as_me: failed program was:" >&5
9938sed 's/^/| /' conftest.$ac_ext >&5
9939
9940 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009941fi
drh710658c2012-01-16 13:00:05 +00009942
9943rm -rf conftest.dSYM
9944rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9945 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009946LIBS=$ac_check_lib_save_LIBS
9947fi
drh710658c2012-01-16 13:00:05 +00009948{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009949$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drh710658c2012-01-16 13:00:05 +00009950if test $ac_cv_lib_dl_dlopen = yes; then
drh71eb93e2001-09-28 01:34:43 +00009951 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9952else
drh710658c2012-01-16 13:00:05 +00009953 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
drh8b727472009-01-19 18:18:40 +00009954$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drh710658c2012-01-16 13:00:05 +00009955if test "${ac_cv_lib_svld_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009956 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009957else
9958 ac_check_lib_save_LIBS=$LIBS
9959LIBS="-lsvld $LIBS"
drh710658c2012-01-16 13:00:05 +00009960cat >conftest.$ac_ext <<_ACEOF
9961/* confdefs.h. */
9962_ACEOF
9963cat confdefs.h >>conftest.$ac_ext
9964cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009965/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009966
drh8b727472009-01-19 18:18:40 +00009967/* Override any GCC internal prototype to avoid an error.
9968 Use char because int might match the return type of a GCC
9969 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009970#ifdef __cplusplus
9971extern "C"
9972#endif
drh71eb93e2001-09-28 01:34:43 +00009973char dlopen ();
9974int
9975main ()
9976{
drh8b727472009-01-19 18:18:40 +00009977return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009978 ;
9979 return 0;
9980}
9981_ACEOF
drh710658c2012-01-16 13:00:05 +00009982rm -f conftest.$ac_objext conftest$ac_exeext
9983if { (ac_try="$ac_link"
9984case "(($ac_try" in
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9987esac
9988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9989$as_echo "$ac_try_echo") >&5
9990 (eval "$ac_link") 2>conftest.er1
9991 ac_status=$?
9992 grep -v '^ *+' conftest.er1 >conftest.err
9993 rm -f conftest.er1
9994 cat conftest.err >&5
9995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } && {
9997 test -z "$ac_c_werror_flag" ||
9998 test ! -s conftest.err
9999 } && test -s conftest$ac_exeext && {
10000 test "$cross_compiling" = yes ||
10001 $as_test_x conftest$ac_exeext
10002 }; then
drh71eb93e2001-09-28 01:34:43 +000010003 ac_cv_lib_svld_dlopen=yes
10004else
drh710658c2012-01-16 13:00:05 +000010005 $as_echo "$as_me: failed program was:" >&5
10006sed 's/^/| /' conftest.$ac_ext >&5
10007
10008 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +000010009fi
drh710658c2012-01-16 13:00:05 +000010010
10011rm -rf conftest.dSYM
10012rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10013 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000010014LIBS=$ac_check_lib_save_LIBS
10015fi
drh710658c2012-01-16 13:00:05 +000010016{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
drh8b727472009-01-19 18:18:40 +000010017$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drh710658c2012-01-16 13:00:05 +000010018if test $ac_cv_lib_svld_dlopen = yes; then
drh71eb93e2001-09-28 01:34:43 +000010019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +000010020else
drh710658c2012-01-16 13:00:05 +000010021 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
drh8b727472009-01-19 18:18:40 +000010022$as_echo_n "checking for dld_link in -ldld... " >&6; }
drh710658c2012-01-16 13:00:05 +000010023if test "${ac_cv_lib_dld_dld_link+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010024 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010025else
10026 ac_check_lib_save_LIBS=$LIBS
10027LIBS="-ldld $LIBS"
drh710658c2012-01-16 13:00:05 +000010028cat >conftest.$ac_ext <<_ACEOF
10029/* confdefs.h. */
10030_ACEOF
10031cat confdefs.h >>conftest.$ac_ext
10032cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000010033/* end confdefs.h. */
10034
drh8b727472009-01-19 18:18:40 +000010035/* Override any GCC internal prototype to avoid an error.
10036 Use char because int might match the return type of a GCC
10037 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +000010038#ifdef __cplusplus
10039extern "C"
10040#endif
a.rottmann84e63352003-03-24 09:42:16 +000010041char dld_link ();
10042int
10043main ()
10044{
drh8b727472009-01-19 18:18:40 +000010045return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +000010046 ;
10047 return 0;
10048}
10049_ACEOF
drh710658c2012-01-16 13:00:05 +000010050rm -f conftest.$ac_objext conftest$ac_exeext
10051if { (ac_try="$ac_link"
10052case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10055esac
10056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10057$as_echo "$ac_try_echo") >&5
10058 (eval "$ac_link") 2>conftest.er1
10059 ac_status=$?
10060 grep -v '^ *+' conftest.er1 >conftest.err
10061 rm -f conftest.er1
10062 cat conftest.err >&5
10063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); } && {
10065 test -z "$ac_c_werror_flag" ||
10066 test ! -s conftest.err
10067 } && test -s conftest$ac_exeext && {
10068 test "$cross_compiling" = yes ||
10069 $as_test_x conftest$ac_exeext
10070 }; then
a.rottmann84e63352003-03-24 09:42:16 +000010071 ac_cv_lib_dld_dld_link=yes
10072else
drh710658c2012-01-16 13:00:05 +000010073 $as_echo "$as_me: failed program was:" >&5
10074sed 's/^/| /' conftest.$ac_ext >&5
10075
10076 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +000010077fi
drh710658c2012-01-16 13:00:05 +000010078
10079rm -rf conftest.dSYM
10080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10081 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000010082LIBS=$ac_check_lib_save_LIBS
10083fi
drh710658c2012-01-16 13:00:05 +000010084{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
drh8b727472009-01-19 18:18:40 +000010085$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drh710658c2012-01-16 13:00:05 +000010086if test $ac_cv_lib_dld_dld_link = yes; then
mlcreech636a9952008-05-05 22:52:56 +000010087 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +000010088fi
10089
drh71eb93e2001-09-28 01:34:43 +000010090
10091fi
10092
drh71eb93e2001-09-28 01:34:43 +000010093
10094fi
10095
a.rottmann84e63352003-03-24 09:42:16 +000010096
10097fi
10098
10099
10100fi
10101
10102
drh71eb93e2001-09-28 01:34:43 +000010103fi
10104
10105 ;;
10106 esac
10107
10108 if test "x$lt_cv_dlopen" != xno; then
10109 enable_dlopen=yes
10110 else
10111 enable_dlopen=no
10112 fi
10113
10114 case $lt_cv_dlopen in
10115 dlopen)
10116 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +000010117 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +000010118
10119 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +000010120 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +000010121
10122 save_LIBS="$LIBS"
10123 LIBS="$lt_cv_dlopen_libs $LIBS"
10124
drh710658c2012-01-16 13:00:05 +000010125 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +000010126$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drh710658c2012-01-16 13:00:05 +000010127if test "${lt_cv_dlopen_self+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010128 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010129else
10130 if test "$cross_compiling" = yes; then :
10131 lt_cv_dlopen_self=cross
10132else
a.rottmann9bc8b932004-02-29 15:18:31 +000010133 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +000010134 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +000010135 cat > conftest.$ac_ext <<_LT_EOF
drh05c7e0b2015-01-10 14:27:17 +000010136#line 10136 "configure"
drh71eb93e2001-09-28 01:34:43 +000010137#include "confdefs.h"
10138
10139#if HAVE_DLFCN_H
10140#include <dlfcn.h>
10141#endif
10142
10143#include <stdio.h>
10144
10145#ifdef RTLD_GLOBAL
10146# define LT_DLGLOBAL RTLD_GLOBAL
10147#else
10148# ifdef DL_GLOBAL
10149# define LT_DLGLOBAL DL_GLOBAL
10150# else
10151# define LT_DLGLOBAL 0
10152# endif
10153#endif
10154
10155/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10156 find out it does not work in some platform. */
10157#ifndef LT_DLLAZY_OR_NOW
10158# ifdef RTLD_LAZY
10159# define LT_DLLAZY_OR_NOW RTLD_LAZY
10160# else
10161# ifdef DL_LAZY
10162# define LT_DLLAZY_OR_NOW DL_LAZY
10163# else
10164# ifdef RTLD_NOW
10165# define LT_DLLAZY_OR_NOW RTLD_NOW
10166# else
10167# ifdef DL_NOW
10168# define LT_DLLAZY_OR_NOW DL_NOW
10169# else
10170# define LT_DLLAZY_OR_NOW 0
10171# endif
10172# endif
10173# endif
10174# endif
10175#endif
10176
drh71eb93e2001-09-28 01:34:43 +000010177void fnord() { int i=42;}
10178int main ()
10179{
10180 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10181 int status = $lt_dlunknown;
10182
10183 if (self)
10184 {
10185 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10186 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10187 /* dlclose (self); */
10188 }
vapier7f19c022007-02-17 14:46:31 +000010189 else
10190 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +000010191
vapier6acb2cf2009-01-28 04:46:28 +000010192 return status;
drh71eb93e2001-09-28 01:34:43 +000010193}
mlcreech636a9952008-05-05 22:52:56 +000010194_LT_EOF
drh710658c2012-01-16 13:00:05 +000010195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +000010196 (eval $ac_link) 2>&5
10197 ac_status=$?
drh710658c2012-01-16 13:00:05 +000010198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010200 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000010201 lt_status=$?
10202 case x$lt_status in
10203 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10204 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +000010205 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +000010206 esac
10207 else :
10208 # compilation failed
10209 lt_cv_dlopen_self=no
10210 fi
10211fi
10212rm -fr conftest*
10213
a.rottmann84e63352003-03-24 09:42:16 +000010214
drh71eb93e2001-09-28 01:34:43 +000010215fi
drh710658c2012-01-16 13:00:05 +000010216{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
drh8b727472009-01-19 18:18:40 +000010217$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010218
10219 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +000010220 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drh710658c2012-01-16 13:00:05 +000010221 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +000010222$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drh710658c2012-01-16 13:00:05 +000010223if test "${lt_cv_dlopen_self_static+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010224 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010225else
10226 if test "$cross_compiling" = yes; then :
10227 lt_cv_dlopen_self_static=cross
10228else
a.rottmann9bc8b932004-02-29 15:18:31 +000010229 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +000010230 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +000010231 cat > conftest.$ac_ext <<_LT_EOF
drh05c7e0b2015-01-10 14:27:17 +000010232#line 10232 "configure"
drh71eb93e2001-09-28 01:34:43 +000010233#include "confdefs.h"
10234
10235#if HAVE_DLFCN_H
10236#include <dlfcn.h>
10237#endif
10238
10239#include <stdio.h>
10240
10241#ifdef RTLD_GLOBAL
10242# define LT_DLGLOBAL RTLD_GLOBAL
10243#else
10244# ifdef DL_GLOBAL
10245# define LT_DLGLOBAL DL_GLOBAL
10246# else
10247# define LT_DLGLOBAL 0
10248# endif
10249#endif
10250
10251/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10252 find out it does not work in some platform. */
10253#ifndef LT_DLLAZY_OR_NOW
10254# ifdef RTLD_LAZY
10255# define LT_DLLAZY_OR_NOW RTLD_LAZY
10256# else
10257# ifdef DL_LAZY
10258# define LT_DLLAZY_OR_NOW DL_LAZY
10259# else
10260# ifdef RTLD_NOW
10261# define LT_DLLAZY_OR_NOW RTLD_NOW
10262# else
10263# ifdef DL_NOW
10264# define LT_DLLAZY_OR_NOW DL_NOW
10265# else
10266# define LT_DLLAZY_OR_NOW 0
10267# endif
10268# endif
10269# endif
10270# endif
10271#endif
10272
drh71eb93e2001-09-28 01:34:43 +000010273void fnord() { int i=42;}
10274int main ()
10275{
10276 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10277 int status = $lt_dlunknown;
10278
10279 if (self)
10280 {
10281 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10282 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10283 /* dlclose (self); */
10284 }
vapier7f19c022007-02-17 14:46:31 +000010285 else
10286 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +000010287
vapier6acb2cf2009-01-28 04:46:28 +000010288 return status;
drh71eb93e2001-09-28 01:34:43 +000010289}
mlcreech636a9952008-05-05 22:52:56 +000010290_LT_EOF
drh710658c2012-01-16 13:00:05 +000010291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +000010292 (eval $ac_link) 2>&5
10293 ac_status=$?
drh710658c2012-01-16 13:00:05 +000010294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010296 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000010297 lt_status=$?
10298 case x$lt_status in
10299 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10300 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +000010301 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +000010302 esac
10303 else :
10304 # compilation failed
10305 lt_cv_dlopen_self_static=no
10306 fi
10307fi
10308rm -fr conftest*
10309
a.rottmann84e63352003-03-24 09:42:16 +000010310
drh71eb93e2001-09-28 01:34:43 +000010311fi
drh710658c2012-01-16 13:00:05 +000010312{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
drh8b727472009-01-19 18:18:40 +000010313$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010314 fi
10315
10316 CPPFLAGS="$save_CPPFLAGS"
10317 LDFLAGS="$save_LDFLAGS"
10318 LIBS="$save_LIBS"
10319 ;;
10320 esac
10321
10322 case $lt_cv_dlopen_self in
10323 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10324 *) enable_dlopen_self=unknown ;;
10325 esac
10326
10327 case $lt_cv_dlopen_self_static in
10328 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10329 *) enable_dlopen_self_static=unknown ;;
10330 esac
10331fi
10332
drh71eb93e2001-09-28 01:34:43 +000010333
drh71eb93e2001-09-28 01:34:43 +000010334
a.rottmann9bc8b932004-02-29 15:18:31 +000010335
a.rottmann9bc8b932004-02-29 15:18:31 +000010336
mlcreech636a9952008-05-05 22:52:56 +000010337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349striplib=
10350old_striplib=
drh710658c2012-01-16 13:00:05 +000010351{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
drh8b727472009-01-19 18:18:40 +000010352$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010353if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10354 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10355 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drh710658c2012-01-16 13:00:05 +000010356 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010357$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010358else
10359# FIXME - insert some real tests, host_os isn't really good enough
10360 case $host_os in
10361 darwin*)
10362 if test -n "$STRIP" ; then
10363 striplib="$STRIP -x"
10364 old_striplib="$STRIP -S"
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 +000010367 else
drh710658c2012-01-16 13:00:05 +000010368 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010369$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010370 fi
a.rottmann84e63352003-03-24 09:42:16 +000010371 ;;
mlcreech636a9952008-05-05 22:52:56 +000010372 *)
drh710658c2012-01-16 13:00:05 +000010373 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010374$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010375 ;;
10376 esac
mlcreech636a9952008-05-05 22:52:56 +000010377fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010378
a.rottmann9bc8b932004-02-29 15:18:31 +000010379
drh71eb93e2001-09-28 01:34:43 +000010380
drh71eb93e2001-09-28 01:34:43 +000010381
a.rottmann84e63352003-03-24 09:42:16 +000010382
drh71eb93e2001-09-28 01:34:43 +000010383
drh71eb93e2001-09-28 01:34:43 +000010384
a.rottmann9bc8b932004-02-29 15:18:31 +000010385
drh71eb93e2001-09-28 01:34:43 +000010386
drh71eb93e2001-09-28 01:34:43 +000010387
drh71eb93e2001-09-28 01:34:43 +000010388
drh71eb93e2001-09-28 01:34:43 +000010389
mlcreech636a9952008-05-05 22:52:56 +000010390 # Report which library types will actually be built
drh710658c2012-01-16 13:00:05 +000010391 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +000010392$as_echo_n "checking if libtool supports shared libraries... " >&6; }
drh710658c2012-01-16 13:00:05 +000010393 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
drh8b727472009-01-19 18:18:40 +000010394$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010395
drh710658c2012-01-16 13:00:05 +000010396 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
drh8b727472009-01-19 18:18:40 +000010397$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010398 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010399
mlcreech636a9952008-05-05 22:52:56 +000010400 # On AIX, shared libraries and static libraries use the same namespace, and
10401 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +000010402 case $host_os in
10403 aix3*)
vapier7f19c022007-02-17 14:46:31 +000010404 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +000010405 if test -n "$RANLIB"; then
10406 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10407 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +000010408 fi
10409 ;;
10410
mlcreech636a9952008-05-05 22:52:56 +000010411 aix[4-9]*)
10412 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10413 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010414 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010415 ;;
10416 esac
drh710658c2012-01-16 13:00:05 +000010417 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
drh8b727472009-01-19 18:18:40 +000010418$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010419
drh710658c2012-01-16 13:00:05 +000010420 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
drh8b727472009-01-19 18:18:40 +000010421$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010422 # Make sure either enable_shared or enable_static is yes.
10423 test "$enable_shared" = yes || enable_static=yes
drh710658c2012-01-16 13:00:05 +000010424 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
drh8b727472009-01-19 18:18:40 +000010425$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +000010426
a.rottmann9bc8b932004-02-29 15:18:31 +000010427
a.rottmann9bc8b932004-02-29 15:18:31 +000010428
a.rottmann9bc8b932004-02-29 15:18:31 +000010429
vapier7f19c022007-02-17 14:46:31 +000010430fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010431ac_ext=c
10432ac_cpp='$CPP $CPPFLAGS'
10433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10435ac_compiler_gnu=$ac_cv_c_compiler_gnu
10436
10437CC="$lt_save_CC"
10438
a.rottmann9bc8b932004-02-29 15:18:31 +000010439
a.rottmann9bc8b932004-02-29 15:18:31 +000010440
10441
a.rottmann9bc8b932004-02-29 15:18:31 +000010442
a.rottmann9bc8b932004-02-29 15:18:31 +000010443
a.rottmann9bc8b932004-02-29 15:18:31 +000010444
a.rottmann9bc8b932004-02-29 15:18:31 +000010445
a.rottmann9bc8b932004-02-29 15:18:31 +000010446
a.rottmann9bc8b932004-02-29 15:18:31 +000010447
vapier7f19c022007-02-17 14:46:31 +000010448
a.rottmann9bc8b932004-02-29 15:18:31 +000010449
10450
drh8b727472009-01-19 18:18:40 +000010451 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +000010452
vapier7f19c022007-02-17 14:46:31 +000010453
10454
vapier7f19c022007-02-17 14:46:31 +000010455
mlcreech636a9952008-05-05 22:52:56 +000010456# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +000010457
10458
drh71eb93e2001-09-28 01:34:43 +000010459# Find a good install program. We prefer a C program (faster),
10460# so one script is as good as another. But avoid the broken or
10461# incompatible versions:
10462# SysV /etc/install, /usr/sbin/install
10463# SunOS /usr/etc/install
10464# IRIX /sbin/install
10465# AIX /bin/install
10466# AmigaOS /C/install, which installs bootblocks on floppy discs
10467# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10468# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10469# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +000010470# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +000010471# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +000010472# Reject install programs that cannot install multiple files.
drh710658c2012-01-16 13:00:05 +000010473{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
drh8b727472009-01-19 18:18:40 +000010474$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000010475if test -z "$INSTALL"; then
drh710658c2012-01-16 13:00:05 +000010476if test "${ac_cv_path_install+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010477 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010478else
a.rottmann84e63352003-03-24 09:42:16 +000010479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10480for as_dir in $PATH
10481do
10482 IFS=$as_save_IFS
10483 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +000010484 # Account for people who put trailing slashes in PATH elements.
10485case $as_dir/ in
10486 ./ | .// | /cC/* | \
a.rottmann84e63352003-03-24 09:42:16 +000010487 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
drh710658c2012-01-16 13:00:05 +000010488 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +000010489 /usr/ucb/* ) ;;
10490 *)
10491 # OSF1 and SCO ODT 3.0 have their own names for install.
10492 # Don't use installbsd from OSF since it installs stuff as root
10493 # by default.
10494 for ac_prog in ginstall scoinst install; do
10495 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000010496 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 +000010497 if test $ac_prog = install &&
10498 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10499 # AIX install. It has an incompatible calling convention.
10500 :
10501 elif test $ac_prog = install &&
10502 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10503 # program-specific install script used by HP pwplus--don't use.
10504 :
10505 else
drh8b727472009-01-19 18:18:40 +000010506 rm -rf conftest.one conftest.two conftest.dir
10507 echo one > conftest.one
10508 echo two > conftest.two
10509 mkdir conftest.dir
10510 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10511 test -s conftest.one && test -s conftest.two &&
10512 test -s conftest.dir/conftest.one &&
10513 test -s conftest.dir/conftest.two
10514 then
10515 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10516 break 3
10517 fi
a.rottmann964dbb12004-02-26 19:47:42 +000010518 fi
10519 fi
drh71eb93e2001-09-28 01:34:43 +000010520 done
a.rottmann84e63352003-03-24 09:42:16 +000010521 done
10522 ;;
10523esac
a.rottmann84e63352003-03-24 09:42:16 +000010524
drh710658c2012-01-16 13:00:05 +000010525done
drh8b727472009-01-19 18:18:40 +000010526IFS=$as_save_IFS
10527
10528rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +000010529
10530fi
10531 if test "${ac_cv_path_install+set}" = set; then
10532 INSTALL=$ac_cv_path_install
10533 else
drh8b727472009-01-19 18:18:40 +000010534 # As a last resort, use the slow shell script. Don't cache a
10535 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +000010536 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +000010537 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +000010538 INSTALL=$ac_install_sh
10539 fi
10540fi
drh710658c2012-01-16 13:00:05 +000010541{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
drh8b727472009-01-19 18:18:40 +000010542$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010543
10544# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10545# It thinks the first close brace ends the variable substitution.
10546test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10547
10548test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10549
10550test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10551
drhf1878b42006-01-23 18:06:52 +000010552for ac_prog in gawk mawk nawk awk
10553do
10554 # Extract the first word of "$ac_prog", so it can be a program name with args.
10555set dummy $ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +000010556{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010557$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +000010558if test "${ac_cv_prog_AWK+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010559 $as_echo_n "(cached) " >&6
drhf1878b42006-01-23 18:06:52 +000010560else
10561 if test -n "$AWK"; then
10562 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10563else
10564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10565for as_dir in $PATH
10566do
10567 IFS=$as_save_IFS
10568 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +000010569 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000010570 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 +000010571 ac_cv_prog_AWK="$ac_prog"
drh710658c2012-01-16 13:00:05 +000010572 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
drhf1878b42006-01-23 18:06:52 +000010573 break 2
10574 fi
10575done
drh710658c2012-01-16 13:00:05 +000010576done
drh8b727472009-01-19 18:18:40 +000010577IFS=$as_save_IFS
drhf1878b42006-01-23 18:06:52 +000010578
10579fi
10580fi
10581AWK=$ac_cv_prog_AWK
10582if test -n "$AWK"; then
drh710658c2012-01-16 13:00:05 +000010583 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
drh8b727472009-01-19 18:18:40 +000010584$as_echo "$AWK" >&6; }
drhf1878b42006-01-23 18:06:52 +000010585else
drh710658c2012-01-16 13:00:05 +000010586 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010587$as_echo "no" >&6; }
drhf1878b42006-01-23 18:06:52 +000010588fi
10589
drh8b727472009-01-19 18:18:40 +000010590
drhf1878b42006-01-23 18:06:52 +000010591 test -n "$AWK" && break
10592done
10593
a.rottmann84e63352003-03-24 09:42:16 +000010594
drh75897232000-05-29 14:26:00 +000010595#########
mlcreech636a9952008-05-05 22:52:56 +000010596# Enable large file support (if special flags are necessary)
10597#
drh8b727472009-01-19 18:18:40 +000010598# Check whether --enable-largefile was given.
drh710658c2012-01-16 13:00:05 +000010599if test "${enable_largefile+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010600 enableval=$enable_largefile;
10601fi
mlcreech636a9952008-05-05 22:52:56 +000010602
10603if test "$enable_largefile" != no; then
10604
drh710658c2012-01-16 13:00:05 +000010605 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010606$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
drh710658c2012-01-16 13:00:05 +000010607if test "${ac_cv_sys_largefile_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010608 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000010609else
mlcreech636a9952008-05-05 22:52:56 +000010610 ac_cv_sys_largefile_CC=no
10611 if test "$GCC" != yes; then
10612 ac_save_CC=$CC
10613 while :; do
drh8b727472009-01-19 18:18:40 +000010614 # IRIX 6.2 and later do not support large files by default,
10615 # so use the C compiler's -n32 option if that helps.
drh710658c2012-01-16 13:00:05 +000010616 cat >conftest.$ac_ext <<_ACEOF
10617/* confdefs.h. */
10618_ACEOF
10619cat confdefs.h >>conftest.$ac_ext
10620cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000010621/* end confdefs.h. */
10622#include <sys/types.h>
10623 /* Check that off_t can represent 2**63 - 1 correctly.
10624 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10625 since some C++ compilers masquerading as C compilers
10626 incorrectly reject 9223372036854775807. */
10627#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10628 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10629 && LARGE_OFF_T % 2147483647 == 1)
10630 ? 1 : -1];
10631int
10632main ()
10633{
10634
10635 ;
10636 return 0;
10637}
10638_ACEOF
drh710658c2012-01-16 13:00:05 +000010639 rm -f conftest.$ac_objext
10640if { (ac_try="$ac_compile"
10641case "(($ac_try" in
10642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643 *) ac_try_echo=$ac_try;;
10644esac
10645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10646$as_echo "$ac_try_echo") >&5
10647 (eval "$ac_compile") 2>conftest.er1
10648 ac_status=$?
10649 grep -v '^ *+' conftest.er1 >conftest.err
10650 rm -f conftest.er1
10651 cat conftest.err >&5
10652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } && {
10654 test -z "$ac_c_werror_flag" ||
10655 test ! -s conftest.err
10656 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010657 break
drh710658c2012-01-16 13:00:05 +000010658else
10659 $as_echo "$as_me: failed program was:" >&5
10660sed 's/^/| /' conftest.$ac_ext >&5
10661
10662
mlcreech636a9952008-05-05 22:52:56 +000010663fi
drh710658c2012-01-16 13:00:05 +000010664
drh8b727472009-01-19 18:18:40 +000010665rm -f core conftest.err conftest.$ac_objext
10666 CC="$CC -n32"
drh710658c2012-01-16 13:00:05 +000010667 rm -f conftest.$ac_objext
10668if { (ac_try="$ac_compile"
10669case "(($ac_try" in
10670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671 *) ac_try_echo=$ac_try;;
10672esac
10673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10674$as_echo "$ac_try_echo") >&5
10675 (eval "$ac_compile") 2>conftest.er1
10676 ac_status=$?
10677 grep -v '^ *+' conftest.er1 >conftest.err
10678 rm -f conftest.er1
10679 cat conftest.err >&5
10680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); } && {
10682 test -z "$ac_c_werror_flag" ||
10683 test ! -s conftest.err
10684 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010685 ac_cv_sys_largefile_CC=' -n32'; break
drh710658c2012-01-16 13:00:05 +000010686else
10687 $as_echo "$as_me: failed program was:" >&5
10688sed 's/^/| /' conftest.$ac_ext >&5
10689
10690
mlcreech636a9952008-05-05 22:52:56 +000010691fi
drh710658c2012-01-16 13:00:05 +000010692
drh8b727472009-01-19 18:18:40 +000010693rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010694 break
10695 done
10696 CC=$ac_save_CC
10697 rm -f conftest.$ac_ext
10698 fi
10699fi
drh710658c2012-01-16 13:00:05 +000010700{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
drh8b727472009-01-19 18:18:40 +000010701$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010702 if test "$ac_cv_sys_largefile_CC" != no; then
10703 CC=$CC$ac_cv_sys_largefile_CC
10704 fi
10705
drh710658c2012-01-16 13:00:05 +000010706 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010707$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
drh710658c2012-01-16 13:00:05 +000010708if test "${ac_cv_sys_file_offset_bits+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010709 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010710else
10711 while :; do
drh710658c2012-01-16 13:00:05 +000010712 cat >conftest.$ac_ext <<_ACEOF
10713/* confdefs.h. */
10714_ACEOF
10715cat confdefs.h >>conftest.$ac_ext
10716cat >>conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000010717/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010718#include <sys/types.h>
10719 /* Check that off_t can represent 2**63 - 1 correctly.
10720 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10721 since some C++ compilers masquerading as C compilers
10722 incorrectly reject 9223372036854775807. */
10723#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10724 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10725 && LARGE_OFF_T % 2147483647 == 1)
10726 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010727int
10728main ()
10729{
mlcreech636a9952008-05-05 22:52:56 +000010730
mlcreechb87057f2008-03-06 07:19:20 +000010731 ;
10732 return 0;
10733}
10734_ACEOF
drh710658c2012-01-16 13:00:05 +000010735rm -f conftest.$ac_objext
10736if { (ac_try="$ac_compile"
10737case "(($ac_try" in
10738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739 *) ac_try_echo=$ac_try;;
10740esac
10741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10742$as_echo "$ac_try_echo") >&5
10743 (eval "$ac_compile") 2>conftest.er1
10744 ac_status=$?
10745 grep -v '^ *+' conftest.er1 >conftest.err
10746 rm -f conftest.er1
10747 cat conftest.err >&5
10748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } && {
10750 test -z "$ac_c_werror_flag" ||
10751 test ! -s conftest.err
10752 } && test -s conftest.$ac_objext; then
drh8b727472009-01-19 18:18:40 +000010753 ac_cv_sys_file_offset_bits=no; break
drh710658c2012-01-16 13:00:05 +000010754else
10755 $as_echo "$as_me: failed program was:" >&5
10756sed 's/^/| /' conftest.$ac_ext >&5
10757
10758
mlcreech636a9952008-05-05 22:52:56 +000010759fi
drh710658c2012-01-16 13:00:05 +000010760
drh8b727472009-01-19 18:18:40 +000010761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +000010762 cat >conftest.$ac_ext <<_ACEOF
10763/* confdefs.h. */
10764_ACEOF
10765cat confdefs.h >>conftest.$ac_ext
10766cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000010767/* end confdefs.h. */
10768#define _FILE_OFFSET_BITS 64
10769#include <sys/types.h>
10770 /* Check that off_t can represent 2**63 - 1 correctly.
10771 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10772 since some C++ compilers masquerading as C compilers
10773 incorrectly reject 9223372036854775807. */
10774#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10776 && LARGE_OFF_T % 2147483647 == 1)
10777 ? 1 : -1];
10778int
10779main ()
10780{
10781
10782 ;
10783 return 0;
10784}
10785_ACEOF
drh710658c2012-01-16 13:00:05 +000010786rm -f conftest.$ac_objext
10787if { (ac_try="$ac_compile"
10788case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10791esac
10792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10793$as_echo "$ac_try_echo") >&5
10794 (eval "$ac_compile") 2>conftest.er1
10795 ac_status=$?
10796 grep -v '^ *+' conftest.er1 >conftest.err
10797 rm -f conftest.er1
10798 cat conftest.err >&5
10799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } && {
10801 test -z "$ac_c_werror_flag" ||
10802 test ! -s conftest.err
10803 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010804 ac_cv_sys_file_offset_bits=64; break
drh710658c2012-01-16 13:00:05 +000010805else
10806 $as_echo "$as_me: failed program was:" >&5
10807sed 's/^/| /' conftest.$ac_ext >&5
10808
10809
mlcreech636a9952008-05-05 22:52:56 +000010810fi
drh710658c2012-01-16 13:00:05 +000010811
drh8b727472009-01-19 18:18:40 +000010812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10813 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010814 break
10815done
10816fi
drh710658c2012-01-16 13:00:05 +000010817{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
drh8b727472009-01-19 18:18:40 +000010818$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10819case $ac_cv_sys_file_offset_bits in #(
10820 no | unknown) ;;
10821 *)
mlcreech636a9952008-05-05 22:52:56 +000010822cat >>confdefs.h <<_ACEOF
10823#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10824_ACEOF
drh8b727472009-01-19 18:18:40 +000010825;;
10826esac
10827rm -rf conftest*
10828 if test $ac_cv_sys_file_offset_bits = unknown; then
drh710658c2012-01-16 13:00:05 +000010829 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010830$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
drh710658c2012-01-16 13:00:05 +000010831if test "${ac_cv_sys_large_files+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010832 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010833else
10834 while :; do
drh710658c2012-01-16 13:00:05 +000010835 cat >conftest.$ac_ext <<_ACEOF
10836/* confdefs.h. */
10837_ACEOF
10838cat confdefs.h >>conftest.$ac_ext
10839cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000010840/* end confdefs.h. */
10841#include <sys/types.h>
10842 /* Check that off_t can represent 2**63 - 1 correctly.
10843 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10844 since some C++ compilers masquerading as C compilers
10845 incorrectly reject 9223372036854775807. */
10846#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10847 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10848 && LARGE_OFF_T % 2147483647 == 1)
10849 ? 1 : -1];
10850int
10851main ()
10852{
10853
10854 ;
10855 return 0;
10856}
10857_ACEOF
drh710658c2012-01-16 13:00:05 +000010858rm -f conftest.$ac_objext
10859if { (ac_try="$ac_compile"
10860case "(($ac_try" in
10861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10862 *) ac_try_echo=$ac_try;;
10863esac
10864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10865$as_echo "$ac_try_echo") >&5
10866 (eval "$ac_compile") 2>conftest.er1
10867 ac_status=$?
10868 grep -v '^ *+' conftest.er1 >conftest.err
10869 rm -f conftest.er1
10870 cat conftest.err >&5
10871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } && {
10873 test -z "$ac_c_werror_flag" ||
10874 test ! -s conftest.err
10875 } && test -s conftest.$ac_objext; then
drh8b727472009-01-19 18:18:40 +000010876 ac_cv_sys_large_files=no; break
drh710658c2012-01-16 13:00:05 +000010877else
10878 $as_echo "$as_me: failed program was:" >&5
10879sed 's/^/| /' conftest.$ac_ext >&5
10880
10881
mlcreech636a9952008-05-05 22:52:56 +000010882fi
drh710658c2012-01-16 13:00:05 +000010883
drh8b727472009-01-19 18:18:40 +000010884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +000010885 cat >conftest.$ac_ext <<_ACEOF
10886/* confdefs.h. */
10887_ACEOF
10888cat confdefs.h >>conftest.$ac_ext
10889cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000010890/* end confdefs.h. */
10891#define _LARGE_FILES 1
10892#include <sys/types.h>
10893 /* Check that off_t can represent 2**63 - 1 correctly.
10894 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10895 since some C++ compilers masquerading as C compilers
10896 incorrectly reject 9223372036854775807. */
10897#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10898 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10899 && LARGE_OFF_T % 2147483647 == 1)
10900 ? 1 : -1];
10901int
10902main ()
10903{
10904
10905 ;
10906 return 0;
10907}
10908_ACEOF
drh710658c2012-01-16 13:00:05 +000010909rm -f conftest.$ac_objext
10910if { (ac_try="$ac_compile"
10911case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10914esac
10915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10916$as_echo "$ac_try_echo") >&5
10917 (eval "$ac_compile") 2>conftest.er1
10918 ac_status=$?
10919 grep -v '^ *+' conftest.er1 >conftest.err
10920 rm -f conftest.er1
10921 cat conftest.err >&5
10922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); } && {
10924 test -z "$ac_c_werror_flag" ||
10925 test ! -s conftest.err
10926 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010927 ac_cv_sys_large_files=1; break
drh710658c2012-01-16 13:00:05 +000010928else
10929 $as_echo "$as_me: failed program was:" >&5
10930sed 's/^/| /' conftest.$ac_ext >&5
10931
10932
mlcreech636a9952008-05-05 22:52:56 +000010933fi
drh710658c2012-01-16 13:00:05 +000010934
drh8b727472009-01-19 18:18:40 +000010935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10936 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010937 break
10938done
10939fi
drh710658c2012-01-16 13:00:05 +000010940{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
drh8b727472009-01-19 18:18:40 +000010941$as_echo "$ac_cv_sys_large_files" >&6; }
10942case $ac_cv_sys_large_files in #(
10943 no | unknown) ;;
10944 *)
mlcreech636a9952008-05-05 22:52:56 +000010945cat >>confdefs.h <<_ACEOF
10946#define _LARGE_FILES $ac_cv_sys_large_files
10947_ACEOF
drh8b727472009-01-19 18:18:40 +000010948;;
10949esac
10950rm -rf conftest*
10951 fi
mlcreech636a9952008-05-05 22:52:56 +000010952fi
10953
10954
10955#########
10956# Check for needed/wanted data types
drh710658c2012-01-16 13:00:05 +000010957{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
10958$as_echo_n "checking for int8_t... " >&6; }
10959if test "${ac_cv_type_int8_t+set}" = set; then
10960 $as_echo_n "(cached) " >&6
10961else
10962 ac_cv_type_int8_t=no
10963cat >conftest.$ac_ext <<_ACEOF
10964/* confdefs.h. */
10965_ACEOF
10966cat confdefs.h >>conftest.$ac_ext
10967cat >>conftest.$ac_ext <<_ACEOF
10968/* end confdefs.h. */
10969$ac_includes_default
10970int
10971main ()
10972{
10973if (sizeof (int8_t))
10974 return 0;
10975 ;
10976 return 0;
10977}
10978_ACEOF
10979rm -f conftest.$ac_objext
10980if { (ac_try="$ac_compile"
10981case "(($ac_try" in
10982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10984esac
10985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10986$as_echo "$ac_try_echo") >&5
10987 (eval "$ac_compile") 2>conftest.er1
10988 ac_status=$?
10989 grep -v '^ *+' conftest.er1 >conftest.err
10990 rm -f conftest.er1
10991 cat conftest.err >&5
10992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } && {
10994 test -z "$ac_c_werror_flag" ||
10995 test ! -s conftest.err
10996 } && test -s conftest.$ac_objext; then
10997 cat >conftest.$ac_ext <<_ACEOF
10998/* confdefs.h. */
10999_ACEOF
11000cat confdefs.h >>conftest.$ac_ext
11001cat >>conftest.$ac_ext <<_ACEOF
11002/* end confdefs.h. */
11003$ac_includes_default
11004int
11005main ()
11006{
11007if (sizeof ((int8_t)))
11008 return 0;
11009 ;
11010 return 0;
11011}
11012_ACEOF
11013rm -f conftest.$ac_objext
11014if { (ac_try="$ac_compile"
11015case "(($ac_try" in
11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017 *) ac_try_echo=$ac_try;;
11018esac
11019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11020$as_echo "$ac_try_echo") >&5
11021 (eval "$ac_compile") 2>conftest.er1
11022 ac_status=$?
11023 grep -v '^ *+' conftest.er1 >conftest.err
11024 rm -f conftest.er1
11025 cat conftest.err >&5
11026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); } && {
11028 test -z "$ac_c_werror_flag" ||
11029 test ! -s conftest.err
11030 } && test -s conftest.$ac_objext; then
11031 :
11032else
11033 $as_echo "$as_me: failed program was:" >&5
11034sed 's/^/| /' conftest.$ac_ext >&5
11035
11036 ac_cv_type_int8_t=yes
11037fi
11038
11039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11040else
11041 $as_echo "$as_me: failed program was:" >&5
11042sed 's/^/| /' conftest.$ac_ext >&5
11043
11044
11045fi
11046
11047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11048fi
11049{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11050$as_echo "$ac_cv_type_int8_t" >&6; }
11051if test $ac_cv_type_int8_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011052
11053cat >>confdefs.h <<_ACEOF
11054#define HAVE_INT8_T 1
11055_ACEOF
11056
11057
11058fi
drh710658c2012-01-16 13:00:05 +000011059{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
11060$as_echo_n "checking for int16_t... " >&6; }
11061if test "${ac_cv_type_int16_t+set}" = set; then
11062 $as_echo_n "(cached) " >&6
11063else
11064 ac_cv_type_int16_t=no
11065cat >conftest.$ac_ext <<_ACEOF
11066/* confdefs.h. */
11067_ACEOF
11068cat confdefs.h >>conftest.$ac_ext
11069cat >>conftest.$ac_ext <<_ACEOF
11070/* end confdefs.h. */
11071$ac_includes_default
11072int
11073main ()
11074{
11075if (sizeof (int16_t))
11076 return 0;
11077 ;
11078 return 0;
11079}
11080_ACEOF
11081rm -f conftest.$ac_objext
11082if { (ac_try="$ac_compile"
11083case "(($ac_try" in
11084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085 *) ac_try_echo=$ac_try;;
11086esac
11087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11088$as_echo "$ac_try_echo") >&5
11089 (eval "$ac_compile") 2>conftest.er1
11090 ac_status=$?
11091 grep -v '^ *+' conftest.er1 >conftest.err
11092 rm -f conftest.er1
11093 cat conftest.err >&5
11094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } && {
11096 test -z "$ac_c_werror_flag" ||
11097 test ! -s conftest.err
11098 } && test -s conftest.$ac_objext; then
11099 cat >conftest.$ac_ext <<_ACEOF
11100/* confdefs.h. */
11101_ACEOF
11102cat confdefs.h >>conftest.$ac_ext
11103cat >>conftest.$ac_ext <<_ACEOF
11104/* end confdefs.h. */
11105$ac_includes_default
11106int
11107main ()
11108{
11109if (sizeof ((int16_t)))
11110 return 0;
11111 ;
11112 return 0;
11113}
11114_ACEOF
11115rm -f conftest.$ac_objext
11116if { (ac_try="$ac_compile"
11117case "(($ac_try" in
11118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11119 *) ac_try_echo=$ac_try;;
11120esac
11121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11122$as_echo "$ac_try_echo") >&5
11123 (eval "$ac_compile") 2>conftest.er1
11124 ac_status=$?
11125 grep -v '^ *+' conftest.er1 >conftest.err
11126 rm -f conftest.er1
11127 cat conftest.err >&5
11128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } && {
11130 test -z "$ac_c_werror_flag" ||
11131 test ! -s conftest.err
11132 } && test -s conftest.$ac_objext; then
11133 :
11134else
11135 $as_echo "$as_me: failed program was:" >&5
11136sed 's/^/| /' conftest.$ac_ext >&5
11137
11138 ac_cv_type_int16_t=yes
11139fi
11140
11141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11142else
11143 $as_echo "$as_me: failed program was:" >&5
11144sed 's/^/| /' conftest.$ac_ext >&5
11145
11146
11147fi
11148
11149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11150fi
11151{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11152$as_echo "$ac_cv_type_int16_t" >&6; }
11153if test $ac_cv_type_int16_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011154
11155cat >>confdefs.h <<_ACEOF
11156#define HAVE_INT16_T 1
11157_ACEOF
11158
11159
11160fi
drh710658c2012-01-16 13:00:05 +000011161{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
11162$as_echo_n "checking for int32_t... " >&6; }
11163if test "${ac_cv_type_int32_t+set}" = set; then
11164 $as_echo_n "(cached) " >&6
11165else
11166 ac_cv_type_int32_t=no
11167cat >conftest.$ac_ext <<_ACEOF
11168/* confdefs.h. */
11169_ACEOF
11170cat confdefs.h >>conftest.$ac_ext
11171cat >>conftest.$ac_ext <<_ACEOF
11172/* end confdefs.h. */
11173$ac_includes_default
11174int
11175main ()
11176{
11177if (sizeof (int32_t))
11178 return 0;
11179 ;
11180 return 0;
11181}
11182_ACEOF
11183rm -f conftest.$ac_objext
11184if { (ac_try="$ac_compile"
11185case "(($ac_try" in
11186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11187 *) ac_try_echo=$ac_try;;
11188esac
11189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11190$as_echo "$ac_try_echo") >&5
11191 (eval "$ac_compile") 2>conftest.er1
11192 ac_status=$?
11193 grep -v '^ *+' conftest.er1 >conftest.err
11194 rm -f conftest.er1
11195 cat conftest.err >&5
11196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } && {
11198 test -z "$ac_c_werror_flag" ||
11199 test ! -s conftest.err
11200 } && test -s conftest.$ac_objext; then
11201 cat >conftest.$ac_ext <<_ACEOF
11202/* confdefs.h. */
11203_ACEOF
11204cat confdefs.h >>conftest.$ac_ext
11205cat >>conftest.$ac_ext <<_ACEOF
11206/* end confdefs.h. */
11207$ac_includes_default
11208int
11209main ()
11210{
11211if (sizeof ((int32_t)))
11212 return 0;
11213 ;
11214 return 0;
11215}
11216_ACEOF
11217rm -f conftest.$ac_objext
11218if { (ac_try="$ac_compile"
11219case "(($ac_try" in
11220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221 *) ac_try_echo=$ac_try;;
11222esac
11223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11224$as_echo "$ac_try_echo") >&5
11225 (eval "$ac_compile") 2>conftest.er1
11226 ac_status=$?
11227 grep -v '^ *+' conftest.er1 >conftest.err
11228 rm -f conftest.er1
11229 cat conftest.err >&5
11230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } && {
11232 test -z "$ac_c_werror_flag" ||
11233 test ! -s conftest.err
11234 } && test -s conftest.$ac_objext; then
11235 :
11236else
11237 $as_echo "$as_me: failed program was:" >&5
11238sed 's/^/| /' conftest.$ac_ext >&5
11239
11240 ac_cv_type_int32_t=yes
11241fi
11242
11243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11244else
11245 $as_echo "$as_me: failed program was:" >&5
11246sed 's/^/| /' conftest.$ac_ext >&5
11247
11248
11249fi
11250
11251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11252fi
11253{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11254$as_echo "$ac_cv_type_int32_t" >&6; }
11255if test $ac_cv_type_int32_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011256
11257cat >>confdefs.h <<_ACEOF
11258#define HAVE_INT32_T 1
11259_ACEOF
11260
11261
11262fi
drh710658c2012-01-16 13:00:05 +000011263{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5
11264$as_echo_n "checking for int64_t... " >&6; }
11265if test "${ac_cv_type_int64_t+set}" = set; then
11266 $as_echo_n "(cached) " >&6
11267else
11268 ac_cv_type_int64_t=no
11269cat >conftest.$ac_ext <<_ACEOF
11270/* confdefs.h. */
11271_ACEOF
11272cat confdefs.h >>conftest.$ac_ext
11273cat >>conftest.$ac_ext <<_ACEOF
11274/* end confdefs.h. */
11275$ac_includes_default
11276int
11277main ()
11278{
11279if (sizeof (int64_t))
11280 return 0;
11281 ;
11282 return 0;
11283}
11284_ACEOF
11285rm -f conftest.$ac_objext
11286if { (ac_try="$ac_compile"
11287case "(($ac_try" in
11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11290esac
11291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11292$as_echo "$ac_try_echo") >&5
11293 (eval "$ac_compile") 2>conftest.er1
11294 ac_status=$?
11295 grep -v '^ *+' conftest.er1 >conftest.err
11296 rm -f conftest.er1
11297 cat conftest.err >&5
11298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } && {
11300 test -z "$ac_c_werror_flag" ||
11301 test ! -s conftest.err
11302 } && test -s conftest.$ac_objext; then
11303 cat >conftest.$ac_ext <<_ACEOF
11304/* confdefs.h. */
11305_ACEOF
11306cat confdefs.h >>conftest.$ac_ext
11307cat >>conftest.$ac_ext <<_ACEOF
11308/* end confdefs.h. */
11309$ac_includes_default
11310int
11311main ()
11312{
11313if (sizeof ((int64_t)))
11314 return 0;
11315 ;
11316 return 0;
11317}
11318_ACEOF
11319rm -f conftest.$ac_objext
11320if { (ac_try="$ac_compile"
11321case "(($ac_try" in
11322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11323 *) ac_try_echo=$ac_try;;
11324esac
11325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11326$as_echo "$ac_try_echo") >&5
11327 (eval "$ac_compile") 2>conftest.er1
11328 ac_status=$?
11329 grep -v '^ *+' conftest.er1 >conftest.err
11330 rm -f conftest.er1
11331 cat conftest.err >&5
11332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); } && {
11334 test -z "$ac_c_werror_flag" ||
11335 test ! -s conftest.err
11336 } && test -s conftest.$ac_objext; then
11337 :
11338else
11339 $as_echo "$as_me: failed program was:" >&5
11340sed 's/^/| /' conftest.$ac_ext >&5
11341
11342 ac_cv_type_int64_t=yes
11343fi
11344
11345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11346else
11347 $as_echo "$as_me: failed program was:" >&5
11348sed 's/^/| /' conftest.$ac_ext >&5
11349
11350
11351fi
11352
11353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11354fi
11355{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11356$as_echo "$ac_cv_type_int64_t" >&6; }
11357if test $ac_cv_type_int64_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011358
11359cat >>confdefs.h <<_ACEOF
11360#define HAVE_INT64_T 1
11361_ACEOF
11362
11363
11364fi
drh710658c2012-01-16 13:00:05 +000011365{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
11366$as_echo_n "checking for intptr_t... " >&6; }
11367if test "${ac_cv_type_intptr_t+set}" = set; then
11368 $as_echo_n "(cached) " >&6
11369else
11370 ac_cv_type_intptr_t=no
11371cat >conftest.$ac_ext <<_ACEOF
11372/* confdefs.h. */
11373_ACEOF
11374cat confdefs.h >>conftest.$ac_ext
11375cat >>conftest.$ac_ext <<_ACEOF
11376/* end confdefs.h. */
11377$ac_includes_default
11378int
11379main ()
11380{
11381if (sizeof (intptr_t))
11382 return 0;
11383 ;
11384 return 0;
11385}
11386_ACEOF
11387rm -f conftest.$ac_objext
11388if { (ac_try="$ac_compile"
11389case "(($ac_try" in
11390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11391 *) ac_try_echo=$ac_try;;
11392esac
11393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11394$as_echo "$ac_try_echo") >&5
11395 (eval "$ac_compile") 2>conftest.er1
11396 ac_status=$?
11397 grep -v '^ *+' conftest.er1 >conftest.err
11398 rm -f conftest.er1
11399 cat conftest.err >&5
11400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } && {
11402 test -z "$ac_c_werror_flag" ||
11403 test ! -s conftest.err
11404 } && test -s conftest.$ac_objext; then
11405 cat >conftest.$ac_ext <<_ACEOF
11406/* confdefs.h. */
11407_ACEOF
11408cat confdefs.h >>conftest.$ac_ext
11409cat >>conftest.$ac_ext <<_ACEOF
11410/* end confdefs.h. */
11411$ac_includes_default
11412int
11413main ()
11414{
11415if (sizeof ((intptr_t)))
11416 return 0;
11417 ;
11418 return 0;
11419}
11420_ACEOF
11421rm -f conftest.$ac_objext
11422if { (ac_try="$ac_compile"
11423case "(($ac_try" in
11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11426esac
11427eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11428$as_echo "$ac_try_echo") >&5
11429 (eval "$ac_compile") 2>conftest.er1
11430 ac_status=$?
11431 grep -v '^ *+' conftest.er1 >conftest.err
11432 rm -f conftest.er1
11433 cat conftest.err >&5
11434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); } && {
11436 test -z "$ac_c_werror_flag" ||
11437 test ! -s conftest.err
11438 } && test -s conftest.$ac_objext; then
11439 :
11440else
11441 $as_echo "$as_me: failed program was:" >&5
11442sed 's/^/| /' conftest.$ac_ext >&5
11443
11444 ac_cv_type_intptr_t=yes
11445fi
11446
11447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11448else
11449 $as_echo "$as_me: failed program was:" >&5
11450sed 's/^/| /' conftest.$ac_ext >&5
11451
11452
11453fi
11454
11455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11456fi
11457{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
11458$as_echo "$ac_cv_type_intptr_t" >&6; }
11459if test $ac_cv_type_intptr_t = yes; then
danielk197733a14782008-08-04 14:50:05 +000011460
11461cat >>confdefs.h <<_ACEOF
11462#define HAVE_INTPTR_T 1
11463_ACEOF
11464
11465
11466fi
drh710658c2012-01-16 13:00:05 +000011467{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
11468$as_echo_n "checking for uint8_t... " >&6; }
11469if test "${ac_cv_type_uint8_t+set}" = set; then
11470 $as_echo_n "(cached) " >&6
11471else
11472 ac_cv_type_uint8_t=no
11473cat >conftest.$ac_ext <<_ACEOF
11474/* confdefs.h. */
11475_ACEOF
11476cat confdefs.h >>conftest.$ac_ext
11477cat >>conftest.$ac_ext <<_ACEOF
11478/* end confdefs.h. */
11479$ac_includes_default
11480int
11481main ()
11482{
11483if (sizeof (uint8_t))
11484 return 0;
11485 ;
11486 return 0;
11487}
11488_ACEOF
11489rm -f conftest.$ac_objext
11490if { (ac_try="$ac_compile"
11491case "(($ac_try" in
11492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493 *) ac_try_echo=$ac_try;;
11494esac
11495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11496$as_echo "$ac_try_echo") >&5
11497 (eval "$ac_compile") 2>conftest.er1
11498 ac_status=$?
11499 grep -v '^ *+' conftest.er1 >conftest.err
11500 rm -f conftest.er1
11501 cat conftest.err >&5
11502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } && {
11504 test -z "$ac_c_werror_flag" ||
11505 test ! -s conftest.err
11506 } && test -s conftest.$ac_objext; then
11507 cat >conftest.$ac_ext <<_ACEOF
11508/* confdefs.h. */
11509_ACEOF
11510cat confdefs.h >>conftest.$ac_ext
11511cat >>conftest.$ac_ext <<_ACEOF
11512/* end confdefs.h. */
11513$ac_includes_default
11514int
11515main ()
11516{
11517if (sizeof ((uint8_t)))
11518 return 0;
11519 ;
11520 return 0;
11521}
11522_ACEOF
11523rm -f conftest.$ac_objext
11524if { (ac_try="$ac_compile"
11525case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11528esac
11529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11530$as_echo "$ac_try_echo") >&5
11531 (eval "$ac_compile") 2>conftest.er1
11532 ac_status=$?
11533 grep -v '^ *+' conftest.er1 >conftest.err
11534 rm -f conftest.er1
11535 cat conftest.err >&5
11536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } && {
11538 test -z "$ac_c_werror_flag" ||
11539 test ! -s conftest.err
11540 } && test -s conftest.$ac_objext; then
11541 :
11542else
11543 $as_echo "$as_me: failed program was:" >&5
11544sed 's/^/| /' conftest.$ac_ext >&5
11545
11546 ac_cv_type_uint8_t=yes
11547fi
11548
11549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11550else
11551 $as_echo "$as_me: failed program was:" >&5
11552sed 's/^/| /' conftest.$ac_ext >&5
11553
11554
11555fi
11556
11557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11558fi
11559{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
11560$as_echo "$ac_cv_type_uint8_t" >&6; }
11561if test $ac_cv_type_uint8_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011562
11563cat >>confdefs.h <<_ACEOF
11564#define HAVE_UINT8_T 1
11565_ACEOF
11566
11567
11568fi
drh710658c2012-01-16 13:00:05 +000011569{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
11570$as_echo_n "checking for uint16_t... " >&6; }
11571if test "${ac_cv_type_uint16_t+set}" = set; then
11572 $as_echo_n "(cached) " >&6
11573else
11574 ac_cv_type_uint16_t=no
11575cat >conftest.$ac_ext <<_ACEOF
11576/* confdefs.h. */
11577_ACEOF
11578cat confdefs.h >>conftest.$ac_ext
11579cat >>conftest.$ac_ext <<_ACEOF
11580/* end confdefs.h. */
11581$ac_includes_default
11582int
11583main ()
11584{
11585if (sizeof (uint16_t))
11586 return 0;
11587 ;
11588 return 0;
11589}
11590_ACEOF
11591rm -f conftest.$ac_objext
11592if { (ac_try="$ac_compile"
11593case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11596esac
11597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11598$as_echo "$ac_try_echo") >&5
11599 (eval "$ac_compile") 2>conftest.er1
11600 ac_status=$?
11601 grep -v '^ *+' conftest.er1 >conftest.err
11602 rm -f conftest.er1
11603 cat conftest.err >&5
11604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } && {
11606 test -z "$ac_c_werror_flag" ||
11607 test ! -s conftest.err
11608 } && test -s conftest.$ac_objext; then
11609 cat >conftest.$ac_ext <<_ACEOF
11610/* confdefs.h. */
11611_ACEOF
11612cat confdefs.h >>conftest.$ac_ext
11613cat >>conftest.$ac_ext <<_ACEOF
11614/* end confdefs.h. */
11615$ac_includes_default
11616int
11617main ()
11618{
11619if (sizeof ((uint16_t)))
11620 return 0;
11621 ;
11622 return 0;
11623}
11624_ACEOF
11625rm -f conftest.$ac_objext
11626if { (ac_try="$ac_compile"
11627case "(($ac_try" in
11628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629 *) ac_try_echo=$ac_try;;
11630esac
11631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11632$as_echo "$ac_try_echo") >&5
11633 (eval "$ac_compile") 2>conftest.er1
11634 ac_status=$?
11635 grep -v '^ *+' conftest.er1 >conftest.err
11636 rm -f conftest.er1
11637 cat conftest.err >&5
11638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); } && {
11640 test -z "$ac_c_werror_flag" ||
11641 test ! -s conftest.err
11642 } && test -s conftest.$ac_objext; then
11643 :
11644else
11645 $as_echo "$as_me: failed program was:" >&5
11646sed 's/^/| /' conftest.$ac_ext >&5
11647
11648 ac_cv_type_uint16_t=yes
11649fi
11650
11651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11652else
11653 $as_echo "$as_me: failed program was:" >&5
11654sed 's/^/| /' conftest.$ac_ext >&5
11655
11656
11657fi
11658
11659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11660fi
11661{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
11662$as_echo "$ac_cv_type_uint16_t" >&6; }
11663if test $ac_cv_type_uint16_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011664
11665cat >>confdefs.h <<_ACEOF
11666#define HAVE_UINT16_T 1
11667_ACEOF
11668
11669
11670fi
drh710658c2012-01-16 13:00:05 +000011671{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
11672$as_echo_n "checking for uint32_t... " >&6; }
11673if test "${ac_cv_type_uint32_t+set}" = set; then
11674 $as_echo_n "(cached) " >&6
11675else
11676 ac_cv_type_uint32_t=no
11677cat >conftest.$ac_ext <<_ACEOF
11678/* confdefs.h. */
11679_ACEOF
11680cat confdefs.h >>conftest.$ac_ext
11681cat >>conftest.$ac_ext <<_ACEOF
11682/* end confdefs.h. */
11683$ac_includes_default
11684int
11685main ()
11686{
11687if (sizeof (uint32_t))
11688 return 0;
11689 ;
11690 return 0;
11691}
11692_ACEOF
11693rm -f conftest.$ac_objext
11694if { (ac_try="$ac_compile"
11695case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11698esac
11699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11700$as_echo "$ac_try_echo") >&5
11701 (eval "$ac_compile") 2>conftest.er1
11702 ac_status=$?
11703 grep -v '^ *+' conftest.er1 >conftest.err
11704 rm -f conftest.er1
11705 cat conftest.err >&5
11706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); } && {
11708 test -z "$ac_c_werror_flag" ||
11709 test ! -s conftest.err
11710 } && test -s conftest.$ac_objext; then
11711 cat >conftest.$ac_ext <<_ACEOF
11712/* confdefs.h. */
11713_ACEOF
11714cat confdefs.h >>conftest.$ac_ext
11715cat >>conftest.$ac_ext <<_ACEOF
11716/* end confdefs.h. */
11717$ac_includes_default
11718int
11719main ()
11720{
11721if (sizeof ((uint32_t)))
11722 return 0;
11723 ;
11724 return 0;
11725}
11726_ACEOF
11727rm -f conftest.$ac_objext
11728if { (ac_try="$ac_compile"
11729case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11732esac
11733eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11734$as_echo "$ac_try_echo") >&5
11735 (eval "$ac_compile") 2>conftest.er1
11736 ac_status=$?
11737 grep -v '^ *+' conftest.er1 >conftest.err
11738 rm -f conftest.er1
11739 cat conftest.err >&5
11740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); } && {
11742 test -z "$ac_c_werror_flag" ||
11743 test ! -s conftest.err
11744 } && test -s conftest.$ac_objext; then
11745 :
11746else
11747 $as_echo "$as_me: failed program was:" >&5
11748sed 's/^/| /' conftest.$ac_ext >&5
11749
11750 ac_cv_type_uint32_t=yes
11751fi
11752
11753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11754else
11755 $as_echo "$as_me: failed program was:" >&5
11756sed 's/^/| /' conftest.$ac_ext >&5
11757
11758
11759fi
11760
11761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11762fi
11763{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11764$as_echo "$ac_cv_type_uint32_t" >&6; }
11765if test $ac_cv_type_uint32_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011766
11767cat >>confdefs.h <<_ACEOF
11768#define HAVE_UINT32_T 1
11769_ACEOF
11770
11771
11772fi
drh710658c2012-01-16 13:00:05 +000011773{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
11774$as_echo_n "checking for uint64_t... " >&6; }
11775if test "${ac_cv_type_uint64_t+set}" = set; then
11776 $as_echo_n "(cached) " >&6
11777else
11778 ac_cv_type_uint64_t=no
11779cat >conftest.$ac_ext <<_ACEOF
11780/* confdefs.h. */
11781_ACEOF
11782cat confdefs.h >>conftest.$ac_ext
11783cat >>conftest.$ac_ext <<_ACEOF
11784/* end confdefs.h. */
11785$ac_includes_default
11786int
11787main ()
11788{
11789if (sizeof (uint64_t))
11790 return 0;
11791 ;
11792 return 0;
11793}
11794_ACEOF
11795rm -f conftest.$ac_objext
11796if { (ac_try="$ac_compile"
11797case "(($ac_try" in
11798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799 *) ac_try_echo=$ac_try;;
11800esac
11801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11802$as_echo "$ac_try_echo") >&5
11803 (eval "$ac_compile") 2>conftest.er1
11804 ac_status=$?
11805 grep -v '^ *+' conftest.er1 >conftest.err
11806 rm -f conftest.er1
11807 cat conftest.err >&5
11808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); } && {
11810 test -z "$ac_c_werror_flag" ||
11811 test ! -s conftest.err
11812 } && test -s conftest.$ac_objext; then
11813 cat >conftest.$ac_ext <<_ACEOF
11814/* confdefs.h. */
11815_ACEOF
11816cat confdefs.h >>conftest.$ac_ext
11817cat >>conftest.$ac_ext <<_ACEOF
11818/* end confdefs.h. */
11819$ac_includes_default
11820int
11821main ()
11822{
11823if (sizeof ((uint64_t)))
11824 return 0;
11825 ;
11826 return 0;
11827}
11828_ACEOF
11829rm -f conftest.$ac_objext
11830if { (ac_try="$ac_compile"
11831case "(($ac_try" in
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11834esac
11835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11836$as_echo "$ac_try_echo") >&5
11837 (eval "$ac_compile") 2>conftest.er1
11838 ac_status=$?
11839 grep -v '^ *+' conftest.er1 >conftest.err
11840 rm -f conftest.er1
11841 cat conftest.err >&5
11842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } && {
11844 test -z "$ac_c_werror_flag" ||
11845 test ! -s conftest.err
11846 } && test -s conftest.$ac_objext; then
11847 :
11848else
11849 $as_echo "$as_me: failed program was:" >&5
11850sed 's/^/| /' conftest.$ac_ext >&5
11851
11852 ac_cv_type_uint64_t=yes
11853fi
11854
11855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856else
11857 $as_echo "$as_me: failed program was:" >&5
11858sed 's/^/| /' conftest.$ac_ext >&5
11859
11860
11861fi
11862
11863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864fi
11865{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11866$as_echo "$ac_cv_type_uint64_t" >&6; }
11867if test $ac_cv_type_uint64_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011868
11869cat >>confdefs.h <<_ACEOF
11870#define HAVE_UINT64_T 1
11871_ACEOF
11872
11873
11874fi
drh710658c2012-01-16 13:00:05 +000011875{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
11876$as_echo_n "checking for uintptr_t... " >&6; }
11877if test "${ac_cv_type_uintptr_t+set}" = set; then
11878 $as_echo_n "(cached) " >&6
11879else
11880 ac_cv_type_uintptr_t=no
11881cat >conftest.$ac_ext <<_ACEOF
11882/* confdefs.h. */
11883_ACEOF
11884cat confdefs.h >>conftest.$ac_ext
11885cat >>conftest.$ac_ext <<_ACEOF
11886/* end confdefs.h. */
11887$ac_includes_default
11888int
11889main ()
11890{
11891if (sizeof (uintptr_t))
11892 return 0;
11893 ;
11894 return 0;
11895}
11896_ACEOF
11897rm -f conftest.$ac_objext
11898if { (ac_try="$ac_compile"
11899case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11902esac
11903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11904$as_echo "$ac_try_echo") >&5
11905 (eval "$ac_compile") 2>conftest.er1
11906 ac_status=$?
11907 grep -v '^ *+' conftest.er1 >conftest.err
11908 rm -f conftest.er1
11909 cat conftest.err >&5
11910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } && {
11912 test -z "$ac_c_werror_flag" ||
11913 test ! -s conftest.err
11914 } && test -s conftest.$ac_objext; then
11915 cat >conftest.$ac_ext <<_ACEOF
11916/* confdefs.h. */
11917_ACEOF
11918cat confdefs.h >>conftest.$ac_ext
11919cat >>conftest.$ac_ext <<_ACEOF
11920/* end confdefs.h. */
11921$ac_includes_default
11922int
11923main ()
11924{
11925if (sizeof ((uintptr_t)))
11926 return 0;
11927 ;
11928 return 0;
11929}
11930_ACEOF
11931rm -f conftest.$ac_objext
11932if { (ac_try="$ac_compile"
11933case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11936esac
11937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11938$as_echo "$ac_try_echo") >&5
11939 (eval "$ac_compile") 2>conftest.er1
11940 ac_status=$?
11941 grep -v '^ *+' conftest.er1 >conftest.err
11942 rm -f conftest.er1
11943 cat conftest.err >&5
11944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } && {
11946 test -z "$ac_c_werror_flag" ||
11947 test ! -s conftest.err
11948 } && test -s conftest.$ac_objext; then
11949 :
11950else
11951 $as_echo "$as_me: failed program was:" >&5
11952sed 's/^/| /' conftest.$ac_ext >&5
11953
11954 ac_cv_type_uintptr_t=yes
11955fi
11956
11957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11958else
11959 $as_echo "$as_me: failed program was:" >&5
11960sed 's/^/| /' conftest.$ac_ext >&5
11961
11962
11963fi
11964
11965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11966fi
11967{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11968$as_echo "$ac_cv_type_uintptr_t" >&6; }
11969if test $ac_cv_type_uintptr_t = yes; then
danielk197733a14782008-08-04 14:50:05 +000011970
11971cat >>confdefs.h <<_ACEOF
11972#define HAVE_UINTPTR_T 1
11973_ACEOF
11974
11975
11976fi
mlcreechb87057f2008-03-06 07:19:20 +000011977
11978
11979#########
11980# Check for needed/wanted headers
drh710658c2012-01-16 13:00:05 +000011981
11982
11983
11984
drh86c5a932012-02-08 12:13:28 +000011985
11986for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
drh710658c2012-01-16 13:00:05 +000011987do
11988as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11990 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11991$as_echo_n "checking for $ac_header... " >&6; }
11992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11993 $as_echo_n "(cached) " >&6
11994fi
11995ac_res=`eval 'as_val=${'$as_ac_Header'}
11996 $as_echo "$as_val"'`
11997 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11998$as_echo "$ac_res" >&6; }
11999else
12000 # Is the header compilable?
12001{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12002$as_echo_n "checking $ac_header usability... " >&6; }
12003cat >conftest.$ac_ext <<_ACEOF
12004/* confdefs.h. */
12005_ACEOF
12006cat confdefs.h >>conftest.$ac_ext
12007cat >>conftest.$ac_ext <<_ACEOF
12008/* end confdefs.h. */
12009$ac_includes_default
12010#include <$ac_header>
12011_ACEOF
12012rm -f conftest.$ac_objext
12013if { (ac_try="$ac_compile"
12014case "(($ac_try" in
12015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016 *) ac_try_echo=$ac_try;;
12017esac
12018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12019$as_echo "$ac_try_echo") >&5
12020 (eval "$ac_compile") 2>conftest.er1
12021 ac_status=$?
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
12025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } && {
12027 test -z "$ac_c_werror_flag" ||
12028 test ! -s conftest.err
12029 } && test -s conftest.$ac_objext; then
12030 ac_header_compiler=yes
12031else
12032 $as_echo "$as_me: failed program was:" >&5
12033sed 's/^/| /' conftest.$ac_ext >&5
12034
12035 ac_header_compiler=no
12036fi
12037
12038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12039{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12040$as_echo "$ac_header_compiler" >&6; }
12041
12042# Is the header present?
12043{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12044$as_echo_n "checking $ac_header presence... " >&6; }
12045cat >conftest.$ac_ext <<_ACEOF
12046/* confdefs.h. */
12047_ACEOF
12048cat confdefs.h >>conftest.$ac_ext
12049cat >>conftest.$ac_ext <<_ACEOF
12050/* end confdefs.h. */
12051#include <$ac_header>
12052_ACEOF
12053if { (ac_try="$ac_cpp conftest.$ac_ext"
12054case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12057esac
12058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12059$as_echo "$ac_try_echo") >&5
12060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12061 ac_status=$?
12062 grep -v '^ *+' conftest.er1 >conftest.err
12063 rm -f conftest.er1
12064 cat conftest.err >&5
12065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } >/dev/null && {
12067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12068 test ! -s conftest.err
12069 }; then
12070 ac_header_preproc=yes
12071else
12072 $as_echo "$as_me: failed program was:" >&5
12073sed 's/^/| /' conftest.$ac_ext >&5
12074
12075 ac_header_preproc=no
12076fi
12077
12078rm -f conftest.err conftest.$ac_ext
12079{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12080$as_echo "$ac_header_preproc" >&6; }
12081
12082# So? What about this header?
12083case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12084 yes:no: )
12085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12086$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12088$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12089 ac_header_preproc=yes
12090 ;;
12091 no:yes:* )
12092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12093$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12095$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12097$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12099$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12101$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12103$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12104
12105 ;;
12106esac
12107{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12108$as_echo_n "checking for $ac_header... " >&6; }
12109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12110 $as_echo_n "(cached) " >&6
12111else
12112 eval "$as_ac_Header=\$ac_header_preproc"
12113fi
12114ac_res=`eval 'as_val=${'$as_ac_Header'}
12115 $as_echo "$as_val"'`
12116 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12117$as_echo "$ac_res" >&6; }
12118
12119fi
12120if test `eval 'as_val=${'$as_ac_Header'}
12121 $as_echo "$as_val"'` = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000012122 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000012123#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000012124_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000012125
mlcreechb87057f2008-03-06 07:19:20 +000012126fi
12127
12128done
12129
12130
12131#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000012132# Figure out whether or not we have these functions
12133#
drh710658c2012-01-16 13:00:05 +000012134
12135
12136
12137
12138
12139
12140
drh05c7e0b2015-01-10 14:27:17 +000012141
drh8567d402015-01-10 18:22:06 +000012142
drh39311122015-01-15 17:38:35 +000012143for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime
drh710658c2012-01-16 13:00:05 +000012144do
12145as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12146{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12147$as_echo_n "checking for $ac_func... " >&6; }
12148if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12149 $as_echo_n "(cached) " >&6
12150else
12151 cat >conftest.$ac_ext <<_ACEOF
12152/* confdefs.h. */
12153_ACEOF
12154cat confdefs.h >>conftest.$ac_ext
12155cat >>conftest.$ac_ext <<_ACEOF
12156/* end confdefs.h. */
12157/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12159#define $ac_func innocuous_$ac_func
12160
12161/* System header to define __stub macros and hopefully few prototypes,
12162 which can conflict with char $ac_func (); below.
12163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12164 <limits.h> exists even on freestanding compilers. */
12165
12166#ifdef __STDC__
12167# include <limits.h>
12168#else
12169# include <assert.h>
12170#endif
12171
12172#undef $ac_func
12173
12174/* Override any GCC internal prototype to avoid an error.
12175 Use char because int might match the return type of a GCC
12176 builtin and then its argument prototype would still apply. */
12177#ifdef __cplusplus
12178extern "C"
12179#endif
12180char $ac_func ();
12181/* The GNU C library defines this for functions which it implements
12182 to always fail with ENOSYS. Some functions are actually named
12183 something starting with __ and the normal name is an alias. */
12184#if defined __stub_$ac_func || defined __stub___$ac_func
12185choke me
12186#endif
12187
12188int
12189main ()
12190{
12191return $ac_func ();
12192 ;
12193 return 0;
12194}
12195_ACEOF
12196rm -f conftest.$ac_objext conftest$ac_exeext
12197if { (ac_try="$ac_link"
12198case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12201esac
12202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12203$as_echo "$ac_try_echo") >&5
12204 (eval "$ac_link") 2>conftest.er1
12205 ac_status=$?
12206 grep -v '^ *+' conftest.er1 >conftest.err
12207 rm -f conftest.er1
12208 cat conftest.err >&5
12209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } && {
12211 test -z "$ac_c_werror_flag" ||
12212 test ! -s conftest.err
12213 } && test -s conftest$ac_exeext && {
12214 test "$cross_compiling" = yes ||
12215 $as_test_x conftest$ac_exeext
12216 }; then
12217 eval "$as_ac_var=yes"
12218else
12219 $as_echo "$as_me: failed program was:" >&5
12220sed 's/^/| /' conftest.$ac_ext >&5
12221
12222 eval "$as_ac_var=no"
12223fi
12224
12225rm -rf conftest.dSYM
12226rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12227 conftest$ac_exeext conftest.$ac_ext
12228fi
12229ac_res=`eval 'as_val=${'$as_ac_var'}
12230 $as_echo "$as_val"'`
12231 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12232$as_echo "$ac_res" >&6; }
12233if test `eval 'as_val=${'$as_ac_var'}
12234 $as_echo "$as_val"'` = yes; then
mlcreech5b0a9eb2008-03-09 01:38:09 +000012235 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000012236#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000012237_ACEOF
12238
12239fi
12240done
12241
12242
mlcreechab1c47b2008-03-09 02:51:10 +000012243#########
mlcreechf3868112008-03-11 18:03:30 +000012244# By default, we use the amalgamation (this may be changed below...)
12245#
12246USE_AMALGAMATION=1
12247
12248#########
mlcreechab1c47b2008-03-09 02:51:10 +000012249# See whether we can run specific tclsh versions known to work well;
12250# if not, then we fall back to plain tclsh.
12251# TODO: try other versions before falling back?
12252#
mistachkinfe27b082013-08-28 18:06:26 +000012253for ac_prog in tclsh8.6 tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000012254do
12255 # Extract the first word of "$ac_prog", so it can be a program name with args.
12256set dummy $ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +000012257{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000012258$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +000012259if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012260 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000012261else
12262 if test -n "$TCLSH_CMD"; then
12263 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
12264else
12265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12266for as_dir in $PATH
12267do
12268 IFS=$as_save_IFS
12269 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +000012270 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000012271 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 +000012272 ac_cv_prog_TCLSH_CMD="$ac_prog"
drh710658c2012-01-16 13:00:05 +000012273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000012274 break 2
12275 fi
12276done
drh710658c2012-01-16 13:00:05 +000012277done
drh8b727472009-01-19 18:18:40 +000012278IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000012279
12280fi
12281fi
12282TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
12283if test -n "$TCLSH_CMD"; then
drh710658c2012-01-16 13:00:05 +000012284 { $as_echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
drh8b727472009-01-19 18:18:40 +000012285$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012286else
drh710658c2012-01-16 13:00:05 +000012287 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012288$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012289fi
12290
drh8b727472009-01-19 18:18:40 +000012291
mlcreechab1c47b2008-03-09 02:51:10 +000012292 test -n "$TCLSH_CMD" && break
12293done
mlcreechf3868112008-03-11 18:03:30 +000012294test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000012295
mlcreechf3868112008-03-11 18:03:30 +000012296if test "$TCLSH_CMD" = "none"; then
12297 # If we can't find a local tclsh, then building the amalgamation will fail.
12298 # We act as though --disable-amalgamation has been used.
12299 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
12300 USE_AMALGAMATION=0
12301 TCLSH_CMD="tclsh"
12302fi
mlcreechab1c47b2008-03-09 02:51:10 +000012303
12304
mlcreech5b0a9eb2008-03-09 01:38:09 +000012305
vapier6acb2cf2009-01-28 04:46:28 +000012306if test "x${TCLLIBDIR+set}" != "xset" ; then
12307 TCLLIBDIR='$(libdir)'
12308 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
12309 TCLLIBDIR=$i
12310 break
12311 done
12312 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
12313fi
12314
12315
mlcreech5b0a9eb2008-03-09 01:38:09 +000012316#########
drh75897232000-05-29 14:26:00 +000012317# Set up an appropriate program prefix
12318#
12319if test "$program_prefix" = "NONE"; then
12320 program_prefix=""
12321fi
12322
a.rottmann84e63352003-03-24 09:42:16 +000012323
drh4b2266a2004-11-27 15:52:16 +000012324VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
drh710658c2012-01-16 13:00:05 +000012325{ $as_echo "$as_me:$LINENO: Version set to $VERSION" >&5
vapier6acb2cf2009-01-28 04:46:28 +000012326$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000012327
12328RELEASE=`cat $srcdir/VERSION`
drh710658c2012-01-16 13:00:05 +000012329{ $as_echo "$as_me:$LINENO: Release set to $RELEASE" >&5
vapier6acb2cf2009-01-28 04:46:28 +000012330$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000012331
vapier6acb2cf2009-01-28 04:46:28 +000012332VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000012333 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000012334 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
drh710658c2012-01-16 13:00:05 +000012335{ $as_echo "$as_me:$LINENO: Version number set to $VERSION_NUMBER" >&5
vapier6acb2cf2009-01-28 04:46:28 +000012336$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000012337
drh26d0e2a2005-07-06 13:51:27 +000012338
drh75897232000-05-29 14:26:00 +000012339#########
drh75897232000-05-29 14:26:00 +000012340# Locate a compiler for the build machine. This compiler should
12341# generate command-line programs that run on the build machine.
12342#
vapier7f19c022007-02-17 14:46:31 +000012343if test x"$cross_compiling" = xno; then
12344 BUILD_CC=$CC
12345 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000012346else
vapier7f19c022007-02-17 14:46:31 +000012347 if test "${BUILD_CC+set}" != set; then
12348 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000012349do
12350 # Extract the first word of "$ac_prog", so it can be a program name with args.
12351set dummy $ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +000012352{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000012353$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +000012354if test "${ac_cv_prog_BUILD_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012355 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000012356else
vapier7f19c022007-02-17 14:46:31 +000012357 if test -n "$BUILD_CC"; then
12358 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000012359else
a.rottmann84e63352003-03-24 09:42:16 +000012360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12361for as_dir in $PATH
12362do
12363 IFS=$as_save_IFS
12364 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +000012365 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000012366 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 +000012367 ac_cv_prog_BUILD_CC="$ac_prog"
drh710658c2012-01-16 13:00:05 +000012368 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000012369 break 2
12370 fi
12371done
drh710658c2012-01-16 13:00:05 +000012372done
drh8b727472009-01-19 18:18:40 +000012373IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000012374
drh71eb93e2001-09-28 01:34:43 +000012375fi
12376fi
vapier7f19c022007-02-17 14:46:31 +000012377BUILD_CC=$ac_cv_prog_BUILD_CC
12378if test -n "$BUILD_CC"; then
drh710658c2012-01-16 13:00:05 +000012379 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
drh8b727472009-01-19 18:18:40 +000012380$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000012381else
drh710658c2012-01-16 13:00:05 +000012382 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012383$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000012384fi
drh75897232000-05-29 14:26:00 +000012385
drh8b727472009-01-19 18:18:40 +000012386
vapier7f19c022007-02-17 14:46:31 +000012387 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000012388done
drh75897232000-05-29 14:26:00 +000012389
vapier7f19c022007-02-17 14:46:31 +000012390 fi
12391 if test "${BUILD_CFLAGS+set}" != set; then
12392 BUILD_CFLAGS="-g"
12393 fi
drh71eb93e2001-09-28 01:34:43 +000012394fi
12395
a.rottmann84e63352003-03-24 09:42:16 +000012396
drh297ecf12001-04-05 15:57:13 +000012397##########
dougcurrie0f290bf2004-06-21 18:57:29 +000012398# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000012399#
drh8b727472009-01-19 18:18:40 +000012400# Check whether --enable-threadsafe was given.
drh710658c2012-01-16 13:00:05 +000012401if test "${enable_threadsafe+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012402 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000012403else
drh5a3032b2007-09-03 16:12:09 +000012404 enable_threadsafe=yes
drh8b727472009-01-19 18:18:40 +000012405fi
12406
drh710658c2012-01-16 13:00:05 +000012407{ $as_echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
drh8b727472009-01-19 18:18:40 +000012408$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000012409if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000012410 SQLITE_THREADSAFE=0
drh710658c2012-01-16 13:00:05 +000012411 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012412$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012413else
drh5a3032b2007-09-03 16:12:09 +000012414 SQLITE_THREADSAFE=1
drh710658c2012-01-16 13:00:05 +000012415 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000012416$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012417fi
12418
a.rottmann964dbb12004-02-26 19:47:42 +000012419
drh5a3032b2007-09-03 16:12:09 +000012420if test "$SQLITE_THREADSAFE" = "1"; then
drh710658c2012-01-16 13:00:05 +000012421 { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
drh8b727472009-01-19 18:18:40 +000012422$as_echo_n "checking for library containing pthread_create... " >&6; }
drh710658c2012-01-16 13:00:05 +000012423if test "${ac_cv_search_pthread_create+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012424 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000012425else
mlcreechc658b0f2008-03-09 02:20:11 +000012426 ac_func_search_save_LIBS=$LIBS
drh710658c2012-01-16 13:00:05 +000012427cat >conftest.$ac_ext <<_ACEOF
12428/* confdefs.h. */
12429_ACEOF
12430cat confdefs.h >>conftest.$ac_ext
12431cat >>conftest.$ac_ext <<_ACEOF
dougcurrie65623c72004-09-20 14:57:23 +000012432/* end confdefs.h. */
12433
drh8b727472009-01-19 18:18:40 +000012434/* Override any GCC internal prototype to avoid an error.
12435 Use char because int might match the return type of a GCC
12436 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000012437#ifdef __cplusplus
12438extern "C"
12439#endif
dougcurrie65623c72004-09-20 14:57:23 +000012440char pthread_create ();
12441int
12442main ()
12443{
drh8b727472009-01-19 18:18:40 +000012444return pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000012445 ;
12446 return 0;
12447}
12448_ACEOF
drh8b727472009-01-19 18:18:40 +000012449for ac_lib in '' pthread; do
12450 if test -z "$ac_lib"; then
12451 ac_res="none required"
12452 else
12453 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000012454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000012455 fi
drh710658c2012-01-16 13:00:05 +000012456 rm -f conftest.$ac_objext conftest$ac_exeext
12457if { (ac_try="$ac_link"
12458case "(($ac_try" in
12459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460 *) ac_try_echo=$ac_try;;
12461esac
12462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12463$as_echo "$ac_try_echo") >&5
12464 (eval "$ac_link") 2>conftest.er1
12465 ac_status=$?
12466 grep -v '^ *+' conftest.er1 >conftest.err
12467 rm -f conftest.er1
12468 cat conftest.err >&5
12469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } && {
12471 test -z "$ac_c_werror_flag" ||
12472 test ! -s conftest.err
12473 } && test -s conftest$ac_exeext && {
12474 test "$cross_compiling" = yes ||
12475 $as_test_x conftest$ac_exeext
12476 }; then
drh8b727472009-01-19 18:18:40 +000012477 ac_cv_search_pthread_create=$ac_res
drh710658c2012-01-16 13:00:05 +000012478else
12479 $as_echo "$as_me: failed program was:" >&5
12480sed 's/^/| /' conftest.$ac_ext >&5
12481
12482
mlcreechc658b0f2008-03-09 02:20:11 +000012483fi
drh710658c2012-01-16 13:00:05 +000012484
12485rm -rf conftest.dSYM
12486rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12487 conftest$ac_exeext
12488 if test "${ac_cv_search_pthread_create+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012489 break
drh866108f2008-05-13 00:57:21 +000012490fi
drh8b727472009-01-19 18:18:40 +000012491done
drh710658c2012-01-16 13:00:05 +000012492if test "${ac_cv_search_pthread_create+set}" = set; then
12493 :
drh8b727472009-01-19 18:18:40 +000012494else
12495 ac_cv_search_pthread_create=no
12496fi
12497rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000012498LIBS=$ac_func_search_save_LIBS
12499fi
drh710658c2012-01-16 13:00:05 +000012500{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
drh8b727472009-01-19 18:18:40 +000012501$as_echo "$ac_cv_search_pthread_create" >&6; }
12502ac_res=$ac_cv_search_pthread_create
drh710658c2012-01-16 13:00:05 +000012503if test "$ac_res" != no; then
drh8b727472009-01-19 18:18:40 +000012504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000012505
dougcurrie65623c72004-09-20 14:57:23 +000012506fi
12507
mlcreechc658b0f2008-03-09 02:20:11 +000012508fi
dougcurrie65623c72004-09-20 14:57:23 +000012509
xdong28f79f72003-09-23 00:35:21 +000012510##########
12511# Do we want to support release
12512#
drh8b727472009-01-19 18:18:40 +000012513# Check whether --enable-releasemode was given.
drh710658c2012-01-16 13:00:05 +000012514if test "${enable_releasemode+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012515 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000012516else
12517 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000012518fi
12519
drh710658c2012-01-16 13:00:05 +000012520{ $as_echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
drh8b727472009-01-19 18:18:40 +000012521$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000012522if test "$enable_releasemode" = "no"; then
12523 ALLOWRELEASE=""
drh710658c2012-01-16 13:00:05 +000012524 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012525$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000012526else
drh0b47d342007-11-27 14:50:06 +000012527 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drh710658c2012-01-16 13:00:05 +000012528 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000012529$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000012530fi
paulb0208cc2003-04-13 18:26:49 +000012531
a.rottmann964dbb12004-02-26 19:47:42 +000012532
paulb0208cc2003-04-13 18:26:49 +000012533##########
12534# Do we want temporary databases in memory
12535#
drh8b727472009-01-19 18:18:40 +000012536# Check whether --enable-tempstore was given.
drh710658c2012-01-16 13:00:05 +000012537if test "${enable_tempstore+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012538 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000012539else
drh54414bb2005-10-10 00:05:50 +000012540 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000012541fi
12542
drh710658c2012-01-16 13:00:05 +000012543{ $as_echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
drh8b727472009-01-19 18:18:40 +000012544$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000012545case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000012546 never )
paul2dc96f92003-04-20 11:46:34 +000012547 TEMP_STORE=0
drh710658c2012-01-16 13:00:05 +000012548 { $as_echo "$as_me:$LINENO: result: never" >&5
drh8b727472009-01-19 18:18:40 +000012549$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012550 ;;
12551 no )
paul2dc96f92003-04-20 11:46:34 +000012552 TEMP_STORE=1
drh710658c2012-01-16 13:00:05 +000012553 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012554$as_echo "no" >&6; }
12555 ;;
12556 yes )
12557 TEMP_STORE=2
drh710658c2012-01-16 13:00:05 +000012558 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000012559$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012560 ;;
12561 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000012562 TEMP_STORE=3
drh710658c2012-01-16 13:00:05 +000012563 { $as_echo "$as_me:$LINENO: result: always" >&5
drh8b727472009-01-19 18:18:40 +000012564$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000012565 ;;
paulb0208cc2003-04-13 18:26:49 +000012566 * )
drh54414bb2005-10-10 00:05:50 +000012567 TEMP_STORE=1
drh710658c2012-01-16 13:00:05 +000012568 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012569$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012570 ;;
12571esac
12572
12573
12574
drh75897232000-05-29 14:26:00 +000012575###########
12576# Lots of things are different if we are compiling for Windows using
12577# the CYGWIN environment. So check for that special case and handle
12578# things accordingly.
12579#
drh710658c2012-01-16 13:00:05 +000012580{ $as_echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
drh8b727472009-01-19 18:18:40 +000012581$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000012582if test "$config_BUILD_EXEEXT" = ".exe"; then
12583 CYGWIN=yes
drh710658c2012-01-16 13:00:05 +000012584 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000012585$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000012586else
drh710658c2012-01-16 13:00:05 +000012587 { $as_echo "$as_me:$LINENO: result: unknown" >&5
drh8b727472009-01-19 18:18:40 +000012588$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000012589fi
12590if test "$CYGWIN" != "yes"; then
drh710658c2012-01-16 13:00:05 +000012591 { $as_echo "$as_me:$LINENO: checking host system type" >&5
12592$as_echo_n "checking host system type... " >&6; }
12593if test "${ac_cv_host+set}" = set; then
12594 $as_echo_n "(cached) " >&6
12595else
12596 if test "x$host_alias" = x; then
12597 ac_cv_host=$ac_cv_build
12598else
12599 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12600 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12601$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12602 { (exit 1); exit 1; }; }
12603fi
12604
12605fi
12606{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12607$as_echo "$ac_cv_host" >&6; }
12608case $ac_cv_host in
12609*-*-*) ;;
12610*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12611$as_echo "$as_me: error: invalid value of canonical host" >&2;}
12612 { (exit 1); exit 1; }; };;
12613esac
12614host=$ac_cv_host
12615ac_save_IFS=$IFS; IFS='-'
12616set x $ac_cv_host
12617shift
12618host_cpu=$1
12619host_vendor=$2
12620shift; shift
12621# Remember, the first character of IFS is used to create $*,
12622# except with old shells:
12623host_os=$*
12624IFS=$ac_save_IFS
12625case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12626
a.rottmann84e63352003-03-24 09:42:16 +000012627
12628case $host_os in
drh71eb93e2001-09-28 01:34:43 +000012629 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000012630 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000012631esac
drh75897232000-05-29 14:26:00 +000012632
drh75897232000-05-29 14:26:00 +000012633fi
12634if test "$CYGWIN" = "yes"; then
12635 BUILD_EXEEXT=.exe
12636else
dougcurrie6194a5f2003-12-19 20:09:51 +000012637 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000012638fi
vapier7f19c022007-02-17 14:46:31 +000012639if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000012640 TARGET_EXEEXT=$BUILD_EXEEXT
12641else
12642 TARGET_EXEEXT=$config_TARGET_EXEEXT
12643fi
12644if test "$TARGET_EXEEXT" = ".exe"; then
mistachkinfe27b082013-08-28 18:06:26 +000012645 SQLITE_OS_UNIX=0
12646 SQLITE_OS_WIN=1
12647 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh75897232000-05-29 14:26:00 +000012648else
danielk197729bafea2008-06-26 10:41:19 +000012649 SQLITE_OS_UNIX=1
12650 SQLITE_OS_WIN=0
danielk197729bafea2008-06-26 10:41:19 +000012651 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000012652fi
drh75897232000-05-29 14:26:00 +000012653
a.rottmann84e63352003-03-24 09:42:16 +000012654
12655
12656
12657
12658
drh75897232000-05-29 14:26:00 +000012659##########
drh7b5717e2004-11-25 13:50:01 +000012660# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000012661#
drh7b5717e2004-11-25 13:50:01 +000012662# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12663# macros in the in the tcl.m4 file of the standard TCL distribution.
12664# Those macros could not be used directly since we have to make some
12665# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000012666#
drh8b727472009-01-19 18:18:40 +000012667# Check whether --enable-tcl was given.
drh710658c2012-01-16 13:00:05 +000012668if test "${enable_tcl+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012669 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000012670else
drh7b5717e2004-11-25 13:50:01 +000012671 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000012672fi
12673
drh7b5717e2004-11-25 13:50:01 +000012674if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000012675
drh8b727472009-01-19 18:18:40 +000012676# Check whether --with-tcl was given.
drh710658c2012-01-16 13:00:05 +000012677if test "${with_tcl+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012678 withval=$with_tcl; with_tclconfig=${withval}
12679fi
12680
drh710658c2012-01-16 13:00:05 +000012681 { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5
drh8b727472009-01-19 18:18:40 +000012682$as_echo_n "checking for Tcl configuration... " >&6; }
drh710658c2012-01-16 13:00:05 +000012683 if test "${ac_cv_c_tclconfig+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012684 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000012685else
a.rottmann84e63352003-03-24 09:42:16 +000012686
drh7b5717e2004-11-25 13:50:01 +000012687 # First check to see if --with-tcl was specified.
12688 if test x"${with_tclconfig}" != x ; then
12689 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12690 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12691 else
drh710658c2012-01-16 13:00:05 +000012692 { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
12693$as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
12694 { (exit 1); exit 1; }; }
drh7b5717e2004-11-25 13:50:01 +000012695 fi
12696 fi
vapier6acb2cf2009-01-28 04:46:28 +000012697
12698 # Start autosearch by asking tclsh
drhe74f4652012-08-15 16:06:54 +000012699 if test x"${ac_cv_c_tclconfig}" = x ; then
12700 if test x"$cross_compiling" = xno; then
12701 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
12702 do
12703 if test -f "$i/tclConfig.sh" ; then
12704 ac_cv_c_tclconfig="$i"
12705 break
12706 fi
12707 done
12708 fi
vapier6acb2cf2009-01-28 04:46:28 +000012709 fi
12710
drh7b5717e2004-11-25 13:50:01 +000012711 # then check for a private Tcl installation
12712 if test x"${ac_cv_c_tclconfig}" = x ; then
12713 for i in \
12714 ../tcl \
12715 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12716 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12717 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12718 ../../tcl \
12719 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12720 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12721 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12722 ../../../tcl \
12723 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12724 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12725 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
12726 do
12727 if test -f "$i/unix/tclConfig.sh" ; then
12728 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12729 break
12730 fi
12731 done
12732 fi
12733
12734 # check in a few common install locations
12735 if test x"${ac_cv_c_tclconfig}" = x ; then
12736 for i in \
12737 `ls -d ${libdir} 2>/dev/null` \
12738 `ls -d /usr/local/lib 2>/dev/null` \
12739 `ls -d /usr/contrib/lib 2>/dev/null` \
12740 `ls -d /usr/lib 2>/dev/null`
12741 do
12742 if test -f "$i/tclConfig.sh" ; then
12743 ac_cv_c_tclconfig=`(cd $i; pwd)`
12744 break
12745 fi
12746 done
12747 fi
12748
12749 # check in a few other private locations
12750 if test x"${ac_cv_c_tclconfig}" = x ; then
12751 for i in \
12752 ${srcdir}/../tcl \
12753 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12754 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12755 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
12756 do
12757 if test -f "$i/unix/tclConfig.sh" ; then
12758 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12759 break
12760 fi
12761 done
12762 fi
12763
drh75897232000-05-29 14:26:00 +000012764fi
12765
drh7b5717e2004-11-25 13:50:01 +000012766
12767 if test x"${ac_cv_c_tclconfig}" = x ; then
12768 use_tcl=no
drh710658c2012-01-16 13:00:05 +000012769 { $as_echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
drh8b727472009-01-19 18:18:40 +000012770$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
drh710658c2012-01-16 13:00:05 +000012771 { $as_echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
drh8b727472009-01-19 18:18:40 +000012772$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
drh710658c2012-01-16 13:00:05 +000012773 { $as_echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
drh8b727472009-01-19 18:18:40 +000012774$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000012775 else
12776 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drh710658c2012-01-16 13:00:05 +000012777 { $as_echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000012778$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000012779
drh710658c2012-01-16 13:00:05 +000012780 { $as_echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000012781$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000012782 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drh710658c2012-01-16 13:00:05 +000012783 { $as_echo "$as_me:$LINENO: result: loading" >&5
drh8b727472009-01-19 18:18:40 +000012784$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000012785 . $TCL_BIN_DIR/tclConfig.sh
12786 else
drh710658c2012-01-16 13:00:05 +000012787 { $as_echo "$as_me:$LINENO: result: file not found" >&5
drh8b727472009-01-19 18:18:40 +000012788$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000012789 fi
drh7b5717e2004-11-25 13:50:01 +000012790
12791 #
12792 # If the TCL_BIN_DIR is the build directory (not the install directory),
12793 # then set the common variable name to the value of the build variables.
12794 # For example, the variable TCL_LIB_SPEC will be set to the value
12795 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12796 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12797 # installed and uninstalled version of Tcl.
12798 #
12799
mlcreechab1c47b2008-03-09 02:51:10 +000012800 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000012801 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12802 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12803 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12804 fi
12805
12806 #
12807 # eval is required to do the TCL_DBGX substitution
12808 #
12809
12810 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12811 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12812 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12813
12814 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12815 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12816 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
drh7b5717e2004-11-25 13:50:01 +000012830 fi
drh75897232000-05-29 14:26:00 +000012831fi
drh7b5717e2004-11-25 13:50:01 +000012832if test "${use_tcl}" = "no" ; then
12833 HAVE_TCL=""
12834else
12835 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000012836fi
drh75897232000-05-29 14:26:00 +000012837
a.rottmann84e63352003-03-24 09:42:16 +000012838
drh75897232000-05-29 14:26:00 +000012839##########
12840# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000012841# that use "readline()" library.
12842#
vapier7f19c022007-02-17 14:46:31 +000012843TARGET_READLINE_LIBS=""
12844TARGET_READLINE_INC=""
12845TARGET_HAVE_READLINE=0
drh8b727472009-01-19 18:18:40 +000012846# Check whether --enable-readline was given.
drh710658c2012-01-16 13:00:05 +000012847if test "${enable_readline+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012848 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000012849else
vapier7f19c022007-02-17 14:46:31 +000012850 with_readline=auto
drh8b727472009-01-19 18:18:40 +000012851fi
12852
vapier7f19c022007-02-17 14:46:31 +000012853
12854if test x"$with_readline" != xno; then
12855 found="yes"
12856
12857
drh8b727472009-01-19 18:18:40 +000012858# Check whether --with-readline-lib was given.
drh710658c2012-01-16 13:00:05 +000012859if test "${with_readline_lib+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012860 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000012861else
12862 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000012863fi
12864
vapier7f19c022007-02-17 14:46:31 +000012865 if test "x$with_readline_lib" = xauto; then
12866 save_LIBS="$LIBS"
12867 LIBS=""
drh710658c2012-01-16 13:00:05 +000012868 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
drh8b727472009-01-19 18:18:40 +000012869$as_echo_n "checking for library containing tgetent... " >&6; }
drh710658c2012-01-16 13:00:05 +000012870if test "${ac_cv_search_tgetent+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012871 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000012872else
drh71eb93e2001-09-28 01:34:43 +000012873 ac_func_search_save_LIBS=$LIBS
drh710658c2012-01-16 13:00:05 +000012874cat >conftest.$ac_ext <<_ACEOF
12875/* confdefs.h. */
12876_ACEOF
12877cat confdefs.h >>conftest.$ac_ext
12878cat >>conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000012879/* end confdefs.h. */
12880
drh8b727472009-01-19 18:18:40 +000012881/* Override any GCC internal prototype to avoid an error.
12882 Use char because int might match the return type of a GCC
12883 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000012884#ifdef __cplusplus
12885extern "C"
12886#endif
paul38372372003-04-22 08:04:49 +000012887char tgetent ();
12888int
12889main ()
12890{
drh8b727472009-01-19 18:18:40 +000012891return tgetent ();
paul38372372003-04-22 08:04:49 +000012892 ;
12893 return 0;
12894}
12895_ACEOF
drh8b727472009-01-19 18:18:40 +000012896for ac_lib in '' readline ncurses curses termcap; do
12897 if test -z "$ac_lib"; then
12898 ac_res="none required"
12899 else
12900 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000012901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000012902 fi
drh710658c2012-01-16 13:00:05 +000012903 rm -f conftest.$ac_objext conftest$ac_exeext
12904if { (ac_try="$ac_link"
12905case "(($ac_try" in
12906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907 *) ac_try_echo=$ac_try;;
12908esac
12909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12910$as_echo "$ac_try_echo") >&5
12911 (eval "$ac_link") 2>conftest.er1
12912 ac_status=$?
12913 grep -v '^ *+' conftest.er1 >conftest.err
12914 rm -f conftest.er1
12915 cat conftest.err >&5
12916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); } && {
12918 test -z "$ac_c_werror_flag" ||
12919 test ! -s conftest.err
12920 } && test -s conftest$ac_exeext && {
12921 test "$cross_compiling" = yes ||
12922 $as_test_x conftest$ac_exeext
12923 }; then
drh8b727472009-01-19 18:18:40 +000012924 ac_cv_search_tgetent=$ac_res
drh710658c2012-01-16 13:00:05 +000012925else
12926 $as_echo "$as_me: failed program was:" >&5
12927sed 's/^/| /' conftest.$ac_ext >&5
12928
12929
mlcreech94984912008-03-04 19:03:08 +000012930fi
drh710658c2012-01-16 13:00:05 +000012931
12932rm -rf conftest.dSYM
12933rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12934 conftest$ac_exeext
12935 if test "${ac_cv_search_tgetent+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012936 break
drh866108f2008-05-13 00:57:21 +000012937fi
drh8b727472009-01-19 18:18:40 +000012938done
drh710658c2012-01-16 13:00:05 +000012939if test "${ac_cv_search_tgetent+set}" = set; then
12940 :
drh8b727472009-01-19 18:18:40 +000012941else
12942 ac_cv_search_tgetent=no
12943fi
12944rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000012945LIBS=$ac_func_search_save_LIBS
12946fi
drh710658c2012-01-16 13:00:05 +000012947{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
drh8b727472009-01-19 18:18:40 +000012948$as_echo "$ac_cv_search_tgetent" >&6; }
12949ac_res=$ac_cv_search_tgetent
drh710658c2012-01-16 13:00:05 +000012950if test "$ac_res" != no; then
drh8b727472009-01-19 18:18:40 +000012951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000012952 term_LIBS="$LIBS"
12953else
12954 term_LIBS=""
paul38372372003-04-22 08:04:49 +000012955fi
12956
drh710658c2012-01-16 13:00:05 +000012957 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
drh8b727472009-01-19 18:18:40 +000012958$as_echo_n "checking for readline in -lreadline... " >&6; }
drh710658c2012-01-16 13:00:05 +000012959if test "${ac_cv_lib_readline_readline+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012960 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000012961else
12962 ac_check_lib_save_LIBS=$LIBS
12963LIBS="-lreadline $LIBS"
drh710658c2012-01-16 13:00:05 +000012964cat >conftest.$ac_ext <<_ACEOF
12965/* confdefs.h. */
12966_ACEOF
12967cat confdefs.h >>conftest.$ac_ext
12968cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012969/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000012970
drh8b727472009-01-19 18:18:40 +000012971/* Override any GCC internal prototype to avoid an error.
12972 Use char because int might match the return type of a GCC
12973 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000012974#ifdef __cplusplus
12975extern "C"
12976#endif
drh71eb93e2001-09-28 01:34:43 +000012977char readline ();
12978int
12979main ()
12980{
drh8b727472009-01-19 18:18:40 +000012981return readline ();
drh71eb93e2001-09-28 01:34:43 +000012982 ;
12983 return 0;
12984}
12985_ACEOF
drh710658c2012-01-16 13:00:05 +000012986rm -f conftest.$ac_objext conftest$ac_exeext
12987if { (ac_try="$ac_link"
12988case "(($ac_try" in
12989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990 *) ac_try_echo=$ac_try;;
12991esac
12992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12993$as_echo "$ac_try_echo") >&5
12994 (eval "$ac_link") 2>conftest.er1
12995 ac_status=$?
12996 grep -v '^ *+' conftest.er1 >conftest.err
12997 rm -f conftest.er1
12998 cat conftest.err >&5
12999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } && {
13001 test -z "$ac_c_werror_flag" ||
13002 test ! -s conftest.err
13003 } && test -s conftest$ac_exeext && {
13004 test "$cross_compiling" = yes ||
13005 $as_test_x conftest$ac_exeext
13006 }; then
paul38372372003-04-22 08:04:49 +000013007 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000013008else
drh710658c2012-01-16 13:00:05 +000013009 $as_echo "$as_me: failed program was:" >&5
13010sed 's/^/| /' conftest.$ac_ext >&5
13011
13012 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000013013fi
drh710658c2012-01-16 13:00:05 +000013014
13015rm -rf conftest.dSYM
13016rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13017 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000013018LIBS=$ac_check_lib_save_LIBS
13019fi
drh710658c2012-01-16 13:00:05 +000013020{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
drh8b727472009-01-19 18:18:40 +000013021$as_echo "$ac_cv_lib_readline_readline" >&6; }
drh710658c2012-01-16 13:00:05 +000013022if test $ac_cv_lib_readline_readline = yes; then
vapier7f19c022007-02-17 14:46:31 +000013023 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000013024else
vapier7f19c022007-02-17 14:46:31 +000013025 found="no"
13026fi
drhf1878b42006-01-23 18:06:52 +000013027
vapier7f19c022007-02-17 14:46:31 +000013028 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
13029 LIBS="$save_LIBS"
13030 else
13031 TARGET_READLINE_LIBS="$with_readline_lib"
13032 fi
13033
13034
drh8b727472009-01-19 18:18:40 +000013035# Check whether --with-readline-inc was given.
drh710658c2012-01-16 13:00:05 +000013036if test "${with_readline_inc+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013037 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000013038else
vapier7f19c022007-02-17 14:46:31 +000013039 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000013040fi
13041
vapier7f19c022007-02-17 14:46:31 +000013042 if test "x$with_readline_inc" = xauto; then
drh710658c2012-01-16 13:00:05 +000013043 if test "${ac_cv_header_readline_h+set}" = set; then
13044 { $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13045$as_echo_n "checking for readline.h... " >&6; }
13046if test "${ac_cv_header_readline_h+set}" = set; then
13047 $as_echo_n "(cached) " >&6
13048fi
13049{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13050$as_echo "$ac_cv_header_readline_h" >&6; }
13051else
13052 # Is the header compilable?
13053{ $as_echo "$as_me:$LINENO: checking readline.h usability" >&5
13054$as_echo_n "checking readline.h usability... " >&6; }
13055cat >conftest.$ac_ext <<_ACEOF
13056/* confdefs.h. */
13057_ACEOF
13058cat confdefs.h >>conftest.$ac_ext
13059cat >>conftest.$ac_ext <<_ACEOF
13060/* end confdefs.h. */
13061$ac_includes_default
13062#include <readline.h>
13063_ACEOF
13064rm -f conftest.$ac_objext
13065if { (ac_try="$ac_compile"
13066case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13069esac
13070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13071$as_echo "$ac_try_echo") >&5
13072 (eval "$ac_compile") 2>conftest.er1
13073 ac_status=$?
13074 grep -v '^ *+' conftest.er1 >conftest.err
13075 rm -f conftest.er1
13076 cat conftest.err >&5
13077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } && {
13079 test -z "$ac_c_werror_flag" ||
13080 test ! -s conftest.err
13081 } && test -s conftest.$ac_objext; then
13082 ac_header_compiler=yes
13083else
13084 $as_echo "$as_me: failed program was:" >&5
13085sed 's/^/| /' conftest.$ac_ext >&5
13086
13087 ac_header_compiler=no
13088fi
13089
13090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13091{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13092$as_echo "$ac_header_compiler" >&6; }
13093
13094# Is the header present?
13095{ $as_echo "$as_me:$LINENO: checking readline.h presence" >&5
13096$as_echo_n "checking readline.h presence... " >&6; }
13097cat >conftest.$ac_ext <<_ACEOF
13098/* confdefs.h. */
13099_ACEOF
13100cat confdefs.h >>conftest.$ac_ext
13101cat >>conftest.$ac_ext <<_ACEOF
13102/* end confdefs.h. */
13103#include <readline.h>
13104_ACEOF
13105if { (ac_try="$ac_cpp conftest.$ac_ext"
13106case "(($ac_try" in
13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13109esac
13110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13111$as_echo "$ac_try_echo") >&5
13112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13113 ac_status=$?
13114 grep -v '^ *+' conftest.er1 >conftest.err
13115 rm -f conftest.er1
13116 cat conftest.err >&5
13117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } >/dev/null && {
13119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13120 test ! -s conftest.err
13121 }; then
13122 ac_header_preproc=yes
13123else
13124 $as_echo "$as_me: failed program was:" >&5
13125sed 's/^/| /' conftest.$ac_ext >&5
13126
13127 ac_header_preproc=no
13128fi
13129
13130rm -f conftest.err conftest.$ac_ext
13131{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13132$as_echo "$ac_header_preproc" >&6; }
13133
13134# So? What about this header?
13135case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13136 yes:no: )
13137 { $as_echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13138$as_echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13139 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
13140$as_echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
13141 ac_header_preproc=yes
13142 ;;
13143 no:yes:* )
13144 { $as_echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
13145$as_echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
13146 { $as_echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
13147$as_echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
13148 { $as_echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
13149$as_echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
13150 { $as_echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
13151$as_echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13152 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
13153$as_echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
13154 { $as_echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
13155$as_echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
13156
13157 ;;
13158esac
13159{ $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13160$as_echo_n "checking for readline.h... " >&6; }
13161if test "${ac_cv_header_readline_h+set}" = set; then
13162 $as_echo_n "(cached) " >&6
13163else
13164 ac_cv_header_readline_h=$ac_header_preproc
13165fi
13166{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13167$as_echo "$ac_cv_header_readline_h" >&6; }
13168
13169fi
13170if test $ac_cv_header_readline_h = yes; then
vapier7f19c022007-02-17 14:46:31 +000013171 found="yes"
13172else
drh75897232000-05-29 14:26:00 +000013173
vapier7f19c022007-02-17 14:46:31 +000013174 found="no"
13175 if test "$cross_compiling" != yes; then
13176 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
13177 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000013178 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
drh710658c2012-01-16 13:00:05 +000013179{ $as_echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
drh8b727472009-01-19 18:18:40 +000013180$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
drh710658c2012-01-16 13:00:05 +000013181if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
drh8b727472009-01-19 18:18:40 +000013182 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000013183else
13184 test "$cross_compiling" = yes &&
drh710658c2012-01-16 13:00:05 +000013185 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13186$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
13187 { (exit 1); exit 1; }; }
vapier7f19c022007-02-17 14:46:31 +000013188if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000013189 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000013190else
drh71eb93e2001-09-28 01:34:43 +000013191 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000013192fi
13193fi
drh710658c2012-01-16 13:00:05 +000013194ac_res=`eval 'as_val=${'$as_ac_File'}
13195 $as_echo "$as_val"'`
13196 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
drh8b727472009-01-19 18:18:40 +000013197$as_echo "$ac_res" >&6; }
drh710658c2012-01-16 13:00:05 +000013198if test `eval 'as_val=${'$as_ac_File'}
13199 $as_echo "$as_val"'` = yes; then
drh75897232000-05-29 14:26:00 +000013200 found=yes
drh75897232000-05-29 14:26:00 +000013201fi
13202
vapier7f19c022007-02-17 14:46:31 +000013203 if test "$found" = "yes"; then
13204 TARGET_READLINE_INC="-I$dir/$subdir"
13205 break
13206 fi
13207 done
13208 test "$found" = "yes" && break
13209 done
13210 fi
13211
13212fi
13213
13214
13215 else
13216 TARGET_READLINE_INC="$with_readline_inc"
13217 fi
13218
13219 if test x"$found" = xno; then
13220 TARGET_READLINE_LIBS=""
13221 TARGET_READLINE_INC=""
13222 TARGET_HAVE_READLINE=0
13223 else
13224 TARGET_HAVE_READLINE=1
13225 fi
13226fi
13227
13228
13229
13230
13231
13232##########
13233# Figure out what C libraries are required to compile programs
13234# that use "fdatasync()" function.
13235#
drh710658c2012-01-16 13:00:05 +000013236{ $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000013237$as_echo_n "checking for library containing fdatasync... " >&6; }
drh710658c2012-01-16 13:00:05 +000013238if test "${ac_cv_search_fdatasync+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013239 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000013240else
vapier7f19c022007-02-17 14:46:31 +000013241 ac_func_search_save_LIBS=$LIBS
drh710658c2012-01-16 13:00:05 +000013242cat >conftest.$ac_ext <<_ACEOF
13243/* confdefs.h. */
13244_ACEOF
13245cat confdefs.h >>conftest.$ac_ext
13246cat >>conftest.$ac_ext <<_ACEOF
vapier7f19c022007-02-17 14:46:31 +000013247/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000013248
drh8b727472009-01-19 18:18:40 +000013249/* Override any GCC internal prototype to avoid an error.
13250 Use char because int might match the return type of a GCC
13251 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000013252#ifdef __cplusplus
13253extern "C"
13254#endif
13255char fdatasync ();
13256int
13257main ()
13258{
drh8b727472009-01-19 18:18:40 +000013259return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000013260 ;
13261 return 0;
13262}
13263_ACEOF
drh8b727472009-01-19 18:18:40 +000013264for ac_lib in '' rt; do
13265 if test -z "$ac_lib"; then
13266 ac_res="none required"
13267 else
13268 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000013269 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000013270 fi
drh710658c2012-01-16 13:00:05 +000013271 rm -f conftest.$ac_objext conftest$ac_exeext
13272if { (ac_try="$ac_link"
13273case "(($ac_try" in
13274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275 *) ac_try_echo=$ac_try;;
13276esac
13277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13278$as_echo "$ac_try_echo") >&5
13279 (eval "$ac_link") 2>conftest.er1
13280 ac_status=$?
13281 grep -v '^ *+' conftest.er1 >conftest.err
13282 rm -f conftest.er1
13283 cat conftest.err >&5
13284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } && {
13286 test -z "$ac_c_werror_flag" ||
13287 test ! -s conftest.err
13288 } && test -s conftest$ac_exeext && {
13289 test "$cross_compiling" = yes ||
13290 $as_test_x conftest$ac_exeext
13291 }; then
drh8b727472009-01-19 18:18:40 +000013292 ac_cv_search_fdatasync=$ac_res
drh710658c2012-01-16 13:00:05 +000013293else
13294 $as_echo "$as_me: failed program was:" >&5
13295sed 's/^/| /' conftest.$ac_ext >&5
13296
13297
mlcreech94984912008-03-04 19:03:08 +000013298fi
drh710658c2012-01-16 13:00:05 +000013299
13300rm -rf conftest.dSYM
13301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13302 conftest$ac_exeext
13303 if test "${ac_cv_search_fdatasync+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013304 break
drh866108f2008-05-13 00:57:21 +000013305fi
drh8b727472009-01-19 18:18:40 +000013306done
drh710658c2012-01-16 13:00:05 +000013307if test "${ac_cv_search_fdatasync+set}" = set; then
13308 :
drh8b727472009-01-19 18:18:40 +000013309else
13310 ac_cv_search_fdatasync=no
13311fi
13312rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000013313LIBS=$ac_func_search_save_LIBS
13314fi
drh710658c2012-01-16 13:00:05 +000013315{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000013316$as_echo "$ac_cv_search_fdatasync" >&6; }
13317ac_res=$ac_cv_search_fdatasync
drh710658c2012-01-16 13:00:05 +000013318if test "$ac_res" != no; then
drh8b727472009-01-19 18:18:40 +000013319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000013320
vapier7f19c022007-02-17 14:46:31 +000013321fi
13322
a.rottmann84e63352003-03-24 09:42:16 +000013323
drh75897232000-05-29 14:26:00 +000013324#########
tpoindex9d9f76c2005-01-03 21:28:56 +000013325# check for debug enabled
drh8b727472009-01-19 18:18:40 +000013326# Check whether --enable-debug was given.
drh710658c2012-01-16 13:00:05 +000013327if test "${enable_debug+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013328 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000013329else
13330 use_debug=no
drh8b727472009-01-19 18:18:40 +000013331fi
13332
tpoindex9d9f76c2005-01-03 21:28:56 +000013333if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000013334 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000013335else
13336 TARGET_DEBUG="-DNDEBUG"
13337fi
13338
13339
13340#########
mlcreech94984912008-03-04 19:03:08 +000013341# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000013342# Check whether --enable-amalgamation was given.
drh710658c2012-01-16 13:00:05 +000013343if test "${enable_amalgamation+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013344 enableval=$enable_amalgamation; use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000013345else
13346 use_amalgamation=yes
drh8b727472009-01-19 18:18:40 +000013347fi
13348
mlcreechf3868112008-03-11 18:03:30 +000013349if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000013350 USE_AMALGAMATION=0
13351fi
13352
13353
13354#########
mlcreecha4edab02008-03-06 04:14:17 +000013355# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000013356# Check whether --enable-load-extension was given.
drh710658c2012-01-16 13:00:05 +000013357if test "${enable_load_extension+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013358 enableval=$enable_load_extension; use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000013359else
drh05c7e0b2015-01-10 14:27:17 +000013360 use_loadextension=yes
drh8b727472009-01-19 18:18:40 +000013361fi
13362
mlcreecha4edab02008-03-06 04:14:17 +000013363if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000013364 OPT_FEATURE_FLAGS=""
drh710658c2012-01-16 13:00:05 +000013365 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000013366$as_echo_n "checking for library containing dlopen... " >&6; }
drh710658c2012-01-16 13:00:05 +000013367if test "${ac_cv_search_dlopen+set}" = set; then
drhdbe4b882011-06-20 18:00:17 +000013368 $as_echo_n "(cached) " >&6
13369else
13370 ac_func_search_save_LIBS=$LIBS
drh710658c2012-01-16 13:00:05 +000013371cat >conftest.$ac_ext <<_ACEOF
13372/* confdefs.h. */
13373_ACEOF
13374cat confdefs.h >>conftest.$ac_ext
13375cat >>conftest.$ac_ext <<_ACEOF
drhdbe4b882011-06-20 18:00:17 +000013376/* end confdefs.h. */
13377
13378/* Override any GCC internal prototype to avoid an error.
13379 Use char because int might match the return type of a GCC
13380 builtin and then its argument prototype would still apply. */
13381#ifdef __cplusplus
13382extern "C"
13383#endif
13384char dlopen ();
13385int
13386main ()
13387{
13388return dlopen ();
13389 ;
13390 return 0;
13391}
13392_ACEOF
13393for ac_lib in '' dl; do
13394 if test -z "$ac_lib"; then
13395 ac_res="none required"
13396 else
13397 ac_res=-l$ac_lib
13398 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13399 fi
drh710658c2012-01-16 13:00:05 +000013400 rm -f conftest.$ac_objext conftest$ac_exeext
13401if { (ac_try="$ac_link"
13402case "(($ac_try" in
13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404 *) ac_try_echo=$ac_try;;
13405esac
13406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13407$as_echo "$ac_try_echo") >&5
13408 (eval "$ac_link") 2>conftest.er1
13409 ac_status=$?
13410 grep -v '^ *+' conftest.er1 >conftest.err
13411 rm -f conftest.er1
13412 cat conftest.err >&5
13413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); } && {
13415 test -z "$ac_c_werror_flag" ||
13416 test ! -s conftest.err
13417 } && test -s conftest$ac_exeext && {
13418 test "$cross_compiling" = yes ||
13419 $as_test_x conftest$ac_exeext
13420 }; then
drhdbe4b882011-06-20 18:00:17 +000013421 ac_cv_search_dlopen=$ac_res
drh710658c2012-01-16 13:00:05 +000013422else
13423 $as_echo "$as_me: failed program was:" >&5
13424sed 's/^/| /' conftest.$ac_ext >&5
13425
13426
drhdbe4b882011-06-20 18:00:17 +000013427fi
drh710658c2012-01-16 13:00:05 +000013428
13429rm -rf conftest.dSYM
13430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13431 conftest$ac_exeext
13432 if test "${ac_cv_search_dlopen+set}" = set; then
drhdbe4b882011-06-20 18:00:17 +000013433 break
13434fi
13435done
drh710658c2012-01-16 13:00:05 +000013436if test "${ac_cv_search_dlopen+set}" = set; then
13437 :
drhdbe4b882011-06-20 18:00:17 +000013438else
13439 ac_cv_search_dlopen=no
13440fi
13441rm conftest.$ac_ext
13442LIBS=$ac_func_search_save_LIBS
13443fi
drh710658c2012-01-16 13:00:05 +000013444{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000013445$as_echo "$ac_cv_search_dlopen" >&6; }
13446ac_res=$ac_cv_search_dlopen
drh710658c2012-01-16 13:00:05 +000013447if test "$ac_res" != no; then
drhdbe4b882011-06-20 18:00:17 +000013448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13449
13450fi
13451
mlcreecha4edab02008-03-06 04:14:17 +000013452else
shanefbedede2008-07-22 05:05:01 +000013453 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000013454fi
13455
mlcreechaac7b932008-04-01 02:45:22 +000013456#########
shaneb1cd7302008-10-22 18:27:31 +000013457# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013458for option in $CFLAGS $CPPFLAGS
13459do
13460 case $option in
danielk197733a14782008-08-04 14:50:05 +000013461 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000013462 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013463 esac
13464done
13465
13466
danielk197733a14782008-08-04 14:50:05 +000013467
shaneb1cd7302008-10-22 18:27:31 +000013468# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013469ac_temp_CFLAGS=""
13470for option in $CFLAGS
13471do
13472 case $option in
13473 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013474 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013475 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013476 esac
13477done
13478CFLAGS=$ac_temp_CFLAGS
13479
13480
shaneb1cd7302008-10-22 18:27:31 +000013481# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013482ac_temp_CPPFLAGS=""
13483for option in $CPPFLAGS
13484do
13485 case $option in
13486 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013487 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013488 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013489 esac
13490done
13491CPPFLAGS=$ac_temp_CPPFLAGS
13492
danielk197733a14782008-08-04 14:50:05 +000013493
drh8b727472009-01-19 18:18:40 +000013494# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013495ac_temp_BUILD_CFLAGS=""
13496for option in $BUILD_CFLAGS
13497do
13498 case $option in
13499 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013500 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013501 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013502 esac
13503done
13504BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
13505
13506
13507#########
13508# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000013509# Check whether --enable-gcov was given.
drh710658c2012-01-16 13:00:05 +000013510if test "${enable_gcov+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013511 enableval=$enable_gcov; use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000013512else
13513 use_gcov=no
drh8b727472009-01-19 18:18:40 +000013514fi
13515
mlcreechaac7b932008-04-01 02:45:22 +000013516if test "${use_gcov}" = "yes" ; then
13517 USE_GCOV=1
13518else
13519 USE_GCOV=0
13520fi
13521
13522
danielk197733a14782008-08-04 14:50:05 +000013523
drh2dfbbca2000-07-28 14:32:48 +000013524#########
mlcreechb87057f2008-03-06 07:19:20 +000013525# Output the config header
drh8b727472009-01-19 18:18:40 +000013526ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000013527
13528
13529#########
drh75897232000-05-29 14:26:00 +000013530# Generate the output files.
13531#
mlcreechdf59c7c2008-03-06 07:51:15 +000013532
drh8b727472009-01-19 18:18:40 +000013533ac_config_files="$ac_config_files Makefile sqlite3.pc"
13534
drh71eb93e2001-09-28 01:34:43 +000013535cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000013536# This file is a shell script that caches the results of configure
13537# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000013538# scripts and configure runs, see configure's option --config-cache.
13539# It is not useful on other systems. If it contains results you don't
13540# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000013541#
drh71eb93e2001-09-28 01:34:43 +000013542# config.status only pays attention to the cache file if you give it
13543# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000013544#
a.rottmann84e63352003-03-24 09:42:16 +000013545# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000013546# loading this file, other *unset* `ac_cv_foo' will be assigned the
13547# following values.
13548
13549_ACEOF
13550
drh75897232000-05-29 14:26:00 +000013551# The following way of writing the cache mishandles newlines in values,
13552# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000013553# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000013554# Ultrix sh set writes to stderr and can't be redirected directly,
13555# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000013556(
13557 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13558 eval ac_val=\$$ac_var
13559 case $ac_val in #(
13560 *${as_nl}*)
13561 case $ac_var in #(
drh710658c2012-01-16 13:00:05 +000013562 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13563$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
drh8b727472009-01-19 18:18:40 +000013564 esac
13565 case $ac_var in #(
13566 _ | IFS | as_nl) ;; #(
13567 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drh710658c2012-01-16 13:00:05 +000013568 *) $as_unset $ac_var ;;
drh8b727472009-01-19 18:18:40 +000013569 esac ;;
13570 esac
13571 done
13572
drh71eb93e2001-09-28 01:34:43 +000013573 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000013574 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13575 *${as_nl}ac_space=\ *)
drh710658c2012-01-16 13:00:05 +000013576 # `set' does not quote correctly, so add quotes (double-quote
13577 # substitution turns \\\\ into \\, and sed turns \\ into \).
drh71eb93e2001-09-28 01:34:43 +000013578 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000013579 "s/'/'\\\\''/g;
13580 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000013581 ;; #(
drh71eb93e2001-09-28 01:34:43 +000013582 *)
13583 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000013584 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000013585 ;;
drh8b727472009-01-19 18:18:40 +000013586 esac |
13587 sort
13588) |
drh71eb93e2001-09-28 01:34:43 +000013589 sed '
drh8b727472009-01-19 18:18:40 +000013590 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000013591 t clear
drh8b727472009-01-19 18:18:40 +000013592 :clear
drh71eb93e2001-09-28 01:34:43 +000013593 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13594 t end
drh8b727472009-01-19 18:18:40 +000013595 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13596 :end' >>confcache
13597if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13598 if test -w "$cache_file"; then
drh710658c2012-01-16 13:00:05 +000013599 test "x$cache_file" != "x/dev/null" &&
13600 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000013601$as_echo "$as_me: updating cache $cache_file" >&6;}
drh710658c2012-01-16 13:00:05 +000013602 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000013603 else
drh710658c2012-01-16 13:00:05 +000013604 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000013605$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000013606 fi
13607fi
13608rm -f confcache
13609
drh75897232000-05-29 14:26:00 +000013610test "x$prefix" = xNONE && prefix=$ac_default_prefix
13611# Let make expand exec_prefix.
13612test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13613
mlcreechb87057f2008-03-06 07:19:20 +000013614DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000013615
13616ac_libobjs=
13617ac_ltlibobjs=
13618for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13619 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000013620 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13621 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13622 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13623 # will be set to the directory where LIBOBJS objects are built.
drh710658c2012-01-16 13:00:05 +000013624 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13625 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000013626done
13627LIBOBJS=$ac_libobjs
13628
13629LTLIBOBJS=$ac_ltlibobjs
13630
13631
13632
drh710658c2012-01-16 13:00:05 +000013633: ${CONFIG_STATUS=./config.status}
drh8b727472009-01-19 18:18:40 +000013634ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000013635ac_clean_files_save=$ac_clean_files
13636ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drh710658c2012-01-16 13:00:05 +000013637{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000013638$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
drh710658c2012-01-16 13:00:05 +000013639cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013640#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000013641# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000013642# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000013643# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000013644# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000013645
drh71eb93e2001-09-28 01:34:43 +000013646debug=false
a.rottmann84e63352003-03-24 09:42:16 +000013647ac_cs_recheck=false
13648ac_cs_silent=false
dana9f39fd2011-08-12 16:34:42 +000013649SHELL=\${CONFIG_SHELL-$SHELL}
drh710658c2012-01-16 13:00:05 +000013650_ACEOF
13651
13652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13653## --------------------- ##
13654## M4sh Initialization. ##
13655## --------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000013656
drh8b727472009-01-19 18:18:40 +000013657# Be more Bourne compatible
13658DUALCASE=1; export DUALCASE # for MKS sh
drh710658c2012-01-16 13:00:05 +000013659if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
drh71eb93e2001-09-28 01:34:43 +000013660 emulate sh
13661 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000013662 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000013663 # is contrary to our usage. Disable this feature.
13664 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000013665 setopt NO_GLOB_SUBST
13666else
drh710658c2012-01-16 13:00:05 +000013667 case `(set -o) 2>/dev/null` in
13668 *posix*) set -o posix ;;
drh8b727472009-01-19 18:18:40 +000013669esac
drh710658c2012-01-16 13:00:05 +000013670
a.rottmann84e63352003-03-24 09:42:16 +000013671fi
drh8b727472009-01-19 18:18:40 +000013672
13673
drh710658c2012-01-16 13:00:05 +000013674
13675
13676# PATH needs CR
13677# Avoid depending upon Character Ranges.
13678as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13679as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13680as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13681as_cr_digits='0123456789'
13682as_cr_alnum=$as_cr_Letters$as_cr_digits
13683
drh8b727472009-01-19 18:18:40 +000013684as_nl='
13685'
13686export as_nl
13687# Printing a long string crashes Solaris 7 /usr/bin/printf.
13688as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13689as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13690as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drh710658c2012-01-16 13:00:05 +000013691if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000013692 as_echo='printf %s\n'
13693 as_echo_n='printf %s'
13694else
13695 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13696 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13697 as_echo_n='/usr/ucb/echo -n'
13698 else
13699 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13700 as_echo_n_body='eval
13701 arg=$1;
drh710658c2012-01-16 13:00:05 +000013702 case $arg in
drh8b727472009-01-19 18:18:40 +000013703 *"$as_nl"*)
13704 expr "X$arg" : "X\\(.*\\)$as_nl";
13705 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13706 esac;
13707 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13708 '
13709 export as_echo_n_body
13710 as_echo_n='sh -c $as_echo_n_body as_echo'
13711 fi
13712 export as_echo_body
13713 as_echo='sh -c $as_echo_body as_echo'
13714fi
13715
13716# The user is always right.
13717if test "${PATH_SEPARATOR+set}" != set; then
13718 PATH_SEPARATOR=:
13719 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13720 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13721 PATH_SEPARATOR=';'
13722 }
13723fi
a.rottmann84e63352003-03-24 09:42:16 +000013724
drh710658c2012-01-16 13:00:05 +000013725# Support unset when possible.
13726if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13727 as_unset=unset
13728else
13729 as_unset=false
13730fi
13731
mlcreech94984912008-03-04 19:03:08 +000013732
drh8b727472009-01-19 18:18:40 +000013733# IFS
13734# We need space, tab and new line, in precisely that order. Quoting is
13735# there to prevent editors from complaining about space-tab.
13736# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13737# splitting by setting IFS to empty value.)
13738IFS=" "" $as_nl"
13739
13740# Find who we are. Look in the path if we contain no directory separator.
drh710658c2012-01-16 13:00:05 +000013741case $0 in
drh8b727472009-01-19 18:18:40 +000013742 *[\\/]* ) as_myself=$0 ;;
13743 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13744for as_dir in $PATH
13745do
13746 IFS=$as_save_IFS
13747 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +000013748 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13749done
drh8b727472009-01-19 18:18:40 +000013750IFS=$as_save_IFS
13751
13752 ;;
13753esac
13754# We did not find ourselves, most probably we were run as `sh COMMAND'
13755# in which case we are not to be found in the path.
13756if test "x$as_myself" = x; then
13757 as_myself=$0
13758fi
13759if test ! -f "$as_myself"; then
13760 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drh710658c2012-01-16 13:00:05 +000013761 { (exit 1); exit 1; }
drh8b727472009-01-19 18:18:40 +000013762fi
13763
drh710658c2012-01-16 13:00:05 +000013764# Work around bugs in pre-3.0 UWIN ksh.
13765for as_var in ENV MAIL MAILPATH
13766do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
drh8b727472009-01-19 18:18:40 +000013767done
mlcreech94984912008-03-04 19:03:08 +000013768PS1='$ '
13769PS2='> '
13770PS4='+ '
13771
13772# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000013773LC_ALL=C
13774export LC_ALL
13775LANGUAGE=C
13776export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000013777
drh710658c2012-01-16 13:00:05 +000013778# Required to use basename.
drh8b727472009-01-19 18:18:40 +000013779if expr a : '\(a\)' >/dev/null 2>&1 &&
13780 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000013781 as_expr=expr
13782else
13783 as_expr=false
13784fi
13785
drh8b727472009-01-19 18:18:40 +000013786if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000013787 as_basename=basename
13788else
13789 as_basename=false
13790fi
13791
13792
drh710658c2012-01-16 13:00:05 +000013793# Name of the executable.
drh8b727472009-01-19 18:18:40 +000013794as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000013795$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13796 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000013797 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13798$as_echo X/"$0" |
13799 sed '/^.*\/\([^/][^/]*\)\/*$/{
13800 s//\1/
13801 q
13802 }
13803 /^X\/\(\/\/\)$/{
13804 s//\1/
13805 q
13806 }
13807 /^X\/\(\/\).*/{
13808 s//\1/
13809 q
13810 }
13811 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000013812
drh710658c2012-01-16 13:00:05 +000013813# CDPATH.
13814$as_unset CDPATH
13815
13816
13817
13818 as_lineno_1=$LINENO
13819 as_lineno_2=$LINENO
13820 test "x$as_lineno_1" != "x$as_lineno_2" &&
13821 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13822
13823 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13824 # uniformly replaced by the line number. The first 'sed' inserts a
13825 # line-number line after each line using $LINENO; the second 'sed'
13826 # does the real work. The second script uses 'N' to pair each
13827 # line-number line with the line containing $LINENO, and appends
13828 # trailing '-' during substitution so that $LINENO is not a special
13829 # case at line end.
13830 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13831 # scripts with optimization help from Paolo Bonzini. Blame Lee
13832 # E. McMahon (1931-1989) for sed's syntax. :-)
13833 sed -n '
13834 p
13835 /[$]LINENO/=
13836 ' <$as_myself |
13837 sed '
13838 s/[$]LINENO.*/&-/
13839 t lineno
13840 b
13841 :lineno
13842 N
13843 :loop
13844 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13845 t loop
13846 s/-\n.*//
13847 ' >$as_me.lineno &&
13848 chmod +x "$as_me.lineno" ||
13849 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13850 { (exit 1); exit 1; }; }
13851
13852 # Don't try to exec as it changes $[0], causing all sort of problems
13853 # (the dirname of $[0] is not the place where we might find the
13854 # original and so on. Autoconf is especially sensitive to this).
13855 . "./$as_me.lineno"
13856 # Exit status is that of the last command.
13857 exit
13858}
13859
13860
13861if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13862 as_dirname=dirname
13863else
13864 as_dirname=false
13865fi
drh866108f2008-05-13 00:57:21 +000013866
drh8b727472009-01-19 18:18:40 +000013867ECHO_C= ECHO_N= ECHO_T=
drh710658c2012-01-16 13:00:05 +000013868case `echo -n x` in
drh8b727472009-01-19 18:18:40 +000013869-n*)
drh710658c2012-01-16 13:00:05 +000013870 case `echo 'x\c'` in
drh8b727472009-01-19 18:18:40 +000013871 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drh710658c2012-01-16 13:00:05 +000013872 *) ECHO_C='\c';;
drh8b727472009-01-19 18:18:40 +000013873 esac;;
13874*)
13875 ECHO_N='-n';;
13876esac
drh710658c2012-01-16 13:00:05 +000013877if expr a : '\(a\)' >/dev/null 2>&1 &&
13878 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13879 as_expr=expr
13880else
13881 as_expr=false
13882fi
drh71eb93e2001-09-28 01:34:43 +000013883
13884rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000013885if test -d conf$$.dir; then
13886 rm -f conf$$.dir/conf$$.file
13887else
13888 rm -f conf$$.dir
13889 mkdir conf$$.dir 2>/dev/null
13890fi
13891if (echo >conf$$.file) 2>/dev/null; then
13892 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000013893 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000013894 # ... but there are two gotchas:
13895 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13896 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13897 # In both cases, we have to default to `cp -p'.
13898 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13899 as_ln_s='cp -p'
13900 elif ln conf$$.file conf$$ 2>/dev/null; then
13901 as_ln_s=ln
13902 else
13903 as_ln_s='cp -p'
mlcreech636a9952008-05-05 22:52:56 +000013904 fi
drh71eb93e2001-09-28 01:34:43 +000013905else
13906 as_ln_s='cp -p'
13907fi
drh8b727472009-01-19 18:18:40 +000013908rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13909rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000013910
a.rottmann84e63352003-03-24 09:42:16 +000013911if mkdir -p . 2>/dev/null; then
drh710658c2012-01-16 13:00:05 +000013912 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000013913else
a.rottmann964dbb12004-02-26 19:47:42 +000013914 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000013915 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000013916fi
13917
drh8b727472009-01-19 18:18:40 +000013918if test -x / >/dev/null 2>&1; then
13919 as_test_x='test -x'
13920else
13921 if ls -dL / >/dev/null 2>&1; then
13922 as_ls_L_option=L
13923 else
13924 as_ls_L_option=
13925 fi
13926 as_test_x='
13927 eval sh -c '\''
13928 if test -d "$1"; then
13929 test -d "$1/.";
13930 else
drh710658c2012-01-16 13:00:05 +000013931 case $1 in
drh8b727472009-01-19 18:18:40 +000013932 -*)set "./$1";;
13933 esac;
drh710658c2012-01-16 13:00:05 +000013934 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
drh8b727472009-01-19 18:18:40 +000013935 ???[sx]*):;;*)false;;esac;fi
13936 '\'' sh
13937 '
13938fi
13939as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +000013940
13941# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000013942as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000013943
13944# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000013945as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000013946
drh71eb93e2001-09-28 01:34:43 +000013947
drh71eb93e2001-09-28 01:34:43 +000013948exec 6>&1
13949
drh710658c2012-01-16 13:00:05 +000013950# Save the log message, to keep $[0] and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000013951# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000013952# values after options handling.
13953ac_log="
drh916cd232014-10-28 12:35:28 +000013954This file was extended by sqlite $as_me 3.8.8, which was
drh710658c2012-01-16 13:00:05 +000013955generated by GNU Autoconf 2.62. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000013956
13957 CONFIG_FILES = $CONFIG_FILES
13958 CONFIG_HEADERS = $CONFIG_HEADERS
13959 CONFIG_LINKS = $CONFIG_LINKS
13960 CONFIG_COMMANDS = $CONFIG_COMMANDS
13961 $ $0 $@
13962
drh8b727472009-01-19 18:18:40 +000013963on `(hostname || uname -n) 2>/dev/null | sed 1q`
13964"
13965
drh71eb93e2001-09-28 01:34:43 +000013966_ACEOF
13967
drh8b727472009-01-19 18:18:40 +000013968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013969# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000013970config_files="$ac_config_files"
13971config_headers="$ac_config_headers"
13972config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000013973
drh8b727472009-01-19 18:18:40 +000013974_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013975
drh8b727472009-01-19 18:18:40 +000013976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013977ac_cs_usage="\
drh710658c2012-01-16 13:00:05 +000013978\`$as_me' instantiates files from templates according to the
13979current configuration.
drh71eb93e2001-09-28 01:34:43 +000013980
drh710658c2012-01-16 13:00:05 +000013981Usage: $0 [OPTIONS] [FILE]...
drh71eb93e2001-09-28 01:34:43 +000013982
13983 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000013984 -V, --version print version number and configuration settings, then exit
drh710658c2012-01-16 13:00:05 +000013985 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000013986 -d, --debug don't remove temporary files
13987 --recheck update $as_me by reconfiguring in the same conditions
drh710658c2012-01-16 13:00:05 +000013988 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000013989 instantiate the configuration file FILE
drh710658c2012-01-16 13:00:05 +000013990 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000013991 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000013992
13993Configuration files:
13994$config_files
13995
mlcreechb87057f2008-03-06 07:19:20 +000013996Configuration headers:
13997$config_headers
13998
mlcreech636a9952008-05-05 22:52:56 +000013999Configuration commands:
14000$config_commands
14001
drh710658c2012-01-16 13:00:05 +000014002Report bugs to <bug-autoconf@gnu.org>."
drh8b727472009-01-19 18:18:40 +000014003
mlcreech94984912008-03-04 19:03:08 +000014004_ACEOF
drh8b727472009-01-19 18:18:40 +000014005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh866108f2008-05-13 00:57:21 +000014006ac_cs_version="\\
drh916cd232014-10-28 12:35:28 +000014007sqlite config.status 3.8.8
drh710658c2012-01-16 13:00:05 +000014008configured by $0, generated by GNU Autoconf 2.62,
14009 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
drh866108f2008-05-13 00:57:21 +000014010
drh710658c2012-01-16 13:00:05 +000014011Copyright (C) 2008 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000014012This config.status script is free software; the Free Software Foundation
14013gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000014014
14015ac_pwd='$ac_pwd'
14016srcdir='$srcdir'
14017INSTALL='$INSTALL'
14018AWK='$AWK'
14019test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000014020_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014021
drh8b727472009-01-19 18:18:40 +000014022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14023# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000014024ac_need_defaults=:
14025while test $# != 0
14026do
14027 case $1 in
drh710658c2012-01-16 13:00:05 +000014028 --*=*)
drh8b727472009-01-19 18:18:40 +000014029 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14030 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000014031 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000014032 ;;
drh8b727472009-01-19 18:18:40 +000014033 *)
a.rottmann84e63352003-03-24 09:42:16 +000014034 ac_option=$1
14035 ac_optarg=$2
14036 ac_shift=shift
14037 ;;
drh75897232000-05-29 14:26:00 +000014038 esac
14039
a.rottmann84e63352003-03-24 09:42:16 +000014040 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000014041 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000014042 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000014043 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000014044 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14045 $as_echo "$ac_cs_version"; exit ;;
14046 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000014047 debug=: ;;
14048 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000014049 $ac_shift
drh8b727472009-01-19 18:18:40 +000014050 case $ac_optarg in
14051 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14052 esac
drh710658c2012-01-16 13:00:05 +000014053 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000014054 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000014055 --header | --heade | --head | --hea )
14056 $ac_shift
drh8b727472009-01-19 18:18:40 +000014057 case $ac_optarg in
14058 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14059 esac
drh710658c2012-01-16 13:00:05 +000014060 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000014061 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000014062 --he | --h)
14063 # Conflict between --help and --header
drh710658c2012-01-16 13:00:05 +000014064 { $as_echo "$as_me: error: ambiguous option: $1
14065Try \`$0 --help' for more information." >&2
14066 { (exit 1); exit 1; }; };;
drh8b727472009-01-19 18:18:40 +000014067 --help | --hel | -h )
14068 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000014069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14070 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14071 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000014072
drh71eb93e2001-09-28 01:34:43 +000014073 # This is an error.
drh710658c2012-01-16 13:00:05 +000014074 -*) { $as_echo "$as_me: error: unrecognized option: $1
14075Try \`$0 --help' for more information." >&2
14076 { (exit 1); exit 1; }; } ;;
drh71eb93e2001-09-28 01:34:43 +000014077
drh710658c2012-01-16 13:00:05 +000014078 *) ac_config_targets="$ac_config_targets $1"
drh8b727472009-01-19 18:18:40 +000014079 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000014080
14081 esac
14082 shift
14083done
14084
a.rottmann84e63352003-03-24 09:42:16 +000014085ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000014086
a.rottmann84e63352003-03-24 09:42:16 +000014087if $ac_cs_silent; then
14088 exec 6>/dev/null
14089 ac_configure_extra_args="$ac_configure_extra_args --silent"
14090fi
drh71eb93e2001-09-28 01:34:43 +000014091
14092_ACEOF
drh8b727472009-01-19 18:18:40 +000014093cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000014094if \$ac_cs_recheck; then
drh8b727472009-01-19 18:18:40 +000014095 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14096 shift
14097 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14098 CONFIG_SHELL='$SHELL'
14099 export CONFIG_SHELL
14100 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000014101fi
drh71eb93e2001-09-28 01:34:43 +000014102
a.rottmann84e63352003-03-24 09:42:16 +000014103_ACEOF
drh8b727472009-01-19 18:18:40 +000014104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14105exec 5>>config.log
14106{
14107 echo
14108 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14109## Running $as_me. ##
14110_ASBOX
14111 $as_echo "$ac_log"
14112} >&5
a.rottmann84e63352003-03-24 09:42:16 +000014113
drh8b727472009-01-19 18:18:40 +000014114_ACEOF
14115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000014116#
drh8b727472009-01-19 18:18:40 +000014117# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000014118#
14119
14120
14121# The HP-UX ksh and POSIX shell print the target directory to stdout
14122# if CDPATH is set.
14123(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14124
14125sed_quote_subst='$sed_quote_subst'
14126double_quote_subst='$double_quote_subst'
14127delay_variable_subst='$delay_variable_subst'
14128macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14129macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14130enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14131enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14132pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14133enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14134host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14135host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14136host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14137build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14138build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14139build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14140SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14141Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14142GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14143EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14144FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14145LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14146NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14147LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14148max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14149ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14150exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14151lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14152lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14153lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14154reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14155reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000014156OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000014157deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14158file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14159AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14160AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14161STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14162RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14163old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14164old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14165old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14166CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14167CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14168compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14169GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14170lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14171lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14172lt_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"`'
14173lt_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"`'
14174objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14175SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14176ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14177MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14178lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14179lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14180lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14181lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14182lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14183need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14184DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14185NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14186LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14187OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14188OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14189libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14190shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14191extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14192archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14193enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14194export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14195whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14196compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14197old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14198old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14199archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14200archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14201module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14202module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14203with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14204allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14205no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14206hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14207hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14208hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14209hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14210hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14211hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14212hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14213hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14214inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14215link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14216fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14217always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14218export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14219exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14220include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14221prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14222file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14223variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14224need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14225need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14226version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14227runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14228shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14229shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14230libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14231library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14232soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14233postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14234postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14235finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14236finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14237hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14238sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14239sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14240hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14241enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14242enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14243enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14244old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14245striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14246
14247LTCC='$LTCC'
14248LTCFLAGS='$LTCFLAGS'
14249compiler='$compiler_DEFAULT'
14250
14251# Quote evaled strings.
14252for var in SED \
14253GREP \
14254EGREP \
14255FGREP \
14256LD \
14257NM \
14258LN_S \
14259lt_SP2NL \
14260lt_NL2SP \
14261reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000014262OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000014263deplibs_check_method \
14264file_magic_cmd \
14265AR \
14266AR_FLAGS \
14267STRIP \
14268RANLIB \
14269CC \
14270CFLAGS \
14271compiler \
14272lt_cv_sys_global_symbol_pipe \
14273lt_cv_sys_global_symbol_to_cdecl \
14274lt_cv_sys_global_symbol_to_c_name_address \
14275lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14276SHELL \
14277ECHO \
14278lt_prog_compiler_no_builtin_flag \
14279lt_prog_compiler_wl \
14280lt_prog_compiler_pic \
14281lt_prog_compiler_static \
14282lt_cv_prog_compiler_c_o \
14283need_locks \
14284DSYMUTIL \
14285NMEDIT \
14286LIPO \
14287OTOOL \
14288OTOOL64 \
14289shrext_cmds \
14290export_dynamic_flag_spec \
14291whole_archive_flag_spec \
14292compiler_needs_object \
14293with_gnu_ld \
14294allow_undefined_flag \
14295no_undefined_flag \
14296hardcode_libdir_flag_spec \
14297hardcode_libdir_flag_spec_ld \
14298hardcode_libdir_separator \
14299fix_srcfile_path \
14300exclude_expsyms \
14301include_expsyms \
14302file_list_spec \
14303variables_saved_for_relink \
14304libname_spec \
14305library_names_spec \
14306soname_spec \
14307finish_eval \
14308old_striplib \
14309striplib; do
14310 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14311 *[\\\\\\\`\\"\\\$]*)
14312 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14313 ;;
14314 *)
14315 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14316 ;;
14317 esac
14318done
14319
14320# Double-quote double-evaled strings.
14321for var in reload_cmds \
14322old_postinstall_cmds \
14323old_postuninstall_cmds \
14324old_archive_cmds \
14325extract_expsyms_cmds \
14326old_archive_from_new_cmds \
14327old_archive_from_expsyms_cmds \
14328archive_cmds \
14329archive_expsym_cmds \
14330module_cmds \
14331module_expsym_cmds \
14332export_symbols_cmds \
14333prelink_cmds \
14334postinstall_cmds \
14335postuninstall_cmds \
14336finish_cmds \
14337sys_lib_search_path_spec \
14338sys_lib_dlsearch_path_spec; do
14339 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14340 *[\\\\\\\`\\"\\\$]*)
14341 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14342 ;;
14343 *)
14344 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14345 ;;
14346 esac
14347done
14348
14349# Fix-up fallback echo if it was mangled by the above quoting rules.
14350case \$lt_ECHO in
14351*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14352 ;;
14353esac
14354
14355ac_aux_dir='$ac_aux_dir'
14356xsi_shell='$xsi_shell'
14357lt_shell_append='$lt_shell_append'
14358
14359# See if we are running on zsh, and set the options which allow our
14360# commands through without removal of \ escapes INIT.
14361if test -n "\${ZSH_VERSION+set}" ; then
14362 setopt NO_GLOB_SUBST
14363fi
14364
14365
14366 PACKAGE='$PACKAGE'
14367 VERSION='$VERSION'
14368 TIMESTAMP='$TIMESTAMP'
14369 RM='$RM'
14370 ofile='$ofile'
14371
14372
14373
14374
mlcreech94984912008-03-04 19:03:08 +000014375_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000014376
drh8b727472009-01-19 18:18:40 +000014377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000014378
drh8b727472009-01-19 18:18:40 +000014379# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000014380for ac_config_target in $ac_config_targets
14381do
drh8b727472009-01-19 18:18:40 +000014382 case $ac_config_target in
14383 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14384 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14385 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14386 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
14387
drh710658c2012-01-16 13:00:05 +000014388 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14389$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14390 { (exit 1); exit 1; }; };;
drh71eb93e2001-09-28 01:34:43 +000014391 esac
14392done
14393
drh8b727472009-01-19 18:18:40 +000014394
drh71eb93e2001-09-28 01:34:43 +000014395# If the user did not use the arguments to specify the items to instantiate,
14396# then the envvar interface is used. Set only those that are not.
14397# We use the long form for the default assignment because of an extremely
14398# bizarre bug on SunOS 4.1.3.
14399if $ac_need_defaults; then
14400 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000014401 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000014402 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000014403fi
14404
a.rottmann84e63352003-03-24 09:42:16 +000014405# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000014406# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000014407# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000014408# Hook for its removal unless debugging.
14409# Note that there is a small window in which the directory will not be cleaned:
14410# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000014411$debug ||
14412{
drh710658c2012-01-16 13:00:05 +000014413 tmp=
drh8b727472009-01-19 18:18:40 +000014414 trap 'exit_status=$?
drh710658c2012-01-16 13:00:05 +000014415 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
drh8b727472009-01-19 18:18:40 +000014416' 0
drh710658c2012-01-16 13:00:05 +000014417 trap '{ (exit 1); exit 1; }' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000014418}
drh71eb93e2001-09-28 01:34:43 +000014419# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000014420
drh71eb93e2001-09-28 01:34:43 +000014421{
drh8b727472009-01-19 18:18:40 +000014422 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drh710658c2012-01-16 13:00:05 +000014423 test -n "$tmp" && test -d "$tmp"
drh71eb93e2001-09-28 01:34:43 +000014424} ||
14425{
drh8b727472009-01-19 18:18:40 +000014426 tmp=./conf$$-$RANDOM
14427 (umask 077 && mkdir "$tmp")
drh710658c2012-01-16 13:00:05 +000014428} ||
14429{
14430 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14431 { (exit 1); exit 1; }
14432}
drh71eb93e2001-09-28 01:34:43 +000014433
drh8b727472009-01-19 18:18:40 +000014434# Set up the scripts for CONFIG_FILES section.
14435# No need to generate them if there are no CONFIG_FILES.
14436# This happens for instance with `./config.status config.h'.
14437if test -n "$CONFIG_FILES"; then
14438
14439
drh710658c2012-01-16 13:00:05 +000014440ac_cr=' '
drh8b727472009-01-19 18:18:40 +000014441ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14442if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
drh0fe0c462011-09-22 00:56:38 +000014443 ac_cs_awk_cr='\\r'
drh8b727472009-01-19 18:18:40 +000014444else
14445 ac_cs_awk_cr=$ac_cr
14446fi
14447
drh710658c2012-01-16 13:00:05 +000014448echo 'BEGIN {' >"$tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000014449_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014450
mlcreech94984912008-03-04 19:03:08 +000014451
drh8b727472009-01-19 18:18:40 +000014452{
14453 echo "cat >conf$$subs.awk <<_ACEOF" &&
14454 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14455 echo "_ACEOF"
14456} >conf$$subs.sh ||
drh710658c2012-01-16 13:00:05 +000014457 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14458$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14459 { (exit 1); exit 1; }; }
14460ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
drh8b727472009-01-19 18:18:40 +000014461ac_delim='%!_!# '
14462for ac_last_try in false false false false false :; do
14463 . ./conf$$subs.sh ||
drh710658c2012-01-16 13:00:05 +000014464 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14465$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14466 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000014467
drh710658c2012-01-16 13:00:05 +000014468 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 +000014469 break
14470 elif $ac_last_try; then
drh710658c2012-01-16 13:00:05 +000014471 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14472$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14473 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014474 else
14475 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000014476 fi
drh8b727472009-01-19 18:18:40 +000014477done
14478rm -f conf$$subs.sh
14479
14480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh710658c2012-01-16 13:00:05 +000014481cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
drh8b727472009-01-19 18:18:40 +000014482_ACEOF
14483sed -n '
14484h
14485s/^/S["/; s/!.*/"]=/
14486p
14487g
14488s/^[^!]*!//
14489:repl
14490t repl
14491s/'"$ac_delim"'$//
14492t delim
14493:nl
14494h
drh710658c2012-01-16 13:00:05 +000014495s/\(.\{148\}\).*/\1/
drh8b727472009-01-19 18:18:40 +000014496t more1
14497s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14498p
14499n
14500b repl
14501:more1
14502s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14503p
14504g
14505s/.\{148\}//
14506t nl
14507:delim
14508h
drh710658c2012-01-16 13:00:05 +000014509s/\(.\{148\}\).*/\1/
drh8b727472009-01-19 18:18:40 +000014510t more2
14511s/["\\]/\\&/g; s/^/"/; s/$/"/
14512p
14513b
14514:more2
14515s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14516p
14517g
14518s/.\{148\}//
14519t delim
14520' <conf$$subs.awk | sed '
14521/^[^""]/{
14522 N
14523 s/\n//
14524}
14525' >>$CONFIG_STATUS || ac_write_fail=1
14526rm -f conf$$subs.awk
14527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14528_ACAWK
drh710658c2012-01-16 13:00:05 +000014529cat >>"\$tmp/subs1.awk" <<_ACAWK &&
drh8b727472009-01-19 18:18:40 +000014530 for (key in S) S_is_set[key] = 1
14531 FS = ""
14532
14533}
14534{
14535 line = $ 0
14536 nfields = split(line, field, "@")
14537 substed = 0
14538 len = length(field[1])
14539 for (i = 2; i < nfields; i++) {
14540 key = field[i]
14541 keylen = length(key)
14542 if (S_is_set[key]) {
14543 value = S[key]
14544 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14545 len += length(value) + length(field[++i])
14546 substed = 1
14547 } else
14548 len += 1 + keylen
14549 }
14550
14551 print line
14552}
14553
14554_ACAWK
14555_ACEOF
14556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14557if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14558 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14559else
14560 cat
drh710658c2012-01-16 13:00:05 +000014561fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14562 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14563$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14564 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014565_ACEOF
14566
drh710658c2012-01-16 13:00:05 +000014567# VPATH may cause trouble with some makes, so we remove $(srcdir),
14568# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
drh8b727472009-01-19 18:18:40 +000014569# trailing colons and then remove the whole line if VPATH becomes empty
14570# (actually we leave an empty line to preserve line numbers).
14571if test "x$srcdir" = x.; then
drh710658c2012-01-16 13:00:05 +000014572 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14573s/:*\$(srcdir):*/:/
14574s/:*\${srcdir}:*/:/
14575s/:*@srcdir@:*/:/
14576s/^\([^=]*=[ ]*\):*/\1/
drh8b727472009-01-19 18:18:40 +000014577s/:*$//
14578s/^[^=]*=[ ]*$//
14579}'
14580fi
14581
14582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014583fi # test -n "$CONFIG_FILES"
14584
drh8b727472009-01-19 18:18:40 +000014585# Set up the scripts for CONFIG_HEADERS section.
14586# No need to generate them if there are no CONFIG_HEADERS.
14587# This happens for instance with `./config.status Makefile'.
14588if test -n "$CONFIG_HEADERS"; then
drh710658c2012-01-16 13:00:05 +000014589cat >"$tmp/defines.awk" <<\_ACAWK ||
drh8b727472009-01-19 18:18:40 +000014590BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000014591_ACEOF
drh8b727472009-01-19 18:18:40 +000014592
14593# Transform confdefs.h into an awk script `defines.awk', embedded as
14594# here-document in config.status, that substitutes the proper values into
14595# config.h.in to produce config.h.
14596
14597# Create a delimiter string that does not exist in confdefs.h, to ease
14598# handling of long lines.
14599ac_delim='%!_!# '
14600for ac_last_try in false false :; do
drh710658c2012-01-16 13:00:05 +000014601 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14602 if test -z "$ac_t"; then
drh8b727472009-01-19 18:18:40 +000014603 break
14604 elif $ac_last_try; then
drh710658c2012-01-16 13:00:05 +000014605 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14606$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14607 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014608 else
14609 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14610 fi
14611done
14612
14613# For the awk script, D is an array of macro values keyed by name,
14614# likewise P contains macro parameters if any. Preserve backslash
14615# newline sequences.
14616
14617ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14618sed -n '
14619s/.\{148\}/&'"$ac_delim"'/g
14620t rset
14621:rset
14622s/^[ ]*#[ ]*define[ ][ ]*/ /
14623t def
14624d
14625:def
14626s/\\$//
14627t bsnl
14628s/["\\]/\\&/g
14629s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14630D["\1"]=" \3"/p
14631s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14632d
14633:bsnl
14634s/["\\]/\\&/g
14635s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14636D["\1"]=" \3\\\\\\n"\\/p
14637t cont
14638s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14639t cont
14640d
14641:cont
14642n
14643s/.\{148\}/&'"$ac_delim"'/g
14644t clear
14645:clear
14646s/\\$//
14647t bsnlc
14648s/["\\]/\\&/g; s/^/"/; s/$/"/p
14649d
14650:bsnlc
14651s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14652b cont
14653' <confdefs.h | sed '
14654s/'"$ac_delim"'/"\\\
14655"/g' >>$CONFIG_STATUS || ac_write_fail=1
14656
14657cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14658 for (key in D) D_is_set[key] = 1
14659 FS = ""
14660}
14661/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14662 line = \$ 0
14663 split(line, arg, " ")
14664 if (arg[1] == "#") {
14665 defundef = arg[2]
14666 mac1 = arg[3]
14667 } else {
14668 defundef = substr(arg[1], 2)
14669 mac1 = arg[2]
14670 }
14671 split(mac1, mac2, "(") #)
14672 macro = mac2[1]
14673 if (D_is_set[macro]) {
14674 # Preserve the white space surrounding the "#".
drh710658c2012-01-16 13:00:05 +000014675 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000014676 print prefix "define", macro P[macro] D[macro]
14677 next
14678 } else {
14679 # Replace #undef with comments. This is necessary, for example,
14680 # in the case of _POSIX_SOURCE, which is predefined and required
14681 # on some systems where configure will not decide to define it.
14682 if (defundef == "undef") {
drh710658c2012-01-16 13:00:05 +000014683 print "/*", line, "*/"
drh8b727472009-01-19 18:18:40 +000014684 next
14685 }
14686 }
14687}
14688{ print }
14689_ACAWK
14690_ACEOF
14691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh710658c2012-01-16 13:00:05 +000014692 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14693$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14694 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014695fi # test -n "$CONFIG_HEADERS"
14696
14697
14698eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14699shift
14700for ac_tag
14701do
14702 case $ac_tag in
14703 :[FHLC]) ac_mode=$ac_tag; continue;;
14704 esac
14705 case $ac_mode$ac_tag in
14706 :[FHL]*:*);;
drh710658c2012-01-16 13:00:05 +000014707 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14708$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14709 { (exit 1); exit 1; }; };;
drh8b727472009-01-19 18:18:40 +000014710 :[FH]-) ac_tag=-:-;;
14711 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14712 esac
14713 ac_save_IFS=$IFS
14714 IFS=:
14715 set x $ac_tag
14716 IFS=$ac_save_IFS
14717 shift
14718 ac_file=$1
14719 shift
14720
14721 case $ac_mode in
14722 :L) ac_source=$1;;
14723 :[FH])
14724 ac_file_inputs=
14725 for ac_f
14726 do
14727 case $ac_f in
drh710658c2012-01-16 13:00:05 +000014728 -) ac_f="$tmp/stdin";;
drh8b727472009-01-19 18:18:40 +000014729 *) # Look for the file first in the build tree, then in the source tree
14730 # (if the path is not absolute). The absolute path cannot be DOS-style,
14731 # because $ac_f cannot contain `:'.
14732 test -f "$ac_f" ||
14733 case $ac_f in
14734 [\\/$]*) false;;
14735 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14736 esac ||
drh710658c2012-01-16 13:00:05 +000014737 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14738$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14739 { (exit 1); exit 1; }; };;
drh8b727472009-01-19 18:18:40 +000014740 esac
14741 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
drh710658c2012-01-16 13:00:05 +000014742 ac_file_inputs="$ac_file_inputs '$ac_f'"
drh8b727472009-01-19 18:18:40 +000014743 done
14744
14745 # Let's still pretend it is `configure' which instantiates (i.e., don't
14746 # use $as_me), people would be surprised to read:
14747 # /* config.h. Generated by config.status. */
14748 configure_input='Generated from '`
14749 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14750 `' by configure.'
14751 if test x"$ac_file" != x-; then
14752 configure_input="$ac_file. $configure_input"
drh710658c2012-01-16 13:00:05 +000014753 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000014754$as_echo "$as_me: creating $ac_file" >&6;}
14755 fi
14756 # Neutralize special characters interpreted by sed in replacement strings.
14757 case $configure_input in #(
14758 *\&* | *\|* | *\\* )
14759 ac_sed_conf_input=`$as_echo "$configure_input" |
14760 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14761 *) ac_sed_conf_input=$configure_input;;
14762 esac
14763
14764 case $ac_tag in
drh710658c2012-01-16 13:00:05 +000014765 *:-:* | *:-) cat >"$tmp/stdin" \
14766 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14767$as_echo "$as_me: error: could not create $ac_file" >&2;}
14768 { (exit 1); exit 1; }; } ;;
drh8b727472009-01-19 18:18:40 +000014769 esac
14770 ;;
drh71eb93e2001-09-28 01:34:43 +000014771 esac
14772
drh8b727472009-01-19 18:18:40 +000014773 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000014774$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000014775 X"$ac_file" : 'X\(//\)[^/]' \| \
14776 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000014777 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14778$as_echo X"$ac_file" |
14779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14780 s//\1/
14781 q
14782 }
14783 /^X\(\/\/\)[^/].*/{
14784 s//\1/
14785 q
14786 }
14787 /^X\(\/\/\)$/{
14788 s//\1/
14789 q
14790 }
14791 /^X\(\/\).*/{
14792 s//\1/
14793 q
14794 }
14795 s/.*/./; q'`
drh710658c2012-01-16 13:00:05 +000014796 { as_dir="$ac_dir"
14797 case $as_dir in #(
14798 -*) as_dir=./$as_dir;;
14799 esac
14800 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14801 as_dirs=
14802 while :; do
14803 case $as_dir in #(
14804 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14805 *) as_qdir=$as_dir;;
14806 esac
14807 as_dirs="'$as_qdir' $as_dirs"
14808 as_dir=`$as_dirname -- "$as_dir" ||
14809$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14810 X"$as_dir" : 'X\(//\)[^/]' \| \
14811 X"$as_dir" : 'X\(//\)$' \| \
14812 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14813$as_echo X"$as_dir" |
14814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14815 s//\1/
14816 q
14817 }
14818 /^X\(\/\/\)[^/].*/{
14819 s//\1/
14820 q
14821 }
14822 /^X\(\/\/\)$/{
14823 s//\1/
14824 q
14825 }
14826 /^X\(\/\).*/{
14827 s//\1/
14828 q
14829 }
14830 s/.*/./; q'`
14831 test -d "$as_dir" && break
14832 done
14833 test -z "$as_dirs" || eval "mkdir $as_dirs"
14834 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14835$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14836 { (exit 1); exit 1; }; }; }
a.rottmann84e63352003-03-24 09:42:16 +000014837 ac_builddir=.
14838
drh8b727472009-01-19 18:18:40 +000014839case "$ac_dir" in
14840.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14841*)
14842 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14843 # A ".." for each directory in $ac_dir_suffix.
14844 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14845 case $ac_top_builddir_sub in
14846 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14847 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14848 esac ;;
14849esac
14850ac_abs_top_builddir=$ac_pwd
14851ac_abs_builddir=$ac_pwd$ac_dir_suffix
14852# for backward compatibility:
14853ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000014854
14855case $srcdir in
drh8b727472009-01-19 18:18:40 +000014856 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000014857 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000014858 ac_top_srcdir=$ac_top_builddir_sub
14859 ac_abs_top_srcdir=$ac_pwd ;;
14860 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000014861 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000014862 ac_top_srcdir=$srcdir
14863 ac_abs_top_srcdir=$srcdir ;;
14864 *) # Relative name.
14865 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14866 ac_top_srcdir=$ac_top_build_prefix$srcdir
14867 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000014868esac
drh8b727472009-01-19 18:18:40 +000014869ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000014870
a.rottmann84e63352003-03-24 09:42:16 +000014871
drh8b727472009-01-19 18:18:40 +000014872 case $ac_mode in
14873 :F)
14874 #
14875 # CONFIG_FILE
14876 #
drh75897232000-05-29 14:26:00 +000014877
drh71eb93e2001-09-28 01:34:43 +000014878 case $INSTALL in
14879 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000014880 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000014881 esac
mlcreech94984912008-03-04 19:03:08 +000014882_ACEOF
drh8b727472009-01-19 18:18:40 +000014883
14884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14885# If the template does not know about datarootdir, expand it.
14886# FIXME: This hack should be removed a few years after 2.60.
14887ac_datarootdir_hack=; ac_datarootdir_seen=
drh710658c2012-01-16 13:00:05 +000014888
drh8b727472009-01-19 18:18:40 +000014889ac_sed_dataroot='
14890/datarootdir/ {
14891 p
14892 q
14893}
14894/@datadir@/p
14895/@docdir@/p
14896/@infodir@/p
14897/@localedir@/p
drh710658c2012-01-16 13:00:05 +000014898/@mandir@/p
14899'
drh8b727472009-01-19 18:18:40 +000014900case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14901*datarootdir*) ac_datarootdir_seen=yes;;
14902*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
drh710658c2012-01-16 13:00:05 +000014903 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000014904$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14905_ACEOF
14906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14907 ac_datarootdir_hack='
14908 s&@datadir@&$datadir&g
14909 s&@docdir@&$docdir&g
14910 s&@infodir@&$infodir&g
14911 s&@localedir@&$localedir&g
14912 s&@mandir@&$mandir&g
drh710658c2012-01-16 13:00:05 +000014913 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000014914esac
14915_ACEOF
14916
14917# Neutralize VPATH when `$srcdir' = `.'.
14918# Shell code in configure.ac might set extrasub.
14919# FIXME: do we really want to maintain this feature?
14920cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14921ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000014922$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000014923_ACEOF
drh8b727472009-01-19 18:18:40 +000014924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014925:t
14926/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000014927s|@configure_input@|$ac_sed_conf_input|;t t
14928s&@top_builddir@&$ac_top_builddir_sub&;t t
14929s&@top_build_prefix@&$ac_top_build_prefix&;t t
14930s&@srcdir@&$ac_srcdir&;t t
14931s&@abs_srcdir@&$ac_abs_srcdir&;t t
14932s&@top_srcdir@&$ac_top_srcdir&;t t
14933s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14934s&@builddir@&$ac_builddir&;t t
14935s&@abs_builddir@&$ac_abs_builddir&;t t
14936s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14937s&@INSTALL@&$ac_INSTALL&;t t
14938$ac_datarootdir_hack
14939"
drh710658c2012-01-16 13:00:05 +000014940eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14941 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14942$as_echo "$as_me: error: could not create $ac_file" >&2;}
14943 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000014944
drh8b727472009-01-19 18:18:40 +000014945test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
drh710658c2012-01-16 13:00:05 +000014946 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14947 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14948 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14949which seems to be undefined. Please make sure it is defined." >&5
drh8b727472009-01-19 18:18:40 +000014950$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drh710658c2012-01-16 13:00:05 +000014951which seems to be undefined. Please make sure it is defined." >&2;}
drh866108f2008-05-13 00:57:21 +000014952
drh710658c2012-01-16 13:00:05 +000014953 rm -f "$tmp/stdin"
drh866108f2008-05-13 00:57:21 +000014954 case $ac_file in
drh710658c2012-01-16 13:00:05 +000014955 -) cat "$tmp/out" && rm -f "$tmp/out";;
14956 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
drh8b727472009-01-19 18:18:40 +000014957 esac \
drh710658c2012-01-16 13:00:05 +000014958 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14959$as_echo "$as_me: error: could not create $ac_file" >&2;}
14960 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014961 ;;
14962 :H)
14963 #
14964 # CONFIG_HEADER
14965 #
drh866108f2008-05-13 00:57:21 +000014966 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000014967 {
14968 $as_echo "/* $configure_input */" \
drh710658c2012-01-16 13:00:05 +000014969 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14970 } >"$tmp/config.h" \
14971 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14972$as_echo "$as_me: error: could not create $ac_file" >&2;}
14973 { (exit 1); exit 1; }; }
14974 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14975 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000014976$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000014977 else
drh8b727472009-01-19 18:18:40 +000014978 rm -f "$ac_file"
drh710658c2012-01-16 13:00:05 +000014979 mv "$tmp/config.h" "$ac_file" \
14980 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14981$as_echo "$as_me: error: could not create $ac_file" >&2;}
14982 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +000014983 fi
14984 else
drh8b727472009-01-19 18:18:40 +000014985 $as_echo "/* $configure_input */" \
drh710658c2012-01-16 13:00:05 +000014986 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14987 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14988$as_echo "$as_me: error: could not create -" >&2;}
14989 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +000014990 fi
drh8b727472009-01-19 18:18:40 +000014991 ;;
drh866108f2008-05-13 00:57:21 +000014992
drh710658c2012-01-16 13:00:05 +000014993 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000014994$as_echo "$as_me: executing $ac_file commands" >&6;}
14995 ;;
14996 esac
drh866108f2008-05-13 00:57:21 +000014997
14998
drh8b727472009-01-19 18:18:40 +000014999 case $ac_file$ac_mode in
15000 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000015001
15002 # See if we are running on zsh, and set the options which allow our
15003 # commands through without removal of \ escapes.
15004 if test -n "${ZSH_VERSION+set}" ; then
15005 setopt NO_GLOB_SUBST
15006 fi
15007
15008 cfgfile="${ofile}T"
15009 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15010 $RM "$cfgfile"
15011
15012 cat <<_LT_EOF >> "$cfgfile"
15013#! $SHELL
15014
15015# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15016# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15017# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15018# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15019#
15020# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15021# 2006, 2007, 2008 Free Software Foundation, Inc.
15022# Written by Gordon Matzigkeit, 1996
15023#
15024# This file is part of GNU Libtool.
15025#
15026# GNU Libtool is free software; you can redistribute it and/or
15027# modify it under the terms of the GNU General Public License as
15028# published by the Free Software Foundation; either version 2 of
15029# the License, or (at your option) any later version.
15030#
15031# As a special exception to the GNU General Public License,
15032# if you distribute this file as part of a program or library that
15033# is built using GNU Libtool, you may include this file under the
15034# same distribution terms that you use for the rest of that program.
15035#
15036# GNU Libtool is distributed in the hope that it will be useful,
15037# but WITHOUT ANY WARRANTY; without even the implied warranty of
15038# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15039# GNU General Public License for more details.
15040#
15041# You should have received a copy of the GNU General Public License
15042# along with GNU Libtool; see the file COPYING. If not, a copy
15043# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15044# obtained by writing to the Free Software Foundation, Inc.,
15045# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15046
15047
15048# The names of the tagged configurations supported by this script.
15049available_tags=""
15050
15051# ### BEGIN LIBTOOL CONFIG
15052
15053# Which release of libtool.m4 was used?
15054macro_version=$macro_version
15055macro_revision=$macro_revision
15056
15057# Whether or not to build shared libraries.
15058build_libtool_libs=$enable_shared
15059
15060# Whether or not to build static libraries.
15061build_old_libs=$enable_static
15062
15063# What type of objects to build.
15064pic_mode=$pic_mode
15065
15066# Whether or not to optimize for fast installation.
15067fast_install=$enable_fast_install
15068
15069# The host system.
15070host_alias=$host_alias
15071host=$host
15072host_os=$host_os
15073
15074# The build system.
15075build_alias=$build_alias
15076build=$build
15077build_os=$build_os
15078
15079# A sed program that does not truncate output.
15080SED=$lt_SED
15081
15082# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15083Xsed="\$SED -e 1s/^X//"
15084
15085# A grep program that handles long lines.
15086GREP=$lt_GREP
15087
15088# An ERE matcher.
15089EGREP=$lt_EGREP
15090
15091# A literal string matcher.
15092FGREP=$lt_FGREP
15093
15094# A BSD- or MS-compatible name lister.
15095NM=$lt_NM
15096
15097# Whether we need soft or hard links.
15098LN_S=$lt_LN_S
15099
15100# What is the maximum length of a command?
15101max_cmd_len=$max_cmd_len
15102
15103# Object file suffix (normally "o").
15104objext=$ac_objext
15105
15106# Executable file suffix (normally "").
15107exeext=$exeext
15108
15109# whether the shell understands "unset".
15110lt_unset=$lt_unset
15111
15112# turn spaces into newlines.
15113SP2NL=$lt_lt_SP2NL
15114
15115# turn newlines into spaces.
15116NL2SP=$lt_lt_NL2SP
15117
15118# How to create reloadable object files.
15119reload_flag=$lt_reload_flag
15120reload_cmds=$lt_reload_cmds
15121
vapier6acb2cf2009-01-28 04:46:28 +000015122# An object symbol dumper.
15123OBJDUMP=$lt_OBJDUMP
15124
mlcreech636a9952008-05-05 22:52:56 +000015125# Method to check whether dependent libraries are shared objects.
15126deplibs_check_method=$lt_deplibs_check_method
15127
15128# Command to use when deplibs_check_method == "file_magic".
15129file_magic_cmd=$lt_file_magic_cmd
15130
15131# The archiver.
15132AR=$lt_AR
15133AR_FLAGS=$lt_AR_FLAGS
15134
15135# A symbol stripping program.
15136STRIP=$lt_STRIP
15137
15138# Commands used to install an old-style archive.
15139RANLIB=$lt_RANLIB
15140old_postinstall_cmds=$lt_old_postinstall_cmds
15141old_postuninstall_cmds=$lt_old_postuninstall_cmds
15142
15143# A C compiler.
15144LTCC=$lt_CC
15145
15146# LTCC compiler flags.
15147LTCFLAGS=$lt_CFLAGS
15148
15149# Take the output of nm and produce a listing of raw symbols and C names.
15150global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15151
15152# Transform the output of nm in a proper C declaration.
15153global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15154
15155# Transform the output of nm in a C name address pair.
15156global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15157
15158# Transform the output of nm in a C name address pair when lib prefix is needed.
15159global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15160
15161# The name of the directory that contains temporary libtool files.
15162objdir=$objdir
15163
15164# Shell to use when invoking shell scripts.
15165SHELL=$lt_SHELL
15166
15167# An echo program that does not interpret backslashes.
15168ECHO=$lt_ECHO
15169
15170# Used to examine libraries when file_magic_cmd begins with "file".
15171MAGIC_CMD=$MAGIC_CMD
15172
15173# Must we lock files when doing compilation?
15174need_locks=$lt_need_locks
15175
15176# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15177DSYMUTIL=$lt_DSYMUTIL
15178
15179# Tool to change global to local symbols on Mac OS X.
15180NMEDIT=$lt_NMEDIT
15181
15182# Tool to manipulate fat objects and archives on Mac OS X.
15183LIPO=$lt_LIPO
15184
15185# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15186OTOOL=$lt_OTOOL
15187
15188# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15189OTOOL64=$lt_OTOOL64
15190
15191# Old archive suffix (normally "a").
15192libext=$libext
15193
15194# Shared library suffix (normally ".so").
15195shrext_cmds=$lt_shrext_cmds
15196
15197# The commands to extract the exported symbol list from a shared archive.
15198extract_expsyms_cmds=$lt_extract_expsyms_cmds
15199
15200# Variables whose values should be saved in libtool wrapper scripts and
15201# restored at link time.
15202variables_saved_for_relink=$lt_variables_saved_for_relink
15203
15204# Do we need the "lib" prefix for modules?
15205need_lib_prefix=$need_lib_prefix
15206
15207# Do we need a version for libraries?
15208need_version=$need_version
15209
15210# Library versioning type.
15211version_type=$version_type
15212
15213# Shared library runtime path variable.
15214runpath_var=$runpath_var
15215
15216# Shared library path variable.
15217shlibpath_var=$shlibpath_var
15218
15219# Is shlibpath searched before the hard-coded library search path?
15220shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15221
15222# Format of library name prefix.
15223libname_spec=$lt_libname_spec
15224
15225# List of archive names. First name is the real one, the rest are links.
15226# The last name is the one that the linker finds with -lNAME
15227library_names_spec=$lt_library_names_spec
15228
15229# The coded name of the library, if different from the real name.
15230soname_spec=$lt_soname_spec
15231
15232# Command to use after installation of a shared archive.
15233postinstall_cmds=$lt_postinstall_cmds
15234
15235# Command to use after uninstallation of a shared archive.
15236postuninstall_cmds=$lt_postuninstall_cmds
15237
15238# Commands used to finish a libtool library installation in a directory.
15239finish_cmds=$lt_finish_cmds
15240
15241# As "finish_cmds", except a single script fragment to be evaled but
15242# not shown.
15243finish_eval=$lt_finish_eval
15244
15245# Whether we should hardcode library paths into libraries.
15246hardcode_into_libs=$hardcode_into_libs
15247
15248# Compile-time system search path for libraries.
15249sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15250
15251# Run-time system search path for libraries.
15252sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15253
15254# Whether dlopen is supported.
15255dlopen_support=$enable_dlopen
15256
15257# Whether dlopen of programs is supported.
15258dlopen_self=$enable_dlopen_self
15259
15260# Whether dlopen of statically linked programs is supported.
15261dlopen_self_static=$enable_dlopen_self_static
15262
15263# Commands to strip libraries.
15264old_striplib=$lt_old_striplib
15265striplib=$lt_striplib
15266
15267
15268# The linker used to build libraries.
15269LD=$lt_LD
15270
15271# Commands used to build an old-style archive.
15272old_archive_cmds=$lt_old_archive_cmds
15273
15274# A language specific compiler.
15275CC=$lt_compiler
15276
15277# Is the compiler the GNU compiler?
15278with_gcc=$GCC
15279
15280# Compiler flag to turn off builtin functions.
15281no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15282
15283# How to pass a linker flag through the compiler.
15284wl=$lt_lt_prog_compiler_wl
15285
15286# Additional compiler flags for building library objects.
15287pic_flag=$lt_lt_prog_compiler_pic
15288
15289# Compiler flag to prevent dynamic linking.
15290link_static_flag=$lt_lt_prog_compiler_static
15291
15292# Does compiler simultaneously support -c and -o options?
15293compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15294
15295# Whether or not to add -lc for building shared libraries.
15296build_libtool_need_lc=$archive_cmds_need_lc
15297
15298# Whether or not to disallow shared libs when runtime libs are static.
15299allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15300
15301# Compiler flag to allow reflexive dlopens.
15302export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15303
15304# Compiler flag to generate shared objects directly from archives.
15305whole_archive_flag_spec=$lt_whole_archive_flag_spec
15306
15307# Whether the compiler copes with passing no objects directly.
15308compiler_needs_object=$lt_compiler_needs_object
15309
15310# Create an old-style archive from a shared archive.
15311old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15312
15313# Create a temporary old-style archive to link instead of a shared archive.
15314old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15315
15316# Commands used to build a shared archive.
15317archive_cmds=$lt_archive_cmds
15318archive_expsym_cmds=$lt_archive_expsym_cmds
15319
15320# Commands used to build a loadable module if different from building
15321# a shared archive.
15322module_cmds=$lt_module_cmds
15323module_expsym_cmds=$lt_module_expsym_cmds
15324
15325# Whether we are building with GNU ld or not.
15326with_gnu_ld=$lt_with_gnu_ld
15327
15328# Flag that allows shared libraries with undefined symbols to be built.
15329allow_undefined_flag=$lt_allow_undefined_flag
15330
15331# Flag that enforces no undefined symbols.
15332no_undefined_flag=$lt_no_undefined_flag
15333
15334# Flag to hardcode \$libdir into a binary during linking.
15335# This must work even if \$libdir does not exist
15336hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15337
15338# If ld is used when linking, flag to hardcode \$libdir into a binary
15339# during linking. This must work even if \$libdir does not exist.
15340hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15341
15342# Whether we need a single "-rpath" flag with a separated argument.
15343hardcode_libdir_separator=$lt_hardcode_libdir_separator
15344
15345# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15346# DIR into the resulting binary.
15347hardcode_direct=$hardcode_direct
15348
15349# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15350# DIR into the resulting binary and the resulting library dependency is
15351# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15352# library is relocated.
15353hardcode_direct_absolute=$hardcode_direct_absolute
15354
15355# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15356# into the resulting binary.
15357hardcode_minus_L=$hardcode_minus_L
15358
15359# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15360# into the resulting binary.
15361hardcode_shlibpath_var=$hardcode_shlibpath_var
15362
15363# Set to "yes" if building a shared library automatically hardcodes DIR
15364# into the library and all subsequent libraries and executables linked
15365# against it.
15366hardcode_automatic=$hardcode_automatic
15367
15368# Set to yes if linker adds runtime paths of dependent libraries
15369# to runtime path list.
15370inherit_rpath=$inherit_rpath
15371
15372# Whether libtool must link a program against all its dependency libraries.
15373link_all_deplibs=$link_all_deplibs
15374
15375# Fix the shell variable \$srcfile for the compiler.
15376fix_srcfile_path=$lt_fix_srcfile_path
15377
15378# Set to "yes" if exported symbols are required.
15379always_export_symbols=$always_export_symbols
15380
15381# The commands to list exported symbols.
15382export_symbols_cmds=$lt_export_symbols_cmds
15383
15384# Symbols that should not be listed in the preloaded symbols.
15385exclude_expsyms=$lt_exclude_expsyms
15386
15387# Symbols that must always be exported.
15388include_expsyms=$lt_include_expsyms
15389
15390# Commands necessary for linking programs (against libraries) with templates.
15391prelink_cmds=$lt_prelink_cmds
15392
15393# Specify filename containing input files.
15394file_list_spec=$lt_file_list_spec
15395
15396# How to hardcode a shared library path into an executable.
15397hardcode_action=$hardcode_action
15398
15399# ### END LIBTOOL CONFIG
15400
15401_LT_EOF
15402
15403 case $host_os in
15404 aix3*)
15405 cat <<\_LT_EOF >> "$cfgfile"
15406# AIX sometimes has problems with the GCC collect2 program. For some
15407# reason, if we set the COLLECT_NAMES environment variable, the problems
15408# vanish in a puff of smoke.
15409if test "X${COLLECT_NAMES+set}" != Xset; then
15410 COLLECT_NAMES=
15411 export COLLECT_NAMES
15412fi
15413_LT_EOF
15414 ;;
15415 esac
15416
15417
15418ltmain="$ac_aux_dir/ltmain.sh"
15419
15420
15421 # We use sed instead of cat because bash on DJGPP gets confused if
15422 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15423 # text mode, it properly converts lines to CR/LF. This bash problem
15424 # is reportedly fixed, but why not run on old versions too?
15425 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15426 || (rm -f "$cfgfile"; exit 1)
15427
15428 case $xsi_shell in
15429 yes)
15430 cat << \_LT_EOF >> "$cfgfile"
15431
15432# func_dirname file append nondir_replacement
15433# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15434# otherwise set result to NONDIR_REPLACEMENT.
15435func_dirname ()
15436{
15437 case ${1} in
15438 */*) func_dirname_result="${1%/*}${2}" ;;
15439 * ) func_dirname_result="${3}" ;;
15440 esac
15441}
15442
15443# func_basename file
15444func_basename ()
15445{
15446 func_basename_result="${1##*/}"
15447}
15448
15449# func_dirname_and_basename file append nondir_replacement
15450# perform func_basename and func_dirname in a single function
15451# call:
15452# dirname: Compute the dirname of FILE. If nonempty,
15453# add APPEND to the result, otherwise set result
15454# to NONDIR_REPLACEMENT.
15455# value returned in "$func_dirname_result"
15456# basename: Compute filename of FILE.
15457# value retuned in "$func_basename_result"
15458# Implementation must be kept synchronized with func_dirname
15459# and func_basename. For efficiency, we do not delegate to
15460# those functions but instead duplicate the functionality here.
15461func_dirname_and_basename ()
15462{
15463 case ${1} in
15464 */*) func_dirname_result="${1%/*}${2}" ;;
15465 * ) func_dirname_result="${3}" ;;
15466 esac
15467 func_basename_result="${1##*/}"
15468}
15469
15470# func_stripname prefix suffix name
15471# strip PREFIX and SUFFIX off of NAME.
15472# PREFIX and SUFFIX must not contain globbing or regex special
15473# characters, hashes, percent signs, but SUFFIX may contain a leading
15474# dot (in which case that matches only a dot).
15475func_stripname ()
15476{
15477 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15478 # positional parameters, so assign one to ordinary parameter first.
15479 func_stripname_result=${3}
15480 func_stripname_result=${func_stripname_result#"${1}"}
15481 func_stripname_result=${func_stripname_result%"${2}"}
15482}
15483
15484# func_opt_split
15485func_opt_split ()
15486{
15487 func_opt_split_opt=${1%%=*}
15488 func_opt_split_arg=${1#*=}
15489}
15490
15491# func_lo2o object
15492func_lo2o ()
15493{
15494 case ${1} in
15495 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15496 *) func_lo2o_result=${1} ;;
15497 esac
15498}
15499
15500# func_xform libobj-or-source
15501func_xform ()
15502{
15503 func_xform_result=${1%.*}.lo
15504}
15505
15506# func_arith arithmetic-term...
15507func_arith ()
15508{
15509 func_arith_result=$(( $* ))
15510}
15511
15512# func_len string
15513# STRING may not start with a hyphen.
15514func_len ()
15515{
15516 func_len_result=${#1}
15517}
15518
15519_LT_EOF
15520 ;;
15521 *) # Bourne compatible functions.
15522 cat << \_LT_EOF >> "$cfgfile"
15523
15524# func_dirname file append nondir_replacement
15525# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15526# otherwise set result to NONDIR_REPLACEMENT.
15527func_dirname ()
15528{
15529 # Extract subdirectory from the argument.
15530 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15531 if test "X$func_dirname_result" = "X${1}"; then
15532 func_dirname_result="${3}"
15533 else
15534 func_dirname_result="$func_dirname_result${2}"
15535 fi
15536}
15537
15538# func_basename file
15539func_basename ()
15540{
15541 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15542}
15543
15544
15545# func_stripname prefix suffix name
15546# strip PREFIX and SUFFIX off of NAME.
15547# PREFIX and SUFFIX must not contain globbing or regex special
15548# characters, hashes, percent signs, but SUFFIX may contain a leading
15549# dot (in which case that matches only a dot).
15550# func_strip_suffix prefix name
15551func_stripname ()
15552{
15553 case ${2} in
15554 .*) func_stripname_result=`$ECHO "X${3}" \
15555 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15556 *) func_stripname_result=`$ECHO "X${3}" \
15557 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15558 esac
15559}
15560
15561# sed scripts:
15562my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15563my_sed_long_arg='1s/^-[^=]*=//'
15564
15565# func_opt_split
15566func_opt_split ()
15567{
15568 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15569 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15570}
15571
15572# func_lo2o object
15573func_lo2o ()
15574{
15575 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15576}
15577
15578# func_xform libobj-or-source
15579func_xform ()
15580{
15581 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15582}
15583
15584# func_arith arithmetic-term...
15585func_arith ()
15586{
15587 func_arith_result=`expr "$@"`
15588}
15589
15590# func_len string
15591# STRING may not start with a hyphen.
15592func_len ()
15593{
15594 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15595}
15596
15597_LT_EOF
15598esac
15599
15600case $lt_shell_append in
15601 yes)
15602 cat << \_LT_EOF >> "$cfgfile"
15603
15604# func_append var value
15605# Append VALUE to the end of shell variable VAR.
15606func_append ()
15607{
15608 eval "$1+=\$2"
15609}
15610_LT_EOF
15611 ;;
15612 *)
15613 cat << \_LT_EOF >> "$cfgfile"
15614
15615# func_append var value
15616# Append VALUE to the end of shell variable VAR.
15617func_append ()
15618{
15619 eval "$1=\$$1\$2"
15620}
15621
15622_LT_EOF
15623 ;;
15624 esac
15625
15626
15627 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15628 || (rm -f "$cfgfile"; exit 1)
15629
15630 mv -f "$cfgfile" "$ofile" ||
15631 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15632 chmod +x "$ofile"
15633
15634 ;;
mlcreech94984912008-03-04 19:03:08 +000015635
drh8b727472009-01-19 18:18:40 +000015636 esac
15637done # for ac_tag
15638
drh71eb93e2001-09-28 01:34:43 +000015639
drh710658c2012-01-16 13:00:05 +000015640{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000015641_ACEOF
drh710658c2012-01-16 13:00:05 +000015642chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000015643ac_clean_files=$ac_clean_files_save
15644
drh8b727472009-01-19 18:18:40 +000015645test $ac_write_fail = 0 ||
drh710658c2012-01-16 13:00:05 +000015646 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15647$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15648 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000015649
a.rottmann84e63352003-03-24 09:42:16 +000015650
drh71eb93e2001-09-28 01:34:43 +000015651# configure is writing to config.log, and then calls config.status.
15652# config.status does its own redirection, appending to config.log.
15653# Unfortunately, on DOS this fails, as config.log is still kept open
15654# by configure, so config.status won't be able to write to it; its
15655# output is simply discarded. So we exec the FD to /dev/null,
15656# effectively closing config.log, so it can be properly (re)opened and
15657# appended to by config.status. When coming back to configure, we
15658# need to make the FD available again.
15659if test "$no_create" != yes; then
15660 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000015661 ac_config_status_args=
15662 test "$silent" = yes &&
15663 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000015664 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000015665 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000015666 exec 5>>config.log
15667 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15668 # would make configure fail if this is the last instruction.
drh710658c2012-01-16 13:00:05 +000015669 $ac_cs_success || { (exit 1); exit 1; }
drh71eb93e2001-09-28 01:34:43 +000015670fi
drh8b727472009-01-19 18:18:40 +000015671if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drh710658c2012-01-16 13:00:05 +000015672 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
15673$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000015674fi
drhbc7a22d2009-10-13 22:47:13 +000015675