blob: 532e0b202de59859f825adfd859e46d27374622a [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.
drh3acc85f2015-08-06 12:54:13 +00003# Generated by GNU Autoconf 2.69 for sqlite 3.8.12.
drh75897232000-05-29 14:26:00 +00004#
drhf922ca42015-05-14 15:39:18 +00005#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
drh75897232000-05-29 14:26:00 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
drhf922ca42015-05-14 15:39:18 +000011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000014
drh8b727472009-01-19 18:18:40 +000015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
drhf922ca42015-05-14 15:39:18 +000017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
a.rottmann84e63352003-03-24 09:42:16 +000018 emulate sh
19 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000023 setopt NO_GLOB_SUBST
24else
drhf922ca42015-05-14 15:39:18 +000025 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
drh8b727472009-01-19 18:18:40 +000030esac
a.rottmann84e63352003-03-24 09:42:16 +000031fi
drh8b727472009-01-19 18:18:40 +000032
33
drh8b727472009-01-19 18:18:40 +000034as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drhf922ca42015-05-14 15:39:18 +000041# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (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;
drhf922ca42015-05-14 15:39:18 +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
mlcreech94984912008-03-04 19:03:08 +000081
drh8b727472009-01-19 18:18:40 +000082# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
drhf922ca42015-05-14 15:39:18 +000090as_myself=
91case $0 in #((
drh8b727472009-01-19 18:18:40 +000092 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
drh8b727472009-01-19 18:18:40 +0000100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drhf922ca42015-05-14 15:39:18 +0000111 exit 1
drh8b727472009-01-19 18:18:40 +0000112fi
113
drhf922ca42015-05-14 15:39:18 +0000114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +0000121done
mlcreech94984912008-03-04 19:03:08 +0000122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
drh8b727472009-01-19 18:18:40 +0000127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +0000131
drhf922ca42015-05-14 15:39:18 +0000132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417} # as_fn_error
418
drh8b727472009-01-19 18:18:40 +0000419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +0000421 as_expr=expr
422else
423 as_expr=false
424fi
425
drh8b727472009-01-19 18:18:40 +0000426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +0000427 as_basename=basename
428else
429 as_basename=false
430fi
431
drhf922ca42015-05-14 15:39:18 +0000432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
mlcreech94984912008-03-04 19:03:08 +0000437
drh8b727472009-01-19 18:18:40 +0000438as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +0000439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +0000441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
drhf922ca42015-05-14 15:39:18 +0000457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
mlcreech94984912008-03-04 19:03:08 +0000463
464
drhf922ca42015-05-14 15:39:18 +0000465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
drh8b727472009-01-19 18:18:40 +0000470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +0000474 sed '
drh8b727472009-01-19 18:18:40 +0000475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
a.rottmann84e63352003-03-24 09:42:16 +0000479 N
drh8b727472009-01-19 18:18:40 +0000480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +0000482 t loop
drh8b727472009-01-19 18:18:40 +0000483 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +0000484 ' >$as_me.lineno &&
drh8b727472009-01-19 18:18:40 +0000485 chmod +x "$as_me.lineno" ||
drhf922ca42015-05-14 15:39:18 +0000486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
a.rottmann84e63352003-03-24 09:42:16 +0000487
drhf922ca42015-05-14 15:39:18 +0000488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
a.rottmann84e63352003-03-24 09:42:16 +0000492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
drh8b727472009-01-19 18:18:40 +0000494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
a.rottmann84e63352003-03-24 09:42:16 +0000496 # Exit status is that of the last command.
497 exit
498}
499
drh8b727472009-01-19 18:18:40 +0000500ECHO_C= ECHO_N= ECHO_T=
drhf922ca42015-05-14 15:39:18 +0000501case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +0000502-n*)
drhf922ca42015-05-14 15:39:18 +0000503 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +0000504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drhf922ca42015-05-14 15:39:18 +0000505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +0000508 esac;;
509*)
510 ECHO_N='-n';;
511esac
a.rottmann84e63352003-03-24 09:42:16 +0000512
513rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +0000514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +0000522 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +0000523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
drhf922ca42015-05-14 15:39:18 +0000526 # In both cases, we have to default to `cp -pR'.
drh8b727472009-01-19 18:18:40 +0000527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drhf922ca42015-05-14 15:39:18 +0000528 as_ln_s='cp -pR'
drh8b727472009-01-19 18:18:40 +0000529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
drhf922ca42015-05-14 15:39:18 +0000532 as_ln_s='cp -pR'
mlcreech636a9952008-05-05 22:52:56 +0000533 fi
a.rottmann84e63352003-03-24 09:42:16 +0000534else
drhf922ca42015-05-14 15:39:18 +0000535 as_ln_s='cp -pR'
a.rottmann84e63352003-03-24 09:42:16 +0000536fi
drh8b727472009-01-19 18:18:40 +0000537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +0000539
540if mkdir -p . 2>/dev/null; then
drhf922ca42015-05-14 15:39:18 +0000541 as_mkdir_p='mkdir -p "$as_dir"'
a.rottmann84e63352003-03-24 09:42:16 +0000542else
a.rottmann964dbb12004-02-26 19:47:42 +0000543 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +0000544 as_mkdir_p=false
545fi
546
drhf922ca42015-05-14 15:39:18 +0000547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
a.rottmann84e63352003-03-24 09:42:16 +0000549
550# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +0000551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000552
553# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +0000554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000555
556
drh75897232000-05-29 14:26:00 +0000557
drh71eb93e2001-09-28 01:34:43 +0000558# Check that we are running under the correct shell.
559SHELL=${CONFIG_SHELL-/bin/sh}
560
mlcreech636a9952008-05-05 22:52:56 +0000561case X$lt_ECHO in
drh71eb93e2001-09-28 01:34:43 +0000562X*--fallback-echo)
563 # Remove one level of quotation (which was required for Make).
mlcreech636a9952008-05-05 22:52:56 +0000564 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
drh71eb93e2001-09-28 01:34:43 +0000565 ;;
566esac
567
mlcreech636a9952008-05-05 22:52:56 +0000568ECHO=${lt_ECHO-echo}
drh71eb93e2001-09-28 01:34:43 +0000569if test "X$1" = X--no-reexec; then
570 # Discard the --no-reexec flag, and continue.
571 shift
572elif test "X$1" = X--fallback-echo; then
573 # Avoid inline document here, it may be left over
574 :
mlcreech636a9952008-05-05 22:52:56 +0000575elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
576 # Yippee, $ECHO works!
drh71eb93e2001-09-28 01:34:43 +0000577 :
578else
579 # Restart under the correct shell.
580 exec $SHELL "$0" --no-reexec ${1+"$@"}
581fi
582
583if test "X$1" = X--fallback-echo; then
584 # used as fallback echo
585 shift
mlcreech636a9952008-05-05 22:52:56 +0000586 cat <<_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +0000587$*
mlcreech636a9952008-05-05 22:52:56 +0000588_LT_EOF
drh71eb93e2001-09-28 01:34:43 +0000589 exit 0
590fi
591
592# The HP-UX ksh and POSIX shell print the target directory to stdout
593# if CDPATH is set.
vapier7f19c022007-02-17 14:46:31 +0000594(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
drh71eb93e2001-09-28 01:34:43 +0000595
mlcreech636a9952008-05-05 22:52:56 +0000596if test -z "$lt_ECHO"; then
597 if test "X${echo_test_string+set}" != Xset; then
598 # find a string as large as possible, as long as the shell can cope with it
599 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
602 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
603 then
604 break
605 fi
606 done
607 fi
drh71eb93e2001-09-28 01:34:43 +0000608
mlcreech636a9952008-05-05 22:52:56 +0000609 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 :
613 else
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
617 #
618 # So, first we look for a working echo in the user's PATH.
drh71eb93e2001-09-28 01:34:43 +0000619
mlcreech636a9952008-05-05 22:52:56 +0000620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
622 IFS="$lt_save_ifs"
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 ECHO="$dir/echo"
628 break
629 fi
630 done
a.rottmann9bc8b932004-02-29 15:18:31 +0000631 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000632
mlcreech636a9952008-05-05 22:52:56 +0000633 if test "X$ECHO" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
639 ECHO='print -r'
640 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
646 export CONFIG_SHELL
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
drh71eb93e2001-09-28 01:34:43 +0000648 else
mlcreech636a9952008-05-05 22:52:56 +0000649 # Try using printf.
650 ECHO='printf %s\n'
651 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 # Cool, printf works
655 :
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 export CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
663 export SHELL
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 ECHO="$CONFIG_SHELL $0 --fallback-echo"
670 else
671 # maybe with a smaller string...
672 prev=:
drh71eb93e2001-09-28 01:34:43 +0000673
mlcreech636a9952008-05-05 22:52:56 +0000674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
676 then
677 break
678 fi
679 prev="$cmd"
680 done
681
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 else
687 # Oops. We lost completely, so just stick with echo.
688 ECHO=echo
drh71eb93e2001-09-28 01:34:43 +0000689 fi
mlcreech636a9952008-05-05 22:52:56 +0000690 fi
drh71eb93e2001-09-28 01:34:43 +0000691 fi
692 fi
693 fi
694fi
drh71eb93e2001-09-28 01:34:43 +0000695
696# Copy echo and quote the copy suitably for passing to libtool from
697# the Makefile, instead of quoting the original, which is used later.
mlcreech636a9952008-05-05 22:52:56 +0000698lt_ECHO=$ECHO
699if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
drh71eb93e2001-09-28 01:34:43 +0000701fi
702
drh71eb93e2001-09-28 01:34:43 +0000703
drh71eb93e2001-09-28 01:34:43 +0000704
a.rottmann9bc8b932004-02-29 15:18:31 +0000705
drhf922ca42015-05-14 15:39:18 +0000706test -n "$DJDIR" || exec 7<&0 </dev/null
707exec 6>&1
drh8b727472009-01-19 18:18:40 +0000708
drh71eb93e2001-09-28 01:34:43 +0000709# Name of the host.
drhf922ca42015-05-14 15:39:18 +0000710# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
drh71eb93e2001-09-28 01:34:43 +0000711# so uname gets run too.
712ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713
drh71eb93e2001-09-28 01:34:43 +0000714#
715# Initializations.
716#
drh75897232000-05-29 14:26:00 +0000717ac_default_prefix=/usr/local
drh8b727472009-01-19 18:18:40 +0000718ac_clean_files=
a.rottmann84e63352003-03-24 09:42:16 +0000719ac_config_libobj_dir=.
drh8b727472009-01-19 18:18:40 +0000720LIBOBJS=
drh71eb93e2001-09-28 01:34:43 +0000721cross_compiling=no
722subdirs=
a.rottmann84e63352003-03-24 09:42:16 +0000723MFLAGS=
724MAKEFLAGS=
drh71eb93e2001-09-28 01:34:43 +0000725
a.rottmann84e63352003-03-24 09:42:16 +0000726# Identity of this package.
mlcreechb87057f2008-03-06 07:19:20 +0000727PACKAGE_NAME='sqlite'
728PACKAGE_TARNAME='sqlite'
drh3acc85f2015-08-06 12:54:13 +0000729PACKAGE_VERSION='3.8.12'
730PACKAGE_STRING='sqlite 3.8.12'
mlcreechb87057f2008-03-06 07:19:20 +0000731PACKAGE_BUGREPORT=''
drhf922ca42015-05-14 15:39:18 +0000732PACKAGE_URL=''
a.rottmann84e63352003-03-24 09:42:16 +0000733
a.rottmann84e63352003-03-24 09:42:16 +0000734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
drh8b727472009-01-19 18:18:40 +0000737#ifdef HAVE_SYS_TYPES_H
danielk197733a14782008-08-04 14:50:05 +0000738# include <sys/types.h>
739#endif
drh8b727472009-01-19 18:18:40 +0000740#ifdef HAVE_SYS_STAT_H
a.rottmann84e63352003-03-24 09:42:16 +0000741# include <sys/stat.h>
742#endif
drh8b727472009-01-19 18:18:40 +0000743#ifdef STDC_HEADERS
a.rottmann84e63352003-03-24 09:42:16 +0000744# include <stdlib.h>
745# include <stddef.h>
746#else
drh8b727472009-01-19 18:18:40 +0000747# ifdef HAVE_STDLIB_H
danielk197733a14782008-08-04 14:50:05 +0000748# include <stdlib.h>
749# endif
a.rottmann84e63352003-03-24 09:42:16 +0000750#endif
drh8b727472009-01-19 18:18:40 +0000751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
a.rottmann84e63352003-03-24 09:42:16 +0000753# include <memory.h>
754# endif
755# include <string.h>
756#endif
drh8b727472009-01-19 18:18:40 +0000757#ifdef HAVE_STRINGS_H
a.rottmann84e63352003-03-24 09:42:16 +0000758# include <strings.h>
759#endif
drh8b727472009-01-19 18:18:40 +0000760#ifdef HAVE_INTTYPES_H
a.rottmann84e63352003-03-24 09:42:16 +0000761# include <inttypes.h>
a.rottmann84e63352003-03-24 09:42:16 +0000762#endif
drh8b727472009-01-19 18:18:40 +0000763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
a.rottmann84e63352003-03-24 09:42:16 +0000767# include <unistd.h>
768#endif"
769
drhf922ca42015-05-14 15:39:18 +0000770ac_subst_vars='LTLIBOBJS
drh710658c2012-01-16 13:00:05 +0000771LIBOBJS
drhf922ca42015-05-14 15:39:18 +0000772BUILD_CFLAGS
773USE_GCOV
774OPT_FEATURE_FLAGS
775USE_AMALGAMATION
776TARGET_DEBUG
777TARGET_HAVE_READLINE
778TARGET_READLINE_INC
779TARGET_READLINE_LIBS
780HAVE_TCL
781TCL_SHLIB_SUFFIX
782TCL_STUB_LIB_SPEC
783TCL_STUB_LIB_FLAG
784TCL_STUB_LIB_FILE
785TCL_LIB_SPEC
786TCL_LIB_FLAG
787TCL_LIB_FILE
788TCL_INCLUDE_SPEC
789TCL_SRC_DIR
790TCL_BIN_DIR
791TCL_VERSION
792TARGET_EXEEXT
793SQLITE_OS_WIN
794SQLITE_OS_UNIX
795BUILD_EXEEXT
796TEMP_STORE
797ALLOWRELEASE
798SQLITE_THREADSAFE
799BUILD_CC
800VERSION_NUMBER
801RELEASE
802VERSION
803program_prefix
804TCLLIBDIR
805TCLSH_CMD
806AWK
807INSTALL_DATA
808INSTALL_SCRIPT
809INSTALL_PROGRAM
810CPP
811OTOOL64
812OTOOL
813LIPO
814NMEDIT
815DSYMUTIL
816lt_ECHO
817RANLIB
818STRIP
819AR
820OBJDUMP
821LN_S
822NM
823ac_ct_DUMPBIN
824DUMPBIN
825LD
826FGREP
827EGREP
828GREP
829SED
830OBJEXT
831EXEEXT
832ac_ct_CC
833CPPFLAGS
834LDFLAGS
835CFLAGS
836CC
837host_os
838host_vendor
839host_cpu
840host
841build_os
842build_vendor
843build_cpu
844build
845LIBTOOL
846target_alias
847host_alias
848build_alias
849LIBS
850ECHO_T
851ECHO_N
852ECHO_C
853DEFS
854mandir
855localedir
856libdir
857psdir
858pdfdir
859dvidir
860htmldir
861infodir
862docdir
863oldincludedir
864includedir
865localstatedir
866sharedstatedir
867sysconfdir
868datadir
869datarootdir
870libexecdir
871sbindir
872bindir
873program_transform_name
874prefix
875exec_prefix
876PACKAGE_URL
877PACKAGE_BUGREPORT
878PACKAGE_STRING
879PACKAGE_VERSION
880PACKAGE_TARNAME
881PACKAGE_NAME
882PATH_SEPARATOR
883SHELL'
a.rottmann84e63352003-03-24 09:42:16 +0000884ac_subst_files=''
drh8b727472009-01-19 18:18:40 +0000885ac_user_opts='
886enable_option_checking
887enable_shared
888enable_static
889with_pic
890enable_fast_install
891with_gnu_ld
892enable_libtool_lock
893enable_largefile
drh8b727472009-01-19 18:18:40 +0000894enable_threadsafe
drh8b727472009-01-19 18:18:40 +0000895enable_releasemode
896enable_tempstore
897enable_tcl
898with_tcl
899enable_readline
900with_readline_lib
901with_readline_inc
902enable_debug
903enable_amalgamation
904enable_load_extension
drhce1d9f52015-10-09 12:48:33 +0000905enable_fts3
906enable_fts4
907enable_fts5
908enable_json1
909enable_rtree
drh8b727472009-01-19 18:18:40 +0000910enable_gcov
911'
912 ac_precious_vars='build_alias
913host_alias
914target_alias
915CC
916CFLAGS
917LDFLAGS
918LIBS
919CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000920CPP
921TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000922
drh75897232000-05-29 14:26:00 +0000923
924# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000925ac_init_help=
926ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000927ac_unrecognized_opts=
928ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000929# The variables have the same names as the options, with
930# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000931cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000932exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000933no_create=
drh75897232000-05-29 14:26:00 +0000934no_recursion=
935prefix=NONE
936program_prefix=NONE
937program_suffix=NONE
938program_transform_name=s,x,x,
939silent=
940site=
941srcdir=
drh75897232000-05-29 14:26:00 +0000942verbose=
943x_includes=NONE
944x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000945
946# Installation directory options.
947# These are left unexpanded so users can "make install exec_prefix=/foo"
948# and all the variables that are supposed to be based on exec_prefix
949# by default will actually change.
950# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000951# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000952bindir='${exec_prefix}/bin'
953sbindir='${exec_prefix}/sbin'
954libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000955datarootdir='${prefix}/share'
956datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000957sysconfdir='${prefix}/etc'
958sharedstatedir='${prefix}/com'
959localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000960includedir='${prefix}/include'
961oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000962docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
963infodir='${datarootdir}/info'
964htmldir='${docdir}'
965dvidir='${docdir}'
966pdfdir='${docdir}'
967psdir='${docdir}'
968libdir='${exec_prefix}/lib'
969localedir='${datarootdir}/locale'
970mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000971
drh75897232000-05-29 14:26:00 +0000972ac_prev=
drh8b727472009-01-19 18:18:40 +0000973ac_dashdash=
drh75897232000-05-29 14:26:00 +0000974for ac_option
975do
drh75897232000-05-29 14:26:00 +0000976 # If the previous option needs an argument, assign it.
977 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000978 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000979 ac_prev=
980 continue
981 fi
982
drh8b727472009-01-19 18:18:40 +0000983 case $ac_option in
drhf922ca42015-05-14 15:39:18 +0000984 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985 *=) ac_optarg= ;;
986 *) ac_optarg=yes ;;
drh8b727472009-01-19 18:18:40 +0000987 esac
drh75897232000-05-29 14:26:00 +0000988
989 # Accept the important Cygnus configure options, so we can diagnose typos.
990
drh8b727472009-01-19 18:18:40 +0000991 case $ac_dashdash$ac_option in
992 --)
993 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +0000994
995 -bindir | --bindir | --bindi | --bind | --bin | --bi)
996 ac_prev=bindir ;;
997 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +0000998 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000999
1000 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001001 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001002 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001003 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001004
1005 -cache-file | --cache-file | --cache-fil | --cache-fi \
1006 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1007 ac_prev=cache_file ;;
1008 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1009 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001010 cache_file=$ac_optarg ;;
1011
1012 --config-cache | -C)
1013 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001014
drh8b727472009-01-19 18:18:40 +00001015 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001016 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001017 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001018 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001019
drh8b727472009-01-19 18:18:40 +00001020 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1021 | --dataroo | --dataro | --datar)
1022 ac_prev=datarootdir ;;
1023 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1024 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1025 datarootdir=$ac_optarg ;;
1026
drh75897232000-05-29 14:26:00 +00001027 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001028 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001029 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001031 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001032 ac_useropt_orig=$ac_useropt
1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034 case $ac_user_opts in
1035 *"
1036"enable_$ac_useropt"
1037"*) ;;
1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1039 ac_unrecognized_sep=', ';;
1040 esac
1041 eval enable_$ac_useropt=no ;;
1042
1043 -docdir | --docdir | --docdi | --doc | --do)
1044 ac_prev=docdir ;;
1045 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1046 docdir=$ac_optarg ;;
1047
1048 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1049 ac_prev=dvidir ;;
1050 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1051 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001052
1053 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001054 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001055 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001057 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1061 *"
1062"enable_$ac_useropt"
1063"*) ;;
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001066 esac
drh8b727472009-01-19 18:18:40 +00001067 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001068
1069 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1070 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1071 | --exec | --exe | --ex)
1072 ac_prev=exec_prefix ;;
1073 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1074 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1075 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001076 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001077
1078 -gas | --gas | --ga | --g)
1079 # Obsolete; use --with-gas.
1080 with_gas=yes ;;
1081
drh71eb93e2001-09-28 01:34:43 +00001082 -help | --help | --hel | --he | -h)
1083 ac_init_help=long ;;
1084 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1085 ac_init_help=recursive ;;
1086 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1087 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001088
1089 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001090 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001091 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001092 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001093
drh8b727472009-01-19 18:18:40 +00001094 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1095 ac_prev=htmldir ;;
1096 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1097 | --ht=*)
1098 htmldir=$ac_optarg ;;
1099
drh75897232000-05-29 14:26:00 +00001100 -includedir | --includedir | --includedi | --included | --include \
1101 | --includ | --inclu | --incl | --inc)
1102 ac_prev=includedir ;;
1103 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1104 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001105 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001106
1107 -infodir | --infodir | --infodi | --infod | --info | --inf)
1108 ac_prev=infodir ;;
1109 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001110 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001111
1112 -libdir | --libdir | --libdi | --libd)
1113 ac_prev=libdir ;;
1114 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001115 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001116
1117 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1118 | --libexe | --libex | --libe)
1119 ac_prev=libexecdir ;;
1120 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1121 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001122 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001123
drh8b727472009-01-19 18:18:40 +00001124 -localedir | --localedir | --localedi | --localed | --locale)
1125 ac_prev=localedir ;;
1126 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1127 localedir=$ac_optarg ;;
1128
drh75897232000-05-29 14:26:00 +00001129 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001130 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001131 ac_prev=localstatedir ;;
1132 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001133 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001134 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001135
1136 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1137 ac_prev=mandir ;;
1138 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001139 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001140
1141 -nfp | --nfp | --nf)
1142 # Obsolete; use --without-fp.
1143 with_fp=no ;;
1144
1145 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001146 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001147 no_create=yes ;;
1148
1149 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1150 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1151 no_recursion=yes ;;
1152
1153 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1154 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1155 | --oldin | --oldi | --old | --ol | --o)
1156 ac_prev=oldincludedir ;;
1157 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1158 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1159 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001160 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001161
1162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1163 ac_prev=prefix ;;
1164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001165 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001166
1167 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1168 | --program-pre | --program-pr | --program-p)
1169 ac_prev=program_prefix ;;
1170 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1171 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001172 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001173
1174 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1175 | --program-suf | --program-su | --program-s)
1176 ac_prev=program_suffix ;;
1177 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1178 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001179 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001180
1181 -program-transform-name | --program-transform-name \
1182 | --program-transform-nam | --program-transform-na \
1183 | --program-transform-n | --program-transform- \
1184 | --program-transform | --program-transfor \
1185 | --program-transfo | --program-transf \
1186 | --program-trans | --program-tran \
1187 | --progr-tra | --program-tr | --program-t)
1188 ac_prev=program_transform_name ;;
1189 -program-transform-name=* | --program-transform-name=* \
1190 | --program-transform-nam=* | --program-transform-na=* \
1191 | --program-transform-n=* | --program-transform-=* \
1192 | --program-transform=* | --program-transfor=* \
1193 | --program-transfo=* | --program-transf=* \
1194 | --program-trans=* | --program-tran=* \
1195 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001196 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001197
drh8b727472009-01-19 18:18:40 +00001198 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1199 ac_prev=pdfdir ;;
1200 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1201 pdfdir=$ac_optarg ;;
1202
1203 -psdir | --psdir | --psdi | --psd | --ps)
1204 ac_prev=psdir ;;
1205 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1206 psdir=$ac_optarg ;;
1207
drh75897232000-05-29 14:26:00 +00001208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 silent=yes ;;
1211
1212 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1213 ac_prev=sbindir ;;
1214 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1215 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001216 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001217
1218 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1219 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1220 | --sharedst | --shareds | --shared | --share | --shar \
1221 | --sha | --sh)
1222 ac_prev=sharedstatedir ;;
1223 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1224 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1225 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1226 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001227 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001228
1229 -site | --site | --sit)
1230 ac_prev=site ;;
1231 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001232 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001233
1234 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1235 ac_prev=srcdir ;;
1236 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001237 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001238
1239 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1240 | --syscon | --sysco | --sysc | --sys | --sy)
1241 ac_prev=sysconfdir ;;
1242 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1243 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001244 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001245
1246 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001247 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001248 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001249 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001250
1251 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1252 verbose=yes ;;
1253
drh71eb93e2001-09-28 01:34:43 +00001254 -version | --version | --versio | --versi | --vers | -V)
1255 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001256
1257 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001258 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001259 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001261 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1265 *"
1266"with_$ac_useropt"
1267"*) ;;
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001270 esac
drh8b727472009-01-19 18:18:40 +00001271 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001272
1273 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001274 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001275 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001277 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1281 *"
1282"with_$ac_useropt"
1283"*) ;;
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1286 esac
1287 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001288
1289 --x)
1290 # Obsolete; use --with-x.
1291 with_x=yes ;;
1292
1293 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1294 | --x-incl | --x-inc | --x-in | --x-i)
1295 ac_prev=x_includes ;;
1296 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1297 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001298 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001299
1300 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1301 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1302 ac_prev=x_libraries ;;
1303 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1304 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001305 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001306
drhf922ca42015-05-14 15:39:18 +00001307 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1308Try \`$0 --help' for more information"
drh75897232000-05-29 14:26:00 +00001309 ;;
1310
drh71eb93e2001-09-28 01:34:43 +00001311 *=*)
1312 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1313 # Reject names that are not valid shell variable names.
drhf922ca42015-05-14 15:39:18 +00001314 case $ac_envvar in #(
1315 '' | [0-9]* | *[!_$as_cr_alnum]* )
1316 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1317 esac
drh8b727472009-01-19 18:18:40 +00001318 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001319 export $ac_envvar ;;
1320
drh75897232000-05-29 14:26:00 +00001321 *)
drh71eb93e2001-09-28 01:34:43 +00001322 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001323 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001324 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001325 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drhf922ca42015-05-14 15:39:18 +00001326 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
drh75897232000-05-29 14:26:00 +00001327 ;;
1328
1329 esac
1330done
1331
1332if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001333 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drhf922ca42015-05-14 15:39:18 +00001334 as_fn_error $? "missing argument to $ac_option"
drh75897232000-05-29 14:26:00 +00001335fi
1336
drh8b727472009-01-19 18:18:40 +00001337if test -n "$ac_unrecognized_opts"; then
1338 case $enable_option_checking in
1339 no) ;;
drhf922ca42015-05-14 15:39:18 +00001340 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1341 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001342 esac
drh8b727472009-01-19 18:18:40 +00001343fi
drh866108f2008-05-13 00:57:21 +00001344
drh8b727472009-01-19 18:18:40 +00001345# Check all directory arguments for consistency.
1346for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347 datadir sysconfdir sharedstatedir localstatedir includedir \
1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001350do
drh8b727472009-01-19 18:18:40 +00001351 eval ac_val=\$$ac_var
1352 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001353 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001354 */ )
1355 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1356 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001357 esac
drh8b727472009-01-19 18:18:40 +00001358 # Be sure to have absolute directory names.
1359 case $ac_val in
1360 [\\/$]* | ?:[\\/]* ) continue;;
1361 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1362 esac
drhf922ca42015-05-14 15:39:18 +00001363 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
drh71eb93e2001-09-28 01:34:43 +00001364done
drh75897232000-05-29 14:26:00 +00001365
drh71eb93e2001-09-28 01:34:43 +00001366# There might be people who depend on the old broken behavior: `$host'
1367# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001368# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001369build=$build_alias
1370host=$host_alias
1371target=$target_alias
drh75897232000-05-29 14:26:00 +00001372
a.rottmann84e63352003-03-24 09:42:16 +00001373# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001374if test "x$host_alias" != x; then
1375 if test "x$build_alias" = x; then
1376 cross_compiling=maybe
drh71eb93e2001-09-28 01:34:43 +00001377 elif test "x$build_alias" != "x$host_alias"; then
1378 cross_compiling=yes
1379 fi
1380fi
1381
1382ac_tool_prefix=
1383test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384
1385test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001386
a.rottmann84e63352003-03-24 09:42:16 +00001387
drh8b727472009-01-19 18:18:40 +00001388ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389ac_ls_di=`ls -di .` &&
1390ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drhf922ca42015-05-14 15:39:18 +00001391 as_fn_error $? "working directory cannot be determined"
drh8b727472009-01-19 18:18:40 +00001392test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
drhf922ca42015-05-14 15:39:18 +00001393 as_fn_error $? "pwd does not report name of working directory"
drh8b727472009-01-19 18:18:40 +00001394
1395
drh75897232000-05-29 14:26:00 +00001396# Find the source files, if location was not specified.
1397if test -z "$srcdir"; then
1398 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001399 # Try the directory containing this script, then the parent directory.
1400 ac_confdir=`$as_dirname -- "$as_myself" ||
1401$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402 X"$as_myself" : 'X\(//\)[^/]' \| \
1403 X"$as_myself" : 'X\(//\)$' \| \
1404 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1405$as_echo X"$as_myself" |
1406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\/\)[^/].*/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\/\)$/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\).*/{
1419 s//\1/
1420 q
1421 }
1422 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001423 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001424 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001425 srcdir=..
1426 fi
1427else
1428 ac_srcdir_defaulted=no
1429fi
drh8b727472009-01-19 18:18:40 +00001430if test ! -r "$srcdir/$ac_unique_file"; then
1431 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
drhf922ca42015-05-14 15:39:18 +00001432 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
mlcreech94984912008-03-04 19:03:08 +00001433fi
drh8b727472009-01-19 18:18:40 +00001434ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435ac_abs_confdir=`(
drhf922ca42015-05-14 15:39:18 +00001436 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
drh8b727472009-01-19 18:18:40 +00001437 pwd)`
1438# When building in place, set srcdir=.
1439if test "$ac_abs_confdir" = "$ac_pwd"; then
1440 srcdir=.
1441fi
1442# Remove unnecessary trailing slashes from srcdir.
1443# Double slashes in file names in object file debugging info
1444# mess up M-x gdb in Emacs.
1445case $srcdir in
1446*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447esac
1448for ac_var in $ac_precious_vars; do
1449 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_env_${ac_var}_value=\$${ac_var}
1451 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1453done
drh75897232000-05-29 14:26:00 +00001454
drh71eb93e2001-09-28 01:34:43 +00001455#
1456# Report the --help message.
1457#
1458if test "$ac_init_help" = "long"; then
1459 # Omit some internal or obsolete options to make the list less imposing.
1460 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001461 cat <<_ACEOF
drh3acc85f2015-08-06 12:54:13 +00001462\`configure' configures sqlite 3.8.12 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001463
1464Usage: $0 [OPTION]... [VAR=VALUE]...
1465
1466To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467VAR=VALUE. See below for descriptions of some of the useful variables.
1468
1469Defaults for the options are specified in brackets.
1470
1471Configuration:
1472 -h, --help display this help and exit
1473 --help=short display options specific to this package
1474 --help=recursive display the short help of all the included packages
1475 -V, --version display version information and exit
drhf922ca42015-05-14 15:39:18 +00001476 -q, --quiet, --silent do not print \`checking ...' messages
drh71eb93e2001-09-28 01:34:43 +00001477 --cache-file=FILE cache test results in FILE [disabled]
1478 -C, --config-cache alias for \`--cache-file=config.cache'
1479 -n, --no-create do not create output files
1480 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1481
drh71eb93e2001-09-28 01:34:43 +00001482Installation directories:
1483 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001484 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001485 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001486 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001487
1488By default, \`make install' will install all the files in
1489\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1490an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491for instance \`--prefix=\$HOME'.
1492
1493For better control, use the options below.
1494
1495Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001496 --bindir=DIR user executables [EPREFIX/bin]
1497 --sbindir=DIR system admin executables [EPREFIX/sbin]
1498 --libexecdir=DIR program executables [EPREFIX/libexec]
1499 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1500 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1501 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1502 --libdir=DIR object code libraries [EPREFIX/lib]
1503 --includedir=DIR C header files [PREFIX/include]
1504 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1505 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1506 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1507 --infodir=DIR info documentation [DATAROOTDIR/info]
1508 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1509 --mandir=DIR man documentation [DATAROOTDIR/man]
1510 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1511 --htmldir=DIR html documentation [DOCDIR]
1512 --dvidir=DIR dvi documentation [DOCDIR]
1513 --pdfdir=DIR pdf documentation [DOCDIR]
1514 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001515_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001516
a.rottmann84e63352003-03-24 09:42:16 +00001517 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001518
1519System types:
1520 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001521 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1522_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001523fi
1524
1525if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001526 case $ac_init_help in
drh3acc85f2015-08-06 12:54:13 +00001527 short | recursive ) echo "Configuration of sqlite 3.8.12:";;
mlcreechb87057f2008-03-06 07:19:20 +00001528 esac
a.rottmann84e63352003-03-24 09:42:16 +00001529 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001530
1531Optional Features:
drh8b727472009-01-19 18:18:40 +00001532 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001533 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1534 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001535 --enable-shared[=PKGS] build shared libraries [default=yes]
1536 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001537 --enable-fast-install[=PKGS]
1538 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001539 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001540 --disable-largefile omit support for large files
drh05c7e0b2015-01-10 14:27:17 +00001541 --disable-threadsafe Disable mutexing
drh94e4f822006-02-15 02:00:25 +00001542 --enable-releasemode Support libtool link to release mode
1543 --enable-tempstore Use an in-ram database for temporary tables
1544 (never,no,yes,always)
1545 --disable-tcl do not build TCL extension
vapier7f19c022007-02-17 14:46:31 +00001546 --disable-readline disable readline support [default=detect]
drh94e4f822006-02-15 02:00:25 +00001547 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001548 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001549 separately
drh05c7e0b2015-01-10 14:27:17 +00001550 --disable-load-extension
1551 Disable loading of external extensions
drhce1d9f52015-10-09 12:48:33 +00001552 --enable-fts3 Enable the FTS3 extension
1553 --enable-fts4 Enable the FTS4 extension
1554 --enable-fts5 Enable the FTS5 extension
1555 --enable-json1 Enable the JSON1 extension
1556 --enable-rtree Enable the RTREE extension
mlcreechaac7b932008-04-01 02:45:22 +00001557 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001558
1559Optional Packages:
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001562 --with-pic try to use only PIC/non-PIC objects [default=use
1563 both]
mlcreech636a9952008-05-05 22:52:56 +00001564 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh94e4f822006-02-15 02:00:25 +00001565 --with-tcl=DIR directory containing tcl configuration
1566 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001567 --with-readline-lib specify readline library
1568 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001569
1570Some influential environment variables:
1571 CC C compiler command
1572 CFLAGS C compiler flags
1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1574 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001575 LIBS libraries to pass to the linker, e.g. -l<library>
drhf922ca42015-05-14 15:39:18 +00001576 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
drh8b727472009-01-19 18:18:40 +00001577 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001578 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001579 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001580
1581Use these variables to override the choices made by `configure' or to help
1582it to find libraries and programs with nonstandard names/locations.
1583
drhf922ca42015-05-14 15:39:18 +00001584Report bugs to the package provider.
a.rottmann84e63352003-03-24 09:42:16 +00001585_ACEOF
drh8b727472009-01-19 18:18:40 +00001586ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001587fi
1588
1589if test "$ac_init_help" = "recursive"; then
1590 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001591 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001592 test -d "$ac_dir" ||
1593 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1594 continue
a.rottmann84e63352003-03-24 09:42:16 +00001595 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001596
drh8b727472009-01-19 18:18:40 +00001597case "$ac_dir" in
1598.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599*)
1600 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1601 # A ".." for each directory in $ac_dir_suffix.
1602 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1603 case $ac_top_builddir_sub in
1604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1606 esac ;;
1607esac
1608ac_abs_top_builddir=$ac_pwd
1609ac_abs_builddir=$ac_pwd$ac_dir_suffix
1610# for backward compatibility:
1611ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001612
a.rottmann84e63352003-03-24 09:42:16 +00001613case $srcdir in
drh8b727472009-01-19 18:18:40 +00001614 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001615 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001616 ac_top_srcdir=$ac_top_builddir_sub
1617 ac_abs_top_srcdir=$ac_pwd ;;
1618 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001619 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001620 ac_top_srcdir=$srcdir
1621 ac_abs_top_srcdir=$srcdir ;;
1622 *) # Relative name.
1623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624 ac_top_srcdir=$ac_top_build_prefix$srcdir
1625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001626esac
drh8b727472009-01-19 18:18:40 +00001627ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001628
drh8b727472009-01-19 18:18:40 +00001629 cd "$ac_dir" || { ac_status=$?; continue; }
1630 # Check for guested configure.
1631 if test -f "$ac_srcdir/configure.gnu"; then
1632 echo &&
1633 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634 elif test -f "$ac_srcdir/configure"; then
1635 echo &&
1636 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001637 else
drh8b727472009-01-19 18:18:40 +00001638 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1639 fi || ac_status=$?
1640 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001641 done
1642fi
1643
drh8b727472009-01-19 18:18:40 +00001644test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001645if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001646 cat <<\_ACEOF
drh3acc85f2015-08-06 12:54:13 +00001647sqlite configure 3.8.12
drhf922ca42015-05-14 15:39:18 +00001648generated by GNU Autoconf 2.69
drh71eb93e2001-09-28 01:34:43 +00001649
drhf922ca42015-05-14 15:39:18 +00001650Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001651This configure script is free software; the Free Software Foundation
1652gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001653_ACEOF
drh8b727472009-01-19 18:18:40 +00001654 exit
drh71eb93e2001-09-28 01:34:43 +00001655fi
drhf922ca42015-05-14 15:39:18 +00001656
1657## ------------------------ ##
1658## Autoconf initialization. ##
1659## ------------------------ ##
1660
1661# ac_fn_c_try_compile LINENO
1662# --------------------------
1663# Try to compile conftest.$ac_ext, and return whether this succeeded.
1664ac_fn_c_try_compile ()
1665{
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext
1668 if { { ac_try="$ac_compile"
1669case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672esac
1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674$as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_compile") 2>conftest.err
1676 ac_status=$?
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1681 fi
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest.$ac_objext; then :
1687 ac_retval=0
1688else
1689 $as_echo "$as_me: failed program was:" >&5
1690sed 's/^/| /' conftest.$ac_ext >&5
1691
1692 ac_retval=1
1693fi
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 as_fn_set_status $ac_retval
1696
1697} # ac_fn_c_try_compile
1698
1699# ac_fn_c_try_link LINENO
1700# -----------------------
1701# Try to link conftest.$ac_ext, and return whether this succeeded.
1702ac_fn_c_try_link ()
1703{
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext conftest$ac_exeext
1706 if { { ac_try="$ac_link"
1707case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_link") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1719 fi
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest$ac_exeext && {
1725 test "$cross_compiling" = yes ||
1726 test -x conftest$ac_exeext
1727 }; then :
1728 ac_retval=0
1729else
1730 $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1
1734fi
1735 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1736 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1737 # interfere with the next link command; also delete a directory that is
1738 # left behind by Apple's compiler. We do this before executing the actions.
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 as_fn_set_status $ac_retval
1742
1743} # ac_fn_c_try_link
1744
1745# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1746# -------------------------------------------------------
1747# Tests whether HEADER exists and can be compiled using the include files in
1748# INCLUDES, setting the cache variable VAR accordingly.
1749ac_fn_c_check_header_compile ()
1750{
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753$as_echo_n "checking for $2... " >&6; }
1754if eval \${$3+:} false; then :
1755 $as_echo_n "(cached) " >&6
1756else
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758/* end confdefs.h. */
1759$4
1760#include <$2>
1761_ACEOF
1762if ac_fn_c_try_compile "$LINENO"; then :
1763 eval "$3=yes"
1764else
1765 eval "$3=no"
1766fi
1767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768fi
1769eval ac_res=\$$3
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771$as_echo "$ac_res" >&6; }
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773
1774} # ac_fn_c_check_header_compile
1775
1776# ac_fn_c_try_cpp LINENO
1777# ----------------------
1778# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1779ac_fn_c_try_cpp ()
1780{
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 if { { ac_try="$ac_cpp conftest.$ac_ext"
1783case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786esac
1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788$as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1795 fi
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } > conftest.i && {
1798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 }; then :
1801 ac_retval=0
1802else
1803 $as_echo "$as_me: failed program was:" >&5
1804sed 's/^/| /' conftest.$ac_ext >&5
1805
1806 ac_retval=1
1807fi
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1810
1811} # ac_fn_c_try_cpp
1812
1813# ac_fn_c_try_run LINENO
1814# ----------------------
1815# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1816# that executables *can* be run.
1817ac_fn_c_try_run ()
1818{
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 if { { ac_try="$ac_link"
1821case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_link") 2>&5
1828 ac_status=$?
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1831 { { case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834esac
1835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836$as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_try") 2>&5
1838 ac_status=$?
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; }; }; then :
1841 ac_retval=0
1842else
1843 $as_echo "$as_me: program exited with status $ac_status" >&5
1844 $as_echo "$as_me: failed program was:" >&5
1845sed 's/^/| /' conftest.$ac_ext >&5
1846
1847 ac_retval=$ac_status
1848fi
1849 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 as_fn_set_status $ac_retval
1852
1853} # ac_fn_c_try_run
1854
1855# ac_fn_c_check_func LINENO FUNC VAR
1856# ----------------------------------
1857# Tests whether FUNC exists, setting the cache variable VAR accordingly
1858ac_fn_c_check_func ()
1859{
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862$as_echo_n "checking for $2... " >&6; }
1863if eval \${$3+:} false; then :
1864 $as_echo_n "(cached) " >&6
1865else
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867/* end confdefs.h. */
1868/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1870#define $2 innocuous_$2
1871
1872/* System header to define __stub macros and hopefully few prototypes,
1873 which can conflict with char $2 (); below.
1874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1875 <limits.h> exists even on freestanding compilers. */
1876
1877#ifdef __STDC__
1878# include <limits.h>
1879#else
1880# include <assert.h>
1881#endif
1882
1883#undef $2
1884
1885/* Override any GCC internal prototype to avoid an error.
1886 Use char because int might match the return type of a GCC
1887 builtin and then its argument prototype would still apply. */
1888#ifdef __cplusplus
1889extern "C"
1890#endif
1891char $2 ();
1892/* The GNU C library defines this for functions which it implements
1893 to always fail with ENOSYS. Some functions are actually named
1894 something starting with __ and the normal name is an alias. */
1895#if defined __stub_$2 || defined __stub___$2
1896choke me
1897#endif
1898
1899int
1900main ()
1901{
1902return $2 ();
1903 ;
1904 return 0;
1905}
1906_ACEOF
1907if ac_fn_c_try_link "$LINENO"; then :
1908 eval "$3=yes"
1909else
1910 eval "$3=no"
1911fi
1912rm -f core conftest.err conftest.$ac_objext \
1913 conftest$ac_exeext conftest.$ac_ext
1914fi
1915eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917$as_echo "$ac_res" >&6; }
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919
1920} # ac_fn_c_check_func
1921
1922# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1923# -------------------------------------------
1924# Tests whether TYPE exists after having included INCLUDES, setting cache
1925# variable VAR accordingly.
1926ac_fn_c_check_type ()
1927{
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930$as_echo_n "checking for $2... " >&6; }
1931if eval \${$3+:} false; then :
1932 $as_echo_n "(cached) " >&6
1933else
1934 eval "$3=no"
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936/* end confdefs.h. */
1937$4
1938int
1939main ()
1940{
1941if (sizeof ($2))
1942 return 0;
1943 ;
1944 return 0;
1945}
1946_ACEOF
1947if ac_fn_c_try_compile "$LINENO"; then :
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h. */
1950$4
1951int
1952main ()
1953{
1954if (sizeof (($2)))
1955 return 0;
1956 ;
1957 return 0;
1958}
1959_ACEOF
1960if ac_fn_c_try_compile "$LINENO"; then :
1961
1962else
1963 eval "$3=yes"
1964fi
1965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966fi
1967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968fi
1969eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971$as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973
1974} # ac_fn_c_check_type
1975
1976# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1977# -------------------------------------------------------
1978# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1979# the include files in INCLUDES and setting the cache variable VAR
1980# accordingly.
1981ac_fn_c_check_header_mongrel ()
1982{
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 if eval \${$3+:} false; then :
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986$as_echo_n "checking for $2... " >&6; }
1987if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1989fi
1990eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992$as_echo "$ac_res" >&6; }
1993else
1994 # Is the header compilable?
1995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1996$as_echo_n "checking $2 usability... " >&6; }
1997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998/* end confdefs.h. */
1999$4
2000#include <$2>
2001_ACEOF
2002if ac_fn_c_try_compile "$LINENO"; then :
2003 ac_header_compiler=yes
2004else
2005 ac_header_compiler=no
2006fi
2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2009$as_echo "$ac_header_compiler" >&6; }
2010
2011# Is the header present?
2012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2013$as_echo_n "checking $2 presence... " >&6; }
2014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h. */
2016#include <$2>
2017_ACEOF
2018if ac_fn_c_try_cpp "$LINENO"; then :
2019 ac_header_preproc=yes
2020else
2021 ac_header_preproc=no
2022fi
2023rm -f conftest.err conftest.i conftest.$ac_ext
2024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2025$as_echo "$ac_header_preproc" >&6; }
2026
2027# So? What about this header?
2028case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2029 yes:no: )
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2031$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2034 ;;
2035 no:yes:* )
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2037$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2039$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2041$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2043$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2045$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2046 ;;
2047esac
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049$as_echo_n "checking for $2... " >&6; }
2050if eval \${$3+:} false; then :
2051 $as_echo_n "(cached) " >&6
2052else
2053 eval "$3=\$ac_header_compiler"
2054fi
2055eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057$as_echo "$ac_res" >&6; }
2058fi
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060
2061} # ac_fn_c_check_header_mongrel
drh8b727472009-01-19 18:18:40 +00002062cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002063This file contains any messages produced by compilers while
2064running configure, to aid debugging if configure makes a mistake.
2065
drh3acc85f2015-08-06 12:54:13 +00002066It was created by sqlite $as_me 3.8.12, which was
drhf922ca42015-05-14 15:39:18 +00002067generated by GNU Autoconf 2.69. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00002068
2069 $ $0 $@
2070
a.rottmann84e63352003-03-24 09:42:16 +00002071_ACEOF
drh8b727472009-01-19 18:18:40 +00002072exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00002073{
2074cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002075## --------- ##
2076## Platform. ##
2077## --------- ##
drh71eb93e2001-09-28 01:34:43 +00002078
2079hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2080uname -m = `(uname -m) 2>/dev/null || echo unknown`
2081uname -r = `(uname -r) 2>/dev/null || echo unknown`
2082uname -s = `(uname -s) 2>/dev/null || echo unknown`
2083uname -v = `(uname -v) 2>/dev/null || echo unknown`
2084
2085/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2086/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2087
2088/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2089/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2090/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00002091/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00002092/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2093/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2094/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2095
drh71eb93e2001-09-28 01:34:43 +00002096_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002097
2098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099for as_dir in $PATH
2100do
2101 IFS=$as_save_IFS
2102 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002103 $as_echo "PATH: $as_dir"
2104 done
drh8b727472009-01-19 18:18:40 +00002105IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00002106
drh71eb93e2001-09-28 01:34:43 +00002107} >&5
2108
a.rottmann84e63352003-03-24 09:42:16 +00002109cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002110
a.rottmann84e63352003-03-24 09:42:16 +00002111
2112## ----------- ##
2113## Core tests. ##
2114## ----------- ##
2115
2116_ACEOF
2117
drh71eb93e2001-09-28 01:34:43 +00002118
2119# Keep a trace of the command line.
2120# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00002121# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00002122# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00002123# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00002124ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00002125ac_configure_args0=
2126ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00002127ac_must_keep_next=false
2128for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00002129do
a.rottmann84e63352003-03-24 09:42:16 +00002130 for ac_arg
2131 do
2132 case $ac_arg in
2133 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2135 | -silent | --silent | --silen | --sile | --sil)
2136 continue ;;
drh8b727472009-01-19 18:18:40 +00002137 *\'*)
2138 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002139 esac
2140 case $ac_pass in
drhf922ca42015-05-14 15:39:18 +00002141 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
a.rottmann84e63352003-03-24 09:42:16 +00002142 2)
drhf922ca42015-05-14 15:39:18 +00002143 as_fn_append ac_configure_args1 " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002144 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00002145 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00002146 else
a.rottmann964dbb12004-02-26 19:47:42 +00002147 case $ac_arg in
2148 *=* | --config-cache | -C | -disable-* | --disable-* \
2149 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2150 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2151 | -with-* | --with-* | -without-* | --without-* | --x)
2152 case "$ac_configure_args0 " in
2153 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2154 esac
2155 ;;
2156 -* ) ac_must_keep_next=true ;;
2157 esac
a.rottmann84e63352003-03-24 09:42:16 +00002158 fi
drhf922ca42015-05-14 15:39:18 +00002159 as_fn_append ac_configure_args " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002160 ;;
2161 esac
2162 done
drh71eb93e2001-09-28 01:34:43 +00002163done
drhf922ca42015-05-14 15:39:18 +00002164{ ac_configure_args0=; unset ac_configure_args0;}
2165{ ac_configure_args1=; unset ac_configure_args1;}
drh71eb93e2001-09-28 01:34:43 +00002166
2167# When interrupted or exit'd, cleanup temporary files, and complete
2168# config.log. We remove comments because anyway the quotes in there
2169# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00002170# WARNING: Use '\'' to represent an apostrophe within the trap.
2171# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00002172trap 'exit_status=$?
2173 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00002174 {
2175 echo
2176
drhf922ca42015-05-14 15:39:18 +00002177 $as_echo "## ---------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002178## Cache variables. ##
drhf922ca42015-05-14 15:39:18 +00002179## ---------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002180 echo
2181 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00002182(
2183 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2184 eval ac_val=\$$ac_var
2185 case $ac_val in #(
2186 *${as_nl}*)
2187 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +00002188 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2189$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +00002190 esac
2191 case $ac_var in #(
2192 _ | IFS | as_nl) ;; #(
2193 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +00002194 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +00002195 esac ;;
2196 esac
2197 done
drh71eb93e2001-09-28 01:34:43 +00002198 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00002199 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2200 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00002201 sed -n \
drh8b727472009-01-19 18:18:40 +00002202 "s/'\''/'\''\\\\'\'''\''/g;
2203 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2204 ;; #(
drh866108f2008-05-13 00:57:21 +00002205 *)
drh8b727472009-01-19 18:18:40 +00002206 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00002207 ;;
drh8b727472009-01-19 18:18:40 +00002208 esac |
2209 sort
2210)
a.rottmann84e63352003-03-24 09:42:16 +00002211 echo
2212
drhf922ca42015-05-14 15:39:18 +00002213 $as_echo "## ----------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002214## Output variables. ##
drhf922ca42015-05-14 15:39:18 +00002215## ----------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002216 echo
2217 for ac_var in $ac_subst_vars
2218 do
drh8b727472009-01-19 18:18:40 +00002219 eval ac_val=\$$ac_var
2220 case $ac_val in
2221 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2222 esac
2223 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002224 done | sort
2225 echo
2226
2227 if test -n "$ac_subst_files"; then
drhf922ca42015-05-14 15:39:18 +00002228 $as_echo "## ------------------- ##
drh8b727472009-01-19 18:18:40 +00002229## File substitutions. ##
drhf922ca42015-05-14 15:39:18 +00002230## ------------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002231 echo
2232 for ac_var in $ac_subst_files
2233 do
drh8b727472009-01-19 18:18:40 +00002234 eval ac_val=\$$ac_var
2235 case $ac_val in
2236 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2237 esac
2238 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002239 done | sort
2240 echo
2241 fi
2242
2243 if test -s confdefs.h; then
drhf922ca42015-05-14 15:39:18 +00002244 $as_echo "## ----------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002245## confdefs.h. ##
drhf922ca42015-05-14 15:39:18 +00002246## ----------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002247 echo
drh8b727472009-01-19 18:18:40 +00002248 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00002249 echo
2250 fi
2251 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00002252 $as_echo "$as_me: caught signal $ac_signal"
2253 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00002254 } >&5
drh8b727472009-01-19 18:18:40 +00002255 rm -f core *.core core.conftest.* &&
2256 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00002257 exit $exit_status
drh8b727472009-01-19 18:18:40 +00002258' 0
drh71eb93e2001-09-28 01:34:43 +00002259for ac_signal in 1 2 13 15; do
drhf922ca42015-05-14 15:39:18 +00002260 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
drh71eb93e2001-09-28 01:34:43 +00002261done
2262ac_signal=0
2263
2264# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00002265rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00002266
drhf922ca42015-05-14 15:39:18 +00002267$as_echo "/* confdefs.h */" > confdefs.h
2268
a.rottmann84e63352003-03-24 09:42:16 +00002269# Predefined preprocessor variables.
2270
2271cat >>confdefs.h <<_ACEOF
2272#define PACKAGE_NAME "$PACKAGE_NAME"
2273_ACEOF
2274
a.rottmann84e63352003-03-24 09:42:16 +00002275cat >>confdefs.h <<_ACEOF
2276#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2277_ACEOF
2278
a.rottmann84e63352003-03-24 09:42:16 +00002279cat >>confdefs.h <<_ACEOF
2280#define PACKAGE_VERSION "$PACKAGE_VERSION"
2281_ACEOF
2282
a.rottmann84e63352003-03-24 09:42:16 +00002283cat >>confdefs.h <<_ACEOF
2284#define PACKAGE_STRING "$PACKAGE_STRING"
2285_ACEOF
2286
dana9f39fd2011-08-12 16:34:42 +00002287cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00002288#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
dana9f39fd2011-08-12 16:34:42 +00002289_ACEOF
2290
drhf922ca42015-05-14 15:39:18 +00002291cat >>confdefs.h <<_ACEOF
2292#define PACKAGE_URL "$PACKAGE_URL"
2293_ACEOF
2294
a.rottmann84e63352003-03-24 09:42:16 +00002295
drh71eb93e2001-09-28 01:34:43 +00002296# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00002297# Prefer an explicitly selected file to automatically selected ones.
2298ac_site_file1=NONE
2299ac_site_file2=NONE
2300if test -n "$CONFIG_SITE"; then
drhf922ca42015-05-14 15:39:18 +00002301 # We do not want a PATH search for config.site.
2302 case $CONFIG_SITE in #((
2303 -*) ac_site_file1=./$CONFIG_SITE;;
2304 */*) ac_site_file1=$CONFIG_SITE;;
2305 *) ac_site_file1=./$CONFIG_SITE;;
2306 esac
drh8b727472009-01-19 18:18:40 +00002307elif test "x$prefix" != xNONE; then
2308 ac_site_file1=$prefix/share/config.site
2309 ac_site_file2=$prefix/etc/config.site
2310else
2311 ac_site_file1=$ac_default_prefix/share/config.site
2312 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00002313fi
drh8b727472009-01-19 18:18:40 +00002314for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2315do
2316 test "x$ac_site_file" = xNONE && continue
drhf922ca42015-05-14 15:39:18 +00002317 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
drh8b727472009-01-19 18:18:40 +00002319$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00002320 sed 's/^/| /' "$ac_site_file" >&5
drhf922ca42015-05-14 15:39:18 +00002321 . "$ac_site_file" \
2322 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2323$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2324as_fn_error $? "failed to load site script $ac_site_file
2325See \`config.log' for more details" "$LINENO" 5; }
drh75897232000-05-29 14:26:00 +00002326 fi
2327done
2328
2329if test -r "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +00002330 # Some versions of bash will fail to source /dev/null (special files
2331 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2332 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002334$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002335 case $cache_file in
drh8b727472009-01-19 18:18:40 +00002336 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2337 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00002338 esac
2339 fi
drh75897232000-05-29 14:26:00 +00002340else
drhf922ca42015-05-14 15:39:18 +00002341 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002342$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002343 >$cache_file
2344fi
2345
2346# Check that the precious variables saved in the cache have kept the same
2347# value.
2348ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00002349for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00002350 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2351 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00002352 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2353 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00002354 case $ac_old_set,$ac_new_set in
2355 set,)
drhf922ca42015-05-14 15:39:18 +00002356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002357$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002358 ac_cache_corrupted=: ;;
2359 ,set)
drhf922ca42015-05-14 15:39:18 +00002360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002361$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002362 ac_cache_corrupted=: ;;
2363 ,);;
2364 *)
2365 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00002366 # differences in whitespace do not lead to failure.
2367 ac_old_val_w=`echo x $ac_old_val`
2368 ac_new_val_w=`echo x $ac_new_val`
2369 if test "$ac_old_val_w" != "$ac_new_val_w"; then
drhf922ca42015-05-14 15:39:18 +00002370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002371$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2372 ac_cache_corrupted=:
2373 else
drhf922ca42015-05-14 15:39:18 +00002374 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002375$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2376 eval $ac_var=\$ac_old_val
2377 fi
drhf922ca42015-05-14 15:39:18 +00002378 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
drh8b727472009-01-19 18:18:40 +00002379$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
drhf922ca42015-05-14 15:39:18 +00002380 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
drh8b727472009-01-19 18:18:40 +00002381$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002382 fi;;
2383 esac
a.rottmann84e63352003-03-24 09:42:16 +00002384 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00002385 if test "$ac_new_set" = set; then
2386 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002387 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002388 *) ac_arg=$ac_var=$ac_new_val ;;
2389 esac
2390 case " $ac_configure_args " in
2391 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
drhf922ca42015-05-14 15:39:18 +00002392 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002393 esac
2394 fi
2395done
2396if $ac_cache_corrupted; then
drhf922ca42015-05-14 15:39:18 +00002397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
drh8b727472009-01-19 18:18:40 +00002400$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
drhf922ca42015-05-14 15:39:18 +00002401 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
drh75897232000-05-29 14:26:00 +00002402fi
drhf922ca42015-05-14 15:39:18 +00002403## -------------------- ##
2404## Main body of script. ##
2405## -------------------- ##
drh8b727472009-01-19 18:18:40 +00002406
drh75897232000-05-29 14:26:00 +00002407ac_ext=c
drh75897232000-05-29 14:26:00 +00002408ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002412
a.rottmann84e63352003-03-24 09:42:16 +00002413
2414
drh04446102009-06-15 00:04:06 +00002415sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002416if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
drhf922ca42015-05-14 15:39:18 +00002417as_fn_error $? "configure script is out of date:
vapierfaa68db2009-04-01 07:38:31 +00002418 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2419 top level VERSION file = $sqlite_version_sanity_check
drhf922ca42015-05-14 15:39:18 +00002420please regen with autoconf" "$LINENO" 5
vapierfaa68db2009-04-01 07:38:31 +00002421fi
2422
drh75897232000-05-29 14:26:00 +00002423#########
drh71eb93e2001-09-28 01:34:43 +00002424# Programs needed
drh75897232000-05-29 14:26:00 +00002425#
mlcreech636a9952008-05-05 22:52:56 +00002426case `pwd` in
2427 *\ * | *\ *)
drhf922ca42015-05-14 15:39:18 +00002428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
drh8b727472009-01-19 18:18:40 +00002429$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002430esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002431
mlcreech94984912008-03-04 19:03:08 +00002432
mlcreech636a9952008-05-05 22:52:56 +00002433
vapier6acb2cf2009-01-28 04:46:28 +00002434macro_version='2.2.6'
2435macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002436
mlcreech94984912008-03-04 19:03:08 +00002437
mlcreech94984912008-03-04 19:03:08 +00002438
a.rottmann9bc8b932004-02-29 15:18:31 +00002439
mlcreech636a9952008-05-05 22:52:56 +00002440
2441
2442
2443
2444
2445
2446
2447
2448
2449ltmain="$ac_aux_dir/ltmain.sh"
2450
drh71eb93e2001-09-28 01:34:43 +00002451ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002452for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
drh0fe0c462011-09-22 00:56:38 +00002453 if test -f "$ac_dir/install-sh"; then
2454 ac_aux_dir=$ac_dir
2455 ac_install_sh="$ac_aux_dir/install-sh -c"
2456 break
2457 elif test -f "$ac_dir/install.sh"; then
2458 ac_aux_dir=$ac_dir
2459 ac_install_sh="$ac_aux_dir/install.sh -c"
2460 break
2461 elif test -f "$ac_dir/shtool"; then
2462 ac_aux_dir=$ac_dir
2463 ac_install_sh="$ac_aux_dir/shtool install -c"
2464 break
2465 fi
drh71eb93e2001-09-28 01:34:43 +00002466done
2467if test -z "$ac_aux_dir"; then
drhf922ca42015-05-14 15:39:18 +00002468 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002469fi
drh8b727472009-01-19 18:18:40 +00002470
2471# These three variables are undocumented and unsupported,
2472# and are intended to be withdrawn in a future Autoconf release.
2473# They can cause serious problems if a builder's source tree is in a directory
2474# whose full name contains unusual characters.
2475ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2476ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2477ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2478
drh71eb93e2001-09-28 01:34:43 +00002479
2480# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002481$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
drhf922ca42015-05-14 15:39:18 +00002482 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002483
drhf922ca42015-05-14 15:39:18 +00002484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
drh8b727472009-01-19 18:18:40 +00002485$as_echo_n "checking build system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002486if ${ac_cv_build+:} false; then :
drh8b727472009-01-19 18:18:40 +00002487 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002488else
drh8b727472009-01-19 18:18:40 +00002489 ac_build_alias=$build_alias
2490test "x$ac_build_alias" = x &&
2491 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2492test "x$ac_build_alias" = x &&
drhf922ca42015-05-14 15:39:18 +00002493 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002494ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
drhf922ca42015-05-14 15:39:18 +00002495 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002496
2497fi
drhf922ca42015-05-14 15:39:18 +00002498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
drh8b727472009-01-19 18:18:40 +00002499$as_echo "$ac_cv_build" >&6; }
2500case $ac_cv_build in
2501*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002502*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002503esac
drh71eb93e2001-09-28 01:34:43 +00002504build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002505ac_save_IFS=$IFS; IFS='-'
2506set x $ac_cv_build
2507shift
2508build_cpu=$1
2509build_vendor=$2
2510shift; shift
2511# Remember, the first character of IFS is used to create $*,
2512# except with old shells:
2513build_os=$*
2514IFS=$ac_save_IFS
2515case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002516
a.rottmann84e63352003-03-24 09:42:16 +00002517
drhf922ca42015-05-14 15:39:18 +00002518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
drh8b727472009-01-19 18:18:40 +00002519$as_echo_n "checking host system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002520if ${ac_cv_host+:} false; then :
drh8b727472009-01-19 18:18:40 +00002521 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002522else
drh8b727472009-01-19 18:18:40 +00002523 if test "x$host_alias" = x; then
2524 ac_cv_host=$ac_cv_build
2525else
2526 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
drhf922ca42015-05-14 15:39:18 +00002527 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002528fi
drh71eb93e2001-09-28 01:34:43 +00002529
2530fi
drhf922ca42015-05-14 15:39:18 +00002531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
drh8b727472009-01-19 18:18:40 +00002532$as_echo "$ac_cv_host" >&6; }
2533case $ac_cv_host in
2534*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002535*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002536esac
drh71eb93e2001-09-28 01:34:43 +00002537host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002538ac_save_IFS=$IFS; IFS='-'
2539set x $ac_cv_host
2540shift
2541host_cpu=$1
2542host_vendor=$2
2543shift; shift
2544# Remember, the first character of IFS is used to create $*,
2545# except with old shells:
2546host_os=$*
2547IFS=$ac_save_IFS
2548case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002549
a.rottmann84e63352003-03-24 09:42:16 +00002550
drh71eb93e2001-09-28 01:34:43 +00002551ac_ext=c
2552ac_cpp='$CPP $CPPFLAGS'
2553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2555ac_compiler_gnu=$ac_cv_c_compiler_gnu
2556if test -n "$ac_tool_prefix"; then
2557 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2558set dummy ${ac_tool_prefix}gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002560$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002561if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002562 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002563else
2564 if test -n "$CC"; then
2565 ac_cv_prog_CC="$CC" # Let the user override the test.
2566else
a.rottmann84e63352003-03-24 09:42:16 +00002567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568for as_dir in $PATH
2569do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002574 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drhf922ca42015-05-14 15:39:18 +00002575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002576 break 2
2577 fi
2578done
drhf922ca42015-05-14 15:39:18 +00002579 done
drh8b727472009-01-19 18:18:40 +00002580IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002581
2582fi
2583fi
2584CC=$ac_cv_prog_CC
2585if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002587$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002588else
drhf922ca42015-05-14 15:39:18 +00002589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002590$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002591fi
2592
drh8b727472009-01-19 18:18:40 +00002593
drh71eb93e2001-09-28 01:34:43 +00002594fi
2595if test -z "$ac_cv_prog_CC"; then
2596 ac_ct_CC=$CC
2597 # Extract the first word of "gcc", so it can be a program name with args.
2598set dummy gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002600$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002601if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002602 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002603else
2604 if test -n "$ac_ct_CC"; then
2605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2606else
a.rottmann84e63352003-03-24 09:42:16 +00002607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608for as_dir in $PATH
2609do
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002614 ac_cv_prog_ac_ct_CC="gcc"
drhf922ca42015-05-14 15:39:18 +00002615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002616 break 2
2617 fi
2618done
drhf922ca42015-05-14 15:39:18 +00002619 done
drh8b727472009-01-19 18:18:40 +00002620IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002621
2622fi
2623fi
2624ac_ct_CC=$ac_cv_prog_ac_ct_CC
2625if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002627$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002628else
drhf922ca42015-05-14 15:39:18 +00002629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002630$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002631fi
2632
drh8b727472009-01-19 18:18:40 +00002633 if test "x$ac_ct_CC" = x; then
2634 CC=""
2635 else
2636 case $cross_compiling:$ac_tool_warned in
2637yes:)
drhf922ca42015-05-14 15:39:18 +00002638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002640ac_tool_warned=yes ;;
2641esac
2642 CC=$ac_ct_CC
2643 fi
drh71eb93e2001-09-28 01:34:43 +00002644else
2645 CC="$ac_cv_prog_CC"
2646fi
2647
2648if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002649 if test -n "$ac_tool_prefix"; then
2650 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002651set dummy ${ac_tool_prefix}cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002653$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002654if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002655 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002656else
2657 if test -n "$CC"; then
2658 ac_cv_prog_CC="$CC" # Let the user override the test.
2659else
a.rottmann84e63352003-03-24 09:42:16 +00002660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661for as_dir in $PATH
2662do
2663 IFS=$as_save_IFS
2664 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002665 for ac_exec_ext in '' $ac_executable_extensions; do
2666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002667 ac_cv_prog_CC="${ac_tool_prefix}cc"
drhf922ca42015-05-14 15:39:18 +00002668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002669 break 2
2670 fi
2671done
drhf922ca42015-05-14 15:39:18 +00002672 done
drh8b727472009-01-19 18:18:40 +00002673IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002674
2675fi
2676fi
2677CC=$ac_cv_prog_CC
2678if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002680$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002681else
drhf922ca42015-05-14 15:39:18 +00002682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002683$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002684fi
2685
drh8b727472009-01-19 18:18:40 +00002686
a.rottmann84e63352003-03-24 09:42:16 +00002687 fi
drh71eb93e2001-09-28 01:34:43 +00002688fi
2689if test -z "$CC"; then
2690 # Extract the first word of "cc", so it can be a program name with args.
2691set dummy cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002693$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002694if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002695 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002696else
2697 if test -n "$CC"; then
2698 ac_cv_prog_CC="$CC" # Let the user override the test.
2699else
2700 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702for as_dir in $PATH
2703do
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002708 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2709 ac_prog_rejected=yes
2710 continue
2711 fi
2712 ac_cv_prog_CC="cc"
drhf922ca42015-05-14 15:39:18 +00002713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002714 break 2
2715 fi
2716done
drhf922ca42015-05-14 15:39:18 +00002717 done
drh8b727472009-01-19 18:18:40 +00002718IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002719
2720if test $ac_prog_rejected = yes; then
2721 # We found a bogon in the path, so make sure we never use it.
2722 set dummy $ac_cv_prog_CC
2723 shift
2724 if test $# != 0; then
2725 # We chose a different compiler from the bogus one.
2726 # However, it has the same basename, so the bogon will be chosen
2727 # first if we set CC to just the basename; use the full file name.
2728 shift
a.rottmann84e63352003-03-24 09:42:16 +00002729 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002730 fi
2731fi
2732fi
2733fi
2734CC=$ac_cv_prog_CC
2735if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002737$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002738else
drhf922ca42015-05-14 15:39:18 +00002739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002740$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002741fi
2742
drh8b727472009-01-19 18:18:40 +00002743
drh71eb93e2001-09-28 01:34:43 +00002744fi
2745if test -z "$CC"; then
2746 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002747 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002748 do
2749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2750set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002752$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002753if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002754 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002755else
2756 if test -n "$CC"; then
2757 ac_cv_prog_CC="$CC" # Let the user override the test.
2758else
a.rottmann84e63352003-03-24 09:42:16 +00002759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760for as_dir in $PATH
2761do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002766 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002768 break 2
2769 fi
2770done
drhf922ca42015-05-14 15:39:18 +00002771 done
drh8b727472009-01-19 18:18:40 +00002772IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002773
2774fi
2775fi
2776CC=$ac_cv_prog_CC
2777if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002779$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002780else
drhf922ca42015-05-14 15:39:18 +00002781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002782$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002783fi
2784
drh8b727472009-01-19 18:18:40 +00002785
drh71eb93e2001-09-28 01:34:43 +00002786 test -n "$CC" && break
2787 done
2788fi
2789if test -z "$CC"; then
2790 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002791 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002792do
2793 # Extract the first word of "$ac_prog", so it can be a program name with args.
2794set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002796$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002797if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002798 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002799else
2800 if test -n "$ac_ct_CC"; then
2801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2802else
a.rottmann84e63352003-03-24 09:42:16 +00002803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804for as_dir in $PATH
2805do
2806 IFS=$as_save_IFS
2807 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002810 ac_cv_prog_ac_ct_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002812 break 2
2813 fi
2814done
drhf922ca42015-05-14 15:39:18 +00002815 done
drh8b727472009-01-19 18:18:40 +00002816IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002817
2818fi
2819fi
2820ac_ct_CC=$ac_cv_prog_ac_ct_CC
2821if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002823$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002824else
drhf922ca42015-05-14 15:39:18 +00002825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002826$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002827fi
2828
drh8b727472009-01-19 18:18:40 +00002829
drh71eb93e2001-09-28 01:34:43 +00002830 test -n "$ac_ct_CC" && break
2831done
2832
drh8b727472009-01-19 18:18:40 +00002833 if test "x$ac_ct_CC" = x; then
2834 CC=""
2835 else
2836 case $cross_compiling:$ac_tool_warned in
2837yes:)
drhf922ca42015-05-14 15:39:18 +00002838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002840ac_tool_warned=yes ;;
2841esac
2842 CC=$ac_ct_CC
2843 fi
drh71eb93e2001-09-28 01:34:43 +00002844fi
2845
2846fi
2847
a.rottmann84e63352003-03-24 09:42:16 +00002848
drhf922ca42015-05-14 15:39:18 +00002849test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2851as_fn_error $? "no acceptable C compiler found in \$PATH
2852See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00002853
2854# Provide some information about the compiler.
drhf922ca42015-05-14 15:39:18 +00002855$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
drh8b727472009-01-19 18:18:40 +00002856set X $ac_compile
2857ac_compiler=$2
drhf922ca42015-05-14 15:39:18 +00002858for ac_option in --version -v -V -qversion; do
2859 { { ac_try="$ac_compiler $ac_option >&5"
drh8b727472009-01-19 18:18:40 +00002860case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863esac
drhf922ca42015-05-14 15:39:18 +00002864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2865$as_echo "$ac_try_echo"; } >&5
2866 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
drh71eb93e2001-09-28 01:34:43 +00002867 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002868 if test -s conftest.err; then
2869 sed '10a\
2870... rest of stderr output deleted ...
2871 10q' conftest.err >conftest.er1
2872 cat conftest.er1 >&5
2873 fi
2874 rm -f conftest.er1 conftest.err
2875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2876 test $ac_status = 0; }
2877done
drh71eb93e2001-09-28 01:34:43 +00002878
drhf922ca42015-05-14 15:39:18 +00002879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00002880/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002881
2882int
2883main ()
2884{
2885
2886 ;
2887 return 0;
2888}
2889_ACEOF
2890ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002891ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002892# Try to create an executable without -o first, disregard a.out.
2893# It will help us diagnose broken compilers, and finding out an intuition
2894# of exeext.
drhf922ca42015-05-14 15:39:18 +00002895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2896$as_echo_n "checking whether the C compiler works... " >&6; }
drh8b727472009-01-19 18:18:40 +00002897ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002898
drh8b727472009-01-19 18:18:40 +00002899# The possible output files:
2900ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2901
2902ac_rmfiles=
2903for ac_file in $ac_files
2904do
2905 case $ac_file in
2906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2907 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2908 esac
2909done
2910rm -f $ac_rmfiles
2911
drhf922ca42015-05-14 15:39:18 +00002912if { { ac_try="$ac_link_default"
drh8b727472009-01-19 18:18:40 +00002913case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916esac
drhf922ca42015-05-14 15:39:18 +00002917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2918$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002919 (eval "$ac_link_default") 2>&5
2920 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2922 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00002923 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2924# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2925# in a Makefile. We should not override ac_cv_exeext if it was cached,
2926# so that the user can short-circuit this test for compilers unknown to
2927# Autoconf.
2928for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002929do
2930 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002931 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002933 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002934 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002935 # We found the default executable, but exeext='' is most
2936 # certainly right.
2937 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002938 *.* )
drhf922ca42015-05-14 15:39:18 +00002939 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
drh8b727472009-01-19 18:18:40 +00002940 then :; else
2941 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2942 fi
2943 # We set ac_cv_exeext here because the later test for it is not
2944 # safe: cross compilers may not add the suffix if given an `-o'
2945 # argument, so we may need to know it at that point already.
2946 # Even if this section looks crufty: it has the advantage of
2947 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002948 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002949 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002950 break;;
drh71eb93e2001-09-28 01:34:43 +00002951 esac
2952done
drh8b727472009-01-19 18:18:40 +00002953test "$ac_cv_exeext" = no && ac_cv_exeext=
2954
drh71eb93e2001-09-28 01:34:43 +00002955else
drh8b727472009-01-19 18:18:40 +00002956 ac_file=''
2957fi
drhf922ca42015-05-14 15:39:18 +00002958if test -z "$ac_file"; then :
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960$as_echo "no" >&6; }
2961$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002962sed 's/^/| /' conftest.$ac_ext >&5
2963
drhf922ca42015-05-14 15:39:18 +00002964{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2966as_fn_error 77 "C compiler cannot create executables
2967See \`config.log' for more details" "$LINENO" 5; }
2968else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh710658c2012-01-16 13:00:05 +00002970$as_echo "yes" >&6; }
drhf922ca42015-05-14 15:39:18 +00002971fi
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2973$as_echo_n "checking for C compiler default output file name... " >&6; }
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2975$as_echo "$ac_file" >&6; }
2976ac_exeext=$ac_cv_exeext
drh710658c2012-01-16 13:00:05 +00002977
drh8b727472009-01-19 18:18:40 +00002978rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002979ac_clean_files=$ac_clean_files_save
drhf922ca42015-05-14 15:39:18 +00002980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
drh8b727472009-01-19 18:18:40 +00002981$as_echo_n "checking for suffix of executables... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002982if { { ac_try="$ac_link"
drh8b727472009-01-19 18:18:40 +00002983case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986esac
drhf922ca42015-05-14 15:39:18 +00002987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2988$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002989 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002990 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2992 test $ac_status = 0; }; then :
drh71eb93e2001-09-28 01:34:43 +00002993 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2994# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2995# work properly (i.e., refer to `conftest.exe'), while it won't with
2996# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002997for ac_file in conftest.exe conftest conftest.*; do
2998 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002999 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00003001 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00003002 break;;
drh71eb93e2001-09-28 01:34:43 +00003003 * ) break;;
3004 esac
3005done
3006else
drhf922ca42015-05-14 15:39:18 +00003007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3009as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3010See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003011fi
drhf922ca42015-05-14 15:39:18 +00003012rm -f conftest conftest$ac_cv_exeext
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
drh8b727472009-01-19 18:18:40 +00003014$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003015
3016rm -f conftest.$ac_ext
3017EXEEXT=$ac_cv_exeext
3018ac_exeext=$EXEEXT
drhf922ca42015-05-14 15:39:18 +00003019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020/* end confdefs.h. */
3021#include <stdio.h>
3022int
3023main ()
3024{
3025FILE *f = fopen ("conftest.out", "w");
3026 return ferror (f) || fclose (f) != 0;
3027
3028 ;
3029 return 0;
3030}
3031_ACEOF
3032ac_clean_files="$ac_clean_files conftest.out"
3033# Check that the compiler produces executables we can run. If not, either
3034# the compiler is broken, or we cross compile.
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3036$as_echo_n "checking whether we are cross compiling... " >&6; }
3037if test "$cross_compiling" != yes; then
3038 { { ac_try="$ac_link"
3039case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042esac
3043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3044$as_echo "$ac_try_echo"; } >&5
3045 (eval "$ac_link") 2>&5
3046 ac_status=$?
3047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3048 test $ac_status = 0; }
3049 if { ac_try='./conftest$ac_cv_exeext'
3050 { { case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053esac
3054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3055$as_echo "$ac_try_echo"; } >&5
3056 (eval "$ac_try") 2>&5
3057 ac_status=$?
3058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3059 test $ac_status = 0; }; }; then
3060 cross_compiling=no
3061 else
3062 if test "$cross_compiling" = maybe; then
3063 cross_compiling=yes
3064 else
3065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3067as_fn_error $? "cannot run C compiled programs.
3068If you meant to cross compile, use \`--host'.
3069See \`config.log' for more details" "$LINENO" 5; }
3070 fi
3071 fi
3072fi
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3074$as_echo "$cross_compiling" >&6; }
3075
3076rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3077ac_clean_files=$ac_clean_files_save
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
drh8b727472009-01-19 18:18:40 +00003079$as_echo_n "checking for suffix of object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003080if ${ac_cv_objext+:} false; then :
drh8b727472009-01-19 18:18:40 +00003081 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003082else
drhf922ca42015-05-14 15:39:18 +00003083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003084/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003085
3086int
3087main ()
3088{
3089
3090 ;
3091 return 0;
3092}
3093_ACEOF
3094rm -f conftest.o conftest.obj
drhf922ca42015-05-14 15:39:18 +00003095if { { ac_try="$ac_compile"
drh8b727472009-01-19 18:18:40 +00003096case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099esac
drhf922ca42015-05-14 15:39:18 +00003100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003102 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003103 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3105 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00003106 for ac_file in conftest.o conftest.obj conftest.*; do
3107 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00003108 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00003110 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3111 break;;
3112 esac
3113done
3114else
drh8b727472009-01-19 18:18:40 +00003115 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003116sed 's/^/| /' conftest.$ac_ext >&5
3117
drhf922ca42015-05-14 15:39:18 +00003118{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3120as_fn_error $? "cannot compute suffix of object files: cannot compile
3121See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003122fi
drh71eb93e2001-09-28 01:34:43 +00003123rm -f conftest.$ac_cv_objext conftest.$ac_ext
3124fi
drhf922ca42015-05-14 15:39:18 +00003125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
drh8b727472009-01-19 18:18:40 +00003126$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003127OBJEXT=$ac_cv_objext
3128ac_objext=$OBJEXT
drhf922ca42015-05-14 15:39:18 +00003129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
drh8b727472009-01-19 18:18:40 +00003130$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003131if ${ac_cv_c_compiler_gnu+:} false; then :
drh8b727472009-01-19 18:18:40 +00003132 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003133else
drhf922ca42015-05-14 15:39:18 +00003134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003135/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003136
3137int
3138main ()
3139{
3140#ifndef __GNUC__
3141 choke me
3142#endif
3143
3144 ;
3145 return 0;
3146}
3147_ACEOF
drhf922ca42015-05-14 15:39:18 +00003148if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003149 ac_compiler_gnu=yes
3150else
drhf922ca42015-05-14 15:39:18 +00003151 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00003152fi
drh8b727472009-01-19 18:18:40 +00003153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003154ac_cv_c_compiler_gnu=$ac_compiler_gnu
3155
3156fi
drhf922ca42015-05-14 15:39:18 +00003157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
drh8b727472009-01-19 18:18:40 +00003158$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3159if test $ac_compiler_gnu = yes; then
3160 GCC=yes
3161else
3162 GCC=
3163fi
drh71eb93e2001-09-28 01:34:43 +00003164ac_test_CFLAGS=${CFLAGS+set}
3165ac_save_CFLAGS=$CFLAGS
drhf922ca42015-05-14 15:39:18 +00003166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
drh8b727472009-01-19 18:18:40 +00003167$as_echo_n "checking whether $CC accepts -g... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003168if ${ac_cv_prog_cc_g+:} false; then :
drh8b727472009-01-19 18:18:40 +00003169 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003170else
drh8b727472009-01-19 18:18:40 +00003171 ac_save_c_werror_flag=$ac_c_werror_flag
3172 ac_c_werror_flag=yes
3173 ac_cv_prog_cc_g=no
3174 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003176/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003177
3178int
3179main ()
3180{
3181
3182 ;
3183 return 0;
3184}
3185_ACEOF
drhf922ca42015-05-14 15:39:18 +00003186if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003187 ac_cv_prog_cc_g=yes
3188else
drhf922ca42015-05-14 15:39:18 +00003189 CFLAGS=""
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003191/* end confdefs.h. */
3192
3193int
3194main ()
3195{
3196
3197 ;
3198 return 0;
3199}
3200_ACEOF
drhf922ca42015-05-14 15:39:18 +00003201if ac_fn_c_try_compile "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00003202
drhf922ca42015-05-14 15:39:18 +00003203else
3204 ac_c_werror_flag=$ac_save_c_werror_flag
drh8b727472009-01-19 18:18:40 +00003205 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003207/* end confdefs.h. */
3208
3209int
3210main ()
3211{
3212
3213 ;
3214 return 0;
3215}
3216_ACEOF
drhf922ca42015-05-14 15:39:18 +00003217if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003218 ac_cv_prog_cc_g=yes
drh71eb93e2001-09-28 01:34:43 +00003219fi
drh8b727472009-01-19 18:18:40 +00003220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003221fi
drh8b727472009-01-19 18:18:40 +00003222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223fi
drh8b727472009-01-19 18:18:40 +00003224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 ac_c_werror_flag=$ac_save_c_werror_flag
3226fi
drhf922ca42015-05-14 15:39:18 +00003227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
drh8b727472009-01-19 18:18:40 +00003228$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003229if test "$ac_test_CFLAGS" = set; then
3230 CFLAGS=$ac_save_CFLAGS
3231elif test $ac_cv_prog_cc_g = yes; then
3232 if test "$GCC" = yes; then
3233 CFLAGS="-g -O2"
3234 else
3235 CFLAGS="-g"
3236 fi
3237else
3238 if test "$GCC" = yes; then
3239 CFLAGS="-O2"
3240 else
3241 CFLAGS=
3242 fi
3243fi
drhf922ca42015-05-14 15:39:18 +00003244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
drh8b727472009-01-19 18:18:40 +00003245$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003246if ${ac_cv_prog_cc_c89+:} false; then :
drh8b727472009-01-19 18:18:40 +00003247 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003248else
drh8b727472009-01-19 18:18:40 +00003249 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003250ac_save_CC=$CC
drhf922ca42015-05-14 15:39:18 +00003251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003252/* end confdefs.h. */
3253#include <stdarg.h>
3254#include <stdio.h>
drhf922ca42015-05-14 15:39:18 +00003255struct stat;
a.rottmann84e63352003-03-24 09:42:16 +00003256/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3257struct buf { int x; };
3258FILE * (*rcsopen) (struct buf *, struct stat *, int);
3259static char *e (p, i)
3260 char **p;
3261 int i;
3262{
3263 return p[i];
3264}
3265static char *f (char * (*g) (char **, int), char **p, ...)
3266{
3267 char *s;
3268 va_list v;
3269 va_start (v,p);
3270 s = g (p, va_arg (v,int));
3271 va_end (v);
3272 return s;
3273}
a.rottmann964dbb12004-02-26 19:47:42 +00003274
3275/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3276 function prototypes and stuff, but not '\xHH' hex character constants.
3277 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003278 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003279 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3280 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003281 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003282int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3283
drh8b727472009-01-19 18:18:40 +00003284/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3285 inside strings and character constants. */
3286#define FOO(x) 'x'
3287int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3288
a.rottmann84e63352003-03-24 09:42:16 +00003289int test (int i, double x);
3290struct s1 {int (*f) (int a);};
3291struct s2 {int (*f) (double a);};
3292int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3293int argc;
3294char **argv;
3295int
3296main ()
3297{
3298return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3299 ;
3300 return 0;
3301}
3302_ACEOF
drh8b727472009-01-19 18:18:40 +00003303for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3304 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003305do
3306 CC="$ac_save_CC $ac_arg"
drhf922ca42015-05-14 15:39:18 +00003307 if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003308 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003309fi
drh8b727472009-01-19 18:18:40 +00003310rm -f core conftest.err conftest.$ac_objext
3311 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003312done
drh8b727472009-01-19 18:18:40 +00003313rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003314CC=$ac_save_CC
3315
3316fi
drh8b727472009-01-19 18:18:40 +00003317# AC_CACHE_VAL
3318case "x$ac_cv_prog_cc_c89" in
3319 x)
drhf922ca42015-05-14 15:39:18 +00003320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
drh8b727472009-01-19 18:18:40 +00003321$as_echo "none needed" >&6; } ;;
3322 xno)
drhf922ca42015-05-14 15:39:18 +00003323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
drh8b727472009-01-19 18:18:40 +00003324$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003325 *)
drh8b727472009-01-19 18:18:40 +00003326 CC="$CC $ac_cv_prog_cc_c89"
drhf922ca42015-05-14 15:39:18 +00003327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
drh8b727472009-01-19 18:18:40 +00003328$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003329esac
drhf922ca42015-05-14 15:39:18 +00003330if test "x$ac_cv_prog_cc_c89" != xno; then :
a.rottmann84e63352003-03-24 09:42:16 +00003331
drhf922ca42015-05-14 15:39:18 +00003332fi
a.rottmann84e63352003-03-24 09:42:16 +00003333
drh71eb93e2001-09-28 01:34:43 +00003334ac_ext=c
3335ac_cpp='$CPP $CPPFLAGS'
3336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3338ac_compiler_gnu=$ac_cv_c_compiler_gnu
3339
drhf922ca42015-05-14 15:39:18 +00003340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
drh8b727472009-01-19 18:18:40 +00003341$as_echo_n "checking for a sed that does not truncate output... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003342if ${ac_cv_path_SED+:} false; then :
drh8b727472009-01-19 18:18:40 +00003343 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003344else
drh8b727472009-01-19 18:18:40 +00003345 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3346 for ac_i in 1 2 3 4 5 6 7; do
3347 ac_script="$ac_script$as_nl$ac_script"
3348 done
3349 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
drhf922ca42015-05-14 15:39:18 +00003350 { ac_script=; unset ac_script;}
drh8b727472009-01-19 18:18:40 +00003351 if test -z "$SED"; then
3352 ac_path_SED_found=false
3353 # Loop through the user's path and test for each of PROGNAME-LIST
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003355for as_dir in $PATH
3356do
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003359 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003360 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003361 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003362 as_fn_executable_p "$ac_path_SED" || continue
drh8b727472009-01-19 18:18:40 +00003363# Check for GNU ac_path_SED and select it if it is found.
3364 # Check for GNU $ac_path_SED
3365case `"$ac_path_SED" --version 2>&1` in
3366*GNU*)
3367 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3368*)
3369 ac_count=0
3370 $as_echo_n 0123456789 >"conftest.in"
3371 while :
3372 do
3373 cat "conftest.in" "conftest.in" >"conftest.tmp"
3374 mv "conftest.tmp" "conftest.in"
3375 cp "conftest.in" "conftest.nl"
3376 $as_echo '' >> "conftest.nl"
3377 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003379 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003380 if test $ac_count -gt ${ac_path_SED_max-0}; then
3381 # Best one so far, save it but keep looking for a better one
3382 ac_cv_path_SED="$ac_path_SED"
3383 ac_path_SED_max=$ac_count
3384 fi
3385 # 10*(2^10) chars as input seems more than enough
3386 test $ac_count -gt 10 && break
3387 done
3388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3389esac
3390
3391 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003392 done
3393 done
drhf922ca42015-05-14 15:39:18 +00003394 done
mlcreech636a9952008-05-05 22:52:56 +00003395IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003396 if test -z "$ac_cv_path_SED"; then
drhf922ca42015-05-14 15:39:18 +00003397 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
a.rottmann9bc8b932004-02-29 15:18:31 +00003398 fi
drh8b727472009-01-19 18:18:40 +00003399else
3400 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003401fi
drh866108f2008-05-13 00:57:21 +00003402
drh8b727472009-01-19 18:18:40 +00003403fi
drhf922ca42015-05-14 15:39:18 +00003404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
drh8b727472009-01-19 18:18:40 +00003405$as_echo "$ac_cv_path_SED" >&6; }
3406 SED="$ac_cv_path_SED"
3407 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003408
mlcreech636a9952008-05-05 22:52:56 +00003409test -z "$SED" && SED=sed
3410Xsed="$SED -e 1s/^X//"
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
drhf922ca42015-05-14 15:39:18 +00003422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
drh8b727472009-01-19 18:18:40 +00003423$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003424if ${ac_cv_path_GREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003425 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003426else
drh8b727472009-01-19 18:18:40 +00003427 if test -z "$GREP"; then
3428 ac_path_GREP_found=false
3429 # Loop through the user's path and test for each of PROGNAME-LIST
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3432do
3433 IFS=$as_save_IFS
3434 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003435 for ac_prog in grep ggrep; do
drh8b727472009-01-19 18:18:40 +00003436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003438 as_fn_executable_p "$ac_path_GREP" || continue
drh8b727472009-01-19 18:18:40 +00003439# Check for GNU ac_path_GREP and select it if it is found.
3440 # Check for GNU $ac_path_GREP
3441case `"$ac_path_GREP" --version 2>&1` in
3442*GNU*)
3443 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3444*)
3445 ac_count=0
3446 $as_echo_n 0123456789 >"conftest.in"
3447 while :
3448 do
3449 cat "conftest.in" "conftest.in" >"conftest.tmp"
3450 mv "conftest.tmp" "conftest.in"
3451 cp "conftest.in" "conftest.nl"
3452 $as_echo 'GREP' >> "conftest.nl"
3453 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3454 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003455 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003456 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3457 # Best one so far, save it but keep looking for a better one
3458 ac_cv_path_GREP="$ac_path_GREP"
3459 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003460 fi
drh8b727472009-01-19 18:18:40 +00003461 # 10*(2^10) chars as input seems more than enough
3462 test $ac_count -gt 10 && break
3463 done
3464 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3465esac
3466
3467 $ac_path_GREP_found && break 3
3468 done
3469 done
drhf922ca42015-05-14 15:39:18 +00003470 done
drh8b727472009-01-19 18:18:40 +00003471IFS=$as_save_IFS
3472 if test -z "$ac_cv_path_GREP"; then
drhf922ca42015-05-14 15:39:18 +00003473 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003474 fi
3475else
3476 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003477fi
drh8b727472009-01-19 18:18:40 +00003478
3479fi
drhf922ca42015-05-14 15:39:18 +00003480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
drh8b727472009-01-19 18:18:40 +00003481$as_echo "$ac_cv_path_GREP" >&6; }
3482 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003483
3484
drhf922ca42015-05-14 15:39:18 +00003485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
drh8b727472009-01-19 18:18:40 +00003486$as_echo_n "checking for egrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003487if ${ac_cv_path_EGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003488 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003489else
drh8b727472009-01-19 18:18:40 +00003490 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3491 then ac_cv_path_EGREP="$GREP -E"
3492 else
3493 if test -z "$EGREP"; then
3494 ac_path_EGREP_found=false
3495 # Loop through the user's path and test for each of PROGNAME-LIST
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3498do
3499 IFS=$as_save_IFS
3500 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003501 for ac_prog in egrep; do
drh8b727472009-01-19 18:18:40 +00003502 for ac_exec_ext in '' $ac_executable_extensions; do
3503 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003504 as_fn_executable_p "$ac_path_EGREP" || continue
drh8b727472009-01-19 18:18:40 +00003505# Check for GNU ac_path_EGREP and select it if it is found.
3506 # Check for GNU $ac_path_EGREP
3507case `"$ac_path_EGREP" --version 2>&1` in
3508*GNU*)
3509 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3510*)
3511 ac_count=0
3512 $as_echo_n 0123456789 >"conftest.in"
3513 while :
3514 do
3515 cat "conftest.in" "conftest.in" >"conftest.tmp"
3516 mv "conftest.tmp" "conftest.in"
3517 cp "conftest.in" "conftest.nl"
3518 $as_echo 'EGREP' >> "conftest.nl"
3519 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3520 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003521 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003522 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3523 # Best one so far, save it but keep looking for a better one
3524 ac_cv_path_EGREP="$ac_path_EGREP"
3525 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003526 fi
drh8b727472009-01-19 18:18:40 +00003527 # 10*(2^10) chars as input seems more than enough
3528 test $ac_count -gt 10 && break
3529 done
3530 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3531esac
3532
3533 $ac_path_EGREP_found && break 3
3534 done
3535 done
drhf922ca42015-05-14 15:39:18 +00003536 done
drh8b727472009-01-19 18:18:40 +00003537IFS=$as_save_IFS
3538 if test -z "$ac_cv_path_EGREP"; then
drhf922ca42015-05-14 15:39:18 +00003539 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003540 fi
3541else
3542 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003543fi
drh8b727472009-01-19 18:18:40 +00003544
3545 fi
3546fi
drhf922ca42015-05-14 15:39:18 +00003547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
drh8b727472009-01-19 18:18:40 +00003548$as_echo "$ac_cv_path_EGREP" >&6; }
3549 EGREP="$ac_cv_path_EGREP"
3550
3551
drhf922ca42015-05-14 15:39:18 +00003552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
drh8b727472009-01-19 18:18:40 +00003553$as_echo_n "checking for fgrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003554if ${ac_cv_path_FGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003555 $as_echo_n "(cached) " >&6
3556else
3557 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3558 then ac_cv_path_FGREP="$GREP -F"
3559 else
3560 if test -z "$FGREP"; then
3561 ac_path_FGREP_found=false
3562 # Loop through the user's path and test for each of PROGNAME-LIST
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3565do
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003568 for ac_prog in fgrep; do
drh8b727472009-01-19 18:18:40 +00003569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003571 as_fn_executable_p "$ac_path_FGREP" || continue
drh8b727472009-01-19 18:18:40 +00003572# Check for GNU ac_path_FGREP and select it if it is found.
3573 # Check for GNU $ac_path_FGREP
3574case `"$ac_path_FGREP" --version 2>&1` in
3575*GNU*)
3576 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3577*)
3578 ac_count=0
3579 $as_echo_n 0123456789 >"conftest.in"
3580 while :
3581 do
3582 cat "conftest.in" "conftest.in" >"conftest.tmp"
3583 mv "conftest.tmp" "conftest.in"
3584 cp "conftest.in" "conftest.nl"
3585 $as_echo 'FGREP' >> "conftest.nl"
3586 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003588 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003589 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3590 # Best one so far, save it but keep looking for a better one
3591 ac_cv_path_FGREP="$ac_path_FGREP"
3592 ac_path_FGREP_max=$ac_count
3593 fi
3594 # 10*(2^10) chars as input seems more than enough
3595 test $ac_count -gt 10 && break
3596 done
3597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3598esac
3599
3600 $ac_path_FGREP_found && break 3
3601 done
3602 done
drhf922ca42015-05-14 15:39:18 +00003603 done
drh8b727472009-01-19 18:18:40 +00003604IFS=$as_save_IFS
3605 if test -z "$ac_cv_path_FGREP"; then
drhf922ca42015-05-14 15:39:18 +00003606 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003607 fi
3608else
3609 ac_cv_path_FGREP=$FGREP
3610fi
3611
3612 fi
3613fi
drhf922ca42015-05-14 15:39:18 +00003614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
drh8b727472009-01-19 18:18:40 +00003615$as_echo "$ac_cv_path_FGREP" >&6; }
3616 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003617
3618
3619test -z "$GREP" && GREP=grep
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
a.rottmann9bc8b932004-02-29 15:18:31 +00003636
3637
a.rottmann84e63352003-03-24 09:42:16 +00003638
drh8b727472009-01-19 18:18:40 +00003639# Check whether --with-gnu-ld was given.
drhf922ca42015-05-14 15:39:18 +00003640if test "${with_gnu_ld+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003641 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003642else
3643 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003644fi
3645
drh71eb93e2001-09-28 01:34:43 +00003646ac_prog=ld
3647if test "$GCC" = yes; then
3648 # Check if gcc -print-prog-name=ld gives a path.
drhf922ca42015-05-14 15:39:18 +00003649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
drh8b727472009-01-19 18:18:40 +00003650$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003651 case $host in
3652 *-*-mingw*)
3653 # gcc leaves a trailing carriage return which upsets mingw
3654 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3655 *)
3656 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3657 esac
3658 case $ac_prog in
3659 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003660 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003661 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003662 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003663 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3664 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3665 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003666 done
3667 test -z "$LD" && LD="$ac_prog"
3668 ;;
3669 "")
3670 # If it fails, then pretend we aren't using GCC.
3671 ac_prog=ld
3672 ;;
3673 *)
3674 # If it is relative, then search for the first ld in PATH.
3675 with_gnu_ld=unknown
3676 ;;
3677 esac
3678elif test "$with_gnu_ld" = yes; then
drhf922ca42015-05-14 15:39:18 +00003679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003680$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003681else
drhf922ca42015-05-14 15:39:18 +00003682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003683$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003684fi
drhf922ca42015-05-14 15:39:18 +00003685if ${lt_cv_path_LD+:} false; then :
drh8b727472009-01-19 18:18:40 +00003686 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003687else
3688 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003689 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003690 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003691 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003692 test -z "$ac_dir" && ac_dir=.
3693 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3694 lt_cv_path_LD="$ac_dir/$ac_prog"
3695 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003696 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003697 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003698 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3699 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003700 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003701 ;;
3702 *)
drh71eb93e2001-09-28 01:34:43 +00003703 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003704 ;;
3705 esac
drh71eb93e2001-09-28 01:34:43 +00003706 fi
3707 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003708 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003709else
3710 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3711fi
3712fi
3713
3714LD="$lt_cv_path_LD"
3715if test -n "$LD"; then
drhf922ca42015-05-14 15:39:18 +00003716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
drh8b727472009-01-19 18:18:40 +00003717$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003718else
drhf922ca42015-05-14 15:39:18 +00003719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003720$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003721fi
drhf922ca42015-05-14 15:39:18 +00003722test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003724$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003725if ${lt_cv_prog_gnu_ld+:} false; then :
drh8b727472009-01-19 18:18:40 +00003726 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003727else
vapier7f19c022007-02-17 14:46:31 +00003728 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003729case `$LD -v 2>&1 </dev/null` in
3730*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003731 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003732 ;;
3733*)
drh71eb93e2001-09-28 01:34:43 +00003734 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003735 ;;
3736esac
drh71eb93e2001-09-28 01:34:43 +00003737fi
drhf922ca42015-05-14 15:39:18 +00003738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
drh8b727472009-01-19 18:18:40 +00003739$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003740with_gnu_ld=$lt_cv_prog_gnu_ld
3741
a.rottmann84e63352003-03-24 09:42:16 +00003742
drh71eb93e2001-09-28 01:34:43 +00003743
mlcreech636a9952008-05-05 22:52:56 +00003744
3745
3746
3747
3748
3749
drhf922ca42015-05-14 15:39:18 +00003750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
drh8b727472009-01-19 18:18:40 +00003751$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003752if ${lt_cv_path_NM+:} false; then :
drh8b727472009-01-19 18:18:40 +00003753 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003754else
3755 if test -n "$NM"; then
3756 # Let the user override the test.
3757 lt_cv_path_NM="$NM"
3758else
vapier7f19c022007-02-17 14:46:31 +00003759 lt_nm_to_check="${ac_tool_prefix}nm"
3760 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3761 lt_nm_to_check="$lt_nm_to_check nm"
3762 fi
3763 for lt_tmp_nm in $lt_nm_to_check; do
3764 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3765 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3766 IFS="$lt_save_ifs"
3767 test -z "$ac_dir" && ac_dir=.
3768 tmp_nm="$ac_dir/$lt_tmp_nm"
3769 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3770 # Check to see if the nm accepts a BSD-compat flag.
3771 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3772 # nm: unknown option "B" ignored
3773 # Tru64's nm complains that /dev/null is an invalid object file
3774 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3775 */dev/null* | *'Invalid file or object type'*)
3776 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003777 break
3778 ;;
3779 *)
vapier7f19c022007-02-17 14:46:31 +00003780 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3781 */dev/null*)
3782 lt_cv_path_NM="$tmp_nm -p"
3783 break
3784 ;;
3785 *)
3786 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3787 continue # so that we can try to find one that supports BSD flags
3788 ;;
3789 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003790 ;;
3791 esac
vapier7f19c022007-02-17 14:46:31 +00003792 fi
3793 done
3794 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003795 done
mlcreech636a9952008-05-05 22:52:56 +00003796 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003797fi
3798fi
drhf922ca42015-05-14 15:39:18 +00003799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
drh8b727472009-01-19 18:18:40 +00003800$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003801if test "$lt_cv_path_NM" != "no"; then
3802 NM="$lt_cv_path_NM"
3803else
3804 # Didn't find any BSD compatible name lister, look for dumpbin.
3805 if test -n "$ac_tool_prefix"; then
3806 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3807 do
3808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3809set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003811$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003812if ${ac_cv_prog_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003813 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003814else
3815 if test -n "$DUMPBIN"; then
3816 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3817else
3818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819for as_dir in $PATH
3820do
3821 IFS=$as_save_IFS
3822 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003825 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003827 break 2
3828 fi
3829done
drhf922ca42015-05-14 15:39:18 +00003830 done
drh8b727472009-01-19 18:18:40 +00003831IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003832
mlcreech636a9952008-05-05 22:52:56 +00003833fi
3834fi
3835DUMPBIN=$ac_cv_prog_DUMPBIN
3836if test -n "$DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003838$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003839else
drhf922ca42015-05-14 15:39:18 +00003840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003841$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003842fi
3843
drh8b727472009-01-19 18:18:40 +00003844
mlcreech636a9952008-05-05 22:52:56 +00003845 test -n "$DUMPBIN" && break
3846 done
3847fi
3848if test -z "$DUMPBIN"; then
3849 ac_ct_DUMPBIN=$DUMPBIN
3850 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3851do
3852 # Extract the first word of "$ac_prog", so it can be a program name with args.
3853set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003855$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003856if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003857 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003858else
3859 if test -n "$ac_ct_DUMPBIN"; then
3860 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3861else
3862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863for as_dir in $PATH
3864do
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003869 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003871 break 2
3872 fi
3873done
drhf922ca42015-05-14 15:39:18 +00003874 done
drh8b727472009-01-19 18:18:40 +00003875IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003876
3877fi
3878fi
3879ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3880if test -n "$ac_ct_DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003882$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003883else
drhf922ca42015-05-14 15:39:18 +00003884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003885$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003886fi
3887
drh8b727472009-01-19 18:18:40 +00003888
mlcreech636a9952008-05-05 22:52:56 +00003889 test -n "$ac_ct_DUMPBIN" && break
3890done
3891
drh8b727472009-01-19 18:18:40 +00003892 if test "x$ac_ct_DUMPBIN" = x; then
3893 DUMPBIN=":"
3894 else
3895 case $cross_compiling:$ac_tool_warned in
3896yes:)
drhf922ca42015-05-14 15:39:18 +00003897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00003899ac_tool_warned=yes ;;
3900esac
3901 DUMPBIN=$ac_ct_DUMPBIN
3902 fi
mlcreech636a9952008-05-05 22:52:56 +00003903fi
3904
3905
3906 if test "$DUMPBIN" != ":"; then
3907 NM="$DUMPBIN"
3908 fi
3909fi
3910test -z "$NM" && NM=nm
3911
3912
3913
3914
3915
3916
drhf922ca42015-05-14 15:39:18 +00003917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
drh8b727472009-01-19 18:18:40 +00003918$as_echo_n "checking the name lister ($NM) interface... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003919if ${lt_cv_nm_interface+:} false; then :
drh8b727472009-01-19 18:18:40 +00003920 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003921else
3922 lt_cv_nm_interface="BSD nm"
3923 echo "int some_variable = 0;" > conftest.$ac_ext
drhce1d9f52015-10-09 12:48:33 +00003924 (eval echo "\"\$as_me:3924: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003925 (eval "$ac_compile" 2>conftest.err)
3926 cat conftest.err >&5
drhce1d9f52015-10-09 12:48:33 +00003927 (eval echo "\"\$as_me:3927: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003928 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3929 cat conftest.err >&5
drhce1d9f52015-10-09 12:48:33 +00003930 (eval echo "\"\$as_me:3930: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003931 cat conftest.out >&5
3932 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3933 lt_cv_nm_interface="MS dumpbin"
3934 fi
3935 rm -f conftest*
3936fi
drhf922ca42015-05-14 15:39:18 +00003937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
drh8b727472009-01-19 18:18:40 +00003938$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003939
drhf922ca42015-05-14 15:39:18 +00003940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
drh8b727472009-01-19 18:18:40 +00003941$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003942LN_S=$as_ln_s
3943if test "$LN_S" = "ln -s"; then
drhf922ca42015-05-14 15:39:18 +00003944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00003945$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003946else
drhf922ca42015-05-14 15:39:18 +00003947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
drh8b727472009-01-19 18:18:40 +00003948$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003949fi
3950
mlcreech636a9952008-05-05 22:52:56 +00003951# find the maximum length of command line arguments
drhf922ca42015-05-14 15:39:18 +00003952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
drh8b727472009-01-19 18:18:40 +00003953$as_echo_n "checking the maximum length of command line arguments... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003954if ${lt_cv_sys_max_cmd_len+:} false; then :
drh8b727472009-01-19 18:18:40 +00003955 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003956else
3957 i=0
3958 teststring="ABCD"
3959
3960 case $build_os in
3961 msdosdjgpp*)
3962 # On DJGPP, this test can blow up pretty badly due to problems in libc
3963 # (any single argument exceeding 2000 bytes causes a buffer overrun
3964 # during glob expansion). Even if it were fixed, the result of this
3965 # check would be larger than it should be.
3966 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3967 ;;
3968
3969 gnu*)
3970 # Under GNU Hurd, this test is not required because there is
3971 # no limit to the length of command line arguments.
3972 # Libtool will interpret -1 as no limit whatsoever
3973 lt_cv_sys_max_cmd_len=-1;
3974 ;;
3975
vapier6acb2cf2009-01-28 04:46:28 +00003976 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003977 # On Win9x/ME, this test blows up -- it succeeds, but takes
3978 # about 5 minutes as the teststring grows exponentially.
3979 # Worse, since 9x/ME are not pre-emptively multitasking,
3980 # you end up with a "frozen" computer, even though with patience
3981 # the test eventually succeeds (with a max line length of 256k).
3982 # Instead, let's just punt: use the minimum linelength reported by
3983 # all of the supported platforms: 8192 (on NT/2K/XP).
3984 lt_cv_sys_max_cmd_len=8192;
3985 ;;
3986
3987 amigaos*)
3988 # On AmigaOS with pdksh, this test takes hours, literally.
3989 # So we just punt and use a minimum line length of 8192.
3990 lt_cv_sys_max_cmd_len=8192;
3991 ;;
3992
3993 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3994 # This has been around since 386BSD, at least. Likely further.
3995 if test -x /sbin/sysctl; then
3996 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3997 elif test -x /usr/sbin/sysctl; then
3998 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3999 else
4000 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4001 fi
4002 # And add a safety zone
4003 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4005 ;;
4006
4007 interix*)
4008 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4009 lt_cv_sys_max_cmd_len=196608
4010 ;;
4011
4012 osf*)
4013 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4014 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4015 # nice to cause kernel panics so lets avoid the loop below.
4016 # First set a reasonable default.
4017 lt_cv_sys_max_cmd_len=16384
4018 #
4019 if test -x /sbin/sysconfig; then
4020 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4021 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4022 esac
4023 fi
4024 ;;
4025 sco3.2v5*)
4026 lt_cv_sys_max_cmd_len=102400
4027 ;;
4028 sysv5* | sco5v6* | sysv4.2uw2*)
4029 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4030 if test -n "$kargmax"; then
4031 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4032 else
4033 lt_cv_sys_max_cmd_len=32768
4034 fi
4035 ;;
4036 *)
4037 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4038 if test -n "$lt_cv_sys_max_cmd_len"; then
4039 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4040 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4041 else
4042 # Make teststring a little bigger before we do anything with it.
4043 # a 1K string should be a reasonable start.
4044 for i in 1 2 3 4 5 6 7 8 ; do
4045 teststring=$teststring$teststring
4046 done
4047 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4048 # If test is not a shell built-in, we'll probably end up computing a
4049 # maximum length that is only half of the actual maximum length, but
4050 # we can't tell.
4051 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4052 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4053 test $i != 17 # 1/2 MB should be enough
4054 do
4055 i=`expr $i + 1`
4056 teststring=$teststring$teststring
4057 done
4058 # Only check the string length outside the loop.
4059 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4060 teststring=
4061 # Add a significant safety factor because C++ compilers can tack on
4062 # massive amounts of additional arguments before passing them to the
4063 # linker. It appears as though 1/2 is a usable value.
4064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4065 fi
4066 ;;
4067 esac
4068
4069fi
4070
4071if test -n $lt_cv_sys_max_cmd_len ; then
drhf922ca42015-05-14 15:39:18 +00004072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
drh8b727472009-01-19 18:18:40 +00004073$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004074else
drhf922ca42015-05-14 15:39:18 +00004075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
drh8b727472009-01-19 18:18:40 +00004076$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004077fi
4078max_cmd_len=$lt_cv_sys_max_cmd_len
4079
4080
4081
4082
4083
4084
4085: ${CP="cp -f"}
4086: ${MV="mv -f"}
4087: ${RM="rm -f"}
4088
drhf922ca42015-05-14 15:39:18 +00004089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
drh8b727472009-01-19 18:18:40 +00004090$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004091# Try some XSI features
4092xsi_shell=no
4093( _lt_dummy="a/b/c"
4094 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4095 = c,a/b,, \
4096 && eval 'test $(( 1 + 1 )) -eq 2 \
4097 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4098 && xsi_shell=yes
drhf922ca42015-05-14 15:39:18 +00004099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
drh8b727472009-01-19 18:18:40 +00004100$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004101
4102
drhf922ca42015-05-14 15:39:18 +00004103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
drh8b727472009-01-19 18:18:40 +00004104$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004105lt_shell_append=no
4106( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4107 >/dev/null 2>&1 \
4108 && lt_shell_append=yes
drhf922ca42015-05-14 15:39:18 +00004109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
drh8b727472009-01-19 18:18:40 +00004110$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004111
4112
4113if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4114 lt_unset=unset
4115else
4116 lt_unset=false
4117fi
4118
4119
4120
4121
4122
4123# test EBCDIC or ASCII
4124case `echo X|tr X '\101'` in
4125 A) # ASCII based system
4126 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4127 lt_SP2NL='tr \040 \012'
4128 lt_NL2SP='tr \015\012 \040\040'
4129 ;;
4130 *) # EBCDIC based system
4131 lt_SP2NL='tr \100 \n'
4132 lt_NL2SP='tr \r\n \100\100'
4133 ;;
4134esac
4135
4136
4137
4138
4139
4140
4141
4142
4143
drhf922ca42015-05-14 15:39:18 +00004144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
drh8b727472009-01-19 18:18:40 +00004145$as_echo_n "checking for $LD option to reload object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004146if ${lt_cv_ld_reload_flag+:} false; then :
drh8b727472009-01-19 18:18:40 +00004147 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004148else
4149 lt_cv_ld_reload_flag='-r'
4150fi
drhf922ca42015-05-14 15:39:18 +00004151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
drh8b727472009-01-19 18:18:40 +00004152$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004153reload_flag=$lt_cv_ld_reload_flag
4154case $reload_flag in
4155"" | " "*) ;;
4156*) reload_flag=" $reload_flag" ;;
4157esac
4158reload_cmds='$LD$reload_flag -o $output$reload_objs'
4159case $host_os in
4160 darwin*)
4161 if test "$GCC" = yes; then
4162 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4163 else
4164 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4165 fi
4166 ;;
4167esac
4168
4169
4170
4171
4172
4173
4174
4175
4176
vapier6acb2cf2009-01-28 04:46:28 +00004177if test -n "$ac_tool_prefix"; then
4178 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4179set dummy ${ac_tool_prefix}objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004181$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004182if ${ac_cv_prog_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004183 $as_echo_n "(cached) " >&6
4184else
4185 if test -n "$OBJDUMP"; then
4186 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4187else
4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189for as_dir in $PATH
4190do
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004195 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
drhf922ca42015-05-14 15:39:18 +00004196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004197 break 2
4198 fi
4199done
drhf922ca42015-05-14 15:39:18 +00004200 done
vapier6acb2cf2009-01-28 04:46:28 +00004201IFS=$as_save_IFS
4202
4203fi
4204fi
4205OBJDUMP=$ac_cv_prog_OBJDUMP
4206if test -n "$OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004208$as_echo "$OBJDUMP" >&6; }
4209else
drhf922ca42015-05-14 15:39:18 +00004210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004211$as_echo "no" >&6; }
4212fi
4213
4214
4215fi
4216if test -z "$ac_cv_prog_OBJDUMP"; then
4217 ac_ct_OBJDUMP=$OBJDUMP
4218 # Extract the first word of "objdump", so it can be a program name with args.
4219set dummy objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004221$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004222if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004223 $as_echo_n "(cached) " >&6
4224else
4225 if test -n "$ac_ct_OBJDUMP"; then
4226 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4227else
4228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229for as_dir in $PATH
4230do
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004235 ac_cv_prog_ac_ct_OBJDUMP="objdump"
drhf922ca42015-05-14 15:39:18 +00004236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004237 break 2
4238 fi
4239done
drhf922ca42015-05-14 15:39:18 +00004240 done
vapier6acb2cf2009-01-28 04:46:28 +00004241IFS=$as_save_IFS
4242
4243fi
4244fi
4245ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4246if test -n "$ac_ct_OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004248$as_echo "$ac_ct_OBJDUMP" >&6; }
4249else
drhf922ca42015-05-14 15:39:18 +00004250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004251$as_echo "no" >&6; }
4252fi
4253
4254 if test "x$ac_ct_OBJDUMP" = x; then
4255 OBJDUMP="false"
4256 else
4257 case $cross_compiling:$ac_tool_warned in
4258yes:)
drhf922ca42015-05-14 15:39:18 +00004259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004261ac_tool_warned=yes ;;
4262esac
4263 OBJDUMP=$ac_ct_OBJDUMP
4264 fi
4265else
4266 OBJDUMP="$ac_cv_prog_OBJDUMP"
4267fi
4268
4269test -z "$OBJDUMP" && OBJDUMP=objdump
4270
4271
4272
4273
4274
4275
4276
4277
mlcreech636a9952008-05-05 22:52:56 +00004278
drhf922ca42015-05-14 15:39:18 +00004279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
drh8b727472009-01-19 18:18:40 +00004280$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004281if ${lt_cv_deplibs_check_method+:} false; then :
drh8b727472009-01-19 18:18:40 +00004282 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004283else
4284 lt_cv_file_magic_cmd='$MAGIC_CMD'
4285lt_cv_file_magic_test_file=
4286lt_cv_deplibs_check_method='unknown'
4287# Need to set the preceding variable on all platforms that support
4288# interlibrary dependencies.
4289# 'none' -- dependencies not supported.
4290# `unknown' -- same as none, but documents that we really don't know.
4291# 'pass_all' -- all dependencies passed with no checks.
4292# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004293# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004294# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004295# If you have `file' or equivalent on your system and you're not sure
4296# whether `pass_all' will *always* work, you probably want this one.
4297
4298case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004299aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004300 lt_cv_deplibs_check_method=pass_all
4301 ;;
4302
4303beos*)
4304 lt_cv_deplibs_check_method=pass_all
4305 ;;
4306
vapier7f19c022007-02-17 14:46:31 +00004307bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004308 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4309 lt_cv_file_magic_cmd='/usr/bin/file -L'
4310 lt_cv_file_magic_test_file=/shlib/libc.so
4311 ;;
4312
a.rottmann9bc8b932004-02-29 15:18:31 +00004313cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004314 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004315 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004316 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004317 ;;
4318
4319mingw* | pw32*)
4320 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004321 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4322 # unless we find 'file', for example because we are cross-compiling.
4323 if ( file / ) >/dev/null 2>&1; then
4324 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4325 lt_cv_file_magic_cmd='func_win32_libid'
4326 else
4327 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4328 lt_cv_file_magic_cmd='$OBJDUMP -f'
4329 fi
drh71eb93e2001-09-28 01:34:43 +00004330 ;;
4331
vapier6acb2cf2009-01-28 04:46:28 +00004332cegcc)
4333 # use the weaker test based on 'objdump'. See mingw*.
4334 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4335 lt_cv_file_magic_cmd='$OBJDUMP -f'
4336 ;;
4337
drh71eb93e2001-09-28 01:34:43 +00004338darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004339 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004340 ;;
4341
mlcreech636a9952008-05-05 22:52:56 +00004342freebsd* | dragonfly*)
4343 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004344 case $host_cpu in
4345 i*86 )
4346 # Not sure whether the presence of OpenBSD here was a mistake.
4347 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004348 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 +00004349 lt_cv_file_magic_cmd=/usr/bin/file
4350 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4351 ;;
4352 esac
4353 else
4354 lt_cv_deplibs_check_method=pass_all
4355 fi
4356 ;;
4357
4358gnu*)
4359 lt_cv_deplibs_check_method=pass_all
4360 ;;
4361
a.rottmann9bc8b932004-02-29 15:18:31 +00004362hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004363 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004364 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004365 ia64*)
4366 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4367 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4368 ;;
4369 hppa*64*)
4370 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]'
4371 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4372 ;;
4373 *)
4374 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4375 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4376 ;;
4377 esac
drh71eb93e2001-09-28 01:34:43 +00004378 ;;
4379
mlcreech636a9952008-05-05 22:52:56 +00004380interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004381 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4383 ;;
4384
a.rottmann84e63352003-03-24 09:42:16 +00004385irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004386 case $LD in
4387 *-32|*"-32 ") libmagic=32-bit;;
4388 *-n32|*"-n32 ") libmagic=N32;;
4389 *-64|*"-64 ") libmagic=64-bit;;
4390 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004391 esac
drh71eb93e2001-09-28 01:34:43 +00004392 lt_cv_deplibs_check_method=pass_all
4393 ;;
4394
4395# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004396linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004397 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004398 ;;
4399
vapier7f19c022007-02-17 14:46:31 +00004400netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004401 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004403 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004405 fi
4406 ;;
4407
4408newos6*)
4409 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4410 lt_cv_file_magic_cmd=/usr/bin/file
4411 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4412 ;;
4413
mlcreech636a9952008-05-05 22:52:56 +00004414*nto* | *qnx*)
4415 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004416 ;;
4417
a.rottmann84e63352003-03-24 09:42:16 +00004418openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004419 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004421 else
vapier7f19c022007-02-17 14:46:31 +00004422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004423 fi
drh71eb93e2001-09-28 01:34:43 +00004424 ;;
4425
4426osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004427 lt_cv_deplibs_check_method=pass_all
4428 ;;
4429
mlcreech636a9952008-05-05 22:52:56 +00004430rdos*)
4431 lt_cv_deplibs_check_method=pass_all
4432 ;;
4433
drh71eb93e2001-09-28 01:34:43 +00004434solaris*)
4435 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004436 ;;
4437
mlcreech636a9952008-05-05 22:52:56 +00004438sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4439 lt_cv_deplibs_check_method=pass_all
4440 ;;
4441
vapier7f19c022007-02-17 14:46:31 +00004442sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004443 case $host_vendor in
4444 motorola)
4445 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]'
4446 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4447 ;;
4448 ncr)
4449 lt_cv_deplibs_check_method=pass_all
4450 ;;
4451 sequent)
4452 lt_cv_file_magic_cmd='/bin/file'
4453 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4454 ;;
4455 sni)
4456 lt_cv_file_magic_cmd='/bin/file'
4457 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4458 lt_cv_file_magic_test_file=/lib/libc.so
4459 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004460 siemens)
4461 lt_cv_deplibs_check_method=pass_all
4462 ;;
vapier7f19c022007-02-17 14:46:31 +00004463 pc)
4464 lt_cv_deplibs_check_method=pass_all
4465 ;;
drh71eb93e2001-09-28 01:34:43 +00004466 esac
4467 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004468
mlcreech636a9952008-05-05 22:52:56 +00004469tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004470 lt_cv_deplibs_check_method=pass_all
4471 ;;
drh71eb93e2001-09-28 01:34:43 +00004472esac
4473
4474fi
drhf922ca42015-05-14 15:39:18 +00004475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
drh8b727472009-01-19 18:18:40 +00004476$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004477file_magic_cmd=$lt_cv_file_magic_cmd
4478deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004479test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004480
drh71eb93e2001-09-28 01:34:43 +00004481
drh71eb93e2001-09-28 01:34:43 +00004482
drh71eb93e2001-09-28 01:34:43 +00004483
mlcreech636a9952008-05-05 22:52:56 +00004484
4485
4486
4487
4488
4489
4490
4491
4492if test -n "$ac_tool_prefix"; then
4493 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4494set dummy ${ac_tool_prefix}ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004496$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004497if ${ac_cv_prog_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004498 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004499else
4500 if test -n "$AR"; then
4501 ac_cv_prog_AR="$AR" # Let the user override the test.
4502else
4503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504for as_dir in $PATH
4505do
4506 IFS=$as_save_IFS
4507 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004510 ac_cv_prog_AR="${ac_tool_prefix}ar"
drhf922ca42015-05-14 15:39:18 +00004511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004512 break 2
4513 fi
4514done
drhf922ca42015-05-14 15:39:18 +00004515 done
drh8b727472009-01-19 18:18:40 +00004516IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004517
4518fi
4519fi
4520AR=$ac_cv_prog_AR
4521if test -n "$AR"; then
drhf922ca42015-05-14 15:39:18 +00004522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
drh8b727472009-01-19 18:18:40 +00004523$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004524else
drhf922ca42015-05-14 15:39:18 +00004525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004526$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004527fi
4528
drh8b727472009-01-19 18:18:40 +00004529
mlcreech636a9952008-05-05 22:52:56 +00004530fi
4531if test -z "$ac_cv_prog_AR"; then
4532 ac_ct_AR=$AR
4533 # Extract the first word of "ar", so it can be a program name with args.
4534set dummy ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004536$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004537if ${ac_cv_prog_ac_ct_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004538 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004539else
4540 if test -n "$ac_ct_AR"; then
4541 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4542else
4543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544for as_dir in $PATH
4545do
4546 IFS=$as_save_IFS
4547 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004550 ac_cv_prog_ac_ct_AR="ar"
drhf922ca42015-05-14 15:39:18 +00004551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004552 break 2
4553 fi
4554done
drhf922ca42015-05-14 15:39:18 +00004555 done
drh8b727472009-01-19 18:18:40 +00004556IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004557
4558fi
4559fi
4560ac_ct_AR=$ac_cv_prog_ac_ct_AR
4561if test -n "$ac_ct_AR"; then
drhf922ca42015-05-14 15:39:18 +00004562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
drh8b727472009-01-19 18:18:40 +00004563$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004564else
drhf922ca42015-05-14 15:39:18 +00004565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004566$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004567fi
4568
drh8b727472009-01-19 18:18:40 +00004569 if test "x$ac_ct_AR" = x; then
4570 AR="false"
4571 else
4572 case $cross_compiling:$ac_tool_warned in
4573yes:)
drhf922ca42015-05-14 15:39:18 +00004574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004576ac_tool_warned=yes ;;
4577esac
4578 AR=$ac_ct_AR
4579 fi
mlcreech636a9952008-05-05 22:52:56 +00004580else
4581 AR="$ac_cv_prog_AR"
4582fi
4583
4584test -z "$AR" && AR=ar
4585test -z "$AR_FLAGS" && AR_FLAGS=cru
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597if test -n "$ac_tool_prefix"; then
4598 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4599set dummy ${ac_tool_prefix}strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004601$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004602if ${ac_cv_prog_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004603 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004604else
4605 if test -n "$STRIP"; then
4606 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4607else
4608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609for as_dir in $PATH
4610do
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004615 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drhf922ca42015-05-14 15:39:18 +00004616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004617 break 2
4618 fi
4619done
drhf922ca42015-05-14 15:39:18 +00004620 done
drh8b727472009-01-19 18:18:40 +00004621IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004622
4623fi
4624fi
4625STRIP=$ac_cv_prog_STRIP
4626if test -n "$STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004628$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004629else
drhf922ca42015-05-14 15:39:18 +00004630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004631$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004632fi
4633
drh8b727472009-01-19 18:18:40 +00004634
mlcreech636a9952008-05-05 22:52:56 +00004635fi
4636if test -z "$ac_cv_prog_STRIP"; then
4637 ac_ct_STRIP=$STRIP
4638 # Extract the first word of "strip", so it can be a program name with args.
4639set dummy strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004641$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004642if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004643 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004644else
4645 if test -n "$ac_ct_STRIP"; then
4646 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4647else
4648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649for as_dir in $PATH
4650do
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004655 ac_cv_prog_ac_ct_STRIP="strip"
drhf922ca42015-05-14 15:39:18 +00004656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004657 break 2
4658 fi
4659done
drhf922ca42015-05-14 15:39:18 +00004660 done
drh8b727472009-01-19 18:18:40 +00004661IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004662
4663fi
4664fi
4665ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4666if test -n "$ac_ct_STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004668$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004669else
drhf922ca42015-05-14 15:39:18 +00004670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004671$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004672fi
4673
drh8b727472009-01-19 18:18:40 +00004674 if test "x$ac_ct_STRIP" = x; then
4675 STRIP=":"
4676 else
4677 case $cross_compiling:$ac_tool_warned in
4678yes:)
drhf922ca42015-05-14 15:39:18 +00004679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004681ac_tool_warned=yes ;;
4682esac
4683 STRIP=$ac_ct_STRIP
4684 fi
mlcreech636a9952008-05-05 22:52:56 +00004685else
4686 STRIP="$ac_cv_prog_STRIP"
4687fi
4688
4689test -z "$STRIP" && STRIP=:
4690
4691
4692
4693
4694
4695
4696if test -n "$ac_tool_prefix"; then
4697 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4698set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004700$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004701if ${ac_cv_prog_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004702 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004703else
4704 if test -n "$RANLIB"; then
4705 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4706else
4707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708for as_dir in $PATH
4709do
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004714 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drhf922ca42015-05-14 15:39:18 +00004715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004716 break 2
4717 fi
4718done
drhf922ca42015-05-14 15:39:18 +00004719 done
drh8b727472009-01-19 18:18:40 +00004720IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004721
4722fi
4723fi
4724RANLIB=$ac_cv_prog_RANLIB
4725if test -n "$RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004727$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004728else
drhf922ca42015-05-14 15:39:18 +00004729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004730$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004731fi
4732
drh8b727472009-01-19 18:18:40 +00004733
mlcreech636a9952008-05-05 22:52:56 +00004734fi
4735if test -z "$ac_cv_prog_RANLIB"; then
4736 ac_ct_RANLIB=$RANLIB
4737 # Extract the first word of "ranlib", so it can be a program name with args.
4738set dummy ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004740$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004741if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004742 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004743else
4744 if test -n "$ac_ct_RANLIB"; then
4745 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4746else
4747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748for as_dir in $PATH
4749do
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004754 ac_cv_prog_ac_ct_RANLIB="ranlib"
drhf922ca42015-05-14 15:39:18 +00004755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004756 break 2
4757 fi
4758done
drhf922ca42015-05-14 15:39:18 +00004759 done
drh8b727472009-01-19 18:18:40 +00004760IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004761
4762fi
4763fi
4764ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4765if test -n "$ac_ct_RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004767$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004768else
drhf922ca42015-05-14 15:39:18 +00004769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004770$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004771fi
4772
drh8b727472009-01-19 18:18:40 +00004773 if test "x$ac_ct_RANLIB" = x; then
4774 RANLIB=":"
4775 else
4776 case $cross_compiling:$ac_tool_warned in
4777yes:)
drhf922ca42015-05-14 15:39:18 +00004778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004780ac_tool_warned=yes ;;
4781esac
4782 RANLIB=$ac_ct_RANLIB
4783 fi
mlcreech636a9952008-05-05 22:52:56 +00004784else
4785 RANLIB="$ac_cv_prog_RANLIB"
4786fi
4787
4788test -z "$RANLIB" && RANLIB=:
4789
4790
4791
4792
4793
4794
4795# Determine commands to create old-style static archives.
4796old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4797old_postinstall_cmds='chmod 644 $oldlib'
4798old_postuninstall_cmds=
4799
4800if test -n "$RANLIB"; then
4801 case $host_os in
4802 openbsd*)
4803 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4804 ;;
4805 *)
4806 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4807 ;;
4808 esac
4809 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4810fi
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
a.rottmann9bc8b932004-02-29 15:18:31 +00004845# If no C compiler was specified, use CC.
4846LTCC=${LTCC-"$CC"}
4847
vapier7f19c022007-02-17 14:46:31 +00004848# If no C compiler flags were specified, use CFLAGS.
4849LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4850
a.rottmann9bc8b932004-02-29 15:18:31 +00004851# Allow CC to be a program name with arguments.
4852compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004853
drh71eb93e2001-09-28 01:34:43 +00004854
mlcreech636a9952008-05-05 22:52:56 +00004855# Check for command to grab the raw symbol name followed by C symbol from nm.
drhf922ca42015-05-14 15:39:18 +00004856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
drh8b727472009-01-19 18:18:40 +00004857$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004858if ${lt_cv_sys_global_symbol_pipe+:} false; then :
drh8b727472009-01-19 18:18:40 +00004859 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004860else
4861
4862# These are sane defaults that work on at least a few old systems.
4863# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4864
4865# Character class describing NM global symbol codes.
4866symcode='[BCDEGRST]'
4867
4868# Regexp to match symbols that can be accessed directly from C.
4869sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4870
4871# Define system-specific variables.
4872case $host_os in
4873aix*)
4874 symcode='[BCDT]'
4875 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004876cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004877 symcode='[ABCDGISTW]'
4878 ;;
4879hpux*)
4880 if test "$host_cpu" = ia64; then
4881 symcode='[ABCDEGRST]'
4882 fi
4883 ;;
4884irix* | nonstopux*)
4885 symcode='[BCDEGRST]'
4886 ;;
4887osf*)
4888 symcode='[BCDEGQRST]'
4889 ;;
4890solaris*)
4891 symcode='[BDRT]'
4892 ;;
4893sco3.2v5*)
4894 symcode='[DT]'
4895 ;;
4896sysv4.2uw2*)
4897 symcode='[DT]'
4898 ;;
4899sysv5* | sco5v6* | unixware* | OpenUNIX*)
4900 symcode='[ABDT]'
4901 ;;
4902sysv4)
4903 symcode='[DFNSTU]'
4904 ;;
4905esac
4906
4907# If we're using GNU nm, then use its standard symbol codes.
4908case `$NM -V 2>&1` in
4909*GNU* | *'with BFD'*)
4910 symcode='[ABCDGIRSTW]' ;;
4911esac
4912
4913# Transform an extracted symbol line into a proper C declaration.
4914# Some systems (esp. on ia64) link data and code symbols differently,
4915# so use this general approach.
4916lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4917
4918# Transform an extracted symbol line into symbol name and symbol address
4919lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4920lt_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'"
4921
4922# Handle CRLF in mingw tool chain
4923opt_cr=
4924case $build_os in
4925mingw*)
4926 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4927 ;;
4928esac
4929
4930# Try without a prefix underscore, then with it.
4931for ac_symprfx in "" "_"; do
4932
4933 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4934 symxfrm="\\1 $ac_symprfx\\2 \\2"
4935
4936 # Write the raw and C identifiers.
4937 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4938 # Fake it for dumpbin and say T for any non-static function
4939 # and D for any global variable.
4940 # Also find C++ and __fastcall symbols from MSVC++,
4941 # which start with @ or ?.
4942 lt_cv_sys_global_symbol_pipe="$AWK '"\
4943" {last_section=section; section=\$ 3};"\
4944" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4945" \$ 0!~/External *\|/{next};"\
4946" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4947" {if(hide[section]) next};"\
4948" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4949" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4950" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4951" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4952" ' prfx=^$ac_symprfx"
4953 else
4954 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4955 fi
4956
4957 # Check to see that the pipe works correctly.
4958 pipe_works=no
4959
4960 rm -f conftest*
4961 cat > conftest.$ac_ext <<_LT_EOF
4962#ifdef __cplusplus
4963extern "C" {
4964#endif
4965char nm_test_var;
4966void nm_test_func(void);
4967void nm_test_func(void){}
4968#ifdef __cplusplus
4969}
4970#endif
4971int main(){nm_test_var='a';nm_test_func();return(0);}
4972_LT_EOF
4973
drhf922ca42015-05-14 15:39:18 +00004974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00004975 (eval $ac_compile) 2>&5
4976 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4978 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00004979 # Now try to grab the symbols.
4980 nlist=conftest.nm
drhf922ca42015-05-14 15:39:18 +00004981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00004982 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4983 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4985 test $ac_status = 0; } && test -s "$nlist"; then
mlcreech636a9952008-05-05 22:52:56 +00004986 # Try sorting and uniquifying the output.
4987 if sort "$nlist" | uniq > "$nlist"T; then
4988 mv -f "$nlist"T "$nlist"
4989 else
4990 rm -f "$nlist"T
4991 fi
4992
4993 # Make sure that we snagged all the symbols we need.
4994 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4995 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4996 cat <<_LT_EOF > conftest.$ac_ext
4997#ifdef __cplusplus
4998extern "C" {
4999#endif
5000
5001_LT_EOF
5002 # Now generate the symbol file.
5003 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5004
5005 cat <<_LT_EOF >> conftest.$ac_ext
5006
5007/* The mapping between symbol names and symbols. */
5008const struct {
5009 const char *name;
5010 void *address;
5011}
5012lt__PROGRAM__LTX_preloaded_symbols[] =
5013{
5014 { "@PROGRAM@", (void *) 0 },
5015_LT_EOF
5016 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5017 cat <<\_LT_EOF >> conftest.$ac_ext
5018 {0, (void *) 0}
5019};
5020
5021/* This works around a problem in FreeBSD linker */
5022#ifdef FREEBSD_WORKAROUND
5023static const void *lt_preloaded_setup() {
5024 return lt__PROGRAM__LTX_preloaded_symbols;
5025}
5026#endif
5027
5028#ifdef __cplusplus
5029}
5030#endif
5031_LT_EOF
5032 # Now try linking the two files.
5033 mv conftest.$ac_objext conftstm.$ac_objext
5034 lt_save_LIBS="$LIBS"
5035 lt_save_CFLAGS="$CFLAGS"
5036 LIBS="conftstm.$ac_objext"
5037 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
drhf922ca42015-05-14 15:39:18 +00005038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00005039 (eval $ac_link) 2>&5
5040 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5042 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
mlcreech636a9952008-05-05 22:52:56 +00005043 pipe_works=yes
5044 fi
5045 LIBS="$lt_save_LIBS"
5046 CFLAGS="$lt_save_CFLAGS"
5047 else
5048 echo "cannot find nm_test_func in $nlist" >&5
5049 fi
5050 else
5051 echo "cannot find nm_test_var in $nlist" >&5
5052 fi
5053 else
5054 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5055 fi
5056 else
5057 echo "$progname: failed program was:" >&5
5058 cat conftest.$ac_ext >&5
5059 fi
5060 rm -rf conftest* conftst*
5061
5062 # Do not use the global_symbol_pipe unless it works.
5063 if test "$pipe_works" = yes; then
5064 break
5065 else
5066 lt_cv_sys_global_symbol_pipe=
5067 fi
5068done
5069
5070fi
5071
5072if test -z "$lt_cv_sys_global_symbol_pipe"; then
5073 lt_cv_sys_global_symbol_to_cdecl=
5074fi
5075if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drhf922ca42015-05-14 15:39:18 +00005076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
drh8b727472009-01-19 18:18:40 +00005077$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005078else
drhf922ca42015-05-14 15:39:18 +00005079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
drh8b727472009-01-19 18:18:40 +00005080$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005081fi
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
drh8b727472009-01-19 18:18:40 +00005105# Check whether --enable-libtool-lock was given.
drhf922ca42015-05-14 15:39:18 +00005106if test "${enable_libtool_lock+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005107 enableval=$enable_libtool_lock;
5108fi
drh71eb93e2001-09-28 01:34:43 +00005109
a.rottmann9bc8b932004-02-29 15:18:31 +00005110test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00005111
a.rottmann9bc8b932004-02-29 15:18:31 +00005112# Some flags need to be propagated to the compiler or linker for good
5113# libtool support.
5114case $host in
5115ia64-*-hpux*)
5116 # Find out which ABI we are using.
5117 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00005119 (eval $ac_compile) 2>&5
5120 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5122 test $ac_status = 0; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005123 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00005124 *ELF-32*)
5125 HPUX_IA64_MODE="32"
5126 ;;
5127 *ELF-64*)
5128 HPUX_IA64_MODE="64"
5129 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005130 esac
5131 fi
5132 rm -rf conftest*
5133 ;;
5134*-*-irix6*)
5135 # Find out which ABI we are using.
drhce1d9f52015-10-09 12:48:33 +00005136 echo '#line 5136 "configure"' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005138 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00005139 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5141 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00005142 if test "$lt_cv_prog_gnu_ld" = yes; then
5143 case `/usr/bin/file conftest.$ac_objext` in
5144 *32-bit*)
5145 LD="${LD-ld} -melf32bsmip"
5146 ;;
5147 *N32*)
5148 LD="${LD-ld} -melf32bmipn32"
5149 ;;
5150 *64-bit*)
5151 LD="${LD-ld} -melf64bmip"
5152 ;;
5153 esac
5154 else
5155 case `/usr/bin/file conftest.$ac_objext` in
5156 *32-bit*)
5157 LD="${LD-ld} -32"
5158 ;;
5159 *N32*)
5160 LD="${LD-ld} -n32"
5161 ;;
5162 *64-bit*)
5163 LD="${LD-ld} -64"
5164 ;;
5165 esac
5166 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005167 fi
5168 rm -rf conftest*
5169 ;;
drh71eb93e2001-09-28 01:34:43 +00005170
mlcreech636a9952008-05-05 22:52:56 +00005171x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5172s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005173 # Find out which ABI we are using.
5174 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005176 (eval $ac_compile) 2>&5
5177 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5179 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005180 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005181 *32-bit*)
5182 case $host in
5183 x86_64-*kfreebsd*-gnu)
5184 LD="${LD-ld} -m elf_i386_fbsd"
5185 ;;
5186 x86_64-*linux*)
5187 LD="${LD-ld} -m elf_i386"
5188 ;;
5189 ppc64-*linux*|powerpc64-*linux*)
5190 LD="${LD-ld} -m elf32ppclinux"
5191 ;;
5192 s390x-*linux*)
5193 LD="${LD-ld} -m elf_s390"
5194 ;;
5195 sparc64-*linux*)
5196 LD="${LD-ld} -m elf32_sparc"
5197 ;;
5198 esac
5199 ;;
5200 *64-bit*)
5201 case $host in
5202 x86_64-*kfreebsd*-gnu)
5203 LD="${LD-ld} -m elf_x86_64_fbsd"
5204 ;;
5205 x86_64-*linux*)
5206 LD="${LD-ld} -m elf_x86_64"
5207 ;;
5208 ppc*-*linux*|powerpc*-*linux*)
5209 LD="${LD-ld} -m elf64ppc"
5210 ;;
5211 s390*-*linux*|s390*-*tpf*)
5212 LD="${LD-ld} -m elf64_s390"
5213 ;;
5214 sparc*-*linux*)
5215 LD="${LD-ld} -m elf64_sparc"
5216 ;;
5217 esac
5218 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005219 esac
5220 fi
5221 rm -rf conftest*
5222 ;;
drh71eb93e2001-09-28 01:34:43 +00005223
a.rottmann9bc8b932004-02-29 15:18:31 +00005224*-*-sco3.2v5*)
5225 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5226 SAVE_CFLAGS="$CFLAGS"
5227 CFLAGS="$CFLAGS -belf"
drhf922ca42015-05-14 15:39:18 +00005228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
drh8b727472009-01-19 18:18:40 +00005229$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005230if ${lt_cv_cc_needs_belf+:} false; then :
drh8b727472009-01-19 18:18:40 +00005231 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005232else
5233 ac_ext=c
5234ac_cpp='$CPP $CPPFLAGS'
5235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5237ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005238
drhf922ca42015-05-14 15:39:18 +00005239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005240/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005241
a.rottmann9bc8b932004-02-29 15:18:31 +00005242int
5243main ()
drh71eb93e2001-09-28 01:34:43 +00005244{
drh71eb93e2001-09-28 01:34:43 +00005245
a.rottmann9bc8b932004-02-29 15:18:31 +00005246 ;
5247 return 0;
drh71eb93e2001-09-28 01:34:43 +00005248}
a.rottmann9bc8b932004-02-29 15:18:31 +00005249_ACEOF
drhf922ca42015-05-14 15:39:18 +00005250if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00005251 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005252else
drhf922ca42015-05-14 15:39:18 +00005253 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005254fi
drhf922ca42015-05-14 15:39:18 +00005255rm -f core conftest.err conftest.$ac_objext \
5256 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005257 ac_ext=c
5258ac_cpp='$CPP $CPPFLAGS'
5259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5261ac_compiler_gnu=$ac_cv_c_compiler_gnu
5262
drh71eb93e2001-09-28 01:34:43 +00005263fi
drhf922ca42015-05-14 15:39:18 +00005264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
drh8b727472009-01-19 18:18:40 +00005265$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005266 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5267 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5268 CFLAGS="$SAVE_CFLAGS"
5269 fi
5270 ;;
vapier7f19c022007-02-17 14:46:31 +00005271sparc*-*solaris*)
5272 # Find out which ABI we are using.
5273 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
vapier7f19c022007-02-17 14:46:31 +00005275 (eval $ac_compile) 2>&5
5276 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5278 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005279 case `/usr/bin/file conftest.o` in
5280 *64-bit*)
5281 case $lt_cv_prog_gnu_ld in
5282 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005283 *)
5284 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5285 LD="${LD-ld} -64"
5286 fi
5287 ;;
vapier7f19c022007-02-17 14:46:31 +00005288 esac
5289 ;;
5290 esac
5291 fi
5292 rm -rf conftest*
5293 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005294esac
5295
5296need_locks="$enable_libtool_lock"
5297
drh71eb93e2001-09-28 01:34:43 +00005298
mlcreech636a9952008-05-05 22:52:56 +00005299 case $host_os in
5300 rhapsody* | darwin*)
5301 if test -n "$ac_tool_prefix"; then
5302 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5303set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005305$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005306if ${ac_cv_prog_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005307 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005308else
5309 if test -n "$DSYMUTIL"; then
5310 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5311else
5312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313for as_dir in $PATH
5314do
5315 IFS=$as_save_IFS
5316 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005319 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drhf922ca42015-05-14 15:39:18 +00005320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005321 break 2
5322 fi
5323done
drhf922ca42015-05-14 15:39:18 +00005324 done
drh8b727472009-01-19 18:18:40 +00005325IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005326
5327fi
5328fi
5329DSYMUTIL=$ac_cv_prog_DSYMUTIL
5330if test -n "$DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005332$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005333else
drhf922ca42015-05-14 15:39:18 +00005334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005335$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005336fi
5337
drh8b727472009-01-19 18:18:40 +00005338
mlcreech636a9952008-05-05 22:52:56 +00005339fi
5340if test -z "$ac_cv_prog_DSYMUTIL"; then
5341 ac_ct_DSYMUTIL=$DSYMUTIL
5342 # Extract the first word of "dsymutil", so it can be a program name with args.
5343set dummy dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005345$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005346if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005347 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005348else
5349 if test -n "$ac_ct_DSYMUTIL"; then
5350 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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=.
drhf922ca42015-05-14 15:39:18 +00005357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005359 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drhf922ca42015-05-14 15:39:18 +00005360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005361 break 2
5362 fi
5363done
drhf922ca42015-05-14 15:39:18 +00005364 done
drh8b727472009-01-19 18:18:40 +00005365IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005366
5367fi
5368fi
5369ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5370if test -n "$ac_ct_DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005372$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005373else
drhf922ca42015-05-14 15:39:18 +00005374 { $as_echo "$as_me:${as_lineno-$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 if test "x$ac_ct_DSYMUTIL" = x; then
5379 DSYMUTIL=":"
5380 else
5381 case $cross_compiling:$ac_tool_warned in
5382yes:)
drhf922ca42015-05-14 15:39:18 +00005383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005385ac_tool_warned=yes ;;
5386esac
5387 DSYMUTIL=$ac_ct_DSYMUTIL
5388 fi
mlcreech636a9952008-05-05 22:52:56 +00005389else
5390 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5391fi
5392
5393 if test -n "$ac_tool_prefix"; then
5394 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5395set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005397$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005398if ${ac_cv_prog_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005399 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005400else
5401 if test -n "$NMEDIT"; then
5402 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5403else
5404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405for as_dir in $PATH
5406do
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005411 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drhf922ca42015-05-14 15:39:18 +00005412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005413 break 2
5414 fi
5415done
drhf922ca42015-05-14 15:39:18 +00005416 done
drh8b727472009-01-19 18:18:40 +00005417IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005418
5419fi
5420fi
5421NMEDIT=$ac_cv_prog_NMEDIT
5422if test -n "$NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005424$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005425else
drhf922ca42015-05-14 15:39:18 +00005426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005427$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005428fi
5429
drh8b727472009-01-19 18:18:40 +00005430
mlcreech636a9952008-05-05 22:52:56 +00005431fi
5432if test -z "$ac_cv_prog_NMEDIT"; then
5433 ac_ct_NMEDIT=$NMEDIT
5434 # Extract the first word of "nmedit", so it can be a program name with args.
5435set dummy nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005437$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005438if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005439 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005440else
5441 if test -n "$ac_ct_NMEDIT"; then
5442 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5443else
5444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445for as_dir in $PATH
5446do
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005451 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drhf922ca42015-05-14 15:39:18 +00005452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005453 break 2
5454 fi
5455done
drhf922ca42015-05-14 15:39:18 +00005456 done
drh8b727472009-01-19 18:18:40 +00005457IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005458
5459fi
5460fi
5461ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5462if test -n "$ac_ct_NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005464$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005465else
drhf922ca42015-05-14 15:39:18 +00005466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005467$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005468fi
5469
drh8b727472009-01-19 18:18:40 +00005470 if test "x$ac_ct_NMEDIT" = x; then
5471 NMEDIT=":"
5472 else
5473 case $cross_compiling:$ac_tool_warned in
5474yes:)
drhf922ca42015-05-14 15:39:18 +00005475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005477ac_tool_warned=yes ;;
5478esac
5479 NMEDIT=$ac_ct_NMEDIT
5480 fi
mlcreech636a9952008-05-05 22:52:56 +00005481else
5482 NMEDIT="$ac_cv_prog_NMEDIT"
5483fi
5484
5485 if test -n "$ac_tool_prefix"; then
5486 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5487set dummy ${ac_tool_prefix}lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005489$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005490if ${ac_cv_prog_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005491 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005492else
5493 if test -n "$LIPO"; then
5494 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5495else
5496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497for as_dir in $PATH
5498do
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005503 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drhf922ca42015-05-14 15:39:18 +00005504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005505 break 2
5506 fi
5507done
drhf922ca42015-05-14 15:39:18 +00005508 done
drh8b727472009-01-19 18:18:40 +00005509IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005510
5511fi
5512fi
5513LIPO=$ac_cv_prog_LIPO
5514if test -n "$LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005516$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005517else
drhf922ca42015-05-14 15:39:18 +00005518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005519$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005520fi
5521
drh8b727472009-01-19 18:18:40 +00005522
mlcreech636a9952008-05-05 22:52:56 +00005523fi
5524if test -z "$ac_cv_prog_LIPO"; then
5525 ac_ct_LIPO=$LIPO
5526 # Extract the first word of "lipo", so it can be a program name with args.
5527set dummy lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005529$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005530if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005531 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005532else
5533 if test -n "$ac_ct_LIPO"; then
5534 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5535else
5536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537for as_dir in $PATH
5538do
5539 IFS=$as_save_IFS
5540 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005543 ac_cv_prog_ac_ct_LIPO="lipo"
drhf922ca42015-05-14 15:39:18 +00005544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005545 break 2
5546 fi
5547done
drhf922ca42015-05-14 15:39:18 +00005548 done
drh8b727472009-01-19 18:18:40 +00005549IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005550
5551fi
5552fi
5553ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5554if test -n "$ac_ct_LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005556$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005557else
drhf922ca42015-05-14 15:39:18 +00005558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005559$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005560fi
5561
drh8b727472009-01-19 18:18:40 +00005562 if test "x$ac_ct_LIPO" = x; then
5563 LIPO=":"
5564 else
5565 case $cross_compiling:$ac_tool_warned in
5566yes:)
drhf922ca42015-05-14 15:39:18 +00005567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005569ac_tool_warned=yes ;;
5570esac
5571 LIPO=$ac_ct_LIPO
5572 fi
mlcreech636a9952008-05-05 22:52:56 +00005573else
5574 LIPO="$ac_cv_prog_LIPO"
5575fi
5576
5577 if test -n "$ac_tool_prefix"; then
5578 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5579set dummy ${ac_tool_prefix}otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005581$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005582if ${ac_cv_prog_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005583 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005584else
5585 if test -n "$OTOOL"; then
5586 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5587else
5588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589for as_dir in $PATH
5590do
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005595 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drhf922ca42015-05-14 15:39:18 +00005596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005597 break 2
5598 fi
5599done
drhf922ca42015-05-14 15:39:18 +00005600 done
drh8b727472009-01-19 18:18:40 +00005601IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005602
5603fi
5604fi
5605OTOOL=$ac_cv_prog_OTOOL
5606if test -n "$OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005608$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005609else
drhf922ca42015-05-14 15:39:18 +00005610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005611$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005612fi
5613
drh8b727472009-01-19 18:18:40 +00005614
mlcreech636a9952008-05-05 22:52:56 +00005615fi
5616if test -z "$ac_cv_prog_OTOOL"; then
5617 ac_ct_OTOOL=$OTOOL
5618 # Extract the first word of "otool", so it can be a program name with args.
5619set dummy otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005621$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005622if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005623 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005624else
5625 if test -n "$ac_ct_OTOOL"; then
5626 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5627else
5628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629for as_dir in $PATH
5630do
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005635 ac_cv_prog_ac_ct_OTOOL="otool"
drhf922ca42015-05-14 15:39:18 +00005636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005637 break 2
5638 fi
5639done
drhf922ca42015-05-14 15:39:18 +00005640 done
drh8b727472009-01-19 18:18:40 +00005641IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005642
5643fi
5644fi
5645ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5646if test -n "$ac_ct_OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005648$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005649else
drhf922ca42015-05-14 15:39:18 +00005650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005651$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005652fi
5653
drh8b727472009-01-19 18:18:40 +00005654 if test "x$ac_ct_OTOOL" = x; then
5655 OTOOL=":"
5656 else
5657 case $cross_compiling:$ac_tool_warned in
5658yes:)
drhf922ca42015-05-14 15:39:18 +00005659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005661ac_tool_warned=yes ;;
5662esac
5663 OTOOL=$ac_ct_OTOOL
5664 fi
mlcreech636a9952008-05-05 22:52:56 +00005665else
5666 OTOOL="$ac_cv_prog_OTOOL"
5667fi
5668
5669 if test -n "$ac_tool_prefix"; then
5670 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5671set dummy ${ac_tool_prefix}otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005673$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005674if ${ac_cv_prog_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005675 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005676else
5677 if test -n "$OTOOL64"; then
5678 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5679else
5680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681for as_dir in $PATH
5682do
5683 IFS=$as_save_IFS
5684 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005687 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drhf922ca42015-05-14 15:39:18 +00005688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005689 break 2
5690 fi
5691done
drhf922ca42015-05-14 15:39:18 +00005692 done
drh8b727472009-01-19 18:18:40 +00005693IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005694
5695fi
5696fi
5697OTOOL64=$ac_cv_prog_OTOOL64
5698if test -n "$OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005700$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005701else
drhf922ca42015-05-14 15:39:18 +00005702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005703$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005704fi
5705
drh8b727472009-01-19 18:18:40 +00005706
mlcreech636a9952008-05-05 22:52:56 +00005707fi
5708if test -z "$ac_cv_prog_OTOOL64"; then
5709 ac_ct_OTOOL64=$OTOOL64
5710 # Extract the first word of "otool64", so it can be a program name with args.
5711set dummy otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005713$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005714if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005715 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005716else
5717 if test -n "$ac_ct_OTOOL64"; then
5718 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5719else
5720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721for as_dir in $PATH
5722do
5723 IFS=$as_save_IFS
5724 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005727 ac_cv_prog_ac_ct_OTOOL64="otool64"
drhf922ca42015-05-14 15:39:18 +00005728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005729 break 2
5730 fi
5731done
drhf922ca42015-05-14 15:39:18 +00005732 done
drh8b727472009-01-19 18:18:40 +00005733IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005734
5735fi
5736fi
5737ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5738if test -n "$ac_ct_OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005740$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005741else
drhf922ca42015-05-14 15:39:18 +00005742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005743$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005744fi
5745
drh8b727472009-01-19 18:18:40 +00005746 if test "x$ac_ct_OTOOL64" = x; then
5747 OTOOL64=":"
5748 else
5749 case $cross_compiling:$ac_tool_warned in
5750yes:)
drhf922ca42015-05-14 15:39:18 +00005751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005753ac_tool_warned=yes ;;
5754esac
5755 OTOOL64=$ac_ct_OTOOL64
5756 fi
mlcreech636a9952008-05-05 22:52:56 +00005757else
5758 OTOOL64="$ac_cv_prog_OTOOL64"
5759fi
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
drhf922ca42015-05-14 15:39:18 +00005787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005788$as_echo_n "checking for -single_module linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005789if ${lt_cv_apple_cc_single_mod+:} false; then :
drh8b727472009-01-19 18:18:40 +00005790 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005791else
5792 lt_cv_apple_cc_single_mod=no
5793 if test -z "${LT_MULTI_MODULE}"; then
5794 # By default we will add the -single_module flag. You can override
5795 # by either setting the environment variable LT_MULTI_MODULE
5796 # non-empty at configure time, or by adding -multi_module to the
5797 # link flags.
5798 rm -rf libconftest.dylib*
5799 echo "int foo(void){return 1;}" > conftest.c
5800 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5801-dynamiclib -Wl,-single_module conftest.c" >&5
5802 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5803 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5804 _lt_result=$?
5805 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5806 lt_cv_apple_cc_single_mod=yes
5807 else
5808 cat conftest.err >&5
5809 fi
5810 rm -rf libconftest.dylib*
5811 rm -f conftest.*
5812 fi
5813fi
drhf922ca42015-05-14 15:39:18 +00005814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
drh8b727472009-01-19 18:18:40 +00005815$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
drhf922ca42015-05-14 15:39:18 +00005816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005817$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005818if ${lt_cv_ld_exported_symbols_list+:} false; then :
drh8b727472009-01-19 18:18:40 +00005819 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005820else
5821 lt_cv_ld_exported_symbols_list=no
5822 save_LDFLAGS=$LDFLAGS
5823 echo "_main" > conftest.sym
5824 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
drhf922ca42015-05-14 15:39:18 +00005825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005826/* end confdefs.h. */
5827
5828int
5829main ()
5830{
5831
5832 ;
5833 return 0;
5834}
5835_ACEOF
drhf922ca42015-05-14 15:39:18 +00005836if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00005837 lt_cv_ld_exported_symbols_list=yes
5838else
drhf922ca42015-05-14 15:39:18 +00005839 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005840fi
drhf922ca42015-05-14 15:39:18 +00005841rm -f core conftest.err conftest.$ac_objext \
5842 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005843 LDFLAGS="$save_LDFLAGS"
5844
5845fi
drhf922ca42015-05-14 15:39:18 +00005846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
drh8b727472009-01-19 18:18:40 +00005847$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005848 case $host_os in
5849 rhapsody* | darwin1.[012])
5850 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5851 darwin1.*)
5852 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5853 darwin*) # darwin 5.x on
5854 # if running on 10.5 or later, the deployment target defaults
5855 # to the OS version, if on x86, and 10.4, the deployment
5856 # target defaults to 10.4. Don't you love it?
5857 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5858 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5859 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5860 10.[012]*)
5861 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5862 10.*)
5863 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5864 esac
5865 ;;
5866 esac
5867 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5868 _lt_dar_single_mod='$single_module'
5869 fi
5870 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5871 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5872 else
5873 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5874 fi
5875 if test "$DSYMUTIL" != ":"; then
5876 _lt_dsymutil='~$DSYMUTIL $lib || :'
5877 else
5878 _lt_dsymutil=
5879 fi
5880 ;;
5881 esac
5882
a.rottmann84e63352003-03-24 09:42:16 +00005883ac_ext=c
5884ac_cpp='$CPP $CPPFLAGS'
5885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887ac_compiler_gnu=$ac_cv_c_compiler_gnu
drhf922ca42015-05-14 15:39:18 +00005888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
drh8b727472009-01-19 18:18:40 +00005889$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005890# On Suns, sometimes $CPP names a directory.
5891if test -n "$CPP" && test -d "$CPP"; then
5892 CPP=
5893fi
5894if test -z "$CPP"; then
drhf922ca42015-05-14 15:39:18 +00005895 if ${ac_cv_prog_CPP+:} false; then :
drh8b727472009-01-19 18:18:40 +00005896 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005897else
a.rottmann84e63352003-03-24 09:42:16 +00005898 # Double quotes because CPP needs to be expanded
5899 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5900 do
5901 ac_preproc_ok=false
5902for ac_c_preproc_warn_flag in '' yes
5903do
5904 # Use a header file that comes with gcc, so configuring glibc
5905 # with a fresh cross-compiler works.
5906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5907 # <limits.h> exists even on freestanding compilers.
5908 # On the NeXT, cc -E runs the code through the compiler's parser,
5909 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005911/* end confdefs.h. */
5912#ifdef __STDC__
5913# include <limits.h>
5914#else
5915# include <assert.h>
5916#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005917 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005918_ACEOF
drhf922ca42015-05-14 15:39:18 +00005919if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005920
drhf922ca42015-05-14 15:39:18 +00005921else
a.rottmann84e63352003-03-24 09:42:16 +00005922 # Broken: fails on valid input.
5923continue
5924fi
drhf922ca42015-05-14 15:39:18 +00005925rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005926
drh8b727472009-01-19 18:18:40 +00005927 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005928 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005930/* end confdefs.h. */
5931#include <ac_nonexistent.h>
5932_ACEOF
drhf922ca42015-05-14 15:39:18 +00005933if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005934 # Broken: success on invalid input.
5935continue
5936else
a.rottmann84e63352003-03-24 09:42:16 +00005937 # Passes both tests.
5938ac_preproc_ok=:
5939break
5940fi
drhf922ca42015-05-14 15:39:18 +00005941rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005942
5943done
5944# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00005945rm -f conftest.i conftest.err conftest.$ac_ext
5946if $ac_preproc_ok; then :
a.rottmann84e63352003-03-24 09:42:16 +00005947 break
5948fi
5949
5950 done
5951 ac_cv_prog_CPP=$CPP
5952
5953fi
5954 CPP=$ac_cv_prog_CPP
5955else
5956 ac_cv_prog_CPP=$CPP
5957fi
drhf922ca42015-05-14 15:39:18 +00005958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
drh8b727472009-01-19 18:18:40 +00005959$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005960ac_preproc_ok=false
5961for ac_c_preproc_warn_flag in '' yes
5962do
5963 # Use a header file that comes with gcc, so configuring glibc
5964 # with a fresh cross-compiler works.
5965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5966 # <limits.h> exists even on freestanding compilers.
5967 # On the NeXT, cc -E runs the code through the compiler's parser,
5968 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005970/* end confdefs.h. */
5971#ifdef __STDC__
5972# include <limits.h>
5973#else
5974# include <assert.h>
5975#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005976 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005977_ACEOF
drhf922ca42015-05-14 15:39:18 +00005978if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005979
drhf922ca42015-05-14 15:39:18 +00005980else
a.rottmann84e63352003-03-24 09:42:16 +00005981 # Broken: fails on valid input.
5982continue
5983fi
drhf922ca42015-05-14 15:39:18 +00005984rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005985
drh8b727472009-01-19 18:18:40 +00005986 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005987 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005989/* end confdefs.h. */
5990#include <ac_nonexistent.h>
5991_ACEOF
drhf922ca42015-05-14 15:39:18 +00005992if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005993 # Broken: success on invalid input.
5994continue
5995else
a.rottmann84e63352003-03-24 09:42:16 +00005996 # Passes both tests.
5997ac_preproc_ok=:
5998break
5999fi
drhf922ca42015-05-14 15:39:18 +00006000rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006001
6002done
6003# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00006004rm -f conftest.i conftest.err conftest.$ac_ext
6005if $ac_preproc_ok; then :
6006
a.rottmann84e63352003-03-24 09:42:16 +00006007else
drhf922ca42015-05-14 15:39:18 +00006008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6010as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6011See \`config.log' for more details" "$LINENO" 5; }
a.rottmann84e63352003-03-24 09:42:16 +00006012fi
6013
6014ac_ext=c
6015ac_cpp='$CPP $CPPFLAGS'
6016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6018ac_compiler_gnu=$ac_cv_c_compiler_gnu
6019
6020
drhf922ca42015-05-14 15:39:18 +00006021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
drh8b727472009-01-19 18:18:40 +00006022$as_echo_n "checking for ANSI C header files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006023if ${ac_cv_header_stdc+:} false; then :
drh8b727472009-01-19 18:18:40 +00006024 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006025else
drhf922ca42015-05-14 15:39:18 +00006026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006027/* end confdefs.h. */
6028#include <stdlib.h>
6029#include <stdarg.h>
6030#include <string.h>
6031#include <float.h>
6032
6033int
6034main ()
6035{
6036
6037 ;
6038 return 0;
6039}
6040_ACEOF
drhf922ca42015-05-14 15:39:18 +00006041if ac_fn_c_try_compile "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006042 ac_cv_header_stdc=yes
6043else
drhf922ca42015-05-14 15:39:18 +00006044 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006045fi
drh8b727472009-01-19 18:18:40 +00006046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006047
6048if test $ac_cv_header_stdc = yes; then
6049 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006051/* end confdefs.h. */
6052#include <string.h>
6053
6054_ACEOF
6055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006056 $EGREP "memchr" >/dev/null 2>&1; then :
6057
a.rottmann84e63352003-03-24 09:42:16 +00006058else
6059 ac_cv_header_stdc=no
6060fi
6061rm -f conftest*
6062
6063fi
6064
6065if test $ac_cv_header_stdc = yes; then
6066 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006068/* end confdefs.h. */
6069#include <stdlib.h>
6070
6071_ACEOF
6072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006073 $EGREP "free" >/dev/null 2>&1; then :
6074
a.rottmann84e63352003-03-24 09:42:16 +00006075else
6076 ac_cv_header_stdc=no
6077fi
6078rm -f conftest*
6079
6080fi
6081
6082if test $ac_cv_header_stdc = yes; then
6083 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
drhf922ca42015-05-14 15:39:18 +00006084 if test "$cross_compiling" = yes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006085 :
6086else
drhf922ca42015-05-14 15:39:18 +00006087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006088/* end confdefs.h. */
6089#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006090#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006091#if ((' ' & 0x0FF) == 0x020)
6092# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6093# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6094#else
6095# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006096 (('a' <= (c) && (c) <= 'i') \
6097 || ('j' <= (c) && (c) <= 'r') \
6098 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006099# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6100#endif
6101
6102#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6103int
6104main ()
6105{
6106 int i;
6107 for (i = 0; i < 256; i++)
6108 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006109 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006110 return 2;
6111 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006112}
6113_ACEOF
drhf922ca42015-05-14 15:39:18 +00006114if ac_fn_c_try_run "$LINENO"; then :
6115
a.rottmann84e63352003-03-24 09:42:16 +00006116else
drhf922ca42015-05-14 15:39:18 +00006117 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006118fi
drhf922ca42015-05-14 15:39:18 +00006119rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6120 conftest.$ac_objext conftest.beam conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00006121fi
6122
a.rottmann84e63352003-03-24 09:42:16 +00006123fi
6124fi
drhf922ca42015-05-14 15:39:18 +00006125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
drh8b727472009-01-19 18:18:40 +00006126$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006127if test $ac_cv_header_stdc = yes; then
6128
drhf922ca42015-05-14 15:39:18 +00006129$as_echo "#define STDC_HEADERS 1" >>confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00006130
6131fi
6132
6133# On IRIX 5.3, sys/types and inttypes.h are conflicting.
a.rottmann84e63352003-03-24 09:42:16 +00006134for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006135 inttypes.h stdint.h unistd.h
drhf922ca42015-05-14 15:39:18 +00006136do :
6137 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6138ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6139"
6140if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006141 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006142#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006143_ACEOF
6144
6145fi
6146
6147done
6148
6149
a.rottmann84e63352003-03-24 09:42:16 +00006150for ac_header in dlfcn.h
drhf922ca42015-05-14 15:39:18 +00006151do :
6152 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6153"
6154if test "x$ac_cv_header_dlfcn_h" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006155 cat >>confdefs.h <<_ACEOF
drhf922ca42015-05-14 15:39:18 +00006156#define HAVE_DLFCN_H 1
a.rottmann84e63352003-03-24 09:42:16 +00006157_ACEOF
6158
6159fi
6160
drh71eb93e2001-09-28 01:34:43 +00006161done
6162
drh71eb93e2001-09-28 01:34:43 +00006163
drh71eb93e2001-09-28 01:34:43 +00006164
mlcreech636a9952008-05-05 22:52:56 +00006165# Set options
mlcreech94984912008-03-04 19:03:08 +00006166
drh71eb93e2001-09-28 01:34:43 +00006167
drh71eb93e2001-09-28 01:34:43 +00006168
mlcreech636a9952008-05-05 22:52:56 +00006169 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006170
a.rottmann9bc8b932004-02-29 15:18:31 +00006171
mlcreech636a9952008-05-05 22:52:56 +00006172 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006173
a.rottmann9bc8b932004-02-29 15:18:31 +00006174
drh8b727472009-01-19 18:18:40 +00006175 # Check whether --enable-shared was given.
drhf922ca42015-05-14 15:39:18 +00006176if test "${enable_shared+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006177 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006178 case $enableval in
6179 yes) enable_shared=yes ;;
6180 no) enable_shared=no ;;
6181 *)
6182 enable_shared=no
6183 # Look at the argument we got. We use all the common list separators.
6184 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6185 for pkg in $enableval; do
6186 IFS="$lt_save_ifs"
6187 if test "X$pkg" = "X$p"; then
6188 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006189 fi
mlcreech636a9952008-05-05 22:52:56 +00006190 done
6191 IFS="$lt_save_ifs"
6192 ;;
6193 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006194else
mlcreech636a9952008-05-05 22:52:56 +00006195 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006196fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006197
mlcreech636a9952008-05-05 22:52:56 +00006198
6199
6200
6201
6202
6203
6204
drh8b727472009-01-19 18:18:40 +00006205
6206 # Check whether --enable-static was given.
drhf922ca42015-05-14 15:39:18 +00006207if test "${enable_static+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006208 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006209 case $enableval in
6210 yes) enable_static=yes ;;
6211 no) enable_static=no ;;
6212 *)
6213 enable_static=no
6214 # Look at the argument we got. We use all the common list separators.
6215 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6216 for pkg in $enableval; do
6217 IFS="$lt_save_ifs"
6218 if test "X$pkg" = "X$p"; then
6219 enable_static=yes
6220 fi
6221 done
6222 IFS="$lt_save_ifs"
6223 ;;
6224 esac
6225else
6226 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006227fi
mlcreech636a9952008-05-05 22:52:56 +00006228
6229
6230
6231
6232
6233
6234
6235
6236
drh8b727472009-01-19 18:18:40 +00006237
6238# Check whether --with-pic was given.
drhf922ca42015-05-14 15:39:18 +00006239if test "${with_pic+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006240 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006241else
6242 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006243fi
6244
mlcreech636a9952008-05-05 22:52:56 +00006245
6246test -z "$pic_mode" && pic_mode=default
6247
6248
6249
6250
6251
6252
6253
drh8b727472009-01-19 18:18:40 +00006254 # Check whether --enable-fast-install was given.
drhf922ca42015-05-14 15:39:18 +00006255if test "${enable_fast_install+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006256 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006257 case $enableval in
6258 yes) enable_fast_install=yes ;;
6259 no) enable_fast_install=no ;;
6260 *)
6261 enable_fast_install=no
6262 # Look at the argument we got. We use all the common list separators.
6263 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6264 for pkg in $enableval; do
6265 IFS="$lt_save_ifs"
6266 if test "X$pkg" = "X$p"; then
6267 enable_fast_install=yes
6268 fi
6269 done
6270 IFS="$lt_save_ifs"
6271 ;;
6272 esac
6273else
6274 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006275fi
6276
mlcreech636a9952008-05-05 22:52:56 +00006277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287# This can be used to rebuild libtool when needed
6288LIBTOOL_DEPS="$ltmain"
6289
6290# Always use our own libtool.
6291LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317test -z "$LN_S" && LN_S="ln -s"
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332if test -n "${ZSH_VERSION+set}" ; then
6333 setopt NO_GLOB_SUBST
6334fi
6335
drhf922ca42015-05-14 15:39:18 +00006336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
drh8b727472009-01-19 18:18:40 +00006337$as_echo_n "checking for objdir... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006338if ${lt_cv_objdir+:} false; then :
drh8b727472009-01-19 18:18:40 +00006339 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006340else
6341 rm -f .libs 2>/dev/null
6342mkdir .libs 2>/dev/null
6343if test -d .libs; then
6344 lt_cv_objdir=.libs
6345else
6346 # MS-DOS does not allow filenames that begin with a dot.
6347 lt_cv_objdir=_libs
6348fi
6349rmdir .libs 2>/dev/null
6350fi
drhf922ca42015-05-14 15:39:18 +00006351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
drh8b727472009-01-19 18:18:40 +00006352$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006353objdir=$lt_cv_objdir
6354
6355
6356
6357
6358
mlcreech636a9952008-05-05 22:52:56 +00006359cat >>confdefs.h <<_ACEOF
6360#define LT_OBJDIR "$lt_cv_objdir/"
6361_ACEOF
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
a.rottmann9bc8b932004-02-29 15:18:31 +00006379case $host_os in
6380aix3*)
6381 # AIX sometimes has problems with the GCC collect2 program. For some
6382 # reason, if we set the COLLECT_NAMES environment variable, the problems
6383 # vanish in a puff of smoke.
6384 if test "X${COLLECT_NAMES+set}" != Xset; then
6385 COLLECT_NAMES=
6386 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006387 fi
6388 ;;
6389esac
6390
a.rottmann9bc8b932004-02-29 15:18:31 +00006391# Sed substitution that helps us do robust quoting. It backslashifies
6392# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006393sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006394
6395# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006396double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006397
6398# Sed substitution to delay expansion of an escaped shell variable in a
6399# double_quote_subst'ed string.
6400delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6401
mlcreech636a9952008-05-05 22:52:56 +00006402# Sed substitution to delay expansion of an escaped single quote.
6403delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6404
a.rottmann9bc8b932004-02-29 15:18:31 +00006405# Sed substitution to avoid accidental globbing in evaled expressions
6406no_glob_subst='s/\*/\\\*/g'
6407
a.rottmann9bc8b932004-02-29 15:18:31 +00006408# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006409ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006410can_build_shared=yes
6411
vapier7f19c022007-02-17 14:46:31 +00006412# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006413# which needs '.lib').
6414libext=a
mlcreech636a9952008-05-05 22:52:56 +00006415
a.rottmann9bc8b932004-02-29 15:18:31 +00006416with_gnu_ld="$lt_cv_prog_gnu_ld"
6417
a.rottmann84e63352003-03-24 09:42:16 +00006418old_CC="$CC"
6419old_CFLAGS="$CFLAGS"
6420
6421# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006422test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006423test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006424test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006425test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006426test -z "$ac_objext" && ac_objext=o
6427
vapier7f19c022007-02-17 14:46:31 +00006428for cc_temp in $compiler""; do
6429 case $cc_temp in
6430 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6431 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6432 \-*) ;;
6433 *) break;;
6434 esac
6435done
mlcreech636a9952008-05-05 22:52:56 +00006436cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006437
6438
a.rottmann9bc8b932004-02-29 15:18:31 +00006439# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006440test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006441case $deplibs_check_method in
6442file_magic*)
6443 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drhf922ca42015-05-14 15:39:18 +00006444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
drh8b727472009-01-19 18:18:40 +00006445$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006446if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006447 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006448else
a.rottmann9bc8b932004-02-29 15:18:31 +00006449 case $MAGIC_CMD in
6450[\\/*] | ?:[\\/]*)
6451 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6452 ;;
6453*)
6454 lt_save_MAGIC_CMD="$MAGIC_CMD"
6455 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6456 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6457 for ac_dir in $ac_dummy; do
6458 IFS="$lt_save_ifs"
6459 test -z "$ac_dir" && ac_dir=.
6460 if test -f $ac_dir/${ac_tool_prefix}file; then
6461 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6462 if test -n "$file_magic_test_file"; then
6463 case $deplibs_check_method in
6464 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006465 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006466 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6467 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6468 $EGREP "$file_magic_regex" > /dev/null; then
6469 :
6470 else
mlcreech636a9952008-05-05 22:52:56 +00006471 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006472
a.rottmann9bc8b932004-02-29 15:18:31 +00006473*** Warning: the command libtool uses to detect shared libraries,
6474*** $file_magic_cmd, produces output that libtool cannot recognize.
6475*** The result is that libtool may fail to recognize shared libraries
6476*** as such. This will affect the creation of libtool libraries that
6477*** depend on shared libraries, but programs linked with such libtool
6478*** libraries will work regardless of this problem. Nevertheless, you
6479*** may want to report the problem to your system manager and/or to
6480*** bug-libtool@gnu.org
6481
mlcreech636a9952008-05-05 22:52:56 +00006482_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006483 fi ;;
6484 esac
6485 fi
6486 break
6487 fi
6488 done
6489 IFS="$lt_save_ifs"
6490 MAGIC_CMD="$lt_save_MAGIC_CMD"
6491 ;;
6492esac
6493fi
6494
6495MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6496if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006498$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006499else
drhf922ca42015-05-14 15:39:18 +00006500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006501$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006502fi
6503
mlcreech636a9952008-05-05 22:52:56 +00006504
6505
6506
6507
a.rottmann9bc8b932004-02-29 15:18:31 +00006508if test -z "$lt_cv_path_MAGIC_CMD"; then
6509 if test -n "$ac_tool_prefix"; then
drhf922ca42015-05-14 15:39:18 +00006510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
drh8b727472009-01-19 18:18:40 +00006511$as_echo_n "checking for file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006512if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006513 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006514else
6515 case $MAGIC_CMD in
6516[\\/*] | ?:[\\/]*)
6517 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6518 ;;
6519*)
6520 lt_save_MAGIC_CMD="$MAGIC_CMD"
6521 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6522 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6523 for ac_dir in $ac_dummy; do
6524 IFS="$lt_save_ifs"
6525 test -z "$ac_dir" && ac_dir=.
6526 if test -f $ac_dir/file; then
6527 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6528 if test -n "$file_magic_test_file"; then
6529 case $deplibs_check_method in
6530 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006531 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006532 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6533 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6534 $EGREP "$file_magic_regex" > /dev/null; then
6535 :
6536 else
mlcreech636a9952008-05-05 22:52:56 +00006537 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006538
6539*** Warning: the command libtool uses to detect shared libraries,
6540*** $file_magic_cmd, produces output that libtool cannot recognize.
6541*** The result is that libtool may fail to recognize shared libraries
6542*** as such. This will affect the creation of libtool libraries that
6543*** depend on shared libraries, but programs linked with such libtool
6544*** libraries will work regardless of this problem. Nevertheless, you
6545*** may want to report the problem to your system manager and/or to
6546*** bug-libtool@gnu.org
6547
mlcreech636a9952008-05-05 22:52:56 +00006548_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006549 fi ;;
6550 esac
6551 fi
6552 break
6553 fi
6554 done
6555 IFS="$lt_save_ifs"
6556 MAGIC_CMD="$lt_save_MAGIC_CMD"
6557 ;;
6558esac
6559fi
6560
6561MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6562if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006564$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006565else
drhf922ca42015-05-14 15:39:18 +00006566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006567$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006568fi
6569
mlcreech636a9952008-05-05 22:52:56 +00006570
a.rottmann9bc8b932004-02-29 15:18:31 +00006571 else
6572 MAGIC_CMD=:
6573 fi
6574fi
6575
6576 fi
6577 ;;
6578esac
6579
a.rottmann9bc8b932004-02-29 15:18:31 +00006580# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006581
a.rottmann9bc8b932004-02-29 15:18:31 +00006582lt_save_CC="$CC"
6583ac_ext=c
6584ac_cpp='$CPP $CPPFLAGS'
6585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587ac_compiler_gnu=$ac_cv_c_compiler_gnu
6588
6589
6590# Source file extension for C test sources.
6591ac_ext=c
6592
6593# Object file extension for compiled C test sources.
6594objext=o
6595objext=$objext
6596
6597# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006598lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006599
6600# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006601lt_simple_link_test_code='int main(){return(0);}'
6602
6603
6604
6605
6606
a.rottmann9bc8b932004-02-29 15:18:31 +00006607
6608
6609# If no C compiler was specified, use CC.
6610LTCC=${LTCC-"$CC"}
6611
vapier7f19c022007-02-17 14:46:31 +00006612# If no C compiler flags were specified, use CFLAGS.
6613LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6614
a.rottmann9bc8b932004-02-29 15:18:31 +00006615# Allow CC to be a program name with arguments.
6616compiler=$CC
6617
mlcreech636a9952008-05-05 22:52:56 +00006618# Save the default compiler, since it gets overwritten when the other
6619# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6620compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006621
vapier7f19c022007-02-17 14:46:31 +00006622# save warnings/boilerplate of simple test code
6623ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006624echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006625eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6626_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006627$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006628
vapier7f19c022007-02-17 14:46:31 +00006629ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006630echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006631eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6632_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006633$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006634
6635
mlcreech636a9952008-05-05 22:52:56 +00006636if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006637
6638lt_prog_compiler_no_builtin_flag=
6639
6640if test "$GCC" = yes; then
6641 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6642
drhf922ca42015-05-14 15:39:18 +00006643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006644$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006645if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
drh8b727472009-01-19 18:18:40 +00006646 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006647else
6648 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006649 ac_outfile=conftest.$ac_objext
6650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006651 lt_compiler_flag="-fno-rtti -fno-exceptions"
6652 # Insert the option either (1) after the last *FLAGS variable, or
6653 # (2) before a word containing "conftest.", or (3) at the end.
6654 # Note that $ac_compile itself does not contain backslashes and begins
6655 # with a dollar sign (not a hyphen), so the echo should work correctly.
6656 # The option is referenced via a variable to avoid confusing sed.
6657 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006658 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6660 -e 's:$: $lt_compiler_flag:'`
drhce1d9f52015-10-09 12:48:33 +00006661 (eval echo "\"\$as_me:6661: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006662 (eval "$lt_compile" 2>conftest.err)
6663 ac_status=$?
6664 cat conftest.err >&5
drhce1d9f52015-10-09 12:48:33 +00006665 echo "$as_me:6665: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006666 if (exit $ac_status) && test -s "$ac_outfile"; then
6667 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006668 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006669 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006670 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6671 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006672 lt_cv_prog_compiler_rtti_exceptions=yes
6673 fi
6674 fi
mlcreech636a9952008-05-05 22:52:56 +00006675 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006676
6677fi
drhf922ca42015-05-14 15:39:18 +00006678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006679$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006680
6681if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6682 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6683else
6684 :
6685fi
6686
6687fi
6688
mlcreech636a9952008-05-05 22:52:56 +00006689
6690
6691
6692
6693
6694 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006695lt_prog_compiler_pic=
6696lt_prog_compiler_static=
6697
drhf922ca42015-05-14 15:39:18 +00006698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
drh8b727472009-01-19 18:18:40 +00006699$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006700
drh71eb93e2001-09-28 01:34:43 +00006701 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006702 lt_prog_compiler_wl='-Wl,'
6703 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006704
6705 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006706 aix*)
6707 # All AIX code is PIC.
6708 if test "$host_cpu" = ia64; then
6709 # AIX 5 now supports IA64 processor
6710 lt_prog_compiler_static='-Bstatic'
6711 fi
drh71eb93e2001-09-28 01:34:43 +00006712 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006713
drh71eb93e2001-09-28 01:34:43 +00006714 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006715 case $host_cpu in
6716 powerpc)
6717 # see comment about AmigaOS4 .so support
6718 lt_prog_compiler_pic='-fPIC'
6719 ;;
6720 m68k)
6721 # FIXME: we need at least 68020 code to build shared libraries, but
6722 # adding the `-m68020' flag to GCC prevents building anything better,
6723 # like `-m68040'.
6724 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6725 ;;
6726 esac
drh71eb93e2001-09-28 01:34:43 +00006727 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006728
mlcreech636a9952008-05-05 22:52:56 +00006729 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006730 # PIC is the default for these OSes.
6731 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006732
vapier6acb2cf2009-01-28 04:46:28 +00006733 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006734 # This hack is so that the source file can tell whether it is being
6735 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006736 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6737 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006738 lt_prog_compiler_pic='-DDLL_EXPORT'
6739 ;;
6740
drh71eb93e2001-09-28 01:34:43 +00006741 darwin* | rhapsody*)
6742 # PIC is the default on this platform
6743 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006744 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006745 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006746
a.rottmann9bc8b932004-02-29 15:18:31 +00006747 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006748 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6749 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6750 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006751 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006752 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006753 # +Z the default
6754 ;;
6755 *)
6756 lt_prog_compiler_pic='-fPIC'
6757 ;;
6758 esac
6759 ;;
6760
mlcreech636a9952008-05-05 22:52:56 +00006761 interix[3-9]*)
6762 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6763 # Instead, we relocate shared libraries at runtime.
6764 ;;
6765
6766 msdosdjgpp*)
6767 # Just because we use GCC doesn't mean we suddenly get shared libraries
6768 # on systems that don't support them.
6769 lt_prog_compiler_can_build_shared=no
6770 enable_shared=no
6771 ;;
6772
6773 *nto* | *qnx*)
6774 # QNX uses GNU C++, but need to define -shared option too, otherwise
6775 # it will coredump.
6776 lt_prog_compiler_pic='-fPIC -shared'
6777 ;;
6778
6779 sysv4*MP*)
6780 if test -d /usr/nec; then
6781 lt_prog_compiler_pic=-Kconform_pic
6782 fi
6783 ;;
6784
drh71eb93e2001-09-28 01:34:43 +00006785 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006786 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006787 ;;
6788 esac
6789 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006790 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006791 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006792 aix*)
6793 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006794 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006795 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006796 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006797 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006798 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006799 fi
6800 ;;
6801
vapier6acb2cf2009-01-28 04:46:28 +00006802 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006803 # This hack is so that the source file can tell whether it is being
6804 # built for inclusion in a dll (and should export symbols for example).
6805 lt_prog_compiler_pic='-DDLL_EXPORT'
6806 ;;
6807
a.rottmann84e63352003-03-24 09:42:16 +00006808 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006809 lt_prog_compiler_wl='-Wl,'
6810 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6811 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006812 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006813 hppa*64*|ia64*)
6814 # +Z the default
6815 ;;
6816 *)
6817 lt_prog_compiler_pic='+Z'
6818 ;;
6819 esac
6820 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6821 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006822 ;;
6823
6824 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006825 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006826 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006827 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006828 ;;
6829
mlcreech636a9952008-05-05 22:52:56 +00006830 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006831 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00006832 # old Intel for x86_64 which still supported -KPIC.
6833 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006834 lt_prog_compiler_wl='-Wl,'
6835 lt_prog_compiler_pic='-KPIC'
6836 lt_prog_compiler_static='-static'
6837 ;;
vapier6acb2cf2009-01-28 04:46:28 +00006838 # icc used to be incompatible with GCC.
6839 # ICC 10 doesn't accept -KPIC any more.
6840 icc* | ifort*)
6841 lt_prog_compiler_wl='-Wl,'
6842 lt_prog_compiler_pic='-fPIC'
6843 lt_prog_compiler_static='-static'
6844 ;;
6845 # Lahey Fortran 8.1.
6846 lf95*)
6847 lt_prog_compiler_wl='-Wl,'
6848 lt_prog_compiler_pic='--shared'
6849 lt_prog_compiler_static='--static'
6850 ;;
vapier7f19c022007-02-17 14:46:31 +00006851 pgcc* | pgf77* | pgf90* | pgf95*)
6852 # Portland Group compilers (*not* the Pentium gcc compiler,
6853 # which looks to be a dead project)
6854 lt_prog_compiler_wl='-Wl,'
6855 lt_prog_compiler_pic='-fpic'
6856 lt_prog_compiler_static='-Bstatic'
6857 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006858 ccc*)
6859 lt_prog_compiler_wl='-Wl,'
6860 # All Alpha code is PIC.
6861 lt_prog_compiler_static='-non_shared'
6862 ;;
mlcreech636a9952008-05-05 22:52:56 +00006863 xl*)
6864 # IBM XL C 8.0/Fortran 10.1 on PPC
6865 lt_prog_compiler_wl='-Wl,'
6866 lt_prog_compiler_pic='-qpic'
6867 lt_prog_compiler_static='-qstaticlink'
6868 ;;
6869 *)
6870 case `$CC -V 2>&1 | sed 5q` in
6871 *Sun\ C*)
6872 # Sun C 5.9
6873 lt_prog_compiler_pic='-KPIC'
6874 lt_prog_compiler_static='-Bstatic'
6875 lt_prog_compiler_wl='-Wl,'
6876 ;;
6877 *Sun\ F*)
6878 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6879 lt_prog_compiler_pic='-KPIC'
6880 lt_prog_compiler_static='-Bstatic'
6881 lt_prog_compiler_wl=''
6882 ;;
6883 esac
6884 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006885 esac
drh71eb93e2001-09-28 01:34:43 +00006886 ;;
6887
mlcreech636a9952008-05-05 22:52:56 +00006888 newsos6)
6889 lt_prog_compiler_pic='-KPIC'
6890 lt_prog_compiler_static='-Bstatic'
6891 ;;
6892
6893 *nto* | *qnx*)
6894 # QNX uses GNU C++, but need to define -shared option too, otherwise
6895 # it will coredump.
6896 lt_prog_compiler_pic='-fPIC -shared'
6897 ;;
6898
drh71eb93e2001-09-28 01:34:43 +00006899 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006900 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006901 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006902 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006903 ;;
6904
mlcreech636a9952008-05-05 22:52:56 +00006905 rdos*)
6906 lt_prog_compiler_static='-non_shared'
6907 ;;
6908
drh71eb93e2001-09-28 01:34:43 +00006909 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006910 lt_prog_compiler_pic='-KPIC'
6911 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006912 case $cc_basename in
6913 f77* | f90* | f95*)
6914 lt_prog_compiler_wl='-Qoption ld ';;
6915 *)
6916 lt_prog_compiler_wl='-Wl,';;
6917 esac
drh71eb93e2001-09-28 01:34:43 +00006918 ;;
6919
6920 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006921 lt_prog_compiler_wl='-Qoption ld '
6922 lt_prog_compiler_pic='-PIC'
6923 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006924 ;;
6925
vapier7f19c022007-02-17 14:46:31 +00006926 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006927 lt_prog_compiler_wl='-Wl,'
6928 lt_prog_compiler_pic='-KPIC'
6929 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006930 ;;
6931
6932 sysv4*MP*)
6933 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006934 lt_prog_compiler_pic='-Kconform_pic'
6935 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006936 fi
6937 ;;
6938
vapier7f19c022007-02-17 14:46:31 +00006939 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6940 lt_prog_compiler_wl='-Wl,'
6941 lt_prog_compiler_pic='-KPIC'
6942 lt_prog_compiler_static='-Bstatic'
6943 ;;
6944
6945 unicos*)
6946 lt_prog_compiler_wl='-Wl,'
6947 lt_prog_compiler_can_build_shared=no
6948 ;;
6949
a.rottmann9bc8b932004-02-29 15:18:31 +00006950 uts4*)
6951 lt_prog_compiler_pic='-pic'
6952 lt_prog_compiler_static='-Bstatic'
6953 ;;
6954
drh71eb93e2001-09-28 01:34:43 +00006955 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006956 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006957 ;;
6958 esac
6959 fi
6960
mlcreech636a9952008-05-05 22:52:56 +00006961case $host_os in
6962 # For platforms which do not support PIC, -DPIC is meaningless:
6963 *djgpp*)
6964 lt_prog_compiler_pic=
6965 ;;
6966 *)
6967 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6968 ;;
6969esac
drhf922ca42015-05-14 15:39:18 +00006970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
drh8b727472009-01-19 18:18:40 +00006971$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00006972
6973
6974
6975
6976
drh71eb93e2001-09-28 01:34:43 +00006977
a.rottmann9bc8b932004-02-29 15:18:31 +00006978#
6979# Check to make sure the PIC flag actually works.
6980#
6981if test -n "$lt_prog_compiler_pic"; then
drhf922ca42015-05-14 15:39:18 +00006982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
drh8b727472009-01-19 18:18:40 +00006983$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006984if ${lt_cv_prog_compiler_pic_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00006985 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00006986else
mlcreech636a9952008-05-05 22:52:56 +00006987 lt_cv_prog_compiler_pic_works=no
6988 ac_outfile=conftest.$ac_objext
6989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006990 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6991 # Insert the option either (1) after the last *FLAGS variable, or
6992 # (2) before a word containing "conftest.", or (3) at the end.
6993 # Note that $ac_compile itself does not contain backslashes and begins
6994 # with a dollar sign (not a hyphen), so the echo should work correctly.
6995 # The option is referenced via a variable to avoid confusing sed.
6996 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6999 -e 's:$: $lt_compiler_flag:'`
drhce1d9f52015-10-09 12:48:33 +00007000 (eval echo "\"\$as_me:7000: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007001 (eval "$lt_compile" 2>conftest.err)
7002 ac_status=$?
7003 cat conftest.err >&5
drhce1d9f52015-10-09 12:48:33 +00007004 echo "$as_me:7004: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007005 if (exit $ac_status) && test -s "$ac_outfile"; then
7006 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007007 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007008 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007009 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7010 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007011 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007012 fi
7013 fi
mlcreech636a9952008-05-05 22:52:56 +00007014 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007015
a.rottmann9bc8b932004-02-29 15:18:31 +00007016fi
drhf922ca42015-05-14 15:39:18 +00007017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
drh8b727472009-01-19 18:18:40 +00007018$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007019
mlcreech636a9952008-05-05 22:52:56 +00007020if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007021 case $lt_prog_compiler_pic in
7022 "" | " "*) ;;
7023 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7024 esac
drh71eb93e2001-09-28 01:34:43 +00007025else
a.rottmann9bc8b932004-02-29 15:18:31 +00007026 lt_prog_compiler_pic=
7027 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007028fi
7029
a.rottmann84e63352003-03-24 09:42:16 +00007030fi
mlcreech636a9952008-05-05 22:52:56 +00007031
7032
7033
7034
7035
a.rottmann84e63352003-03-24 09:42:16 +00007036
vapier7f19c022007-02-17 14:46:31 +00007037#
7038# Check to make sure the static flag actually works.
7039#
7040wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00007041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
drh8b727472009-01-19 18:18:40 +00007042$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007043if ${lt_cv_prog_compiler_static_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007044 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007045else
mlcreech636a9952008-05-05 22:52:56 +00007046 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007047 save_LDFLAGS="$LDFLAGS"
7048 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007049 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007050 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7051 # The linker can only warn and ignore the option if not recognized
7052 # So say no if there are warnings
7053 if test -s conftest.err; then
7054 # Append any errors to the config.log.
7055 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007056 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7058 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007059 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007060 fi
7061 else
mlcreech636a9952008-05-05 22:52:56 +00007062 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007063 fi
7064 fi
mlcreech636a9952008-05-05 22:52:56 +00007065 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007066 LDFLAGS="$save_LDFLAGS"
7067
7068fi
drhf922ca42015-05-14 15:39:18 +00007069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
drh8b727472009-01-19 18:18:40 +00007070$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007071
mlcreech636a9952008-05-05 22:52:56 +00007072if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007073 :
7074else
7075 lt_prog_compiler_static=
7076fi
7077
7078
mlcreech636a9952008-05-05 22:52:56 +00007079
7080
7081
7082
7083
drhf922ca42015-05-14 15:39:18 +00007084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007085$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007086if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007087 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007088else
a.rottmann9bc8b932004-02-29 15:18:31 +00007089 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007090 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007091 mkdir conftest
7092 cd conftest
7093 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007095
a.rottmann9bc8b932004-02-29 15:18:31 +00007096 lt_compiler_flag="-o out/conftest2.$ac_objext"
7097 # Insert the option either (1) after the last *FLAGS variable, or
7098 # (2) before a word containing "conftest.", or (3) at the end.
7099 # Note that $ac_compile itself does not contain backslashes and begins
7100 # with a dollar sign (not a hyphen), so the echo should work correctly.
7101 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7104 -e 's:$: $lt_compiler_flag:'`
drhce1d9f52015-10-09 12:48:33 +00007105 (eval echo "\"\$as_me:7105: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007106 (eval "$lt_compile" 2>out/conftest.err)
7107 ac_status=$?
7108 cat out/conftest.err >&5
drhce1d9f52015-10-09 12:48:33 +00007109 echo "$as_me:7109: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007110 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7111 then
7112 # The compiler can only warn and ignore the option if not recognized
7113 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007114 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007115 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7116 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007117 lt_cv_prog_compiler_c_o=yes
7118 fi
7119 fi
vapier7f19c022007-02-17 14:46:31 +00007120 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007121 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007122 # SGI C++ compiler will create directory out/ii_files/ for
7123 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007124 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7125 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007126 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007127 $RM -r conftest
7128 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007129
7130fi
drhf922ca42015-05-14 15:39:18 +00007131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007132$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007133
7134
7135
7136
7137
7138
drhf922ca42015-05-14 15:39:18 +00007139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007140$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007141if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007142 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007143else
7144 lt_cv_prog_compiler_c_o=no
7145 $RM -r conftest 2>/dev/null
7146 mkdir conftest
7147 cd conftest
7148 mkdir out
7149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7150
7151 lt_compiler_flag="-o out/conftest2.$ac_objext"
7152 # Insert the option either (1) after the last *FLAGS variable, or
7153 # (2) before a word containing "conftest.", or (3) at the end.
7154 # Note that $ac_compile itself does not contain backslashes and begins
7155 # with a dollar sign (not a hyphen), so the echo should work correctly.
7156 lt_compile=`echo "$ac_compile" | $SED \
7157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7159 -e 's:$: $lt_compiler_flag:'`
drhce1d9f52015-10-09 12:48:33 +00007160 (eval echo "\"\$as_me:7160: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007161 (eval "$lt_compile" 2>out/conftest.err)
7162 ac_status=$?
7163 cat out/conftest.err >&5
drhce1d9f52015-10-09 12:48:33 +00007164 echo "$as_me:7164: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007165 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7166 then
7167 # The compiler can only warn and ignore the option if not recognized
7168 # So say no if there are warnings
7169 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7170 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7171 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7172 lt_cv_prog_compiler_c_o=yes
7173 fi
7174 fi
7175 chmod u+w . 2>&5
7176 $RM conftest*
7177 # SGI C++ compiler will create directory out/ii_files/ for
7178 # template instantiation
7179 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7180 $RM out/* && rmdir out
7181 cd ..
7182 $RM -r conftest
7183 $RM conftest*
7184
7185fi
drhf922ca42015-05-14 15:39:18 +00007186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007187$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007188
7189
drh71eb93e2001-09-28 01:34:43 +00007190
a.rottmann84e63352003-03-24 09:42:16 +00007191
drh71eb93e2001-09-28 01:34:43 +00007192hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007193if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007194 # do not overwrite the value of need_locks provided by the user
drhf922ca42015-05-14 15:39:18 +00007195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
drh8b727472009-01-19 18:18:40 +00007196$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007197 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007198 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007199 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7200 touch conftest.a
7201 ln conftest.a conftest.b 2>&5 || hard_links=no
7202 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drhf922ca42015-05-14 15:39:18 +00007203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
drh8b727472009-01-19 18:18:40 +00007204$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007205 if test "$hard_links" = no; then
drhf922ca42015-05-14 15:39:18 +00007206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh8b727472009-01-19 18:18:40 +00007207$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007208 need_locks=warn
7209 fi
7210else
7211 need_locks=no
7212fi
7213
mlcreech636a9952008-05-05 22:52:56 +00007214
7215
7216
7217
7218
drhf922ca42015-05-14 15:39:18 +00007219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00007220$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007221
7222 runpath_var=
7223 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007224 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007225 archive_cmds=
7226 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007227 compiler_needs_object=no
7228 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007229 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007230 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7231 hardcode_automatic=no
7232 hardcode_direct=no
7233 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007234 hardcode_libdir_flag_spec=
7235 hardcode_libdir_flag_spec_ld=
7236 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007237 hardcode_minus_L=no
7238 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007239 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007240 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007241 module_cmds=
7242 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007243 old_archive_from_new_cmds=
7244 old_archive_from_expsyms_cmds=
7245 thread_safe_flag_spec=
7246 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007247 # include_expsyms should be a list of space-separated symbols to be *always*
7248 # included in the symbol list
7249 include_expsyms=
7250 # exclude_expsyms can be an extended regexp of symbols to exclude
7251 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7252 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7253 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007254 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007255 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7256 # platforms (ab)use it in PIC code, but their linkers get confused if
7257 # the symbol is explicitly referenced. Since portable code cannot
7258 # rely on this symbol name, it's probably fine to never include it in
7259 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007260 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007261 extract_expsyms_cmds=
7262
7263 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007264 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007265 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7266 # When not using gcc, we currently assume that we are using
7267 # Microsoft Visual C++.
7268 if test "$GCC" != yes; then
7269 with_gnu_ld=no
7270 fi
7271 ;;
vapier7f19c022007-02-17 14:46:31 +00007272 interix*)
7273 # we just hope/assume this is gcc and not c89 (= MSVC++)
7274 with_gnu_ld=yes
7275 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007276 openbsd*)
7277 with_gnu_ld=no
7278 ;;
7279 esac
7280
7281 ld_shlibs=yes
7282 if test "$with_gnu_ld" = yes; then
7283 # If archive_cmds runs LD, not CC, wlarc should be empty
7284 wlarc='${wl}'
7285
vapier7f19c022007-02-17 14:46:31 +00007286 # Set some defaults for GNU ld with shared library support. These
7287 # are reset later if shared libraries are not supported. Putting them
7288 # here allows them to be overridden if necessary.
7289 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007291 export_dynamic_flag_spec='${wl}--export-dynamic'
7292 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007293 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7294 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7295 else
7296 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007297 fi
7298 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007299 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007300 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7301 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7302 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7303 *\ 2.11.*) ;; # other 2.11 versions
7304 *) supports_anon_versioning=yes ;;
7305 esac
7306
a.rottmann9bc8b932004-02-29 15:18:31 +00007307 # See if GNU ld supports shared libraries.
7308 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007309 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007310 # On AIX/PPC, the GNU linker is very broken
7311 if test "$host_cpu" != ia64; then
7312 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007313 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007314
7315*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7316*** to be unable to reliably create shared libraries on AIX.
7317*** Therefore, libtool is disabling shared libraries support. If you
7318*** really care for shared libraries, you may want to modify your PATH
7319*** so that a non-GNU linker is found, and then restart.
7320
mlcreech636a9952008-05-05 22:52:56 +00007321_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007322 fi
7323 ;;
7324
7325 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007326 case $host_cpu in
7327 powerpc)
7328 # see comment about AmigaOS4 .so support
7329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7330 archive_expsym_cmds=''
7331 ;;
7332 m68k)
7333 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)'
7334 hardcode_libdir_flag_spec='-L$libdir'
7335 hardcode_minus_L=yes
7336 ;;
7337 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007338 ;;
7339
7340 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007341 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007342 allow_undefined_flag=unsupported
7343 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7344 # support --undefined. This deserves some investigation. FIXME
7345 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7346 else
7347 ld_shlibs=no
7348 fi
7349 ;;
7350
vapier6acb2cf2009-01-28 04:46:28 +00007351 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007352 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007353 # as there is no search path for DLLs.
7354 hardcode_libdir_flag_spec='-L$libdir'
7355 allow_undefined_flag=unsupported
7356 always_export_symbols=no
7357 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007358 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 +00007359
mlcreech636a9952008-05-05 22:52:56 +00007360 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007361 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 +00007362 # If the export-symbols file already is a .def file (1st line
7363 # is EXPORTS), use it as is; otherwise, prepend...
7364 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7365 cp $export_symbols $output_objdir/$soname.def;
7366 else
7367 echo EXPORTS > $output_objdir/$soname.def;
7368 cat $export_symbols >> $output_objdir/$soname.def;
7369 fi~
vapier7f19c022007-02-17 14:46:31 +00007370 $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 +00007371 else
7372 ld_shlibs=no
7373 fi
7374 ;;
7375
mlcreech636a9952008-05-05 22:52:56 +00007376 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007377 hardcode_direct=no
7378 hardcode_shlibpath_var=no
7379 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7380 export_dynamic_flag_spec='${wl}-E'
7381 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7382 # Instead, shared libraries are loaded at an image base (0x10000000 by
7383 # default) and relocated if they conflict, which is a slow very memory
7384 # consuming and fragmenting process. To avoid this, we pick a random,
7385 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7386 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7387 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7388 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'
7389 ;;
7390
mlcreech636a9952008-05-05 22:52:56 +00007391 gnu* | linux* | tpf* | k*bsd*-gnu)
7392 tmp_diet=no
7393 if test "$host_os" = linux-dietlibc; then
7394 case $cc_basename in
7395 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7396 esac
7397 fi
7398 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7399 && test "$tmp_diet" = no
7400 then
vapier7f19c022007-02-17 14:46:31 +00007401 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007402 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007403 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007404 pgcc*) # Portland Group C compiler
7405 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 +00007406 tmp_addflag=' $pic_flag'
7407 ;;
7408 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007409 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 +00007410 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007411 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007412 tmp_addflag=' -i_dynamic' ;;
7413 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7414 tmp_addflag=' -i_dynamic -nofor_main' ;;
7415 ifc* | ifort*) # Intel Fortran compiler
7416 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007417 lf95*) # Lahey Fortran 8.1
7418 whole_archive_flag_spec=
7419 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007420 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7421 tmp_sharedflag='-qmkshrobj'
7422 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007423 esac
mlcreech636a9952008-05-05 22:52:56 +00007424 case `$CC -V 2>&1 | sed 5q` in
7425 *Sun\ C*) # Sun C 5.9
7426 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'
7427 compiler_needs_object=yes
7428 tmp_sharedflag='-G' ;;
7429 *Sun\ F*) # Sun Fortran 8.3
7430 tmp_sharedflag='-G' ;;
7431 esac
7432 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007433
mlcreech636a9952008-05-05 22:52:56 +00007434 if test "x$supports_anon_versioning" = xyes; then
7435 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7436 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7437 echo "local: *; };" >> $output_objdir/$libname.ver~
7438 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7439 fi
7440
7441 case $cc_basename in
7442 xlf*)
7443 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7444 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7445 hardcode_libdir_flag_spec=
7446 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7447 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7448 if test "x$supports_anon_versioning" = xyes; then
7449 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7450 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7451 echo "local: *; };" >> $output_objdir/$libname.ver~
7452 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7453 fi
7454 ;;
7455 esac
vapier7f19c022007-02-17 14:46:31 +00007456 else
mlcreech636a9952008-05-05 22:52:56 +00007457 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007458 fi
7459 ;;
7460
7461 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007462 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007463 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7464 wlarc=
7465 else
7466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7468 fi
7469 ;;
7470
vapier7f19c022007-02-17 14:46:31 +00007471 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007472 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007473 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007474 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007475
7476*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7477*** create shared libraries on Solaris systems. Therefore, libtool
7478*** is disabling shared libraries support. We urge you to upgrade GNU
7479*** binutils to release 2.9.1 or newer. Another option is to modify
7480*** your PATH or compiler configuration so that the native linker is
7481*** used, and then restart.
7482
mlcreech636a9952008-05-05 22:52:56 +00007483_LT_EOF
7484 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7486 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7487 else
7488 ld_shlibs=no
7489 fi
7490 ;;
7491
vapier7f19c022007-02-17 14:46:31 +00007492 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7493 case `$LD -v 2>&1` in
7494 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7495 ld_shlibs=no
7496 cat <<_LT_EOF 1>&2
7497
7498*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7499*** reliably create shared libraries on SCO systems. Therefore, libtool
7500*** is disabling shared libraries support. We urge you to upgrade GNU
7501*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7502*** your PATH or compiler configuration so that the native linker is
7503*** used, and then restart.
7504
7505_LT_EOF
7506 ;;
7507 *)
mlcreech636a9952008-05-05 22:52:56 +00007508 # For security reasons, it is highly recommended that you always
7509 # use absolute paths for naming shared libraries, and exclude the
7510 # DT_RUNPATH tag from executables and libraries. But doing so
7511 # requires that you compile everything twice, which is a pain.
7512 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7513 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7515 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 +00007516 else
7517 ld_shlibs=no
7518 fi
7519 ;;
7520 esac
7521 ;;
7522
a.rottmann9bc8b932004-02-29 15:18:31 +00007523 sunos4*)
7524 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7525 wlarc=
7526 hardcode_direct=yes
7527 hardcode_shlibpath_var=no
7528 ;;
7529
a.rottmann9bc8b932004-02-29 15:18:31 +00007530 *)
mlcreech636a9952008-05-05 22:52:56 +00007531 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007532 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7533 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7534 else
7535 ld_shlibs=no
7536 fi
7537 ;;
7538 esac
7539
vapier7f19c022007-02-17 14:46:31 +00007540 if test "$ld_shlibs" = no; then
7541 runpath_var=
7542 hardcode_libdir_flag_spec=
7543 export_dynamic_flag_spec=
7544 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007545 fi
7546 else
7547 # PORTME fill in a description of your system's linker (not GNU ld)
7548 case $host_os in
7549 aix3*)
7550 allow_undefined_flag=unsupported
7551 always_export_symbols=yes
7552 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'
7553 # Note: this linker hardcodes the directories in LIBPATH if there
7554 # are no directories specified by -L.
7555 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007556 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007557 # Neither direct hardcoding nor static linking is supported with a
7558 # broken collect2.
7559 hardcode_direct=unsupported
7560 fi
7561 ;;
7562
mlcreech636a9952008-05-05 22:52:56 +00007563 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007564 if test "$host_cpu" = ia64; then
7565 # On IA64, the linker does run time linking by default, so we don't
7566 # have to do anything special.
7567 aix_use_runtimelinking=no
7568 exp_sym_flag='-Bexport'
7569 no_entry_flag=""
7570 else
7571 # If we're using GNU nm, then we don't want the "-C" option.
7572 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007573 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7574 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 +00007575 else
mlcreech636a9952008-05-05 22:52:56 +00007576 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 +00007577 fi
7578 aix_use_runtimelinking=no
7579
7580 # Test if we are trying to use run time linking or normal
7581 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7582 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007583 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007584 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007585 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7586 aix_use_runtimelinking=yes
7587 break
7588 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007589 done
vapier7f19c022007-02-17 14:46:31 +00007590 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007591 esac
7592
7593 exp_sym_flag='-bexport'
7594 no_entry_flag='-bnoentry'
7595 fi
7596
7597 # When large executables or shared objects are built, AIX ld can
7598 # have problems creating the table of contents. If linking a library
7599 # or program results in "error TOC overflow" add -mminimal-toc to
7600 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7601 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7602
7603 archive_cmds=''
7604 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007605 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007606 hardcode_libdir_separator=':'
7607 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007608 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007609
7610 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007611 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007612 # We only want to do this on AIX 4.2 and lower, the check
7613 # below for broken collect2 doesn't work under 4.3+
7614 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007615 if test -f "$collect2name" &&
7616 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007617 then
mlcreech636a9952008-05-05 22:52:56 +00007618 # We have reworked collect2
7619 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007620 else
mlcreech636a9952008-05-05 22:52:56 +00007621 # We have old collect2
7622 hardcode_direct=unsupported
7623 # It fails to find uninstalled libraries when the uninstalled
7624 # path is not listed in the libpath. Setting hardcode_minus_L
7625 # to unsupported forces relinking
7626 hardcode_minus_L=yes
7627 hardcode_libdir_flag_spec='-L$libdir'
7628 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007629 fi
vapier7f19c022007-02-17 14:46:31 +00007630 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007631 esac
7632 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007633 if test "$aix_use_runtimelinking" = yes; then
7634 shared_flag="$shared_flag "'${wl}-G'
7635 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007636 else
7637 # not using gcc
7638 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007639 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7640 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007641 shared_flag='-G'
7642 else
vapier7f19c022007-02-17 14:46:31 +00007643 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007644 shared_flag='${wl}-G'
7645 else
7646 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007647 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007648 fi
7649 fi
7650
vapier6acb2cf2009-01-28 04:46:28 +00007651 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007652 # It seems that -bexpall does not export symbols beginning with
7653 # underscore (_), so it is better to generate a list of symbols to export.
7654 always_export_symbols=yes
7655 if test "$aix_use_runtimelinking" = yes; then
7656 # Warning - without using the other runtime loading flags (-brtl),
7657 # -berok will link without error, but may produce a broken library.
7658 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007659 # Determine the default libpath from the value encoded in an
7660 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007662/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007663
a.rottmann84e63352003-03-24 09:42:16 +00007664int
7665main ()
7666{
a.rottmann9bc8b932004-02-29 15:18:31 +00007667
a.rottmann84e63352003-03-24 09:42:16 +00007668 ;
7669 return 0;
7670}
7671_ACEOF
drhf922ca42015-05-14 15:39:18 +00007672if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007673
mlcreech636a9952008-05-05 22:52:56 +00007674lt_aix_libpath_sed='
7675 /Import File Strings/,/^$/ {
7676 /^0/ {
7677 s/^0 *\(.*\)$/\1/
7678 p
7679 }
7680 }'
7681aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007682# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007683if test -z "$aix_libpath"; then
7684 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7685fi
a.rottmann84e63352003-03-24 09:42:16 +00007686fi
drhf922ca42015-05-14 15:39:18 +00007687rm -f core conftest.err conftest.$ac_objext \
7688 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007689if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007690
mlcreech636a9952008-05-05 22:52:56 +00007691 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7692 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"
7693 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007694 if test "$host_cpu" = ia64; then
7695 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7696 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007697 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 +00007698 else
mlcreech636a9952008-05-05 22:52:56 +00007699 # Determine the default libpath from the value encoded in an
7700 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007702/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007703
a.rottmann9bc8b932004-02-29 15:18:31 +00007704int
7705main ()
7706{
a.rottmann84e63352003-03-24 09:42:16 +00007707
a.rottmann9bc8b932004-02-29 15:18:31 +00007708 ;
7709 return 0;
7710}
7711_ACEOF
drhf922ca42015-05-14 15:39:18 +00007712if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007713
mlcreech636a9952008-05-05 22:52:56 +00007714lt_aix_libpath_sed='
7715 /Import File Strings/,/^$/ {
7716 /^0/ {
7717 s/^0 *\(.*\)$/\1/
7718 p
7719 }
7720 }'
7721aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007722# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007723if test -z "$aix_libpath"; then
7724 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7725fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007726fi
drhf922ca42015-05-14 15:39:18 +00007727rm -f core conftest.err conftest.$ac_objext \
7728 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007729if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007730
a.rottmann9bc8b932004-02-29 15:18:31 +00007731 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7732 # Warning - without using the other run time loading flags,
7733 # -berok will link without error, but may produce a broken library.
7734 no_undefined_flag=' ${wl}-bernotok'
7735 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007736 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007737 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007738 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007739 # This is similar to how AIX traditionally builds its shared libraries.
7740 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 +00007741 fi
7742 fi
a.rottmann84e63352003-03-24 09:42:16 +00007743 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007744
7745 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007746 case $host_cpu in
7747 powerpc)
7748 # see comment about AmigaOS4 .so support
7749 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7750 archive_expsym_cmds=''
7751 ;;
7752 m68k)
7753 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)'
7754 hardcode_libdir_flag_spec='-L$libdir'
7755 hardcode_minus_L=yes
7756 ;;
7757 esac
a.rottmann84e63352003-03-24 09:42:16 +00007758 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007759
vapier7f19c022007-02-17 14:46:31 +00007760 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007761 export_dynamic_flag_spec=-rdynamic
7762 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007763
vapier6acb2cf2009-01-28 04:46:28 +00007764 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007765 # When not using gcc, we currently assume that we are using
7766 # Microsoft Visual C++.
7767 # hardcode_libdir_flag_spec is actually meaningless, as there is
7768 # no search path for DLLs.
7769 hardcode_libdir_flag_spec=' '
7770 allow_undefined_flag=unsupported
7771 # Tell ltmain to make .lib files, not .a files.
7772 libext=lib
7773 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007774 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007775 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00007776 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 +00007777 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00007778 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00007779 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00007780 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007781 fix_srcfile_path='`cygpath -w "$srcfile"`'
7782 enable_shared_with_static_runtimes=yes
7783 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007784
a.rottmann9bc8b932004-02-29 15:18:31 +00007785 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00007786
7787
7788 archive_cmds_need_lc=no
7789 hardcode_direct=no
7790 hardcode_automatic=yes
7791 hardcode_shlibpath_var=unsupported
7792 whole_archive_flag_spec=''
7793 link_all_deplibs=yes
7794 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00007795 case $cc_basename in
7796 ifort*) _lt_dar_can_shared=yes ;;
7797 *) _lt_dar_can_shared=$GCC ;;
7798 esac
7799 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00007800 output_verbose_link_cmd=echo
7801 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7802 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7803 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}"
7804 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}"
7805
7806 else
7807 ld_shlibs=no
7808 fi
7809
a.rottmann9bc8b932004-02-29 15:18:31 +00007810 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007811
a.rottmann9bc8b932004-02-29 15:18:31 +00007812 dgux*)
7813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7814 hardcode_libdir_flag_spec='-L$libdir'
7815 hardcode_shlibpath_var=no
7816 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007817
a.rottmann9bc8b932004-02-29 15:18:31 +00007818 freebsd1*)
7819 ld_shlibs=no
7820 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007821
a.rottmann9bc8b932004-02-29 15:18:31 +00007822 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7823 # support. Future versions do this automatically, but an explicit c++rt0.o
7824 # does not break anything, and helps significantly (at the cost of a little
7825 # extra space).
7826 freebsd2.2*)
7827 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7828 hardcode_libdir_flag_spec='-R$libdir'
7829 hardcode_direct=yes
7830 hardcode_shlibpath_var=no
7831 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007832
a.rottmann9bc8b932004-02-29 15:18:31 +00007833 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7834 freebsd2*)
7835 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7836 hardcode_direct=yes
7837 hardcode_minus_L=yes
7838 hardcode_shlibpath_var=no
7839 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007840
a.rottmann9bc8b932004-02-29 15:18:31 +00007841 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00007842 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007843 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7844 hardcode_libdir_flag_spec='-R$libdir'
7845 hardcode_direct=yes
7846 hardcode_shlibpath_var=no
7847 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007848
a.rottmann9bc8b932004-02-29 15:18:31 +00007849 hpux9*)
7850 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007851 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 +00007852 else
mlcreech636a9952008-05-05 22:52:56 +00007853 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 +00007854 fi
7855 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7856 hardcode_libdir_separator=:
7857 hardcode_direct=yes
7858
7859 # hardcode_minus_L: Not really in the search PATH,
7860 # but as the default location of the library.
7861 hardcode_minus_L=yes
7862 export_dynamic_flag_spec='${wl}-E'
7863 ;;
7864
vapier7f19c022007-02-17 14:46:31 +00007865 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007866 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007867 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7868 else
7869 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7870 fi
7871 if test "$with_gnu_ld" = no; then
7872 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00007873 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00007874 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00007875 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007876 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00007877 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00007878 # hardcode_minus_L: Not really in the search PATH,
7879 # but as the default location of the library.
7880 hardcode_minus_L=yes
7881 fi
7882 ;;
7883
7884 hpux11*)
7885 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7886 case $host_cpu in
7887 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007888 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7889 ;;
vapier7f19c022007-02-17 14:46:31 +00007890 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00007891 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007892 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007893 *)
7894 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7895 ;;
7896 esac
7897 else
vapier7f19c022007-02-17 14:46:31 +00007898 case $host_cpu in
7899 hppa*64*)
7900 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7901 ;;
7902 ia64*)
7903 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007904 ;;
7905 *)
vapier7f19c022007-02-17 14:46:31 +00007906 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 +00007907 ;;
7908 esac
7909 fi
7910 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007911 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7912 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007913
vapier7f19c022007-02-17 14:46:31 +00007914 case $host_cpu in
7915 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00007916 hardcode_direct=no
7917 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007918 ;;
7919 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007920 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007921 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007922 export_dynamic_flag_spec='${wl}-E'
7923
7924 # hardcode_minus_L: Not really in the search PATH,
7925 # but as the default location of the library.
7926 hardcode_minus_L=yes
7927 ;;
7928 esac
7929 fi
7930 ;;
7931
7932 irix5* | irix6* | nonstopux*)
7933 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007934 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'
7935 # Try to use the -exported_symbol ld option, if it does not
7936 # work, assume that -exports_file does not work either and
7937 # implicitly export all symbols.
7938 save_LDFLAGS="$LDFLAGS"
7939 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
drhf922ca42015-05-14 15:39:18 +00007940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +00007942int foo(void) {}
7943_ACEOF
drhf922ca42015-05-14 15:39:18 +00007944if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00007945 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'
7946
mlcreech636a9952008-05-05 22:52:56 +00007947fi
drhf922ca42015-05-14 15:39:18 +00007948rm -f core conftest.err conftest.$ac_objext \
7949 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00007950 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00007951 else
mlcreech636a9952008-05-05 22:52:56 +00007952 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'
7953 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 +00007954 fi
mlcreech636a9952008-05-05 22:52:56 +00007955 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7957 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00007958 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007959 link_all_deplibs=yes
7960 ;;
7961
vapier7f19c022007-02-17 14:46:31 +00007962 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007964 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7965 else
7966 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7967 fi
7968 hardcode_libdir_flag_spec='-R$libdir'
7969 hardcode_direct=yes
7970 hardcode_shlibpath_var=no
7971 ;;
7972
7973 newsos6)
7974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7975 hardcode_direct=yes
7976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7977 hardcode_libdir_separator=:
7978 hardcode_shlibpath_var=no
7979 ;;
7980
mlcreech636a9952008-05-05 22:52:56 +00007981 *nto* | *qnx*)
7982 ;;
7983
a.rottmann9bc8b932004-02-29 15:18:31 +00007984 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007985 if test -f /usr/libexec/ld.so; then
7986 hardcode_direct=yes
7987 hardcode_shlibpath_var=no
7988 hardcode_direct_absolute=yes
7989 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7991 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7992 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7993 export_dynamic_flag_spec='${wl}-E'
7994 else
7995 case $host_os in
7996 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7997 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7998 hardcode_libdir_flag_spec='-R$libdir'
7999 ;;
8000 *)
8001 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8002 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8003 ;;
8004 esac
8005 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008006 else
mlcreech636a9952008-05-05 22:52:56 +00008007 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008008 fi
8009 ;;
8010
8011 os2*)
8012 hardcode_libdir_flag_spec='-L$libdir'
8013 hardcode_minus_L=yes
8014 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008015 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'
8016 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008017 ;;
8018
8019 osf3*)
8020 if test "$GCC" = yes; then
8021 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008022 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 +00008023 else
8024 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008025 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 +00008026 fi
mlcreech636a9952008-05-05 22:52:56 +00008027 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8029 hardcode_libdir_separator=:
8030 ;;
8031
8032 osf4* | osf5*) # as osf3* with the addition of -msym flag
8033 if test "$GCC" = yes; then
8034 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008035 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 +00008036 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8037 else
8038 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008039 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'
8040 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~
8041 $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 +00008042
8043 # Both c and cxx compiler support -rpath directly
8044 hardcode_libdir_flag_spec='-rpath $libdir'
8045 fi
mlcreech636a9952008-05-05 22:52:56 +00008046 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008047 hardcode_libdir_separator=:
8048 ;;
8049
a.rottmann9bc8b932004-02-29 15:18:31 +00008050 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008051 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008052 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008053 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008054 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8055 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8056 $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 +00008057 else
mlcreech636a9952008-05-05 22:52:56 +00008058 case `$CC -V 2>&1` in
8059 *"Compilers 5.0"*)
8060 wlarc=''
8061 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8062 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8063 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8064 ;;
8065 *)
8066 wlarc='${wl}'
8067 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8068 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8069 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8070 ;;
8071 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008072 fi
8073 hardcode_libdir_flag_spec='-R$libdir'
8074 hardcode_shlibpath_var=no
8075 case $host_os in
8076 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008077 *)
mlcreech636a9952008-05-05 22:52:56 +00008078 # The compiler driver will combine and reorder linker options,
8079 # but understands `-z linker_flag'. GCC discards it without `$wl',
8080 # but is careful enough not to reorder.
8081 # Supported since Solaris 2.6 (maybe 2.5.1?)
8082 if test "$GCC" = yes; then
8083 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8084 else
8085 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8086 fi
8087 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008088 esac
8089 link_all_deplibs=yes
8090 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008091
a.rottmann9bc8b932004-02-29 15:18:31 +00008092 sunos4*)
8093 if test "x$host_vendor" = xsequent; then
8094 # Use $CC to link under sequent, because it throws in some extra .o
8095 # files that make .init and .fini sections work.
8096 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8097 else
8098 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8099 fi
8100 hardcode_libdir_flag_spec='-L$libdir'
8101 hardcode_direct=yes
8102 hardcode_minus_L=yes
8103 hardcode_shlibpath_var=no
8104 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008105
a.rottmann9bc8b932004-02-29 15:18:31 +00008106 sysv4)
8107 case $host_vendor in
8108 sni)
8109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8110 hardcode_direct=yes # is this really true???
8111 ;;
8112 siemens)
8113 ## LD is ld it makes a PLAMLIB
8114 ## CC just makes a GrossModule.
8115 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8116 reload_cmds='$CC -r -o $output$reload_objs'
8117 hardcode_direct=no
8118 ;;
8119 motorola)
8120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8121 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8122 ;;
8123 esac
8124 runpath_var='LD_RUN_PATH'
8125 hardcode_shlibpath_var=no
8126 ;;
8127
8128 sysv4.3*)
8129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8130 hardcode_shlibpath_var=no
8131 export_dynamic_flag_spec='-Bexport'
8132 ;;
8133
8134 sysv4*MP*)
8135 if test -d /usr/nec; then
8136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8137 hardcode_shlibpath_var=no
8138 runpath_var=LD_RUN_PATH
8139 hardcode_runpath_var=yes
8140 ld_shlibs=yes
8141 fi
8142 ;;
8143
mlcreech636a9952008-05-05 22:52:56 +00008144 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008145 no_undefined_flag='${wl}-z,text'
8146 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008147 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008148 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008149
a.rottmann9bc8b932004-02-29 15:18:31 +00008150 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008151 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8152 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 +00008153 else
vapier7f19c022007-02-17 14:46:31 +00008154 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8155 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 +00008156 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008157 ;;
8158
vapier7f19c022007-02-17 14:46:31 +00008159 sysv5* | sco3.2v5* | sco5v6*)
8160 # Note: We can NOT use -z defs as we might desire, because we do not
8161 # link with -lc, and that would cause any symbols used from libc to
8162 # always be unresolved, which means just about no library would
8163 # ever link correctly. If we're not using GNU ld we use -z text
8164 # though, which does catch some bad symbols but isn't as heavy-handed
8165 # as -z defs.
8166 no_undefined_flag='${wl}-z,text'
8167 allow_undefined_flag='${wl}-z,nodefs'
8168 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008169 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008170 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008171 hardcode_libdir_separator=':'
8172 link_all_deplibs=yes
8173 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008174 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008175
8176 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008177 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8178 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008179 else
mlcreech636a9952008-05-05 22:52:56 +00008180 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8181 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008182 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008183 ;;
8184
8185 uts4*)
8186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8187 hardcode_libdir_flag_spec='-L$libdir'
8188 hardcode_shlibpath_var=no
8189 ;;
8190
8191 *)
8192 ld_shlibs=no
8193 ;;
8194 esac
mlcreech636a9952008-05-05 22:52:56 +00008195
8196 if test x$host_vendor = xsni; then
8197 case $host in
8198 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8199 export_dynamic_flag_spec='${wl}-Blargedynsym'
8200 ;;
8201 esac
8202 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008203 fi
8204
drhf922ca42015-05-14 15:39:18 +00008205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
drh8b727472009-01-19 18:18:40 +00008206$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008207test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008208
mlcreech636a9952008-05-05 22:52:56 +00008209with_gnu_ld=$with_gnu_ld
8210
8211
danielk197733a14782008-08-04 14:50:05 +00008212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
a.rottmann9bc8b932004-02-29 15:18:31 +00008225#
8226# Do we need to explicitly link libc?
8227#
8228case "x$archive_cmds_need_lc" in
8229x|xyes)
8230 # Assume -lc should be added
8231 archive_cmds_need_lc=yes
8232
8233 if test "$enable_shared" = yes && test "$GCC" = yes; then
8234 case $archive_cmds in
8235 *'~'*)
8236 # FIXME: we may have to deal with multi-command sequences.
8237 ;;
8238 '$CC '*)
8239 # Test whether the compiler implicitly links with -lc since on some
8240 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8241 # to ld, don't add -lc before -lgcc.
drhf922ca42015-05-14 15:39:18 +00008242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
drh8b727472009-01-19 18:18:40 +00008243$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008244 $RM conftest*
8245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008246
drhf922ca42015-05-14 15:39:18 +00008247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008248 (eval $ac_compile) 2>&5
8249 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8251 test $ac_status = 0; } 2>conftest.err; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008252 soname=conftest
8253 lib=conftest
8254 libobjs=conftest.$ac_objext
8255 deplibs=
8256 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008257 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008258 compiler_flags=-v
8259 linker_flags=-v
8260 verstring=
8261 output_objdir=.
8262 libname=conftest
8263 lt_save_allow_undefined_flag=$allow_undefined_flag
8264 allow_undefined_flag=
drhf922ca42015-05-14 15:39:18 +00008265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00008266 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008267 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8269 test $ac_status = 0; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008270 then
8271 archive_cmds_need_lc=no
8272 else
8273 archive_cmds_need_lc=yes
8274 fi
8275 allow_undefined_flag=$lt_save_allow_undefined_flag
8276 else
8277 cat conftest.err 1>&5
8278 fi
mlcreech636a9952008-05-05 22:52:56 +00008279 $RM conftest*
drhf922ca42015-05-14 15:39:18 +00008280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
drh8b727472009-01-19 18:18:40 +00008281$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008282 ;;
8283 esac
drh71eb93e2001-09-28 01:34:43 +00008284 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008285 ;;
8286esac
drh71eb93e2001-09-28 01:34:43 +00008287
mlcreech636a9952008-05-05 22:52:56 +00008288
danielk197733a14782008-08-04 14:50:05 +00008289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
drhf922ca42015-05-14 15:39:18 +00008444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
drh8b727472009-01-19 18:18:40 +00008445$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008446
8447if test "$GCC" = yes; then
8448 case $host_os in
8449 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8450 *) lt_awk_arg="/^libraries:/" ;;
8451 esac
8452 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8453 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8454 # if the path contains ";" then we assume it to be the separator
8455 # otherwise default to the standard path separator (i.e. ":") - it is
8456 # assumed that no part of a normal pathname contains ";" but that should
8457 # okay in the real world where ";" in dirpaths is itself problematic.
8458 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8459 else
8460 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8461 fi
8462 # Ok, now we have the path, separated by spaces, we can step through it
8463 # and add multilib dir if necessary.
8464 lt_tmp_lt_search_path_spec=
8465 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8466 for lt_sys_path in $lt_search_path_spec; do
8467 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8468 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8469 else
8470 test -d "$lt_sys_path" && \
8471 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8472 fi
8473 done
8474 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8475BEGIN {RS=" "; FS="/|\n";} {
8476 lt_foo="";
8477 lt_count=0;
8478 for (lt_i = NF; lt_i > 0; lt_i--) {
8479 if ($lt_i != "" && $lt_i != ".") {
8480 if ($lt_i == "..") {
8481 lt_count++;
8482 } else {
8483 if (lt_count == 0) {
8484 lt_foo="/" $lt_i lt_foo;
8485 } else {
8486 lt_count--;
8487 }
8488 }
8489 }
8490 }
8491 if (lt_foo != "") { lt_freq[lt_foo]++; }
8492 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8493}'`
8494 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8495else
8496 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8497fi
drh71eb93e2001-09-28 01:34:43 +00008498library_names_spec=
8499libname_spec='lib$name'
8500soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008501shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008502postinstall_cmds=
8503postuninstall_cmds=
8504finish_cmds=
8505finish_eval=
8506shlibpath_var=
8507shlibpath_overrides_runpath=unknown
8508version_type=none
8509dynamic_linker="$host_os ld.so"
8510sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008511need_lib_prefix=unknown
8512hardcode_into_libs=no
8513
8514# when you set need_version to no, make sure it does not cause -set_version
8515# flags to be left without arguments
8516need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008517
8518case $host_os in
8519aix3*)
8520 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008521 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008522 shlibpath_var=LIBPATH
8523
a.rottmann9bc8b932004-02-29 15:18:31 +00008524 # AIX 3 has no versioning support, so we append a major version to the name.
8525 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008526 ;;
8527
mlcreech636a9952008-05-05 22:52:56 +00008528aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008529 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008530 need_lib_prefix=no
8531 need_version=no
8532 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008533 if test "$host_cpu" = ia64; then
8534 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008535 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008536 shlibpath_var=LD_LIBRARY_PATH
8537 else
8538 # With GCC up to 2.95.x, collect2 would create an import file
8539 # for dependence libraries. The import file would start with
8540 # the line `#! .'. This would cause the generated library to
8541 # depend on `.', always an invalid library. This was fixed in
8542 # development snapshots of GCC prior to 3.0.
8543 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008544 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008545 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8546 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008547 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008548 :
8549 else
8550 can_build_shared=no
8551 fi
8552 ;;
drh71eb93e2001-09-28 01:34:43 +00008553 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008554 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8555 # soname into executable. Probably we can add versioning support to
8556 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008557 if test "$aix_use_runtimelinking" = yes; then
8558 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8559 # instead of lib<name>.a to let people know that these are not
8560 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008562 else
8563 # We preserve .a as extension for shared libraries through AIX4.2
8564 # and later when we are not doing run time linking.
8565 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008566 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008567 fi
8568 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008569 fi
8570 ;;
8571
8572amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008573 case $host_cpu in
8574 powerpc)
8575 # Since July 2007 AmigaOS4 officially supports .so libraries.
8576 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8578 ;;
8579 m68k)
8580 library_names_spec='$libname.ixlibrary $libname.a'
8581 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8582 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'
8583 ;;
8584 esac
drh71eb93e2001-09-28 01:34:43 +00008585 ;;
8586
8587beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008588 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008589 dynamic_linker="$host_os ld.so"
8590 shlibpath_var=LIBRARY_PATH
8591 ;;
8592
vapier7f19c022007-02-17 14:46:31 +00008593bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008594 version_type=linux
8595 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8597 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008598 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8599 shlibpath_var=LD_LIBRARY_PATH
8600 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8601 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8602 # the default ld.so.conf also contains /usr/contrib/lib and
8603 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8604 # libtool to hard-code these into programs
8605 ;;
8606
vapier6acb2cf2009-01-28 04:46:28 +00008607cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008608 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008609 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008610 need_version=no
8611 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008612
drh71eb93e2001-09-28 01:34:43 +00008613 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008614 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008615 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008616 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8617 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008618 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008619 dldir=$destdir/`dirname \$dlpath`~
8620 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008621 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008622 chmod a+x \$dldir/$dlname~
8623 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8624 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8625 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008626 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008627 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008628 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008629 shlibpath_overrides_runpath=yes
8630
8631 case $host_os in
8632 cygwin*)
8633 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8634 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8635 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8636 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008637 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008638 # MinGW DLLs use traditional 'lib' prefix
8639 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008640 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8641 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008642 # It is most probably a Windows format PATH printed by
8643 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8644 # path with ; separators, and with drive letters. We can handle the
8645 # drive letters (cygwin fileutils understands them), so leave them,
8646 # especially as we might pass files found there to a mingw objdump,
8647 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008648 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008649 else
mlcreech636a9952008-05-05 22:52:56 +00008650 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008651 fi
8652 ;;
8653 pw32*)
8654 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008655 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 +00008656 ;;
8657 esac
drh71eb93e2001-09-28 01:34:43 +00008658 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008659
drh71eb93e2001-09-28 01:34:43 +00008660 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008661 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008662 ;;
8663 esac
8664 dynamic_linker='Win32 ld.exe'
8665 # FIXME: first we should search . and the directory the executable is in
8666 shlibpath_var=PATH
8667 ;;
8668
8669darwin* | rhapsody*)
8670 dynamic_linker="$host_os dyld"
8671 version_type=darwin
8672 need_lib_prefix=no
8673 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008674 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008675 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008676 shlibpath_overrides_runpath=yes
8677 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008678 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008679
8680 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008681 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8682 ;;
8683
8684dgux*)
8685 version_type=linux
8686 need_lib_prefix=no
8687 need_version=no
8688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8689 soname_spec='${libname}${release}${shared_ext}$major'
8690 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008691 ;;
8692
a.rottmann84e63352003-03-24 09:42:16 +00008693freebsd1*)
8694 dynamic_linker=no
8695 ;;
8696
vapier7f19c022007-02-17 14:46:31 +00008697freebsd* | dragonfly*)
8698 # DragonFly does not have aout. When/if they implement a new
8699 # versioning mechanism, adjust this.
8700 if test -x /usr/bin/objformat; then
8701 objformat=`/usr/bin/objformat`
8702 else
8703 case $host_os in
8704 freebsd[123]*) objformat=aout ;;
8705 *) objformat=elf ;;
8706 esac
8707 fi
8708 # Handle Gentoo/FreeBSD as it was Linux
8709 case $host_vendor in
8710 gentoo)
8711 version_type=linux ;;
8712 *)
8713 version_type=freebsd-$objformat ;;
8714 esac
8715
drh71eb93e2001-09-28 01:34:43 +00008716 case $version_type in
8717 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008719 need_version=no
8720 need_lib_prefix=no
8721 ;;
8722 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008723 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008724 need_version=yes
8725 ;;
vapier7f19c022007-02-17 14:46:31 +00008726 linux)
8727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8728 soname_spec='${libname}${release}${shared_ext}$major'
8729 need_lib_prefix=no
8730 need_version=no
8731 ;;
drh71eb93e2001-09-28 01:34:43 +00008732 esac
8733 shlibpath_var=LD_LIBRARY_PATH
8734 case $host_os in
8735 freebsd2*)
8736 shlibpath_overrides_runpath=yes
8737 ;;
vapier7f19c022007-02-17 14:46:31 +00008738 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008739 shlibpath_overrides_runpath=yes
8740 hardcode_into_libs=yes
8741 ;;
vapier7f19c022007-02-17 14:46:31 +00008742 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8743 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008744 shlibpath_overrides_runpath=no
8745 hardcode_into_libs=yes
8746 ;;
mlcreech636a9952008-05-05 22:52:56 +00008747 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008748 shlibpath_overrides_runpath=yes
8749 hardcode_into_libs=yes
8750 ;;
drh71eb93e2001-09-28 01:34:43 +00008751 esac
8752 ;;
8753
8754gnu*)
8755 version_type=linux
8756 need_lib_prefix=no
8757 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8759 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008760 shlibpath_var=LD_LIBRARY_PATH
8761 hardcode_into_libs=yes
8762 ;;
8763
8764hpux9* | hpux10* | hpux11*)
8765 # Give a soname corresponding to the major version so that dld.sl refuses to
8766 # link against other versions.
8767 version_type=sunos
8768 need_lib_prefix=no
8769 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008770 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008771 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008772 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008773 hardcode_into_libs=yes
8774 dynamic_linker="$host_os dld.so"
8775 shlibpath_var=LD_LIBRARY_PATH
8776 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8778 soname_spec='${libname}${release}${shared_ext}$major'
8779 if test "X$HPUX_IA64_MODE" = X32; then
8780 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8781 else
8782 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8783 fi
8784 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8785 ;;
mlcreech636a9952008-05-05 22:52:56 +00008786 hppa*64*)
8787 shrext_cmds='.sl'
8788 hardcode_into_libs=yes
8789 dynamic_linker="$host_os dld.sl"
8790 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8791 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8793 soname_spec='${libname}${release}${shared_ext}$major'
8794 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8795 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8796 ;;
8797 *)
vapier7f19c022007-02-17 14:46:31 +00008798 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008799 dynamic_linker="$host_os dld.sl"
8800 shlibpath_var=SHLIB_PATH
8801 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8803 soname_spec='${libname}${release}${shared_ext}$major'
8804 ;;
8805 esac
drh71eb93e2001-09-28 01:34:43 +00008806 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8807 postinstall_cmds='chmod 555 $lib'
8808 ;;
8809
mlcreech636a9952008-05-05 22:52:56 +00008810interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00008811 version_type=linux
8812 need_lib_prefix=no
8813 need_version=no
8814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8815 soname_spec='${libname}${release}${shared_ext}$major'
8816 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8817 shlibpath_var=LD_LIBRARY_PATH
8818 shlibpath_overrides_runpath=no
8819 hardcode_into_libs=yes
8820 ;;
8821
a.rottmann84e63352003-03-24 09:42:16 +00008822irix5* | irix6* | nonstopux*)
8823 case $host_os in
8824 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008825 *)
8826 if test "$lt_cv_prog_gnu_ld" = yes; then
8827 version_type=linux
8828 else
8829 version_type=irix
8830 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008831 esac
drh71eb93e2001-09-28 01:34:43 +00008832 need_lib_prefix=no
8833 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008834 soname_spec='${libname}${release}${shared_ext}$major'
8835 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 +00008836 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008837 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008838 libsuff= shlibsuff=
8839 ;;
8840 *)
8841 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008842 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8843 libsuff= shlibsuff= libmagic=32-bit;;
8844 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8845 libsuff=32 shlibsuff=N32 libmagic=N32;;
8846 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8847 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008848 *) libsuff= shlibsuff= libmagic=never-match;;
8849 esac
8850 ;;
8851 esac
8852 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8853 shlibpath_overrides_runpath=no
8854 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8855 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008856 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008857 ;;
8858
8859# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008860linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008861 dynamic_linker=no
8862 ;;
8863
8864# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00008865linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008866 version_type=linux
8867 need_lib_prefix=no
8868 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8870 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008871 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8872 shlibpath_var=LD_LIBRARY_PATH
8873 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00008874 # Some binutils ld are patched to set DT_RUNPATH
8875 save_LDFLAGS=$LDFLAGS
8876 save_libdir=$libdir
8877 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8878 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
drhf922ca42015-05-14 15:39:18 +00008879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008880/* end confdefs.h. */
8881
8882int
8883main ()
8884{
8885
8886 ;
8887 return 0;
8888}
8889_ACEOF
drhf922ca42015-05-14 15:39:18 +00008890if ac_fn_c_try_link "$LINENO"; then :
8891 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
mlcreech636a9952008-05-05 22:52:56 +00008892 shlibpath_overrides_runpath=yes
8893fi
mlcreech636a9952008-05-05 22:52:56 +00008894fi
drhf922ca42015-05-14 15:39:18 +00008895rm -f core conftest.err conftest.$ac_objext \
8896 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008897 LDFLAGS=$save_LDFLAGS
8898 libdir=$save_libdir
8899
drh71eb93e2001-09-28 01:34:43 +00008900 # This implies no fast_install, which is unacceptable.
8901 # Some rework will be needed to allow for fast_install
8902 # before this can be enabled.
8903 hardcode_into_libs=yes
8904
a.rottmann9bc8b932004-02-29 15:18:31 +00008905 # Append ld.so.conf contents to the search path
8906 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00008907 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 +00008908 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008909 fi
8910
drh71eb93e2001-09-28 01:34:43 +00008911 # We used to test for /lib/ld.so.1 and disable shared libraries on
8912 # powerpc, because MkLinux only supported shared libraries with the
8913 # GNU dynamic linker. Since this was broken with cross compilers,
8914 # most powerpc-linux boxes support dynamic linking these days and
8915 # people can always --disable-shared, the test was removed, and we
8916 # assume the GNU/Linux dynamic linker is in use.
8917 dynamic_linker='GNU/Linux ld.so'
8918 ;;
8919
8920netbsd*)
8921 version_type=sunos
8922 need_lib_prefix=no
8923 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008924 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8927 dynamic_linker='NetBSD (a.out) ld.so'
8928 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8930 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008931 dynamic_linker='NetBSD ld.elf_so'
8932 fi
8933 shlibpath_var=LD_LIBRARY_PATH
8934 shlibpath_overrides_runpath=yes
8935 hardcode_into_libs=yes
8936 ;;
8937
8938newsos6)
8939 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8941 shlibpath_var=LD_LIBRARY_PATH
8942 shlibpath_overrides_runpath=yes
8943 ;;
8944
mlcreech636a9952008-05-05 22:52:56 +00008945*nto* | *qnx*)
8946 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00008947 need_lib_prefix=no
8948 need_version=no
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008951 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008952 shlibpath_overrides_runpath=no
8953 hardcode_into_libs=yes
8954 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00008955 ;;
8956
drh71eb93e2001-09-28 01:34:43 +00008957openbsd*)
8958 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008959 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008960 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008961 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8962 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00008963 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8964 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00008965 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8968 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008969 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 +00008970 case $host_os in
8971 openbsd2.[89] | openbsd2.[89].*)
8972 shlibpath_overrides_runpath=no
8973 ;;
8974 *)
8975 shlibpath_overrides_runpath=yes
8976 ;;
8977 esac
a.rottmann84e63352003-03-24 09:42:16 +00008978 else
8979 shlibpath_overrides_runpath=yes
8980 fi
drh71eb93e2001-09-28 01:34:43 +00008981 ;;
8982
8983os2*)
8984 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00008985 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008986 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008987 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008988 dynamic_linker='OS/2 ld.exe'
8989 shlibpath_var=LIBPATH
8990 ;;
8991
8992osf3* | osf4* | osf5*)
8993 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00008994 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008995 need_version=no
8996 soname_spec='${libname}${release}${shared_ext}$major'
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008998 shlibpath_var=LD_LIBRARY_PATH
8999 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9000 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9001 ;;
9002
mlcreech636a9952008-05-05 22:52:56 +00009003rdos*)
9004 dynamic_linker=no
9005 ;;
9006
drh71eb93e2001-09-28 01:34:43 +00009007solaris*)
9008 version_type=linux
9009 need_lib_prefix=no
9010 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9012 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009013 shlibpath_var=LD_LIBRARY_PATH
9014 shlibpath_overrides_runpath=yes
9015 hardcode_into_libs=yes
9016 # ldd complains unless libraries are executable
9017 postinstall_cmds='chmod +x $lib'
9018 ;;
9019
9020sunos4*)
9021 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009023 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9024 shlibpath_var=LD_LIBRARY_PATH
9025 shlibpath_overrides_runpath=yes
9026 if test "$with_gnu_ld" = yes; then
9027 need_lib_prefix=no
9028 fi
9029 need_version=yes
9030 ;;
9031
vapier7f19c022007-02-17 14:46:31 +00009032sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009033 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9035 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009036 shlibpath_var=LD_LIBRARY_PATH
9037 case $host_vendor in
9038 sni)
9039 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009040 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009041 runpath_var=LD_RUN_PATH
9042 ;;
9043 siemens)
9044 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009045 ;;
9046 motorola)
9047 need_lib_prefix=no
9048 need_version=no
9049 shlibpath_overrides_runpath=no
9050 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9051 ;;
9052 esac
9053 ;;
9054
9055sysv4*MP*)
9056 if test -d /usr/nec ;then
9057 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009058 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9059 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009060 shlibpath_var=LD_LIBRARY_PATH
9061 fi
9062 ;;
9063
vapier7f19c022007-02-17 14:46:31 +00009064sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9065 version_type=freebsd-elf
9066 need_lib_prefix=no
9067 need_version=no
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9069 soname_spec='${libname}${release}${shared_ext}$major'
9070 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009071 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009072 hardcode_into_libs=yes
9073 if test "$with_gnu_ld" = yes; then
9074 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009075 else
9076 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009077 case $host_os in
9078 sco3.2v5*)
9079 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9080 ;;
9081 esac
9082 fi
9083 sys_lib_dlsearch_path_spec='/usr/lib'
9084 ;;
9085
mlcreech636a9952008-05-05 22:52:56 +00009086tpf*)
9087 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9088 version_type=linux
9089 need_lib_prefix=no
9090 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009092 shlibpath_var=LD_LIBRARY_PATH
9093 shlibpath_overrides_runpath=no
9094 hardcode_into_libs=yes
9095 ;;
9096
a.rottmann9bc8b932004-02-29 15:18:31 +00009097uts4*)
9098 version_type=linux
9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9100 soname_spec='${libname}${release}${shared_ext}$major'
9101 shlibpath_var=LD_LIBRARY_PATH
9102 ;;
9103
drh71eb93e2001-09-28 01:34:43 +00009104*)
9105 dynamic_linker=no
9106 ;;
9107esac
drhf922ca42015-05-14 15:39:18 +00009108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
drh8b727472009-01-19 18:18:40 +00009109$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009110test "$dynamic_linker" = no && can_build_shared=no
9111
vapier7f19c022007-02-17 14:46:31 +00009112variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9113if test "$GCC" = yes; then
9114 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9115fi
9116
mlcreech636a9952008-05-05 22:52:56 +00009117if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9118 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9119fi
9120if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9121 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9122fi
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
drhf922ca42015-05-14 15:39:18 +00009210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
drh8b727472009-01-19 18:18:40 +00009211$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009212hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009213if test -n "$hardcode_libdir_flag_spec" ||
9214 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009215 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009216
mlcreech636a9952008-05-05 22:52:56 +00009217 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009218 if test "$hardcode_direct" != no &&
9219 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9220 # have to relink, otherwise we might link with an installed library
9221 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009222 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009223 test "$hardcode_minus_L" != no; then
9224 # Linking always hardcodes the temporary library directory.
9225 hardcode_action=relink
9226 else
9227 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9228 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009229 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009230else
9231 # We cannot hardcode anything, or else we can only hardcode existing
9232 # directories.
9233 hardcode_action=unsupported
9234fi
drhf922ca42015-05-14 15:39:18 +00009235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
drh8b727472009-01-19 18:18:40 +00009236$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009237
mlcreech636a9952008-05-05 22:52:56 +00009238if test "$hardcode_action" = relink ||
9239 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009240 # Fast installation is not supported
9241 enable_fast_install=no
9242elif test "$shlibpath_overrides_runpath" = yes ||
9243 test "$enable_shared" = no; then
9244 # Fast installation is not necessary
9245 enable_fast_install=needless
9246fi
9247
a.rottmann84e63352003-03-24 09:42:16 +00009248
mlcreech636a9952008-05-05 22:52:56 +00009249
9250
9251
9252
9253 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009254 enable_dlopen=unknown
9255 enable_dlopen_self=unknown
9256 enable_dlopen_self_static=unknown
9257else
9258 lt_cv_dlopen=no
9259 lt_cv_dlopen_libs=
9260
9261 case $host_os in
9262 beos*)
9263 lt_cv_dlopen="load_add_on"
9264 lt_cv_dlopen_libs=
9265 lt_cv_dlopen_self=yes
9266 ;;
9267
vapier6acb2cf2009-01-28 04:46:28 +00009268 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009269 lt_cv_dlopen="LoadLibrary"
9270 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009271 ;;
drh71eb93e2001-09-28 01:34:43 +00009272
a.rottmann9bc8b932004-02-29 15:18:31 +00009273 cygwin*)
9274 lt_cv_dlopen="dlopen"
9275 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009276 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009277
9278 darwin*)
9279 # if libdl is installed we need to link against it
drhf922ca42015-05-14 15:39:18 +00009280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009281$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009282if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009283 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009284else
9285 ac_check_lib_save_LIBS=$LIBS
9286LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009288/* end confdefs.h. */
9289
drh8b727472009-01-19 18:18:40 +00009290/* Override any GCC internal prototype to avoid an error.
9291 Use char because int might match the return type of a GCC
9292 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009293#ifdef __cplusplus
9294extern "C"
9295#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009296char dlopen ();
9297int
9298main ()
9299{
drh8b727472009-01-19 18:18:40 +00009300return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009301 ;
9302 return 0;
9303}
9304_ACEOF
drhf922ca42015-05-14 15:39:18 +00009305if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009306 ac_cv_lib_dl_dlopen=yes
9307else
drhf922ca42015-05-14 15:39:18 +00009308 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009309fi
drhf922ca42015-05-14 15:39:18 +00009310rm -f core conftest.err conftest.$ac_objext \
9311 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009312LIBS=$ac_check_lib_save_LIBS
9313fi
drhf922ca42015-05-14 15:39:18 +00009314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009315$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009316if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009317 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9318else
9319
9320 lt_cv_dlopen="dyld"
9321 lt_cv_dlopen_libs=
9322 lt_cv_dlopen_self=yes
9323
9324fi
9325
mlcreech636a9952008-05-05 22:52:56 +00009326 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009327
drh71eb93e2001-09-28 01:34:43 +00009328 *)
drhf922ca42015-05-14 15:39:18 +00009329 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9330if test "x$ac_cv_func_shl_load" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009331 lt_cv_dlopen="shl_load"
9332else
drhf922ca42015-05-14 15:39:18 +00009333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009334$as_echo_n "checking for shl_load in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009335if ${ac_cv_lib_dld_shl_load+:} false; then :
drh8b727472009-01-19 18:18:40 +00009336 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009337else
9338 ac_check_lib_save_LIBS=$LIBS
9339LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009341/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009342
drh8b727472009-01-19 18:18:40 +00009343/* Override any GCC internal prototype to avoid an error.
9344 Use char because int might match the return type of a GCC
9345 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009346#ifdef __cplusplus
9347extern "C"
9348#endif
drh71eb93e2001-09-28 01:34:43 +00009349char shl_load ();
9350int
9351main ()
9352{
drh8b727472009-01-19 18:18:40 +00009353return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009354 ;
9355 return 0;
9356}
9357_ACEOF
drhf922ca42015-05-14 15:39:18 +00009358if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009359 ac_cv_lib_dld_shl_load=yes
9360else
drhf922ca42015-05-14 15:39:18 +00009361 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009362fi
drhf922ca42015-05-14 15:39:18 +00009363rm -f core conftest.err conftest.$ac_objext \
9364 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009365LIBS=$ac_check_lib_save_LIBS
9366fi
drhf922ca42015-05-14 15:39:18 +00009367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
drh8b727472009-01-19 18:18:40 +00009368$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drhf922ca42015-05-14 15:39:18 +00009369if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009370 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009371else
drhf922ca42015-05-14 15:39:18 +00009372 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9373if test "x$ac_cv_func_dlopen" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00009374 lt_cv_dlopen="dlopen"
9375else
drhf922ca42015-05-14 15:39:18 +00009376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009377$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009378if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009379 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009380else
9381 ac_check_lib_save_LIBS=$LIBS
9382LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009384/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009385
drh8b727472009-01-19 18:18:40 +00009386/* Override any GCC internal prototype to avoid an error.
9387 Use char because int might match the return type of a GCC
9388 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009389#ifdef __cplusplus
9390extern "C"
9391#endif
drh71eb93e2001-09-28 01:34:43 +00009392char dlopen ();
9393int
9394main ()
9395{
drh8b727472009-01-19 18:18:40 +00009396return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009397 ;
9398 return 0;
9399}
9400_ACEOF
drhf922ca42015-05-14 15:39:18 +00009401if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009402 ac_cv_lib_dl_dlopen=yes
9403else
drhf922ca42015-05-14 15:39:18 +00009404 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009405fi
drhf922ca42015-05-14 15:39:18 +00009406rm -f core conftest.err conftest.$ac_objext \
9407 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009408LIBS=$ac_check_lib_save_LIBS
9409fi
drhf922ca42015-05-14 15:39:18 +00009410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009411$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009412if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009413 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9414else
drhf922ca42015-05-14 15:39:18 +00009415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
drh8b727472009-01-19 18:18:40 +00009416$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009417if ${ac_cv_lib_svld_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009418 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009419else
9420 ac_check_lib_save_LIBS=$LIBS
9421LIBS="-lsvld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009423/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009424
drh8b727472009-01-19 18:18:40 +00009425/* Override any GCC internal prototype to avoid an error.
9426 Use char because int might match the return type of a GCC
9427 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009428#ifdef __cplusplus
9429extern "C"
9430#endif
drh71eb93e2001-09-28 01:34:43 +00009431char dlopen ();
9432int
9433main ()
9434{
drh8b727472009-01-19 18:18:40 +00009435return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009436 ;
9437 return 0;
9438}
9439_ACEOF
drhf922ca42015-05-14 15:39:18 +00009440if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009441 ac_cv_lib_svld_dlopen=yes
9442else
drhf922ca42015-05-14 15:39:18 +00009443 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009444fi
drhf922ca42015-05-14 15:39:18 +00009445rm -f core conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009447LIBS=$ac_check_lib_save_LIBS
9448fi
drhf922ca42015-05-14 15:39:18 +00009449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009450$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009451if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009452 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00009453else
drhf922ca42015-05-14 15:39:18 +00009454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009455$as_echo_n "checking for dld_link in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009456if ${ac_cv_lib_dld_dld_link+:} false; then :
drh8b727472009-01-19 18:18:40 +00009457 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009458else
9459 ac_check_lib_save_LIBS=$LIBS
9460LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009462/* end confdefs.h. */
9463
drh8b727472009-01-19 18:18:40 +00009464/* Override any GCC internal prototype to avoid an error.
9465 Use char because int might match the return type of a GCC
9466 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009467#ifdef __cplusplus
9468extern "C"
9469#endif
a.rottmann84e63352003-03-24 09:42:16 +00009470char dld_link ();
9471int
9472main ()
9473{
drh8b727472009-01-19 18:18:40 +00009474return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009475 ;
9476 return 0;
9477}
9478_ACEOF
drhf922ca42015-05-14 15:39:18 +00009479if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00009480 ac_cv_lib_dld_dld_link=yes
9481else
drhf922ca42015-05-14 15:39:18 +00009482 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009483fi
drhf922ca42015-05-14 15:39:18 +00009484rm -f core conftest.err conftest.$ac_objext \
9485 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009486LIBS=$ac_check_lib_save_LIBS
9487fi
drhf922ca42015-05-14 15:39:18 +00009488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
drh8b727472009-01-19 18:18:40 +00009489$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drhf922ca42015-05-14 15:39:18 +00009490if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009491 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00009492fi
9493
drh71eb93e2001-09-28 01:34:43 +00009494
9495fi
9496
drh71eb93e2001-09-28 01:34:43 +00009497
9498fi
9499
a.rottmann84e63352003-03-24 09:42:16 +00009500
9501fi
9502
9503
9504fi
9505
9506
drh71eb93e2001-09-28 01:34:43 +00009507fi
9508
9509 ;;
9510 esac
9511
9512 if test "x$lt_cv_dlopen" != xno; then
9513 enable_dlopen=yes
9514 else
9515 enable_dlopen=no
9516 fi
9517
9518 case $lt_cv_dlopen in
9519 dlopen)
9520 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009521 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009522
9523 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009524 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009525
9526 save_LIBS="$LIBS"
9527 LIBS="$lt_cv_dlopen_libs $LIBS"
9528
drhf922ca42015-05-14 15:39:18 +00009529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009530$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009531if ${lt_cv_dlopen_self+:} false; then :
drh8b727472009-01-19 18:18:40 +00009532 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009533else
9534 if test "$cross_compiling" = yes; then :
9535 lt_cv_dlopen_self=cross
9536else
a.rottmann9bc8b932004-02-29 15:18:31 +00009537 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009538 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009539 cat > conftest.$ac_ext <<_LT_EOF
drhce1d9f52015-10-09 12:48:33 +00009540#line 9540 "configure"
drh71eb93e2001-09-28 01:34:43 +00009541#include "confdefs.h"
9542
9543#if HAVE_DLFCN_H
9544#include <dlfcn.h>
9545#endif
9546
9547#include <stdio.h>
9548
9549#ifdef RTLD_GLOBAL
9550# define LT_DLGLOBAL RTLD_GLOBAL
9551#else
9552# ifdef DL_GLOBAL
9553# define LT_DLGLOBAL DL_GLOBAL
9554# else
9555# define LT_DLGLOBAL 0
9556# endif
9557#endif
9558
9559/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9560 find out it does not work in some platform. */
9561#ifndef LT_DLLAZY_OR_NOW
9562# ifdef RTLD_LAZY
9563# define LT_DLLAZY_OR_NOW RTLD_LAZY
9564# else
9565# ifdef DL_LAZY
9566# define LT_DLLAZY_OR_NOW DL_LAZY
9567# else
9568# ifdef RTLD_NOW
9569# define LT_DLLAZY_OR_NOW RTLD_NOW
9570# else
9571# ifdef DL_NOW
9572# define LT_DLLAZY_OR_NOW DL_NOW
9573# else
9574# define LT_DLLAZY_OR_NOW 0
9575# endif
9576# endif
9577# endif
9578# endif
9579#endif
9580
drh71eb93e2001-09-28 01:34:43 +00009581void fnord() { int i=42;}
9582int main ()
9583{
9584 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9585 int status = $lt_dlunknown;
9586
9587 if (self)
9588 {
9589 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9590 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9591 /* dlclose (self); */
9592 }
vapier7f19c022007-02-17 14:46:31 +00009593 else
9594 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009595
vapier6acb2cf2009-01-28 04:46:28 +00009596 return status;
drh71eb93e2001-09-28 01:34:43 +00009597}
mlcreech636a9952008-05-05 22:52:56 +00009598_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009600 (eval $ac_link) 2>&5
9601 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9603 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009604 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009605 lt_status=$?
9606 case x$lt_status in
9607 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9608 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009609 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009610 esac
9611 else :
9612 # compilation failed
9613 lt_cv_dlopen_self=no
9614 fi
9615fi
9616rm -fr conftest*
9617
a.rottmann84e63352003-03-24 09:42:16 +00009618
drh71eb93e2001-09-28 01:34:43 +00009619fi
drhf922ca42015-05-14 15:39:18 +00009620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
drh8b727472009-01-19 18:18:40 +00009621$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009622
9623 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009624 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00009625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009626$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009627if ${lt_cv_dlopen_self_static+:} false; then :
drh8b727472009-01-19 18:18:40 +00009628 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009629else
9630 if test "$cross_compiling" = yes; then :
9631 lt_cv_dlopen_self_static=cross
9632else
a.rottmann9bc8b932004-02-29 15:18:31 +00009633 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009634 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009635 cat > conftest.$ac_ext <<_LT_EOF
drhce1d9f52015-10-09 12:48:33 +00009636#line 9636 "configure"
drh71eb93e2001-09-28 01:34:43 +00009637#include "confdefs.h"
9638
9639#if HAVE_DLFCN_H
9640#include <dlfcn.h>
9641#endif
9642
9643#include <stdio.h>
9644
9645#ifdef RTLD_GLOBAL
9646# define LT_DLGLOBAL RTLD_GLOBAL
9647#else
9648# ifdef DL_GLOBAL
9649# define LT_DLGLOBAL DL_GLOBAL
9650# else
9651# define LT_DLGLOBAL 0
9652# endif
9653#endif
9654
9655/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9656 find out it does not work in some platform. */
9657#ifndef LT_DLLAZY_OR_NOW
9658# ifdef RTLD_LAZY
9659# define LT_DLLAZY_OR_NOW RTLD_LAZY
9660# else
9661# ifdef DL_LAZY
9662# define LT_DLLAZY_OR_NOW DL_LAZY
9663# else
9664# ifdef RTLD_NOW
9665# define LT_DLLAZY_OR_NOW RTLD_NOW
9666# else
9667# ifdef DL_NOW
9668# define LT_DLLAZY_OR_NOW DL_NOW
9669# else
9670# define LT_DLLAZY_OR_NOW 0
9671# endif
9672# endif
9673# endif
9674# endif
9675#endif
9676
drh71eb93e2001-09-28 01:34:43 +00009677void fnord() { int i=42;}
9678int main ()
9679{
9680 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9681 int status = $lt_dlunknown;
9682
9683 if (self)
9684 {
9685 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9686 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9687 /* dlclose (self); */
9688 }
vapier7f19c022007-02-17 14:46:31 +00009689 else
9690 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009691
vapier6acb2cf2009-01-28 04:46:28 +00009692 return status;
drh71eb93e2001-09-28 01:34:43 +00009693}
mlcreech636a9952008-05-05 22:52:56 +00009694_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009696 (eval $ac_link) 2>&5
9697 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9699 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009700 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009701 lt_status=$?
9702 case x$lt_status in
9703 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9704 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009705 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009706 esac
9707 else :
9708 # compilation failed
9709 lt_cv_dlopen_self_static=no
9710 fi
9711fi
9712rm -fr conftest*
9713
a.rottmann84e63352003-03-24 09:42:16 +00009714
drh71eb93e2001-09-28 01:34:43 +00009715fi
drhf922ca42015-05-14 15:39:18 +00009716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
drh8b727472009-01-19 18:18:40 +00009717$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009718 fi
9719
9720 CPPFLAGS="$save_CPPFLAGS"
9721 LDFLAGS="$save_LDFLAGS"
9722 LIBS="$save_LIBS"
9723 ;;
9724 esac
9725
9726 case $lt_cv_dlopen_self in
9727 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9728 *) enable_dlopen_self=unknown ;;
9729 esac
9730
9731 case $lt_cv_dlopen_self_static in
9732 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9733 *) enable_dlopen_self_static=unknown ;;
9734 esac
9735fi
9736
drh71eb93e2001-09-28 01:34:43 +00009737
drh71eb93e2001-09-28 01:34:43 +00009738
a.rottmann9bc8b932004-02-29 15:18:31 +00009739
a.rottmann9bc8b932004-02-29 15:18:31 +00009740
mlcreech636a9952008-05-05 22:52:56 +00009741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753striplib=
9754old_striplib=
drhf922ca42015-05-14 15:39:18 +00009755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
drh8b727472009-01-19 18:18:40 +00009756$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009757if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9758 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9759 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drhf922ca42015-05-14 15:39:18 +00009760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009761$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009762else
9763# FIXME - insert some real tests, host_os isn't really good enough
9764 case $host_os in
9765 darwin*)
9766 if test -n "$STRIP" ; then
9767 striplib="$STRIP -x"
9768 old_striplib="$STRIP -S"
drhf922ca42015-05-14 15:39:18 +00009769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009770$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009771 else
drhf922ca42015-05-14 15:39:18 +00009772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009773$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009774 fi
a.rottmann84e63352003-03-24 09:42:16 +00009775 ;;
mlcreech636a9952008-05-05 22:52:56 +00009776 *)
drhf922ca42015-05-14 15:39:18 +00009777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009778$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009779 ;;
9780 esac
mlcreech636a9952008-05-05 22:52:56 +00009781fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009782
a.rottmann9bc8b932004-02-29 15:18:31 +00009783
drh71eb93e2001-09-28 01:34:43 +00009784
drh71eb93e2001-09-28 01:34:43 +00009785
a.rottmann84e63352003-03-24 09:42:16 +00009786
drh71eb93e2001-09-28 01:34:43 +00009787
drh71eb93e2001-09-28 01:34:43 +00009788
a.rottmann9bc8b932004-02-29 15:18:31 +00009789
drh71eb93e2001-09-28 01:34:43 +00009790
drh71eb93e2001-09-28 01:34:43 +00009791
drh71eb93e2001-09-28 01:34:43 +00009792
drh71eb93e2001-09-28 01:34:43 +00009793
mlcreech636a9952008-05-05 22:52:56 +00009794 # Report which library types will actually be built
drhf922ca42015-05-14 15:39:18 +00009795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009796$as_echo_n "checking if libtool supports shared libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
drh8b727472009-01-19 18:18:40 +00009798$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009799
drhf922ca42015-05-14 15:39:18 +00009800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009801$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009802 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009803
mlcreech636a9952008-05-05 22:52:56 +00009804 # On AIX, shared libraries and static libraries use the same namespace, and
9805 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +00009806 case $host_os in
9807 aix3*)
vapier7f19c022007-02-17 14:46:31 +00009808 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +00009809 if test -n "$RANLIB"; then
9810 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9811 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +00009812 fi
9813 ;;
9814
mlcreech636a9952008-05-05 22:52:56 +00009815 aix[4-9]*)
9816 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9817 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009818 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009819 ;;
9820 esac
drhf922ca42015-05-14 15:39:18 +00009821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
drh8b727472009-01-19 18:18:40 +00009822$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009823
drhf922ca42015-05-14 15:39:18 +00009824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
drh8b727472009-01-19 18:18:40 +00009825$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009826 # Make sure either enable_shared or enable_static is yes.
9827 test "$enable_shared" = yes || enable_static=yes
drhf922ca42015-05-14 15:39:18 +00009828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
drh8b727472009-01-19 18:18:40 +00009829$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +00009830
a.rottmann9bc8b932004-02-29 15:18:31 +00009831
a.rottmann9bc8b932004-02-29 15:18:31 +00009832
a.rottmann9bc8b932004-02-29 15:18:31 +00009833
vapier7f19c022007-02-17 14:46:31 +00009834fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009835ac_ext=c
9836ac_cpp='$CPP $CPPFLAGS'
9837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9839ac_compiler_gnu=$ac_cv_c_compiler_gnu
9840
9841CC="$lt_save_CC"
9842
a.rottmann9bc8b932004-02-29 15:18:31 +00009843
a.rottmann9bc8b932004-02-29 15:18:31 +00009844
9845
a.rottmann9bc8b932004-02-29 15:18:31 +00009846
a.rottmann9bc8b932004-02-29 15:18:31 +00009847
a.rottmann9bc8b932004-02-29 15:18:31 +00009848
a.rottmann9bc8b932004-02-29 15:18:31 +00009849
a.rottmann9bc8b932004-02-29 15:18:31 +00009850
a.rottmann9bc8b932004-02-29 15:18:31 +00009851
vapier7f19c022007-02-17 14:46:31 +00009852
a.rottmann9bc8b932004-02-29 15:18:31 +00009853
9854
drh8b727472009-01-19 18:18:40 +00009855 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +00009856
vapier7f19c022007-02-17 14:46:31 +00009857
9858
vapier7f19c022007-02-17 14:46:31 +00009859
mlcreech636a9952008-05-05 22:52:56 +00009860# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +00009861
9862
drh71eb93e2001-09-28 01:34:43 +00009863# Find a good install program. We prefer a C program (faster),
9864# so one script is as good as another. But avoid the broken or
9865# incompatible versions:
9866# SysV /etc/install, /usr/sbin/install
9867# SunOS /usr/etc/install
9868# IRIX /sbin/install
9869# AIX /bin/install
9870# AmigaOS /C/install, which installs bootblocks on floppy discs
9871# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9872# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9873# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +00009874# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +00009875# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +00009876# Reject install programs that cannot install multiple files.
drhf922ca42015-05-14 15:39:18 +00009877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
drh8b727472009-01-19 18:18:40 +00009878$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009879if test -z "$INSTALL"; then
drhf922ca42015-05-14 15:39:18 +00009880if ${ac_cv_path_install+:} false; then :
drh8b727472009-01-19 18:18:40 +00009881 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009882else
a.rottmann84e63352003-03-24 09:42:16 +00009883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884for as_dir in $PATH
9885do
9886 IFS=$as_save_IFS
9887 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00009888 # Account for people who put trailing slashes in PATH elements.
9889case $as_dir/ in #((
9890 ./ | .// | /[cC]/* | \
a.rottmann84e63352003-03-24 09:42:16 +00009891 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
drhf922ca42015-05-14 15:39:18 +00009892 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
a.rottmann84e63352003-03-24 09:42:16 +00009893 /usr/ucb/* ) ;;
9894 *)
9895 # OSF1 and SCO ODT 3.0 have their own names for install.
9896 # Don't use installbsd from OSF since it installs stuff as root
9897 # by default.
9898 for ac_prog in ginstall scoinst install; do
9899 for ac_exec_ext in '' $ac_executable_extensions; do
drhf922ca42015-05-14 15:39:18 +00009900 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a.rottmann964dbb12004-02-26 19:47:42 +00009901 if test $ac_prog = install &&
9902 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9903 # AIX install. It has an incompatible calling convention.
9904 :
9905 elif test $ac_prog = install &&
9906 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9907 # program-specific install script used by HP pwplus--don't use.
9908 :
9909 else
drh8b727472009-01-19 18:18:40 +00009910 rm -rf conftest.one conftest.two conftest.dir
9911 echo one > conftest.one
9912 echo two > conftest.two
9913 mkdir conftest.dir
9914 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9915 test -s conftest.one && test -s conftest.two &&
9916 test -s conftest.dir/conftest.one &&
9917 test -s conftest.dir/conftest.two
9918 then
9919 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9920 break 3
9921 fi
a.rottmann964dbb12004-02-26 19:47:42 +00009922 fi
9923 fi
drh71eb93e2001-09-28 01:34:43 +00009924 done
a.rottmann84e63352003-03-24 09:42:16 +00009925 done
9926 ;;
9927esac
a.rottmann84e63352003-03-24 09:42:16 +00009928
drhf922ca42015-05-14 15:39:18 +00009929 done
drh8b727472009-01-19 18:18:40 +00009930IFS=$as_save_IFS
9931
9932rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +00009933
9934fi
9935 if test "${ac_cv_path_install+set}" = set; then
9936 INSTALL=$ac_cv_path_install
9937 else
drh8b727472009-01-19 18:18:40 +00009938 # As a last resort, use the slow shell script. Don't cache a
9939 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +00009940 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +00009941 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +00009942 INSTALL=$ac_install_sh
9943 fi
9944fi
drhf922ca42015-05-14 15:39:18 +00009945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
drh8b727472009-01-19 18:18:40 +00009946$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009947
9948# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9949# It thinks the first close brace ends the variable substitution.
9950test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9951
9952test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9953
9954test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9955
drhf1878b42006-01-23 18:06:52 +00009956for ac_prog in gawk mawk nawk awk
9957do
9958 # Extract the first word of "$ac_prog", so it can be a program name with args.
9959set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00009960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00009961$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009962if ${ac_cv_prog_AWK+:} false; then :
drh8b727472009-01-19 18:18:40 +00009963 $as_echo_n "(cached) " >&6
drhf1878b42006-01-23 18:06:52 +00009964else
9965 if test -n "$AWK"; then
9966 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9967else
9968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9969for as_dir in $PATH
9970do
9971 IFS=$as_save_IFS
9972 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00009973 for ac_exec_ext in '' $ac_executable_extensions; do
9974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
drhf1878b42006-01-23 18:06:52 +00009975 ac_cv_prog_AWK="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00009976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
drhf1878b42006-01-23 18:06:52 +00009977 break 2
9978 fi
9979done
drhf922ca42015-05-14 15:39:18 +00009980 done
drh8b727472009-01-19 18:18:40 +00009981IFS=$as_save_IFS
drhf1878b42006-01-23 18:06:52 +00009982
9983fi
9984fi
9985AWK=$ac_cv_prog_AWK
9986if test -n "$AWK"; then
drhf922ca42015-05-14 15:39:18 +00009987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
drh8b727472009-01-19 18:18:40 +00009988$as_echo "$AWK" >&6; }
drhf1878b42006-01-23 18:06:52 +00009989else
drhf922ca42015-05-14 15:39:18 +00009990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009991$as_echo "no" >&6; }
drhf1878b42006-01-23 18:06:52 +00009992fi
9993
drh8b727472009-01-19 18:18:40 +00009994
drhf1878b42006-01-23 18:06:52 +00009995 test -n "$AWK" && break
9996done
9997
a.rottmann84e63352003-03-24 09:42:16 +00009998
drh75897232000-05-29 14:26:00 +00009999#########
mlcreech636a9952008-05-05 22:52:56 +000010000# Enable large file support (if special flags are necessary)
10001#
drh8b727472009-01-19 18:18:40 +000010002# Check whether --enable-largefile was given.
drhf922ca42015-05-14 15:39:18 +000010003if test "${enable_largefile+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010004 enableval=$enable_largefile;
10005fi
mlcreech636a9952008-05-05 22:52:56 +000010006
10007if test "$enable_largefile" != no; then
10008
drhf922ca42015-05-14 15:39:18 +000010009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010010$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010011if ${ac_cv_sys_largefile_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +000010012 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000010013else
mlcreech636a9952008-05-05 22:52:56 +000010014 ac_cv_sys_largefile_CC=no
10015 if test "$GCC" != yes; then
10016 ac_save_CC=$CC
10017 while :; do
drh8b727472009-01-19 18:18:40 +000010018 # IRIX 6.2 and later do not support large files by default,
10019 # so use the C compiler's -n32 option if that helps.
drhf922ca42015-05-14 15:39:18 +000010020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010021/* end confdefs.h. */
10022#include <sys/types.h>
10023 /* Check that off_t can represent 2**63 - 1 correctly.
10024 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10025 since some C++ compilers masquerading as C compilers
10026 incorrectly reject 9223372036854775807. */
10027#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10028 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10029 && LARGE_OFF_T % 2147483647 == 1)
10030 ? 1 : -1];
10031int
10032main ()
10033{
10034
10035 ;
10036 return 0;
10037}
10038_ACEOF
drhf922ca42015-05-14 15:39:18 +000010039 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010040 break
mlcreech636a9952008-05-05 22:52:56 +000010041fi
drh8b727472009-01-19 18:18:40 +000010042rm -f core conftest.err conftest.$ac_objext
10043 CC="$CC -n32"
drhf922ca42015-05-14 15:39:18 +000010044 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010045 ac_cv_sys_largefile_CC=' -n32'; break
mlcreech636a9952008-05-05 22:52:56 +000010046fi
drh8b727472009-01-19 18:18:40 +000010047rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010048 break
10049 done
10050 CC=$ac_save_CC
10051 rm -f conftest.$ac_ext
10052 fi
10053fi
drhf922ca42015-05-14 15:39:18 +000010054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
drh8b727472009-01-19 18:18:40 +000010055$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010056 if test "$ac_cv_sys_largefile_CC" != no; then
10057 CC=$CC$ac_cv_sys_largefile_CC
10058 fi
10059
drhf922ca42015-05-14 15:39:18 +000010060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010061$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010062if ${ac_cv_sys_file_offset_bits+:} false; then :
drh8b727472009-01-19 18:18:40 +000010063 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010064else
10065 while :; do
drhf922ca42015-05-14 15:39:18 +000010066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010067/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010068#include <sys/types.h>
10069 /* Check that off_t can represent 2**63 - 1 correctly.
10070 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10071 since some C++ compilers masquerading as C compilers
10072 incorrectly reject 9223372036854775807. */
10073#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10074 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10075 && LARGE_OFF_T % 2147483647 == 1)
10076 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010077int
10078main ()
10079{
mlcreech636a9952008-05-05 22:52:56 +000010080
mlcreechb87057f2008-03-06 07:19:20 +000010081 ;
10082 return 0;
10083}
10084_ACEOF
drhf922ca42015-05-14 15:39:18 +000010085if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010086 ac_cv_sys_file_offset_bits=no; break
mlcreech636a9952008-05-05 22:52:56 +000010087fi
drh8b727472009-01-19 18:18:40 +000010088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010090/* end confdefs.h. */
10091#define _FILE_OFFSET_BITS 64
10092#include <sys/types.h>
10093 /* Check that off_t can represent 2**63 - 1 correctly.
10094 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10095 since some C++ compilers masquerading as C compilers
10096 incorrectly reject 9223372036854775807. */
10097#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10098 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10099 && LARGE_OFF_T % 2147483647 == 1)
10100 ? 1 : -1];
10101int
10102main ()
10103{
10104
10105 ;
10106 return 0;
10107}
10108_ACEOF
drhf922ca42015-05-14 15:39:18 +000010109if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010110 ac_cv_sys_file_offset_bits=64; break
mlcreech636a9952008-05-05 22:52:56 +000010111fi
drh8b727472009-01-19 18:18:40 +000010112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10113 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010114 break
10115done
10116fi
drhf922ca42015-05-14 15:39:18 +000010117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
drh8b727472009-01-19 18:18:40 +000010118$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10119case $ac_cv_sys_file_offset_bits in #(
10120 no | unknown) ;;
10121 *)
mlcreech636a9952008-05-05 22:52:56 +000010122cat >>confdefs.h <<_ACEOF
10123#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10124_ACEOF
drh8b727472009-01-19 18:18:40 +000010125;;
10126esac
10127rm -rf conftest*
10128 if test $ac_cv_sys_file_offset_bits = unknown; then
drhf922ca42015-05-14 15:39:18 +000010129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010130$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010131if ${ac_cv_sys_large_files+:} false; then :
drh8b727472009-01-19 18:18:40 +000010132 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010133else
10134 while :; do
drhf922ca42015-05-14 15:39:18 +000010135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010136/* end confdefs.h. */
10137#include <sys/types.h>
10138 /* Check that off_t can represent 2**63 - 1 correctly.
10139 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10140 since some C++ compilers masquerading as C compilers
10141 incorrectly reject 9223372036854775807. */
10142#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10143 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10144 && LARGE_OFF_T % 2147483647 == 1)
10145 ? 1 : -1];
10146int
10147main ()
10148{
10149
10150 ;
10151 return 0;
10152}
10153_ACEOF
drhf922ca42015-05-14 15:39:18 +000010154if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010155 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010156fi
drh8b727472009-01-19 18:18:40 +000010157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010159/* end confdefs.h. */
10160#define _LARGE_FILES 1
10161#include <sys/types.h>
10162 /* Check that off_t can represent 2**63 - 1 correctly.
10163 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10164 since some C++ compilers masquerading as C compilers
10165 incorrectly reject 9223372036854775807. */
10166#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10167 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10168 && LARGE_OFF_T % 2147483647 == 1)
10169 ? 1 : -1];
10170int
10171main ()
10172{
10173
10174 ;
10175 return 0;
10176}
10177_ACEOF
drhf922ca42015-05-14 15:39:18 +000010178if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010179 ac_cv_sys_large_files=1; break
mlcreech636a9952008-05-05 22:52:56 +000010180fi
drh8b727472009-01-19 18:18:40 +000010181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10182 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010183 break
10184done
10185fi
drhf922ca42015-05-14 15:39:18 +000010186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
drh8b727472009-01-19 18:18:40 +000010187$as_echo "$ac_cv_sys_large_files" >&6; }
10188case $ac_cv_sys_large_files in #(
10189 no | unknown) ;;
10190 *)
mlcreech636a9952008-05-05 22:52:56 +000010191cat >>confdefs.h <<_ACEOF
10192#define _LARGE_FILES $ac_cv_sys_large_files
10193_ACEOF
drh8b727472009-01-19 18:18:40 +000010194;;
10195esac
10196rm -rf conftest*
10197 fi
drhf922ca42015-05-14 15:39:18 +000010198
10199
mlcreech636a9952008-05-05 22:52:56 +000010200fi
10201
10202
10203#########
10204# Check for needed/wanted data types
drhf922ca42015-05-14 15:39:18 +000010205ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10206if test "x$ac_cv_type_int8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010207
10208cat >>confdefs.h <<_ACEOF
10209#define HAVE_INT8_T 1
10210_ACEOF
10211
10212
10213fi
drhf922ca42015-05-14 15:39:18 +000010214ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10215if test "x$ac_cv_type_int16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010216
10217cat >>confdefs.h <<_ACEOF
10218#define HAVE_INT16_T 1
10219_ACEOF
10220
10221
10222fi
drhf922ca42015-05-14 15:39:18 +000010223ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10224if test "x$ac_cv_type_int32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010225
10226cat >>confdefs.h <<_ACEOF
10227#define HAVE_INT32_T 1
10228_ACEOF
10229
10230
10231fi
drhf922ca42015-05-14 15:39:18 +000010232ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10233if test "x$ac_cv_type_int64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010234
10235cat >>confdefs.h <<_ACEOF
10236#define HAVE_INT64_T 1
10237_ACEOF
10238
10239
10240fi
drhf922ca42015-05-14 15:39:18 +000010241ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10242if test "x$ac_cv_type_intptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010243
10244cat >>confdefs.h <<_ACEOF
10245#define HAVE_INTPTR_T 1
10246_ACEOF
10247
10248
10249fi
drhf922ca42015-05-14 15:39:18 +000010250ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10251if test "x$ac_cv_type_uint8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010252
10253cat >>confdefs.h <<_ACEOF
10254#define HAVE_UINT8_T 1
10255_ACEOF
10256
10257
10258fi
drhf922ca42015-05-14 15:39:18 +000010259ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10260if test "x$ac_cv_type_uint16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010261
10262cat >>confdefs.h <<_ACEOF
10263#define HAVE_UINT16_T 1
10264_ACEOF
10265
10266
10267fi
drhf922ca42015-05-14 15:39:18 +000010268ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10269if test "x$ac_cv_type_uint32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010270
10271cat >>confdefs.h <<_ACEOF
10272#define HAVE_UINT32_T 1
10273_ACEOF
10274
10275
10276fi
drhf922ca42015-05-14 15:39:18 +000010277ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10278if test "x$ac_cv_type_uint64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010279
10280cat >>confdefs.h <<_ACEOF
10281#define HAVE_UINT64_T 1
10282_ACEOF
10283
10284
10285fi
drhf922ca42015-05-14 15:39:18 +000010286ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10287if test "x$ac_cv_type_uintptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010288
10289cat >>confdefs.h <<_ACEOF
10290#define HAVE_UINTPTR_T 1
10291_ACEOF
10292
10293
10294fi
mlcreechb87057f2008-03-06 07:19:20 +000010295
10296
10297#########
10298# Check for needed/wanted headers
drh86c5a932012-02-08 12:13:28 +000010299for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
drhf922ca42015-05-14 15:39:18 +000010300do :
10301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10302ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10303if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
mlcreechb87057f2008-03-06 07:19:20 +000010304 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010305#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000010306_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000010307
mlcreechb87057f2008-03-06 07:19:20 +000010308fi
10309
10310done
10311
10312
10313#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000010314# Figure out whether or not we have these functions
10315#
drh39311122015-01-15 17:38:35 +000010316for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime
drhf922ca42015-05-14 15:39:18 +000010317do :
10318 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10319ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10320if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
mlcreech5b0a9eb2008-03-09 01:38:09 +000010321 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010322#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010323_ACEOF
10324
10325fi
10326done
10327
10328
mlcreechab1c47b2008-03-09 02:51:10 +000010329#########
mlcreechf3868112008-03-11 18:03:30 +000010330# By default, we use the amalgamation (this may be changed below...)
10331#
10332USE_AMALGAMATION=1
10333
10334#########
mlcreechab1c47b2008-03-09 02:51:10 +000010335# See whether we can run specific tclsh versions known to work well;
10336# if not, then we fall back to plain tclsh.
10337# TODO: try other versions before falling back?
10338#
mistachkinfe27b082013-08-28 18:06:26 +000010339for ac_prog in tclsh8.6 tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000010340do
10341 # Extract the first word of "$ac_prog", so it can be a program name with args.
10342set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010344$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010345if ${ac_cv_prog_TCLSH_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +000010346 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010347else
10348 if test -n "$TCLSH_CMD"; then
10349 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10350else
10351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352for as_dir in $PATH
10353do
10354 IFS=$as_save_IFS
10355 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010356 for ac_exec_ext in '' $ac_executable_extensions; do
10357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreechab1c47b2008-03-09 02:51:10 +000010358 ac_cv_prog_TCLSH_CMD="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000010360 break 2
10361 fi
10362done
drhf922ca42015-05-14 15:39:18 +000010363 done
drh8b727472009-01-19 18:18:40 +000010364IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000010365
10366fi
10367fi
10368TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10369if test -n "$TCLSH_CMD"; then
drhf922ca42015-05-14 15:39:18 +000010370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
drh8b727472009-01-19 18:18:40 +000010371$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010372else
drhf922ca42015-05-14 15:39:18 +000010373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010374$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010375fi
10376
drh8b727472009-01-19 18:18:40 +000010377
mlcreechab1c47b2008-03-09 02:51:10 +000010378 test -n "$TCLSH_CMD" && break
10379done
mlcreechf3868112008-03-11 18:03:30 +000010380test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000010381
mlcreechf3868112008-03-11 18:03:30 +000010382if test "$TCLSH_CMD" = "none"; then
10383 # If we can't find a local tclsh, then building the amalgamation will fail.
10384 # We act as though --disable-amalgamation has been used.
10385 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10386 USE_AMALGAMATION=0
10387 TCLSH_CMD="tclsh"
10388fi
mlcreechab1c47b2008-03-09 02:51:10 +000010389
10390
mlcreech5b0a9eb2008-03-09 01:38:09 +000010391
vapier6acb2cf2009-01-28 04:46:28 +000010392if test "x${TCLLIBDIR+set}" != "xset" ; then
10393 TCLLIBDIR='$(libdir)'
10394 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10395 TCLLIBDIR=$i
10396 break
10397 done
10398 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10399fi
10400
10401
mlcreech5b0a9eb2008-03-09 01:38:09 +000010402#########
drh75897232000-05-29 14:26:00 +000010403# Set up an appropriate program prefix
10404#
10405if test "$program_prefix" = "NONE"; then
10406 program_prefix=""
10407fi
10408
a.rottmann84e63352003-03-24 09:42:16 +000010409
drh4b2266a2004-11-27 15:52:16 +000010410VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
drhf922ca42015-05-14 15:39:18 +000010411{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010412$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000010413
10414RELEASE=`cat $srcdir/VERSION`
drhf922ca42015-05-14 15:39:18 +000010415{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010416$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010417
vapier6acb2cf2009-01-28 04:46:28 +000010418VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000010419 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000010420 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
drhf922ca42015-05-14 15:39:18 +000010421{ $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010422$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010423
drh26d0e2a2005-07-06 13:51:27 +000010424
drh75897232000-05-29 14:26:00 +000010425#########
drh75897232000-05-29 14:26:00 +000010426# Locate a compiler for the build machine. This compiler should
10427# generate command-line programs that run on the build machine.
10428#
vapier7f19c022007-02-17 14:46:31 +000010429if test x"$cross_compiling" = xno; then
10430 BUILD_CC=$CC
10431 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000010432else
vapier7f19c022007-02-17 14:46:31 +000010433 if test "${BUILD_CC+set}" != set; then
10434 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000010435do
10436 # Extract the first word of "$ac_prog", so it can be a program name with args.
10437set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010439$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010440if ${ac_cv_prog_BUILD_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +000010441 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010442else
vapier7f19c022007-02-17 14:46:31 +000010443 if test -n "$BUILD_CC"; then
10444 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000010445else
a.rottmann84e63352003-03-24 09:42:16 +000010446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10447for as_dir in $PATH
10448do
10449 IFS=$as_save_IFS
10450 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010451 for ac_exec_ext in '' $ac_executable_extensions; do
10452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier7f19c022007-02-17 14:46:31 +000010453 ac_cv_prog_BUILD_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010455 break 2
10456 fi
10457done
drhf922ca42015-05-14 15:39:18 +000010458 done
drh8b727472009-01-19 18:18:40 +000010459IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000010460
drh71eb93e2001-09-28 01:34:43 +000010461fi
10462fi
vapier7f19c022007-02-17 14:46:31 +000010463BUILD_CC=$ac_cv_prog_BUILD_CC
10464if test -n "$BUILD_CC"; then
drhf922ca42015-05-14 15:39:18 +000010465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
drh8b727472009-01-19 18:18:40 +000010466$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010467else
drhf922ca42015-05-14 15:39:18 +000010468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010469$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010470fi
drh75897232000-05-29 14:26:00 +000010471
drh8b727472009-01-19 18:18:40 +000010472
vapier7f19c022007-02-17 14:46:31 +000010473 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000010474done
drh75897232000-05-29 14:26:00 +000010475
vapier7f19c022007-02-17 14:46:31 +000010476 fi
10477 if test "${BUILD_CFLAGS+set}" != set; then
10478 BUILD_CFLAGS="-g"
10479 fi
drh71eb93e2001-09-28 01:34:43 +000010480fi
10481
a.rottmann84e63352003-03-24 09:42:16 +000010482
drh297ecf12001-04-05 15:57:13 +000010483##########
dougcurrie0f290bf2004-06-21 18:57:29 +000010484# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000010485#
drh8b727472009-01-19 18:18:40 +000010486# Check whether --enable-threadsafe was given.
drhf922ca42015-05-14 15:39:18 +000010487if test "${enable_threadsafe+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010488 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000010489else
drh5a3032b2007-09-03 16:12:09 +000010490 enable_threadsafe=yes
drh8b727472009-01-19 18:18:40 +000010491fi
10492
drhf922ca42015-05-14 15:39:18 +000010493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
drh8b727472009-01-19 18:18:40 +000010494$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010495if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000010496 SQLITE_THREADSAFE=0
drhf922ca42015-05-14 15:39:18 +000010497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010498$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010499else
drh5a3032b2007-09-03 16:12:09 +000010500 SQLITE_THREADSAFE=1
drhf922ca42015-05-14 15:39:18 +000010501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010502$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010503fi
10504
a.rottmann964dbb12004-02-26 19:47:42 +000010505
drh5a3032b2007-09-03 16:12:09 +000010506if test "$SQLITE_THREADSAFE" = "1"; then
drhf922ca42015-05-14 15:39:18 +000010507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
drh8b727472009-01-19 18:18:40 +000010508$as_echo_n "checking for library containing pthread_create... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010509if ${ac_cv_search_pthread_create+:} false; then :
drh8b727472009-01-19 18:18:40 +000010510 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000010511else
mlcreechc658b0f2008-03-09 02:20:11 +000010512 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000010513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dougcurrie65623c72004-09-20 14:57:23 +000010514/* end confdefs.h. */
10515
drh8b727472009-01-19 18:18:40 +000010516/* Override any GCC internal prototype to avoid an error.
10517 Use char because int might match the return type of a GCC
10518 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000010519#ifdef __cplusplus
10520extern "C"
10521#endif
dougcurrie65623c72004-09-20 14:57:23 +000010522char pthread_create ();
10523int
10524main ()
10525{
drh8b727472009-01-19 18:18:40 +000010526return pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000010527 ;
10528 return 0;
10529}
10530_ACEOF
drh8b727472009-01-19 18:18:40 +000010531for ac_lib in '' pthread; do
10532 if test -z "$ac_lib"; then
10533 ac_res="none required"
10534 else
10535 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010536 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010537 fi
drhf922ca42015-05-14 15:39:18 +000010538 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010539 ac_cv_search_pthread_create=$ac_res
mlcreechc658b0f2008-03-09 02:20:11 +000010540fi
drhf922ca42015-05-14 15:39:18 +000010541rm -f core conftest.err conftest.$ac_objext \
10542 conftest$ac_exeext
10543 if ${ac_cv_search_pthread_create+:} false; then :
drh8b727472009-01-19 18:18:40 +000010544 break
drh866108f2008-05-13 00:57:21 +000010545fi
drh8b727472009-01-19 18:18:40 +000010546done
drhf922ca42015-05-14 15:39:18 +000010547if ${ac_cv_search_pthread_create+:} false; then :
10548
drh8b727472009-01-19 18:18:40 +000010549else
10550 ac_cv_search_pthread_create=no
10551fi
10552rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000010553LIBS=$ac_func_search_save_LIBS
10554fi
drhf922ca42015-05-14 15:39:18 +000010555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
drh8b727472009-01-19 18:18:40 +000010556$as_echo "$ac_cv_search_pthread_create" >&6; }
10557ac_res=$ac_cv_search_pthread_create
drhf922ca42015-05-14 15:39:18 +000010558if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010559 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000010560
dougcurrie65623c72004-09-20 14:57:23 +000010561fi
10562
mlcreechc658b0f2008-03-09 02:20:11 +000010563fi
dougcurrie65623c72004-09-20 14:57:23 +000010564
xdong28f79f72003-09-23 00:35:21 +000010565##########
10566# Do we want to support release
10567#
drh8b727472009-01-19 18:18:40 +000010568# Check whether --enable-releasemode was given.
drhf922ca42015-05-14 15:39:18 +000010569if test "${enable_releasemode+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010570 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000010571else
10572 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000010573fi
10574
drhf922ca42015-05-14 15:39:18 +000010575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
drh8b727472009-01-19 18:18:40 +000010576$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000010577if test "$enable_releasemode" = "no"; then
10578 ALLOWRELEASE=""
drhf922ca42015-05-14 15:39:18 +000010579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010580$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010581else
drh0b47d342007-11-27 14:50:06 +000010582 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drhf922ca42015-05-14 15:39:18 +000010583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010584$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010585fi
paulb0208cc2003-04-13 18:26:49 +000010586
a.rottmann964dbb12004-02-26 19:47:42 +000010587
paulb0208cc2003-04-13 18:26:49 +000010588##########
10589# Do we want temporary databases in memory
10590#
drh8b727472009-01-19 18:18:40 +000010591# Check whether --enable-tempstore was given.
drhf922ca42015-05-14 15:39:18 +000010592if test "${enable_tempstore+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010593 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000010594else
drh54414bb2005-10-10 00:05:50 +000010595 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000010596fi
10597
drhf922ca42015-05-14 15:39:18 +000010598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
drh8b727472009-01-19 18:18:40 +000010599$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010600case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000010601 never )
paul2dc96f92003-04-20 11:46:34 +000010602 TEMP_STORE=0
drhf922ca42015-05-14 15:39:18 +000010603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
drh8b727472009-01-19 18:18:40 +000010604$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010605 ;;
10606 no )
paul2dc96f92003-04-20 11:46:34 +000010607 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010609$as_echo "no" >&6; }
10610 ;;
10611 yes )
10612 TEMP_STORE=2
drhf922ca42015-05-14 15:39:18 +000010613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010614$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010615 ;;
10616 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000010617 TEMP_STORE=3
drhf922ca42015-05-14 15:39:18 +000010618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
drh8b727472009-01-19 18:18:40 +000010619$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000010620 ;;
paulb0208cc2003-04-13 18:26:49 +000010621 * )
drh54414bb2005-10-10 00:05:50 +000010622 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010624$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010625 ;;
10626esac
10627
10628
10629
drh75897232000-05-29 14:26:00 +000010630###########
10631# Lots of things are different if we are compiling for Windows using
10632# the CYGWIN environment. So check for that special case and handle
10633# things accordingly.
10634#
drhf922ca42015-05-14 15:39:18 +000010635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
drh8b727472009-01-19 18:18:40 +000010636$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000010637if test "$config_BUILD_EXEEXT" = ".exe"; then
10638 CYGWIN=yes
drhf922ca42015-05-14 15:39:18 +000010639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010640$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000010641else
drhf922ca42015-05-14 15:39:18 +000010642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
drh8b727472009-01-19 18:18:40 +000010643$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000010644fi
10645if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000010646
10647case $host_os in
drh71eb93e2001-09-28 01:34:43 +000010648 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000010649 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000010650esac
drh75897232000-05-29 14:26:00 +000010651
drh75897232000-05-29 14:26:00 +000010652fi
10653if test "$CYGWIN" = "yes"; then
10654 BUILD_EXEEXT=.exe
10655else
dougcurrie6194a5f2003-12-19 20:09:51 +000010656 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000010657fi
vapier7f19c022007-02-17 14:46:31 +000010658if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000010659 TARGET_EXEEXT=$BUILD_EXEEXT
10660else
10661 TARGET_EXEEXT=$config_TARGET_EXEEXT
10662fi
10663if test "$TARGET_EXEEXT" = ".exe"; then
mistachkinfe27b082013-08-28 18:06:26 +000010664 SQLITE_OS_UNIX=0
10665 SQLITE_OS_WIN=1
10666 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh75897232000-05-29 14:26:00 +000010667else
danielk197729bafea2008-06-26 10:41:19 +000010668 SQLITE_OS_UNIX=1
10669 SQLITE_OS_WIN=0
danielk197729bafea2008-06-26 10:41:19 +000010670 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000010671fi
drh75897232000-05-29 14:26:00 +000010672
a.rottmann84e63352003-03-24 09:42:16 +000010673
10674
10675
10676
10677
drh75897232000-05-29 14:26:00 +000010678##########
drh7b5717e2004-11-25 13:50:01 +000010679# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000010680#
drh7b5717e2004-11-25 13:50:01 +000010681# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10682# macros in the in the tcl.m4 file of the standard TCL distribution.
10683# Those macros could not be used directly since we have to make some
10684# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000010685#
drh8b727472009-01-19 18:18:40 +000010686# Check whether --enable-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010687if test "${enable_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010688 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000010689else
drh7b5717e2004-11-25 13:50:01 +000010690 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000010691fi
10692
drh7b5717e2004-11-25 13:50:01 +000010693if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000010694
drh8b727472009-01-19 18:18:40 +000010695# Check whether --with-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010696if test "${with_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010697 withval=$with_tcl; with_tclconfig=${withval}
10698fi
10699
drhf922ca42015-05-14 15:39:18 +000010700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
drh8b727472009-01-19 18:18:40 +000010701$as_echo_n "checking for Tcl configuration... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010702 if ${ac_cv_c_tclconfig+:} false; then :
drh8b727472009-01-19 18:18:40 +000010703 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010704else
a.rottmann84e63352003-03-24 09:42:16 +000010705
drh7b5717e2004-11-25 13:50:01 +000010706 # First check to see if --with-tcl was specified.
10707 if test x"${with_tclconfig}" != x ; then
10708 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10709 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10710 else
drhf922ca42015-05-14 15:39:18 +000010711 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
drh7b5717e2004-11-25 13:50:01 +000010712 fi
10713 fi
vapier6acb2cf2009-01-28 04:46:28 +000010714
10715 # Start autosearch by asking tclsh
drhe74f4652012-08-15 16:06:54 +000010716 if test x"${ac_cv_c_tclconfig}" = x ; then
10717 if test x"$cross_compiling" = xno; then
10718 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10719 do
10720 if test -f "$i/tclConfig.sh" ; then
10721 ac_cv_c_tclconfig="$i"
10722 break
10723 fi
10724 done
10725 fi
vapier6acb2cf2009-01-28 04:46:28 +000010726 fi
10727
drhf960a642015-05-30 22:57:49 +000010728 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10729 # So try again after applying corrections.
10730 if test x"${ac_cv_c_tclconfig}" = x ; then
10731 if test x"$cross_compiling" = xno; then
10732 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10733 do
10734 if test -f "$i/tclConfig.sh" ; then
10735 ac_cv_c_tclconfig="$i"
10736 break
10737 fi
10738 done
10739 fi
10740 fi
10741
drh7b5717e2004-11-25 13:50:01 +000010742 # then check for a private Tcl installation
10743 if test x"${ac_cv_c_tclconfig}" = x ; then
10744 for i in \
10745 ../tcl \
10746 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10747 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10748 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10749 ../../tcl \
10750 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10751 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10752 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10753 ../../../tcl \
10754 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10755 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10756 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10757 do
10758 if test -f "$i/unix/tclConfig.sh" ; then
10759 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10760 break
10761 fi
10762 done
10763 fi
10764
10765 # check in a few common install locations
10766 if test x"${ac_cv_c_tclconfig}" = x ; then
10767 for i in \
10768 `ls -d ${libdir} 2>/dev/null` \
10769 `ls -d /usr/local/lib 2>/dev/null` \
10770 `ls -d /usr/contrib/lib 2>/dev/null` \
10771 `ls -d /usr/lib 2>/dev/null`
10772 do
10773 if test -f "$i/tclConfig.sh" ; then
10774 ac_cv_c_tclconfig=`(cd $i; pwd)`
10775 break
10776 fi
10777 done
10778 fi
10779
10780 # check in a few other private locations
10781 if test x"${ac_cv_c_tclconfig}" = x ; then
10782 for i in \
10783 ${srcdir}/../tcl \
10784 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10785 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10786 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10787 do
10788 if test -f "$i/unix/tclConfig.sh" ; then
10789 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10790 break
10791 fi
10792 done
10793 fi
10794
drh75897232000-05-29 14:26:00 +000010795fi
10796
drh7b5717e2004-11-25 13:50:01 +000010797
10798 if test x"${ac_cv_c_tclconfig}" = x ; then
10799 use_tcl=no
drhf922ca42015-05-14 15:39:18 +000010800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
drh8b727472009-01-19 18:18:40 +000010801$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
drhf922ca42015-05-14 15:39:18 +000010802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
drh8b727472009-01-19 18:18:40 +000010803$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
drhf922ca42015-05-14 15:39:18 +000010804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
drh8b727472009-01-19 18:18:40 +000010805$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000010806 else
10807 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drhf922ca42015-05-14 15:39:18 +000010808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010809$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010810
drhf922ca42015-05-14 15:39:18 +000010811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010812$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000010813 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drhf922ca42015-05-14 15:39:18 +000010814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
drh8b727472009-01-19 18:18:40 +000010815$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010816 . $TCL_BIN_DIR/tclConfig.sh
10817 else
drhf922ca42015-05-14 15:39:18 +000010818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
drh8b727472009-01-19 18:18:40 +000010819$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000010820 fi
drh7b5717e2004-11-25 13:50:01 +000010821
10822 #
10823 # If the TCL_BIN_DIR is the build directory (not the install directory),
10824 # then set the common variable name to the value of the build variables.
10825 # For example, the variable TCL_LIB_SPEC will be set to the value
10826 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10827 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10828 # installed and uninstalled version of Tcl.
10829 #
10830
mlcreechab1c47b2008-03-09 02:51:10 +000010831 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000010832 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10833 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10834 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10835 fi
10836
10837 #
10838 # eval is required to do the TCL_DBGX substitution
10839 #
10840
10841 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10842 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10843 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10844
10845 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10846 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10847 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
drhd881ce82015-03-31 17:01:52 +000010861
drh7b5717e2004-11-25 13:50:01 +000010862 fi
drh75897232000-05-29 14:26:00 +000010863fi
drh7b5717e2004-11-25 13:50:01 +000010864if test "${use_tcl}" = "no" ; then
10865 HAVE_TCL=""
10866else
10867 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000010868fi
drh75897232000-05-29 14:26:00 +000010869
a.rottmann84e63352003-03-24 09:42:16 +000010870
drh75897232000-05-29 14:26:00 +000010871##########
10872# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000010873# that use "readline()" library.
10874#
vapier7f19c022007-02-17 14:46:31 +000010875TARGET_READLINE_LIBS=""
10876TARGET_READLINE_INC=""
10877TARGET_HAVE_READLINE=0
drh8b727472009-01-19 18:18:40 +000010878# Check whether --enable-readline was given.
drhf922ca42015-05-14 15:39:18 +000010879if test "${enable_readline+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010880 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000010881else
vapier7f19c022007-02-17 14:46:31 +000010882 with_readline=auto
drh8b727472009-01-19 18:18:40 +000010883fi
10884
vapier7f19c022007-02-17 14:46:31 +000010885
10886if test x"$with_readline" != xno; then
10887 found="yes"
10888
10889
drh8b727472009-01-19 18:18:40 +000010890# Check whether --with-readline-lib was given.
drhf922ca42015-05-14 15:39:18 +000010891if test "${with_readline_lib+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010892 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000010893else
10894 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000010895fi
10896
vapier7f19c022007-02-17 14:46:31 +000010897 if test "x$with_readline_lib" = xauto; then
10898 save_LIBS="$LIBS"
10899 LIBS=""
drhf922ca42015-05-14 15:39:18 +000010900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
drh8b727472009-01-19 18:18:40 +000010901$as_echo_n "checking for library containing tgetent... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010902if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000010903 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000010904else
drh71eb93e2001-09-28 01:34:43 +000010905 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000010906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000010907/* end confdefs.h. */
10908
drh8b727472009-01-19 18:18:40 +000010909/* Override any GCC internal prototype to avoid an error.
10910 Use char because int might match the return type of a GCC
10911 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000010912#ifdef __cplusplus
10913extern "C"
10914#endif
paul38372372003-04-22 08:04:49 +000010915char tgetent ();
10916int
10917main ()
10918{
drh8b727472009-01-19 18:18:40 +000010919return tgetent ();
paul38372372003-04-22 08:04:49 +000010920 ;
10921 return 0;
10922}
10923_ACEOF
drh8b727472009-01-19 18:18:40 +000010924for ac_lib in '' readline ncurses curses termcap; do
10925 if test -z "$ac_lib"; then
10926 ac_res="none required"
10927 else
10928 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010930 fi
drhf922ca42015-05-14 15:39:18 +000010931 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010932 ac_cv_search_tgetent=$ac_res
mlcreech94984912008-03-04 19:03:08 +000010933fi
drhf922ca42015-05-14 15:39:18 +000010934rm -f core conftest.err conftest.$ac_objext \
10935 conftest$ac_exeext
10936 if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000010937 break
drh866108f2008-05-13 00:57:21 +000010938fi
drh8b727472009-01-19 18:18:40 +000010939done
drhf922ca42015-05-14 15:39:18 +000010940if ${ac_cv_search_tgetent+:} false; then :
10941
drh8b727472009-01-19 18:18:40 +000010942else
10943 ac_cv_search_tgetent=no
10944fi
10945rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000010946LIBS=$ac_func_search_save_LIBS
10947fi
drhf922ca42015-05-14 15:39:18 +000010948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
drh8b727472009-01-19 18:18:40 +000010949$as_echo "$ac_cv_search_tgetent" >&6; }
10950ac_res=$ac_cv_search_tgetent
drhf922ca42015-05-14 15:39:18 +000010951if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010952 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000010953 term_LIBS="$LIBS"
10954else
10955 term_LIBS=""
paul38372372003-04-22 08:04:49 +000010956fi
10957
drhf922ca42015-05-14 15:39:18 +000010958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
drh8b727472009-01-19 18:18:40 +000010959$as_echo_n "checking for readline in -lreadline... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010960if ${ac_cv_lib_readline_readline+:} false; then :
drh8b727472009-01-19 18:18:40 +000010961 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000010962else
10963 ac_check_lib_save_LIBS=$LIBS
10964LIBS="-lreadline $LIBS"
drhf922ca42015-05-14 15:39:18 +000010965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000010966/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000010967
drh8b727472009-01-19 18:18:40 +000010968/* Override any GCC internal prototype to avoid an error.
10969 Use char because int might match the return type of a GCC
10970 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000010971#ifdef __cplusplus
10972extern "C"
10973#endif
drh71eb93e2001-09-28 01:34:43 +000010974char readline ();
10975int
10976main ()
10977{
drh8b727472009-01-19 18:18:40 +000010978return readline ();
drh71eb93e2001-09-28 01:34:43 +000010979 ;
10980 return 0;
10981}
10982_ACEOF
drhf922ca42015-05-14 15:39:18 +000010983if ac_fn_c_try_link "$LINENO"; then :
paul38372372003-04-22 08:04:49 +000010984 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000010985else
drhf922ca42015-05-14 15:39:18 +000010986 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000010987fi
drhf922ca42015-05-14 15:39:18 +000010988rm -f core conftest.err conftest.$ac_objext \
10989 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000010990LIBS=$ac_check_lib_save_LIBS
10991fi
drhf922ca42015-05-14 15:39:18 +000010992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
drh8b727472009-01-19 18:18:40 +000010993$as_echo "$ac_cv_lib_readline_readline" >&6; }
drhf922ca42015-05-14 15:39:18 +000010994if test "x$ac_cv_lib_readline_readline" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000010995 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000010996else
vapier7f19c022007-02-17 14:46:31 +000010997 found="no"
10998fi
drhf1878b42006-01-23 18:06:52 +000010999
vapier7f19c022007-02-17 14:46:31 +000011000 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11001 LIBS="$save_LIBS"
11002 else
11003 TARGET_READLINE_LIBS="$with_readline_lib"
11004 fi
11005
11006
drh8b727472009-01-19 18:18:40 +000011007# Check whether --with-readline-inc was given.
drhf922ca42015-05-14 15:39:18 +000011008if test "${with_readline_inc+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011009 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000011010else
vapier7f19c022007-02-17 14:46:31 +000011011 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000011012fi
11013
vapier7f19c022007-02-17 14:46:31 +000011014 if test "x$with_readline_inc" = xauto; then
drhf922ca42015-05-14 15:39:18 +000011015 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11016if test "x$ac_cv_header_readline_h" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011017 found="yes"
11018else
drh75897232000-05-29 14:26:00 +000011019
vapier7f19c022007-02-17 14:46:31 +000011020 found="no"
11021 if test "$cross_compiling" != yes; then
11022 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11023 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000011024 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
drhf922ca42015-05-14 15:39:18 +000011025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
drh8b727472009-01-19 18:18:40 +000011026$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011027if eval \${$as_ac_File+:} false; then :
drh8b727472009-01-19 18:18:40 +000011028 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011029else
11030 test "$cross_compiling" = yes &&
drhf922ca42015-05-14 15:39:18 +000011031 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
vapier7f19c022007-02-17 14:46:31 +000011032if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000011033 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000011034else
drh71eb93e2001-09-28 01:34:43 +000011035 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000011036fi
11037fi
drhf922ca42015-05-14 15:39:18 +000011038eval ac_res=\$$as_ac_File
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
drh8b727472009-01-19 18:18:40 +000011040$as_echo "$ac_res" >&6; }
drhf922ca42015-05-14 15:39:18 +000011041if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
drh75897232000-05-29 14:26:00 +000011042 found=yes
drh75897232000-05-29 14:26:00 +000011043fi
11044
vapier7f19c022007-02-17 14:46:31 +000011045 if test "$found" = "yes"; then
11046 TARGET_READLINE_INC="-I$dir/$subdir"
11047 break
11048 fi
11049 done
11050 test "$found" = "yes" && break
11051 done
11052 fi
11053
11054fi
11055
11056
11057 else
11058 TARGET_READLINE_INC="$with_readline_inc"
11059 fi
11060
11061 if test x"$found" = xno; then
11062 TARGET_READLINE_LIBS=""
11063 TARGET_READLINE_INC=""
11064 TARGET_HAVE_READLINE=0
11065 else
11066 TARGET_HAVE_READLINE=1
11067 fi
11068fi
11069
11070
11071
11072
11073
11074##########
11075# Figure out what C libraries are required to compile programs
11076# that use "fdatasync()" function.
11077#
drhf922ca42015-05-14 15:39:18 +000011078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011079$as_echo_n "checking for library containing fdatasync... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011080if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011081 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011082else
vapier7f19c022007-02-17 14:46:31 +000011083 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011085/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011086
drh8b727472009-01-19 18:18:40 +000011087/* Override any GCC internal prototype to avoid an error.
11088 Use char because int might match the return type of a GCC
11089 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000011090#ifdef __cplusplus
11091extern "C"
11092#endif
11093char fdatasync ();
11094int
11095main ()
11096{
drh8b727472009-01-19 18:18:40 +000011097return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000011098 ;
11099 return 0;
11100}
11101_ACEOF
drh8b727472009-01-19 18:18:40 +000011102for ac_lib in '' rt; do
11103 if test -z "$ac_lib"; then
11104 ac_res="none required"
11105 else
11106 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011108 fi
drhf922ca42015-05-14 15:39:18 +000011109 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011110 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011111fi
drhf922ca42015-05-14 15:39:18 +000011112rm -f core conftest.err conftest.$ac_objext \
11113 conftest$ac_exeext
11114 if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011115 break
drh866108f2008-05-13 00:57:21 +000011116fi
drh8b727472009-01-19 18:18:40 +000011117done
drhf922ca42015-05-14 15:39:18 +000011118if ${ac_cv_search_fdatasync+:} false; then :
11119
drh8b727472009-01-19 18:18:40 +000011120else
11121 ac_cv_search_fdatasync=no
11122fi
11123rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011124LIBS=$ac_func_search_save_LIBS
11125fi
drhf922ca42015-05-14 15:39:18 +000011126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011127$as_echo "$ac_cv_search_fdatasync" >&6; }
11128ac_res=$ac_cv_search_fdatasync
drhf922ca42015-05-14 15:39:18 +000011129if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011130 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000011131
vapier7f19c022007-02-17 14:46:31 +000011132fi
11133
a.rottmann84e63352003-03-24 09:42:16 +000011134
drh75897232000-05-29 14:26:00 +000011135#########
tpoindex9d9f76c2005-01-03 21:28:56 +000011136# check for debug enabled
drh8b727472009-01-19 18:18:40 +000011137# Check whether --enable-debug was given.
drhf922ca42015-05-14 15:39:18 +000011138if test "${enable_debug+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011139 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000011140else
11141 use_debug=no
drh8b727472009-01-19 18:18:40 +000011142fi
11143
tpoindex9d9f76c2005-01-03 21:28:56 +000011144if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000011145 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000011146else
11147 TARGET_DEBUG="-DNDEBUG"
11148fi
11149
11150
11151#########
mlcreech94984912008-03-04 19:03:08 +000011152# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000011153# Check whether --enable-amalgamation was given.
drhf922ca42015-05-14 15:39:18 +000011154if test "${enable_amalgamation+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011155 enableval=$enable_amalgamation; use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000011156else
11157 use_amalgamation=yes
drh8b727472009-01-19 18:18:40 +000011158fi
11159
mlcreechf3868112008-03-11 18:03:30 +000011160if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000011161 USE_AMALGAMATION=0
11162fi
11163
11164
11165#########
mlcreecha4edab02008-03-06 04:14:17 +000011166# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000011167# Check whether --enable-load-extension was given.
drhf922ca42015-05-14 15:39:18 +000011168if test "${enable_load_extension+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011169 enableval=$enable_load_extension; use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000011170else
drh05c7e0b2015-01-10 14:27:17 +000011171 use_loadextension=yes
drh8b727472009-01-19 18:18:40 +000011172fi
11173
mlcreecha4edab02008-03-06 04:14:17 +000011174if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000011175 OPT_FEATURE_FLAGS=""
drhf922ca42015-05-14 15:39:18 +000011176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011177$as_echo_n "checking for library containing dlopen... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011178if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011179 $as_echo_n "(cached) " >&6
11180else
11181 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drhdbe4b882011-06-20 18:00:17 +000011183/* end confdefs.h. */
11184
11185/* Override any GCC internal prototype to avoid an error.
11186 Use char because int might match the return type of a GCC
11187 builtin and then its argument prototype would still apply. */
11188#ifdef __cplusplus
11189extern "C"
11190#endif
11191char dlopen ();
11192int
11193main ()
11194{
11195return dlopen ();
11196 ;
11197 return 0;
11198}
11199_ACEOF
11200for ac_lib in '' dl; do
11201 if test -z "$ac_lib"; then
11202 ac_res="none required"
11203 else
11204 ac_res=-l$ac_lib
11205 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11206 fi
drhf922ca42015-05-14 15:39:18 +000011207 if ac_fn_c_try_link "$LINENO"; then :
drhdbe4b882011-06-20 18:00:17 +000011208 ac_cv_search_dlopen=$ac_res
drhdbe4b882011-06-20 18:00:17 +000011209fi
drhf922ca42015-05-14 15:39:18 +000011210rm -f core conftest.err conftest.$ac_objext \
11211 conftest$ac_exeext
11212 if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011213 break
11214fi
11215done
drhf922ca42015-05-14 15:39:18 +000011216if ${ac_cv_search_dlopen+:} false; then :
11217
drhdbe4b882011-06-20 18:00:17 +000011218else
11219 ac_cv_search_dlopen=no
11220fi
11221rm conftest.$ac_ext
11222LIBS=$ac_func_search_save_LIBS
11223fi
drhf922ca42015-05-14 15:39:18 +000011224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011225$as_echo "$ac_cv_search_dlopen" >&6; }
11226ac_res=$ac_cv_search_dlopen
drhf922ca42015-05-14 15:39:18 +000011227if test "$ac_res" != no; then :
drhdbe4b882011-06-20 18:00:17 +000011228 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11229
11230fi
11231
mlcreecha4edab02008-03-06 04:14:17 +000011232else
shanefbedede2008-07-22 05:05:01 +000011233 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000011234fi
11235
mlcreechaac7b932008-04-01 02:45:22 +000011236#########
drhce1d9f52015-10-09 12:48:33 +000011237# See whether we should enable Full Text Search extensions
11238# Check whether --enable-fts3 was given.
11239if test "${enable_fts3+set}" = set; then :
11240 enableval=$enable_fts3; enable_fts3=yes
11241else
11242 enable_fts3=no
11243fi
11244
11245if test "${enable_fts3}" = "yes" ; then
11246 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS3"
11247fi
11248# Check whether --enable-fts4 was given.
11249if test "${enable_fts4+set}" = set; then :
11250 enableval=$enable_fts4; enable_fts4=yes
11251else
11252 enable_fts4=no
11253fi
11254
11255if test "${enable_fts4}" = "yes" ; then
11256 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS4"
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11258$as_echo_n "checking for library containing log... " >&6; }
11259if ${ac_cv_search_log+:} false; then :
11260 $as_echo_n "(cached) " >&6
11261else
11262 ac_func_search_save_LIBS=$LIBS
11263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264/* end confdefs.h. */
11265
11266/* Override any GCC internal prototype to avoid an error.
11267 Use char because int might match the return type of a GCC
11268 builtin and then its argument prototype would still apply. */
11269#ifdef __cplusplus
11270extern "C"
11271#endif
11272char log ();
11273int
11274main ()
11275{
11276return log ();
11277 ;
11278 return 0;
11279}
11280_ACEOF
11281for ac_lib in '' m; do
11282 if test -z "$ac_lib"; then
11283 ac_res="none required"
11284 else
11285 ac_res=-l$ac_lib
11286 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11287 fi
11288 if ac_fn_c_try_link "$LINENO"; then :
11289 ac_cv_search_log=$ac_res
11290fi
11291rm -f core conftest.err conftest.$ac_objext \
11292 conftest$ac_exeext
11293 if ${ac_cv_search_log+:} false; then :
11294 break
11295fi
11296done
11297if ${ac_cv_search_log+:} false; then :
11298
11299else
11300 ac_cv_search_log=no
11301fi
11302rm conftest.$ac_ext
11303LIBS=$ac_func_search_save_LIBS
11304fi
11305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11306$as_echo "$ac_cv_search_log" >&6; }
11307ac_res=$ac_cv_search_log
11308if test "$ac_res" != no; then :
11309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11310
11311fi
11312
11313fi
11314# Check whether --enable-fts5 was given.
11315if test "${enable_fts5+set}" = set; then :
11316 enableval=$enable_fts5; enable_fts5=yes
11317else
11318 enable_fts5=no
11319fi
11320
11321if test "${enable_fts5}" = "yes" ; then
11322 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS5"
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11324$as_echo_n "checking for library containing log... " >&6; }
11325if ${ac_cv_search_log+:} false; then :
11326 $as_echo_n "(cached) " >&6
11327else
11328 ac_func_search_save_LIBS=$LIBS
11329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11330/* end confdefs.h. */
11331
11332/* Override any GCC internal prototype to avoid an error.
11333 Use char because int might match the return type of a GCC
11334 builtin and then its argument prototype would still apply. */
11335#ifdef __cplusplus
11336extern "C"
11337#endif
11338char log ();
11339int
11340main ()
11341{
11342return log ();
11343 ;
11344 return 0;
11345}
11346_ACEOF
11347for ac_lib in '' m; do
11348 if test -z "$ac_lib"; then
11349 ac_res="none required"
11350 else
11351 ac_res=-l$ac_lib
11352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11353 fi
11354 if ac_fn_c_try_link "$LINENO"; then :
11355 ac_cv_search_log=$ac_res
11356fi
11357rm -f core conftest.err conftest.$ac_objext \
11358 conftest$ac_exeext
11359 if ${ac_cv_search_log+:} false; then :
11360 break
11361fi
11362done
11363if ${ac_cv_search_log+:} false; then :
11364
11365else
11366 ac_cv_search_log=no
11367fi
11368rm conftest.$ac_ext
11369LIBS=$ac_func_search_save_LIBS
11370fi
11371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11372$as_echo "$ac_cv_search_log" >&6; }
11373ac_res=$ac_cv_search_log
11374if test "$ac_res" != no; then :
11375 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11376
11377fi
11378
11379fi
11380
11381#########
11382# See whether we should enable JSON1
11383# Check whether --enable-json1 was given.
11384if test "${enable_json1+set}" = set; then :
11385 enableval=$enable_json1; enable_json1=yes
11386else
11387 enable_json1=no
11388fi
11389
11390if test "${enable_json1}" = "yes" ; then
11391 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_JSON1"
11392fi
11393
11394#########
11395# See whether we should enable RTREE
11396# Check whether --enable-rtree was given.
11397if test "${enable_rtree+set}" = set; then :
11398 enableval=$enable_rtree; enable_rtree=yes
11399else
11400 enable_rtree=no
11401fi
11402
11403if test "${enable_rtree}" = "yes" ; then
11404 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_RTREE"
11405fi
11406
11407#########
shaneb1cd7302008-10-22 18:27:31 +000011408# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011409for option in $CFLAGS $CPPFLAGS
11410do
11411 case $option in
danielk197733a14782008-08-04 14:50:05 +000011412 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000011413 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011414 esac
11415done
11416
11417
danielk197733a14782008-08-04 14:50:05 +000011418
shaneb1cd7302008-10-22 18:27:31 +000011419# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011420ac_temp_CFLAGS=""
11421for option in $CFLAGS
11422do
11423 case $option in
11424 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011425 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011426 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011427 esac
11428done
11429CFLAGS=$ac_temp_CFLAGS
11430
11431
shaneb1cd7302008-10-22 18:27:31 +000011432# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011433ac_temp_CPPFLAGS=""
11434for option in $CPPFLAGS
11435do
11436 case $option in
11437 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011438 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011439 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011440 esac
11441done
11442CPPFLAGS=$ac_temp_CPPFLAGS
11443
danielk197733a14782008-08-04 14:50:05 +000011444
drh8b727472009-01-19 18:18:40 +000011445# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011446ac_temp_BUILD_CFLAGS=""
11447for option in $BUILD_CFLAGS
11448do
11449 case $option in
11450 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011451 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011452 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011453 esac
11454done
11455BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11456
11457
11458#########
11459# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000011460# Check whether --enable-gcov was given.
drhf922ca42015-05-14 15:39:18 +000011461if test "${enable_gcov+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011462 enableval=$enable_gcov; use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000011463else
11464 use_gcov=no
drh8b727472009-01-19 18:18:40 +000011465fi
11466
mlcreechaac7b932008-04-01 02:45:22 +000011467if test "${use_gcov}" = "yes" ; then
11468 USE_GCOV=1
11469else
11470 USE_GCOV=0
11471fi
11472
11473
danielk197733a14782008-08-04 14:50:05 +000011474
drh2dfbbca2000-07-28 14:32:48 +000011475#########
mlcreechb87057f2008-03-06 07:19:20 +000011476# Output the config header
drh8b727472009-01-19 18:18:40 +000011477ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000011478
11479
11480#########
drh75897232000-05-29 14:26:00 +000011481# Generate the output files.
11482#
mlcreechdf59c7c2008-03-06 07:51:15 +000011483
drh8b727472009-01-19 18:18:40 +000011484ac_config_files="$ac_config_files Makefile sqlite3.pc"
11485
drh71eb93e2001-09-28 01:34:43 +000011486cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000011487# This file is a shell script that caches the results of configure
11488# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000011489# scripts and configure runs, see configure's option --config-cache.
11490# It is not useful on other systems. If it contains results you don't
11491# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000011492#
drh71eb93e2001-09-28 01:34:43 +000011493# config.status only pays attention to the cache file if you give it
11494# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000011495#
a.rottmann84e63352003-03-24 09:42:16 +000011496# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000011497# loading this file, other *unset* `ac_cv_foo' will be assigned the
11498# following values.
11499
11500_ACEOF
11501
drh75897232000-05-29 14:26:00 +000011502# The following way of writing the cache mishandles newlines in values,
11503# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000011504# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000011505# Ultrix sh set writes to stderr and can't be redirected directly,
11506# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000011507(
11508 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11509 eval ac_val=\$$ac_var
11510 case $ac_val in #(
11511 *${as_nl}*)
11512 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +000011513 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11514$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +000011515 esac
11516 case $ac_var in #(
11517 _ | IFS | as_nl) ;; #(
11518 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +000011519 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +000011520 esac ;;
11521 esac
11522 done
11523
drh71eb93e2001-09-28 01:34:43 +000011524 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000011525 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11526 *${as_nl}ac_space=\ *)
drhf922ca42015-05-14 15:39:18 +000011527 # `set' does not quote correctly, so add quotes: double-quote
11528 # substitution turns \\\\ into \\, and sed turns \\ into \.
drh71eb93e2001-09-28 01:34:43 +000011529 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000011530 "s/'/'\\\\''/g;
11531 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000011532 ;; #(
drh71eb93e2001-09-28 01:34:43 +000011533 *)
11534 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000011535 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000011536 ;;
drh8b727472009-01-19 18:18:40 +000011537 esac |
11538 sort
11539) |
drh71eb93e2001-09-28 01:34:43 +000011540 sed '
drh8b727472009-01-19 18:18:40 +000011541 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000011542 t clear
drh8b727472009-01-19 18:18:40 +000011543 :clear
drh71eb93e2001-09-28 01:34:43 +000011544 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11545 t end
drh8b727472009-01-19 18:18:40 +000011546 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11547 :end' >>confcache
11548if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11549 if test -w "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +000011550 if test "x$cache_file" != "x/dev/null"; then
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011552$as_echo "$as_me: updating cache $cache_file" >&6;}
drhf922ca42015-05-14 15:39:18 +000011553 if test ! -f "$cache_file" || test -h "$cache_file"; then
11554 cat confcache >"$cache_file"
11555 else
11556 case $cache_file in #(
11557 */* | ?:*)
11558 mv -f confcache "$cache_file"$$ &&
11559 mv -f "$cache_file"$$ "$cache_file" ;; #(
11560 *)
11561 mv -f confcache "$cache_file" ;;
11562 esac
11563 fi
11564 fi
drh75897232000-05-29 14:26:00 +000011565 else
drhf922ca42015-05-14 15:39:18 +000011566 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011567$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000011568 fi
11569fi
11570rm -f confcache
11571
drh75897232000-05-29 14:26:00 +000011572test "x$prefix" = xNONE && prefix=$ac_default_prefix
11573# Let make expand exec_prefix.
11574test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11575
mlcreechb87057f2008-03-06 07:19:20 +000011576DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000011577
11578ac_libobjs=
11579ac_ltlibobjs=
drhf922ca42015-05-14 15:39:18 +000011580U=
a.rottmann84e63352003-03-24 09:42:16 +000011581for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11582 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000011583 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11584 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11585 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11586 # will be set to the directory where LIBOBJS objects are built.
drhf922ca42015-05-14 15:39:18 +000011587 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11588 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000011589done
11590LIBOBJS=$ac_libobjs
11591
11592LTLIBOBJS=$ac_ltlibobjs
11593
11594
11595
drhf922ca42015-05-14 15:39:18 +000011596: "${CONFIG_STATUS=./config.status}"
drh8b727472009-01-19 18:18:40 +000011597ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000011598ac_clean_files_save=$ac_clean_files
11599ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drhf922ca42015-05-14 15:39:18 +000011600{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000011601$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
drhf922ca42015-05-14 15:39:18 +000011602as_write_fail=0
11603cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011604#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000011605# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000011606# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000011607# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000011608# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000011609
drh71eb93e2001-09-28 01:34:43 +000011610debug=false
a.rottmann84e63352003-03-24 09:42:16 +000011611ac_cs_recheck=false
11612ac_cs_silent=false
drh710658c2012-01-16 13:00:05 +000011613
drhf922ca42015-05-14 15:39:18 +000011614SHELL=\${CONFIG_SHELL-$SHELL}
11615export SHELL
11616_ASEOF
11617cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11618## -------------------- ##
11619## M4sh Initialization. ##
11620## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000011621
drh8b727472009-01-19 18:18:40 +000011622# Be more Bourne compatible
11623DUALCASE=1; export DUALCASE # for MKS sh
drhf922ca42015-05-14 15:39:18 +000011624if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
drh71eb93e2001-09-28 01:34:43 +000011625 emulate sh
11626 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000011627 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000011628 # is contrary to our usage. Disable this feature.
11629 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000011630 setopt NO_GLOB_SUBST
11631else
drhf922ca42015-05-14 15:39:18 +000011632 case `(set -o) 2>/dev/null` in #(
11633 *posix*) :
11634 set -o posix ;; #(
11635 *) :
11636 ;;
drh8b727472009-01-19 18:18:40 +000011637esac
a.rottmann84e63352003-03-24 09:42:16 +000011638fi
drh8b727472009-01-19 18:18:40 +000011639
11640
drh8b727472009-01-19 18:18:40 +000011641as_nl='
11642'
11643export as_nl
11644# Printing a long string crashes Solaris 7 /usr/bin/printf.
11645as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11646as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11647as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drhf922ca42015-05-14 15:39:18 +000011648# Prefer a ksh shell builtin over an external printf program on Solaris,
11649# but without wasting forks for bash or zsh.
11650if test -z "$BASH_VERSION$ZSH_VERSION" \
11651 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11652 as_echo='print -r --'
11653 as_echo_n='print -rn --'
11654elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000011655 as_echo='printf %s\n'
11656 as_echo_n='printf %s'
11657else
11658 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11659 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11660 as_echo_n='/usr/ucb/echo -n'
11661 else
11662 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11663 as_echo_n_body='eval
11664 arg=$1;
drhf922ca42015-05-14 15:39:18 +000011665 case $arg in #(
drh8b727472009-01-19 18:18:40 +000011666 *"$as_nl"*)
11667 expr "X$arg" : "X\\(.*\\)$as_nl";
11668 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11669 esac;
11670 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11671 '
11672 export as_echo_n_body
11673 as_echo_n='sh -c $as_echo_n_body as_echo'
11674 fi
11675 export as_echo_body
11676 as_echo='sh -c $as_echo_body as_echo'
11677fi
11678
11679# The user is always right.
11680if test "${PATH_SEPARATOR+set}" != set; then
11681 PATH_SEPARATOR=:
11682 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11683 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11684 PATH_SEPARATOR=';'
11685 }
11686fi
a.rottmann84e63352003-03-24 09:42:16 +000011687
mlcreech94984912008-03-04 19:03:08 +000011688
drh8b727472009-01-19 18:18:40 +000011689# IFS
11690# We need space, tab and new line, in precisely that order. Quoting is
11691# there to prevent editors from complaining about space-tab.
11692# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11693# splitting by setting IFS to empty value.)
11694IFS=" "" $as_nl"
11695
11696# Find who we are. Look in the path if we contain no directory separator.
drhf922ca42015-05-14 15:39:18 +000011697as_myself=
11698case $0 in #((
drh8b727472009-01-19 18:18:40 +000011699 *[\\/]* ) as_myself=$0 ;;
11700 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701for as_dir in $PATH
11702do
11703 IFS=$as_save_IFS
11704 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000011705 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11706 done
drh8b727472009-01-19 18:18:40 +000011707IFS=$as_save_IFS
11708
11709 ;;
11710esac
11711# We did not find ourselves, most probably we were run as `sh COMMAND'
11712# in which case we are not to be found in the path.
11713if test "x$as_myself" = x; then
11714 as_myself=$0
11715fi
11716if test ! -f "$as_myself"; then
11717 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drhf922ca42015-05-14 15:39:18 +000011718 exit 1
drh8b727472009-01-19 18:18:40 +000011719fi
11720
drhf922ca42015-05-14 15:39:18 +000011721# Unset variables that we do not need and which cause bugs (e.g. in
11722# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11723# suppresses any "Segmentation fault" message there. '((' could
11724# trigger a bug in pdksh 5.2.14.
11725for as_var in BASH_ENV ENV MAIL MAILPATH
11726do eval test x\${$as_var+set} = xset \
11727 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +000011728done
mlcreech94984912008-03-04 19:03:08 +000011729PS1='$ '
11730PS2='> '
11731PS4='+ '
11732
11733# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000011734LC_ALL=C
11735export LC_ALL
11736LANGUAGE=C
11737export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000011738
drhf922ca42015-05-14 15:39:18 +000011739# CDPATH.
11740(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11741
11742
11743# as_fn_error STATUS ERROR [LINENO LOG_FD]
11744# ----------------------------------------
11745# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11746# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11747# script with STATUS, using 1 if that was 0.
11748as_fn_error ()
11749{
11750 as_status=$1; test $as_status -eq 0 && as_status=1
11751 if test "$4"; then
11752 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11753 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11754 fi
11755 $as_echo "$as_me: error: $2" >&2
11756 as_fn_exit $as_status
11757} # as_fn_error
11758
11759
11760# as_fn_set_status STATUS
11761# -----------------------
11762# Set $? to STATUS, without forking.
11763as_fn_set_status ()
11764{
11765 return $1
11766} # as_fn_set_status
11767
11768# as_fn_exit STATUS
11769# -----------------
11770# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11771as_fn_exit ()
11772{
11773 set +e
11774 as_fn_set_status $1
11775 exit $1
11776} # as_fn_exit
11777
11778# as_fn_unset VAR
11779# ---------------
11780# Portably unset VAR.
11781as_fn_unset ()
11782{
11783 { eval $1=; unset $1;}
11784}
11785as_unset=as_fn_unset
11786# as_fn_append VAR VALUE
11787# ----------------------
11788# Append the text in VALUE to the end of the definition contained in VAR. Take
11789# advantage of any shell optimizations that allow amortized linear growth over
11790# repeated appends, instead of the typical quadratic growth present in naive
11791# implementations.
11792if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11793 eval 'as_fn_append ()
11794 {
11795 eval $1+=\$2
11796 }'
11797else
11798 as_fn_append ()
11799 {
11800 eval $1=\$$1\$2
11801 }
11802fi # as_fn_append
11803
11804# as_fn_arith ARG...
11805# ------------------
11806# Perform arithmetic evaluation on the ARGs, and store the result in the
11807# global $as_val. Take advantage of shells that can avoid forks. The arguments
11808# must be portable across $(()) and expr.
11809if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11810 eval 'as_fn_arith ()
11811 {
11812 as_val=$(( $* ))
11813 }'
11814else
11815 as_fn_arith ()
11816 {
11817 as_val=`expr "$@" || test $? -eq 1`
11818 }
11819fi # as_fn_arith
11820
11821
drh8b727472009-01-19 18:18:40 +000011822if expr a : '\(a\)' >/dev/null 2>&1 &&
11823 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000011824 as_expr=expr
11825else
11826 as_expr=false
11827fi
11828
drh8b727472009-01-19 18:18:40 +000011829if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000011830 as_basename=basename
11831else
11832 as_basename=false
11833fi
11834
drhf922ca42015-05-14 15:39:18 +000011835if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11836 as_dirname=dirname
11837else
11838 as_dirname=false
11839fi
mlcreech94984912008-03-04 19:03:08 +000011840
drh8b727472009-01-19 18:18:40 +000011841as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000011842$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11843 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000011844 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11845$as_echo X/"$0" |
11846 sed '/^.*\/\([^/][^/]*\)\/*$/{
11847 s//\1/
11848 q
11849 }
11850 /^X\/\(\/\/\)$/{
11851 s//\1/
11852 q
11853 }
11854 /^X\/\(\/\).*/{
11855 s//\1/
11856 q
11857 }
11858 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000011859
drhf922ca42015-05-14 15:39:18 +000011860# Avoid depending upon Character Ranges.
11861as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11862as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11863as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11864as_cr_digits='0123456789'
11865as_cr_alnum=$as_cr_Letters$as_cr_digits
drh866108f2008-05-13 00:57:21 +000011866
drh8b727472009-01-19 18:18:40 +000011867ECHO_C= ECHO_N= ECHO_T=
drhf922ca42015-05-14 15:39:18 +000011868case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +000011869-n*)
drhf922ca42015-05-14 15:39:18 +000011870 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +000011871 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drhf922ca42015-05-14 15:39:18 +000011872 xy) ECHO_C='\c';;
11873 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11874 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +000011875 esac;;
11876*)
11877 ECHO_N='-n';;
11878esac
drh71eb93e2001-09-28 01:34:43 +000011879
11880rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000011881if test -d conf$$.dir; then
11882 rm -f conf$$.dir/conf$$.file
11883else
11884 rm -f conf$$.dir
11885 mkdir conf$$.dir 2>/dev/null
11886fi
11887if (echo >conf$$.file) 2>/dev/null; then
11888 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000011889 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000011890 # ... but there are two gotchas:
11891 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11892 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
drhf922ca42015-05-14 15:39:18 +000011893 # In both cases, we have to default to `cp -pR'.
drh8b727472009-01-19 18:18:40 +000011894 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drhf922ca42015-05-14 15:39:18 +000011895 as_ln_s='cp -pR'
drh8b727472009-01-19 18:18:40 +000011896 elif ln conf$$.file conf$$ 2>/dev/null; then
11897 as_ln_s=ln
11898 else
drhf922ca42015-05-14 15:39:18 +000011899 as_ln_s='cp -pR'
mlcreech636a9952008-05-05 22:52:56 +000011900 fi
drh71eb93e2001-09-28 01:34:43 +000011901else
drhf922ca42015-05-14 15:39:18 +000011902 as_ln_s='cp -pR'
drh71eb93e2001-09-28 01:34:43 +000011903fi
drh8b727472009-01-19 18:18:40 +000011904rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11905rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000011906
drhf922ca42015-05-14 15:39:18 +000011907
11908# as_fn_mkdir_p
11909# -------------
11910# Create "$as_dir" as a directory, including parents if necessary.
11911as_fn_mkdir_p ()
11912{
11913
11914 case $as_dir in #(
11915 -*) as_dir=./$as_dir;;
11916 esac
11917 test -d "$as_dir" || eval $as_mkdir_p || {
11918 as_dirs=
11919 while :; do
11920 case $as_dir in #(
11921 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11922 *) as_qdir=$as_dir;;
11923 esac
11924 as_dirs="'$as_qdir' $as_dirs"
11925 as_dir=`$as_dirname -- "$as_dir" ||
11926$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11927 X"$as_dir" : 'X\(//\)[^/]' \| \
11928 X"$as_dir" : 'X\(//\)$' \| \
11929 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11930$as_echo X"$as_dir" |
11931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11932 s//\1/
11933 q
11934 }
11935 /^X\(\/\/\)[^/].*/{
11936 s//\1/
11937 q
11938 }
11939 /^X\(\/\/\)$/{
11940 s//\1/
11941 q
11942 }
11943 /^X\(\/\).*/{
11944 s//\1/
11945 q
11946 }
11947 s/.*/./; q'`
11948 test -d "$as_dir" && break
11949 done
11950 test -z "$as_dirs" || eval "mkdir $as_dirs"
11951 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11952
11953
11954} # as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000011955if mkdir -p . 2>/dev/null; then
drhf922ca42015-05-14 15:39:18 +000011956 as_mkdir_p='mkdir -p "$as_dir"'
drh71eb93e2001-09-28 01:34:43 +000011957else
a.rottmann964dbb12004-02-26 19:47:42 +000011958 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000011959 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000011960fi
11961
drhf922ca42015-05-14 15:39:18 +000011962
11963# as_fn_executable_p FILE
11964# -----------------------
11965# Test if FILE is an executable regular file.
11966as_fn_executable_p ()
11967{
11968 test -f "$1" && test -x "$1"
11969} # as_fn_executable_p
11970as_test_x='test -x'
11971as_executable_p=as_fn_executable_p
a.rottmann84e63352003-03-24 09:42:16 +000011972
11973# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000011974as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000011975
11976# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000011977as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000011978
drh71eb93e2001-09-28 01:34:43 +000011979
drh71eb93e2001-09-28 01:34:43 +000011980exec 6>&1
drhf922ca42015-05-14 15:39:18 +000011981## ----------------------------------- ##
11982## Main body of $CONFIG_STATUS script. ##
11983## ----------------------------------- ##
11984_ASEOF
11985test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011986
drhf922ca42015-05-14 15:39:18 +000011987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11988# Save the log message, to keep $0 and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000011989# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000011990# values after options handling.
11991ac_log="
drh3acc85f2015-08-06 12:54:13 +000011992This file was extended by sqlite $as_me 3.8.12, which was
drhf922ca42015-05-14 15:39:18 +000011993generated by GNU Autoconf 2.69. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000011994
11995 CONFIG_FILES = $CONFIG_FILES
11996 CONFIG_HEADERS = $CONFIG_HEADERS
11997 CONFIG_LINKS = $CONFIG_LINKS
11998 CONFIG_COMMANDS = $CONFIG_COMMANDS
11999 $ $0 $@
12000
drh8b727472009-01-19 18:18:40 +000012001on `(hostname || uname -n) 2>/dev/null | sed 1q`
12002"
12003
drh71eb93e2001-09-28 01:34:43 +000012004_ACEOF
12005
drhf922ca42015-05-14 15:39:18 +000012006case $ac_config_files in *"
12007"*) set x $ac_config_files; shift; ac_config_files=$*;;
12008esac
12009
12010case $ac_config_headers in *"
12011"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12012esac
12013
12014
drh8b727472009-01-19 18:18:40 +000012015cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012016# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000012017config_files="$ac_config_files"
12018config_headers="$ac_config_headers"
12019config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000012020
drh8b727472009-01-19 18:18:40 +000012021_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012022
drh8b727472009-01-19 18:18:40 +000012023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012024ac_cs_usage="\
drhf922ca42015-05-14 15:39:18 +000012025\`$as_me' instantiates files and other configuration actions
12026from templates according to the current configuration. Unless the files
12027and actions are specified as TAGs, all are instantiated by default.
drh71eb93e2001-09-28 01:34:43 +000012028
drhf922ca42015-05-14 15:39:18 +000012029Usage: $0 [OPTION]... [TAG]...
drh71eb93e2001-09-28 01:34:43 +000012030
12031 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000012032 -V, --version print version number and configuration settings, then exit
drhf922ca42015-05-14 15:39:18 +000012033 --config print configuration, then exit
12034 -q, --quiet, --silent
12035 do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000012036 -d, --debug don't remove temporary files
12037 --recheck update $as_me by reconfiguring in the same conditions
drhf922ca42015-05-14 15:39:18 +000012038 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012039 instantiate the configuration file FILE
drhf922ca42015-05-14 15:39:18 +000012040 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012041 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000012042
12043Configuration files:
12044$config_files
12045
mlcreechb87057f2008-03-06 07:19:20 +000012046Configuration headers:
12047$config_headers
12048
mlcreech636a9952008-05-05 22:52:56 +000012049Configuration commands:
12050$config_commands
12051
drhf922ca42015-05-14 15:39:18 +000012052Report bugs to the package provider."
drh8b727472009-01-19 18:18:40 +000012053
mlcreech94984912008-03-04 19:03:08 +000012054_ACEOF
drh8b727472009-01-19 18:18:40 +000012055cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012056ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
drh866108f2008-05-13 00:57:21 +000012057ac_cs_version="\\
drh3acc85f2015-08-06 12:54:13 +000012058sqlite config.status 3.8.12
drhf922ca42015-05-14 15:39:18 +000012059configured by $0, generated by GNU Autoconf 2.69,
12060 with options \\"\$ac_cs_config\\"
drh866108f2008-05-13 00:57:21 +000012061
drhf922ca42015-05-14 15:39:18 +000012062Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000012063This config.status script is free software; the Free Software Foundation
12064gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000012065
12066ac_pwd='$ac_pwd'
12067srcdir='$srcdir'
12068INSTALL='$INSTALL'
12069AWK='$AWK'
12070test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000012071_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012072
drh8b727472009-01-19 18:18:40 +000012073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12074# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000012075ac_need_defaults=:
12076while test $# != 0
12077do
12078 case $1 in
drhf922ca42015-05-14 15:39:18 +000012079 --*=?*)
drh8b727472009-01-19 18:18:40 +000012080 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12081 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000012082 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000012083 ;;
drhf922ca42015-05-14 15:39:18 +000012084 --*=)
12085 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12086 ac_optarg=
12087 ac_shift=:
12088 ;;
drh8b727472009-01-19 18:18:40 +000012089 *)
a.rottmann84e63352003-03-24 09:42:16 +000012090 ac_option=$1
12091 ac_optarg=$2
12092 ac_shift=shift
12093 ;;
drh75897232000-05-29 14:26:00 +000012094 esac
12095
a.rottmann84e63352003-03-24 09:42:16 +000012096 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000012097 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000012098 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000012099 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000012100 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12101 $as_echo "$ac_cs_version"; exit ;;
drhf922ca42015-05-14 15:39:18 +000012102 --config | --confi | --conf | --con | --co | --c )
12103 $as_echo "$ac_cs_config"; exit ;;
drh8b727472009-01-19 18:18:40 +000012104 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000012105 debug=: ;;
12106 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000012107 $ac_shift
drh8b727472009-01-19 18:18:40 +000012108 case $ac_optarg in
12109 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
drhf922ca42015-05-14 15:39:18 +000012110 '') as_fn_error $? "missing file argument" ;;
drh8b727472009-01-19 18:18:40 +000012111 esac
drhf922ca42015-05-14 15:39:18 +000012112 as_fn_append CONFIG_FILES " '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000012113 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000012114 --header | --heade | --head | --hea )
12115 $ac_shift
drh8b727472009-01-19 18:18:40 +000012116 case $ac_optarg in
12117 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12118 esac
drhf922ca42015-05-14 15:39:18 +000012119 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000012120 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000012121 --he | --h)
12122 # Conflict between --help and --header
drhf922ca42015-05-14 15:39:18 +000012123 as_fn_error $? "ambiguous option: \`$1'
12124Try \`$0 --help' for more information.";;
drh8b727472009-01-19 18:18:40 +000012125 --help | --hel | -h )
12126 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000012127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12128 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12129 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000012130
drh71eb93e2001-09-28 01:34:43 +000012131 # This is an error.
drhf922ca42015-05-14 15:39:18 +000012132 -*) as_fn_error $? "unrecognized option: \`$1'
12133Try \`$0 --help' for more information." ;;
drh71eb93e2001-09-28 01:34:43 +000012134
drhf922ca42015-05-14 15:39:18 +000012135 *) as_fn_append ac_config_targets " $1"
drh8b727472009-01-19 18:18:40 +000012136 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000012137
12138 esac
12139 shift
12140done
12141
a.rottmann84e63352003-03-24 09:42:16 +000012142ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000012143
a.rottmann84e63352003-03-24 09:42:16 +000012144if $ac_cs_silent; then
12145 exec 6>/dev/null
12146 ac_configure_extra_args="$ac_configure_extra_args --silent"
12147fi
drh71eb93e2001-09-28 01:34:43 +000012148
12149_ACEOF
drh8b727472009-01-19 18:18:40 +000012150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000012151if \$ac_cs_recheck; then
drhf922ca42015-05-14 15:39:18 +000012152 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
drh8b727472009-01-19 18:18:40 +000012153 shift
12154 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12155 CONFIG_SHELL='$SHELL'
12156 export CONFIG_SHELL
12157 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000012158fi
drh71eb93e2001-09-28 01:34:43 +000012159
a.rottmann84e63352003-03-24 09:42:16 +000012160_ACEOF
drh8b727472009-01-19 18:18:40 +000012161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12162exec 5>>config.log
12163{
12164 echo
12165 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12166## Running $as_me. ##
12167_ASBOX
12168 $as_echo "$ac_log"
12169} >&5
a.rottmann84e63352003-03-24 09:42:16 +000012170
drh8b727472009-01-19 18:18:40 +000012171_ACEOF
12172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000012173#
drh8b727472009-01-19 18:18:40 +000012174# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000012175#
12176
12177
12178# The HP-UX ksh and POSIX shell print the target directory to stdout
12179# if CDPATH is set.
12180(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12181
12182sed_quote_subst='$sed_quote_subst'
12183double_quote_subst='$double_quote_subst'
12184delay_variable_subst='$delay_variable_subst'
12185macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12186macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12187enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12188enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12189pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12190enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12191host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12192host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12193host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12194build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12195build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12196build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12197SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12198Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12199GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12200EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12201FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12202LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12203NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12204LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12205max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12206ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12207exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12208lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12209lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12210lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12211reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12212reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000012213OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000012214deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12215file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12216AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12217AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12218STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12219RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12220old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12221old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12222old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12223CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12224CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12225compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12226GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12227lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12228lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12229lt_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"`'
12230lt_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"`'
12231objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12232SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12233ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12234MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12235lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12236lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12237lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12238lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12239lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12240need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12241DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12242NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12243LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12244OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12245OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12246libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12247shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12248extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12249archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12250enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12251export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12252whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12253compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12254old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12255old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12256archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12257archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12258module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12259module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12260with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12261allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12262no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12263hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12264hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12265hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12266hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12267hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12268hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12269hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12270hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12271inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12272link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12273fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12274always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12275export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12276exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12277include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12278prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12279file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12280variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12281need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12282need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12283version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12284runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12285shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12286shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12287libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12288library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12289soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12290postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12291postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12292finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12293finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12294hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12295sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12296sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12297hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12298enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12299enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12300enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12301old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12302striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12303
12304LTCC='$LTCC'
12305LTCFLAGS='$LTCFLAGS'
12306compiler='$compiler_DEFAULT'
12307
12308# Quote evaled strings.
12309for var in SED \
12310GREP \
12311EGREP \
12312FGREP \
12313LD \
12314NM \
12315LN_S \
12316lt_SP2NL \
12317lt_NL2SP \
12318reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000012319OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000012320deplibs_check_method \
12321file_magic_cmd \
12322AR \
12323AR_FLAGS \
12324STRIP \
12325RANLIB \
12326CC \
12327CFLAGS \
12328compiler \
12329lt_cv_sys_global_symbol_pipe \
12330lt_cv_sys_global_symbol_to_cdecl \
12331lt_cv_sys_global_symbol_to_c_name_address \
12332lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12333SHELL \
12334ECHO \
12335lt_prog_compiler_no_builtin_flag \
12336lt_prog_compiler_wl \
12337lt_prog_compiler_pic \
12338lt_prog_compiler_static \
12339lt_cv_prog_compiler_c_o \
12340need_locks \
12341DSYMUTIL \
12342NMEDIT \
12343LIPO \
12344OTOOL \
12345OTOOL64 \
12346shrext_cmds \
12347export_dynamic_flag_spec \
12348whole_archive_flag_spec \
12349compiler_needs_object \
12350with_gnu_ld \
12351allow_undefined_flag \
12352no_undefined_flag \
12353hardcode_libdir_flag_spec \
12354hardcode_libdir_flag_spec_ld \
12355hardcode_libdir_separator \
12356fix_srcfile_path \
12357exclude_expsyms \
12358include_expsyms \
12359file_list_spec \
12360variables_saved_for_relink \
12361libname_spec \
12362library_names_spec \
12363soname_spec \
12364finish_eval \
12365old_striplib \
12366striplib; do
12367 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12368 *[\\\\\\\`\\"\\\$]*)
12369 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12370 ;;
12371 *)
12372 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12373 ;;
12374 esac
12375done
12376
12377# Double-quote double-evaled strings.
12378for var in reload_cmds \
12379old_postinstall_cmds \
12380old_postuninstall_cmds \
12381old_archive_cmds \
12382extract_expsyms_cmds \
12383old_archive_from_new_cmds \
12384old_archive_from_expsyms_cmds \
12385archive_cmds \
12386archive_expsym_cmds \
12387module_cmds \
12388module_expsym_cmds \
12389export_symbols_cmds \
12390prelink_cmds \
12391postinstall_cmds \
12392postuninstall_cmds \
12393finish_cmds \
12394sys_lib_search_path_spec \
12395sys_lib_dlsearch_path_spec; do
12396 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12397 *[\\\\\\\`\\"\\\$]*)
12398 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12399 ;;
12400 *)
12401 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12402 ;;
12403 esac
12404done
12405
12406# Fix-up fallback echo if it was mangled by the above quoting rules.
12407case \$lt_ECHO in
12408*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12409 ;;
12410esac
12411
12412ac_aux_dir='$ac_aux_dir'
12413xsi_shell='$xsi_shell'
12414lt_shell_append='$lt_shell_append'
12415
12416# See if we are running on zsh, and set the options which allow our
12417# commands through without removal of \ escapes INIT.
12418if test -n "\${ZSH_VERSION+set}" ; then
12419 setopt NO_GLOB_SUBST
12420fi
12421
12422
12423 PACKAGE='$PACKAGE'
12424 VERSION='$VERSION'
12425 TIMESTAMP='$TIMESTAMP'
12426 RM='$RM'
12427 ofile='$ofile'
12428
12429
12430
12431
mlcreech94984912008-03-04 19:03:08 +000012432_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012433
drh8b727472009-01-19 18:18:40 +000012434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000012435
drh8b727472009-01-19 18:18:40 +000012436# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000012437for ac_config_target in $ac_config_targets
12438do
drh8b727472009-01-19 18:18:40 +000012439 case $ac_config_target in
12440 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12441 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12442 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12443 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12444
drhf922ca42015-05-14 15:39:18 +000012445 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
drh71eb93e2001-09-28 01:34:43 +000012446 esac
12447done
12448
drh8b727472009-01-19 18:18:40 +000012449
drh71eb93e2001-09-28 01:34:43 +000012450# If the user did not use the arguments to specify the items to instantiate,
12451# then the envvar interface is used. Set only those that are not.
12452# We use the long form for the default assignment because of an extremely
12453# bizarre bug on SunOS 4.1.3.
12454if $ac_need_defaults; then
12455 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000012456 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000012457 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000012458fi
12459
a.rottmann84e63352003-03-24 09:42:16 +000012460# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000012461# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000012462# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000012463# Hook for its removal unless debugging.
12464# Note that there is a small window in which the directory will not be cleaned:
12465# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000012466$debug ||
12467{
drhf922ca42015-05-14 15:39:18 +000012468 tmp= ac_tmp=
drh8b727472009-01-19 18:18:40 +000012469 trap 'exit_status=$?
drhf922ca42015-05-14 15:39:18 +000012470 : "${ac_tmp:=$tmp}"
12471 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
drh8b727472009-01-19 18:18:40 +000012472' 0
drhf922ca42015-05-14 15:39:18 +000012473 trap 'as_fn_exit 1' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000012474}
drh71eb93e2001-09-28 01:34:43 +000012475# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000012476
drh71eb93e2001-09-28 01:34:43 +000012477{
drh8b727472009-01-19 18:18:40 +000012478 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drhf922ca42015-05-14 15:39:18 +000012479 test -d "$tmp"
drh71eb93e2001-09-28 01:34:43 +000012480} ||
12481{
drh8b727472009-01-19 18:18:40 +000012482 tmp=./conf$$-$RANDOM
12483 (umask 077 && mkdir "$tmp")
drhf922ca42015-05-14 15:39:18 +000012484} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12485ac_tmp=$tmp
drh71eb93e2001-09-28 01:34:43 +000012486
drh8b727472009-01-19 18:18:40 +000012487# Set up the scripts for CONFIG_FILES section.
12488# No need to generate them if there are no CONFIG_FILES.
12489# This happens for instance with `./config.status config.h'.
12490if test -n "$CONFIG_FILES"; then
12491
12492
drhf922ca42015-05-14 15:39:18 +000012493ac_cr=`echo X | tr X '\015'`
12494# On cygwin, bash can eat \r inside `` if the user requested igncr.
12495# But we know of no other shell where ac_cr would be empty at this
12496# point, so we can use a bashism as a fallback.
12497if test "x$ac_cr" = x; then
12498 eval ac_cr=\$\'\\r\'
12499fi
drh8b727472009-01-19 18:18:40 +000012500ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12501if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
drh0fe0c462011-09-22 00:56:38 +000012502 ac_cs_awk_cr='\\r'
drh8b727472009-01-19 18:18:40 +000012503else
12504 ac_cs_awk_cr=$ac_cr
12505fi
12506
drhf922ca42015-05-14 15:39:18 +000012507echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000012508_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012509
mlcreech94984912008-03-04 19:03:08 +000012510
drh8b727472009-01-19 18:18:40 +000012511{
12512 echo "cat >conf$$subs.awk <<_ACEOF" &&
12513 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12514 echo "_ACEOF"
12515} >conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012516 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12517ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
drh8b727472009-01-19 18:18:40 +000012518ac_delim='%!_!# '
12519for ac_last_try in false false false false false :; do
12520 . ./conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012521 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012522
drhf922ca42015-05-14 15:39:18 +000012523 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12524 if test $ac_delim_n = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000012525 break
12526 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012527 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012528 else
12529 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000012530 fi
drh8b727472009-01-19 18:18:40 +000012531done
12532rm -f conf$$subs.sh
12533
12534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012535cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012536_ACEOF
12537sed -n '
12538h
12539s/^/S["/; s/!.*/"]=/
12540p
12541g
12542s/^[^!]*!//
12543:repl
12544t repl
12545s/'"$ac_delim"'$//
12546t delim
12547:nl
12548h
drhf922ca42015-05-14 15:39:18 +000012549s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012550t more1
12551s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12552p
12553n
12554b repl
12555:more1
12556s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12557p
12558g
12559s/.\{148\}//
12560t nl
12561:delim
12562h
drhf922ca42015-05-14 15:39:18 +000012563s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012564t more2
12565s/["\\]/\\&/g; s/^/"/; s/$/"/
12566p
12567b
12568:more2
12569s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12570p
12571g
12572s/.\{148\}//
12573t delim
12574' <conf$$subs.awk | sed '
12575/^[^""]/{
12576 N
12577 s/\n//
12578}
12579' >>$CONFIG_STATUS || ac_write_fail=1
12580rm -f conf$$subs.awk
12581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12582_ACAWK
drhf922ca42015-05-14 15:39:18 +000012583cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012584 for (key in S) S_is_set[key] = 1
12585 FS = ""
12586
12587}
12588{
12589 line = $ 0
12590 nfields = split(line, field, "@")
12591 substed = 0
12592 len = length(field[1])
12593 for (i = 2; i < nfields; i++) {
12594 key = field[i]
12595 keylen = length(key)
12596 if (S_is_set[key]) {
12597 value = S[key]
12598 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12599 len += length(value) + length(field[++i])
12600 substed = 1
12601 } else
12602 len += 1 + keylen
12603 }
12604
12605 print line
12606}
12607
12608_ACAWK
12609_ACEOF
12610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12611if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12612 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12613else
12614 cat
drhf922ca42015-05-14 15:39:18 +000012615fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12616 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012617_ACEOF
12618
drhf922ca42015-05-14 15:39:18 +000012619# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12620# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
drh8b727472009-01-19 18:18:40 +000012621# trailing colons and then remove the whole line if VPATH becomes empty
12622# (actually we leave an empty line to preserve line numbers).
12623if test "x$srcdir" = x.; then
drhf922ca42015-05-14 15:39:18 +000012624 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12625h
12626s///
12627s/^/:/
12628s/[ ]*$/:/
12629s/:\$(srcdir):/:/g
12630s/:\${srcdir}:/:/g
12631s/:@srcdir@:/:/g
12632s/^:*//
drh8b727472009-01-19 18:18:40 +000012633s/:*$//
drhf922ca42015-05-14 15:39:18 +000012634x
12635s/\(=[ ]*\).*/\1/
12636G
12637s/\n//
drh8b727472009-01-19 18:18:40 +000012638s/^[^=]*=[ ]*$//
12639}'
12640fi
12641
12642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012643fi # test -n "$CONFIG_FILES"
12644
drh8b727472009-01-19 18:18:40 +000012645# Set up the scripts for CONFIG_HEADERS section.
12646# No need to generate them if there are no CONFIG_HEADERS.
12647# This happens for instance with `./config.status Makefile'.
12648if test -n "$CONFIG_HEADERS"; then
drhf922ca42015-05-14 15:39:18 +000012649cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
drh8b727472009-01-19 18:18:40 +000012650BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000012651_ACEOF
drh8b727472009-01-19 18:18:40 +000012652
12653# Transform confdefs.h into an awk script `defines.awk', embedded as
12654# here-document in config.status, that substitutes the proper values into
12655# config.h.in to produce config.h.
12656
12657# Create a delimiter string that does not exist in confdefs.h, to ease
12658# handling of long lines.
12659ac_delim='%!_!# '
12660for ac_last_try in false false :; do
drhf922ca42015-05-14 15:39:18 +000012661 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12662 if test -z "$ac_tt"; then
drh8b727472009-01-19 18:18:40 +000012663 break
12664 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012665 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012666 else
12667 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12668 fi
12669done
12670
12671# For the awk script, D is an array of macro values keyed by name,
12672# likewise P contains macro parameters if any. Preserve backslash
12673# newline sequences.
12674
12675ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12676sed -n '
12677s/.\{148\}/&'"$ac_delim"'/g
12678t rset
12679:rset
12680s/^[ ]*#[ ]*define[ ][ ]*/ /
12681t def
12682d
12683:def
12684s/\\$//
12685t bsnl
12686s/["\\]/\\&/g
12687s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12688D["\1"]=" \3"/p
12689s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12690d
12691:bsnl
12692s/["\\]/\\&/g
12693s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12694D["\1"]=" \3\\\\\\n"\\/p
12695t cont
12696s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12697t cont
12698d
12699:cont
12700n
12701s/.\{148\}/&'"$ac_delim"'/g
12702t clear
12703:clear
12704s/\\$//
12705t bsnlc
12706s/["\\]/\\&/g; s/^/"/; s/$/"/p
12707d
12708:bsnlc
12709s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12710b cont
12711' <confdefs.h | sed '
12712s/'"$ac_delim"'/"\\\
12713"/g' >>$CONFIG_STATUS || ac_write_fail=1
12714
12715cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12716 for (key in D) D_is_set[key] = 1
12717 FS = ""
12718}
12719/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12720 line = \$ 0
12721 split(line, arg, " ")
12722 if (arg[1] == "#") {
12723 defundef = arg[2]
12724 mac1 = arg[3]
12725 } else {
12726 defundef = substr(arg[1], 2)
12727 mac1 = arg[2]
12728 }
12729 split(mac1, mac2, "(") #)
12730 macro = mac2[1]
drhf922ca42015-05-14 15:39:18 +000012731 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000012732 if (D_is_set[macro]) {
12733 # Preserve the white space surrounding the "#".
drh8b727472009-01-19 18:18:40 +000012734 print prefix "define", macro P[macro] D[macro]
12735 next
12736 } else {
12737 # Replace #undef with comments. This is necessary, for example,
12738 # in the case of _POSIX_SOURCE, which is predefined and required
12739 # on some systems where configure will not decide to define it.
12740 if (defundef == "undef") {
drhf922ca42015-05-14 15:39:18 +000012741 print "/*", prefix defundef, macro, "*/"
drh8b727472009-01-19 18:18:40 +000012742 next
12743 }
12744 }
12745}
12746{ print }
12747_ACAWK
12748_ACEOF
12749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012750 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012751fi # test -n "$CONFIG_HEADERS"
12752
12753
12754eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12755shift
12756for ac_tag
12757do
12758 case $ac_tag in
12759 :[FHLC]) ac_mode=$ac_tag; continue;;
12760 esac
12761 case $ac_mode$ac_tag in
12762 :[FHL]*:*);;
drhf922ca42015-05-14 15:39:18 +000012763 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000012764 :[FH]-) ac_tag=-:-;;
12765 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12766 esac
12767 ac_save_IFS=$IFS
12768 IFS=:
12769 set x $ac_tag
12770 IFS=$ac_save_IFS
12771 shift
12772 ac_file=$1
12773 shift
12774
12775 case $ac_mode in
12776 :L) ac_source=$1;;
12777 :[FH])
12778 ac_file_inputs=
12779 for ac_f
12780 do
12781 case $ac_f in
drhf922ca42015-05-14 15:39:18 +000012782 -) ac_f="$ac_tmp/stdin";;
drh8b727472009-01-19 18:18:40 +000012783 *) # Look for the file first in the build tree, then in the source tree
12784 # (if the path is not absolute). The absolute path cannot be DOS-style,
12785 # because $ac_f cannot contain `:'.
12786 test -f "$ac_f" ||
12787 case $ac_f in
12788 [\\/$]*) false;;
12789 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12790 esac ||
drhf922ca42015-05-14 15:39:18 +000012791 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000012792 esac
12793 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
drhf922ca42015-05-14 15:39:18 +000012794 as_fn_append ac_file_inputs " '$ac_f'"
drh8b727472009-01-19 18:18:40 +000012795 done
12796
12797 # Let's still pretend it is `configure' which instantiates (i.e., don't
12798 # use $as_me), people would be surprised to read:
12799 # /* config.h. Generated by config.status. */
12800 configure_input='Generated from '`
12801 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12802 `' by configure.'
12803 if test x"$ac_file" != x-; then
12804 configure_input="$ac_file. $configure_input"
drhf922ca42015-05-14 15:39:18 +000012805 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000012806$as_echo "$as_me: creating $ac_file" >&6;}
12807 fi
12808 # Neutralize special characters interpreted by sed in replacement strings.
12809 case $configure_input in #(
12810 *\&* | *\|* | *\\* )
12811 ac_sed_conf_input=`$as_echo "$configure_input" |
12812 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12813 *) ac_sed_conf_input=$configure_input;;
12814 esac
12815
12816 case $ac_tag in
drhf922ca42015-05-14 15:39:18 +000012817 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12818 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
drh8b727472009-01-19 18:18:40 +000012819 esac
12820 ;;
drh71eb93e2001-09-28 01:34:43 +000012821 esac
12822
drh8b727472009-01-19 18:18:40 +000012823 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000012824$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000012825 X"$ac_file" : 'X\(//\)[^/]' \| \
12826 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000012827 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12828$as_echo X"$ac_file" |
12829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12830 s//\1/
12831 q
12832 }
12833 /^X\(\/\/\)[^/].*/{
12834 s//\1/
12835 q
12836 }
12837 /^X\(\/\/\)$/{
12838 s//\1/
12839 q
12840 }
12841 /^X\(\/\).*/{
12842 s//\1/
12843 q
12844 }
12845 s/.*/./; q'`
drhf922ca42015-05-14 15:39:18 +000012846 as_dir="$ac_dir"; as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000012847 ac_builddir=.
12848
drh8b727472009-01-19 18:18:40 +000012849case "$ac_dir" in
12850.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12851*)
12852 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12853 # A ".." for each directory in $ac_dir_suffix.
12854 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12855 case $ac_top_builddir_sub in
12856 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12857 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12858 esac ;;
12859esac
12860ac_abs_top_builddir=$ac_pwd
12861ac_abs_builddir=$ac_pwd$ac_dir_suffix
12862# for backward compatibility:
12863ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000012864
12865case $srcdir in
drh8b727472009-01-19 18:18:40 +000012866 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000012867 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000012868 ac_top_srcdir=$ac_top_builddir_sub
12869 ac_abs_top_srcdir=$ac_pwd ;;
12870 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000012871 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000012872 ac_top_srcdir=$srcdir
12873 ac_abs_top_srcdir=$srcdir ;;
12874 *) # Relative name.
12875 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12876 ac_top_srcdir=$ac_top_build_prefix$srcdir
12877 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000012878esac
drh8b727472009-01-19 18:18:40 +000012879ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000012880
a.rottmann84e63352003-03-24 09:42:16 +000012881
drh8b727472009-01-19 18:18:40 +000012882 case $ac_mode in
12883 :F)
12884 #
12885 # CONFIG_FILE
12886 #
drh75897232000-05-29 14:26:00 +000012887
drh71eb93e2001-09-28 01:34:43 +000012888 case $INSTALL in
12889 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000012890 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000012891 esac
mlcreech94984912008-03-04 19:03:08 +000012892_ACEOF
drh8b727472009-01-19 18:18:40 +000012893
12894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12895# If the template does not know about datarootdir, expand it.
12896# FIXME: This hack should be removed a few years after 2.60.
12897ac_datarootdir_hack=; ac_datarootdir_seen=
drh8b727472009-01-19 18:18:40 +000012898ac_sed_dataroot='
12899/datarootdir/ {
12900 p
12901 q
12902}
12903/@datadir@/p
12904/@docdir@/p
12905/@infodir@/p
12906/@localedir@/p
drhf922ca42015-05-14 15:39:18 +000012907/@mandir@/p'
drh8b727472009-01-19 18:18:40 +000012908case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12909*datarootdir*) ac_datarootdir_seen=yes;;
12910*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
drhf922ca42015-05-14 15:39:18 +000012911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000012912$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12913_ACEOF
12914cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12915 ac_datarootdir_hack='
12916 s&@datadir@&$datadir&g
12917 s&@docdir@&$docdir&g
12918 s&@infodir@&$infodir&g
12919 s&@localedir@&$localedir&g
12920 s&@mandir@&$mandir&g
drhf922ca42015-05-14 15:39:18 +000012921 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000012922esac
12923_ACEOF
12924
12925# Neutralize VPATH when `$srcdir' = `.'.
12926# Shell code in configure.ac might set extrasub.
12927# FIXME: do we really want to maintain this feature?
12928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12929ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000012930$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000012931_ACEOF
drh8b727472009-01-19 18:18:40 +000012932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012933:t
12934/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000012935s|@configure_input@|$ac_sed_conf_input|;t t
12936s&@top_builddir@&$ac_top_builddir_sub&;t t
12937s&@top_build_prefix@&$ac_top_build_prefix&;t t
12938s&@srcdir@&$ac_srcdir&;t t
12939s&@abs_srcdir@&$ac_abs_srcdir&;t t
12940s&@top_srcdir@&$ac_top_srcdir&;t t
12941s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12942s&@builddir@&$ac_builddir&;t t
12943s&@abs_builddir@&$ac_abs_builddir&;t t
12944s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12945s&@INSTALL@&$ac_INSTALL&;t t
12946$ac_datarootdir_hack
12947"
drhf922ca42015-05-14 15:39:18 +000012948eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12949 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012950
drh8b727472009-01-19 18:18:40 +000012951test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
drhf922ca42015-05-14 15:39:18 +000012952 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12953 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12954 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12956which seems to be undefined. Please make sure it is defined" >&5
drh8b727472009-01-19 18:18:40 +000012957$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drhf922ca42015-05-14 15:39:18 +000012958which seems to be undefined. Please make sure it is defined" >&2;}
drh866108f2008-05-13 00:57:21 +000012959
drhf922ca42015-05-14 15:39:18 +000012960 rm -f "$ac_tmp/stdin"
drh866108f2008-05-13 00:57:21 +000012961 case $ac_file in
drhf922ca42015-05-14 15:39:18 +000012962 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12963 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
drh8b727472009-01-19 18:18:40 +000012964 esac \
drhf922ca42015-05-14 15:39:18 +000012965 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012966 ;;
12967 :H)
12968 #
12969 # CONFIG_HEADER
12970 #
drh866108f2008-05-13 00:57:21 +000012971 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000012972 {
12973 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000012974 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12975 } >"$ac_tmp/config.h" \
12976 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12977 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000012979$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000012980 else
drh8b727472009-01-19 18:18:40 +000012981 rm -f "$ac_file"
drhf922ca42015-05-14 15:39:18 +000012982 mv "$ac_tmp/config.h" "$ac_file" \
12983 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000012984 fi
12985 else
drh8b727472009-01-19 18:18:40 +000012986 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000012987 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12988 || as_fn_error $? "could not create -" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000012989 fi
drh8b727472009-01-19 18:18:40 +000012990 ;;
drh866108f2008-05-13 00:57:21 +000012991
drhf922ca42015-05-14 15:39:18 +000012992 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000012993$as_echo "$as_me: executing $ac_file commands" >&6;}
12994 ;;
12995 esac
drh866108f2008-05-13 00:57:21 +000012996
12997
drh8b727472009-01-19 18:18:40 +000012998 case $ac_file$ac_mode in
12999 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000013000
13001 # See if we are running on zsh, and set the options which allow our
13002 # commands through without removal of \ escapes.
13003 if test -n "${ZSH_VERSION+set}" ; then
13004 setopt NO_GLOB_SUBST
13005 fi
13006
13007 cfgfile="${ofile}T"
13008 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13009 $RM "$cfgfile"
13010
13011 cat <<_LT_EOF >> "$cfgfile"
13012#! $SHELL
13013
13014# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13015# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13016# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13017# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13018#
13019# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13020# 2006, 2007, 2008 Free Software Foundation, Inc.
13021# Written by Gordon Matzigkeit, 1996
13022#
13023# This file is part of GNU Libtool.
13024#
13025# GNU Libtool is free software; you can redistribute it and/or
13026# modify it under the terms of the GNU General Public License as
13027# published by the Free Software Foundation; either version 2 of
13028# the License, or (at your option) any later version.
13029#
13030# As a special exception to the GNU General Public License,
13031# if you distribute this file as part of a program or library that
13032# is built using GNU Libtool, you may include this file under the
13033# same distribution terms that you use for the rest of that program.
13034#
13035# GNU Libtool is distributed in the hope that it will be useful,
13036# but WITHOUT ANY WARRANTY; without even the implied warranty of
13037# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13038# GNU General Public License for more details.
13039#
13040# You should have received a copy of the GNU General Public License
13041# along with GNU Libtool; see the file COPYING. If not, a copy
13042# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13043# obtained by writing to the Free Software Foundation, Inc.,
13044# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13045
13046
13047# The names of the tagged configurations supported by this script.
13048available_tags=""
13049
13050# ### BEGIN LIBTOOL CONFIG
13051
13052# Which release of libtool.m4 was used?
13053macro_version=$macro_version
13054macro_revision=$macro_revision
13055
13056# Whether or not to build shared libraries.
13057build_libtool_libs=$enable_shared
13058
13059# Whether or not to build static libraries.
13060build_old_libs=$enable_static
13061
13062# What type of objects to build.
13063pic_mode=$pic_mode
13064
13065# Whether or not to optimize for fast installation.
13066fast_install=$enable_fast_install
13067
13068# The host system.
13069host_alias=$host_alias
13070host=$host
13071host_os=$host_os
13072
13073# The build system.
13074build_alias=$build_alias
13075build=$build
13076build_os=$build_os
13077
13078# A sed program that does not truncate output.
13079SED=$lt_SED
13080
13081# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13082Xsed="\$SED -e 1s/^X//"
13083
13084# A grep program that handles long lines.
13085GREP=$lt_GREP
13086
13087# An ERE matcher.
13088EGREP=$lt_EGREP
13089
13090# A literal string matcher.
13091FGREP=$lt_FGREP
13092
13093# A BSD- or MS-compatible name lister.
13094NM=$lt_NM
13095
13096# Whether we need soft or hard links.
13097LN_S=$lt_LN_S
13098
13099# What is the maximum length of a command?
13100max_cmd_len=$max_cmd_len
13101
13102# Object file suffix (normally "o").
13103objext=$ac_objext
13104
13105# Executable file suffix (normally "").
13106exeext=$exeext
13107
13108# whether the shell understands "unset".
13109lt_unset=$lt_unset
13110
13111# turn spaces into newlines.
13112SP2NL=$lt_lt_SP2NL
13113
13114# turn newlines into spaces.
13115NL2SP=$lt_lt_NL2SP
13116
13117# How to create reloadable object files.
13118reload_flag=$lt_reload_flag
13119reload_cmds=$lt_reload_cmds
13120
vapier6acb2cf2009-01-28 04:46:28 +000013121# An object symbol dumper.
13122OBJDUMP=$lt_OBJDUMP
13123
mlcreech636a9952008-05-05 22:52:56 +000013124# Method to check whether dependent libraries are shared objects.
13125deplibs_check_method=$lt_deplibs_check_method
13126
13127# Command to use when deplibs_check_method == "file_magic".
13128file_magic_cmd=$lt_file_magic_cmd
13129
13130# The archiver.
13131AR=$lt_AR
13132AR_FLAGS=$lt_AR_FLAGS
13133
13134# A symbol stripping program.
13135STRIP=$lt_STRIP
13136
13137# Commands used to install an old-style archive.
13138RANLIB=$lt_RANLIB
13139old_postinstall_cmds=$lt_old_postinstall_cmds
13140old_postuninstall_cmds=$lt_old_postuninstall_cmds
13141
13142# A C compiler.
13143LTCC=$lt_CC
13144
13145# LTCC compiler flags.
13146LTCFLAGS=$lt_CFLAGS
13147
13148# Take the output of nm and produce a listing of raw symbols and C names.
13149global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13150
13151# Transform the output of nm in a proper C declaration.
13152global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13153
13154# Transform the output of nm in a C name address pair.
13155global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13156
13157# Transform the output of nm in a C name address pair when lib prefix is needed.
13158global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13159
13160# The name of the directory that contains temporary libtool files.
13161objdir=$objdir
13162
13163# Shell to use when invoking shell scripts.
13164SHELL=$lt_SHELL
13165
13166# An echo program that does not interpret backslashes.
13167ECHO=$lt_ECHO
13168
13169# Used to examine libraries when file_magic_cmd begins with "file".
13170MAGIC_CMD=$MAGIC_CMD
13171
13172# Must we lock files when doing compilation?
13173need_locks=$lt_need_locks
13174
13175# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13176DSYMUTIL=$lt_DSYMUTIL
13177
13178# Tool to change global to local symbols on Mac OS X.
13179NMEDIT=$lt_NMEDIT
13180
13181# Tool to manipulate fat objects and archives on Mac OS X.
13182LIPO=$lt_LIPO
13183
13184# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13185OTOOL=$lt_OTOOL
13186
13187# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13188OTOOL64=$lt_OTOOL64
13189
13190# Old archive suffix (normally "a").
13191libext=$libext
13192
13193# Shared library suffix (normally ".so").
13194shrext_cmds=$lt_shrext_cmds
13195
13196# The commands to extract the exported symbol list from a shared archive.
13197extract_expsyms_cmds=$lt_extract_expsyms_cmds
13198
13199# Variables whose values should be saved in libtool wrapper scripts and
13200# restored at link time.
13201variables_saved_for_relink=$lt_variables_saved_for_relink
13202
13203# Do we need the "lib" prefix for modules?
13204need_lib_prefix=$need_lib_prefix
13205
13206# Do we need a version for libraries?
13207need_version=$need_version
13208
13209# Library versioning type.
13210version_type=$version_type
13211
13212# Shared library runtime path variable.
13213runpath_var=$runpath_var
13214
13215# Shared library path variable.
13216shlibpath_var=$shlibpath_var
13217
13218# Is shlibpath searched before the hard-coded library search path?
13219shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13220
13221# Format of library name prefix.
13222libname_spec=$lt_libname_spec
13223
13224# List of archive names. First name is the real one, the rest are links.
13225# The last name is the one that the linker finds with -lNAME
13226library_names_spec=$lt_library_names_spec
13227
13228# The coded name of the library, if different from the real name.
13229soname_spec=$lt_soname_spec
13230
13231# Command to use after installation of a shared archive.
13232postinstall_cmds=$lt_postinstall_cmds
13233
13234# Command to use after uninstallation of a shared archive.
13235postuninstall_cmds=$lt_postuninstall_cmds
13236
13237# Commands used to finish a libtool library installation in a directory.
13238finish_cmds=$lt_finish_cmds
13239
13240# As "finish_cmds", except a single script fragment to be evaled but
13241# not shown.
13242finish_eval=$lt_finish_eval
13243
13244# Whether we should hardcode library paths into libraries.
13245hardcode_into_libs=$hardcode_into_libs
13246
13247# Compile-time system search path for libraries.
13248sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13249
13250# Run-time system search path for libraries.
13251sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13252
13253# Whether dlopen is supported.
13254dlopen_support=$enable_dlopen
13255
13256# Whether dlopen of programs is supported.
13257dlopen_self=$enable_dlopen_self
13258
13259# Whether dlopen of statically linked programs is supported.
13260dlopen_self_static=$enable_dlopen_self_static
13261
13262# Commands to strip libraries.
13263old_striplib=$lt_old_striplib
13264striplib=$lt_striplib
13265
13266
13267# The linker used to build libraries.
13268LD=$lt_LD
13269
13270# Commands used to build an old-style archive.
13271old_archive_cmds=$lt_old_archive_cmds
13272
13273# A language specific compiler.
13274CC=$lt_compiler
13275
13276# Is the compiler the GNU compiler?
13277with_gcc=$GCC
13278
13279# Compiler flag to turn off builtin functions.
13280no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13281
13282# How to pass a linker flag through the compiler.
13283wl=$lt_lt_prog_compiler_wl
13284
13285# Additional compiler flags for building library objects.
13286pic_flag=$lt_lt_prog_compiler_pic
13287
13288# Compiler flag to prevent dynamic linking.
13289link_static_flag=$lt_lt_prog_compiler_static
13290
13291# Does compiler simultaneously support -c and -o options?
13292compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13293
13294# Whether or not to add -lc for building shared libraries.
13295build_libtool_need_lc=$archive_cmds_need_lc
13296
13297# Whether or not to disallow shared libs when runtime libs are static.
13298allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13299
13300# Compiler flag to allow reflexive dlopens.
13301export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13302
13303# Compiler flag to generate shared objects directly from archives.
13304whole_archive_flag_spec=$lt_whole_archive_flag_spec
13305
13306# Whether the compiler copes with passing no objects directly.
13307compiler_needs_object=$lt_compiler_needs_object
13308
13309# Create an old-style archive from a shared archive.
13310old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13311
13312# Create a temporary old-style archive to link instead of a shared archive.
13313old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13314
13315# Commands used to build a shared archive.
13316archive_cmds=$lt_archive_cmds
13317archive_expsym_cmds=$lt_archive_expsym_cmds
13318
13319# Commands used to build a loadable module if different from building
13320# a shared archive.
13321module_cmds=$lt_module_cmds
13322module_expsym_cmds=$lt_module_expsym_cmds
13323
13324# Whether we are building with GNU ld or not.
13325with_gnu_ld=$lt_with_gnu_ld
13326
13327# Flag that allows shared libraries with undefined symbols to be built.
13328allow_undefined_flag=$lt_allow_undefined_flag
13329
13330# Flag that enforces no undefined symbols.
13331no_undefined_flag=$lt_no_undefined_flag
13332
13333# Flag to hardcode \$libdir into a binary during linking.
13334# This must work even if \$libdir does not exist
13335hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13336
13337# If ld is used when linking, flag to hardcode \$libdir into a binary
13338# during linking. This must work even if \$libdir does not exist.
13339hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13340
13341# Whether we need a single "-rpath" flag with a separated argument.
13342hardcode_libdir_separator=$lt_hardcode_libdir_separator
13343
13344# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13345# DIR into the resulting binary.
13346hardcode_direct=$hardcode_direct
13347
13348# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13349# DIR into the resulting binary and the resulting library dependency is
13350# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13351# library is relocated.
13352hardcode_direct_absolute=$hardcode_direct_absolute
13353
13354# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13355# into the resulting binary.
13356hardcode_minus_L=$hardcode_minus_L
13357
13358# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13359# into the resulting binary.
13360hardcode_shlibpath_var=$hardcode_shlibpath_var
13361
13362# Set to "yes" if building a shared library automatically hardcodes DIR
13363# into the library and all subsequent libraries and executables linked
13364# against it.
13365hardcode_automatic=$hardcode_automatic
13366
13367# Set to yes if linker adds runtime paths of dependent libraries
13368# to runtime path list.
13369inherit_rpath=$inherit_rpath
13370
13371# Whether libtool must link a program against all its dependency libraries.
13372link_all_deplibs=$link_all_deplibs
13373
13374# Fix the shell variable \$srcfile for the compiler.
13375fix_srcfile_path=$lt_fix_srcfile_path
13376
13377# Set to "yes" if exported symbols are required.
13378always_export_symbols=$always_export_symbols
13379
13380# The commands to list exported symbols.
13381export_symbols_cmds=$lt_export_symbols_cmds
13382
13383# Symbols that should not be listed in the preloaded symbols.
13384exclude_expsyms=$lt_exclude_expsyms
13385
13386# Symbols that must always be exported.
13387include_expsyms=$lt_include_expsyms
13388
13389# Commands necessary for linking programs (against libraries) with templates.
13390prelink_cmds=$lt_prelink_cmds
13391
13392# Specify filename containing input files.
13393file_list_spec=$lt_file_list_spec
13394
13395# How to hardcode a shared library path into an executable.
13396hardcode_action=$hardcode_action
13397
13398# ### END LIBTOOL CONFIG
13399
13400_LT_EOF
13401
13402 case $host_os in
13403 aix3*)
13404 cat <<\_LT_EOF >> "$cfgfile"
13405# AIX sometimes has problems with the GCC collect2 program. For some
13406# reason, if we set the COLLECT_NAMES environment variable, the problems
13407# vanish in a puff of smoke.
13408if test "X${COLLECT_NAMES+set}" != Xset; then
13409 COLLECT_NAMES=
13410 export COLLECT_NAMES
13411fi
13412_LT_EOF
13413 ;;
13414 esac
13415
13416
13417ltmain="$ac_aux_dir/ltmain.sh"
13418
13419
13420 # We use sed instead of cat because bash on DJGPP gets confused if
13421 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13422 # text mode, it properly converts lines to CR/LF. This bash problem
13423 # is reportedly fixed, but why not run on old versions too?
13424 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13425 || (rm -f "$cfgfile"; exit 1)
13426
13427 case $xsi_shell in
13428 yes)
13429 cat << \_LT_EOF >> "$cfgfile"
13430
13431# func_dirname file append nondir_replacement
13432# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13433# otherwise set result to NONDIR_REPLACEMENT.
13434func_dirname ()
13435{
13436 case ${1} in
13437 */*) func_dirname_result="${1%/*}${2}" ;;
13438 * ) func_dirname_result="${3}" ;;
13439 esac
13440}
13441
13442# func_basename file
13443func_basename ()
13444{
13445 func_basename_result="${1##*/}"
13446}
13447
13448# func_dirname_and_basename file append nondir_replacement
13449# perform func_basename and func_dirname in a single function
13450# call:
13451# dirname: Compute the dirname of FILE. If nonempty,
13452# add APPEND to the result, otherwise set result
13453# to NONDIR_REPLACEMENT.
13454# value returned in "$func_dirname_result"
13455# basename: Compute filename of FILE.
13456# value retuned in "$func_basename_result"
13457# Implementation must be kept synchronized with func_dirname
13458# and func_basename. For efficiency, we do not delegate to
13459# those functions but instead duplicate the functionality here.
13460func_dirname_and_basename ()
13461{
13462 case ${1} in
13463 */*) func_dirname_result="${1%/*}${2}" ;;
13464 * ) func_dirname_result="${3}" ;;
13465 esac
13466 func_basename_result="${1##*/}"
13467}
13468
13469# func_stripname prefix suffix name
13470# strip PREFIX and SUFFIX off of NAME.
13471# PREFIX and SUFFIX must not contain globbing or regex special
13472# characters, hashes, percent signs, but SUFFIX may contain a leading
13473# dot (in which case that matches only a dot).
13474func_stripname ()
13475{
13476 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13477 # positional parameters, so assign one to ordinary parameter first.
13478 func_stripname_result=${3}
13479 func_stripname_result=${func_stripname_result#"${1}"}
13480 func_stripname_result=${func_stripname_result%"${2}"}
13481}
13482
13483# func_opt_split
13484func_opt_split ()
13485{
13486 func_opt_split_opt=${1%%=*}
13487 func_opt_split_arg=${1#*=}
13488}
13489
13490# func_lo2o object
13491func_lo2o ()
13492{
13493 case ${1} in
13494 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13495 *) func_lo2o_result=${1} ;;
13496 esac
13497}
13498
13499# func_xform libobj-or-source
13500func_xform ()
13501{
13502 func_xform_result=${1%.*}.lo
13503}
13504
13505# func_arith arithmetic-term...
13506func_arith ()
13507{
13508 func_arith_result=$(( $* ))
13509}
13510
13511# func_len string
13512# STRING may not start with a hyphen.
13513func_len ()
13514{
13515 func_len_result=${#1}
13516}
13517
13518_LT_EOF
13519 ;;
13520 *) # Bourne compatible functions.
13521 cat << \_LT_EOF >> "$cfgfile"
13522
13523# func_dirname file append nondir_replacement
13524# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13525# otherwise set result to NONDIR_REPLACEMENT.
13526func_dirname ()
13527{
13528 # Extract subdirectory from the argument.
13529 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13530 if test "X$func_dirname_result" = "X${1}"; then
13531 func_dirname_result="${3}"
13532 else
13533 func_dirname_result="$func_dirname_result${2}"
13534 fi
13535}
13536
13537# func_basename file
13538func_basename ()
13539{
13540 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13541}
13542
13543
13544# func_stripname prefix suffix name
13545# strip PREFIX and SUFFIX off of NAME.
13546# PREFIX and SUFFIX must not contain globbing or regex special
13547# characters, hashes, percent signs, but SUFFIX may contain a leading
13548# dot (in which case that matches only a dot).
13549# func_strip_suffix prefix name
13550func_stripname ()
13551{
13552 case ${2} in
13553 .*) func_stripname_result=`$ECHO "X${3}" \
13554 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13555 *) func_stripname_result=`$ECHO "X${3}" \
13556 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13557 esac
13558}
13559
13560# sed scripts:
13561my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13562my_sed_long_arg='1s/^-[^=]*=//'
13563
13564# func_opt_split
13565func_opt_split ()
13566{
13567 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13568 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13569}
13570
13571# func_lo2o object
13572func_lo2o ()
13573{
13574 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13575}
13576
13577# func_xform libobj-or-source
13578func_xform ()
13579{
13580 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13581}
13582
13583# func_arith arithmetic-term...
13584func_arith ()
13585{
13586 func_arith_result=`expr "$@"`
13587}
13588
13589# func_len string
13590# STRING may not start with a hyphen.
13591func_len ()
13592{
13593 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13594}
13595
13596_LT_EOF
13597esac
13598
13599case $lt_shell_append in
13600 yes)
13601 cat << \_LT_EOF >> "$cfgfile"
13602
13603# func_append var value
13604# Append VALUE to the end of shell variable VAR.
13605func_append ()
13606{
13607 eval "$1+=\$2"
13608}
13609_LT_EOF
13610 ;;
13611 *)
13612 cat << \_LT_EOF >> "$cfgfile"
13613
13614# func_append var value
13615# Append VALUE to the end of shell variable VAR.
13616func_append ()
13617{
13618 eval "$1=\$$1\$2"
13619}
13620
13621_LT_EOF
13622 ;;
13623 esac
13624
13625
13626 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13627 || (rm -f "$cfgfile"; exit 1)
13628
13629 mv -f "$cfgfile" "$ofile" ||
13630 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13631 chmod +x "$ofile"
13632
13633 ;;
mlcreech94984912008-03-04 19:03:08 +000013634
drh8b727472009-01-19 18:18:40 +000013635 esac
13636done # for ac_tag
13637
drh71eb93e2001-09-28 01:34:43 +000013638
drhf922ca42015-05-14 15:39:18 +000013639as_fn_exit 0
a.rottmann84e63352003-03-24 09:42:16 +000013640_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013641ac_clean_files=$ac_clean_files_save
13642
drh8b727472009-01-19 18:18:40 +000013643test $ac_write_fail = 0 ||
drhf922ca42015-05-14 15:39:18 +000013644 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013645
a.rottmann84e63352003-03-24 09:42:16 +000013646
drh71eb93e2001-09-28 01:34:43 +000013647# configure is writing to config.log, and then calls config.status.
13648# config.status does its own redirection, appending to config.log.
13649# Unfortunately, on DOS this fails, as config.log is still kept open
13650# by configure, so config.status won't be able to write to it; its
13651# output is simply discarded. So we exec the FD to /dev/null,
13652# effectively closing config.log, so it can be properly (re)opened and
13653# appended to by config.status. When coming back to configure, we
13654# need to make the FD available again.
13655if test "$no_create" != yes; then
13656 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000013657 ac_config_status_args=
13658 test "$silent" = yes &&
13659 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000013660 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000013661 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000013662 exec 5>>config.log
13663 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13664 # would make configure fail if this is the last instruction.
drhf922ca42015-05-14 15:39:18 +000013665 $ac_cs_success || as_fn_exit 1
drh71eb93e2001-09-28 01:34:43 +000013666fi
drh8b727472009-01-19 18:18:40 +000013667if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drhf922ca42015-05-14 15:39:18 +000013668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13669$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000013670fi
drhbc7a22d2009-10-13 22:47:13 +000013671