]> git.ipfire.org Git - thirdparty/gcc.git/blame - zlib/configure
configure: Implement --enable-host-pie
[thirdparty/gcc.git] / zlib / configure
CommitLineData
dfac8a13 1#! /bin/sh
dfac8a13 2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69 for zlib 1.1.4.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5213506e 7#
c45f211e 8#
dfac8a13
TT
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
a8aea176 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
a8aea176
NN
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a8aea176
NN
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
a8aea176 31fi
a8aea176 32
5213506e
RW
33
34as_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
41# 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
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
a8aea176
NN
79fi
80
81
5213506e
RW
82# 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.
22e05272 90as_myself=
5213506e
RW
91case $0 in #((
92 *[\\/]* ) 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=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$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
111 exit 1
112fi
113
114# 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 || :
121done
a8aea176
NN
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
5213506e
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
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;}
5213506e
RW
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
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
5213506e
RW
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
43e02a8a
RW
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
5213506e
RW
207test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
a8aea176 219do
5213506e
RW
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
5213506e
RW
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
a8aea176 274 else
5213506e
RW
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
a8aea176 279 fi
5213506e
RW
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e
RW
364
365
366} # as_fn_mkdir_p
22e05272
JM
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
5213506e
RW
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
a8aea176 409
5213506e 410
22e05272
JM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
5213506e
RW
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 415# script with STATUS, using 1 if that was 0.
5213506e
RW
416as_fn_error ()
417{
22e05272
JM
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5213506e 422 fi
22e05272 423 $as_echo "$as_me: error: $2" >&2
5213506e
RW
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
a8aea176
NN
429 as_expr=expr
430else
431 as_expr=false
432fi
433
5213506e 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
a8aea176
NN
435 as_basename=basename
436else
437 as_basename=false
438fi
439
5213506e
RW
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
a8aea176 445
5213506e 446as_me=`$as_basename -- "$0" ||
a8aea176
NN
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
5213506e
RW
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
a8aea176 464
a8aea176
NN
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
a8aea176 472
5213506e
RW
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
a8aea176 482 sed '
5213506e
RW
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
a8aea176 487 N
5213506e
RW
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a8aea176 490 t loop
5213506e 491 s/-\n.*//
a8aea176 492 ' >$as_me.lineno &&
5213506e
RW
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
a8aea176 495
22e05272
JM
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
a8aea176
NN
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
a8aea176
NN
504 # Exit status is that of the last command.
505 exit
506}
dfac8a13 507
5213506e
RW
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
a8aea176
NN
519esac
520
5213506e
RW
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
a8aea176 524else
5213506e
RW
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
a8aea176 527fi
5213506e
RW
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
a8aea176 530 as_ln_s='ln -s'
5213506e
RW
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 534 # In both cases, we have to default to `cp -pR'.
5213506e 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 536 as_ln_s='cp -pR'
5213506e
RW
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
22e05272 540 as_ln_s='cp -pR'
a8aea176 541 fi
a8aea176 542else
22e05272 543 as_ln_s='cp -pR'
a8aea176 544fi
5213506e
RW
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
a8aea176
NN
547
548if mkdir -p . 2>/dev/null; then
5213506e 549 as_mkdir_p='mkdir -p "$as_dir"'
a8aea176
NN
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
22e05272
JM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
a8aea176
NN
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
1cf3d07d
SE
564SHELL=${CONFIG_SHELL-/bin/sh}
565
1cf3d07d 566
22e05272
JM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
5213506e 569
a8aea176 570# Name of the host.
22e05272 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
a8aea176
NN
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
a8aea176
NN
575#
576# Initializations.
577#
dfac8a13 578ac_default_prefix=/usr/local
5213506e 579ac_clean_files=
a8aea176 580ac_config_libobj_dir=.
5213506e 581LIBOBJS=
a8aea176
NN
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
a8aea176
NN
586
587# Identity of this package.
22e05272
JM
588PACKAGE_NAME='zlib'
589PACKAGE_TARNAME='zlib'
590PACKAGE_VERSION='1.1.4'
591PACKAGE_STRING='zlib 1.1.4'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
a8aea176
NN
594
595ac_unique_file="zlib.h"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
5213506e 599#ifdef HAVE_SYS_TYPES_H
a8aea176
NN
600# include <sys/types.h>
601#endif
5213506e 602#ifdef HAVE_SYS_STAT_H
a8aea176
NN
603# include <sys/stat.h>
604#endif
5213506e 605#ifdef STDC_HEADERS
a8aea176
NN
606# include <stdlib.h>
607# include <stddef.h>
608#else
5213506e 609# ifdef HAVE_STDLIB_H
a8aea176
NN
610# include <stdlib.h>
611# endif
612#endif
5213506e
RW
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
a8aea176
NN
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
5213506e 619#ifdef HAVE_STRINGS_H
a8aea176
NN
620# include <strings.h>
621#endif
5213506e 622#ifdef HAVE_INTTYPES_H
a8aea176 623# include <inttypes.h>
a8aea176 624#endif
5213506e
RW
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
a8aea176
NN
629# include <unistd.h>
630#endif"
631
22e05272 632ac_header_list=
5213506e
RW
633ac_subst_vars='am__EXEEXT_FALSE
634am__EXEEXT_TRUE
635LTLIBOBJS
636LIBOBJS
459260ec 637PICFLAG
b6cb10af
MP
638enable_host_pie
639enable_host_shared
5213506e
RW
640TARGET_LIBRARY_FALSE
641TARGET_LIBRARY_TRUE
642toolexeclibdir
643toolexecdir
5213506e
RW
644CPP
645OTOOL64
646OTOOL
647LIPO
648NMEDIT
649DSYMUTIL
5213506e
RW
650RANLIB
651AR
652OBJDUMP
653LN_S
654NM
655ac_ct_DUMPBIN
656DUMPBIN
657LD
658FGREP
659EGREP
660GREP
661SED
662LIBTOOL
c0827870 663CET_FLAGS
5213506e
RW
664am__fastdepCC_FALSE
665am__fastdepCC_TRUE
666CCDEPMODE
39ba2a0e 667am__nodep
5213506e
RW
668AMDEPBACKSLASH
669AMDEP_FALSE
670AMDEP_TRUE
671am__quote
672am__include
673DEPDIR
674OBJEXT
675EXEEXT
676ac_ct_CC
677CPPFLAGS
678LDFLAGS
679CFLAGS
680CC
681COMPPATH
682MAINT
683MAINTAINER_MODE_FALSE
684MAINTAINER_MODE_TRUE
22e05272
JM
685AM_BACKSLASH
686AM_DEFAULT_VERBOSITY
687AM_DEFAULT_V
688AM_V
5213506e
RW
689am__untar
690am__tar
691AMTAR
692am__leading_dot
693SET_MAKE
694AWK
695mkdir_p
696MKDIR_P
697INSTALL_STRIP_PROGRAM
698STRIP
699install_sh
700MAKEINFO
701AUTOHEADER
702AUTOMAKE
703AUTOCONF
704ACLOCAL
705VERSION
706PACKAGE
707CYGPATH_W
708am__isrc
709INSTALL_DATA
710INSTALL_SCRIPT
711INSTALL_PROGRAM
712mkinstalldirs
713target_os
714target_vendor
715target_cpu
716target
717host_os
718host_vendor
719host_cpu
720host
721build_os
722build_vendor
723build_cpu
724build
725multi_basedir
726target_alias
727host_alias
728build_alias
729LIBS
730ECHO_T
731ECHO_N
732ECHO_C
733DEFS
734mandir
735localedir
736libdir
737psdir
738pdfdir
739dvidir
740htmldir
741infodir
742docdir
743oldincludedir
744includedir
745localstatedir
746sharedstatedir
747sysconfdir
748datadir
749datarootdir
750libexecdir
751sbindir
752bindir
753program_transform_name
754prefix
755exec_prefix
756PACKAGE_URL
757PACKAGE_BUGREPORT
758PACKAGE_STRING
759PACKAGE_VERSION
760PACKAGE_TARNAME
761PACKAGE_NAME
762PATH_SEPARATOR
763SHELL'
a8aea176 764ac_subst_files=''
5213506e
RW
765ac_user_opts='
766enable_option_checking
767enable_multilib
22e05272 768enable_silent_rules
5213506e
RW
769enable_maintainer_mode
770with_target_subdir
771with_cross_host
772with_system_zlib
773enable_dependency_tracking
c0827870 774enable_cet
5213506e
RW
775enable_shared
776enable_static
777with_pic
778enable_fast_install
779with_gnu_ld
780enable_libtool_lock
e8e66971 781with_toolexeclibdir
459260ec 782enable_host_shared
b6cb10af 783enable_host_pie
5213506e
RW
784'
785 ac_precious_vars='build_alias
786host_alias
787target_alias
788CPP
789CPPFLAGS'
790
dfac8a13
TT
791
792# Initialize some variables set by options.
a8aea176
NN
793ac_init_help=
794ac_init_version=false
5213506e
RW
795ac_unrecognized_opts=
796ac_unrecognized_sep=
dfac8a13
TT
797# The variables have the same names as the options, with
798# dashes changed to underlines.
a8aea176 799cache_file=/dev/null
dfac8a13 800exec_prefix=NONE
dfac8a13 801no_create=
dfac8a13
TT
802no_recursion=
803prefix=NONE
804program_prefix=NONE
805program_suffix=NONE
806program_transform_name=s,x,x,
807silent=
808site=
809srcdir=
dfac8a13
TT
810verbose=
811x_includes=NONE
812x_libraries=NONE
a8aea176
NN
813
814# Installation directory options.
815# These are left unexpanded so users can "make install exec_prefix=/foo"
816# and all the variables that are supposed to be based on exec_prefix
817# by default will actually change.
818# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 819# (The list follows the same order as the GNU Coding Standards.)
dfac8a13
TT
820bindir='${exec_prefix}/bin'
821sbindir='${exec_prefix}/sbin'
822libexecdir='${exec_prefix}/libexec'
5213506e
RW
823datarootdir='${prefix}/share'
824datadir='${datarootdir}'
dfac8a13
TT
825sysconfdir='${prefix}/etc'
826sharedstatedir='${prefix}/com'
827localstatedir='${prefix}/var'
dfac8a13
TT
828includedir='${prefix}/include'
829oldincludedir='/usr/include'
22e05272 830docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
5213506e
RW
831infodir='${datarootdir}/info'
832htmldir='${docdir}'
833dvidir='${docdir}'
834pdfdir='${docdir}'
835psdir='${docdir}'
836libdir='${exec_prefix}/lib'
837localedir='${datarootdir}/locale'
838mandir='${datarootdir}/man'
dfac8a13 839
dfac8a13 840ac_prev=
5213506e 841ac_dashdash=
dfac8a13
TT
842for ac_option
843do
dfac8a13
TT
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
5213506e 846 eval $ac_prev=\$ac_option
dfac8a13
TT
847 ac_prev=
848 continue
849 fi
850
5213506e 851 case $ac_option in
22e05272
JM
852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *=) ac_optarg= ;;
854 *) ac_optarg=yes ;;
5213506e 855 esac
dfac8a13
TT
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
5213506e
RW
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
dfac8a13
TT
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a8aea176 866 bindir=$ac_optarg ;;
dfac8a13
TT
867
868 -build | --build | --buil | --bui | --bu)
a8aea176 869 ac_prev=build_alias ;;
dfac8a13 870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a8aea176 871 build_alias=$ac_optarg ;;
dfac8a13
TT
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a8aea176
NN
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
dfac8a13 882
5213506e 883 -datadir | --datadir | --datadi | --datad)
dfac8a13 884 ac_prev=datadir ;;
5213506e 885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
a8aea176 886 datadir=$ac_optarg ;;
dfac8a13 887
5213506e
RW
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
dfac8a13 895 -disable-* | --disable-*)
5213506e 896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
dfac8a13 897 # Reject names that are not valid shell variable names.
5213506e 898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 899 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904"enable_$ac_useropt"
905"*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
910
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
915
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
dfac8a13
TT
920
921 -enable-* | --enable-*)
5213506e 922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
dfac8a13 923 # Reject names that are not valid shell variable names.
5213506e 924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 925 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930"enable_$ac_useropt"
931"*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
dfac8a13 934 esac
5213506e 935 eval enable_$ac_useropt=\$ac_optarg ;;
dfac8a13
TT
936
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
a8aea176 944 exec_prefix=$ac_optarg ;;
dfac8a13
TT
945
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
949
a8aea176
NN
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
dfac8a13
TT
956
957 -host | --host | --hos | --ho)
a8aea176 958 ac_prev=host_alias ;;
dfac8a13 959 -host=* | --host=* | --hos=* | --ho=*)
a8aea176 960 host_alias=$ac_optarg ;;
dfac8a13 961
5213506e
RW
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
967
dfac8a13
TT
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
a8aea176 973 includedir=$ac_optarg ;;
dfac8a13
TT
974
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a8aea176 978 infodir=$ac_optarg ;;
dfac8a13
TT
979
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
a8aea176 983 libdir=$ac_optarg ;;
dfac8a13
TT
984
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
a8aea176 990 libexecdir=$ac_optarg ;;
dfac8a13 991
5213506e
RW
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
996
dfac8a13 997 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 998 | --localstate | --localstat | --localsta | --localst | --locals)
dfac8a13
TT
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
a8aea176 1002 localstatedir=$ac_optarg ;;
dfac8a13
TT
1003
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a8aea176 1007 mandir=$ac_optarg ;;
dfac8a13
TT
1008
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1012
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a8aea176 1014 | --no-cr | --no-c | -n)
dfac8a13
TT
1015 no_create=yes ;;
1016
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1020
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a8aea176 1028 oldincludedir=$ac_optarg ;;
dfac8a13
TT
1029
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a8aea176 1033 prefix=$ac_optarg ;;
dfac8a13
TT
1034
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a8aea176 1040 program_prefix=$ac_optarg ;;
dfac8a13
TT
1041
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a8aea176 1047 program_suffix=$ac_optarg ;;
dfac8a13
TT
1048
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
a8aea176 1064 program_transform_name=$ac_optarg ;;
dfac8a13 1065
5213506e
RW
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1070
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1075
dfac8a13
TT
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1079
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
a8aea176 1084 sbindir=$ac_optarg ;;
dfac8a13
TT
1085
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
a8aea176 1095 sharedstatedir=$ac_optarg ;;
dfac8a13
TT
1096
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
a8aea176 1100 site=$ac_optarg ;;
dfac8a13
TT
1101
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a8aea176 1105 srcdir=$ac_optarg ;;
dfac8a13
TT
1106
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a8aea176 1112 sysconfdir=$ac_optarg ;;
dfac8a13
TT
1113
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
a8aea176 1115 ac_prev=target_alias ;;
dfac8a13 1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a8aea176 1117 target_alias=$ac_optarg ;;
dfac8a13
TT
1118
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1121
a8aea176
NN
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
dfac8a13
TT
1124
1125 -with-* | --with-*)
5213506e 1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
dfac8a13 1127 # Reject names that are not valid shell variable names.
5213506e 1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1129 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134"with_$ac_useropt"
1135"*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
dfac8a13 1138 esac
5213506e 1139 eval with_$ac_useropt=\$ac_optarg ;;
dfac8a13
TT
1140
1141 -without-* | --without-*)
5213506e 1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
dfac8a13 1143 # Reject names that are not valid shell variable names.
5213506e 1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1145 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150"with_$ac_useropt"
1151"*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
dfac8a13
TT
1156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a8aea176 1166 x_includes=$ac_optarg ;;
dfac8a13
TT
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a8aea176 1173 x_libraries=$ac_optarg ;;
dfac8a13 1174
22e05272
JM
1175 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176Try \`$0 --help' for more information"
dfac8a13
TT
1177 ;;
1178
a8aea176
NN
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
5213506e
RW
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1185 esac
1186 eval $ac_envvar=\$ac_optarg
a8aea176
NN
1187 export $ac_envvar ;;
1188
dfac8a13 1189 *)
a8aea176 1190 # FIXME: should be removed in autoconf 3.0.
5213506e 1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
a8aea176 1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
dfac8a13
TT
1195 ;;
1196
1197 esac
1198done
1199
1200if test -n "$ac_prev"; then
a8aea176 1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1202 as_fn_error $? "missing argument to $ac_option"
dfac8a13 1203fi
dfac8a13 1204
5213506e
RW
1205if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
22e05272 1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
a8aea176 1210 esac
5213506e 1211fi
dfac8a13 1212
5213506e
RW
1213# Check all directory arguments for consistency.
1214for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
c45f211e 1218do
5213506e
RW
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
a8aea176 1227 case $ac_val in
5213506e
RW
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
dfac8a13 1230 esac
22e05272 1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
dfac8a13
TT
1232done
1233
a8aea176
NN
1234# There might be people who depend on the old broken behavior: `$host'
1235# used to hold the argument of --host etc.
1236# FIXME: To remove some day.
1237build=$build_alias
1238host=$host_alias
1239target=$target_alias
1240
1241# FIXME: To remove some day.
1242if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
a8aea176
NN
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1247 fi
1248fi
dfac8a13 1249
a8aea176
NN
1250ac_tool_prefix=
1251test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253test "$silent" = yes && exec 6>/dev/null
dfac8a13 1254
dfac8a13 1255
5213506e
RW
1256ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257ac_ls_di=`ls -di .` &&
1258ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1259 as_fn_error $? "working directory cannot be determined"
5213506e 1260test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1261 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1262
1263
dfac8a13
TT
1264# Find the source files, if location was not specified.
1265if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
5213506e
RW
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273$as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
dfac8a13 1291 srcdir=$ac_confdir
5213506e 1292 if test ! -r "$srcdir/$ac_unique_file"; then
dfac8a13
TT
1293 srcdir=..
1294 fi
1295else
1296 ac_srcdir_defaulted=no
1297fi
5213506e
RW
1298if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1301fi
1302ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303ac_abs_confdir=`(
22e05272 1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1305 pwd)`
1306# When building in place, set srcdir=.
1307if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1309fi
1310# Remove unnecessary trailing slashes from srcdir.
1311# Double slashes in file names in object file debugging info
1312# mess up M-x gdb in Emacs.
1313case $srcdir in
1314*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315esac
1316for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321done
a8aea176
NN
1322
1323#
1324# Report the --help message.
1325#
1326if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
22e05272 1330\`configure' configures zlib 1.1.4 to adapt to many kinds of systems.
a8aea176
NN
1331
1332Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335VAR=VALUE. See below for descriptions of some of the useful variables.
1336
1337Defaults for the options are specified in brackets.
1338
1339Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
22e05272 1344 -q, --quiet, --silent do not print \`checking ...' messages
a8aea176
NN
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349
a8aea176
NN
1350Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1352 [$ac_default_prefix]
a8aea176 1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1354 [PREFIX]
a8aea176
NN
1355
1356By default, \`make install' will install all the files in
1357\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359for instance \`--prefix=\$HOME'.
1360
1361For better control, use the options below.
1362
1363Fine tuning of the installation directories:
5213506e
RW
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
22e05272 1378 --docdir=DIR documentation root [DATAROOTDIR/doc/zlib]
5213506e
RW
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
a8aea176
NN
1383_ACEOF
1384
1385 cat <<\_ACEOF
1386
1387Program names:
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391
1392System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 --target=TARGET configure for building compilers for TARGET [HOST]
1396_ACEOF
1397fi
1398
1399if test -n "$ac_init_help"; then
22e05272
JM
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of zlib 1.1.4:";;
1402 esac
a8aea176
NN
1403 cat <<\_ACEOF
1404
1405Optional Features:
5213506e 1406 --disable-option-checking ignore unrecognized --enable/--with options
a8aea176
NN
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a8aea176 1409 --enable-multilib build many library versions (default)
22e05272
JM
1410 --enable-silent-rules less verbose build output (undo: "make V=1")
1411 --disable-silent-rules verbose build output (undo: "make V=0")
1412 --enable-maintainer-mode
1413 enable make rules and dependencies not useful (and
1414 sometimes confusing) to the casual installer
1415 --enable-dependency-tracking
1416 do not reject slow dependency extractors
1417 --disable-dependency-tracking
1418 speeds up one-time build
8d286dd1 1419 --enable-cet enable Intel CET in target libraries [default=auto]
5213506e
RW
1420 --enable-shared[=PKGS] build shared libraries [default=yes]
1421 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1422 --enable-fast-install[=PKGS]
1423 optimize for fast installation [default=yes]
a8aea176 1424 --disable-libtool-lock avoid locking (might break parallel builds)
459260ec 1425 --enable-host-shared build host code as shared libraries
b6cb10af 1426 --enable-host-pie build host code as PIE
a8aea176
NN
1427
1428Optional Packages:
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1431 --with-target-subdir=SUBDIR
1432 configuring in a subdirectory
1433 --with-cross-host=HOST configuring with a cross compiler
1434 --with-system-zlib use installed libz
1cf3d07d
SE
1435 --with-pic try to use only PIC/non-PIC objects [default=use
1436 both]
1437 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
e8e66971
MR
1438 --with-toolexeclibdir=DIR
1439 install libraries built with a cross compiler within
1440 DIR
a8aea176
NN
1441
1442Some influential environment variables:
1443 CC C compiler command
1444 CFLAGS C compiler flags
1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1446 nonstandard directory <lib dir>
5213506e 1447 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1448 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1449 you have headers in a nonstandard directory <include dir>
a8aea176
NN
1450 CPP C preprocessor
1451
1452Use these variables to override the choices made by `configure' or to help
1453it to find libraries and programs with nonstandard names/locations.
1454
5213506e 1455Report bugs to the package provider.
a8aea176 1456_ACEOF
5213506e 1457ac_status=$?
a8aea176
NN
1458fi
1459
1460if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
a8aea176 1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1463 test -d "$ac_dir" ||
1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465 continue
a8aea176
NN
1466 ac_builddir=.
1467
5213506e
RW
1468case "$ac_dir" in
1469.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470*)
1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 esac ;;
1478esac
1479ac_abs_top_builddir=$ac_pwd
1480ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481# for backward compatibility:
1482ac_top_builddir=$ac_top_build_prefix
a8aea176
NN
1483
1484case $srcdir in
5213506e 1485 .) # We are building in place.
a8aea176 1486 ac_srcdir=.
5213506e
RW
1487 ac_top_srcdir=$ac_top_builddir_sub
1488 ac_abs_top_srcdir=$ac_pwd ;;
1489 [\\/]* | ?:[\\/]* ) # Absolute name.
a8aea176 1490 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1491 ac_top_srcdir=$srcdir
1492 ac_abs_top_srcdir=$srcdir ;;
1493 *) # Relative name.
1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a8aea176 1497esac
5213506e
RW
1498ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499
1500 cd "$ac_dir" || { ac_status=$?; continue; }
1501 # Check for guested configure.
1502 if test -f "$ac_srcdir/configure.gnu"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505 elif test -f "$ac_srcdir/configure"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure" --help=recursive
a8aea176 1508 else
5213506e
RW
1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510 fi || ac_status=$?
1511 cd "$ac_pwd" || { ac_status=$?; break; }
a8aea176
NN
1512 done
1513fi
1514
5213506e 1515test -n "$ac_init_help" && exit $ac_status
a8aea176
NN
1516if $ac_init_version; then
1517 cat <<\_ACEOF
22e05272
JM
1518zlib configure 1.1.4
1519generated by GNU Autoconf 2.69
a8aea176 1520
22e05272 1521Copyright (C) 2012 Free Software Foundation, Inc.
a8aea176
NN
1522This configure script is free software; the Free Software Foundation
1523gives unlimited permission to copy, distribute and modify it.
1524_ACEOF
5213506e 1525 exit
a8aea176 1526fi
a8aea176 1527
5213506e
RW
1528## ------------------------ ##
1529## Autoconf initialization. ##
1530## ------------------------ ##
a8aea176 1531
5213506e
RW
1532# ac_fn_c_try_compile LINENO
1533# --------------------------
1534# Try to compile conftest.$ac_ext, and return whether this succeeded.
1535ac_fn_c_try_compile ()
a8aea176 1536{
5213506e
RW
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 rm -f conftest.$ac_objext
1539 if { { ac_try="$ac_compile"
1540case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1543esac
1544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545$as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_compile") 2>conftest.err
1547 ac_status=$?
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1552 fi
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest.$ac_objext; then :
1558 ac_retval=0
1559else
1560 $as_echo "$as_me: failed program was:" >&5
1561sed 's/^/| /' conftest.$ac_ext >&5
a8aea176 1562
5213506e
RW
1563 ac_retval=1
1564fi
22e05272
JM
1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566 as_fn_set_status $ac_retval
a8aea176 1567
5213506e 1568} # ac_fn_c_try_compile
a8aea176 1569
5213506e
RW
1570# ac_fn_c_try_link LINENO
1571# -----------------------
1572# Try to link conftest.$ac_ext, and return whether this succeeded.
1573ac_fn_c_try_link ()
1574{
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext conftest$ac_exeext
1577 if { { ac_try="$ac_link"
1578case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581esac
1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583$as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_link") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1590 fi
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest$ac_exeext && {
1596 test "$cross_compiling" = yes ||
22e05272 1597 test -x conftest$ac_exeext
5213506e
RW
1598 }; then :
1599 ac_retval=0
1600else
1601 $as_echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
a8aea176 1603
5213506e
RW
1604 ac_retval=1
1605fi
1606 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1607 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1608 # interfere with the next link command; also delete a directory that is
1609 # left behind by Apple's compiler. We do this before executing the actions.
1610 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
a8aea176 1613
5213506e
RW
1614} # ac_fn_c_try_link
1615
1616# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1617# -------------------------------------------------------
1618# Tests whether HEADER exists and can be compiled using the include files in
1619# INCLUDES, setting the cache variable VAR accordingly.
1620ac_fn_c_check_header_compile ()
1621{
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624$as_echo_n "checking for $2... " >&6; }
22e05272 1625if eval \${$3+:} false; then :
5213506e
RW
1626 $as_echo_n "(cached) " >&6
1627else
1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629/* end confdefs.h. */
1630$4
1631#include <$2>
1632_ACEOF
1633if ac_fn_c_try_compile "$LINENO"; then :
1634 eval "$3=yes"
1635else
1636 eval "$3=no"
1637fi
1638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639fi
1640eval ac_res=\$$3
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642$as_echo "$ac_res" >&6; }
22e05272 1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5213506e
RW
1644
1645} # ac_fn_c_check_header_compile
1646
1647# ac_fn_c_try_cpp LINENO
1648# ----------------------
1649# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1650ac_fn_c_try_cpp ()
1651{
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if { { ac_try="$ac_cpp conftest.$ac_ext"
1654case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1666 fi
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1668 test $ac_status = 0; } > conftest.i && {
5213506e
RW
1669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 }; then :
1672 ac_retval=0
1673else
1674 $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
1677 ac_retval=1
1678fi
22e05272
JM
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
5213506e
RW
1681
1682} # ac_fn_c_try_cpp
1683
1684# ac_fn_c_try_run LINENO
1685# ----------------------
1686# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1687# that executables *can* be run.
1688ac_fn_c_try_run ()
1689{
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if { { ac_try="$ac_link"
1692case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_link") 2>&5
1699 ac_status=$?
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1702 { { case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_try") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; }; }; then :
1712 ac_retval=0
1713else
1714 $as_echo "$as_me: program exited with status $ac_status" >&5
1715 $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=$ac_status
1719fi
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
5213506e
RW
1723
1724} # ac_fn_c_try_run
1725
1726# ac_fn_c_check_func LINENO FUNC VAR
1727# ----------------------------------
1728# Tests whether FUNC exists, setting the cache variable VAR accordingly
1729ac_fn_c_check_func ()
1730{
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733$as_echo_n "checking for $2... " >&6; }
22e05272 1734if eval \${$3+:} false; then :
5213506e
RW
1735 $as_echo_n "(cached) " >&6
1736else
1737 if test x$gcc_no_link = xyes; then
22e05272 1738 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5213506e
RW
1739fi
1740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741/* end confdefs.h. */
1742/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1744#define $2 innocuous_$2
1745
1746/* System header to define __stub macros and hopefully few prototypes,
1747 which can conflict with char $2 (); below.
1748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1749 <limits.h> exists even on freestanding compilers. */
1750
1751#ifdef __STDC__
1752# include <limits.h>
1753#else
1754# include <assert.h>
1755#endif
1756
1757#undef $2
1758
1759/* Override any GCC internal prototype to avoid an error.
1760 Use char because int might match the return type of a GCC
1761 builtin and then its argument prototype would still apply. */
1762#ifdef __cplusplus
1763extern "C"
1764#endif
1765char $2 ();
1766/* The GNU C library defines this for functions which it implements
1767 to always fail with ENOSYS. Some functions are actually named
1768 something starting with __ and the normal name is an alias. */
1769#if defined __stub_$2 || defined __stub___$2
1770choke me
1771#endif
1772
1773int
1774main ()
1775{
1776return $2 ();
1777 ;
1778 return 0;
1779}
1780_ACEOF
1781if ac_fn_c_try_link "$LINENO"; then :
1782 eval "$3=yes"
1783else
1784 eval "$3=no"
1785fi
1786rm -f core conftest.err conftest.$ac_objext \
1787 conftest$ac_exeext conftest.$ac_ext
1788fi
1789eval ac_res=\$$3
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791$as_echo "$ac_res" >&6; }
22e05272 1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5213506e
RW
1793
1794} # ac_fn_c_check_func
1795
1796# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1797# -------------------------------------------------------
1798# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1799# the include files in INCLUDES and setting the cache variable VAR
1800# accordingly.
1801ac_fn_c_check_header_mongrel ()
1802{
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1804 if eval \${$3+:} false; then :
5213506e
RW
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806$as_echo_n "checking for $2... " >&6; }
22e05272 1807if eval \${$3+:} false; then :
5213506e
RW
1808 $as_echo_n "(cached) " >&6
1809fi
1810eval ac_res=\$$3
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812$as_echo "$ac_res" >&6; }
1813else
1814 # Is the header compilable?
1815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1816$as_echo_n "checking $2 usability... " >&6; }
1817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818/* end confdefs.h. */
1819$4
1820#include <$2>
1821_ACEOF
1822if ac_fn_c_try_compile "$LINENO"; then :
1823 ac_header_compiler=yes
1824else
1825 ac_header_compiler=no
1826fi
1827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1829$as_echo "$ac_header_compiler" >&6; }
1830
1831# Is the header present?
1832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1833$as_echo_n "checking $2 presence... " >&6; }
1834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835/* end confdefs.h. */
1836#include <$2>
1837_ACEOF
1838if ac_fn_c_try_cpp "$LINENO"; then :
1839 ac_header_preproc=yes
1840else
1841 ac_header_preproc=no
1842fi
22e05272 1843rm -f conftest.err conftest.i conftest.$ac_ext
5213506e
RW
1844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1845$as_echo "$ac_header_preproc" >&6; }
1846
1847# So? What about this header?
1848case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1849 yes:no: )
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1851$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1853$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1854 ;;
1855 no:yes:* )
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1857$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1859$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1861$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1863$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1865$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1866 ;;
1867esac
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869$as_echo_n "checking for $2... " >&6; }
22e05272 1870if eval \${$3+:} false; then :
5213506e
RW
1871 $as_echo_n "(cached) " >&6
1872else
1873 eval "$3=\$ac_header_compiler"
1874fi
1875eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877$as_echo "$ac_res" >&6; }
1878fi
22e05272 1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5213506e
RW
1880
1881} # ac_fn_c_check_header_mongrel
1882cat >config.log <<_ACEOF
1883This file contains any messages produced by compilers while
1884running configure, to aid debugging if configure makes a mistake.
1885
22e05272
JM
1886It was created by zlib $as_me 1.1.4, which was
1887generated by GNU Autoconf 2.69. Invocation command line was
5213506e
RW
1888
1889 $ $0 $@
1890
1891_ACEOF
1892exec 5>>config.log
1893{
1894cat <<_ASUNAME
1895## --------- ##
1896## Platform. ##
1897## --------- ##
1898
1899hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1900uname -m = `(uname -m) 2>/dev/null || echo unknown`
1901uname -r = `(uname -r) 2>/dev/null || echo unknown`
1902uname -s = `(uname -s) 2>/dev/null || echo unknown`
1903uname -v = `(uname -v) 2>/dev/null || echo unknown`
1904
1905/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1906/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1907
1908/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1909/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1910/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1911/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1912/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1913/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1914/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1915
1916_ASUNAME
1917
1918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919for as_dir in $PATH
1920do
1921 IFS=$as_save_IFS
a8aea176 1922 test -z "$as_dir" && as_dir=.
5213506e
RW
1923 $as_echo "PATH: $as_dir"
1924 done
1925IFS=$as_save_IFS
a8aea176
NN
1926
1927} >&5
1928
1929cat >&5 <<_ACEOF
1930
1931
1932## ----------- ##
1933## Core tests. ##
1934## ----------- ##
1935
1936_ACEOF
1937
1938
1939# Keep a trace of the command line.
1940# Strip out --no-create and --no-recursion so they do not pile up.
1941# Strip out --silent because we don't want to record it for future runs.
1942# Also quote any args containing shell meta-characters.
1943# Make two passes to allow for proper duplicate-argument suppression.
1944ac_configure_args=
1945ac_configure_args0=
1946ac_configure_args1=
a8aea176
NN
1947ac_must_keep_next=false
1948for ac_pass in 1 2
1949do
1950 for ac_arg
1951 do
1952 case $ac_arg in
1953 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1954 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1955 | -silent | --silent | --silen | --sile | --sil)
1956 continue ;;
5213506e
RW
1957 *\'*)
1958 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a8aea176
NN
1959 esac
1960 case $ac_pass in
5213506e 1961 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
a8aea176 1962 2)
5213506e 1963 as_fn_append ac_configure_args1 " '$ac_arg'"
a8aea176
NN
1964 if test $ac_must_keep_next = true; then
1965 ac_must_keep_next=false # Got value, back to normal.
1966 else
1967 case $ac_arg in
1968 *=* | --config-cache | -C | -disable-* | --disable-* \
1969 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1970 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1971 | -with-* | --with-* | -without-* | --without-* | --x)
1972 case "$ac_configure_args0 " in
1973 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1974 esac
1975 ;;
1976 -* ) ac_must_keep_next=true ;;
1977 esac
1978 fi
5213506e 1979 as_fn_append ac_configure_args " '$ac_arg'"
a8aea176
NN
1980 ;;
1981 esac
1982 done
1983done
5213506e
RW
1984{ ac_configure_args0=; unset ac_configure_args0;}
1985{ ac_configure_args1=; unset ac_configure_args1;}
a8aea176
NN
1986
1987# When interrupted or exit'd, cleanup temporary files, and complete
1988# config.log. We remove comments because anyway the quotes in there
1989# would cause problems or look ugly.
5213506e
RW
1990# WARNING: Use '\'' to represent an apostrophe within the trap.
1991# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
a8aea176
NN
1992trap 'exit_status=$?
1993 # Save into config.log some information that might help in debugging.
1994 {
1995 echo
1996
22e05272 1997 $as_echo "## ---------------- ##
a8aea176 1998## Cache variables. ##
22e05272 1999## ---------------- ##"
a8aea176
NN
2000 echo
2001 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2002(
2003 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2004 eval ac_val=\$$ac_var
2005 case $ac_val in #(
2006 *${as_nl}*)
2007 case $ac_var in #(
2008 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2009$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2010 esac
2011 case $ac_var in #(
2012 _ | IFS | as_nl) ;; #(
2013 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2014 *) { eval $ac_var=; unset $ac_var;} ;;
2015 esac ;;
2016 esac
2017 done
a8aea176 2018 (set) 2>&1 |
5213506e
RW
2019 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2020 *${as_nl}ac_space=\ *)
a8aea176 2021 sed -n \
5213506e
RW
2022 "s/'\''/'\''\\\\'\'''\''/g;
2023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2024 ;; #(
a8aea176 2025 *)
5213506e 2026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
a8aea176 2027 ;;
5213506e
RW
2028 esac |
2029 sort
2030)
a8aea176
NN
2031 echo
2032
22e05272 2033 $as_echo "## ----------------- ##
a8aea176 2034## Output variables. ##
22e05272 2035## ----------------- ##"
a8aea176
NN
2036 echo
2037 for ac_var in $ac_subst_vars
2038 do
5213506e
RW
2039 eval ac_val=\$$ac_var
2040 case $ac_val in
2041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042 esac
2043 $as_echo "$ac_var='\''$ac_val'\''"
a8aea176
NN
2044 done | sort
2045 echo
2046
2047 if test -n "$ac_subst_files"; then
22e05272 2048 $as_echo "## ------------------- ##
5213506e 2049## File substitutions. ##
22e05272 2050## ------------------- ##"
a8aea176
NN
2051 echo
2052 for ac_var in $ac_subst_files
2053 do
5213506e
RW
2054 eval ac_val=\$$ac_var
2055 case $ac_val in
2056 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057 esac
2058 $as_echo "$ac_var='\''$ac_val'\''"
a8aea176
NN
2059 done | sort
2060 echo
2061 fi
2062
2063 if test -s confdefs.h; then
22e05272 2064 $as_echo "## ----------- ##
a8aea176 2065## confdefs.h. ##
22e05272 2066## ----------- ##"
a8aea176 2067 echo
5213506e 2068 cat confdefs.h
a8aea176
NN
2069 echo
2070 fi
2071 test "$ac_signal" != 0 &&
5213506e
RW
2072 $as_echo "$as_me: caught signal $ac_signal"
2073 $as_echo "$as_me: exit $exit_status"
a8aea176 2074 } >&5
5213506e
RW
2075 rm -f core *.core core.conftest.* &&
2076 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
a8aea176 2077 exit $exit_status
5213506e 2078' 0
a8aea176 2079for ac_signal in 1 2 13 15; do
5213506e 2080 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
a8aea176
NN
2081done
2082ac_signal=0
dfac8a13 2083
a8aea176 2084# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2085rm -f -r conftest* confdefs.h
2086
2087$as_echo "/* confdefs.h */" > confdefs.h
a8aea176
NN
2088
2089# Predefined preprocessor variables.
2090
2091cat >>confdefs.h <<_ACEOF
2092#define PACKAGE_NAME "$PACKAGE_NAME"
2093_ACEOF
2094
a8aea176
NN
2095cat >>confdefs.h <<_ACEOF
2096#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2097_ACEOF
2098
a8aea176
NN
2099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_VERSION "$PACKAGE_VERSION"
2101_ACEOF
2102
a8aea176
NN
2103cat >>confdefs.h <<_ACEOF
2104#define PACKAGE_STRING "$PACKAGE_STRING"
2105_ACEOF
2106
a8aea176
NN
2107cat >>confdefs.h <<_ACEOF
2108#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2109_ACEOF
2110
5213506e
RW
2111cat >>confdefs.h <<_ACEOF
2112#define PACKAGE_URL "$PACKAGE_URL"
2113_ACEOF
2114
a8aea176
NN
2115
2116# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2117# Prefer an explicitly selected file to automatically selected ones.
2118ac_site_file1=NONE
2119ac_site_file2=NONE
2120if test -n "$CONFIG_SITE"; then
22e05272
JM
2121 # We do not want a PATH search for config.site.
2122 case $CONFIG_SITE in #((
2123 -*) ac_site_file1=./$CONFIG_SITE;;
2124 */*) ac_site_file1=$CONFIG_SITE;;
2125 *) ac_site_file1=./$CONFIG_SITE;;
2126 esac
5213506e
RW
2127elif test "x$prefix" != xNONE; then
2128 ac_site_file1=$prefix/share/config.site
2129 ac_site_file2=$prefix/etc/config.site
2130else
2131 ac_site_file1=$ac_default_prefix/share/config.site
2132 ac_site_file2=$ac_default_prefix/etc/config.site
2133fi
2134for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2135do
2136 test "x$ac_site_file" = xNONE && continue
22e05272 2137 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2139$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a8aea176 2140 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2141 . "$ac_site_file" \
2142 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2144as_fn_error $? "failed to load site script $ac_site_file
2145See \`config.log' for more details" "$LINENO" 5; }
dfac8a13
TT
2146 fi
2147done
2148
2149if test -r "$cache_file"; then
22e05272
JM
2150 # Some versions of bash will fail to source /dev/null (special files
2151 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2152 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2154$as_echo "$as_me: loading cache $cache_file" >&6;}
a8aea176 2155 case $cache_file in
5213506e
RW
2156 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2157 *) . "./$cache_file";;
a8aea176
NN
2158 esac
2159 fi
dfac8a13 2160else
5213506e
RW
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2162$as_echo "$as_me: creating cache $cache_file" >&6;}
a8aea176
NN
2163 >$cache_file
2164fi
2165
22e05272
JM
2166as_fn_append ac_header_list " stdlib.h"
2167as_fn_append ac_header_list " unistd.h"
2168as_fn_append ac_header_list " sys/param.h"
a8aea176
NN
2169# Check that the precious variables saved in the cache have kept the same
2170# value.
2171ac_cache_corrupted=false
5213506e 2172for ac_var in $ac_precious_vars; do
a8aea176
NN
2173 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2174 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2175 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2176 eval ac_new_val=\$ac_env_${ac_var}_value
a8aea176
NN
2177 case $ac_old_set,$ac_new_set in
2178 set,)
5213506e
RW
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2180$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
a8aea176
NN
2181 ac_cache_corrupted=: ;;
2182 ,set)
5213506e
RW
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2184$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
a8aea176
NN
2185 ac_cache_corrupted=: ;;
2186 ,);;
2187 *)
2188 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2189 # differences in whitespace do not lead to failure.
2190 ac_old_val_w=`echo x $ac_old_val`
2191 ac_new_val_w=`echo x $ac_new_val`
2192 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2194$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2195 ac_cache_corrupted=:
2196 else
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2198$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2199 eval $ac_var=\$ac_old_val
2200 fi
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2202$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2204$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
a8aea176
NN
2205 fi;;
2206 esac
2207 # Pass precious variables to config.status.
2208 if test "$ac_new_set" = set; then
2209 case $ac_new_val in
5213506e 2210 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a8aea176
NN
2211 *) ac_arg=$ac_var=$ac_new_val ;;
2212 esac
2213 case " $ac_configure_args " in
2214 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2215 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
a8aea176
NN
2216 esac
2217 fi
2218done
2219if $ac_cache_corrupted; then
5213506e
RW
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2223$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2224 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
dfac8a13 2225fi
5213506e
RW
2226## -------------------- ##
2227## Main body of script. ##
2228## -------------------- ##
dfac8a13
TT
2229
2230ac_ext=c
dfac8a13 2231ac_cpp='$CPP $CPPFLAGS'
a8aea176
NN
2232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2234ac_compiler_gnu=$ac_cv_c_compiler_gnu
2235
2236
2237
a8aea176 2238
dfac8a13
TT
2239
2240
0fd91e0a 2241
8006534c
NC
2242if test -n "${with_target_subdir}"; then
2243 # Default to --enable-multilib
5213506e
RW
2244# Check whether --enable-multilib was given.
2245if test "${enable_multilib+set}" = set; then :
2246 enableval=$enable_multilib; case "$enableval" in
076e5443
PB
2247 yes) multilib=yes ;;
2248 no) multilib=no ;;
22e05272 2249 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
076e5443
PB
2250 esac
2251else
2252 multilib=yes
5213506e
RW
2253fi
2254
6706f116 2255
076e5443
PB
2256# We may get other options which we leave undocumented:
2257# --with-target-subdir, --with-multisrctop, --with-multisubdir
2258# See config-ml.in if you want the gory details.
0fd91e0a 2259
076e5443
PB
2260if test "$srcdir" = "."; then
2261 if test "$with_target_subdir" != "."; then
2262 multi_basedir="$srcdir/$with_multisrctop../.."
0fd91e0a 2263 else
076e5443 2264 multi_basedir="$srcdir/$with_multisrctop.."
0fd91e0a
AO
2265 fi
2266else
076e5443 2267 multi_basedir="$srcdir/.."
0fd91e0a
AO
2268fi
2269
dfac8a13 2270
8a489465
JH
2271# Even if the default multilib is not a cross compilation,
2272# it may be that some of the other multilibs are.
2273if test $cross_compiling = no && test $multilib = yes \
2274 && test "x${with_multisubdir}" != x ; then
2275 cross_compiling=maybe
2276fi
2277
5213506e 2278ac_config_commands="$ac_config_commands default-1"
076e5443 2279
8006534c 2280fi
076e5443
PB
2281
2282ac_aux_dir=
5213506e 2283for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2284 if test -f "$ac_dir/install-sh"; then
2285 ac_aux_dir=$ac_dir
2286 ac_install_sh="$ac_aux_dir/install-sh -c"
2287 break
2288 elif test -f "$ac_dir/install.sh"; then
2289 ac_aux_dir=$ac_dir
2290 ac_install_sh="$ac_aux_dir/install.sh -c"
2291 break
2292 elif test -f "$ac_dir/shtool"; then
2293 ac_aux_dir=$ac_dir
2294 ac_install_sh="$ac_aux_dir/shtool install -c"
2295 break
2296 fi
0fd91e0a
AO
2297done
2298if test -z "$ac_aux_dir"; then
22e05272 2299 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
0fd91e0a 2300fi
5213506e
RW
2301
2302# These three variables are undocumented and unsupported,
2303# and are intended to be withdrawn in a future Autoconf release.
2304# They can cause serious problems if a builder's source tree is in a directory
2305# whose full name contains unusual characters.
2306ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2307ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2308ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2309
0fd91e0a 2310
dfac8a13 2311# Make sure we can run config.sub.
5213506e 2312$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2313 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2314
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2316$as_echo_n "checking build system type... " >&6; }
22e05272 2317if ${ac_cv_build+:} false; then :
5213506e
RW
2318 $as_echo_n "(cached) " >&6
2319else
2320 ac_build_alias=$build_alias
2321test "x$ac_build_alias" = x &&
2322 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2323test "x$ac_build_alias" = x &&
22e05272 2324 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2325ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2326 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2327
2328fi
2329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2330$as_echo "$ac_cv_build" >&6; }
2331case $ac_cv_build in
2332*-*-*) ;;
22e05272 2333*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2334esac
a8aea176 2335build=$ac_cv_build
5213506e
RW
2336ac_save_IFS=$IFS; IFS='-'
2337set x $ac_cv_build
2338shift
2339build_cpu=$1
2340build_vendor=$2
2341shift; shift
2342# Remember, the first character of IFS is used to create $*,
2343# except with old shells:
2344build_os=$*
2345IFS=$ac_save_IFS
2346case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a8aea176
NN
2347
2348
5213506e
RW
2349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2350$as_echo_n "checking host system type... " >&6; }
22e05272 2351if ${ac_cv_host+:} false; then :
5213506e
RW
2352 $as_echo_n "(cached) " >&6
2353else
2354 if test "x$host_alias" = x; then
2355 ac_cv_host=$ac_cv_build
a8aea176 2356else
5213506e 2357 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2358 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2359fi
a8aea176
NN
2360
2361fi
5213506e
RW
2362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2363$as_echo "$ac_cv_host" >&6; }
2364case $ac_cv_host in
2365*-*-*) ;;
22e05272 2366*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2367esac
a8aea176 2368host=$ac_cv_host
5213506e
RW
2369ac_save_IFS=$IFS; IFS='-'
2370set x $ac_cv_host
2371shift
2372host_cpu=$1
2373host_vendor=$2
2374shift; shift
2375# Remember, the first character of IFS is used to create $*,
2376# except with old shells:
2377host_os=$*
2378IFS=$ac_save_IFS
2379case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
a8aea176
NN
2380
2381
5213506e
RW
2382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2383$as_echo_n "checking target system type... " >&6; }
22e05272 2384if ${ac_cv_target+:} false; then :
5213506e 2385 $as_echo_n "(cached) " >&6
a8aea176 2386else
5213506e
RW
2387 if test "x$target_alias" = x; then
2388 ac_cv_target=$ac_cv_host
2389else
2390 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2391 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2392fi
dfac8a13 2393
a8aea176 2394fi
5213506e
RW
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2396$as_echo "$ac_cv_target" >&6; }
2397case $ac_cv_target in
2398*-*-*) ;;
22e05272 2399*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2400esac
a8aea176 2401target=$ac_cv_target
5213506e
RW
2402ac_save_IFS=$IFS; IFS='-'
2403set x $ac_cv_target
2404shift
2405target_cpu=$1
2406target_vendor=$2
2407shift; shift
2408# Remember, the first character of IFS is used to create $*,
2409# except with old shells:
2410target_os=$*
2411IFS=$ac_save_IFS
2412case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
dfac8a13 2413
dfac8a13 2414
a8aea176
NN
2415# The aliases save the names the user supplied, while $host etc.
2416# will get canonicalized.
2417test -n "$target_alias" &&
dfac8a13
TT
2418 test "$program_prefix$program_suffix$program_transform_name" = \
2419 NONENONEs,x,x, &&
2420 program_prefix=${target_alias}-
2421
5213506e 2422
8b55628e 2423# This works around an automake problem.
1e6347d8 2424mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
8b55628e
TT
2425
2426
22e05272 2427am__api_version='1.15'
5213506e 2428
dfac8a13
TT
2429# Find a good install program. We prefer a C program (faster),
2430# so one script is as good as another. But avoid the broken or
2431# incompatible versions:
2432# SysV /etc/install, /usr/sbin/install
2433# SunOS /usr/etc/install
2434# IRIX /sbin/install
2435# AIX /bin/install
a8aea176 2436# AmigaOS /C/install, which installs bootblocks on floppy discs
dfac8a13
TT
2437# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2438# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2439# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a8aea176 2440# OS/2's system install, which has a completely different semantic
dfac8a13 2441# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2442# Reject install programs that cannot install multiple files.
5213506e
RW
2443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2444$as_echo_n "checking for a BSD-compatible install... " >&6; }
dfac8a13 2445if test -z "$INSTALL"; then
22e05272 2446if ${ac_cv_path_install+:} false; then :
5213506e 2447 $as_echo_n "(cached) " >&6
dfac8a13 2448else
a8aea176
NN
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450for as_dir in $PATH
2451do
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
5213506e
RW
2454 # Account for people who put trailing slashes in PATH elements.
2455case $as_dir/ in #((
2456 ./ | .// | /[cC]/* | \
a8aea176 2457 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2458 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
a8aea176
NN
2459 /usr/ucb/* ) ;;
2460 *)
2461 # OSF1 and SCO ODT 3.0 have their own names for install.
2462 # Don't use installbsd from OSF since it installs stuff as root
2463 # by default.
2464 for ac_prog in ginstall scoinst install; do
2465 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2466 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
dfac8a13 2467 if test $ac_prog = install &&
a8aea176 2468 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
dfac8a13
TT
2469 # AIX install. It has an incompatible calling convention.
2470 :
a8aea176
NN
2471 elif test $ac_prog = install &&
2472 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2473 # program-specific install script used by HP pwplus--don't use.
2474 :
dfac8a13 2475 else
38d24731
RW
2476 rm -rf conftest.one conftest.two conftest.dir
2477 echo one > conftest.one
2478 echo two > conftest.two
2479 mkdir conftest.dir
2480 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2481 test -s conftest.one && test -s conftest.two &&
2482 test -s conftest.dir/conftest.one &&
2483 test -s conftest.dir/conftest.two
2484 then
2485 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2486 break 3
2487 fi
dfac8a13
TT
2488 fi
2489 fi
2490 done
a8aea176
NN
2491 done
2492 ;;
2493esac
5213506e
RW
2494
2495 done
2496IFS=$as_save_IFS
a8aea176 2497
38d24731 2498rm -rf conftest.one conftest.two conftest.dir
dfac8a13
TT
2499
2500fi
2501 if test "${ac_cv_path_install+set}" = set; then
a8aea176 2502 INSTALL=$ac_cv_path_install
dfac8a13 2503 else
38d24731
RW
2504 # As a last resort, use the slow shell script. Don't cache a
2505 # value for INSTALL within a source directory, because that will
dfac8a13 2506 # break other packages using the cache if that directory is
38d24731 2507 # removed, or if the value is a relative name.
a8aea176 2508 INSTALL=$ac_install_sh
dfac8a13
TT
2509 fi
2510fi
5213506e
RW
2511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2512$as_echo "$INSTALL" >&6; }
dfac8a13
TT
2513
2514# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2515# It thinks the first close brace ends the variable substitution.
2516test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2517
a8aea176 2518test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
dfac8a13
TT
2519
2520test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2521
5213506e
RW
2522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2523$as_echo_n "checking whether build environment is sane... " >&6; }
5213506e
RW
2524# Reject unsafe characters in $srcdir or the absolute working directory
2525# name. Accept space and tab only in the latter.
2526am_lf='
2527'
2528case `pwd` in
2529 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 2530 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5213506e
RW
2531esac
2532case $srcdir in
2533 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 2534 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5213506e
RW
2535esac
2536
22e05272 2537# Do 'set' in a subshell so we don't clobber the current shell's
dfac8a13
TT
2538# arguments. Must try -L first in case configure is actually a
2539# symlink; some systems play weird games with the mod time of symlinks
2540# (eg FreeBSD returns the mod time of the symlink's containing
2541# directory).
2542if (
22e05272
JM
2543 am_has_slept=no
2544 for am_try in 1 2; do
2545 echo "timestamp, slept: $am_has_slept" > conftest.file
2546 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2547 if test "$*" = "X"; then
2548 # -L didn't work.
2549 set X `ls -t "$srcdir/configure" conftest.file`
2550 fi
2551 if test "$*" != "X $srcdir/configure conftest.file" \
2552 && test "$*" != "X conftest.file $srcdir/configure"; then
2553
2554 # If neither matched, then we have a broken ls. This can happen
2555 # if, for instance, CONFIG_SHELL is bash and it inherits a
2556 # broken ls alias from the environment. This has actually
2557 # happened. Such a system could not be considered "sane".
2558 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2559 alias in your environment" "$LINENO" 5
2560 fi
2561 if test "$2" = conftest.file || test $am_try -eq 2; then
2562 break
2563 fi
2564 # Just in case.
2565 sleep 1
2566 am_has_slept=yes
2567 done
9fabf579 2568 test "$2" = conftest.file
dfac8a13
TT
2569 )
2570then
2571 # Ok.
2572 :
2573else
22e05272 2574 as_fn_error $? "newly created file is older than distributed files!
5213506e 2575Check your system clock" "$LINENO" 5
dfac8a13 2576fi
5213506e
RW
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2578$as_echo "yes" >&6; }
22e05272
JM
2579# If we didn't sleep, we still need to ensure time stamps of config.status and
2580# generated files are strictly newer.
2581am_sleep_pid=
2582if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2583 ( sleep 1 ) &
2584 am_sleep_pid=$!
2585fi
2586
2587rm -f conftest.file
2588
dfac8a13 2589test "$program_prefix" != NONE &&
5213506e 2590 program_transform_name="s&^&$program_prefix&;$program_transform_name"
dfac8a13
TT
2591# Use a double $ so make ignores it.
2592test "$program_suffix" != NONE &&
5213506e
RW
2593 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2594# Double any \ or $.
a8aea176 2595# By default was `s,x,x', remove it if useless.
5213506e
RW
2596ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2597program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
a8aea176 2598
22e05272
JM
2599# Expand $ac_aux_dir to an absolute path.
2600am_aux_dir=`cd "$ac_aux_dir" && pwd`
9fabf579 2601
5213506e
RW
2602if test x"${MISSING+set}" != xset; then
2603 case $am_aux_dir in
2604 *\ * | *\ *)
2605 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2606 *)
2607 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2608 esac
2609fi
9fabf579 2610# Use eval to expand $SHELL
22e05272
JM
2611if eval "$MISSING --is-lightweight"; then
2612 am_missing_run="$MISSING "
9fabf579
KC
2613else
2614 am_missing_run=
22e05272
JM
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2616$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
076e5443
PB
2617fi
2618
22e05272 2619if test x"${install_sh+set}" != xset; then
5213506e
RW
2620 case $am_aux_dir in
2621 *\ * | *\ *)
2622 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2623 *)
2624 install_sh="\${SHELL} $am_aux_dir/install-sh"
2625 esac
2626fi
2627
22e05272
JM
2628# Installed binaries are usually stripped using 'strip' when the user
2629# run "make install-strip". However 'strip' might not be the right
5213506e 2630# tool to use in cross-compilation environments, therefore Automake
22e05272 2631# will honor the 'STRIP' environment variable to overrule this program.
5213506e
RW
2632if test "$cross_compiling" != no; then
2633 if test -n "$ac_tool_prefix"; then
2634 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2635set dummy ${ac_tool_prefix}strip; ac_word=$2
2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2638if ${ac_cv_prog_STRIP+:} false; then :
5213506e 2639 $as_echo_n "(cached) " >&6
9fabf579 2640else
5213506e
RW
2641 if test -n "$STRIP"; then
2642 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9fabf579
KC
2643else
2644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645for as_dir in $PATH
2646do
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
5213506e 2649 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213506e
RW
2651 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9fabf579
KC
2653 break 2
2654 fi
2655done
5213506e
RW
2656 done
2657IFS=$as_save_IFS
9fabf579
KC
2658
2659fi
2660fi
5213506e
RW
2661STRIP=$ac_cv_prog_STRIP
2662if test -n "$STRIP"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2664$as_echo "$STRIP" >&6; }
9fabf579 2665else
5213506e
RW
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667$as_echo "no" >&6; }
9fabf579
KC
2668fi
2669
9fabf579 2670
5213506e
RW
2671fi
2672if test -z "$ac_cv_prog_STRIP"; then
2673 ac_ct_STRIP=$STRIP
2674 # Extract the first word of "strip", so it can be a program name with args.
2675set dummy strip; ac_word=$2
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2678if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5213506e
RW
2679 $as_echo_n "(cached) " >&6
2680else
2681 if test -n "$ac_ct_STRIP"; then
2682 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213506e
RW
2691 ac_cv_prog_ac_ct_STRIP="strip"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695done
2696 done
2697IFS=$as_save_IFS
2698
2699fi
2700fi
2701ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2702if test -n "$ac_ct_STRIP"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2704$as_echo "$ac_ct_STRIP" >&6; }
2705else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707$as_echo "no" >&6; }
2708fi
2709
2710 if test "x$ac_ct_STRIP" = x; then
2711 STRIP=":"
2712 else
2713 case $cross_compiling:$ac_tool_warned in
2714yes:)
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2717ac_tool_warned=yes ;;
2718esac
2719 STRIP=$ac_ct_STRIP
2720 fi
2721else
2722 STRIP="$ac_cv_prog_STRIP"
2723fi
2724
2725fi
2726INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2727
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2729$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2730if test -z "$MKDIR_P"; then
22e05272 2731 if ${ac_cv_path_mkdir+:} false; then :
5213506e
RW
2732 $as_echo_n "(cached) " >&6
2733else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2736do
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_prog in mkdir gmkdir; do
2740 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2741 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5213506e
RW
2742 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2743 'mkdir (GNU coreutils) '* | \
2744 'mkdir (coreutils) '* | \
2745 'mkdir (fileutils) '4.1*)
2746 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2747 break 3;;
2748 esac
2749 done
2750 done
2751 done
2752IFS=$as_save_IFS
2753
2754fi
2755
22e05272 2756 test -d ./--version && rmdir ./--version
5213506e
RW
2757 if test "${ac_cv_path_mkdir+set}" = set; then
2758 MKDIR_P="$ac_cv_path_mkdir -p"
2759 else
2760 # As a last resort, use the slow shell script. Don't cache a
2761 # value for MKDIR_P within a source directory, because that will
2762 # break other packages using the cache if that directory is
2763 # removed, or if the value is a relative name.
5213506e
RW
2764 MKDIR_P="$ac_install_sh -d"
2765 fi
2766fi
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2768$as_echo "$MKDIR_P" >&6; }
2769
5213506e
RW
2770for ac_prog in gawk mawk nawk awk
2771do
2772 # Extract the first word of "$ac_prog", so it can be a program name with args.
2773set dummy $ac_prog; ac_word=$2
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2776if ${ac_cv_prog_AWK+:} false; then :
5213506e 2777 $as_echo_n "(cached) " >&6
dfac8a13 2778else
5213506e
RW
2779 if test -n "$AWK"; then
2780 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2781else
2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783for as_dir in $PATH
2784do
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213506e
RW
2789 ac_cv_prog_AWK="$ac_prog"
2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2792 fi
2793done
2794 done
2795IFS=$as_save_IFS
2796
dfac8a13 2797fi
5213506e
RW
2798fi
2799AWK=$ac_cv_prog_AWK
2800if test -n "$AWK"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2802$as_echo "$AWK" >&6; }
2803else
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805$as_echo "no" >&6; }
2806fi
2807
2808
2809 test -n "$AWK" && break
2810done
2811
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2813$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2814set x ${MAKE-make}
2815ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 2816if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5213506e
RW
2817 $as_echo_n "(cached) " >&6
2818else
2819 cat >conftest.make <<\_ACEOF
2820SHELL = /bin/sh
2821all:
2822 @echo '@@@%%%=$(MAKE)=@@@%%%'
2823_ACEOF
22e05272 2824# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5213506e
RW
2825case `${MAKE-make} -f conftest.make 2>/dev/null` in
2826 *@@@%%%=?*=@@@%%%*)
2827 eval ac_cv_prog_make_${ac_make}_set=yes;;
2828 *)
2829 eval ac_cv_prog_make_${ac_make}_set=no;;
2830esac
a8aea176 2831rm -f conftest.make
dfac8a13 2832fi
5213506e
RW
2833if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2835$as_echo "yes" >&6; }
dfac8a13
TT
2836 SET_MAKE=
2837else
5213506e
RW
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839$as_echo "no" >&6; }
dfac8a13
TT
2840 SET_MAKE="MAKE=${MAKE-make}"
2841fi
2842
9fabf579
KC
2843rm -rf .tst 2>/dev/null
2844mkdir .tst 2>/dev/null
2845if test -d .tst; then
2846 am__leading_dot=.
2847else
2848 am__leading_dot=_
2849fi
2850rmdir .tst 2>/dev/null
dfac8a13 2851
22e05272
JM
2852# Check whether --enable-silent-rules was given.
2853if test "${enable_silent_rules+set}" = set; then :
2854 enableval=$enable_silent_rules;
2855fi
2856
2857case $enable_silent_rules in # (((
2858 yes) AM_DEFAULT_VERBOSITY=0;;
2859 no) AM_DEFAULT_VERBOSITY=1;;
2860 *) AM_DEFAULT_VERBOSITY=1;;
2861esac
2862am_make=${MAKE-make}
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2864$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2865if ${am_cv_make_support_nested_variables+:} false; then :
2866 $as_echo_n "(cached) " >&6
2867else
2868 if $as_echo 'TRUE=$(BAR$(V))
2869BAR0=false
2870BAR1=true
2871V=1
2872am__doit:
2873 @$(TRUE)
2874.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2875 am_cv_make_support_nested_variables=yes
2876else
2877 am_cv_make_support_nested_variables=no
2878fi
2879fi
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2881$as_echo "$am_cv_make_support_nested_variables" >&6; }
2882if test $am_cv_make_support_nested_variables = yes; then
2883 AM_V='$(V)'
2884 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2885else
2886 AM_V=$AM_DEFAULT_VERBOSITY
2887 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2888fi
2889AM_BACKSLASH='\'
2890
5213506e
RW
2891if test "`cd $srcdir && pwd`" != "`pwd`"; then
2892 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2893 # is not polluted with repeated "-I."
2894 am__isrc=' -I$(srcdir)'
2895 # test to see if srcdir already configured
2896 if test -f $srcdir/config.status; then
22e05272 2897 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5213506e 2898 fi
dfac8a13 2899fi
a8aea176 2900
9fabf579
KC
2901# test whether we have cygpath
2902if test -z "$CYGPATH_W"; then
2903 if (cygpath --version) >/dev/null 2>/dev/null; then
2904 CYGPATH_W='cygpath -w'
2905 else
2906 CYGPATH_W=echo
2907 fi
2908fi
2909
2910
2911# Define the identity of the package.
22e05272
JM
2912 PACKAGE='zlib'
2913 VERSION='1.1.4'
9fabf579
KC
2914
2915
a8aea176 2916cat >>confdefs.h <<_ACEOF
dfac8a13 2917#define PACKAGE "$PACKAGE"
a8aea176 2918_ACEOF
dfac8a13 2919
a8aea176
NN
2920
2921cat >>confdefs.h <<_ACEOF
dfac8a13 2922#define VERSION "$VERSION"
a8aea176 2923_ACEOF
dfac8a13 2924
9fabf579
KC
2925# Some tools Automake needs.
2926
2927ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2928
2929
2930AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2931
2932
2933AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
dfac8a13
TT
2934
2935
9fabf579
KC
2936AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2937
2938
2939MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2940
22e05272
JM
2941# For better backward compatibility. To be removed once Automake 1.9.x
2942# dies out for good. For more background, see:
2943# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2944# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2945mkdir_p='$(MKDIR_P)'
2946
2947# We need awk for the "check" target (and possibly the TAP driver). The
2948# system "awk" is bad on some platforms.
39ba2a0e
MH
2949# Always define AMTAR for backward compatibility. Yes, it's still used
2950# in the wild :-( We should find a proper way to deprecate it ...
2951AMTAR='$${TAR-tar}'
17210dff 2952
22e05272
JM
2953
2954# We'll loop over all known methods to create a tar archive until one works.
2955_am_tools='gnutar pax cpio none'
2956
39ba2a0e 2957am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
17210dff
TT
2958
2959
9fabf579 2960
dfac8a13
TT
2961
2962
2963
22e05272
JM
2964# POSIX will say in a future version that running "rm -f" with no argument
2965# is OK; and we want to be able to make that assumption in our Makefile
2966# recipes. So use an aggressive probe to check that the usage we want is
2967# actually supported "in the wild" to an acceptable degree.
2968# See automake bug#10828.
2969# To make any issue more visible, cause the running configure to be aborted
2970# by default if the 'rm' program in use doesn't match our expectations; the
2971# user can still override this though.
2972if rm -f && rm -fr && rm -rf; then : OK; else
2973 cat >&2 <<'END'
2974Oops!
2975
2976Your 'rm' program seems unable to run without file operands specified
2977on the command line, even when the '-f' option is present. This is contrary
2978to the behaviour of most rm programs out there, and not conforming with
2979the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2980
2981Please tell bug-automake@gnu.org about your system, including the value
2982of your $PATH and any error possibly output before this message. This
2983can help us improve future automake versions.
2984
2985END
2986 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2987 echo 'Configuration will proceed anyway, since you have set the' >&2
2988 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2989 echo >&2
2990 else
2991 cat >&2 <<'END'
2992Aborting the configuration process, to ensure you take notice of the issue.
2993
2994You can download and install GNU coreutils to get an 'rm' implementation
2995that behaves properly: <http://www.gnu.org/software/coreutils/>.
2996
2997If you want to complete the configuration process using your problematic
2998'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2999to "yes", and re-run configure.
3000
3001END
3002 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3003 fi
3004fi
3005
3006
5213506e
RW
3007
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3009$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3010 # Check whether --enable-maintainer-mode was given.
3011if test "${enable_maintainer_mode+set}" = set; then :
3012 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
e093c992
AG
3013else
3014 USE_MAINTAINER_MODE=no
5213506e 3015fi
e093c992 3016
5213506e
RW
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3018$as_echo "$USE_MAINTAINER_MODE" >&6; }
3019 if test $USE_MAINTAINER_MODE = yes; then
e093c992
AG
3020 MAINTAINER_MODE_TRUE=
3021 MAINTAINER_MODE_FALSE='#'
3022else
3023 MAINTAINER_MODE_TRUE='#'
3024 MAINTAINER_MODE_FALSE=
3025fi
9fabf579 3026
e093c992 3027 MAINT=$MAINTAINER_MODE_TRUE
a8aea176
NN
3028
3029
e093c992
AG
3030
3031
5213506e
RW
3032# Check whether --with-target-subdir was given.
3033if test "${with_target_subdir+set}" = set; then :
3034 withval=$with_target_subdir;
3035fi
a8aea176 3036
a8aea176
NN
3037
3038if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
3039 COMPPATH=.
3040else
3041 COMPPATH=..
dfac8a13
TT
3042fi
3043
a8aea176
NN
3044
3045
5213506e
RW
3046# Check whether --with-cross-host was given.
3047if test "${with_cross_host+set}" = set; then :
3048 withval=$with_cross_host;
3049fi
dfac8a13
TT
3050
3051
5213506e
RW
3052# Check whether --enable-multilib was given.
3053if test "${enable_multilib+set}" = set; then :
3054 enableval=$enable_multilib; case "${enableval}" in
dfac8a13
TT
3055 yes) multilib=yes ;;
3056 no) multilib=no ;;
22e05272 3057 *) as_fn_error $? "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
dfac8a13
TT
3058 esac
3059else
67d08194 3060 test -z "$with_target_subdir" && multilib=no || multilib=yes
5213506e 3061fi
dfac8a13 3062
79a9a529 3063
5213506e
RW
3064# Check whether --with-system-zlib was given.
3065if test "${with_system_zlib+set}" = set; then :
3066 withval=$with_system_zlib;
3067fi
3068
a8aea176
NN
3069
3070# Make sure we don't test executables when making cross-tools.
3071
3072
076e5443
PB
3073# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3074# We must force CC to /not/ be precious variables; otherwise
3075# the wrong, non-multilib-adjusted value will be used in multilibs.
3076# As a side effect, we have to subst CFLAGS ourselves.
3077
3078
3079
a8aea176
NN
3080ac_ext=c
3081ac_cpp='$CPP $CPPFLAGS'
3082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3084ac_compiler_gnu=$ac_cv_c_compiler_gnu
3085if test -n "$ac_tool_prefix"; then
3086 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3087set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3090if ${ac_cv_prog_CC+:} false; then :
5213506e 3091 $as_echo_n "(cached) " >&6
a8aea176
NN
3092else
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC="$CC" # Let the user override the test.
3095else
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH
3098do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
5213506e 3101 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a8aea176 3103 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a8aea176
NN
3105 break 2
3106 fi
3107done
5213506e
RW
3108 done
3109IFS=$as_save_IFS
79a9a529 3110
a8aea176
NN
3111fi
3112fi
3113CC=$ac_cv_prog_CC
3114if test -n "$CC"; then
5213506e
RW
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3116$as_echo "$CC" >&6; }
a8aea176 3117else
5213506e
RW
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119$as_echo "no" >&6; }
a8aea176 3120fi
025fd00e 3121
5213506e 3122
a8aea176
NN
3123fi
3124if test -z "$ac_cv_prog_CC"; then
3125 ac_ct_CC=$CC
3126 # Extract the first word of "gcc", so it can be a program name with args.
dfac8a13 3127set dummy gcc; ac_word=$2
5213506e
RW
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3130if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 3131 $as_echo_n "(cached) " >&6
a8aea176
NN
3132else
3133 if test -n "$ac_ct_CC"; then
3134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3135else
3136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137for as_dir in $PATH
3138do
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
5213506e 3141 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a8aea176 3143 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a8aea176
NN
3145 break 2
3146 fi
3147done
5213506e
RW
3148 done
3149IFS=$as_save_IFS
a8aea176
NN
3150
3151fi
3152fi
3153ac_ct_CC=$ac_cv_prog_ac_ct_CC
3154if test -n "$ac_ct_CC"; then
5213506e
RW
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3156$as_echo "$ac_ct_CC" >&6; }
a8aea176 3157else
5213506e
RW
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159$as_echo "no" >&6; }
a8aea176
NN
3160fi
3161
5213506e
RW
3162 if test "x$ac_ct_CC" = x; then
3163 CC=""
3164 else
3165 case $cross_compiling:$ac_tool_warned in
3166yes:)
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3169ac_tool_warned=yes ;;
3170esac
3171 CC=$ac_ct_CC
3172 fi
a8aea176
NN
3173else
3174 CC="$ac_cv_prog_CC"
3175fi
3176
3177if test -z "$CC"; then
5213506e
RW
3178 if test -n "$ac_tool_prefix"; then
3179 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
a8aea176 3180set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3183if ${ac_cv_prog_CC+:} false; then :
5213506e 3184 $as_echo_n "(cached) " >&6
dfac8a13
TT
3185else
3186 if test -n "$CC"; then
3187 ac_cv_prog_CC="$CC" # Let the user override the test.
3188else
a8aea176
NN
3189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190for as_dir in $PATH
3191do
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
5213506e 3194 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a8aea176 3196 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a8aea176
NN
3198 break 2
3199 fi
3200done
5213506e
RW
3201 done
3202IFS=$as_save_IFS
a8aea176 3203
dfac8a13
TT
3204fi
3205fi
a8aea176 3206CC=$ac_cv_prog_CC
dfac8a13 3207if test -n "$CC"; then
5213506e
RW
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3209$as_echo "$CC" >&6; }
dfac8a13 3210else
5213506e
RW
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212$as_echo "no" >&6; }
dfac8a13
TT
3213fi
3214
a8aea176 3215
5213506e 3216 fi
a8aea176 3217fi
dfac8a13
TT
3218if test -z "$CC"; then
3219 # Extract the first word of "cc", so it can be a program name with args.
3220set dummy cc; ac_word=$2
5213506e
RW
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3223if ${ac_cv_prog_CC+:} false; then :
5213506e 3224 $as_echo_n "(cached) " >&6
dfac8a13
TT
3225else
3226 if test -n "$CC"; then
3227 ac_cv_prog_CC="$CC" # Let the user override the test.
3228else
dfac8a13 3229 ac_prog_rejected=no
a8aea176
NN
3230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231for as_dir in $PATH
3232do
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
5213506e 3235 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a8aea176
NN
3237 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3238 ac_prog_rejected=yes
3239 continue
3240 fi
3241 ac_cv_prog_CC="cc"
5213506e 3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a8aea176
NN
3243 break 2
3244 fi
3245done
5213506e
RW
3246 done
3247IFS=$as_save_IFS
a8aea176 3248
dfac8a13
TT
3249if test $ac_prog_rejected = yes; then
3250 # We found a bogon in the path, so make sure we never use it.
3251 set dummy $ac_cv_prog_CC
3252 shift
a8aea176 3253 if test $# != 0; then
dfac8a13
TT
3254 # We chose a different compiler from the bogus one.
3255 # However, it has the same basename, so the bogon will be chosen
3256 # first if we set CC to just the basename; use the full file name.
3257 shift
a8aea176 3258 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
dfac8a13
TT
3259 fi
3260fi
3261fi
3262fi
a8aea176 3263CC=$ac_cv_prog_CC
dfac8a13 3264if test -n "$CC"; then
5213506e
RW
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3266$as_echo "$CC" >&6; }
dfac8a13 3267else
5213506e
RW
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269$as_echo "no" >&6; }
dfac8a13
TT
3270fi
3271
5213506e 3272
dfac8a13 3273fi
a8aea176
NN
3274if test -z "$CC"; then
3275 if test -n "$ac_tool_prefix"; then
5213506e 3276 for ac_prog in cl.exe
a8aea176
NN
3277 do
3278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3279set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3282if ${ac_cv_prog_CC+:} false; then :
5213506e 3283 $as_echo_n "(cached) " >&6
dfac8a13 3284else
a8aea176
NN
3285 if test -n "$CC"; then
3286 ac_cv_prog_CC="$CC" # Let the user override the test.
dfac8a13 3287else
a8aea176
NN
3288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289for as_dir in $PATH
3290do
3291 IFS=$as_save_IFS
3292 test -z "$as_dir" && as_dir=.
5213506e 3293 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a8aea176 3295 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a8aea176
NN
3297 break 2
3298 fi
3299done
5213506e
RW
3300 done
3301IFS=$as_save_IFS
a8aea176 3302
dfac8a13 3303fi
a8aea176
NN
3304fi
3305CC=$ac_cv_prog_CC
3306if test -n "$CC"; then
5213506e
RW
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3308$as_echo "$CC" >&6; }
a8aea176 3309else
5213506e
RW
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311$as_echo "no" >&6; }
dfac8a13
TT
3312fi
3313
5213506e 3314
a8aea176
NN
3315 test -n "$CC" && break
3316 done
3317fi
3318if test -z "$CC"; then
3319 ac_ct_CC=$CC
5213506e 3320 for ac_prog in cl.exe
a8aea176
NN
3321do
3322 # Extract the first word of "$ac_prog", so it can be a program name with args.
3323set dummy $ac_prog; ac_word=$2
5213506e
RW
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3326if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 3327 $as_echo_n "(cached) " >&6
dfac8a13 3328else
a8aea176
NN
3329 if test -n "$ac_ct_CC"; then
3330 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3331else
3332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333for as_dir in $PATH
3334do
3335 IFS=$as_save_IFS
3336 test -z "$as_dir" && as_dir=.
5213506e 3337 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a8aea176 3339 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a8aea176
NN
3341 break 2
3342 fi
3343done
5213506e
RW
3344 done
3345IFS=$as_save_IFS
a8aea176
NN
3346
3347fi
3348fi
3349ac_ct_CC=$ac_cv_prog_ac_ct_CC
3350if test -n "$ac_ct_CC"; then
5213506e
RW
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3352$as_echo "$ac_ct_CC" >&6; }
dfac8a13 3353else
5213506e
RW
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355$as_echo "no" >&6; }
dfac8a13 3356fi
dfac8a13 3357
5213506e 3358
a8aea176
NN
3359 test -n "$ac_ct_CC" && break
3360done
3361
5213506e
RW
3362 if test "x$ac_ct_CC" = x; then
3363 CC=""
3364 else
3365 case $cross_compiling:$ac_tool_warned in
3366yes:)
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3369ac_tool_warned=yes ;;
3370esac
3371 CC=$ac_ct_CC
3372 fi
a8aea176
NN
3373fi
3374
3375fi
3376
3377
5213506e
RW
3378test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3380as_fn_error $? "no acceptable C compiler found in \$PATH
3381See \`config.log' for more details" "$LINENO" 5; }
a8aea176
NN
3382
3383# Provide some information about the compiler.
5213506e
RW
3384$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3385set X $ac_compile
3386ac_compiler=$2
3387for ac_option in --version -v -V -qversion; do
3388 { { ac_try="$ac_compiler $ac_option >&5"
3389case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392esac
3393eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394$as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
a8aea176 3396 ac_status=$?
5213506e
RW
3397 if test -s conftest.err; then
3398 sed '10a\
3399... rest of stderr output deleted ...
3400 10q' conftest.err >conftest.er1
3401 cat conftest.er1 >&5
5213506e 3402 fi
22e05272 3403 rm -f conftest.er1 conftest.err
5213506e
RW
3404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3405 test $ac_status = 0; }
3406done
a8aea176 3407
5213506e 3408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176 3409/* end confdefs.h. */
c0827870 3410#include <stdio.h>
a8aea176
NN
3411int
3412main ()
3413{
c0827870 3414printf ("hello world\n");
a8aea176
NN
3415 ;
3416 return 0;
3417}
3418_ACEOF
3419# FIXME: Cleanup?
5213506e 3420if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
a8aea176
NN
3421 (eval $ac_link) 2>&5
3422 ac_status=$?
5213506e
RW
3423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424 test $ac_status = 0; }; then :
a8aea176
NN
3425 gcc_no_link=no
3426else
3427 gcc_no_link=yes
dfac8a13 3428fi
a8aea176
NN
3429if test x$gcc_no_link = xyes; then
3430 # Setting cross_compile will disable run tests; it will
3431 # also disable AC_CHECK_FILE but that's generally
3432 # correct if we can't link.
3433 cross_compiling=yes
3434 EXEEXT=
3435else
5213506e 3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176
NN
3437/* end confdefs.h. */
3438
3439int
3440main ()
3441{
3442
3443 ;
3444 return 0;
3445}
3446_ACEOF
3447ac_clean_files_save=$ac_clean_files
22e05272 3448ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
a8aea176
NN
3449# Try to create an executable without -o first, disregard a.out.
3450# It will help us diagnose broken compilers, and finding out an intuition
3451# of exeext.
22e05272
JM
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3453$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
3454ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3455
3456# The possible output files:
3457ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3458
3459ac_rmfiles=
3460for ac_file in $ac_files
3461do
3462 case $ac_file in
3463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3464 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3465 esac
3466done
3467rm -f $ac_rmfiles
3468
3469if { { ac_try="$ac_link_default"
3470case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473esac
3474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475$as_echo "$ac_try_echo"; } >&5
3476 (eval "$ac_link_default") 2>&5
a8aea176 3477 ac_status=$?
5213506e
RW
3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479 test $ac_status = 0; }; then :
3480 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3481# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3482# in a Makefile. We should not override ac_cv_exeext if it was cached,
3483# so that the user can short-circuit this test for compilers unknown to
3484# Autoconf.
3485for ac_file in $ac_files ''
a8aea176
NN
3486do
3487 test -f "$ac_file" || continue
3488 case $ac_file in
5213506e 3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a8aea176
NN
3490 ;;
3491 [ab].out )
3492 # We found the default executable, but exeext='' is most
3493 # certainly right.
3494 break;;
3495 *.* )
5213506e
RW
3496 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3497 then :; else
3498 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3499 fi
3500 # We set ac_cv_exeext here because the later test for it is not
3501 # safe: cross compilers may not add the suffix if given an `-o'
3502 # argument, so we may need to know it at that point already.
3503 # Even if this section looks crufty: it has the advantage of
3504 # actually working.
a8aea176
NN
3505 break;;
3506 * )
3507 break;;
3508 esac
3509done
5213506e
RW
3510test "$ac_cv_exeext" = no && ac_cv_exeext=
3511
a8aea176 3512else
5213506e
RW
3513 ac_file=''
3514fi
5213506e 3515if test -z "$ac_file"; then :
22e05272
JM
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517$as_echo "no" >&6; }
3518$as_echo "$as_me: failed program was:" >&5
a8aea176
NN
3519sed 's/^/| /' conftest.$ac_ext >&5
3520
5213506e
RW
3521{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3523as_fn_error 77 "C compiler cannot create executables
3524See \`config.log' for more details" "$LINENO" 5; }
3525else
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3527$as_echo "yes" >&6; }
a8aea176 3528fi
22e05272
JM
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3530$as_echo_n "checking for C compiler default output file name... " >&6; }
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3532$as_echo "$ac_file" >&6; }
a8aea176 3533ac_exeext=$ac_cv_exeext
a8aea176 3534
22e05272 3535rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
a8aea176 3536ac_clean_files=$ac_clean_files_save
5213506e
RW
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3538$as_echo_n "checking for suffix of executables... " >&6; }
3539if { { ac_try="$ac_link"
3540case "(($ac_try" in
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3543esac
3544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545$as_echo "$ac_try_echo"; } >&5
3546 (eval "$ac_link") 2>&5
a8aea176 3547 ac_status=$?
5213506e
RW
3548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549 test $ac_status = 0; }; then :
a8aea176
NN
3550 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3551# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3552# work properly (i.e., refer to `conftest.exe'), while it won't with
3553# `rm'.
3554for ac_file in conftest.exe conftest conftest.*; do
3555 test -f "$ac_file" || continue
3556 case $ac_file in
5213506e 3557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
a8aea176 3558 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a8aea176
NN
3559 break;;
3560 * ) break;;
3561 esac
3562done
dfac8a13 3563else
5213506e
RW
3564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3566as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3567See \`config.log' for more details" "$LINENO" 5; }
a8aea176 3568fi
22e05272 3569rm -f conftest conftest$ac_cv_exeext
5213506e
RW
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3571$as_echo "$ac_cv_exeext" >&6; }
a8aea176
NN
3572
3573rm -f conftest.$ac_ext
3574EXEEXT=$ac_cv_exeext
3575ac_exeext=$EXEEXT
22e05272
JM
3576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577/* end confdefs.h. */
3578#include <stdio.h>
3579int
3580main ()
3581{
3582FILE *f = fopen ("conftest.out", "w");
3583 return ferror (f) || fclose (f) != 0;
3584
3585 ;
3586 return 0;
3587}
3588_ACEOF
3589ac_clean_files="$ac_clean_files conftest.out"
3590# Check that the compiler produces executables we can run. If not, either
3591# the compiler is broken, or we cross compile.
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3593$as_echo_n "checking whether we are cross compiling... " >&6; }
3594if test "$cross_compiling" != yes; then
3595 { { ac_try="$ac_link"
3596case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599esac
3600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601$as_echo "$ac_try_echo"; } >&5
3602 (eval "$ac_link") 2>&5
3603 ac_status=$?
3604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605 test $ac_status = 0; }
3606 if { ac_try='./conftest$ac_cv_exeext'
3607 { { case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610esac
3611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612$as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_try") 2>&5
3614 ac_status=$?
3615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616 test $ac_status = 0; }; }; then
3617 cross_compiling=no
3618 else
3619 if test "$cross_compiling" = maybe; then
3620 cross_compiling=yes
3621 else
3622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624as_fn_error $? "cannot run C compiled programs.
3625If you meant to cross compile, use \`--host'.
3626See \`config.log' for more details" "$LINENO" 5; }
3627 fi
3628 fi
3629fi
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3631$as_echo "$cross_compiling" >&6; }
3632
3633rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3634ac_clean_files=$ac_clean_files_save
a8aea176 3635fi
5213506e
RW
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3637$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3638if ${ac_cv_objext+:} false; then :
5213506e 3639 $as_echo_n "(cached) " >&6
5d836b57 3640else
5213506e 3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176 3642/* end confdefs.h. */
5d836b57 3643
a8aea176
NN
3644int
3645main ()
3646{
5d836b57 3647
a8aea176
NN
3648 ;
3649 return 0;
3650}
3651_ACEOF
3652rm -f conftest.o conftest.obj
5213506e
RW
3653if { { ac_try="$ac_compile"
3654case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657esac
3658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659$as_echo "$ac_try_echo"; } >&5
3660 (eval "$ac_compile") 2>&5
a8aea176 3661 ac_status=$?
5213506e
RW
3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }; then :
3664 for ac_file in conftest.o conftest.obj conftest.*; do
3665 test -f "$ac_file" || continue;
a8aea176 3666 case $ac_file in
5213506e 3667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
a8aea176
NN
3668 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3669 break;;
3670 esac
3671done
5d836b57 3672else
5213506e 3673 $as_echo "$as_me: failed program was:" >&5
a8aea176
NN
3674sed 's/^/| /' conftest.$ac_ext >&5
3675
5213506e
RW
3676{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3678as_fn_error $? "cannot compute suffix of object files: cannot compile
3679See \`config.log' for more details" "$LINENO" 5; }
5d836b57 3680fi
a8aea176
NN
3681rm -f conftest.$ac_cv_objext conftest.$ac_ext
3682fi
5213506e
RW
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3684$as_echo "$ac_cv_objext" >&6; }
a8aea176
NN
3685OBJEXT=$ac_cv_objext
3686ac_objext=$OBJEXT
5213506e
RW
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3688$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3689if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 3690 $as_echo_n "(cached) " >&6
5d836b57 3691else
5213506e 3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176 3693/* end confdefs.h. */
5d836b57 3694
a8aea176
NN
3695int
3696main ()
3697{
3698#ifndef __GNUC__
3699 choke me
3700#endif
3701
3702 ;
3703 return 0;
3704}
3705_ACEOF
5213506e 3706if ac_fn_c_try_compile "$LINENO"; then :
a8aea176 3707 ac_compiler_gnu=yes
5d836b57 3708else
5213506e 3709 ac_compiler_gnu=no
5d836b57 3710fi
5213506e 3711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a8aea176 3712ac_cv_c_compiler_gnu=$ac_compiler_gnu
5d836b57 3713
a8aea176 3714fi
5213506e
RW
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3716$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3717if test $ac_compiler_gnu = yes; then
3718 GCC=yes
3719else
3720 GCC=
3721fi
a8aea176
NN
3722ac_test_CFLAGS=${CFLAGS+set}
3723ac_save_CFLAGS=$CFLAGS
5213506e
RW
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3725$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3726if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
3727 $as_echo_n "(cached) " >&6
3728else
3729 ac_save_c_werror_flag=$ac_c_werror_flag
3730 ac_c_werror_flag=yes
3731 ac_cv_prog_cc_g=no
3732 CFLAGS="-g"
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176 3734/* end confdefs.h. */
5d836b57 3735
a8aea176
NN
3736int
3737main ()
3738{
5d836b57 3739
a8aea176
NN
3740 ;
3741 return 0;
3742}
3743_ACEOF
5213506e 3744if ac_fn_c_try_compile "$LINENO"; then :
a8aea176 3745 ac_cv_prog_cc_g=yes
5d836b57 3746else
5213506e
RW
3747 CFLAGS=""
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749/* end confdefs.h. */
3750
3751int
3752main ()
3753{
3754
3755 ;
3756 return 0;
3757}
3758_ACEOF
3759if ac_fn_c_try_compile "$LINENO"; then :
3760
3761else
3762 ac_c_werror_flag=$ac_save_c_werror_flag
3763 CFLAGS="-g"
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765/* end confdefs.h. */
3766
3767int
3768main ()
3769{
a8aea176 3770
5213506e
RW
3771 ;
3772 return 0;
3773}
3774_ACEOF
3775if ac_fn_c_try_compile "$LINENO"; then :
3776 ac_cv_prog_cc_g=yes
3777fi
3778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a8aea176 3779fi
5213506e 3780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a8aea176 3781fi
5213506e
RW
3782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783 ac_c_werror_flag=$ac_save_c_werror_flag
3784fi
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3786$as_echo "$ac_cv_prog_cc_g" >&6; }
a8aea176
NN
3787if test "$ac_test_CFLAGS" = set; then
3788 CFLAGS=$ac_save_CFLAGS
3789elif test $ac_cv_prog_cc_g = yes; then
3790 if test "$GCC" = yes; then
3791 CFLAGS="-g -O2"
3792 else
3793 CFLAGS="-g"
3794 fi
5d836b57 3795else
a8aea176
NN
3796 if test "$GCC" = yes; then
3797 CFLAGS="-O2"
5d836b57 3798 else
a8aea176 3799 CFLAGS=
5d836b57 3800 fi
5d836b57 3801fi
5213506e
RW
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3803$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3804if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 3805 $as_echo_n "(cached) " >&6
a8aea176 3806else
5213506e 3807 ac_cv_prog_cc_c89=no
a8aea176 3808ac_save_CC=$CC
5213506e 3809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176
NN
3810/* end confdefs.h. */
3811#include <stdarg.h>
3812#include <stdio.h>
22e05272 3813struct stat;
a8aea176
NN
3814/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3815struct buf { int x; };
3816FILE * (*rcsopen) (struct buf *, struct stat *, int);
3817static char *e (p, i)
3818 char **p;
3819 int i;
3820{
3821 return p[i];
3822}
3823static char *f (char * (*g) (char **, int), char **p, ...)
3824{
3825 char *s;
3826 va_list v;
3827 va_start (v,p);
3828 s = g (p, va_arg (v,int));
3829 va_end (v);
3830 return s;
3831}
5d836b57 3832
a8aea176
NN
3833/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3834 function prototypes and stuff, but not '\xHH' hex character constants.
3835 These don't provoke an error unfortunately, instead are silently treated
5213506e 3836 as 'x'. The following induces an error, until -std is added to get
a8aea176
NN
3837 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3838 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 3839 that's true only with -std. */
a8aea176
NN
3840int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3841
5213506e
RW
3842/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3843 inside strings and character constants. */
3844#define FOO(x) 'x'
3845int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3846
a8aea176
NN
3847int test (int i, double x);
3848struct s1 {int (*f) (int a);};
3849struct s2 {int (*f) (double a);};
3850int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3851int argc;
3852char **argv;
3853int
3854main ()
3855{
3856return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3857 ;
3858 return 0;
3859}
3860_ACEOF
5213506e
RW
3861for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3862 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a8aea176
NN
3863do
3864 CC="$ac_save_CC $ac_arg"
5213506e
RW
3865 if ac_fn_c_try_compile "$LINENO"; then :
3866 ac_cv_prog_cc_c89=$ac_arg
a8aea176 3867fi
5213506e
RW
3868rm -f core conftest.err conftest.$ac_objext
3869 test "x$ac_cv_prog_cc_c89" != "xno" && break
a8aea176 3870done
5213506e 3871rm -f conftest.$ac_ext
a8aea176
NN
3872CC=$ac_save_CC
3873
3874fi
5213506e
RW
3875# AC_CACHE_VAL
3876case "x$ac_cv_prog_cc_c89" in
3877 x)
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3879$as_echo "none needed" >&6; } ;;
3880 xno)
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3882$as_echo "unsupported" >&6; } ;;
a8aea176 3883 *)
5213506e
RW
3884 CC="$CC $ac_cv_prog_cc_c89"
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3886$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a8aea176 3887esac
5213506e 3888if test "x$ac_cv_prog_cc_c89" != xno; then :
a8aea176 3889
a8aea176
NN
3890fi
3891
a8aea176
NN
3892ac_ext=c
3893ac_cpp='$CPP $CPPFLAGS'
3894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896ac_compiler_gnu=$ac_cv_c_compiler_gnu
22e05272
JM
3897
3898ac_ext=c
3899ac_cpp='$CPP $CPPFLAGS'
3900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3904$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3905if ${am_cv_prog_cc_c_o+:} false; then :
3906 $as_echo_n "(cached) " >&6
3907else
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909/* end confdefs.h. */
3910
3911int
3912main ()
3913{
3914
3915 ;
3916 return 0;
3917}
3918_ACEOF
3919 # Make sure it works both with $CC and with simple cc.
3920 # Following AC_PROG_CC_C_O, we do the test twice because some
3921 # compilers refuse to overwrite an existing .o file with -o,
3922 # though they will create one.
3923 am_cv_prog_cc_c_o=yes
3924 for am_i in 1 2; do
3925 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3926 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } \
3930 && test -f conftest2.$ac_objext; then
3931 : OK
3932 else
3933 am_cv_prog_cc_c_o=no
3934 break
3935 fi
3936 done
3937 rm -f core conftest*
3938 unset am_i
3939fi
3940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3941$as_echo "$am_cv_prog_cc_c_o" >&6; }
3942if test "$am_cv_prog_cc_c_o" != yes; then
3943 # Losing compiler, so override with the script.
3944 # FIXME: It is wrong to rewrite CC.
3945 # But if we don't then we get into trouble of one sort or another.
3946 # A longer-term fix would be to have automake use am__CC in this case,
3947 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3948 CC="$am_aux_dir/compile $CC"
3949fi
3950ac_ext=c
3951ac_cpp='$CPP $CPPFLAGS'
3952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955
9fabf579
KC
3956DEPDIR="${am__leading_dot}deps"
3957
5213506e 3958ac_config_commands="$ac_config_commands depfiles"
9fabf579
KC
3959
3960
3961am_make=${MAKE-make}
3962cat > confinc << 'END'
3963am__doit:
5213506e 3964 @echo this is the am__doit target
9fabf579
KC
3965.PHONY: am__doit
3966END
3967# If we don't find an include directive, just comment out the code.
5213506e
RW
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3969$as_echo_n "checking for style of include used by $am_make... " >&6; }
9fabf579
KC
3970am__include="#"
3971am__quote=
3972_am_result=none
3973# First try GNU make style include.
3974echo "include confinc" > confmf
22e05272 3975# Ignore all kinds of additional output from 'make'.
5213506e
RW
3976case `$am_make -s -f confmf 2> /dev/null` in #(
3977*the\ am__doit\ target*)
3978 am__include=include
3979 am__quote=
3980 _am_result=GNU
3981 ;;
3982esac
9fabf579
KC
3983# Now try BSD make style include.
3984if test "$am__include" = "#"; then
3985 echo '.include "confinc"' > confmf
5213506e
RW
3986 case `$am_make -s -f confmf 2> /dev/null` in #(
3987 *the\ am__doit\ target*)
3988 am__include=.include
3989 am__quote="\""
3990 _am_result=BSD
3991 ;;
3992 esac
9fabf579
KC
3993fi
3994
3995
5213506e
RW
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3997$as_echo "$_am_result" >&6; }
9fabf579
KC
3998rm -f confinc confmf
3999
5213506e
RW
4000# Check whether --enable-dependency-tracking was given.
4001if test "${enable_dependency_tracking+set}" = set; then :
4002 enableval=$enable_dependency_tracking;
4003fi
9fabf579 4004
9fabf579
KC
4005if test "x$enable_dependency_tracking" != xno; then
4006 am_depcomp="$ac_aux_dir/depcomp"
4007 AMDEPBACKSLASH='\'
39ba2a0e 4008 am__nodep='_no'
9fabf579 4009fi
5213506e 4010 if test "x$enable_dependency_tracking" != xno; then
9fabf579
KC
4011 AMDEP_TRUE=
4012 AMDEP_FALSE='#'
4013else
4014 AMDEP_TRUE='#'
4015 AMDEP_FALSE=
4016fi
4017
4018
4019
9fabf579
KC
4020depcc="$CC" am_compiler_list=
4021
5213506e
RW
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4023$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4024if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5213506e 4025 $as_echo_n "(cached) " >&6
9fabf579
KC
4026else
4027 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4028 # We make a subdir and do the tests there. Otherwise we can end up
4029 # making bogus files that we don't know about and never remove. For
4030 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4031 # making a dummy file named 'D' -- because '-MD' means "put the output
4032 # in D".
39ba2a0e 4033 rm -rf conftest.dir
9fabf579
KC
4034 mkdir conftest.dir
4035 # Copy depcomp to subdir because otherwise we won't find it if we're
4036 # using a relative directory.
4037 cp "$am_depcomp" conftest.dir
4038 cd conftest.dir
4039 # We will build objects and dependencies in a subdirectory because
4040 # it helps to detect inapplicable dependency modes. For instance
4041 # both Tru64's cc and ICC support -MD to output dependencies as a
4042 # side effect of compilation, but ICC will put the dependencies in
4043 # the current directory while Tru64 will put them in the object
4044 # directory.
4045 mkdir sub
4046
4047 am_cv_CC_dependencies_compiler_type=none
4048 if test "$am_compiler_list" = ""; then
4049 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4050 fi
5213506e
RW
4051 am__universal=false
4052 case " $depcc " in #(
4053 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4054 esac
4055
9fabf579
KC
4056 for depmode in $am_compiler_list; do
4057 # Setup a source with many dependencies, because some compilers
4058 # like to wrap large dependency lists on column 80 (with \), and
4059 # we should not choose a depcomp mode which is confused by this.
4060 #
4061 # We need to recreate these files for each test, as the compiler may
4062 # overwrite some of them when testing with obscure command lines.
4063 # This happens at least with the AIX C compiler.
4064 : > sub/conftest.c
4065 for i in 1 2 3 4 5 6; do
4066 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4067 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4068 # Solaris 10 /bin/sh.
4069 echo '/* dummy */' > sub/conftst$i.h
9fabf579
KC
4070 done
4071 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4072
22e05272 4073 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5213506e 4074 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4075 # handle '-M -o', and we need to detect this. Also, some Intel
4076 # versions had trouble with output in subdirs.
5213506e
RW
4077 am__obj=sub/conftest.${OBJEXT-o}
4078 am__minus_obj="-o $am__obj"
9fabf579 4079 case $depmode in
5213506e
RW
4080 gcc)
4081 # This depmode causes a compiler race in universal mode.
4082 test "$am__universal" = false || continue
4083 ;;
9fabf579 4084 nosideeffect)
22e05272
JM
4085 # After this tag, mechanisms are not by side-effect, so they'll
4086 # only be used when explicitly requested.
9fabf579
KC
4087 if test "x$enable_dependency_tracking" = xyes; then
4088 continue
4089 else
4090 break
4091 fi
4092 ;;
39ba2a0e 4093 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4094 # This compiler won't grok '-c -o', but also, the minuso test has
5213506e
RW
4095 # not run yet. These depmodes are late enough in the game, and
4096 # so weak that their functioning should not be impacted.
4097 am__obj=conftest.${OBJEXT-o}
4098 am__minus_obj=
4099 ;;
9fabf579
KC
4100 none) break ;;
4101 esac
9fabf579 4102 if depmode=$depmode \
5213506e 4103 source=sub/conftest.c object=$am__obj \
9fabf579 4104 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4105 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9fabf579 4106 >/dev/null 2>conftest.err &&
5213506e 4107 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9fabf579 4108 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4109 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9fabf579
KC
4110 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4111 # icc doesn't choke on unknown options, it will just issue warnings
076e5443
PB
4112 # or remarks (even with -Werror). So we grep stderr for any message
4113 # that says an option was ignored or not supported.
4114 # When given -MP, icc 7.0 and 7.1 complain thusly:
4115 # icc: Command line warning: ignoring option '-M'; no argument required
4116 # The diagnosis changed in icc 8.0:
4117 # icc: Command line remark: option '-MP' not supported
4118 if (grep 'ignoring option' conftest.err ||
4119 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9fabf579
KC
4120 am_cv_CC_dependencies_compiler_type=$depmode
4121 break
4122 fi
4123 fi
4124 done
4125
4126 cd ..
4127 rm -rf conftest.dir
4128else
4129 am_cv_CC_dependencies_compiler_type=none
4130fi
4131
4132fi
5213506e
RW
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4134$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
9fabf579
KC
4135CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4136
5213506e 4137 if
9fabf579
KC
4138 test "x$enable_dependency_tracking" != xno \
4139 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4140 am__fastdepCC_TRUE=
4141 am__fastdepCC_FALSE='#'
4142else
4143 am__fastdepCC_TRUE='#'
4144 am__fastdepCC_FALSE=
4145fi
4146
a8aea176
NN
4147
4148
076e5443
PB
4149
4150
4151
c0827870
L
4152# Add CET specific flags if CET is enabled
4153
4154 # Check whether --enable-cet was given.
4155if test "${enable_cet+set}" = set; then :
4156 enableval=$enable_cet;
4157 case "$enableval" in
4158 yes|no|auto) ;;
4159 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
4160 esac
4161
4162else
8d286dd1 4163 enable_cet=auto
c0827870
L
4164fi
4165
4166
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4168$as_echo_n "checking for CET support... " >&6; }
4169
9051b548 4170# NB: Avoid nested save_CFLAGS and save_LDFLAGS.
c0827870
L
4171case "$host" in
4172 i[34567]86-*-linux* | x86_64-*-linux*)
4173 case "$enable_cet" in
4174 auto)
4175 # Check if target supports multi-byte NOPs
b1a3d2b7 4176 # and if compiler and assembler support CET insn.
9051b548 4177 cet_save_CFLAGS="$CFLAGS"
4c1a5d8b 4178 CFLAGS="$CFLAGS -fcf-protection"
c0827870
L
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180/* end confdefs.h. */
4181
4182int
4183main ()
4184{
4185
4186#if !defined(__SSE2__)
4187#error target does not support multi-byte NOPs
4188#else
4189asm ("setssbsy");
4190#endif
4191
4192 ;
4193 return 0;
4194}
4195_ACEOF
4196if ac_fn_c_try_compile "$LINENO"; then :
4197 enable_cet=yes
4198else
4199 enable_cet=no
4200fi
4201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051b548 4202 CFLAGS="$cet_save_CFLAGS"
c0827870
L
4203 ;;
4204 yes)
4205 # Check if assembler supports CET.
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207/* end confdefs.h. */
4208
4209int
4210main ()
4211{
4212asm ("setssbsy");
4213 ;
4214 return 0;
4215}
4216_ACEOF
4217if ac_fn_c_try_compile "$LINENO"; then :
4218
4219else
4220 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
4221fi
4222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223 ;;
4224 esac
4225 ;;
4226 *)
4227 enable_cet=no
4228 ;;
4229esac
4230if test x$enable_cet = xyes; then
4231 CET_FLAGS="-fcf-protection -mshstk"
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4233$as_echo "yes" >&6; }
4234else
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236$as_echo "no" >&6; }
4237fi
4238
4239
4240
18d98188
PG
4241case `pwd` in
4242 *\ * | *\ *)
5213506e
RW
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4244$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
18d98188 4245esac
1cf3d07d
SE
4246
4247
1cf3d07d 4248
43e02a8a
RW
4249macro_version='2.2.7a'
4250macro_revision='1.3134'
1cf3d07d
SE
4251
4252
4253
4254
4255
4256
dfac8a13 4257
1cf3d07d
SE
4258
4259
4260
4261
4262
4263
18d98188 4264ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 4265
43e02a8a
RW
4266# Backslashify metacharacters that are still active within
4267# double-quoted strings.
4268sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4269
4270# Same as above, but do not quote variable references.
4271double_quote_subst='s/\(["`\\]\)/\\\1/g'
4272
4273# Sed substitution to delay expansion of an escaped shell variable in a
4274# double_quote_subst'ed string.
4275delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4276
4277# Sed substitution to delay expansion of an escaped single quote.
4278delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4279
4280# Sed substitution to avoid accidental globbing in evaled expressions
4281no_glob_subst='s/\*/\\\*/g'
4282
4283ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4284ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4285ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4286
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4288$as_echo_n "checking how to print strings... " >&6; }
4289# Test print first, because it will be a builtin if present.
4290if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4291 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4292 ECHO='print -r --'
4293elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4294 ECHO='printf %s\n'
4295else
4296 # Use this function as a fallback that always works.
4297 func_fallback_echo ()
4298 {
4299 eval 'cat <<_LTECHO_EOF
4300$1
4301_LTECHO_EOF'
4302 }
4303 ECHO='func_fallback_echo'
4304fi
4305
4306# func_echo_all arg...
4307# Invoke $ECHO with all args, space-separated.
4308func_echo_all ()
4309{
4310 $ECHO ""
4311}
4312
4313case "$ECHO" in
4314 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4315$as_echo "printf" >&6; } ;;
4316 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4317$as_echo "print -r" >&6; } ;;
4318 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4319$as_echo "cat" >&6; } ;;
4320esac
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
5213506e
RW
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4336$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 4337if ${ac_cv_path_SED+:} false; then :
5213506e
RW
4338 $as_echo_n "(cached) " >&6
4339else
4340 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4341 for ac_i in 1 2 3 4 5 6 7; do
4342 ac_script="$ac_script$as_nl$ac_script"
4343 done
4344 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4345 { ac_script=; unset ac_script;}
4346 if test -z "$SED"; then
4347 ac_path_SED_found=false
4348 # Loop through the user's path and test for each of PROGNAME-LIST
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1cf3d07d
SE
4350for as_dir in $PATH
4351do
4352 IFS=$as_save_IFS
4353 test -z "$as_dir" && as_dir=.
5213506e 4354 for ac_prog in sed gsed; do
1cf3d07d 4355 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 4356 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4357 as_fn_executable_p "$ac_path_SED" || continue
5213506e
RW
4358# Check for GNU ac_path_SED and select it if it is found.
4359 # Check for GNU $ac_path_SED
4360case `"$ac_path_SED" --version 2>&1` in
4361*GNU*)
4362 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4363*)
4364 ac_count=0
4365 $as_echo_n 0123456789 >"conftest.in"
4366 while :
4367 do
4368 cat "conftest.in" "conftest.in" >"conftest.tmp"
4369 mv "conftest.tmp" "conftest.in"
4370 cp "conftest.in" "conftest.nl"
4371 $as_echo '' >> "conftest.nl"
4372 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4374 as_fn_arith $ac_count + 1 && ac_count=$as_val
4375 if test $ac_count -gt ${ac_path_SED_max-0}; then
4376 # Best one so far, save it but keep looking for a better one
4377 ac_cv_path_SED="$ac_path_SED"
4378 ac_path_SED_max=$ac_count
4379 fi
4380 # 10*(2^10) chars as input seems more than enough
4381 test $ac_count -gt 10 && break
4382 done
4383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4384esac
4385
4386 $ac_path_SED_found && break 3
1cf3d07d
SE
4387 done
4388 done
5213506e 4389 done
1cf3d07d 4390IFS=$as_save_IFS
5213506e 4391 if test -z "$ac_cv_path_SED"; then
22e05272 4392 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1cf3d07d 4393 fi
5213506e
RW
4394else
4395 ac_cv_path_SED=$SED
1cf3d07d
SE
4396fi
4397
5213506e
RW
4398fi
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4400$as_echo "$ac_cv_path_SED" >&6; }
4401 SED="$ac_cv_path_SED"
4402 rm -f conftest.sed
1cf3d07d
SE
4403
4404test -z "$SED" && SED=sed
4405Xsed="$SED -e 1s/^X//"
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
5213506e
RW
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4418$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 4419if ${ac_cv_path_GREP+:} false; then :
5213506e
RW
4420 $as_echo_n "(cached) " >&6
4421else
4422 if test -z "$GREP"; then
4423 ac_path_GREP_found=false
4424 # Loop through the user's path and test for each of PROGNAME-LIST
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4427do
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
4430 for ac_prog in grep ggrep; do
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4433 as_fn_executable_p "$ac_path_GREP" || continue
5213506e
RW
4434# Check for GNU ac_path_GREP and select it if it is found.
4435 # Check for GNU $ac_path_GREP
4436case `"$ac_path_GREP" --version 2>&1` in
4437*GNU*)
4438 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4439*)
4440 ac_count=0
4441 $as_echo_n 0123456789 >"conftest.in"
4442 while :
4443 do
4444 cat "conftest.in" "conftest.in" >"conftest.tmp"
4445 mv "conftest.tmp" "conftest.in"
4446 cp "conftest.in" "conftest.nl"
4447 $as_echo 'GREP' >> "conftest.nl"
4448 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4449 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4450 as_fn_arith $ac_count + 1 && ac_count=$as_val
4451 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4452 # Best one so far, save it but keep looking for a better one
4453 ac_cv_path_GREP="$ac_path_GREP"
4454 ac_path_GREP_max=$ac_count
4455 fi
4456 # 10*(2^10) chars as input seems more than enough
4457 test $ac_count -gt 10 && break
4458 done
4459 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4460esac
4461
4462 $ac_path_GREP_found && break 3
4463 done
4464 done
4465 done
4466IFS=$as_save_IFS
4467 if test -z "$ac_cv_path_GREP"; then
22e05272 4468 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5213506e
RW
4469 fi
4470else
4471 ac_cv_path_GREP=$GREP
4472fi
4473
4474fi
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4476$as_echo "$ac_cv_path_GREP" >&6; }
4477 GREP="$ac_cv_path_GREP"
4478
4479
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4481$as_echo_n "checking for egrep... " >&6; }
22e05272 4482if ${ac_cv_path_EGREP+:} false; then :
5213506e 4483 $as_echo_n "(cached) " >&6
1cf3d07d 4484else
5213506e
RW
4485 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4486 then ac_cv_path_EGREP="$GREP -E"
4487 else
4488 if test -z "$EGREP"; then
4489 ac_path_EGREP_found=false
4490 # Loop through the user's path and test for each of PROGNAME-LIST
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4493do
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_prog in egrep; do
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4499 as_fn_executable_p "$ac_path_EGREP" || continue
5213506e
RW
4500# Check for GNU ac_path_EGREP and select it if it is found.
4501 # Check for GNU $ac_path_EGREP
4502case `"$ac_path_EGREP" --version 2>&1` in
4503*GNU*)
4504 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4505*)
4506 ac_count=0
4507 $as_echo_n 0123456789 >"conftest.in"
4508 while :
4509 do
4510 cat "conftest.in" "conftest.in" >"conftest.tmp"
4511 mv "conftest.tmp" "conftest.in"
4512 cp "conftest.in" "conftest.nl"
4513 $as_echo 'EGREP' >> "conftest.nl"
4514 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4515 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4516 as_fn_arith $ac_count + 1 && ac_count=$as_val
4517 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4518 # Best one so far, save it but keep looking for a better one
4519 ac_cv_path_EGREP="$ac_path_EGREP"
4520 ac_path_EGREP_max=$ac_count
1cf3d07d 4521 fi
5213506e
RW
4522 # 10*(2^10) chars as input seems more than enough
4523 test $ac_count -gt 10 && break
4524 done
4525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4526esac
4527
4528 $ac_path_EGREP_found && break 3
4529 done
4530 done
4531 done
4532IFS=$as_save_IFS
4533 if test -z "$ac_cv_path_EGREP"; then
22e05272 4534 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5213506e
RW
4535 fi
4536else
4537 ac_cv_path_EGREP=$EGREP
1cf3d07d 4538fi
1cf3d07d 4539
5213506e
RW
4540 fi
4541fi
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4543$as_echo "$ac_cv_path_EGREP" >&6; }
4544 EGREP="$ac_cv_path_EGREP"
1cf3d07d 4545
5213506e
RW
4546
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4548$as_echo_n "checking for fgrep... " >&6; }
22e05272 4549if ${ac_cv_path_FGREP+:} false; then :
5213506e 4550 $as_echo_n "(cached) " >&6
1cf3d07d 4551else
5213506e
RW
4552 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4553 then ac_cv_path_FGREP="$GREP -F"
4554 else
4555 if test -z "$FGREP"; then
4556 ac_path_FGREP_found=false
4557 # Loop through the user's path and test for each of PROGNAME-LIST
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4560do
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_prog in fgrep; do
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4566 as_fn_executable_p "$ac_path_FGREP" || continue
5213506e
RW
4567# Check for GNU ac_path_FGREP and select it if it is found.
4568 # Check for GNU $ac_path_FGREP
4569case `"$ac_path_FGREP" --version 2>&1` in
4570*GNU*)
4571 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4572*)
4573 ac_count=0
4574 $as_echo_n 0123456789 >"conftest.in"
4575 while :
4576 do
4577 cat "conftest.in" "conftest.in" >"conftest.tmp"
4578 mv "conftest.tmp" "conftest.in"
4579 cp "conftest.in" "conftest.nl"
4580 $as_echo 'FGREP' >> "conftest.nl"
4581 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4583 as_fn_arith $ac_count + 1 && ac_count=$as_val
4584 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4585 # Best one so far, save it but keep looking for a better one
4586 ac_cv_path_FGREP="$ac_path_FGREP"
4587 ac_path_FGREP_max=$ac_count
1cf3d07d 4588 fi
5213506e
RW
4589 # 10*(2^10) chars as input seems more than enough
4590 test $ac_count -gt 10 && break
4591 done
4592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4593esac
4594
4595 $ac_path_FGREP_found && break 3
4596 done
4597 done
4598 done
4599IFS=$as_save_IFS
4600 if test -z "$ac_cv_path_FGREP"; then
22e05272 4601 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5213506e
RW
4602 fi
4603else
4604 ac_cv_path_FGREP=$FGREP
1cf3d07d 4605fi
5213506e
RW
4606
4607 fi
4608fi
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4610$as_echo "$ac_cv_path_FGREP" >&6; }
4611 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
4612
4613
4614test -z "$GREP" && GREP=grep
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
5213506e
RW
4634# Check whether --with-gnu-ld was given.
4635if test "${with_gnu_ld+set}" = set; then :
4636 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
dfac8a13
TT
4637else
4638 with_gnu_ld=no
5213506e
RW
4639fi
4640
dfac8a13 4641ac_prog=ld
0fd91e0a 4642if test "$GCC" = yes; then
dfac8a13 4643 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4645$as_echo_n "checking for ld used by $CC... " >&6; }
0fd91e0a
AO
4646 case $host in
4647 *-*-mingw*)
4648 # gcc leaves a trailing carriage return which upsets mingw
4649 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4650 *)
4651 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4652 esac
4653 case $ac_prog in
dfac8a13 4654 # Accept absolute paths.
1cf3d07d 4655 [\\/]* | ?:[\\/]*)
dfac8a13 4656 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
4657 # Canonicalize the pathname of ld
4658 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4659 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4660 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
dfac8a13
TT
4661 done
4662 test -z "$LD" && LD="$ac_prog"
4663 ;;
4664 "")
4665 # If it fails, then pretend we aren't using GCC.
4666 ac_prog=ld
4667 ;;
4668 *)
4669 # If it is relative, then search for the first ld in PATH.
4670 with_gnu_ld=unknown
4671 ;;
4672 esac
4673elif test "$with_gnu_ld" = yes; then
5213506e
RW
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4675$as_echo_n "checking for GNU ld... " >&6; }
dfac8a13 4676else
5213506e
RW
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4678$as_echo_n "checking for non-GNU ld... " >&6; }
dfac8a13 4679fi
22e05272 4680if ${lt_cv_path_LD+:} false; then :
5213506e 4681 $as_echo_n "(cached) " >&6
dfac8a13
TT
4682else
4683 if test -z "$LD"; then
1cf3d07d 4684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
dfac8a13 4685 for ac_dir in $PATH; do
1cf3d07d 4686 IFS="$lt_save_ifs"
dfac8a13 4687 test -z "$ac_dir" && ac_dir=.
0fd91e0a
AO
4688 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4689 lt_cv_path_LD="$ac_dir/$ac_prog"
dfac8a13 4690 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 4691 # but apparently some variants of GNU ld only accept -v.
dfac8a13 4692 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
4693 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4694 *GNU* | *'with BFD'*)
dfac8a13 4695 test "$with_gnu_ld" != no && break
1cf3d07d
SE
4696 ;;
4697 *)
dfac8a13 4698 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
4699 ;;
4700 esac
dfac8a13
TT
4701 fi
4702 done
1cf3d07d 4703 IFS="$lt_save_ifs"
dfac8a13 4704else
0fd91e0a 4705 lt_cv_path_LD="$LD" # Let the user override the test with a path.
dfac8a13
TT
4706fi
4707fi
4708
0fd91e0a 4709LD="$lt_cv_path_LD"
dfac8a13 4710if test -n "$LD"; then
5213506e
RW
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4712$as_echo "$LD" >&6; }
dfac8a13 4713else
5213506e
RW
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715$as_echo "no" >&6; }
a8aea176 4716fi
22e05272 4717test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5213506e
RW
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4719$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 4720if ${lt_cv_prog_gnu_ld+:} false; then :
5213506e 4721 $as_echo_n "(cached) " >&6
dfac8a13 4722else
1cf3d07d
SE
4723 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4724case `$LD -v 2>&1 </dev/null` in
4725*GNU* | *'with BFD'*)
0fd91e0a 4726 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
4727 ;;
4728*)
0fd91e0a 4729 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
4730 ;;
4731esac
dfac8a13 4732fi
5213506e
RW
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4734$as_echo "$lt_cv_prog_gnu_ld" >&6; }
0fd91e0a 4735with_gnu_ld=$lt_cv_prog_gnu_ld
dfac8a13
TT
4736
4737
0fd91e0a 4738
1cf3d07d
SE
4739
4740
4741
4742
4743
4744
5213506e
RW
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4746$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 4747if ${lt_cv_path_NM+:} false; then :
5213506e 4748 $as_echo_n "(cached) " >&6
dfac8a13
TT
4749else
4750 if test -n "$NM"; then
4751 # Let the user override the test.
0fd91e0a 4752 lt_cv_path_NM="$NM"
dfac8a13 4753else
1cf3d07d
SE
4754 lt_nm_to_check="${ac_tool_prefix}nm"
4755 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4756 lt_nm_to_check="$lt_nm_to_check nm"
4757 fi
4758 for lt_tmp_nm in $lt_nm_to_check; do
4759 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4760 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4761 IFS="$lt_save_ifs"
4762 test -z "$ac_dir" && ac_dir=.
4763 tmp_nm="$ac_dir/$lt_tmp_nm"
4764 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4765 # Check to see if the nm accepts a BSD-compat flag.
4766 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4767 # nm: unknown option "B" ignored
4768 # Tru64's nm complains that /dev/null is an invalid object file
4769 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4770 */dev/null* | *'Invalid file or object type'*)
4771 lt_cv_path_NM="$tmp_nm -B"
4772 break
4773 ;;
4774 *)
4775 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4776 */dev/null*)
4777 lt_cv_path_NM="$tmp_nm -p"
4778 break
4779 ;;
4780 *)
4781 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4782 continue # so that we can try to find one that supports BSD flags
4783 ;;
4784 esac
4785 ;;
4786 esac
dfac8a13 4787 fi
1cf3d07d
SE
4788 done
4789 IFS="$lt_save_ifs"
dfac8a13 4790 done
1cf3d07d 4791 : ${lt_cv_path_NM=no}
dfac8a13
TT
4792fi
4793fi
5213506e
RW
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4795$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
4796if test "$lt_cv_path_NM" != "no"; then
4797 NM="$lt_cv_path_NM"
0fd91e0a 4798else
1cf3d07d 4799 # Didn't find any BSD compatible name lister, look for dumpbin.
43e02a8a
RW
4800 if test -n "$DUMPBIN"; then :
4801 # Let the user override the test.
4802 else
4803 if test -n "$ac_tool_prefix"; then
4804 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
4805 do
4806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4807set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4810if ${ac_cv_prog_DUMPBIN+:} false; then :
5213506e 4811 $as_echo_n "(cached) " >&6
1cf3d07d
SE
4812else
4813 if test -n "$DUMPBIN"; then
4814 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4815else
4816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817for as_dir in $PATH
4818do
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
5213506e 4821 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 4823 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 4824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
4825 break 2
4826 fi
4827done
5213506e
RW
4828 done
4829IFS=$as_save_IFS
025fd00e 4830
1cf3d07d
SE
4831fi
4832fi
4833DUMPBIN=$ac_cv_prog_DUMPBIN
4834if test -n "$DUMPBIN"; then
5213506e
RW
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4836$as_echo "$DUMPBIN" >&6; }
1cf3d07d 4837else
5213506e
RW
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839$as_echo "no" >&6; }
1cf3d07d 4840fi
025fd00e 4841
5213506e 4842
1cf3d07d
SE
4843 test -n "$DUMPBIN" && break
4844 done
4845fi
4846if test -z "$DUMPBIN"; then
4847 ac_ct_DUMPBIN=$DUMPBIN
43e02a8a 4848 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
4849do
4850 # Extract the first word of "$ac_prog", so it can be a program name with args.
4851set dummy $ac_prog; ac_word=$2
5213506e
RW
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4853$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4854if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5213506e 4855 $as_echo_n "(cached) " >&6
1cf3d07d
SE
4856else
4857 if test -n "$ac_ct_DUMPBIN"; then
4858 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4859else
4860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861for as_dir in $PATH
4862do
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
5213506e 4865 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 4867 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 4868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d 4869 break 2
0fd91e0a 4870 fi
1cf3d07d 4871done
5213506e
RW
4872 done
4873IFS=$as_save_IFS
025fd00e 4874
1cf3d07d
SE
4875fi
4876fi
4877ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4878if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4880$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 4881else
5213506e
RW
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883$as_echo "no" >&6; }
1cf3d07d 4884fi
025fd00e 4885
5213506e 4886
1cf3d07d
SE
4887 test -n "$ac_ct_DUMPBIN" && break
4888done
025fd00e 4889
5213506e
RW
4890 if test "x$ac_ct_DUMPBIN" = x; then
4891 DUMPBIN=":"
4892 else
4893 case $cross_compiling:$ac_tool_warned in
4894yes:)
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4897ac_tool_warned=yes ;;
4898esac
4899 DUMPBIN=$ac_ct_DUMPBIN
4900 fi
1cf3d07d 4901fi
025fd00e 4902
43e02a8a
RW
4903 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4904 *COFF*)
4905 DUMPBIN="$DUMPBIN -symbols"
4906 ;;
4907 *)
4908 DUMPBIN=:
4909 ;;
4910 esac
4911 fi
025fd00e 4912
1cf3d07d
SE
4913 if test "$DUMPBIN" != ":"; then
4914 NM="$DUMPBIN"
025fd00e 4915 fi
1cf3d07d
SE
4916fi
4917test -z "$NM" && NM=nm
025fd00e 4918
025fd00e
TT
4919
4920
025fd00e 4921
33456445 4922
025fd00e 4923
5213506e
RW
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4925$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 4926if ${lt_cv_nm_interface+:} false; then :
5213506e 4927 $as_echo_n "(cached) " >&6
1cf3d07d
SE
4928else
4929 lt_cv_nm_interface="BSD nm"
4930 echo "int some_variable = 0;" > conftest.$ac_ext
43e02a8a 4931 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1cf3d07d
SE
4932 (eval "$ac_compile" 2>conftest.err)
4933 cat conftest.err >&5
43e02a8a 4934 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
4935 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4936 cat conftest.err >&5
43e02a8a 4937 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1cf3d07d
SE
4938 cat conftest.out >&5
4939 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4940 lt_cv_nm_interface="MS dumpbin"
4941 fi
4942 rm -f conftest*
025fd00e 4943fi
5213506e
RW
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4945$as_echo "$lt_cv_nm_interface" >&6; }
a8aea176 4946
5213506e
RW
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4948$as_echo_n "checking whether ln -s works... " >&6; }
1cf3d07d
SE
4949LN_S=$as_ln_s
4950if test "$LN_S" = "ln -s"; then
5213506e
RW
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4952$as_echo "yes" >&6; }
1cf3d07d 4953else
5213506e
RW
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4955$as_echo "no, using $LN_S" >&6; }
1cf3d07d 4956fi
dfac8a13 4957
6dab073b 4958# find the maximum length of command line arguments
5213506e
RW
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4960$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 4961if ${lt_cv_sys_max_cmd_len+:} false; then :
5213506e 4962 $as_echo_n "(cached) " >&6
6dab073b
MS
4963else
4964 i=0
4965 teststring="ABCD"
4966
4967 case $build_os in
4968 msdosdjgpp*)
4969 # On DJGPP, this test can blow up pretty badly due to problems in libc
4970 # (any single argument exceeding 2000 bytes causes a buffer overrun
4971 # during glob expansion). Even if it were fixed, the result of this
4972 # check would be larger than it should be.
4973 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4974 ;;
4975
1cf3d07d
SE
4976 gnu*)
4977 # Under GNU Hurd, this test is not required because there is
4978 # no limit to the length of command line arguments.
4979 # Libtool will interpret -1 as no limit whatsoever
4980 lt_cv_sys_max_cmd_len=-1;
4981 ;;
4982
18d98188 4983 cygwin* | mingw* | cegcc*)
6dab073b
MS
4984 # On Win9x/ME, this test blows up -- it succeeds, but takes
4985 # about 5 minutes as the teststring grows exponentially.
4986 # Worse, since 9x/ME are not pre-emptively multitasking,
4987 # you end up with a "frozen" computer, even though with patience
4988 # the test eventually succeeds (with a max line length of 256k).
4989 # Instead, let's just punt: use the minimum linelength reported by
4990 # all of the supported platforms: 8192 (on NT/2K/XP).
4991 lt_cv_sys_max_cmd_len=8192;
4992 ;;
4993
43e02a8a
RW
4994 mint*)
4995 # On MiNT this can take a long time and run out of memory.
4996 lt_cv_sys_max_cmd_len=8192;
4997 ;;
4998
6dab073b
MS
4999 amigaos*)
5000 # On AmigaOS with pdksh, this test takes hours, literally.
5001 # So we just punt and use a minimum line length of 8192.
5002 lt_cv_sys_max_cmd_len=8192;
5003 ;;
5004
5005 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5006 # This has been around since 386BSD, at least. Likely further.
5007 if test -x /sbin/sysctl; then
5008 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5009 elif test -x /usr/sbin/sysctl; then
5010 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5011 else
1cf3d07d 5012 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6dab073b
MS
5013 fi
5014 # And add a safety zone
5015 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5016 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5017 ;;
1cf3d07d
SE
5018
5019 interix*)
5020 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5021 lt_cv_sys_max_cmd_len=196608
5022 ;;
5023
5024 osf*)
5025 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5026 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5027 # nice to cause kernel panics so lets avoid the loop below.
5028 # First set a reasonable default.
5029 lt_cv_sys_max_cmd_len=16384
5030 #
5031 if test -x /sbin/sysconfig; then
5032 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5033 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5034 esac
5035 fi
5036 ;;
5037 sco3.2v5*)
5038 lt_cv_sys_max_cmd_len=102400
5039 ;;
5040 sysv5* | sco5v6* | sysv4.2uw2*)
5041 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5042 if test -n "$kargmax"; then
5043 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5044 else
5045 lt_cv_sys_max_cmd_len=32768
5046 fi
5047 ;;
5048 *)
18d98188
PG
5049 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5050 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
5051 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5052 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5053 else
5054 # Make teststring a little bigger before we do anything with it.
5055 # a 1K string should be a reasonable start.
5056 for i in 1 2 3 4 5 6 7 8 ; do
5057 teststring=$teststring$teststring
5058 done
5059 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5060 # If test is not a shell built-in, we'll probably end up computing a
5061 # maximum length that is only half of the actual maximum length, but
5062 # we can't tell.
43e02a8a
RW
5063 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5064 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
82a6cadf
PB
5065 test $i != 17 # 1/2 MB should be enough
5066 do
5067 i=`expr $i + 1`
5068 teststring=$teststring$teststring
5069 done
5070 # Only check the string length outside the loop.
5071 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5072 teststring=
5073 # Add a significant safety factor because C++ compilers can tack on
5074 # massive amounts of additional arguments before passing them to the
5075 # linker. It appears as though 1/2 is a usable value.
5076 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5077 fi
1cf3d07d 5078 ;;
6dab073b
MS
5079 esac
5080
5081fi
5082
1cf3d07d 5083if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5085$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6dab073b 5086else
5213506e
RW
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5088$as_echo "none" >&6; }
6dab073b 5089fi
1cf3d07d 5090max_cmd_len=$lt_cv_sys_max_cmd_len
6dab073b
MS
5091
5092
dfac8a13 5093
0fd91e0a 5094
dfac8a13 5095
1cf3d07d 5096
1cf3d07d
SE
5097: ${CP="cp -f"}
5098: ${MV="mv -f"}
5099: ${RM="rm -f"}
5100
5213506e
RW
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5102$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
5103# Try some XSI features
5104xsi_shell=no
5105( _lt_dummy="a/b/c"
5106 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
18d98188
PG
5107 = c,a/b,, \
5108 && eval 'test $(( 1 + 1 )) -eq 2 \
5109 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 5110 && xsi_shell=yes
5213506e
RW
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5112$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
5113
5114
5213506e
RW
5115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5116$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
5117lt_shell_append=no
5118( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5119 >/dev/null 2>&1 \
5120 && lt_shell_append=yes
5213506e
RW
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5122$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
5123
5124
5125if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5126 lt_unset=unset
0fd91e0a 5127else
1cf3d07d 5128 lt_unset=false
0fd91e0a
AO
5129fi
5130
1cf3d07d
SE
5131
5132
5133
5134
5135# test EBCDIC or ASCII
5136case `echo X|tr X '\101'` in
5137 A) # ASCII based system
5138 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5139 lt_SP2NL='tr \040 \012'
5140 lt_NL2SP='tr \015\012 \040\040'
5141 ;;
5142 *) # EBCDIC based system
5143 lt_SP2NL='tr \100 \n'
5144 lt_NL2SP='tr \r\n \100\100'
5145 ;;
5146esac
5147
5148
5149
5150
5151
5152
5153
5154
5155
5213506e
RW
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5157$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 5158if ${lt_cv_ld_reload_flag+:} false; then :
5213506e 5159 $as_echo_n "(cached) " >&6
dfac8a13 5160else
1cf3d07d
SE
5161 lt_cv_ld_reload_flag='-r'
5162fi
5213506e
RW
5163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5164$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
5165reload_flag=$lt_cv_ld_reload_flag
5166case $reload_flag in
5167"" | " "*) ;;
5168*) reload_flag=" $reload_flag" ;;
5169esac
5170reload_cmds='$LD$reload_flag -o $output$reload_objs'
5171case $host_os in
5172 darwin*)
5173 if test "$GCC" = yes; then
5174 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5175 else
5176 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5177 fi
5178 ;;
5179esac
5180
5181
5182
5183
5184
5185
5186
5187
5188
18d98188
PG
5189if test -n "$ac_tool_prefix"; then
5190 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5191set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5194if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 5195 $as_echo_n "(cached) " >&6
18d98188
PG
5196else
5197 if test -n "$OBJDUMP"; then
5198 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5199else
5200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201for as_dir in $PATH
5202do
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5213506e 5205 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 5207 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188
PG
5209 break 2
5210 fi
5211done
5213506e
RW
5212 done
5213IFS=$as_save_IFS
18d98188
PG
5214
5215fi
5216fi
5217OBJDUMP=$ac_cv_prog_OBJDUMP
5218if test -n "$OBJDUMP"; then
5213506e
RW
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5220$as_echo "$OBJDUMP" >&6; }
18d98188 5221else
5213506e
RW
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223$as_echo "no" >&6; }
18d98188
PG
5224fi
5225
5213506e 5226
18d98188
PG
5227fi
5228if test -z "$ac_cv_prog_OBJDUMP"; then
5229 ac_ct_OBJDUMP=$OBJDUMP
5230 # Extract the first word of "objdump", so it can be a program name with args.
5231set dummy objdump; ac_word=$2
5213506e
RW
5232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5234if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5213506e 5235 $as_echo_n "(cached) " >&6
18d98188
PG
5236else
5237 if test -n "$ac_ct_OBJDUMP"; then
5238 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5239else
5240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241for as_dir in $PATH
5242do
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5213506e 5245 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 5247 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 5248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188
PG
5249 break 2
5250 fi
5251done
5213506e
RW
5252 done
5253IFS=$as_save_IFS
18d98188 5254
18d98188
PG
5255fi
5256fi
5257ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5258if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5260$as_echo "$ac_ct_OBJDUMP" >&6; }
18d98188 5261else
5213506e
RW
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263$as_echo "no" >&6; }
18d98188
PG
5264fi
5265
5213506e
RW
5266 if test "x$ac_ct_OBJDUMP" = x; then
5267 OBJDUMP="false"
5268 else
5269 case $cross_compiling:$ac_tool_warned in
5270yes:)
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5273ac_tool_warned=yes ;;
5274esac
5275 OBJDUMP=$ac_ct_OBJDUMP
5276 fi
18d98188
PG
5277else
5278 OBJDUMP="$ac_cv_prog_OBJDUMP"
5279fi
5280
5281test -z "$OBJDUMP" && OBJDUMP=objdump
5282
5283
5284
5285
5286
5287
5288
5289
1cf3d07d 5290
5213506e
RW
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5292$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 5293if ${lt_cv_deplibs_check_method+:} false; then :
5213506e 5294 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5295else
5296 lt_cv_file_magic_cmd='$MAGIC_CMD'
5297lt_cv_file_magic_test_file=
5298lt_cv_deplibs_check_method='unknown'
5299# Need to set the preceding variable on all platforms that support
5300# interlibrary dependencies.
5301# 'none' -- dependencies not supported.
5302# `unknown' -- same as none, but documents that we really don't know.
5303# 'pass_all' -- all dependencies passed with no checks.
5304# 'test_compile' -- check by making test program.
5305# 'file_magic [[regex]]' -- check by looking for files in library path
5306# which responds to the $file_magic_cmd with a given extended regex.
5307# If you have `file' or equivalent on your system and you're not sure
5308# whether `pass_all' will *always* work, you probably want this one.
5309
5310case $host_os in
3e7b7e2b 5311aix[4-9]*)
1cf3d07d
SE
5312 lt_cv_deplibs_check_method=pass_all
5313 ;;
5314
5315beos*)
5316 lt_cv_deplibs_check_method=pass_all
5317 ;;
5318
5319bsdi[45]*)
5320 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5321 lt_cv_file_magic_cmd='/usr/bin/file -L'
5322 lt_cv_file_magic_test_file=/shlib/libc.so
5323 ;;
5324
5325cygwin*)
5326 # func_win32_libid is a shell function defined in ltmain.sh
5327 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5328 lt_cv_file_magic_cmd='func_win32_libid'
5329 ;;
5330
5331mingw* | pw32*)
5332 # Base MSYS/MinGW do not provide the 'file' command needed by
5333 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5334 # unless we find 'file', for example because we are cross-compiling.
43e02a8a
RW
5335 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5336 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1cf3d07d
SE
5337 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5338 lt_cv_file_magic_cmd='func_win32_libid'
5339 else
5340 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5341 lt_cv_file_magic_cmd='$OBJDUMP -f'
5342 fi
5343 ;;
5344
43e02a8a 5345cegcc*)
18d98188
PG
5346 # use the weaker test based on 'objdump'. See mingw*.
5347 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5348 lt_cv_file_magic_cmd='$OBJDUMP -f'
5349 ;;
5350
1cf3d07d
SE
5351darwin* | rhapsody*)
5352 lt_cv_deplibs_check_method=pass_all
0fd91e0a 5353 ;;
1cf3d07d
SE
5354
5355freebsd* | dragonfly*)
5356 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5357 case $host_cpu in
5358 i*86 )
5359 # Not sure whether the presence of OpenBSD here was a mistake.
5360 # Let's accept both of them until this is cleared up.
5361 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5362 lt_cv_file_magic_cmd=/usr/bin/file
5363 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5364 ;;
5365 esac
5366 else
5367 lt_cv_deplibs_check_method=pass_all
5368 fi
5369 ;;
5370
5371gnu*)
5372 lt_cv_deplibs_check_method=pass_all
0fd91e0a 5373 ;;
1cf3d07d 5374
43e02a8a
RW
5375haiku*)
5376 lt_cv_deplibs_check_method=pass_all
5377 ;;
5378
1cf3d07d
SE
5379hpux10.20* | hpux11*)
5380 lt_cv_file_magic_cmd=/usr/bin/file
5381 case $host_cpu in
5382 ia64*)
5383 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5384 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5385 ;;
5386 hppa*64*)
43e02a8a 5387 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
1cf3d07d
SE
5388 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5389 ;;
0fd91e0a 5390 *)
43e02a8a 5391 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1cf3d07d
SE
5392 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5393 ;;
5394 esac
5395 ;;
c45f211e 5396
1cf3d07d
SE
5397interix[3-9]*)
5398 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5400 ;;
dfac8a13 5401
1cf3d07d
SE
5402irix5* | irix6* | nonstopux*)
5403 case $LD in
5404 *-32|*"-32 ") libmagic=32-bit;;
5405 *-n32|*"-n32 ") libmagic=N32;;
5406 *-64|*"-64 ") libmagic=64-bit;;
5407 *) libmagic=never-match;;
5408 esac
5409 lt_cv_deplibs_check_method=pass_all
0fd91e0a 5410 ;;
0fd91e0a 5411
1cf3d07d 5412# This must be Linux ELF.
e9085da5 5413linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
1cf3d07d
SE
5414 lt_cv_deplibs_check_method=pass_all
5415 ;;
0fd91e0a 5416
1cf3d07d
SE
5417netbsd*)
5418 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
0fd91e0a 5420 else
1cf3d07d 5421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
0fd91e0a 5422 fi
1cf3d07d
SE
5423 ;;
5424
5425newos6*)
5426 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5427 lt_cv_file_magic_cmd=/usr/bin/file
5428 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5429 ;;
5430
5431*nto* | *qnx*)
5432 lt_cv_deplibs_check_method=pass_all
5433 ;;
dfac8a13 5434
1cf3d07d
SE
5435openbsd*)
5436 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5438 else
5439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
dfac8a13
TT
5440 fi
5441 ;;
1cf3d07d
SE
5442
5443osf3* | osf4* | osf5*)
5444 lt_cv_deplibs_check_method=pass_all
5445 ;;
5446
5447rdos*)
5448 lt_cv_deplibs_check_method=pass_all
5449 ;;
5450
5451solaris*)
5452 lt_cv_deplibs_check_method=pass_all
5453 ;;
5454
5455sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5456 lt_cv_deplibs_check_method=pass_all
5457 ;;
5458
5459sysv4 | sysv4.3*)
5460 case $host_vendor in
5461 motorola)
5462 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]'
5463 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5464 ;;
5465 ncr)
5466 lt_cv_deplibs_check_method=pass_all
5467 ;;
5468 sequent)
5469 lt_cv_file_magic_cmd='/bin/file'
5470 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5471 ;;
5472 sni)
5473 lt_cv_file_magic_cmd='/bin/file'
5474 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5475 lt_cv_file_magic_test_file=/lib/libc.so
5476 ;;
5477 siemens)
5478 lt_cv_deplibs_check_method=pass_all
5479 ;;
5480 pc)
5481 lt_cv_deplibs_check_method=pass_all
5482 ;;
5483 esac
5484 ;;
5485
5486tpf*)
5487 lt_cv_deplibs_check_method=pass_all
5488 ;;
0ecd0f1c
OH
5489vxworks*)
5490 # Assume VxWorks cross toolchains are built on Linux, possibly
5491 # as canadian for Windows hosts.
5492 lt_cv_deplibs_check_method=pass_all
5493 ;;
0fd91e0a 5494esac
dfac8a13 5495
1cf3d07d 5496fi
5213506e
RW
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5498$as_echo "$lt_cv_deplibs_check_method" >&6; }
1cf3d07d
SE
5499file_magic_cmd=$lt_cv_file_magic_cmd
5500deplibs_check_method=$lt_cv_deplibs_check_method
5501test -z "$deplibs_check_method" && deplibs_check_method=unknown
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
a8aea176 5514if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
5515 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5516set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5519if ${ac_cv_prog_AR+:} false; then :
5213506e 5520 $as_echo_n "(cached) " >&6
025fd00e 5521else
1cf3d07d
SE
5522 if test -n "$AR"; then
5523 ac_cv_prog_AR="$AR" # Let the user override the test.
025fd00e 5524else
a8aea176
NN
5525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526for as_dir in $PATH
5527do
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5213506e 5530 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 5532 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a8aea176
NN
5534 break 2
5535 fi
5536done
5213506e
RW
5537 done
5538IFS=$as_save_IFS
a8aea176 5539
025fd00e
TT
5540fi
5541fi
1cf3d07d
SE
5542AR=$ac_cv_prog_AR
5543if test -n "$AR"; then
5213506e
RW
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5545$as_echo "$AR" >&6; }
025fd00e 5546else
5213506e
RW
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548$as_echo "no" >&6; }
025fd00e
TT
5549fi
5550
5213506e 5551
a8aea176 5552fi
1cf3d07d
SE
5553if test -z "$ac_cv_prog_AR"; then
5554 ac_ct_AR=$AR
5555 # Extract the first word of "ar", so it can be a program name with args.
5556set dummy ar; ac_word=$2
5213506e
RW
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5559if ${ac_cv_prog_ac_ct_AR+:} false; then :
5213506e 5560 $as_echo_n "(cached) " >&6
025fd00e 5561else
1cf3d07d
SE
5562 if test -n "$ac_ct_AR"; then
5563 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
025fd00e 5564else
a8aea176
NN
5565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566for as_dir in $PATH
5567do
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
5213506e 5570 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 5572 ac_cv_prog_ac_ct_AR="ar"
5213506e 5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a8aea176
NN
5574 break 2
5575 fi
5576done
5213506e
RW
5577 done
5578IFS=$as_save_IFS
a8aea176 5579
025fd00e
TT
5580fi
5581fi
1cf3d07d
SE
5582ac_ct_AR=$ac_cv_prog_ac_ct_AR
5583if test -n "$ac_ct_AR"; then
5213506e
RW
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5585$as_echo "$ac_ct_AR" >&6; }
025fd00e 5586else
5213506e
RW
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588$as_echo "no" >&6; }
025fd00e
TT
5589fi
5590
5213506e
RW
5591 if test "x$ac_ct_AR" = x; then
5592 AR="false"
5593 else
5594 case $cross_compiling:$ac_tool_warned in
5595yes:)
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5598ac_tool_warned=yes ;;
5599esac
5600 AR=$ac_ct_AR
5601 fi
025fd00e 5602else
1cf3d07d 5603 AR="$ac_cv_prog_AR"
025fd00e
TT
5604fi
5605
1cf3d07d
SE
5606test -z "$AR" && AR=ar
5607test -z "$AR_FLAGS" && AR_FLAGS=cru
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
a8aea176
NN
5619if test -n "$ac_tool_prefix"; then
5620 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
0fd91e0a 5621set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5624if ${ac_cv_prog_STRIP+:} false; then :
5213506e 5625 $as_echo_n "(cached) " >&6
025fd00e 5626else
0fd91e0a
AO
5627 if test -n "$STRIP"; then
5628 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
025fd00e 5629else
a8aea176
NN
5630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631for as_dir in $PATH
5632do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5213506e 5635 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a8aea176 5637 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a8aea176
NN
5639 break 2
5640 fi
5641done
5213506e
RW
5642 done
5643IFS=$as_save_IFS
a8aea176 5644
025fd00e
TT
5645fi
5646fi
a8aea176 5647STRIP=$ac_cv_prog_STRIP
0fd91e0a 5648if test -n "$STRIP"; then
5213506e
RW
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5650$as_echo "$STRIP" >&6; }
025fd00e 5651else
5213506e
RW
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653$as_echo "no" >&6; }
025fd00e
TT
5654fi
5655
5213506e 5656
a8aea176 5657fi
0fd91e0a 5658if test -z "$ac_cv_prog_STRIP"; then
a8aea176 5659 ac_ct_STRIP=$STRIP
0fd91e0a
AO
5660 # Extract the first word of "strip", so it can be a program name with args.
5661set dummy strip; ac_word=$2
5213506e
RW
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5664if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5213506e 5665 $as_echo_n "(cached) " >&6
025fd00e 5666else
a8aea176
NN
5667 if test -n "$ac_ct_STRIP"; then
5668 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
025fd00e 5669else
a8aea176
NN
5670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671for as_dir in $PATH
5672do
5673 IFS=$as_save_IFS
5674 test -z "$as_dir" && as_dir=.
5213506e 5675 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a8aea176 5677 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 5678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a8aea176
NN
5679 break 2
5680 fi
5681done
5213506e
RW
5682 done
5683IFS=$as_save_IFS
a8aea176 5684
025fd00e
TT
5685fi
5686fi
a8aea176
NN
5687ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5688if test -n "$ac_ct_STRIP"; then
5213506e
RW
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5690$as_echo "$ac_ct_STRIP" >&6; }
025fd00e 5691else
5213506e
RW
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693$as_echo "no" >&6; }
025fd00e
TT
5694fi
5695
5213506e
RW
5696 if test "x$ac_ct_STRIP" = x; then
5697 STRIP=":"
5698 else
5699 case $cross_compiling:$ac_tool_warned in
5700yes:)
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5703ac_tool_warned=yes ;;
5704esac
5705 STRIP=$ac_ct_STRIP
5706 fi
025fd00e 5707else
a8aea176 5708 STRIP="$ac_cv_prog_STRIP"
025fd00e
TT
5709fi
5710
1cf3d07d 5711test -z "$STRIP" && STRIP=:
025fd00e 5712
c45f211e 5713
025fd00e 5714
0fd91e0a 5715
0fd91e0a 5716
a8aea176 5717
1cf3d07d
SE
5718if test -n "$ac_tool_prefix"; then
5719 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5720set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5723if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 5724 $as_echo_n "(cached) " >&6
025fd00e 5725else
1cf3d07d
SE
5726 if test -n "$RANLIB"; then
5727 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5728else
5729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730for as_dir in $PATH
5731do
5732 IFS=$as_save_IFS
5733 test -z "$as_dir" && as_dir=.
5213506e 5734 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 5736 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 5737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5738 break 2
5739 fi
5740done
5213506e
RW
5741 done
5742IFS=$as_save_IFS
0fd91e0a 5743
1cf3d07d
SE
5744fi
5745fi
5746RANLIB=$ac_cv_prog_RANLIB
5747if test -n "$RANLIB"; then
5213506e
RW
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5749$as_echo "$RANLIB" >&6; }
1cf3d07d 5750else
5213506e
RW
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752$as_echo "no" >&6; }
1cf3d07d
SE
5753fi
5754
5213506e 5755
1cf3d07d
SE
5756fi
5757if test -z "$ac_cv_prog_RANLIB"; then
5758 ac_ct_RANLIB=$RANLIB
5759 # Extract the first word of "ranlib", so it can be a program name with args.
5760set dummy ranlib; ac_word=$2
5213506e
RW
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5763if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5213506e 5764 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5765else
5766 if test -n "$ac_ct_RANLIB"; then
5767 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5768else
5769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770for as_dir in $PATH
5771do
5772 IFS=$as_save_IFS
5773 test -z "$as_dir" && as_dir=.
5213506e 5774 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 5776 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 5777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d 5778 break 2
0fd91e0a 5779 fi
1cf3d07d 5780done
5213506e
RW
5781 done
5782IFS=$as_save_IFS
025fd00e 5783
1cf3d07d
SE
5784fi
5785fi
5786ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5787if test -n "$ac_ct_RANLIB"; then
5213506e
RW
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5789$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 5790else
5213506e
RW
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792$as_echo "no" >&6; }
1cf3d07d
SE
5793fi
5794
5213506e
RW
5795 if test "x$ac_ct_RANLIB" = x; then
5796 RANLIB=":"
5797 else
5798 case $cross_compiling:$ac_tool_warned in
5799yes:)
5800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5802ac_tool_warned=yes ;;
5803esac
5804 RANLIB=$ac_ct_RANLIB
5805 fi
1cf3d07d
SE
5806else
5807 RANLIB="$ac_cv_prog_RANLIB"
5808fi
5809
5810test -z "$RANLIB" && RANLIB=:
5811
5812
5813
5814
5815
5816
5817# Determine commands to create old-style static archives.
18d98188 5818old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
5819old_postinstall_cmds='chmod 644 $oldlib'
5820old_postuninstall_cmds=
5821
5822if test -n "$RANLIB"; then
5823 case $host_os in
5824 openbsd*)
5825 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5826 ;;
5827 *)
5828 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5829 ;;
5830 esac
5831 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5832fi
5833
43e02a8a
RW
5834case $host_os in
5835 darwin*)
5836 lock_old_archive_extraction=yes ;;
5837 *)
5838 lock_old_archive_extraction=no ;;
5839esac
5840
5841
5842
5843
5844
5845
1cf3d07d
SE
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879# If no C compiler was specified, use CC.
5880LTCC=${LTCC-"$CC"}
5881
5882# If no C compiler flags were specified, use CFLAGS.
5883LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5884
5885# Allow CC to be a program name with arguments.
5886compiler=$CC
5887
5888
5889# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5891$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 5892if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5213506e 5893 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5894else
5895
5896# These are sane defaults that work on at least a few old systems.
5897# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5898
5899# Character class describing NM global symbol codes.
5900symcode='[BCDEGRST]'
5901
5902# Regexp to match symbols that can be accessed directly from C.
5903sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5904
5905# Define system-specific variables.
5906case $host_os in
5907aix*)
5908 symcode='[BCDT]'
5909 ;;
18d98188 5910cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
5911 symcode='[ABCDGISTW]'
5912 ;;
5913hpux*)
5914 if test "$host_cpu" = ia64; then
5915 symcode='[ABCDEGRST]'
f5cc59a7 5916 fi
f5cc59a7 5917 ;;
1cf3d07d
SE
5918irix* | nonstopux*)
5919 symcode='[BCDEGRST]'
5920 ;;
5921osf*)
5922 symcode='[BCDEGQRST]'
5923 ;;
5924solaris*)
5925 symcode='[BDRT]'
5926 ;;
5927sco3.2v5*)
5928 symcode='[DT]'
5929 ;;
5930sysv4.2uw2*)
5931 symcode='[DT]'
5932 ;;
5933sysv5* | sco5v6* | unixware* | OpenUNIX*)
5934 symcode='[ABDT]'
5935 ;;
5936sysv4)
5937 symcode='[DFNSTU]'
5938 ;;
5939esac
5940
5941# If we're using GNU nm, then use its standard symbol codes.
5942case `$NM -V 2>&1` in
5943*GNU* | *'with BFD'*)
5944 symcode='[ABCDGIRSTW]' ;;
5945esac
5946
5947# Transform an extracted symbol line into a proper C declaration.
5948# Some systems (esp. on ia64) link data and code symbols differently,
5949# so use this general approach.
5950lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5951
5952# Transform an extracted symbol line into symbol name and symbol address
5953lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
18d98188 5954lt_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'"
1cf3d07d
SE
5955
5956# Handle CRLF in mingw tool chain
5957opt_cr=
5958case $build_os in
5959mingw*)
5960 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5961 ;;
5962esac
5963
5964# Try without a prefix underscore, then with it.
5965for ac_symprfx in "" "_"; do
5966
5967 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5968 symxfrm="\\1 $ac_symprfx\\2 \\2"
5969
5970 # Write the raw and C identifiers.
5971 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5972 # Fake it for dumpbin and say T for any non-static function
5973 # and D for any global variable.
5974 # Also find C++ and __fastcall symbols from MSVC++,
5975 # which start with @ or ?.
5976 lt_cv_sys_global_symbol_pipe="$AWK '"\
5977" {last_section=section; section=\$ 3};"\
5978" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5979" \$ 0!~/External *\|/{next};"\
5980" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5981" {if(hide[section]) next};"\
5982" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5983" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5984" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5985" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5986" ' prfx=^$ac_symprfx"
5987 else
5988 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5989 fi
5990
5991 # Check to see that the pipe works correctly.
5992 pipe_works=no
5993
5994 rm -f conftest*
5995 cat > conftest.$ac_ext <<_LT_EOF
5996#ifdef __cplusplus
5997extern "C" {
5998#endif
5999char nm_test_var;
6000void nm_test_func(void);
6001void nm_test_func(void){}
6002#ifdef __cplusplus
6003}
6004#endif
6005int main(){nm_test_var='a';nm_test_func();return(0);}
6006_LT_EOF
f5cc59a7 6007
5213506e 6008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a8aea176
NN
6009 (eval $ac_compile) 2>&5
6010 ac_status=$?
5213506e
RW
6011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6012 test $ac_status = 0; }; then
1cf3d07d
SE
6013 # Now try to grab the symbols.
6014 nlist=conftest.nm
43e02a8a
RW
6015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6016 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1cf3d07d 6017 ac_status=$?
5213506e
RW
6018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6019 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
6020 # Try sorting and uniquifying the output.
6021 if sort "$nlist" | uniq > "$nlist"T; then
6022 mv -f "$nlist"T "$nlist"
6023 else
6024 rm -f "$nlist"T
6025 fi
0ccf2c33 6026
1cf3d07d
SE
6027 # Make sure that we snagged all the symbols we need.
6028 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6029 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6030 cat <<_LT_EOF > conftest.$ac_ext
6031#ifdef __cplusplus
6032extern "C" {
6033#endif
a8aea176 6034
1cf3d07d
SE
6035_LT_EOF
6036 # Now generate the symbol file.
6037 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
a8aea176 6038
1cf3d07d 6039 cat <<_LT_EOF >> conftest.$ac_ext
a8aea176 6040
1cf3d07d
SE
6041/* The mapping between symbol names and symbols. */
6042const struct {
6043 const char *name;
6044 void *address;
6045}
6046lt__PROGRAM__LTX_preloaded_symbols[] =
6047{
6048 { "@PROGRAM@", (void *) 0 },
6049_LT_EOF
6050 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6051 cat <<\_LT_EOF >> conftest.$ac_ext
6052 {0, (void *) 0}
6053};
6054
6055/* This works around a problem in FreeBSD linker */
6056#ifdef FREEBSD_WORKAROUND
6057static const void *lt_preloaded_setup() {
6058 return lt__PROGRAM__LTX_preloaded_symbols;
6059}
6060#endif
6061
6062#ifdef __cplusplus
6063}
6064#endif
6065_LT_EOF
6066 # Now try linking the two files.
6067 mv conftest.$ac_objext conftstm.$ac_objext
6068 lt_save_LIBS="$LIBS"
6069 lt_save_CFLAGS="$CFLAGS"
6070 LIBS="conftstm.$ac_objext"
6071 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 6072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
6073 (eval $ac_link) 2>&5
6074 ac_status=$?
5213506e
RW
6075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6076 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
6077 pipe_works=yes
6078 fi
6079 LIBS="$lt_save_LIBS"
6080 CFLAGS="$lt_save_CFLAGS"
6081 else
6082 echo "cannot find nm_test_func in $nlist" >&5
6083 fi
6084 else
6085 echo "cannot find nm_test_var in $nlist" >&5
6086 fi
6087 else
6088 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6089 fi
6090 else
6091 echo "$progname: failed program was:" >&5
6092 cat conftest.$ac_ext >&5
6093 fi
18d98188 6094 rm -rf conftest* conftst*
1cf3d07d
SE
6095
6096 # Do not use the global_symbol_pipe unless it works.
6097 if test "$pipe_works" = yes; then
6098 break
6099 else
6100 lt_cv_sys_global_symbol_pipe=
6101 fi
6102done
6103
6104fi
6105
6106if test -z "$lt_cv_sys_global_symbol_pipe"; then
6107 lt_cv_sys_global_symbol_to_cdecl=
6108fi
6109if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6111$as_echo "failed" >&6; }
1cf3d07d 6112else
5213506e
RW
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6114$as_echo "ok" >&6; }
1cf3d07d
SE
6115fi
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
18d98188
PG
6131
6132
6133
6134
6135
1cf3d07d
SE
6136
6137
5213506e
RW
6138# Check whether --enable-libtool-lock was given.
6139if test "${enable_libtool_lock+set}" = set; then :
6140 enableval=$enable_libtool_lock;
6141fi
1cf3d07d 6142
1cf3d07d
SE
6143test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6144
6145# Some flags need to be propagated to the compiler or linker for good
6146# libtool support.
6147case $host in
6148ia64-*-hpux*)
6149 # Find out which ABI we are using.
6150 echo 'int i;' > conftest.$ac_ext
5213506e 6151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6152 (eval $ac_compile) 2>&5
6153 ac_status=$?
5213506e
RW
6154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6155 test $ac_status = 0; }; then
1cf3d07d
SE
6156 case `/usr/bin/file conftest.$ac_objext` in
6157 *ELF-32*)
6158 HPUX_IA64_MODE="32"
6159 ;;
6160 *ELF-64*)
6161 HPUX_IA64_MODE="64"
6162 ;;
6163 esac
6164 fi
6165 rm -rf conftest*
6166 ;;
6167*-*-irix6*)
6168 # Find out which ABI we are using.
43e02a8a 6169 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5213506e 6170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6171 (eval $ac_compile) 2>&5
6172 ac_status=$?
5213506e
RW
6173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6174 test $ac_status = 0; }; then
1cf3d07d
SE
6175 if test "$lt_cv_prog_gnu_ld" = yes; then
6176 case `/usr/bin/file conftest.$ac_objext` in
6177 *32-bit*)
6178 LD="${LD-ld} -melf32bsmip"
6179 ;;
6180 *N32*)
6181 LD="${LD-ld} -melf32bmipn32"
6182 ;;
6183 *64-bit*)
6184 LD="${LD-ld} -melf64bmip"
6185 ;;
6186 esac
6187 else
6188 case `/usr/bin/file conftest.$ac_objext` in
6189 *32-bit*)
6190 LD="${LD-ld} -32"
6191 ;;
6192 *N32*)
6193 LD="${LD-ld} -n32"
6194 ;;
6195 *64-bit*)
6196 LD="${LD-ld} -64"
6197 ;;
6198 esac
6199 fi
6200 fi
6201 rm -rf conftest*
6202 ;;
6203
3cbe17f7 6204x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1cf3d07d
SE
6205s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6206 # Find out which ABI we are using.
6207 echo 'int i;' > conftest.$ac_ext
5213506e 6208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6209 (eval $ac_compile) 2>&5
6210 ac_status=$?
5213506e
RW
6211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6212 test $ac_status = 0; }; then
1cf3d07d
SE
6213 case `/usr/bin/file conftest.o` in
6214 *32-bit*)
6215 case $host in
6216 x86_64-*kfreebsd*-gnu)
6217 LD="${LD-ld} -m elf_i386_fbsd"
6218 ;;
6219 x86_64-*linux*)
e6d5f8c9
L
6220 case `/usr/bin/file conftest.o` in
6221 *x86-64*)
6222 LD="${LD-ld} -m elf32_x86_64"
6223 ;;
6224 *)
6225 LD="${LD-ld} -m elf_i386"
6226 ;;
6227 esac
1cf3d07d 6228 ;;
3cbe17f7
AM
6229 powerpc64le-*linux*)
6230 LD="${LD-ld} -m elf32lppclinux"
6231 ;;
6232 powerpc64-*linux*)
1cf3d07d
SE
6233 LD="${LD-ld} -m elf32ppclinux"
6234 ;;
6235 s390x-*linux*)
6236 LD="${LD-ld} -m elf_s390"
6237 ;;
6238 sparc64-*linux*)
6239 LD="${LD-ld} -m elf32_sparc"
6240 ;;
6241 esac
6242 ;;
6243 *64-bit*)
6244 case $host in
6245 x86_64-*kfreebsd*-gnu)
6246 LD="${LD-ld} -m elf_x86_64_fbsd"
6247 ;;
6248 x86_64-*linux*)
6249 LD="${LD-ld} -m elf_x86_64"
6250 ;;
3cbe17f7
AM
6251 powerpcle-*linux*)
6252 LD="${LD-ld} -m elf64lppc"
6253 ;;
6254 powerpc-*linux*)
1cf3d07d
SE
6255 LD="${LD-ld} -m elf64ppc"
6256 ;;
6257 s390*-*linux*|s390*-*tpf*)
6258 LD="${LD-ld} -m elf64_s390"
6259 ;;
6260 sparc*-*linux*)
6261 LD="${LD-ld} -m elf64_sparc"
6262 ;;
6263 esac
6264 ;;
6265 esac
6266 fi
6267 rm -rf conftest*
6268 ;;
6269
6270*-*-sco3.2v5*)
6271 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6272 SAVE_CFLAGS="$CFLAGS"
6273 CFLAGS="$CFLAGS -belf"
5213506e
RW
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6275$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 6276if ${lt_cv_cc_needs_belf+:} false; then :
5213506e 6277 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6278else
6279 ac_ext=c
6280ac_cpp='$CPP $CPPFLAGS'
6281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6283ac_compiler_gnu=$ac_cv_c_compiler_gnu
6284
6285 if test x$gcc_no_link = xyes; then
22e05272 6286 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 6287fi
5213506e 6288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
6289/* end confdefs.h. */
6290
6291int
6292main ()
6293{
6294
6295 ;
6296 return 0;
6297}
6298_ACEOF
5213506e 6299if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
6300 lt_cv_cc_needs_belf=yes
6301else
5213506e 6302 lt_cv_cc_needs_belf=no
1cf3d07d 6303fi
5213506e
RW
6304rm -f core conftest.err conftest.$ac_objext \
6305 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
6306 ac_ext=c
6307ac_cpp='$CPP $CPPFLAGS'
6308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6310ac_compiler_gnu=$ac_cv_c_compiler_gnu
6311
6312fi
5213506e
RW
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6314$as_echo "$lt_cv_cc_needs_belf" >&6; }
1cf3d07d
SE
6315 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6316 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6317 CFLAGS="$SAVE_CFLAGS"
6318 fi
6319 ;;
6320sparc*-*solaris*)
6321 # Find out which ABI we are using.
6322 echo 'int i;' > conftest.$ac_ext
5213506e 6323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6324 (eval $ac_compile) 2>&5
6325 ac_status=$?
5213506e
RW
6326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6327 test $ac_status = 0; }; then
1cf3d07d
SE
6328 case `/usr/bin/file conftest.o` in
6329 *64-bit*)
6330 case $lt_cv_prog_gnu_ld in
6331 yes*) LD="${LD-ld} -m elf64_sparc" ;;
18d98188
PG
6332 *)
6333 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6334 LD="${LD-ld} -64"
6335 fi
6336 ;;
1cf3d07d
SE
6337 esac
6338 ;;
6339 esac
6340 fi
6341 rm -rf conftest*
6342 ;;
6343esac
6344
6345need_locks="$enable_libtool_lock"
6346
18d98188
PG
6347
6348 case $host_os in
6349 rhapsody* | darwin*)
6350 if test -n "$ac_tool_prefix"; then
6351 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6352set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6355if ${ac_cv_prog_DSYMUTIL+:} false; then :
5213506e 6356 $as_echo_n "(cached) " >&6
1cf3d07d 6357else
18d98188
PG
6358 if test -n "$DSYMUTIL"; then
6359 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6360else
6361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362for as_dir in $PATH
1cf3d07d 6363do
18d98188
PG
6364 IFS=$as_save_IFS
6365 test -z "$as_dir" && as_dir=.
5213506e 6366 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 6368 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 6369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188 6370 break 2
1cf3d07d 6371 fi
18d98188 6372done
5213506e
RW
6373 done
6374IFS=$as_save_IFS
18d98188
PG
6375
6376fi
6377fi
6378DSYMUTIL=$ac_cv_prog_DSYMUTIL
6379if test -n "$DSYMUTIL"; then
5213506e
RW
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6381$as_echo "$DSYMUTIL" >&6; }
18d98188 6382else
5213506e
RW
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384$as_echo "no" >&6; }
18d98188
PG
6385fi
6386
5213506e 6387
18d98188
PG
6388fi
6389if test -z "$ac_cv_prog_DSYMUTIL"; then
6390 ac_ct_DSYMUTIL=$DSYMUTIL
6391 # Extract the first word of "dsymutil", so it can be a program name with args.
6392set dummy dsymutil; ac_word=$2
5213506e
RW
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6395if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5213506e 6396 $as_echo_n "(cached) " >&6
18d98188
PG
6397else
6398 if test -n "$ac_ct_DSYMUTIL"; then
6399 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6400else
6401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402for as_dir in $PATH
6403do
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
5213506e 6406 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 6408 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188
PG
6410 break 2
6411 fi
6412done
5213506e
RW
6413 done
6414IFS=$as_save_IFS
18d98188 6415
18d98188
PG
6416fi
6417fi
6418ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6419if test -n "$ac_ct_DSYMUTIL"; then
5213506e
RW
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6421$as_echo "$ac_ct_DSYMUTIL" >&6; }
18d98188 6422else
5213506e
RW
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424$as_echo "no" >&6; }
18d98188
PG
6425fi
6426
5213506e
RW
6427 if test "x$ac_ct_DSYMUTIL" = x; then
6428 DSYMUTIL=":"
6429 else
6430 case $cross_compiling:$ac_tool_warned in
6431yes:)
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6434ac_tool_warned=yes ;;
6435esac
6436 DSYMUTIL=$ac_ct_DSYMUTIL
6437 fi
18d98188
PG
6438else
6439 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6440fi
6441
6442 if test -n "$ac_tool_prefix"; then
6443 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6444set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6447if ${ac_cv_prog_NMEDIT+:} false; then :
5213506e 6448 $as_echo_n "(cached) " >&6
18d98188
PG
6449else
6450 if test -n "$NMEDIT"; then
6451 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6452else
6453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454for as_dir in $PATH
6455do
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
5213506e 6458 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 6460 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188
PG
6462 break 2
6463 fi
6464done
5213506e
RW
6465 done
6466IFS=$as_save_IFS
18d98188
PG
6467
6468fi
6469fi
6470NMEDIT=$ac_cv_prog_NMEDIT
6471if test -n "$NMEDIT"; then
5213506e
RW
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6473$as_echo "$NMEDIT" >&6; }
18d98188 6474else
5213506e
RW
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476$as_echo "no" >&6; }
18d98188
PG
6477fi
6478
5213506e 6479
18d98188
PG
6480fi
6481if test -z "$ac_cv_prog_NMEDIT"; then
6482 ac_ct_NMEDIT=$NMEDIT
6483 # Extract the first word of "nmedit", so it can be a program name with args.
6484set dummy nmedit; ac_word=$2
5213506e
RW
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6487if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5213506e 6488 $as_echo_n "(cached) " >&6
18d98188
PG
6489else
6490 if test -n "$ac_ct_NMEDIT"; then
6491 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6492else
6493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494for as_dir in $PATH
6495do
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
5213506e 6498 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 6500 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 6501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188
PG
6502 break 2
6503 fi
6504done
5213506e
RW
6505 done
6506IFS=$as_save_IFS
18d98188 6507
18d98188
PG
6508fi
6509fi
6510ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6511if test -n "$ac_ct_NMEDIT"; then
5213506e
RW
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6513$as_echo "$ac_ct_NMEDIT" >&6; }
18d98188 6514else
5213506e
RW
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516$as_echo "no" >&6; }
18d98188
PG
6517fi
6518
5213506e
RW
6519 if test "x$ac_ct_NMEDIT" = x; then
6520 NMEDIT=":"
6521 else
6522 case $cross_compiling:$ac_tool_warned in
6523yes:)
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526ac_tool_warned=yes ;;
6527esac
6528 NMEDIT=$ac_ct_NMEDIT
6529 fi
18d98188
PG
6530else
6531 NMEDIT="$ac_cv_prog_NMEDIT"
6532fi
6533
6534 if test -n "$ac_tool_prefix"; then
6535 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6536set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
6537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6539if ${ac_cv_prog_LIPO+:} false; then :
5213506e 6540 $as_echo_n "(cached) " >&6
18d98188
PG
6541else
6542 if test -n "$LIPO"; then
6543 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6544else
6545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546for as_dir in $PATH
6547do
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
5213506e 6550 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 6552 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 6553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188
PG
6554 break 2
6555 fi
6556done
5213506e
RW
6557 done
6558IFS=$as_save_IFS
18d98188
PG
6559
6560fi
6561fi
6562LIPO=$ac_cv_prog_LIPO
6563if test -n "$LIPO"; then
5213506e
RW
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6565$as_echo "$LIPO" >&6; }
18d98188 6566else
5213506e
RW
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568$as_echo "no" >&6; }
18d98188
PG
6569fi
6570
5213506e 6571
18d98188
PG
6572fi
6573if test -z "$ac_cv_prog_LIPO"; then
6574 ac_ct_LIPO=$LIPO
6575 # Extract the first word of "lipo", so it can be a program name with args.
6576set dummy lipo; ac_word=$2
5213506e
RW
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6579if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5213506e 6580 $as_echo_n "(cached) " >&6
18d98188
PG
6581else
6582 if test -n "$ac_ct_LIPO"; then
6583 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6584else
6585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586for as_dir in $PATH
6587do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
5213506e 6590 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 6592 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 6593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188
PG
6594 break 2
6595 fi
6596done
5213506e
RW
6597 done
6598IFS=$as_save_IFS
18d98188 6599
18d98188
PG
6600fi
6601fi
6602ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6603if test -n "$ac_ct_LIPO"; then
5213506e
RW
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6605$as_echo "$ac_ct_LIPO" >&6; }
18d98188 6606else
5213506e
RW
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608$as_echo "no" >&6; }
18d98188
PG
6609fi
6610
5213506e
RW
6611 if test "x$ac_ct_LIPO" = x; then
6612 LIPO=":"
6613 else
6614 case $cross_compiling:$ac_tool_warned in
6615yes:)
6616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6618ac_tool_warned=yes ;;
6619esac
6620 LIPO=$ac_ct_LIPO
6621 fi
18d98188
PG
6622else
6623 LIPO="$ac_cv_prog_LIPO"
6624fi
6625
6626 if test -n "$ac_tool_prefix"; then
6627 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6628set dummy ${ac_tool_prefix}otool; ac_word=$2
5213506e
RW
6629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6631if ${ac_cv_prog_OTOOL+:} false; then :
5213506e 6632 $as_echo_n "(cached) " >&6
18d98188
PG
6633else
6634 if test -n "$OTOOL"; then
6635 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6636else
6637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638for as_dir in $PATH
6639do
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
5213506e 6642 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 6644 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5213506e 6645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188
PG
6646 break 2
6647 fi
6648done
5213506e
RW
6649 done
6650IFS=$as_save_IFS
18d98188
PG
6651
6652fi
6653fi
6654OTOOL=$ac_cv_prog_OTOOL
6655if test -n "$OTOOL"; then
5213506e
RW
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6657$as_echo "$OTOOL" >&6; }
18d98188 6658else
5213506e
RW
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660$as_echo "no" >&6; }
18d98188
PG
6661fi
6662
5213506e 6663
18d98188
PG
6664fi
6665if test -z "$ac_cv_prog_OTOOL"; then
6666 ac_ct_OTOOL=$OTOOL
6667 # Extract the first word of "otool", so it can be a program name with args.
6668set dummy otool; ac_word=$2
5213506e
RW
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6671if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5213506e 6672 $as_echo_n "(cached) " >&6
18d98188
PG
6673else
6674 if test -n "$ac_ct_OTOOL"; then
6675 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6676else
6677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678for as_dir in $PATH
6679do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
5213506e 6682 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 6684 ac_cv_prog_ac_ct_OTOOL="otool"
5213506e 6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188
PG
6686 break 2
6687 fi
6688done
5213506e
RW
6689 done
6690IFS=$as_save_IFS
18d98188 6691
18d98188
PG
6692fi
6693fi
6694ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6695if test -n "$ac_ct_OTOOL"; then
5213506e
RW
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6697$as_echo "$ac_ct_OTOOL" >&6; }
18d98188 6698else
5213506e
RW
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700$as_echo "no" >&6; }
18d98188
PG
6701fi
6702
5213506e
RW
6703 if test "x$ac_ct_OTOOL" = x; then
6704 OTOOL=":"
6705 else
6706 case $cross_compiling:$ac_tool_warned in
6707yes:)
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710ac_tool_warned=yes ;;
6711esac
6712 OTOOL=$ac_ct_OTOOL
6713 fi
18d98188
PG
6714else
6715 OTOOL="$ac_cv_prog_OTOOL"
6716fi
6717
6718 if test -n "$ac_tool_prefix"; then
6719 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6720set dummy ${ac_tool_prefix}otool64; ac_word=$2
5213506e
RW
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6723if ${ac_cv_prog_OTOOL64+:} false; then :
5213506e 6724 $as_echo_n "(cached) " >&6
18d98188
PG
6725else
6726 if test -n "$OTOOL64"; then
6727 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6728else
6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730for as_dir in $PATH
6731do
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
5213506e 6734 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 6736 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5213506e 6737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188
PG
6738 break 2
6739 fi
6740done
5213506e
RW
6741 done
6742IFS=$as_save_IFS
18d98188
PG
6743
6744fi
6745fi
6746OTOOL64=$ac_cv_prog_OTOOL64
6747if test -n "$OTOOL64"; then
5213506e
RW
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6749$as_echo "$OTOOL64" >&6; }
18d98188 6750else
5213506e
RW
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752$as_echo "no" >&6; }
18d98188
PG
6753fi
6754
5213506e 6755
18d98188
PG
6756fi
6757if test -z "$ac_cv_prog_OTOOL64"; then
6758 ac_ct_OTOOL64=$OTOOL64
6759 # Extract the first word of "otool64", so it can be a program name with args.
6760set dummy otool64; ac_word=$2
5213506e
RW
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6763if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
5213506e 6764 $as_echo_n "(cached) " >&6
18d98188
PG
6765else
6766 if test -n "$ac_ct_OTOOL64"; then
6767 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6768else
6769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770for as_dir in $PATH
6771do
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
5213506e 6774 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18d98188 6776 ac_cv_prog_ac_ct_OTOOL64="otool64"
5213506e 6777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18d98188
PG
6778 break 2
6779 fi
6780done
5213506e
RW
6781 done
6782IFS=$as_save_IFS
18d98188 6783
18d98188
PG
6784fi
6785fi
6786ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6787if test -n "$ac_ct_OTOOL64"; then
5213506e
RW
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6789$as_echo "$ac_ct_OTOOL64" >&6; }
18d98188 6790else
5213506e
RW
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792$as_echo "no" >&6; }
18d98188
PG
6793fi
6794
5213506e
RW
6795 if test "x$ac_ct_OTOOL64" = x; then
6796 OTOOL64=":"
6797 else
6798 case $cross_compiling:$ac_tool_warned in
6799yes:)
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6802ac_tool_warned=yes ;;
6803esac
6804 OTOOL64=$ac_ct_OTOOL64
6805 fi
18d98188
PG
6806else
6807 OTOOL64="$ac_cv_prog_OTOOL64"
6808fi
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
5213506e
RW
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6837$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 6838if ${lt_cv_apple_cc_single_mod+:} false; then :
5213506e 6839 $as_echo_n "(cached) " >&6
18d98188
PG
6840else
6841 lt_cv_apple_cc_single_mod=no
6842 if test -z "${LT_MULTI_MODULE}"; then
6843 # By default we will add the -single_module flag. You can override
6844 # by either setting the environment variable LT_MULTI_MODULE
6845 # non-empty at configure time, or by adding -multi_module to the
6846 # link flags.
6847 rm -rf libconftest.dylib*
6848 echo "int foo(void){return 1;}" > conftest.c
6849 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6850-dynamiclib -Wl,-single_module conftest.c" >&5
6851 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6852 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6853 _lt_result=$?
6854 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6855 lt_cv_apple_cc_single_mod=yes
6856 else
6857 cat conftest.err >&5
6858 fi
6859 rm -rf libconftest.dylib*
6860 rm -f conftest.*
6861 fi
6862fi
5213506e
RW
6863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6864$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6866$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 6867if ${lt_cv_ld_exported_symbols_list+:} false; then :
5213506e 6868 $as_echo_n "(cached) " >&6
18d98188
PG
6869else
6870 lt_cv_ld_exported_symbols_list=no
6871 save_LDFLAGS=$LDFLAGS
6872 echo "_main" > conftest.sym
6873 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6874 if test x$gcc_no_link = xyes; then
22e05272 6875 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18d98188 6876fi
5213506e 6877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18d98188
PG
6878/* end confdefs.h. */
6879
6880int
6881main ()
6882{
6883
6884 ;
6885 return 0;
6886}
6887_ACEOF
5213506e 6888if ac_fn_c_try_link "$LINENO"; then :
18d98188
PG
6889 lt_cv_ld_exported_symbols_list=yes
6890else
5213506e 6891 lt_cv_ld_exported_symbols_list=no
18d98188 6892fi
5213506e
RW
6893rm -f core conftest.err conftest.$ac_objext \
6894 conftest$ac_exeext conftest.$ac_ext
18d98188
PG
6895 LDFLAGS="$save_LDFLAGS"
6896
6897fi
5213506e
RW
6898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6899$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
43e02a8a
RW
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6901$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 6902if ${lt_cv_ld_force_load+:} false; then :
43e02a8a
RW
6903 $as_echo_n "(cached) " >&6
6904else
6905 lt_cv_ld_force_load=no
6906 cat > conftest.c << _LT_EOF
6907int forced_loaded() { return 2;}
6908_LT_EOF
6909 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6910 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6911 echo "$AR cru libconftest.a conftest.o" >&5
6912 $AR cru libconftest.a conftest.o 2>&5
6913 cat > conftest.c << _LT_EOF
6914int main() { return 0;}
6915_LT_EOF
6916 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6917 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6918 _lt_result=$?
6919 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6920 lt_cv_ld_force_load=yes
6921 else
6922 cat conftest.err >&5
6923 fi
6924 rm -f conftest.err libconftest.a conftest conftest.c
6925 rm -rf conftest.dSYM
6926
6927fi
6928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6929$as_echo "$lt_cv_ld_force_load" >&6; }
1352bc88
IS
6930 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
6931 # build without first building modern cctools / linker.
6932 case $host_cpu-$host_os in
6933 *-rhapsody* | *-darwin1.[012])
18d98188 6934 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1352bc88 6935 *-darwin1.*)
18d98188 6936 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1352bc88
IS
6937 *-darwin*)
6938 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
6939 # deployment target is forced to an earlier version.
6940 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
6941 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
6942 ;;
ebf6d33b 6943 10.[012][,.]*)
1352bc88
IS
6944 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6945 ;;
6946 *)
6947 ;;
6948 esac
18d98188
PG
6949 ;;
6950 esac
6951 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6952 _lt_dar_single_mod='$single_module'
6953 fi
6954 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6955 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6956 else
6957 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6958 fi
43e02a8a 6959 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
18d98188
PG
6960 _lt_dsymutil='~$DSYMUTIL $lib || :'
6961 else
6962 _lt_dsymutil=
6963 fi
6964 ;;
6965 esac
6966
6967ac_ext=c
6968ac_cpp='$CPP $CPPFLAGS'
6969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6971ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213506e
RW
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6973$as_echo_n "checking how to run the C preprocessor... " >&6; }
18d98188
PG
6974# On Suns, sometimes $CPP names a directory.
6975if test -n "$CPP" && test -d "$CPP"; then
6976 CPP=
6977fi
6978if test -z "$CPP"; then
22e05272 6979 if ${ac_cv_prog_CPP+:} false; then :
5213506e 6980 $as_echo_n "(cached) " >&6
18d98188
PG
6981else
6982 # Double quotes because CPP needs to be expanded
6983 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6984 do
6985 ac_preproc_ok=false
6986for ac_c_preproc_warn_flag in '' yes
6987do
6988 # Use a header file that comes with gcc, so configuring glibc
6989 # with a fresh cross-compiler works.
6990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6991 # <limits.h> exists even on freestanding compilers.
6992 # On the NeXT, cc -E runs the code through the compiler's parser,
6993 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18d98188
PG
6995/* end confdefs.h. */
6996#ifdef __STDC__
6997# include <limits.h>
6998#else
6999# include <assert.h>
7000#endif
7001 Syntax error
7002_ACEOF
5213506e 7003if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 7004
5213506e 7005else
1cf3d07d
SE
7006 # Broken: fails on valid input.
7007continue
7008fi
22e05272 7009rm -f conftest.err conftest.i conftest.$ac_ext
1cf3d07d 7010
5213506e 7011 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 7012 # can be detected and how.
5213506e 7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7014/* end confdefs.h. */
7015#include <ac_nonexistent.h>
7016_ACEOF
5213506e 7017if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7018 # Broken: success on invalid input.
7019continue
7020else
1cf3d07d
SE
7021 # Passes both tests.
7022ac_preproc_ok=:
7023break
7024fi
22e05272 7025rm -f conftest.err conftest.i conftest.$ac_ext
1cf3d07d
SE
7026
7027done
7028# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 7029rm -f conftest.i conftest.err conftest.$ac_ext
5213506e 7030if $ac_preproc_ok; then :
1cf3d07d
SE
7031 break
7032fi
7033
7034 done
7035 ac_cv_prog_CPP=$CPP
7036
7037fi
7038 CPP=$ac_cv_prog_CPP
7039else
7040 ac_cv_prog_CPP=$CPP
7041fi
5213506e
RW
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7043$as_echo "$CPP" >&6; }
1cf3d07d
SE
7044ac_preproc_ok=false
7045for ac_c_preproc_warn_flag in '' yes
7046do
7047 # Use a header file that comes with gcc, so configuring glibc
7048 # with a fresh cross-compiler works.
7049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7050 # <limits.h> exists even on freestanding compilers.
7051 # On the NeXT, cc -E runs the code through the compiler's parser,
7052 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7054/* end confdefs.h. */
7055#ifdef __STDC__
7056# include <limits.h>
7057#else
7058# include <assert.h>
7059#endif
7060 Syntax error
7061_ACEOF
5213506e 7062if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 7063
5213506e 7064else
1cf3d07d
SE
7065 # Broken: fails on valid input.
7066continue
7067fi
22e05272 7068rm -f conftest.err conftest.i conftest.$ac_ext
1cf3d07d 7069
5213506e 7070 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 7071 # can be detected and how.
5213506e 7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7073/* end confdefs.h. */
7074#include <ac_nonexistent.h>
7075_ACEOF
5213506e 7076if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7077 # Broken: success on invalid input.
7078continue
7079else
1cf3d07d
SE
7080 # Passes both tests.
7081ac_preproc_ok=:
7082break
7083fi
22e05272 7084rm -f conftest.err conftest.i conftest.$ac_ext
1cf3d07d
SE
7085
7086done
7087# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 7088rm -f conftest.i conftest.err conftest.$ac_ext
5213506e
RW
7089if $ac_preproc_ok; then :
7090
1cf3d07d 7091else
5213506e
RW
7092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
7094as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7095See \`config.log' for more details" "$LINENO" 5; }
1cf3d07d
SE
7096fi
7097
7098ac_ext=c
7099ac_cpp='$CPP $CPPFLAGS'
7100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7102ac_compiler_gnu=$ac_cv_c_compiler_gnu
7103
7104
5213506e
RW
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7106$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 7107if ${ac_cv_header_stdc+:} false; then :
5213506e 7108 $as_echo_n "(cached) " >&6
1cf3d07d 7109else
5213506e 7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7111/* end confdefs.h. */
7112#include <stdlib.h>
7113#include <stdarg.h>
7114#include <string.h>
7115#include <float.h>
7116
7117int
7118main ()
7119{
7120
7121 ;
7122 return 0;
7123}
7124_ACEOF
5213506e 7125if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d
SE
7126 ac_cv_header_stdc=yes
7127else
5213506e 7128 ac_cv_header_stdc=no
1cf3d07d 7129fi
5213506e 7130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
7131
7132if test $ac_cv_header_stdc = yes; then
7133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7135/* end confdefs.h. */
7136#include <string.h>
7137
7138_ACEOF
7139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7140 $EGREP "memchr" >/dev/null 2>&1; then :
7141
1cf3d07d
SE
7142else
7143 ac_cv_header_stdc=no
7144fi
7145rm -f conftest*
7146
7147fi
7148
7149if test $ac_cv_header_stdc = yes; then
7150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7152/* end confdefs.h. */
7153#include <stdlib.h>
7154
7155_ACEOF
7156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7157 $EGREP "free" >/dev/null 2>&1; then :
7158
1cf3d07d
SE
7159else
7160 ac_cv_header_stdc=no
7161fi
7162rm -f conftest*
7163
7164fi
7165
7166if test $ac_cv_header_stdc = yes; then
7167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 7168 if test "$cross_compiling" = yes; then :
1cf3d07d
SE
7169 :
7170else
5213506e 7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7172/* end confdefs.h. */
7173#include <ctype.h>
5213506e 7174#include <stdlib.h>
1cf3d07d
SE
7175#if ((' ' & 0x0FF) == 0x020)
7176# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7177# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7178#else
7179# define ISLOWER(c) \
7180 (('a' <= (c) && (c) <= 'i') \
7181 || ('j' <= (c) && (c) <= 'r') \
7182 || ('s' <= (c) && (c) <= 'z'))
7183# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7184#endif
7185
7186#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7187int
7188main ()
7189{
7190 int i;
7191 for (i = 0; i < 256; i++)
7192 if (XOR (islower (i), ISLOWER (i))
7193 || toupper (i) != TOUPPER (i))
5213506e
RW
7194 return 2;
7195 return 0;
1cf3d07d
SE
7196}
7197_ACEOF
5213506e 7198if ac_fn_c_try_run "$LINENO"; then :
1cf3d07d 7199
5213506e
RW
7200else
7201 ac_cv_header_stdc=no
1cf3d07d 7202fi
5213506e
RW
7203rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7204 conftest.$ac_objext conftest.beam conftest.$ac_ext
1cf3d07d 7205fi
5213506e 7206
1cf3d07d
SE
7207fi
7208fi
5213506e
RW
7209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7210$as_echo "$ac_cv_header_stdc" >&6; }
1cf3d07d
SE
7211if test $ac_cv_header_stdc = yes; then
7212
5213506e 7213$as_echo "#define STDC_HEADERS 1" >>confdefs.h
1cf3d07d
SE
7214
7215fi
7216
7217# On IRIX 5.3, sys/types and inttypes.h are conflicting.
1cf3d07d
SE
7218for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7219 inttypes.h stdint.h unistd.h
5213506e
RW
7220do :
7221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7222ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7223"
22e05272 7224if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18d98188 7225 cat >>confdefs.h <<_ACEOF
5213506e 7226#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18d98188
PG
7227_ACEOF
7228
7229fi
7230
7231done
7232
7233
18d98188 7234for ac_header in dlfcn.h
5213506e
RW
7235do :
7236 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7237"
22e05272 7238if test "x$ac_cv_header_dlfcn_h" = xyes; then :
18d98188 7239 cat >>confdefs.h <<_ACEOF
5213506e 7240#define HAVE_DLFCN_H 1
18d98188
PG
7241_ACEOF
7242
7243fi
7244
7245done
7246
7247
7248
43e02a8a
RW
7249
7250
18d98188
PG
7251# Set options
7252
7253
7254
7255 enable_dlopen=no
7256
7257
7258 enable_win32_dll=no
7259
7260
5213506e
RW
7261 # Check whether --enable-shared was given.
7262if test "${enable_shared+set}" = set; then :
7263 enableval=$enable_shared; p=${PACKAGE-default}
18d98188
PG
7264 case $enableval in
7265 yes) enable_shared=yes ;;
7266 no) enable_shared=no ;;
7267 *)
7268 enable_shared=no
7269 # Look at the argument we got. We use all the common list separators.
7270 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7271 for pkg in $enableval; do
7272 IFS="$lt_save_ifs"
7273 if test "X$pkg" = "X$p"; then
7274 enable_shared=yes
7275 fi
7276 done
7277 IFS="$lt_save_ifs"
7278 ;;
7279 esac
7280else
7281 enable_shared=yes
5213506e 7282fi
18d98188
PG
7283
7284
7285
7286
7287
7288
7289
7290
5213506e
RW
7291
7292 # Check whether --enable-static was given.
7293if test "${enable_static+set}" = set; then :
7294 enableval=$enable_static; p=${PACKAGE-default}
18d98188
PG
7295 case $enableval in
7296 yes) enable_static=yes ;;
7297 no) enable_static=no ;;
7298 *)
7299 enable_static=no
7300 # Look at the argument we got. We use all the common list separators.
7301 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7302 for pkg in $enableval; do
7303 IFS="$lt_save_ifs"
7304 if test "X$pkg" = "X$p"; then
7305 enable_static=yes
7306 fi
7307 done
7308 IFS="$lt_save_ifs"
7309 ;;
7310 esac
7311else
7312 enable_static=yes
5213506e 7313fi
18d98188
PG
7314
7315
7316
7317
7318
7319
7320
7321
7322
5213506e
RW
7323
7324# Check whether --with-pic was given.
7325if test "${with_pic+set}" = set; then :
7326 withval=$with_pic; pic_mode="$withval"
18d98188
PG
7327else
7328 pic_mode=default
5213506e
RW
7329fi
7330
1cf3d07d 7331
18d98188 7332test -z "$pic_mode" && pic_mode=default
1cf3d07d 7333
1cf3d07d 7334
1cf3d07d
SE
7335
7336
7337
1cf3d07d 7338
18d98188 7339
5213506e
RW
7340 # Check whether --enable-fast-install was given.
7341if test "${enable_fast_install+set}" = set; then :
7342 enableval=$enable_fast_install; p=${PACKAGE-default}
18d98188
PG
7343 case $enableval in
7344 yes) enable_fast_install=yes ;;
7345 no) enable_fast_install=no ;;
7346 *)
7347 enable_fast_install=no
7348 # Look at the argument we got. We use all the common list separators.
7349 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7350 for pkg in $enableval; do
7351 IFS="$lt_save_ifs"
7352 if test "X$pkg" = "X$p"; then
7353 enable_fast_install=yes
7354 fi
7355 done
7356 IFS="$lt_save_ifs"
7357 ;;
7358 esac
1cf3d07d 7359else
18d98188 7360 enable_fast_install=yes
5213506e
RW
7361fi
7362
18d98188
PG
7363
7364
7365
7366
1cf3d07d 7367
1cf3d07d 7368
1cf3d07d 7369
1cf3d07d
SE
7370
7371
7372
7373# This can be used to rebuild libtool when needed
7374LIBTOOL_DEPS="$ltmain"
7375
7376# Always use our own libtool.
7377LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
43e02a8a 7401
1cf3d07d
SE
7402
7403
7404test -z "$LN_S" && LN_S="ln -s"
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419if test -n "${ZSH_VERSION+set}" ; then
7420 setopt NO_GLOB_SUBST
7421fi
7422
5213506e
RW
7423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7424$as_echo_n "checking for objdir... " >&6; }
22e05272 7425if ${lt_cv_objdir+:} false; then :
5213506e 7426 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7427else
7428 rm -f .libs 2>/dev/null
7429mkdir .libs 2>/dev/null
7430if test -d .libs; then
7431 lt_cv_objdir=.libs
7432else
7433 # MS-DOS does not allow filenames that begin with a dot.
7434 lt_cv_objdir=_libs
7435fi
7436rmdir .libs 2>/dev/null
7437fi
5213506e
RW
7438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7439$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
7440objdir=$lt_cv_objdir
7441
7442
7443
7444
7445
7446cat >>confdefs.h <<_ACEOF
7447#define LT_OBJDIR "$lt_cv_objdir/"
7448_ACEOF
7449
7450
7451
7452
1cf3d07d
SE
7453case $host_os in
7454aix3*)
7455 # AIX sometimes has problems with the GCC collect2 program. For some
7456 # reason, if we set the COLLECT_NAMES environment variable, the problems
7457 # vanish in a puff of smoke.
7458 if test "X${COLLECT_NAMES+set}" != Xset; then
7459 COLLECT_NAMES=
7460 export COLLECT_NAMES
7461 fi
7462 ;;
7463esac
7464
1cf3d07d
SE
7465# Global variables:
7466ofile=libtool
7467can_build_shared=yes
7468
7469# All known linkers require a `.a' archive for static linking (except MSVC,
7470# which needs '.lib').
7471libext=a
7472
7473with_gnu_ld="$lt_cv_prog_gnu_ld"
7474
7475old_CC="$CC"
7476old_CFLAGS="$CFLAGS"
7477
7478# Set sane defaults for various variables
7479test -z "$CC" && CC=cc
7480test -z "$LTCC" && LTCC=$CC
7481test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7482test -z "$LD" && LD=ld
7483test -z "$ac_objext" && ac_objext=o
7484
7485for cc_temp in $compiler""; do
7486 case $cc_temp in
7487 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7488 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7489 \-*) ;;
7490 *) break;;
7491 esac
7492done
43e02a8a 7493cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
7494
7495
7496# Only perform the check for file, if the check method requires it
7497test -z "$MAGIC_CMD" && MAGIC_CMD=file
7498case $deplibs_check_method in
7499file_magic*)
7500 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7502$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 7503if ${lt_cv_path_MAGIC_CMD+:} false; then :
5213506e 7504 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7505else
7506 case $MAGIC_CMD in
7507[\\/*] | ?:[\\/]*)
7508 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7509 ;;
7510*)
7511 lt_save_MAGIC_CMD="$MAGIC_CMD"
7512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7513 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7514 for ac_dir in $ac_dummy; do
7515 IFS="$lt_save_ifs"
7516 test -z "$ac_dir" && ac_dir=.
7517 if test -f $ac_dir/${ac_tool_prefix}file; then
7518 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7519 if test -n "$file_magic_test_file"; then
7520 case $deplibs_check_method in
7521 "file_magic "*)
7522 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7523 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7524 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7525 $EGREP "$file_magic_regex" > /dev/null; then
7526 :
7527 else
7528 cat <<_LT_EOF 1>&2
7529
7530*** Warning: the command libtool uses to detect shared libraries,
7531*** $file_magic_cmd, produces output that libtool cannot recognize.
7532*** The result is that libtool may fail to recognize shared libraries
7533*** as such. This will affect the creation of libtool libraries that
7534*** depend on shared libraries, but programs linked with such libtool
7535*** libraries will work regardless of this problem. Nevertheless, you
7536*** may want to report the problem to your system manager and/or to
7537*** bug-libtool@gnu.org
7538
7539_LT_EOF
7540 fi ;;
7541 esac
7542 fi
7543 break
7544 fi
7545 done
7546 IFS="$lt_save_ifs"
7547 MAGIC_CMD="$lt_save_MAGIC_CMD"
7548 ;;
7549esac
7550fi
7551
7552MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7553if test -n "$MAGIC_CMD"; then
5213506e
RW
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7555$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 7556else
5213506e
RW
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558$as_echo "no" >&6; }
1cf3d07d
SE
7559fi
7560
7561
7562
7563
7564
7565if test -z "$lt_cv_path_MAGIC_CMD"; then
7566 if test -n "$ac_tool_prefix"; then
5213506e
RW
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7568$as_echo_n "checking for file... " >&6; }
22e05272 7569if ${lt_cv_path_MAGIC_CMD+:} false; then :
5213506e 7570 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7571else
7572 case $MAGIC_CMD in
7573[\\/*] | ?:[\\/]*)
7574 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7575 ;;
7576*)
7577 lt_save_MAGIC_CMD="$MAGIC_CMD"
7578 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7579 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7580 for ac_dir in $ac_dummy; do
7581 IFS="$lt_save_ifs"
7582 test -z "$ac_dir" && ac_dir=.
7583 if test -f $ac_dir/file; then
7584 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7585 if test -n "$file_magic_test_file"; then
7586 case $deplibs_check_method in
7587 "file_magic "*)
7588 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7589 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7590 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7591 $EGREP "$file_magic_regex" > /dev/null; then
7592 :
7593 else
7594 cat <<_LT_EOF 1>&2
7595
7596*** Warning: the command libtool uses to detect shared libraries,
7597*** $file_magic_cmd, produces output that libtool cannot recognize.
7598*** The result is that libtool may fail to recognize shared libraries
7599*** as such. This will affect the creation of libtool libraries that
7600*** depend on shared libraries, but programs linked with such libtool
7601*** libraries will work regardless of this problem. Nevertheless, you
7602*** may want to report the problem to your system manager and/or to
7603*** bug-libtool@gnu.org
7604
7605_LT_EOF
7606 fi ;;
7607 esac
7608 fi
7609 break
7610 fi
7611 done
7612 IFS="$lt_save_ifs"
7613 MAGIC_CMD="$lt_save_MAGIC_CMD"
7614 ;;
7615esac
7616fi
7617
7618MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7619if test -n "$MAGIC_CMD"; then
5213506e
RW
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7621$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 7622else
5213506e
RW
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624$as_echo "no" >&6; }
1cf3d07d
SE
7625fi
7626
7627
7628 else
7629 MAGIC_CMD=:
7630 fi
7631fi
7632
7633 fi
7634 ;;
7635esac
7636
7637# Use C for the default configuration in the libtool script
7638
7639lt_save_CC="$CC"
7640ac_ext=c
7641ac_cpp='$CPP $CPPFLAGS'
7642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7644ac_compiler_gnu=$ac_cv_c_compiler_gnu
7645
7646
7647# Source file extension for C test sources.
7648ac_ext=c
7649
7650# Object file extension for compiled C test sources.
7651objext=o
7652objext=$objext
7653
7654# Code to be used in simple compile tests
7655lt_simple_compile_test_code="int some_variable = 0;"
7656
7657# Code to be used in simple link tests
7658lt_simple_link_test_code='int main(){return(0);}'
7659
7660
7661
7662
7663
7664
7665
7666# If no C compiler was specified, use CC.
7667LTCC=${LTCC-"$CC"}
7668
7669# If no C compiler flags were specified, use CFLAGS.
7670LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7671
7672# Allow CC to be a program name with arguments.
7673compiler=$CC
7674
7675# Save the default compiler, since it gets overwritten when the other
7676# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7677compiler_DEFAULT=$CC
7678
7679# save warnings/boilerplate of simple test code
7680ac_outfile=conftest.$ac_objext
7681echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7682eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7683_lt_compiler_boilerplate=`cat conftest.err`
7684$RM conftest*
7685
7686ac_outfile=conftest.$ac_objext
7687echo "$lt_simple_link_test_code" >conftest.$ac_ext
7688eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7689_lt_linker_boilerplate=`cat conftest.err`
18d98188 7690$RM -r conftest*
1cf3d07d
SE
7691
7692
7693## CAVEAT EMPTOR:
7694## There is no encapsulation within the following macros, do not change
7695## the running order or otherwise move them around unless you know exactly
7696## what you are doing...
7697if test -n "$compiler"; then
7698
7699lt_prog_compiler_no_builtin_flag=
7700
7701if test "$GCC" = yes; then
43e02a8a
RW
7702 case $cc_basename in
7703 nvcc*)
7704 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7705 *)
7706 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7707 esac
1cf3d07d 7708
5213506e
RW
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7710$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 7711if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
5213506e 7712 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7713else
7714 lt_cv_prog_compiler_rtti_exceptions=no
7715 ac_outfile=conftest.$ac_objext
7716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7717 lt_compiler_flag="-fno-rtti -fno-exceptions"
7718 # Insert the option either (1) after the last *FLAGS variable, or
7719 # (2) before a word containing "conftest.", or (3) at the end.
7720 # Note that $ac_compile itself does not contain backslashes and begins
7721 # with a dollar sign (not a hyphen), so the echo should work correctly.
7722 # The option is referenced via a variable to avoid confusing sed.
7723 lt_compile=`echo "$ac_compile" | $SED \
7724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7726 -e 's:$: $lt_compiler_flag:'`
43e02a8a 7727 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
7728 (eval "$lt_compile" 2>conftest.err)
7729 ac_status=$?
7730 cat conftest.err >&5
43e02a8a 7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
7732 if (exit $ac_status) && test -s "$ac_outfile"; then
7733 # The compiler can only warn and ignore the option if not recognized
7734 # So say no if there are warnings other than the usual output.
43e02a8a 7735 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
7736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7737 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7738 lt_cv_prog_compiler_rtti_exceptions=yes
7739 fi
7740 fi
7741 $RM conftest*
7742
7743fi
5213506e
RW
7744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7745$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
7746
7747if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7748 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7749else
7750 :
7751fi
7752
7753fi
7754
7755
7756
7757
7758
7759
7760 lt_prog_compiler_wl=
7761lt_prog_compiler_pic=
7762lt_prog_compiler_static=
7763
5213506e
RW
7764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7765$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
7766
7767 if test "$GCC" = yes; then
7768 lt_prog_compiler_wl='-Wl,'
7769 lt_prog_compiler_static='-static'
7770
7771 case $host_os in
7772 aix*)
7773 # All AIX code is PIC.
7774 if test "$host_cpu" = ia64; then
7775 # AIX 5 now supports IA64 processor
7776 lt_prog_compiler_static='-Bstatic'
7777 fi
ae62425f 7778 lt_prog_compiler_pic='-fPIC'
1cf3d07d
SE
7779 ;;
7780
7781 amigaos*)
18d98188
PG
7782 case $host_cpu in
7783 powerpc)
7784 # see comment about AmigaOS4 .so support
7785 lt_prog_compiler_pic='-fPIC'
7786 ;;
7787 m68k)
7788 # FIXME: we need at least 68020 code to build shared libraries, but
7789 # adding the `-m68020' flag to GCC prevents building anything better,
7790 # like `-m68040'.
7791 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7792 ;;
7793 esac
1cf3d07d
SE
7794 ;;
7795
7796 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7797 # PIC is the default for these OSes.
7798 ;;
7799
18d98188 7800 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
7801 # This hack is so that the source file can tell whether it is being
7802 # built for inclusion in a dll (and should export symbols for example).
7803 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7804 # (--disable-auto-import) libraries
7805 lt_prog_compiler_pic='-DDLL_EXPORT'
7806 ;;
7807
7808 darwin* | rhapsody*)
7809 # PIC is the default on this platform
7810 # Common symbols not allowed in MH_DYLIB files
7811 lt_prog_compiler_pic='-fno-common'
7812 ;;
7813
43e02a8a
RW
7814 haiku*)
7815 # PIC is the default for Haiku.
7816 # The "-static" flag exists, but is broken.
7817 lt_prog_compiler_static=
7818 ;;
7819
1cf3d07d 7820 hpux*)
18d98188
PG
7821 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7822 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7823 # sets the default TLS model and affects inlining.
1cf3d07d 7824 case $host_cpu in
18d98188 7825 hppa*64*)
1cf3d07d
SE
7826 # +Z the default
7827 ;;
7828 *)
7829 lt_prog_compiler_pic='-fPIC'
7830 ;;
7831 esac
7832 ;;
7833
7834 interix[3-9]*)
7835 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7836 # Instead, we relocate shared libraries at runtime.
7837 ;;
7838
7839 msdosdjgpp*)
7840 # Just because we use GCC doesn't mean we suddenly get shared libraries
7841 # on systems that don't support them.
7842 lt_prog_compiler_can_build_shared=no
7843 enable_shared=no
7844 ;;
7845
7846 *nto* | *qnx*)
7847 # QNX uses GNU C++, but need to define -shared option too, otherwise
7848 # it will coredump.
7849 lt_prog_compiler_pic='-fPIC -shared'
7850 ;;
7851
7852 sysv4*MP*)
7853 if test -d /usr/nec; then
7854 lt_prog_compiler_pic=-Kconform_pic
7855 fi
7856 ;;
7857
7858 *)
7859 lt_prog_compiler_pic='-fPIC'
7860 ;;
7861 esac
43e02a8a
RW
7862
7863 case $cc_basename in
7864 nvcc*) # Cuda Compiler Driver 2.2
7865 lt_prog_compiler_wl='-Xlinker '
7866 lt_prog_compiler_pic='-Xcompiler -fPIC'
7867 ;;
7868 esac
1cf3d07d
SE
7869 else
7870 # PORTME Check for flag to pass linker flags through the system compiler.
7871 case $host_os in
7872 aix*)
7873 lt_prog_compiler_wl='-Wl,'
7874 if test "$host_cpu" = ia64; then
7875 # AIX 5 now supports IA64 processor
7876 lt_prog_compiler_static='-Bstatic'
7877 else
7878 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7879 fi
7880 ;;
1cf3d07d 7881
18d98188 7882 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
7883 # This hack is so that the source file can tell whether it is being
7884 # built for inclusion in a dll (and should export symbols for example).
7885 lt_prog_compiler_pic='-DDLL_EXPORT'
7886 ;;
7887
7888 hpux9* | hpux10* | hpux11*)
7889 lt_prog_compiler_wl='-Wl,'
7890 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7891 # not for PA HP-UX.
7892 case $host_cpu in
7893 hppa*64*|ia64*)
7894 # +Z the default
7895 ;;
7896 *)
7897 lt_prog_compiler_pic='+Z'
7898 ;;
7899 esac
7900 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7901 lt_prog_compiler_static='${wl}-a ${wl}archive'
7902 ;;
7903
7904 irix5* | irix6* | nonstopux*)
7905 lt_prog_compiler_wl='-Wl,'
7906 # PIC (with -KPIC) is the default.
7907 lt_prog_compiler_static='-non_shared'
7908 ;;
7909
7a9d3fe8 7910 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 7911 case $cc_basename in
18d98188
PG
7912 # old Intel for x86_64 which still supported -KPIC.
7913 ecc*)
1cf3d07d
SE
7914 lt_prog_compiler_wl='-Wl,'
7915 lt_prog_compiler_pic='-KPIC'
7916 lt_prog_compiler_static='-static'
7917 ;;
18d98188
PG
7918 # icc used to be incompatible with GCC.
7919 # ICC 10 doesn't accept -KPIC any more.
7920 icc* | ifort*)
7921 lt_prog_compiler_wl='-Wl,'
7922 lt_prog_compiler_pic='-fPIC'
7923 lt_prog_compiler_static='-static'
7924 ;;
7925 # Lahey Fortran 8.1.
7926 lf95*)
7927 lt_prog_compiler_wl='-Wl,'
7928 lt_prog_compiler_pic='--shared'
7929 lt_prog_compiler_static='--static'
7930 ;;
43e02a8a 7931 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
7932 # Portland Group compilers (*not* the Pentium gcc compiler,
7933 # which looks to be a dead project)
7934 lt_prog_compiler_wl='-Wl,'
7935 lt_prog_compiler_pic='-fpic'
7936 lt_prog_compiler_static='-Bstatic'
7937 ;;
7938 ccc*)
7939 lt_prog_compiler_wl='-Wl,'
7940 # All Alpha code is PIC.
7941 lt_prog_compiler_static='-non_shared'
7942 ;;
43e02a8a
RW
7943 xl* | bgxl* | bgf* | mpixl*)
7944 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18d98188
PG
7945 lt_prog_compiler_wl='-Wl,'
7946 lt_prog_compiler_pic='-qpic'
7947 lt_prog_compiler_static='-qstaticlink'
7948 ;;
1cf3d07d
SE
7949 *)
7950 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
7951 *Sun\ F* | *Sun*Fortran*)
7952 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
7953 lt_prog_compiler_pic='-KPIC'
7954 lt_prog_compiler_static='-Bstatic'
43e02a8a 7955 lt_prog_compiler_wl=''
1cf3d07d 7956 ;;
43e02a8a
RW
7957 *Sun\ C*)
7958 # Sun C 5.9
1cf3d07d
SE
7959 lt_prog_compiler_pic='-KPIC'
7960 lt_prog_compiler_static='-Bstatic'
43e02a8a 7961 lt_prog_compiler_wl='-Wl,'
1cf3d07d
SE
7962 ;;
7963 esac
7964 ;;
7965 esac
7966 ;;
7967
7968 newsos6)
7969 lt_prog_compiler_pic='-KPIC'
7970 lt_prog_compiler_static='-Bstatic'
7971 ;;
7972
7973 *nto* | *qnx*)
7974 # QNX uses GNU C++, but need to define -shared option too, otherwise
7975 # it will coredump.
7976 lt_prog_compiler_pic='-fPIC -shared'
7977 ;;
7978
7979 osf3* | osf4* | osf5*)
7980 lt_prog_compiler_wl='-Wl,'
7981 # All OSF/1 code is PIC.
7982 lt_prog_compiler_static='-non_shared'
7983 ;;
7984
7985 rdos*)
7986 lt_prog_compiler_static='-non_shared'
7987 ;;
7988
7989 solaris*)
7990 lt_prog_compiler_pic='-KPIC'
7991 lt_prog_compiler_static='-Bstatic'
7992 case $cc_basename in
7993 f77* | f90* | f95*)
7994 lt_prog_compiler_wl='-Qoption ld ';;
7995 *)
7996 lt_prog_compiler_wl='-Wl,';;
7997 esac
7998 ;;
7999
8000 sunos4*)
8001 lt_prog_compiler_wl='-Qoption ld '
8002 lt_prog_compiler_pic='-PIC'
8003 lt_prog_compiler_static='-Bstatic'
8004 ;;
8005
8006 sysv4 | sysv4.2uw2* | sysv4.3*)
8007 lt_prog_compiler_wl='-Wl,'
8008 lt_prog_compiler_pic='-KPIC'
8009 lt_prog_compiler_static='-Bstatic'
8010 ;;
8011
8012 sysv4*MP*)
8013 if test -d /usr/nec ;then
8014 lt_prog_compiler_pic='-Kconform_pic'
8015 lt_prog_compiler_static='-Bstatic'
8016 fi
8017 ;;
8018
8019 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8020 lt_prog_compiler_wl='-Wl,'
8021 lt_prog_compiler_pic='-KPIC'
8022 lt_prog_compiler_static='-Bstatic'
8023 ;;
8024
8025 unicos*)
8026 lt_prog_compiler_wl='-Wl,'
8027 lt_prog_compiler_can_build_shared=no
8028 ;;
8029
8030 uts4*)
8031 lt_prog_compiler_pic='-pic'
8032 lt_prog_compiler_static='-Bstatic'
8033 ;;
8034
8035 *)
8036 lt_prog_compiler_can_build_shared=no
8037 ;;
8038 esac
8039 fi
8040
8041case $host_os in
8042 # For platforms which do not support PIC, -DPIC is meaningless:
8043 *djgpp*)
8044 lt_prog_compiler_pic=
8045 ;;
8046 *)
8047 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8048 ;;
8049esac
5213506e
RW
8050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8051$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
8052
8053
8054
8055
8056
8057
8058#
8059# Check to make sure the PIC flag actually works.
8060#
8061if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8063$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 8064if ${lt_cv_prog_compiler_pic_works+:} false; then :
5213506e 8065 $as_echo_n "(cached) " >&6
1cf3d07d 8066else
18d98188 8067 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
8068 ac_outfile=conftest.$ac_objext
8069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8070 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8071 # Insert the option either (1) after the last *FLAGS variable, or
8072 # (2) before a word containing "conftest.", or (3) at the end.
8073 # Note that $ac_compile itself does not contain backslashes and begins
8074 # with a dollar sign (not a hyphen), so the echo should work correctly.
8075 # The option is referenced via a variable to avoid confusing sed.
8076 lt_compile=`echo "$ac_compile" | $SED \
8077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8079 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8080 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8081 (eval "$lt_compile" 2>conftest.err)
8082 ac_status=$?
8083 cat conftest.err >&5
43e02a8a 8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8085 if (exit $ac_status) && test -s "$ac_outfile"; then
8086 # The compiler can only warn and ignore the option if not recognized
8087 # So say no if there are warnings other than the usual output.
43e02a8a 8088 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
8089 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8090 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18d98188 8091 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
8092 fi
8093 fi
8094 $RM conftest*
8095
8096fi
5213506e
RW
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8098$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 8099
18d98188 8100if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
8101 case $lt_prog_compiler_pic in
8102 "" | " "*) ;;
8103 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8104 esac
8105else
8106 lt_prog_compiler_pic=
8107 lt_prog_compiler_can_build_shared=no
8108fi
8109
8110fi
8111
8112
8113
8114
8115
8116
8117#
8118# Check to make sure the static flag actually works.
8119#
8120wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
8121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8122$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 8123if ${lt_cv_prog_compiler_static_works+:} false; then :
5213506e 8124 $as_echo_n "(cached) " >&6
1cf3d07d 8125else
18d98188 8126 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
8127 save_LDFLAGS="$LDFLAGS"
8128 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8129 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8130 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8131 # The linker can only warn and ignore the option if not recognized
8132 # So say no if there are warnings
8133 if test -s conftest.err; then
8134 # Append any errors to the config.log.
8135 cat conftest.err 1>&5
43e02a8a 8136 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
8137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8138 if diff conftest.exp conftest.er2 >/dev/null; then
18d98188 8139 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8140 fi
8141 else
18d98188 8142 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8143 fi
8144 fi
18d98188 8145 $RM -r conftest*
1cf3d07d
SE
8146 LDFLAGS="$save_LDFLAGS"
8147
8148fi
5213506e
RW
8149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8150$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 8151
18d98188 8152if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
8153 :
8154else
8155 lt_prog_compiler_static=
8156fi
8157
8158
8159
8160
8161
8162
8163
5213506e
RW
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8165$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8166if ${lt_cv_prog_compiler_c_o+:} false; then :
5213506e 8167 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8168else
8169 lt_cv_prog_compiler_c_o=no
8170 $RM -r conftest 2>/dev/null
8171 mkdir conftest
8172 cd conftest
8173 mkdir out
8174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8175
8176 lt_compiler_flag="-o out/conftest2.$ac_objext"
8177 # Insert the option either (1) after the last *FLAGS variable, or
8178 # (2) before a word containing "conftest.", or (3) at the end.
8179 # Note that $ac_compile itself does not contain backslashes and begins
8180 # with a dollar sign (not a hyphen), so the echo should work correctly.
8181 lt_compile=`echo "$ac_compile" | $SED \
8182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8184 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8185 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8186 (eval "$lt_compile" 2>out/conftest.err)
8187 ac_status=$?
8188 cat out/conftest.err >&5
43e02a8a 8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8190 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8191 then
8192 # The compiler can only warn and ignore the option if not recognized
8193 # So say no if there are warnings
43e02a8a 8194 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
8195 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8196 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8197 lt_cv_prog_compiler_c_o=yes
8198 fi
8199 fi
8200 chmod u+w . 2>&5
8201 $RM conftest*
8202 # SGI C++ compiler will create directory out/ii_files/ for
8203 # template instantiation
8204 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8205 $RM out/* && rmdir out
8206 cd ..
8207 $RM -r conftest
8208 $RM conftest*
8209
8210fi
5213506e
RW
8211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8212$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
8213
8214
8215
8216
8217
8218
5213506e
RW
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8220$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8221if ${lt_cv_prog_compiler_c_o+:} false; then :
5213506e 8222 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8223else
8224 lt_cv_prog_compiler_c_o=no
8225 $RM -r conftest 2>/dev/null
8226 mkdir conftest
8227 cd conftest
8228 mkdir out
8229 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8230
8231 lt_compiler_flag="-o out/conftest2.$ac_objext"
8232 # Insert the option either (1) after the last *FLAGS variable, or
8233 # (2) before a word containing "conftest.", or (3) at the end.
8234 # Note that $ac_compile itself does not contain backslashes and begins
8235 # with a dollar sign (not a hyphen), so the echo should work correctly.
8236 lt_compile=`echo "$ac_compile" | $SED \
8237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8239 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8240 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8241 (eval "$lt_compile" 2>out/conftest.err)
8242 ac_status=$?
8243 cat out/conftest.err >&5
43e02a8a 8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8245 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8246 then
8247 # The compiler can only warn and ignore the option if not recognized
8248 # So say no if there are warnings
43e02a8a 8249 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
8250 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8251 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8252 lt_cv_prog_compiler_c_o=yes
8253 fi
8254 fi
8255 chmod u+w . 2>&5
8256 $RM conftest*
8257 # SGI C++ compiler will create directory out/ii_files/ for
8258 # template instantiation
8259 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8260 $RM out/* && rmdir out
8261 cd ..
8262 $RM -r conftest
8263 $RM conftest*
8264
8265fi
5213506e
RW
8266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8267$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
8268
8269
8270
8271
8272hard_links="nottested"
8273if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8274 # do not overwrite the value of need_locks provided by the user
5213506e
RW
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8276$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
8277 hard_links=yes
8278 $RM conftest*
8279 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8280 touch conftest.a
8281 ln conftest.a conftest.b 2>&5 || hard_links=no
8282 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8284$as_echo "$hard_links" >&6; }
1cf3d07d 8285 if test "$hard_links" = no; then
5213506e
RW
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8287$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
8288 need_locks=warn
8289 fi
8290else
8291 need_locks=no
8292fi
8293
8294
8295
8296
8297
8298
5213506e
RW
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8300$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
8301
8302 runpath_var=
8303 allow_undefined_flag=
8304 always_export_symbols=no
8305 archive_cmds=
8306 archive_expsym_cmds=
8307 compiler_needs_object=no
8308 enable_shared_with_static_runtimes=no
8309 export_dynamic_flag_spec=
8310 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8311 hardcode_automatic=no
8312 hardcode_direct=no
8313 hardcode_direct_absolute=no
8314 hardcode_libdir_flag_spec=
8315 hardcode_libdir_flag_spec_ld=
8316 hardcode_libdir_separator=
8317 hardcode_minus_L=no
8318 hardcode_shlibpath_var=unsupported
8319 inherit_rpath=no
8320 link_all_deplibs=unknown
8321 module_cmds=
8322 module_expsym_cmds=
8323 old_archive_from_new_cmds=
8324 old_archive_from_expsyms_cmds=
8325 thread_safe_flag_spec=
8326 whole_archive_flag_spec=
8327 # include_expsyms should be a list of space-separated symbols to be *always*
8328 # included in the symbol list
8329 include_expsyms=
8330 # exclude_expsyms can be an extended regexp of symbols to exclude
8331 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8332 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8333 # as well as any symbol that contains `d'.
18d98188 8334 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
8335 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8336 # platforms (ab)use it in PIC code, but their linkers get confused if
8337 # the symbol is explicitly referenced. Since portable code cannot
8338 # rely on this symbol name, it's probably fine to never include it in
8339 # preloaded symbol tables.
18d98188 8340 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
8341 extract_expsyms_cmds=
8342
8343 case $host_os in
18d98188 8344 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8345 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8346 # When not using gcc, we currently assume that we are using
8347 # Microsoft Visual C++.
8348 if test "$GCC" != yes; then
8349 with_gnu_ld=no
8350 fi
8351 ;;
8352 interix*)
8353 # we just hope/assume this is gcc and not c89 (= MSVC++)
8354 with_gnu_ld=yes
8355 ;;
8356 openbsd*)
8357 with_gnu_ld=no
8358 ;;
8359 esac
8360
8361 ld_shlibs=yes
43e02a8a
RW
8362
8363 # On some targets, GNU ld is compatible enough with the native linker
8364 # that we're better off using the native interface for both.
8365 lt_use_gnu_ld_interface=no
1cf3d07d 8366 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
8367 case $host_os in
8368 aix*)
8369 # The AIX port of GNU ld has always aspired to compatibility
8370 # with the native linker. However, as the warning in the GNU ld
8371 # block says, versions before 2.19.5* couldn't really create working
8372 # shared libraries, regardless of the interface used.
8373 case `$LD -v 2>&1` in
8374 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8375 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8376 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8377 *)
8378 lt_use_gnu_ld_interface=yes
8379 ;;
8380 esac
8381 ;;
8382 *)
8383 lt_use_gnu_ld_interface=yes
8384 ;;
8385 esac
8386 fi
8387
8388 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
8389 # If archive_cmds runs LD, not CC, wlarc should be empty
8390 wlarc='${wl}'
8391
8392 # Set some defaults for GNU ld with shared library support. These
8393 # are reset later if shared libraries are not supported. Putting them
8394 # here allows them to be overridden if necessary.
8395 runpath_var=LD_RUN_PATH
8396 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8397 export_dynamic_flag_spec='${wl}--export-dynamic'
8398 # ancient GNU ld didn't support --whole-archive et. al.
8399 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8400 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8401 else
8402 whole_archive_flag_spec=
8403 fi
8404 supports_anon_versioning=no
8405 case `$LD -v 2>&1` in
43e02a8a 8406 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
8407 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8408 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8409 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8410 *\ 2.11.*) ;; # other 2.11 versions
8411 *) supports_anon_versioning=yes ;;
8412 esac
8413
8414 # See if GNU ld supports shared libraries.
8415 case $host_os in
3e7b7e2b 8416 aix[3-9]*)
1cf3d07d
SE
8417 # On AIX/PPC, the GNU linker is very broken
8418 if test "$host_cpu" != ia64; then
8419 ld_shlibs=no
8420 cat <<_LT_EOF 1>&2
8421
43e02a8a 8422*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
8423*** to be unable to reliably create shared libraries on AIX.
8424*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
8425*** really care for shared libraries, you may want to install binutils
8426*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8427*** You will then need to restart the configuration process.
1cf3d07d
SE
8428
8429_LT_EOF
8430 fi
8431 ;;
8432
8433 amigaos*)
18d98188
PG
8434 case $host_cpu in
8435 powerpc)
8436 # see comment about AmigaOS4 .so support
8437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8438 archive_expsym_cmds=''
8439 ;;
8440 m68k)
8441 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)'
8442 hardcode_libdir_flag_spec='-L$libdir'
8443 hardcode_minus_L=yes
8444 ;;
8445 esac
1cf3d07d
SE
8446 ;;
8447
8448 beos*)
8449 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8450 allow_undefined_flag=unsupported
8451 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8452 # support --undefined. This deserves some investigation. FIXME
8453 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8454 else
8455 ld_shlibs=no
8456 fi
8457 ;;
8458
18d98188 8459 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8460 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8461 # as there is no search path for DLLs.
8462 hardcode_libdir_flag_spec='-L$libdir'
43e02a8a 8463 export_dynamic_flag_spec='${wl}--export-all-symbols'
1cf3d07d
SE
8464 allow_undefined_flag=unsupported
8465 always_export_symbols=no
8466 enable_shared_with_static_runtimes=yes
8467 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8468
8469 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8471 # If the export-symbols file already is a .def file (1st line
8472 # is EXPORTS), use it as is; otherwise, prepend...
8473 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8474 cp $export_symbols $output_objdir/$soname.def;
8475 else
8476 echo EXPORTS > $output_objdir/$soname.def;
8477 cat $export_symbols >> $output_objdir/$soname.def;
8478 fi~
8479 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8480 else
8481 ld_shlibs=no
8482 fi
8483 ;;
8484
43e02a8a
RW
8485 haiku*)
8486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8487 link_all_deplibs=yes
8488 ;;
8489
1cf3d07d
SE
8490 interix[3-9]*)
8491 hardcode_direct=no
8492 hardcode_shlibpath_var=no
8493 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8494 export_dynamic_flag_spec='${wl}-E'
8495 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8496 # Instead, shared libraries are loaded at an image base (0x10000000 by
8497 # default) and relocated if they conflict, which is a slow very memory
8498 # consuming and fragmenting process. To avoid this, we pick a random,
8499 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8500 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8501 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8502 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'
8503 ;;
8504
e9085da5 8505 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
1cf3d07d
SE
8506 tmp_diet=no
8507 if test "$host_os" = linux-dietlibc; then
8508 case $cc_basename in
8509 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8510 esac
8511 fi
8512 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8513 && test "$tmp_diet" = no
8514 then
a699d672 8515 tmp_addflag=' $pic_flag'
18d98188 8516 tmp_sharedflag='-shared'
1cf3d07d
SE
8517 case $cc_basename,$host_cpu in
8518 pgcc*) # Portland Group C compiler
43e02a8a 8519 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
8520 tmp_addflag=' $pic_flag'
8521 ;;
43e02a8a
RW
8522 pgf77* | pgf90* | pgf95* | pgfortran*)
8523 # Portland Group f77 and f90 compilers
8524 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
8525 tmp_addflag=' $pic_flag -Mnomain' ;;
8526 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8527 tmp_addflag=' -i_dynamic' ;;
8528 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8529 tmp_addflag=' -i_dynamic -nofor_main' ;;
8530 ifc* | ifort*) # Intel Fortran compiler
8531 tmp_addflag=' -nofor_main' ;;
18d98188
PG
8532 lf95*) # Lahey Fortran 8.1
8533 whole_archive_flag_spec=
8534 tmp_sharedflag='--shared' ;;
43e02a8a 8535 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18d98188
PG
8536 tmp_sharedflag='-qmkshrobj'
8537 tmp_addflag= ;;
43e02a8a
RW
8538 nvcc*) # Cuda Compiler Driver 2.2
8539 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8540 compiler_needs_object=yes
8541 ;;
1cf3d07d
SE
8542 esac
8543 case `$CC -V 2>&1 | sed 5q` in
8544 *Sun\ C*) # Sun C 5.9
43e02a8a 8545 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
8546 compiler_needs_object=yes
8547 tmp_sharedflag='-G' ;;
8548 *Sun\ F*) # Sun Fortran 8.3
8549 tmp_sharedflag='-G' ;;
1cf3d07d
SE
8550 esac
8551 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8552
8553 if test "x$supports_anon_versioning" = xyes; then
8554 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8555 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8556 echo "local: *; };" >> $output_objdir/$libname.ver~
8557 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8558 fi
18d98188
PG
8559
8560 case $cc_basename in
43e02a8a 8561 xlf* | bgf* | bgxlf* | mpixlf*)
18d98188
PG
8562 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8563 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8564 hardcode_libdir_flag_spec=
8565 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8566 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8567 if test "x$supports_anon_versioning" = xyes; then
8568 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8569 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8570 echo "local: *; };" >> $output_objdir/$libname.ver~
8571 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8572 fi
8573 ;;
8574 esac
1cf3d07d
SE
8575 else
8576 ld_shlibs=no
8577 fi
8578 ;;
8579
8580 netbsd*)
8581 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8582 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8583 wlarc=
8584 else
8585 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8586 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8587 fi
8588 ;;
8589
8590 solaris*)
8591 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8592 ld_shlibs=no
8593 cat <<_LT_EOF 1>&2
8594
8595*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8596*** create shared libraries on Solaris systems. Therefore, libtool
8597*** is disabling shared libraries support. We urge you to upgrade GNU
8598*** binutils to release 2.9.1 or newer. Another option is to modify
8599*** your PATH or compiler configuration so that the native linker is
8600*** used, and then restart.
8601
8602_LT_EOF
8603 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8605 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8606 else
8607 ld_shlibs=no
8608 fi
8609 ;;
8610
8611 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8612 case `$LD -v 2>&1` in
8613 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8614 ld_shlibs=no
8615 cat <<_LT_EOF 1>&2
8616
8617*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8618*** reliably create shared libraries on SCO systems. Therefore, libtool
8619*** is disabling shared libraries support. We urge you to upgrade GNU
8620*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8621*** your PATH or compiler configuration so that the native linker is
8622*** used, and then restart.
8623
8624_LT_EOF
8625 ;;
8626 *)
8627 # For security reasons, it is highly recommended that you always
8628 # use absolute paths for naming shared libraries, and exclude the
8629 # DT_RUNPATH tag from executables and libraries. But doing so
8630 # requires that you compile everything twice, which is a pain.
8631 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8632 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8633 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8634 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8635 else
8636 ld_shlibs=no
8637 fi
8638 ;;
8639 esac
8640 ;;
8641
8642 sunos4*)
8643 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8644 wlarc=
8645 hardcode_direct=yes
8646 hardcode_shlibpath_var=no
8647 ;;
8648
8649 *)
8650 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8652 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8653 else
8654 ld_shlibs=no
8655 fi
8656 ;;
8657 esac
8658
8659 if test "$ld_shlibs" = no; then
8660 runpath_var=
8661 hardcode_libdir_flag_spec=
8662 export_dynamic_flag_spec=
8663 whole_archive_flag_spec=
8664 fi
8665 else
8666 # PORTME fill in a description of your system's linker (not GNU ld)
8667 case $host_os in
8668 aix3*)
8669 allow_undefined_flag=unsupported
8670 always_export_symbols=yes
8671 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'
8672 # Note: this linker hardcodes the directories in LIBPATH if there
8673 # are no directories specified by -L.
8674 hardcode_minus_L=yes
8675 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8676 # Neither direct hardcoding nor static linking is supported with a
8677 # broken collect2.
8678 hardcode_direct=unsupported
8679 fi
8680 ;;
8681
3e7b7e2b 8682 aix[4-9]*)
1cf3d07d
SE
8683 if test "$host_cpu" = ia64; then
8684 # On IA64, the linker does run time linking by default, so we don't
8685 # have to do anything special.
8686 aix_use_runtimelinking=no
8687 exp_sym_flag='-Bexport'
8688 no_entry_flag=""
8689 else
8690 # If we're using GNU nm, then we don't want the "-C" option.
8691 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
8692 # Also, AIX nm treats weak defined symbols like other global
8693 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 8694 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 8695 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d 8696 else
84c1b9d3 8697 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d
SE
8698 fi
8699 aix_use_runtimelinking=no
8700
8701 # Test if we are trying to use run time linking or normal
8702 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8703 # need to do runtime linking.
3e7b7e2b 8704 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
8705 for ld_flag in $LDFLAGS; do
8706 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8707 aix_use_runtimelinking=yes
8708 break
8709 fi
8710 done
8711 ;;
8712 esac
8713
8714 exp_sym_flag='-bexport'
8715 no_entry_flag='-bnoentry'
8716 fi
8717
8718 # When large executables or shared objects are built, AIX ld can
8719 # have problems creating the table of contents. If linking a library
8720 # or program results in "error TOC overflow" add -mminimal-toc to
8721 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8722 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8723
8724 archive_cmds=''
8725 hardcode_direct=yes
8726 hardcode_direct_absolute=yes
8727 hardcode_libdir_separator=':'
8728 link_all_deplibs=yes
8729 file_list_spec='${wl}-f,'
8730
8731 if test "$GCC" = yes; then
8732 case $host_os in aix4.[012]|aix4.[012].*)
8733 # We only want to do this on AIX 4.2 and lower, the check
8734 # below for broken collect2 doesn't work under 4.3+
8735 collect2name=`${CC} -print-prog-name=collect2`
8736 if test -f "$collect2name" &&
8737 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8738 then
8739 # We have reworked collect2
8740 :
8741 else
8742 # We have old collect2
8743 hardcode_direct=unsupported
8744 # It fails to find uninstalled libraries when the uninstalled
8745 # path is not listed in the libpath. Setting hardcode_minus_L
8746 # to unsupported forces relinking
8747 hardcode_minus_L=yes
8748 hardcode_libdir_flag_spec='-L$libdir'
8749 hardcode_libdir_separator=
8750 fi
8751 ;;
8752 esac
8753 shared_flag='-shared'
8754 if test "$aix_use_runtimelinking" = yes; then
8755 shared_flag="$shared_flag "'${wl}-G'
8756 fi
8757 else
8758 # not using gcc
8759 if test "$host_cpu" = ia64; then
8760 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8761 # chokes on -Wl,-G. The following line is correct:
8762 shared_flag='-G'
8763 else
8764 if test "$aix_use_runtimelinking" = yes; then
8765 shared_flag='${wl}-G'
8766 else
8767 shared_flag='${wl}-bM:SRE'
8768 fi
8769 fi
8770 fi
8771
18d98188 8772 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
8773 # It seems that -bexpall does not export symbols beginning with
8774 # underscore (_), so it is better to generate a list of symbols to export.
8775 always_export_symbols=yes
8776 if test "$aix_use_runtimelinking" = yes; then
8777 # Warning - without using the other runtime loading flags (-brtl),
8778 # -berok will link without error, but may produce a broken library.
8779 allow_undefined_flag='-berok'
8780 # Determine the default libpath from the value encoded in an
8781 # empty executable.
8782 if test x$gcc_no_link = xyes; then
22e05272 8783 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 8784fi
5213506e 8785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8786/* end confdefs.h. */
8787
8788int
8789main ()
8790{
8791
8792 ;
8793 return 0;
8794}
8795_ACEOF
5213506e 8796if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
8797
8798lt_aix_libpath_sed='
8799 /Import File Strings/,/^$/ {
8800 /^0/ {
8801 s/^0 *\(.*\)$/\1/
8802 p
8803 }
8804 }'
8805aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8806# Check for a 64-bit object if we didn't find anything.
8807if test -z "$aix_libpath"; then
8808 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8809fi
1cf3d07d 8810fi
5213506e
RW
8811rm -f core conftest.err conftest.$ac_objext \
8812 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
8813if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8814
8815 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 8816 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1cf3d07d
SE
8817 else
8818 if test "$host_cpu" = ia64; then
8819 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8820 allow_undefined_flag="-z nodefs"
8821 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"
8822 else
8823 # Determine the default libpath from the value encoded in an
8824 # empty executable.
8825 if test x$gcc_no_link = xyes; then
22e05272 8826 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 8827fi
5213506e 8828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8829/* end confdefs.h. */
8830
8831int
8832main ()
8833{
8834
8835 ;
8836 return 0;
8837}
8838_ACEOF
5213506e 8839if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
8840
8841lt_aix_libpath_sed='
8842 /Import File Strings/,/^$/ {
8843 /^0/ {
8844 s/^0 *\(.*\)$/\1/
8845 p
8846 }
8847 }'
8848aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8849# Check for a 64-bit object if we didn't find anything.
8850if test -z "$aix_libpath"; then
8851 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8852fi
1cf3d07d 8853fi
5213506e
RW
8854rm -f core conftest.err conftest.$ac_objext \
8855 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
8856if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8857
8858 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8859 # Warning - without using the other run time loading flags,
8860 # -berok will link without error, but may produce a broken library.
8861 no_undefined_flag=' ${wl}-bernotok'
8862 allow_undefined_flag=' ${wl}-berok'
43e02a8a
RW
8863 if test "$with_gnu_ld" = yes; then
8864 # We only use this code for GNU lds that support --whole-archive.
8865 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8866 else
8867 # Exported symbols can be pulled into shared objects from archives
8868 whole_archive_flag_spec='$convenience'
8869 fi
1cf3d07d
SE
8870 archive_cmds_need_lc=yes
8871 # This is similar to how AIX traditionally builds its shared libraries.
8872 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'
8873 fi
8874 fi
8875 ;;
8876
8877 amigaos*)
18d98188
PG
8878 case $host_cpu in
8879 powerpc)
8880 # see comment about AmigaOS4 .so support
8881 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8882 archive_expsym_cmds=''
8883 ;;
8884 m68k)
8885 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)'
8886 hardcode_libdir_flag_spec='-L$libdir'
8887 hardcode_minus_L=yes
8888 ;;
8889 esac
1cf3d07d
SE
8890 ;;
8891
8892 bsdi[45]*)
8893 export_dynamic_flag_spec=-rdynamic
8894 ;;
8895
18d98188 8896 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8897 # When not using gcc, we currently assume that we are using
8898 # Microsoft Visual C++.
8899 # hardcode_libdir_flag_spec is actually meaningless, as there is
8900 # no search path for DLLs.
8901 hardcode_libdir_flag_spec=' '
8902 allow_undefined_flag=unsupported
8903 # Tell ltmain to make .lib files, not .a files.
8904 libext=lib
8905 # Tell ltmain to make .dll files, not .so files.
8906 shrext_cmds=".dll"
8907 # FIXME: Setting linknames here is a bad hack.
43e02a8a 8908 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
8909 # The linker will automatically build a .lib file if we build a DLL.
8910 old_archive_from_new_cmds='true'
8911 # FIXME: Should let the user specify the lib program.
8912 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8913 fix_srcfile_path='`cygpath -w "$srcfile"`'
8914 enable_shared_with_static_runtimes=yes
8915 ;;
8916
8917 darwin* | rhapsody*)
1cf3d07d 8918
18d98188
PG
8919
8920 archive_cmds_need_lc=no
8921 hardcode_direct=no
8922 hardcode_automatic=yes
8923 hardcode_shlibpath_var=unsupported
43e02a8a
RW
8924 if test "$lt_cv_ld_force_load" = "yes"; then
8925 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
8926 else
8927 whole_archive_flag_spec=''
8928 fi
18d98188
PG
8929 link_all_deplibs=yes
8930 allow_undefined_flag="$_lt_dar_allow_undefined"
8931 case $cc_basename in
8932 ifort*) _lt_dar_can_shared=yes ;;
8933 *) _lt_dar_can_shared=$GCC ;;
8934 esac
8935 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 8936 output_verbose_link_cmd=func_echo_all
18d98188
PG
8937 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8938 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8939 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}"
8940 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}"
8941
8942 else
8943 ld_shlibs=no
8944 fi
8945
1cf3d07d
SE
8946 ;;
8947
8948 dgux*)
8949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8950 hardcode_libdir_flag_spec='-L$libdir'
8951 hardcode_shlibpath_var=no
8952 ;;
8953
1cf3d07d
SE
8954 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8955 # support. Future versions do this automatically, but an explicit c++rt0.o
8956 # does not break anything, and helps significantly (at the cost of a little
8957 # extra space).
8958 freebsd2.2*)
8959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8960 hardcode_libdir_flag_spec='-R$libdir'
8961 hardcode_direct=yes
8962 hardcode_shlibpath_var=no
8963 ;;
8964
8965 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 8966 freebsd2.*)
1cf3d07d
SE
8967 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8968 hardcode_direct=yes
8969 hardcode_minus_L=yes
8970 hardcode_shlibpath_var=no
8971 ;;
8972
8973 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8974 freebsd* | dragonfly*)
8975 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8976 hardcode_libdir_flag_spec='-R$libdir'
8977 hardcode_direct=yes
8978 hardcode_shlibpath_var=no
8979 ;;
8980
8981 hpux9*)
8982 if test "$GCC" = yes; then
8983 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'
8984 else
8985 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'
8986 fi
8987 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8988 hardcode_libdir_separator=:
8989 hardcode_direct=yes
8990
8991 # hardcode_minus_L: Not really in the search PATH,
8992 # but as the default location of the library.
8993 hardcode_minus_L=yes
8994 export_dynamic_flag_spec='${wl}-E'
8995 ;;
8996
8997 hpux10*)
43e02a8a 8998 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
8999 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9000 else
9001 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9002 fi
9003 if test "$with_gnu_ld" = no; then
9004 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9005 hardcode_libdir_flag_spec_ld='+b $libdir'
9006 hardcode_libdir_separator=:
9007 hardcode_direct=yes
9008 hardcode_direct_absolute=yes
9009 export_dynamic_flag_spec='${wl}-E'
9010 # hardcode_minus_L: Not really in the search PATH,
9011 # but as the default location of the library.
9012 hardcode_minus_L=yes
9013 fi
9014 ;;
9015
9016 hpux11*)
43e02a8a 9017 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
9018 case $host_cpu in
9019 hppa*64*)
4e4ba647 9020 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
9021 ;;
9022 ia64*)
18d98188 9023 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
9024 ;;
9025 *)
9026 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9027 ;;
9028 esac
9029 else
9030 case $host_cpu in
9031 hppa*64*)
4e4ba647 9032 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
9033 ;;
9034 ia64*)
9035 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9036 ;;
9037 *)
43e02a8a
RW
9038
9039 # Older versions of the 11.00 compiler do not understand -b yet
9040 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9042$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 9043if ${lt_cv_prog_compiler__b+:} false; then :
43e02a8a
RW
9044 $as_echo_n "(cached) " >&6
9045else
9046 lt_cv_prog_compiler__b=no
9047 save_LDFLAGS="$LDFLAGS"
9048 LDFLAGS="$LDFLAGS -b"
9049 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9050 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9051 # The linker can only warn and ignore the option if not recognized
9052 # So say no if there are warnings
9053 if test -s conftest.err; then
9054 # Append any errors to the config.log.
9055 cat conftest.err 1>&5
9056 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9058 if diff conftest.exp conftest.er2 >/dev/null; then
9059 lt_cv_prog_compiler__b=yes
9060 fi
9061 else
9062 lt_cv_prog_compiler__b=yes
9063 fi
9064 fi
9065 $RM -r conftest*
9066 LDFLAGS="$save_LDFLAGS"
9067
9068fi
9069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9070$as_echo "$lt_cv_prog_compiler__b" >&6; }
9071
9072if test x"$lt_cv_prog_compiler__b" = xyes; then
9073 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9074else
9075 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9076fi
9077
1cf3d07d
SE
9078 ;;
9079 esac
9080 fi
9081 if test "$with_gnu_ld" = no; then
9082 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9083 hardcode_libdir_separator=:
9084
9085 case $host_cpu in
9086 hppa*64*|ia64*)
9087 hardcode_direct=no
9088 hardcode_shlibpath_var=no
9089 ;;
9090 *)
9091 hardcode_direct=yes
9092 hardcode_direct_absolute=yes
9093 export_dynamic_flag_spec='${wl}-E'
9094
9095 # hardcode_minus_L: Not really in the search PATH,
9096 # but as the default location of the library.
9097 hardcode_minus_L=yes
9098 ;;
9099 esac
9100 fi
9101 ;;
9102
9103 irix5* | irix6* | nonstopux*)
9104 if test "$GCC" = yes; then
43e02a8a 9105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
9106 # Try to use the -exported_symbol ld option, if it does not
9107 # work, assume that -exports_file does not work either and
9108 # implicitly export all symbols.
9109 save_LDFLAGS="$LDFLAGS"
9110 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9111 if test x$gcc_no_link = xyes; then
22e05272 9112 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 9113fi
5213506e
RW
9114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115/* end confdefs.h. */
1cf3d07d
SE
9116int foo(void) {}
9117_ACEOF
5213506e 9118if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 9119 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
1cf3d07d 9120
1cf3d07d 9121fi
5213506e
RW
9122rm -f core conftest.err conftest.$ac_objext \
9123 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9124 LDFLAGS="$save_LDFLAGS"
9125 else
43e02a8a
RW
9126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9127 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1cf3d07d
SE
9128 fi
9129 archive_cmds_need_lc='no'
9130 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9131 hardcode_libdir_separator=:
9132 inherit_rpath=yes
9133 link_all_deplibs=yes
9134 ;;
9135
9136 netbsd*)
9137 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9138 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9139 else
9140 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9141 fi
9142 hardcode_libdir_flag_spec='-R$libdir'
9143 hardcode_direct=yes
9144 hardcode_shlibpath_var=no
9145 ;;
9146
9147 newsos6)
9148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9149 hardcode_direct=yes
9150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9151 hardcode_libdir_separator=:
9152 hardcode_shlibpath_var=no
9153 ;;
9154
9155 *nto* | *qnx*)
9156 ;;
9157
9158 openbsd*)
18d98188
PG
9159 if test -f /usr/libexec/ld.so; then
9160 hardcode_direct=yes
9161 hardcode_shlibpath_var=no
9162 hardcode_direct_absolute=yes
9163 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 9164 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18d98188 9165 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 9166 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18d98188
PG
9167 export_dynamic_flag_spec='${wl}-E'
9168 else
9169 case $host_os in
9170 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9171 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9172 hardcode_libdir_flag_spec='-R$libdir'
9173 ;;
9174 *)
9175 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9176 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9177 ;;
9178 esac
9179 fi
9180 else
9181 ld_shlibs=no
1cf3d07d
SE
9182 fi
9183 ;;
9184
9185 os2*)
9186 hardcode_libdir_flag_spec='-L$libdir'
9187 hardcode_minus_L=yes
9188 allow_undefined_flag=unsupported
43e02a8a 9189 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'
1cf3d07d
SE
9190 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9191 ;;
9192
9193 osf3*)
9194 if test "$GCC" = yes; then
9195 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 9196 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
9197 else
9198 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 9199 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
9200 fi
9201 archive_cmds_need_lc='no'
9202 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9203 hardcode_libdir_separator=:
9204 ;;
9205
9206 osf4* | osf5*) # as osf3* with the addition of -msym flag
9207 if test "$GCC" = yes; then
9208 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 9209 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
9210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9211 else
9212 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 9213 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d 9214 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~
43e02a8a 9215 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
1cf3d07d
SE
9216
9217 # Both c and cxx compiler support -rpath directly
9218 hardcode_libdir_flag_spec='-rpath $libdir'
9219 fi
9220 archive_cmds_need_lc='no'
9221 hardcode_libdir_separator=:
9222 ;;
9223
9224 solaris*)
9225 no_undefined_flag=' -z defs'
9226 if test "$GCC" = yes; then
9227 wlarc='${wl}'
9228 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9229 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9230 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9231 else
9232 case `$CC -V 2>&1` in
9233 *"Compilers 5.0"*)
9234 wlarc=''
9235 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9236 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9237 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9238 ;;
9239 *)
9240 wlarc='${wl}'
9241 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9242 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9243 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9244 ;;
9245 esac
9246 fi
9247 hardcode_libdir_flag_spec='-R$libdir'
9248 hardcode_shlibpath_var=no
9249 case $host_os in
9250 solaris2.[0-5] | solaris2.[0-5].*) ;;
9251 *)
9252 # The compiler driver will combine and reorder linker options,
9253 # but understands `-z linker_flag'. GCC discards it without `$wl',
9254 # but is careful enough not to reorder.
9255 # Supported since Solaris 2.6 (maybe 2.5.1?)
9256 if test "$GCC" = yes; then
9257 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9258 else
9259 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9260 fi
9261 ;;
9262 esac
9263 link_all_deplibs=yes
9264 ;;
9265
9266 sunos4*)
9267 if test "x$host_vendor" = xsequent; then
9268 # Use $CC to link under sequent, because it throws in some extra .o
9269 # files that make .init and .fini sections work.
9270 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9271 else
9272 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9273 fi
9274 hardcode_libdir_flag_spec='-L$libdir'
9275 hardcode_direct=yes
9276 hardcode_minus_L=yes
9277 hardcode_shlibpath_var=no
9278 ;;
9279
9280 sysv4)
9281 case $host_vendor in
9282 sni)
9283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9284 hardcode_direct=yes # is this really true???
9285 ;;
9286 siemens)
9287 ## LD is ld it makes a PLAMLIB
9288 ## CC just makes a GrossModule.
9289 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9290 reload_cmds='$CC -r -o $output$reload_objs'
9291 hardcode_direct=no
9292 ;;
9293 motorola)
9294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9295 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9296 ;;
9297 esac
9298 runpath_var='LD_RUN_PATH'
9299 hardcode_shlibpath_var=no
9300 ;;
9301
9302 sysv4.3*)
9303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9304 hardcode_shlibpath_var=no
9305 export_dynamic_flag_spec='-Bexport'
9306 ;;
9307
9308 sysv4*MP*)
9309 if test -d /usr/nec; then
9310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9311 hardcode_shlibpath_var=no
9312 runpath_var=LD_RUN_PATH
9313 hardcode_runpath_var=yes
9314 ld_shlibs=yes
9315 fi
9316 ;;
9317
9318 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9319 no_undefined_flag='${wl}-z,text'
9320 archive_cmds_need_lc=no
9321 hardcode_shlibpath_var=no
9322 runpath_var='LD_RUN_PATH'
9323
9324 if test "$GCC" = yes; then
9325 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9326 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9327 else
9328 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9329 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9330 fi
9331 ;;
9332
9333 sysv5* | sco3.2v5* | sco5v6*)
9334 # Note: We can NOT use -z defs as we might desire, because we do not
9335 # link with -lc, and that would cause any symbols used from libc to
9336 # always be unresolved, which means just about no library would
9337 # ever link correctly. If we're not using GNU ld we use -z text
9338 # though, which does catch some bad symbols but isn't as heavy-handed
9339 # as -z defs.
9340 no_undefined_flag='${wl}-z,text'
9341 allow_undefined_flag='${wl}-z,nodefs'
9342 archive_cmds_need_lc=no
9343 hardcode_shlibpath_var=no
9344 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9345 hardcode_libdir_separator=':'
9346 link_all_deplibs=yes
9347 export_dynamic_flag_spec='${wl}-Bexport'
9348 runpath_var='LD_RUN_PATH'
9349
9350 if test "$GCC" = yes; then
9351 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9352 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9353 else
9354 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9355 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9356 fi
9357 ;;
9358
9359 uts4*)
9360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9361 hardcode_libdir_flag_spec='-L$libdir'
9362 hardcode_shlibpath_var=no
9363 ;;
9364
9365 *)
9366 ld_shlibs=no
9367 ;;
9368 esac
9369
9370 if test x$host_vendor = xsni; then
9371 case $host in
9372 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9373 export_dynamic_flag_spec='${wl}-Blargedynsym'
9374 ;;
9375 esac
9376 fi
9377 fi
9378
5213506e
RW
9379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9380$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
9381test "$ld_shlibs" = no && can_build_shared=no
9382
9383with_gnu_ld=$with_gnu_ld
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399#
9400# Do we need to explicitly link libc?
9401#
9402case "x$archive_cmds_need_lc" in
9403x|xyes)
9404 # Assume -lc should be added
9405 archive_cmds_need_lc=yes
9406
9407 if test "$enable_shared" = yes && test "$GCC" = yes; then
9408 case $archive_cmds in
9409 *'~'*)
9410 # FIXME: we may have to deal with multi-command sequences.
9411 ;;
9412 '$CC '*)
9413 # Test whether the compiler implicitly links with -lc since on some
9414 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9415 # to ld, don't add -lc before -lgcc.
5213506e
RW
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9417$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 9418if ${lt_cv_archive_cmds_need_lc+:} false; then :
5213506e 9419 $as_echo_n "(cached) " >&6
baafc534
RW
9420else
9421 $RM conftest*
9422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 9423
5213506e 9424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
9425 (eval $ac_compile) 2>&5
9426 ac_status=$?
5213506e
RW
9427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9428 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
9429 soname=conftest
9430 lib=conftest
9431 libobjs=conftest.$ac_objext
9432 deplibs=
9433 wl=$lt_prog_compiler_wl
9434 pic_flag=$lt_prog_compiler_pic
9435 compiler_flags=-v
9436 linker_flags=-v
9437 verstring=
9438 output_objdir=.
9439 libname=conftest
9440 lt_save_allow_undefined_flag=$allow_undefined_flag
9441 allow_undefined_flag=
5213506e 9442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
9443 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9444 ac_status=$?
5213506e
RW
9445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9446 test $ac_status = 0; }
baafc534
RW
9447 then
9448 lt_cv_archive_cmds_need_lc=no
9449 else
9450 lt_cv_archive_cmds_need_lc=yes
9451 fi
9452 allow_undefined_flag=$lt_save_allow_undefined_flag
9453 else
9454 cat conftest.err 1>&5
9455 fi
9456 $RM conftest*
9457
9458fi
5213506e
RW
9459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9460$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 9461 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
9462 ;;
9463 esac
9464 fi
9465 ;;
9466esac
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
5213506e
RW
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9625$as_echo_n "checking dynamic linker characteristics... " >&6; }
18d98188
PG
9626
9627if test "$GCC" = yes; then
1cf3d07d
SE
9628 case $host_os in
9629 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9630 *) lt_awk_arg="/^libraries:/" ;;
9631 esac
43e02a8a
RW
9632 case $host_os in
9633 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9634 *) lt_sed_strip_eq="s,=/,/,g" ;;
9635 esac
9636 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9637 case $lt_search_path_spec in
9638 *\;*)
1cf3d07d
SE
9639 # if the path contains ";" then we assume it to be the separator
9640 # otherwise default to the standard path separator (i.e. ":") - it is
9641 # assumed that no part of a normal pathname contains ";" but that should
9642 # okay in the real world where ";" in dirpaths is itself problematic.
43e02a8a
RW
9643 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9644 ;;
9645 *)
9646 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9647 ;;
9648 esac
1cf3d07d
SE
9649 # Ok, now we have the path, separated by spaces, we can step through it
9650 # and add multilib dir if necessary.
9651 lt_tmp_lt_search_path_spec=
9652 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9653 for lt_sys_path in $lt_search_path_spec; do
9654 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9655 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9656 else
9657 test -d "$lt_sys_path" && \
9658 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9659 fi
9660 done
43e02a8a 9661 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1cf3d07d
SE
9662BEGIN {RS=" "; FS="/|\n";} {
9663 lt_foo="";
9664 lt_count=0;
9665 for (lt_i = NF; lt_i > 0; lt_i--) {
9666 if ($lt_i != "" && $lt_i != ".") {
9667 if ($lt_i == "..") {
9668 lt_count++;
9669 } else {
9670 if (lt_count == 0) {
9671 lt_foo="/" $lt_i lt_foo;
9672 } else {
9673 lt_count--;
9674 }
9675 }
9676 }
9677 }
9678 if (lt_foo != "") { lt_freq[lt_foo]++; }
9679 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9680}'`
43e02a8a
RW
9681 # AWK program above erroneously prepends '/' to C:/dos/paths
9682 # for these hosts.
9683 case $host_os in
9684 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9685 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9686 esac
9687 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1cf3d07d
SE
9688else
9689 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9690fi
9691library_names_spec=
9692libname_spec='lib$name'
9693soname_spec=
9694shrext_cmds=".so"
9695postinstall_cmds=
9696postuninstall_cmds=
9697finish_cmds=
9698finish_eval=
9699shlibpath_var=
9700shlibpath_overrides_runpath=unknown
9701version_type=none
9702dynamic_linker="$host_os ld.so"
9703sys_lib_dlsearch_path_spec="/lib /usr/lib"
9704need_lib_prefix=unknown
9705hardcode_into_libs=no
9706
9707# when you set need_version to no, make sure it does not cause -set_version
9708# flags to be left without arguments
9709need_version=unknown
9710
9711case $host_os in
9712aix3*)
9713 version_type=linux
9714 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9715 shlibpath_var=LIBPATH
9716
9717 # AIX 3 has no versioning support, so we append a major version to the name.
9718 soname_spec='${libname}${release}${shared_ext}$major'
9719 ;;
9720
3e7b7e2b 9721aix[4-9]*)
1cf3d07d
SE
9722 version_type=linux
9723 need_lib_prefix=no
9724 need_version=no
9725 hardcode_into_libs=yes
9726 if test "$host_cpu" = ia64; then
9727 # AIX 5 supports IA64
9728 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9729 shlibpath_var=LD_LIBRARY_PATH
9730 else
9731 # With GCC up to 2.95.x, collect2 would create an import file
9732 # for dependence libraries. The import file would start with
9733 # the line `#! .'. This would cause the generated library to
9734 # depend on `.', always an invalid library. This was fixed in
9735 # development snapshots of GCC prior to 3.0.
9736 case $host_os in
9737 aix4 | aix4.[01] | aix4.[01].*)
9738 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9739 echo ' yes '
9740 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9741 :
9742 else
9743 can_build_shared=no
9744 fi
9745 ;;
9746 esac
9747 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9748 # soname into executable. Probably we can add versioning support to
9749 # collect2, so additional links can be useful in future.
9750 if test "$aix_use_runtimelinking" = yes; then
9751 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9752 # instead of lib<name>.a to let people know that these are not
9753 # typical AIX shared libraries.
9754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9755 else
9756 # We preserve .a as extension for shared libraries through AIX4.2
9757 # and later when we are not doing run time linking.
9758 library_names_spec='${libname}${release}.a $libname.a'
9759 soname_spec='${libname}${release}${shared_ext}$major'
9760 fi
9761 shlibpath_var=LIBPATH
9762 fi
9763 ;;
9764
9765amigaos*)
18d98188
PG
9766 case $host_cpu in
9767 powerpc)
9768 # Since July 2007 AmigaOS4 officially supports .so libraries.
9769 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9771 ;;
9772 m68k)
1cf3d07d
SE
9773 library_names_spec='$libname.ixlibrary $libname.a'
9774 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 9775 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
18d98188
PG
9776 ;;
9777 esac
1cf3d07d
SE
9778 ;;
9779
9780beos*)
9781 library_names_spec='${libname}${shared_ext}'
9782 dynamic_linker="$host_os ld.so"
9783 shlibpath_var=LIBRARY_PATH
9784 ;;
9785
9786bsdi[45]*)
9787 version_type=linux
9788 need_version=no
9789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9790 soname_spec='${libname}${release}${shared_ext}$major'
9791 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9792 shlibpath_var=LD_LIBRARY_PATH
9793 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9794 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9795 # the default ld.so.conf also contains /usr/contrib/lib and
9796 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9797 # libtool to hard-code these into programs
9798 ;;
9799
18d98188 9800cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9801 version_type=windows
9802 shrext_cmds=".dll"
9803 need_version=no
9804 need_lib_prefix=no
9805
18d98188
PG
9806 case $GCC,$host_os in
9807 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
9808 library_names_spec='$libname.dll.a'
9809 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9810 postinstall_cmds='base_file=`basename \${file}`~
9811 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9812 dldir=$destdir/`dirname \$dlpath`~
9813 test -d \$dldir || mkdir -p \$dldir~
9814 $install_prog $dir/$dlname \$dldir/$dlname~
9815 chmod a+x \$dldir/$dlname~
9816 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9817 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9818 fi'
9819 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9820 dlpath=$dir/\$dldll~
9821 $RM \$dlpath'
9822 shlibpath_overrides_runpath=yes
9823
9824 case $host_os in
9825 cygwin*)
9826 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9827 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a
RW
9828
9829 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1cf3d07d 9830 ;;
18d98188 9831 mingw* | cegcc*)
1cf3d07d
SE
9832 # MinGW DLLs use traditional 'lib' prefix
9833 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
9834 ;;
9835 pw32*)
9836 # pw32 DLLs use 'pw' prefix rather than 'lib'
9837 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9838 ;;
9839 esac
9840 ;;
9841
9842 *)
9843 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9844 ;;
9845 esac
9846 dynamic_linker='Win32 ld.exe'
9847 # FIXME: first we should search . and the directory the executable is in
9848 shlibpath_var=PATH
9849 ;;
9850
9851darwin* | rhapsody*)
9852 dynamic_linker="$host_os dyld"
9853 version_type=darwin
9854 need_lib_prefix=no
9855 need_version=no
9856 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9857 soname_spec='${libname}${release}${major}$shared_ext'
9858 shlibpath_overrides_runpath=yes
9859 shlibpath_var=DYLD_LIBRARY_PATH
9860 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9861
9862 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9863 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9864 ;;
9865
9866dgux*)
9867 version_type=linux
9868 need_lib_prefix=no
9869 need_version=no
9870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9871 soname_spec='${libname}${release}${shared_ext}$major'
9872 shlibpath_var=LD_LIBRARY_PATH
9873 ;;
9874
1cf3d07d
SE
9875freebsd* | dragonfly*)
9876 # DragonFly does not have aout. When/if they implement a new
9877 # versioning mechanism, adjust this.
9878 if test -x /usr/bin/objformat; then
9879 objformat=`/usr/bin/objformat`
9880 else
9881 case $host_os in
c6084f68 9882 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
9883 *) objformat=elf ;;
9884 esac
9885 fi
9886 version_type=freebsd-$objformat
9887 case $version_type in
9888 freebsd-elf*)
9889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9890 need_version=no
9891 need_lib_prefix=no
9892 ;;
9893 freebsd-*)
9894 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9895 need_version=yes
9896 ;;
9897 esac
9898 shlibpath_var=LD_LIBRARY_PATH
9899 case $host_os in
c6084f68 9900 freebsd2.*)
1cf3d07d
SE
9901 shlibpath_overrides_runpath=yes
9902 ;;
9903 freebsd3.[01]* | freebsdelf3.[01]*)
9904 shlibpath_overrides_runpath=yes
9905 hardcode_into_libs=yes
9906 ;;
9907 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9908 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9909 shlibpath_overrides_runpath=no
9910 hardcode_into_libs=yes
9911 ;;
9912 *) # from 4.6 on, and DragonFly
9913 shlibpath_overrides_runpath=yes
9914 hardcode_into_libs=yes
9915 ;;
9916 esac
9917 ;;
9918
43e02a8a
RW
9919haiku*)
9920 version_type=linux
9921 need_lib_prefix=no
9922 need_version=no
9923 dynamic_linker="$host_os runtime_loader"
9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9925 soname_spec='${libname}${release}${shared_ext}$major'
9926 shlibpath_var=LIBRARY_PATH
9927 shlibpath_overrides_runpath=yes
9928 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9929 hardcode_into_libs=yes
9930 ;;
9931
1cf3d07d
SE
9932hpux9* | hpux10* | hpux11*)
9933 # Give a soname corresponding to the major version so that dld.sl refuses to
9934 # link against other versions.
9935 version_type=sunos
9936 need_lib_prefix=no
9937 need_version=no
9938 case $host_cpu in
9939 ia64*)
9940 shrext_cmds='.so'
9941 hardcode_into_libs=yes
9942 dynamic_linker="$host_os dld.so"
9943 shlibpath_var=LD_LIBRARY_PATH
9944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9946 soname_spec='${libname}${release}${shared_ext}$major'
9947 if test "X$HPUX_IA64_MODE" = X32; then
9948 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9949 else
9950 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9951 fi
9952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9953 ;;
9954 hppa*64*)
9955 shrext_cmds='.sl'
9956 hardcode_into_libs=yes
9957 dynamic_linker="$host_os dld.sl"
9958 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9961 soname_spec='${libname}${release}${shared_ext}$major'
9962 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9964 ;;
9965 *)
9966 shrext_cmds='.sl'
9967 dynamic_linker="$host_os dld.sl"
9968 shlibpath_var=SHLIB_PATH
9969 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9971 soname_spec='${libname}${release}${shared_ext}$major'
9972 ;;
9973 esac
43e02a8a 9974 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 9975 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
9976 # or fails outright, so override atomically:
9977 install_override_mode=555
1cf3d07d
SE
9978 ;;
9979
9980interix[3-9]*)
9981 version_type=linux
9982 need_lib_prefix=no
9983 need_version=no
9984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9985 soname_spec='${libname}${release}${shared_ext}$major'
9986 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9987 shlibpath_var=LD_LIBRARY_PATH
9988 shlibpath_overrides_runpath=no
9989 hardcode_into_libs=yes
9990 ;;
9991
9992irix5* | irix6* | nonstopux*)
9993 case $host_os in
9994 nonstopux*) version_type=nonstopux ;;
9995 *)
9996 if test "$lt_cv_prog_gnu_ld" = yes; then
9997 version_type=linux
9998 else
9999 version_type=irix
10000 fi ;;
10001 esac
10002 need_lib_prefix=no
10003 need_version=no
10004 soname_spec='${libname}${release}${shared_ext}$major'
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10006 case $host_os in
10007 irix5* | nonstopux*)
10008 libsuff= shlibsuff=
10009 ;;
10010 *)
10011 case $LD in # libtool.m4 will add one of these switches to LD
10012 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10013 libsuff= shlibsuff= libmagic=32-bit;;
10014 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10015 libsuff=32 shlibsuff=N32 libmagic=N32;;
10016 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10017 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10018 *) libsuff= shlibsuff= libmagic=never-match;;
10019 esac
10020 ;;
10021 esac
10022 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10023 shlibpath_overrides_runpath=no
10024 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10025 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10026 hardcode_into_libs=yes
10027 ;;
10028
10029# No shared lib support for Linux oldld, aout, or coff.
10030linux*oldld* | linux*aout* | linux*coff*)
10031 dynamic_linker=no
10032 ;;
10033
10034# This must be Linux ELF.
e9085da5
MR
10035
10036# uclinux* changes (here and below) have been submitted to the libtool
10037# project, but have not yet been accepted: they are GCC-local changes
10038# for the time being. (See
10039# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
f56de355 10040linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
1cf3d07d
SE
10041 version_type=linux
10042 need_lib_prefix=no
10043 need_version=no
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10045 soname_spec='${libname}${release}${shared_ext}$major'
10046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10047 shlibpath_var=LD_LIBRARY_PATH
10048 shlibpath_overrides_runpath=no
baafc534 10049
1cf3d07d 10050 # Some binutils ld are patched to set DT_RUNPATH
22e05272 10051 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
5213506e 10052 $as_echo_n "(cached) " >&6
baafc534
RW
10053else
10054 lt_cv_shlibpath_overrides_runpath=no
10055 save_LDFLAGS=$LDFLAGS
10056 save_libdir=$libdir
10057 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10058 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10059 if test x$gcc_no_link = xyes; then
22e05272 10060 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10061fi
5213506e 10062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10063/* end confdefs.h. */
10064
10065int
10066main ()
10067{
10068
10069 ;
10070 return 0;
10071}
10072_ACEOF
5213506e
RW
10073if ac_fn_c_try_link "$LINENO"; then :
10074 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 10075 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 10076fi
1cf3d07d 10077fi
5213506e
RW
10078rm -f core conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
10080 LDFLAGS=$save_LDFLAGS
10081 libdir=$save_libdir
10082
10083fi
10084
10085 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
10086
10087 # This implies no fast_install, which is unacceptable.
10088 # Some rework will be needed to allow for fast_install
10089 # before this can be enabled.
10090 hardcode_into_libs=yes
10091
10092 # Append ld.so.conf contents to the search path
10093 if test -f /etc/ld.so.conf; then
43e02a8a 10094 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;s/"//g;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
10095 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10096 fi
10097
10098 # We used to test for /lib/ld.so.1 and disable shared libraries on
10099 # powerpc, because MkLinux only supported shared libraries with the
10100 # GNU dynamic linker. Since this was broken with cross compilers,
10101 # most powerpc-linux boxes support dynamic linking these days and
10102 # people can always --disable-shared, the test was removed, and we
10103 # assume the GNU/Linux dynamic linker is in use.
10104 dynamic_linker='GNU/Linux ld.so'
10105 ;;
10106
10107netbsd*)
10108 version_type=sunos
10109 need_lib_prefix=no
10110 need_version=no
10111 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10114 dynamic_linker='NetBSD (a.out) ld.so'
10115 else
10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10117 soname_spec='${libname}${release}${shared_ext}$major'
10118 dynamic_linker='NetBSD ld.elf_so'
10119 fi
10120 shlibpath_var=LD_LIBRARY_PATH
10121 shlibpath_overrides_runpath=yes
10122 hardcode_into_libs=yes
10123 ;;
10124
10125newsos6)
10126 version_type=linux
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128 shlibpath_var=LD_LIBRARY_PATH
10129 shlibpath_overrides_runpath=yes
10130 ;;
10131
10132*nto* | *qnx*)
10133 version_type=qnx
10134 need_lib_prefix=no
10135 need_version=no
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 shlibpath_var=LD_LIBRARY_PATH
10139 shlibpath_overrides_runpath=no
10140 hardcode_into_libs=yes
10141 dynamic_linker='ldqnx.so'
10142 ;;
10143
10144openbsd*)
10145 version_type=sunos
10146 sys_lib_dlsearch_path_spec="/usr/lib"
10147 need_lib_prefix=no
10148 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10149 case $host_os in
10150 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10151 *) need_version=no ;;
10152 esac
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10155 shlibpath_var=LD_LIBRARY_PATH
10156 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10157 case $host_os in
10158 openbsd2.[89] | openbsd2.[89].*)
10159 shlibpath_overrides_runpath=no
10160 ;;
10161 *)
10162 shlibpath_overrides_runpath=yes
10163 ;;
10164 esac
10165 else
10166 shlibpath_overrides_runpath=yes
10167 fi
10168 ;;
10169
10170os2*)
10171 libname_spec='$name'
10172 shrext_cmds=".dll"
10173 need_lib_prefix=no
10174 library_names_spec='$libname${shared_ext} $libname.a'
10175 dynamic_linker='OS/2 ld.exe'
10176 shlibpath_var=LIBPATH
10177 ;;
10178
10179osf3* | osf4* | osf5*)
10180 version_type=osf
10181 need_lib_prefix=no
10182 need_version=no
10183 soname_spec='${libname}${release}${shared_ext}$major'
10184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185 shlibpath_var=LD_LIBRARY_PATH
10186 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10187 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10188 ;;
10189
10190rdos*)
10191 dynamic_linker=no
10192 ;;
10193
10194solaris*)
10195 version_type=linux
10196 need_lib_prefix=no
10197 need_version=no
10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10199 soname_spec='${libname}${release}${shared_ext}$major'
10200 shlibpath_var=LD_LIBRARY_PATH
10201 shlibpath_overrides_runpath=yes
10202 hardcode_into_libs=yes
10203 # ldd complains unless libraries are executable
10204 postinstall_cmds='chmod +x $lib'
10205 ;;
10206
10207sunos4*)
10208 version_type=sunos
10209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10210 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10211 shlibpath_var=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath=yes
10213 if test "$with_gnu_ld" = yes; then
10214 need_lib_prefix=no
10215 fi
10216 need_version=yes
10217 ;;
10218
10219sysv4 | sysv4.3*)
10220 version_type=linux
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10222 soname_spec='${libname}${release}${shared_ext}$major'
10223 shlibpath_var=LD_LIBRARY_PATH
10224 case $host_vendor in
10225 sni)
10226 shlibpath_overrides_runpath=no
10227 need_lib_prefix=no
10228 runpath_var=LD_RUN_PATH
10229 ;;
10230 siemens)
10231 need_lib_prefix=no
10232 ;;
10233 motorola)
10234 need_lib_prefix=no
10235 need_version=no
10236 shlibpath_overrides_runpath=no
10237 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10238 ;;
10239 esac
10240 ;;
10241
10242sysv4*MP*)
10243 if test -d /usr/nec ;then
10244 version_type=linux
10245 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10246 soname_spec='$libname${shared_ext}.$major'
10247 shlibpath_var=LD_LIBRARY_PATH
10248 fi
10249 ;;
10250
10251sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10252 version_type=freebsd-elf
10253 need_lib_prefix=no
10254 need_version=no
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10256 soname_spec='${libname}${release}${shared_ext}$major'
10257 shlibpath_var=LD_LIBRARY_PATH
10258 shlibpath_overrides_runpath=yes
10259 hardcode_into_libs=yes
10260 if test "$with_gnu_ld" = yes; then
10261 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10262 else
10263 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10264 case $host_os in
10265 sco3.2v5*)
10266 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10267 ;;
10268 esac
10269 fi
10270 sys_lib_dlsearch_path_spec='/usr/lib'
10271 ;;
10272
10273tpf*)
10274 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10275 version_type=linux
10276 need_lib_prefix=no
10277 need_version=no
18d98188 10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
10279 shlibpath_var=LD_LIBRARY_PATH
10280 shlibpath_overrides_runpath=no
10281 hardcode_into_libs=yes
10282 ;;
10283
10284uts4*)
10285 version_type=linux
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287 soname_spec='${libname}${release}${shared_ext}$major'
10288 shlibpath_var=LD_LIBRARY_PATH
10289 ;;
10290
0ecd0f1c
OH
10291# Shared libraries for VwWorks, >= 7 only at this stage
10292# and (fpic) still incompatible with "large" code models
10293# in a few configurations. Only for RTP mode in any case,
10294# and upon explicit request at configure time.
10295vxworks7*)
10296 dynamic_linker=no
10297 case ${with_multisubdir}-${enable_shared} in
10298 *large*)
10299 ;;
10300 *mrtp*-yes)
10301 version_type=linux
10302 need_lib_prefix=no
10303 need_version=no
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 dynamic_linker="$host_os module_loader"
10307 ;;
10308 esac
10309 ;;
1cf3d07d
SE
10310*)
10311 dynamic_linker=no
10312 ;;
10313esac
5213506e
RW
10314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10315$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
10316test "$dynamic_linker" = no && can_build_shared=no
10317
10318variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10319if test "$GCC" = yes; then
10320 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10321fi
10322
18d98188
PG
10323if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10324 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10325fi
10326if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10327 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10328fi
10329
1cf3d07d
SE
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
43e02a8a
RW
10410
10411
10412
10413
10414
1cf3d07d
SE
10415
10416
10417
10418
10419
10420
5213506e
RW
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10422$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
10423hardcode_action=
10424if test -n "$hardcode_libdir_flag_spec" ||
10425 test -n "$runpath_var" ||
10426 test "X$hardcode_automatic" = "Xyes" ; then
10427
10428 # We can hardcode non-existent directories.
10429 if test "$hardcode_direct" != no &&
10430 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10431 # have to relink, otherwise we might link with an installed library
10432 # when we should be linking with a yet-to-be-installed one
10433 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10434 test "$hardcode_minus_L" != no; then
10435 # Linking always hardcodes the temporary library directory.
10436 hardcode_action=relink
10437 else
10438 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10439 hardcode_action=immediate
10440 fi
10441else
10442 # We cannot hardcode anything, or else we can only hardcode existing
10443 # directories.
10444 hardcode_action=unsupported
10445fi
5213506e
RW
10446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10447$as_echo "$hardcode_action" >&6; }
1cf3d07d
SE
10448
10449if test "$hardcode_action" = relink ||
10450 test "$inherit_rpath" = yes; then
10451 # Fast installation is not supported
10452 enable_fast_install=no
10453elif test "$shlibpath_overrides_runpath" = yes ||
10454 test "$enable_shared" = no; then
10455 # Fast installation is not necessary
10456 enable_fast_install=needless
10457fi
10458
10459
10460
10461
10462
10463
10464 if test "x$enable_dlopen" != xyes; then
10465 enable_dlopen=unknown
10466 enable_dlopen_self=unknown
10467 enable_dlopen_self_static=unknown
10468else
10469 lt_cv_dlopen=no
10470 lt_cv_dlopen_libs=
10471
10472 case $host_os in
10473 beos*)
10474 lt_cv_dlopen="load_add_on"
10475 lt_cv_dlopen_libs=
10476 lt_cv_dlopen_self=yes
10477 ;;
10478
18d98188 10479 mingw* | pw32* | cegcc*)
1cf3d07d
SE
10480 lt_cv_dlopen="LoadLibrary"
10481 lt_cv_dlopen_libs=
10482 ;;
10483
10484 cygwin*)
10485 lt_cv_dlopen="dlopen"
10486 lt_cv_dlopen_libs=
10487 ;;
10488
10489 darwin*)
10490 # if libdl is installed we need to link against it
5213506e
RW
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10492$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 10493if ${ac_cv_lib_dl_dlopen+:} false; then :
5213506e 10494 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10495else
10496 ac_check_lib_save_LIBS=$LIBS
10497LIBS="-ldl $LIBS"
10498if test x$gcc_no_link = xyes; then
22e05272 10499 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10500fi
5213506e 10501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10502/* end confdefs.h. */
10503
5213506e
RW
10504/* Override any GCC internal prototype to avoid an error.
10505 Use char because int might match the return type of a GCC
10506 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10507#ifdef __cplusplus
10508extern "C"
10509#endif
1cf3d07d
SE
10510char dlopen ();
10511int
10512main ()
10513{
5213506e 10514return dlopen ();
1cf3d07d
SE
10515 ;
10516 return 0;
10517}
10518_ACEOF
5213506e 10519if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10520 ac_cv_lib_dl_dlopen=yes
10521else
5213506e 10522 ac_cv_lib_dl_dlopen=no
1cf3d07d 10523fi
5213506e
RW
10524rm -f core conftest.err conftest.$ac_objext \
10525 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10526LIBS=$ac_check_lib_save_LIBS
10527fi
5213506e
RW
10528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10529$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 10530if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1cf3d07d
SE
10531 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10532else
10533
10534 lt_cv_dlopen="dyld"
10535 lt_cv_dlopen_libs=
10536 lt_cv_dlopen_self=yes
10537
10538fi
10539
10540 ;;
10541
10542 *)
5213506e 10543 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 10544if test "x$ac_cv_func_shl_load" = xyes; then :
1cf3d07d
SE
10545 lt_cv_dlopen="shl_load"
10546else
5213506e
RW
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10548$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 10549if ${ac_cv_lib_dld_shl_load+:} false; then :
5213506e 10550 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10551else
10552 ac_check_lib_save_LIBS=$LIBS
10553LIBS="-ldld $LIBS"
10554if test x$gcc_no_link = xyes; then
22e05272 10555 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10556fi
5213506e 10557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10558/* end confdefs.h. */
10559
5213506e
RW
10560/* Override any GCC internal prototype to avoid an error.
10561 Use char because int might match the return type of a GCC
10562 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10563#ifdef __cplusplus
10564extern "C"
10565#endif
1cf3d07d
SE
10566char shl_load ();
10567int
10568main ()
10569{
5213506e 10570return shl_load ();
1cf3d07d
SE
10571 ;
10572 return 0;
10573}
10574_ACEOF
5213506e 10575if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10576 ac_cv_lib_dld_shl_load=yes
10577else
5213506e 10578 ac_cv_lib_dld_shl_load=no
1cf3d07d 10579fi
5213506e
RW
10580rm -f core conftest.err conftest.$ac_objext \
10581 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10582LIBS=$ac_check_lib_save_LIBS
10583fi
5213506e
RW
10584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10585$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 10586if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18d98188 10587 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d 10588else
5213506e 10589 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 10590if test "x$ac_cv_func_dlopen" = xyes; then :
1cf3d07d
SE
10591 lt_cv_dlopen="dlopen"
10592else
5213506e
RW
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10594$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 10595if ${ac_cv_lib_dl_dlopen+:} false; then :
5213506e 10596 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10597else
10598 ac_check_lib_save_LIBS=$LIBS
10599LIBS="-ldl $LIBS"
10600if test x$gcc_no_link = xyes; then
22e05272 10601 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10602fi
5213506e 10603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10604/* end confdefs.h. */
10605
5213506e
RW
10606/* Override any GCC internal prototype to avoid an error.
10607 Use char because int might match the return type of a GCC
10608 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10609#ifdef __cplusplus
10610extern "C"
10611#endif
1cf3d07d
SE
10612char dlopen ();
10613int
10614main ()
10615{
5213506e 10616return dlopen ();
1cf3d07d
SE
10617 ;
10618 return 0;
10619}
10620_ACEOF
5213506e 10621if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10622 ac_cv_lib_dl_dlopen=yes
10623else
5213506e 10624 ac_cv_lib_dl_dlopen=no
1cf3d07d 10625fi
5213506e
RW
10626rm -f core conftest.err conftest.$ac_objext \
10627 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10628LIBS=$ac_check_lib_save_LIBS
10629fi
5213506e
RW
10630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10631$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 10632if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1cf3d07d
SE
10633 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10634else
5213506e
RW
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10636$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 10637if ${ac_cv_lib_svld_dlopen+:} false; then :
5213506e 10638 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10639else
10640 ac_check_lib_save_LIBS=$LIBS
10641LIBS="-lsvld $LIBS"
10642if test x$gcc_no_link = xyes; then
22e05272 10643 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1cf3d07d 10644fi
5213506e 10645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10646/* end confdefs.h. */
10647
5213506e
RW
10648/* Override any GCC internal prototype to avoid an error.
10649 Use char because int might match the return type of a GCC
10650 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10651#ifdef __cplusplus
10652extern "C"
10653#endif
1cf3d07d
SE
10654char dlopen ();
10655int
10656main ()
10657{
5213506e 10658return dlopen ();
1cf3d07d
SE
10659 ;
10660 return 0;
10661}
10662_ACEOF
5213506e 10663if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10664 ac_cv_lib_svld_dlopen=yes
10665else
5213506e 10666 ac_cv_lib_svld_dlopen=no
1cf3d07d 10667fi
5213506e
RW
10668rm -f core conftest.err conftest.$ac_objext \
10669 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10670LIBS=$ac_check_lib_save_LIBS
10671fi
5213506e
RW
10672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10673$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 10674if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1cf3d07d
SE
10675 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10676else
5213506e
RW
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10678$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 10679if ${ac_cv_lib_dld_dld_link+:} false; then :
5213506e 10680 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10681else
10682 ac_check_lib_save_LIBS=$LIBS
10683LIBS="-ldld $LIBS"
10684if test x$gcc_no_link = xyes; then
22e05272 10685 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
a8aea176 10686fi
5213506e 10687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176 10688/* end confdefs.h. */
0fd91e0a 10689
5213506e
RW
10690/* Override any GCC internal prototype to avoid an error.
10691 Use char because int might match the return type of a GCC
10692 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10693#ifdef __cplusplus
10694extern "C"
10695#endif
1cf3d07d 10696char dld_link ();
a8aea176
NN
10697int
10698main ()
10699{
5213506e 10700return dld_link ();
a8aea176
NN
10701 ;
10702 return 0;
10703}
10704_ACEOF
5213506e 10705if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10706 ac_cv_lib_dld_dld_link=yes
0fd91e0a 10707else
5213506e 10708 ac_cv_lib_dld_dld_link=no
025fd00e 10709fi
5213506e
RW
10710rm -f core conftest.err conftest.$ac_objext \
10711 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10712LIBS=$ac_check_lib_save_LIBS
10713fi
5213506e
RW
10714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10715$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 10716if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18d98188 10717 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
0fd91e0a 10718fi
025fd00e 10719
dfac8a13 10720
1cf3d07d 10721fi
a8aea176 10722
a8aea176 10723
c45f211e 10724fi
dfac8a13 10725
dfac8a13 10726
dfac8a13
TT
10727fi
10728
10729
1cf3d07d 10730fi
dfac8a13 10731
dfac8a13 10732
1cf3d07d 10733fi
0fd91e0a 10734
1cf3d07d
SE
10735 ;;
10736 esac
dfac8a13 10737
1cf3d07d
SE
10738 if test "x$lt_cv_dlopen" != xno; then
10739 enable_dlopen=yes
10740 else
10741 enable_dlopen=no
10742 fi
a8aea176 10743
1cf3d07d
SE
10744 case $lt_cv_dlopen in
10745 dlopen)
10746 save_CPPFLAGS="$CPPFLAGS"
10747 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
a8aea176 10748
1cf3d07d
SE
10749 save_LDFLAGS="$LDFLAGS"
10750 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
dfac8a13 10751
1cf3d07d
SE
10752 save_LIBS="$LIBS"
10753 LIBS="$lt_cv_dlopen_libs $LIBS"
dfac8a13 10754
5213506e
RW
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10756$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 10757if ${lt_cv_dlopen_self+:} false; then :
5213506e 10758 $as_echo_n "(cached) " >&6
dfac8a13 10759else
1cf3d07d
SE
10760 if test "$cross_compiling" = yes; then :
10761 lt_cv_dlopen_self=cross
a8aea176 10762else
1cf3d07d
SE
10763 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10764 lt_status=$lt_dlunknown
10765 cat > conftest.$ac_ext <<_LT_EOF
b6cb10af 10766#line 10778 "configure"
1cf3d07d 10767#include "confdefs.h"
a8aea176 10768
1cf3d07d
SE
10769#if HAVE_DLFCN_H
10770#include <dlfcn.h>
10771#endif
a8aea176 10772
1cf3d07d 10773#include <stdio.h>
a8aea176 10774
1cf3d07d
SE
10775#ifdef RTLD_GLOBAL
10776# define LT_DLGLOBAL RTLD_GLOBAL
a8aea176 10777#else
1cf3d07d
SE
10778# ifdef DL_GLOBAL
10779# define LT_DLGLOBAL DL_GLOBAL
10780# else
10781# define LT_DLGLOBAL 0
10782# endif
10783#endif
10784
10785/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10786 find out it does not work in some platform. */
10787#ifndef LT_DLLAZY_OR_NOW
10788# ifdef RTLD_LAZY
10789# define LT_DLLAZY_OR_NOW RTLD_LAZY
10790# else
10791# ifdef DL_LAZY
10792# define LT_DLLAZY_OR_NOW DL_LAZY
10793# else
10794# ifdef RTLD_NOW
10795# define LT_DLLAZY_OR_NOW RTLD_NOW
10796# else
10797# ifdef DL_NOW
10798# define LT_DLLAZY_OR_NOW DL_NOW
10799# else
10800# define LT_DLLAZY_OR_NOW 0
10801# endif
10802# endif
10803# endif
10804# endif
10805#endif
10806
43e02a8a
RW
10807/* When -fvisbility=hidden is used, assume the code has been annotated
10808 correspondingly for the symbols needed. */
10809#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10810void fnord () __attribute__((visibility("default")));
10811#endif
10812
10813void fnord () { int i=42; }
1cf3d07d
SE
10814int main ()
10815{
10816 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10817 int status = $lt_dlunknown;
10818
10819 if (self)
10820 {
10821 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
10822 else
10823 {
10824 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10825 else puts (dlerror ());
10826 }
1cf3d07d
SE
10827 /* dlclose (self); */
10828 }
10829 else
10830 puts (dlerror ());
10831
18d98188 10832 return status;
1cf3d07d
SE
10833}
10834_LT_EOF
5213506e 10835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d 10836 (eval $ac_link) 2>&5
a8aea176 10837 ac_status=$?
5213506e
RW
10838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10839 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
10840 (./conftest; exit; ) >&5 2>/dev/null
10841 lt_status=$?
10842 case x$lt_status in
10843 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10844 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10845 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10846 esac
10847 else :
10848 # compilation failed
10849 lt_cv_dlopen_self=no
a8aea176 10850 fi
a8aea176 10851fi
1cf3d07d
SE
10852rm -fr conftest*
10853
a8aea176 10854
a8aea176 10855fi
5213506e
RW
10856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10857$as_echo "$lt_cv_dlopen_self" >&6; }
a8aea176 10858
1cf3d07d
SE
10859 if test "x$lt_cv_dlopen_self" = xyes; then
10860 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10862$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 10863if ${lt_cv_dlopen_self_static+:} false; then :
5213506e 10864 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10865else
10866 if test "$cross_compiling" = yes; then :
10867 lt_cv_dlopen_self_static=cross
10868else
10869 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10870 lt_status=$lt_dlunknown
10871 cat > conftest.$ac_ext <<_LT_EOF
b6cb10af 10872#line 10884 "configure"
1cf3d07d
SE
10873#include "confdefs.h"
10874
10875#if HAVE_DLFCN_H
10876#include <dlfcn.h>
10877#endif
10878
10879#include <stdio.h>
10880
10881#ifdef RTLD_GLOBAL
10882# define LT_DLGLOBAL RTLD_GLOBAL
10883#else
10884# ifdef DL_GLOBAL
10885# define LT_DLGLOBAL DL_GLOBAL
10886# else
10887# define LT_DLGLOBAL 0
10888# endif
10889#endif
10890
10891/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10892 find out it does not work in some platform. */
10893#ifndef LT_DLLAZY_OR_NOW
10894# ifdef RTLD_LAZY
10895# define LT_DLLAZY_OR_NOW RTLD_LAZY
10896# else
10897# ifdef DL_LAZY
10898# define LT_DLLAZY_OR_NOW DL_LAZY
10899# else
10900# ifdef RTLD_NOW
10901# define LT_DLLAZY_OR_NOW RTLD_NOW
10902# else
10903# ifdef DL_NOW
10904# define LT_DLLAZY_OR_NOW DL_NOW
10905# else
10906# define LT_DLLAZY_OR_NOW 0
10907# endif
10908# endif
10909# endif
10910# endif
10911#endif
10912
43e02a8a
RW
10913/* When -fvisbility=hidden is used, assume the code has been annotated
10914 correspondingly for the symbols needed. */
10915#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10916void fnord () __attribute__((visibility("default")));
10917#endif
10918
10919void fnord () { int i=42; }
1cf3d07d
SE
10920int main ()
10921{
10922 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10923 int status = $lt_dlunknown;
10924
10925 if (self)
10926 {
10927 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
10928 else
10929 {
10930 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10931 else puts (dlerror ());
10932 }
1cf3d07d
SE
10933 /* dlclose (self); */
10934 }
10935 else
10936 puts (dlerror ());
10937
18d98188 10938 return status;
1cf3d07d
SE
10939}
10940_LT_EOF
5213506e 10941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d 10942 (eval $ac_link) 2>&5
a8aea176 10943 ac_status=$?
5213506e
RW
10944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10945 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
10946 (./conftest; exit; ) >&5 2>/dev/null
10947 lt_status=$?
10948 case x$lt_status in
10949 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10950 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10951 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10952 esac
10953 else :
10954 # compilation failed
10955 lt_cv_dlopen_self_static=no
a8aea176 10956 fi
a8aea176 10957fi
1cf3d07d
SE
10958rm -fr conftest*
10959
a8aea176 10960
dfac8a13 10961fi
5213506e
RW
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10963$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d 10964 fi
a8aea176 10965
1cf3d07d
SE
10966 CPPFLAGS="$save_CPPFLAGS"
10967 LDFLAGS="$save_LDFLAGS"
10968 LIBS="$save_LIBS"
10969 ;;
10970 esac
10971
10972 case $lt_cv_dlopen_self in
10973 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10974 *) enable_dlopen_self=unknown ;;
10975 esac
10976
10977 case $lt_cv_dlopen_self_static in
10978 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10979 *) enable_dlopen_self_static=unknown ;;
10980 esac
10981fi
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999striplib=
11000old_striplib=
5213506e
RW
11001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11002$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
11003if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11004 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11005 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11007$as_echo "yes" >&6; }
dfac8a13 11008else
1cf3d07d
SE
11009# FIXME - insert some real tests, host_os isn't really good enough
11010 case $host_os in
11011 darwin*)
11012 if test -n "$STRIP" ; then
11013 striplib="$STRIP -x"
11014 old_striplib="$STRIP -S"
5213506e
RW
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11016$as_echo "yes" >&6; }
1cf3d07d 11017 else
5213506e
RW
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11019$as_echo "no" >&6; }
1cf3d07d
SE
11020 fi
11021 ;;
11022 *)
5213506e
RW
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11024$as_echo "no" >&6; }
1cf3d07d
SE
11025 ;;
11026 esac
dfac8a13 11027fi
a8aea176 11028
1cf3d07d
SE
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040 # Report which library types will actually be built
5213506e
RW
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11042$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11044$as_echo "$can_build_shared" >&6; }
1cf3d07d 11045
5213506e
RW
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11047$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
11048 test "$can_build_shared" = "no" && enable_shared=no
11049
11050 # On AIX, shared libraries and static libraries use the same namespace, and
11051 # are all built from PIC.
11052 case $host_os in
11053 aix3*)
11054 test "$enable_shared" = yes && enable_static=no
11055 if test -n "$RANLIB"; then
11056 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11057 postinstall_cmds='$RANLIB $lib'
11058 fi
11059 ;;
11060
3e7b7e2b 11061 aix[4-9]*)
1cf3d07d
SE
11062 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11063 test "$enable_shared" = yes && enable_static=no
11064 fi
11065 ;;
11066 esac
5213506e
RW
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11068$as_echo "$enable_shared" >&6; }
1cf3d07d 11069
5213506e
RW
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11071$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
11072 # Make sure either enable_shared or enable_static is yes.
11073 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11075$as_echo "$enable_static" >&6; }
1cf3d07d
SE
11076
11077
11078
11079
11080fi
a8aea176
NN
11081ac_ext=c
11082ac_cpp='$CPP $CPPFLAGS'
11083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11085ac_compiler_gnu=$ac_cv_c_compiler_gnu
dfac8a13 11086
1cf3d07d 11087CC="$lt_save_CC"
35241f18 11088
35241f18 11089
35241f18 11090
35241f18
CD
11091
11092
a8aea176 11093
dfac8a13 11094
dfac8a13 11095
1cf3d07d
SE
11096
11097
11098
11099
11100
5213506e 11101 ac_config_commands="$ac_config_commands libtool"
1cf3d07d
SE
11102
11103
11104
11105
11106# Only expand once:
11107
11108
11109
11110# Find CPP now so that any conditional tests below won't do it and
11111# thereby make the resulting definitions conditional.
11112ac_ext=c
11113ac_cpp='$CPP $CPPFLAGS'
11114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11116ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213506e
RW
11117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11118$as_echo_n "checking how to run the C preprocessor... " >&6; }
1cf3d07d
SE
11119# On Suns, sometimes $CPP names a directory.
11120if test -n "$CPP" && test -d "$CPP"; then
11121 CPP=
11122fi
11123if test -z "$CPP"; then
22e05272 11124 if ${ac_cv_prog_CPP+:} false; then :
5213506e 11125 $as_echo_n "(cached) " >&6
a8aea176 11126else
1cf3d07d
SE
11127 # Double quotes because CPP needs to be expanded
11128 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11129 do
11130 ac_preproc_ok=false
11131for ac_c_preproc_warn_flag in '' yes
11132do
11133 # Use a header file that comes with gcc, so configuring glibc
11134 # with a fresh cross-compiler works.
11135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11136 # <limits.h> exists even on freestanding compilers.
11137 # On the NeXT, cc -E runs the code through the compiler's parser,
11138 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 11139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176 11140/* end confdefs.h. */
1cf3d07d
SE
11141#ifdef __STDC__
11142# include <limits.h>
11143#else
11144# include <assert.h>
11145#endif
11146 Syntax error
a8aea176 11147_ACEOF
5213506e 11148if ac_fn_c_try_cpp "$LINENO"; then :
a8aea176 11149
5213506e 11150else
1cf3d07d
SE
11151 # Broken: fails on valid input.
11152continue
a8aea176 11153fi
22e05272 11154rm -f conftest.err conftest.i conftest.$ac_ext
a8aea176 11155
5213506e 11156 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 11157 # can be detected and how.
5213506e 11158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176 11159/* end confdefs.h. */
1cf3d07d 11160#include <ac_nonexistent.h>
a8aea176 11161_ACEOF
5213506e 11162if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
11163 # Broken: success on invalid input.
11164continue
11165else
1cf3d07d
SE
11166 # Passes both tests.
11167ac_preproc_ok=:
11168break
c45f211e 11169fi
22e05272 11170rm -f conftest.err conftest.i conftest.$ac_ext
c45f211e 11171
1cf3d07d
SE
11172done
11173# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 11174rm -f conftest.i conftest.err conftest.$ac_ext
5213506e 11175if $ac_preproc_ok; then :
1cf3d07d 11176 break
c45f211e 11177fi
a8aea176 11178
1cf3d07d
SE
11179 done
11180 ac_cv_prog_CPP=$CPP
a8aea176 11181
1cf3d07d
SE
11182fi
11183 CPP=$ac_cv_prog_CPP
a8aea176 11184else
1cf3d07d
SE
11185 ac_cv_prog_CPP=$CPP
11186fi
5213506e
RW
11187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11188$as_echo "$CPP" >&6; }
1cf3d07d
SE
11189ac_preproc_ok=false
11190for ac_c_preproc_warn_flag in '' yes
11191do
11192 # Use a header file that comes with gcc, so configuring glibc
11193 # with a fresh cross-compiler works.
11194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11195 # <limits.h> exists even on freestanding compilers.
11196 # On the NeXT, cc -E runs the code through the compiler's parser,
11197 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 11198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176 11199/* end confdefs.h. */
1cf3d07d
SE
11200#ifdef __STDC__
11201# include <limits.h>
a8aea176 11202#else
1cf3d07d 11203# include <assert.h>
a8aea176 11204#endif
1cf3d07d 11205 Syntax error
a8aea176 11206_ACEOF
5213506e 11207if ac_fn_c_try_cpp "$LINENO"; then :
a8aea176 11208
5213506e 11209else
1cf3d07d
SE
11210 # Broken: fails on valid input.
11211continue
a8aea176 11212fi
22e05272 11213rm -f conftest.err conftest.i conftest.$ac_ext
a8aea176 11214
5213506e 11215 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 11216 # can be detected and how.
5213506e 11217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176 11218/* end confdefs.h. */
1cf3d07d 11219#include <ac_nonexistent.h>
a8aea176 11220_ACEOF
5213506e 11221if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
11222 # Broken: success on invalid input.
11223continue
11224else
1cf3d07d
SE
11225 # Passes both tests.
11226ac_preproc_ok=:
11227break
a8aea176 11228fi
22e05272 11229rm -f conftest.err conftest.i conftest.$ac_ext
a8aea176
NN
11230
11231done
1cf3d07d 11232# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 11233rm -f conftest.i conftest.err conftest.$ac_ext
5213506e
RW
11234if $ac_preproc_ok; then :
11235
1cf3d07d 11236else
5213506e
RW
11237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
11239as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
11240See \`config.log' for more details" "$LINENO" 5; }
1cf3d07d
SE
11241fi
11242
11243ac_ext=c
11244ac_cpp='$CPP $CPPFLAGS'
11245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11247ac_compiler_gnu=$ac_cv_c_compiler_gnu
11248
11249
11250if test -n "$with_cross_host"; then
11251 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
11252 # may not work correctly, because the compiler may not be able to
11253 # link executables.
11254
11255 # We assume newlib. This lets us hard-code the functions we know
11256 # we'll have.
5213506e 11257 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
1cf3d07d 11258
5213506e 11259 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
a8aea176 11260
1cf3d07d
SE
11261else
11262 if test x$gcc_no_link = xyes; then
11263 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
11264 ac_cv_func_mmap_fixed_mapped=no
11265 fi
11266fi
11267if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
22e05272
JM
11268
11269
11270
11271 for ac_header in $ac_header_list
5213506e
RW
11272do :
11273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22e05272
JM
11274ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11275"
11276if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5213506e
RW
11277 cat >>confdefs.h <<_ACEOF
11278#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a8aea176 11279_ACEOF
a8aea176 11280
a8aea176 11281fi
a8aea176 11282
5213506e 11283done
a8aea176 11284
22e05272
JM
11285
11286
11287
11288
11289
11290
11291
5213506e
RW
11292for ac_func in getpagesize
11293do :
11294 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22e05272 11295if test "x$ac_cv_func_getpagesize" = xyes; then :
a8aea176 11296 cat >>confdefs.h <<_ACEOF
5213506e 11297#define HAVE_GETPAGESIZE 1
a8aea176
NN
11298_ACEOF
11299
11300fi
a8aea176
NN
11301done
11302
5213506e
RW
11303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11304$as_echo_n "checking for working mmap... " >&6; }
22e05272 11305if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
5213506e 11306 $as_echo_n "(cached) " >&6
a8aea176 11307else
5213506e
RW
11308 if test "$cross_compiling" = yes; then :
11309 ac_cv_func_mmap_fixed_mapped=no
11310else
11311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8aea176 11312/* end confdefs.h. */
5213506e
RW
11313$ac_includes_default
11314/* malloc might have been renamed as rpl_malloc. */
11315#undef malloc
dfac8a13
TT
11316
11317/* Thanks to Mike Haertel and Jim Avera for this test.
11318 Here is a matrix of mmap possibilities:
11319 mmap private not fixed
11320 mmap private fixed at somewhere currently unmapped
11321 mmap private fixed at somewhere already mapped
11322 mmap shared not fixed
11323 mmap shared fixed at somewhere currently unmapped
11324 mmap shared fixed at somewhere already mapped
11325 For private mappings, we should verify that changes cannot be read()
11326 back from the file, nor mmap's back from the file at a different
11327 address. (There have been systems where private was not correctly
11328 implemented like the infamous i386 svr4.0, and systems where the
a8aea176 11329 VM page cache was not coherent with the file system buffer cache
dfac8a13
TT
11330 like early versions of FreeBSD and possibly contemporary NetBSD.)
11331 For shared mappings, we should conversely verify that changes get
a8aea176 11332 propagated back to all the places they're supposed to be.
c45f211e 11333
dfac8a13
TT
11334 Grep wants private fixed already mapped.
11335 The main things grep needs to know about mmap are:
11336 * does it exist and is it safe to write into the mmap'd area
11337 * how to use it (BSD variants) */
a8aea176 11338
dfac8a13 11339#include <fcntl.h>
c45f211e 11340#include <sys/mman.h>
dfac8a13 11341
5213506e 11342#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
a8aea176
NN
11343char *malloc ();
11344#endif
dfac8a13 11345
a8aea176 11346/* This mess was copied from the GNU getpagesize.h. */
5213506e 11347#ifndef HAVE_GETPAGESIZE
dfac8a13
TT
11348# ifdef _SC_PAGESIZE
11349# define getpagesize() sysconf(_SC_PAGESIZE)
11350# else /* no _SC_PAGESIZE */
5213506e 11351# ifdef HAVE_SYS_PARAM_H
dfac8a13
TT
11352# include <sys/param.h>
11353# ifdef EXEC_PAGESIZE
11354# define getpagesize() EXEC_PAGESIZE
11355# else /* no EXEC_PAGESIZE */
11356# ifdef NBPG
11357# define getpagesize() NBPG * CLSIZE
11358# ifndef CLSIZE
11359# define CLSIZE 1
11360# endif /* no CLSIZE */
11361# else /* no NBPG */
11362# ifdef NBPC
11363# define getpagesize() NBPC
11364# else /* no NBPC */
11365# ifdef PAGESIZE
11366# define getpagesize() PAGESIZE
11367# endif /* PAGESIZE */
11368# endif /* no NBPC */
11369# endif /* no NBPG */
11370# endif /* no EXEC_PAGESIZE */
11371# else /* no HAVE_SYS_PARAM_H */
11372# define getpagesize() 8192 /* punt totally */
11373# endif /* no HAVE_SYS_PARAM_H */
11374# endif /* no _SC_PAGESIZE */
11375
11376#endif /* no HAVE_GETPAGESIZE */
11377
dfac8a13 11378int
a8aea176 11379main ()
dfac8a13 11380{
a8aea176 11381 char *data, *data2, *data3;
22e05272 11382 const char *cdata2;
a8aea176 11383 int i, pagesize;
22e05272 11384 int fd, fd2;
a8aea176
NN
11385
11386 pagesize = getpagesize ();
11387
11388 /* First, make a file with some known garbage in it. */
11389 data = (char *) malloc (pagesize);
11390 if (!data)
5213506e 11391 return 1;
a8aea176
NN
11392 for (i = 0; i < pagesize; ++i)
11393 *(data + i) = rand ();
11394 umask (0);
11395 fd = creat ("conftest.mmap", 0600);
11396 if (fd < 0)
22e05272 11397 return 2;
a8aea176 11398 if (write (fd, data, pagesize) != pagesize)
22e05272 11399 return 3;
a8aea176
NN
11400 close (fd);
11401
22e05272
JM
11402 /* Next, check that the tail of a page is zero-filled. File must have
11403 non-zero length, otherwise we risk SIGBUS for entire page. */
11404 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
11405 if (fd2 < 0)
11406 return 4;
11407 cdata2 = "";
11408 if (write (fd2, cdata2, 1) != 1)
11409 return 5;
11410 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
11411 if (data2 == MAP_FAILED)
11412 return 6;
11413 for (i = 0; i < pagesize; ++i)
11414 if (*(data2 + i))
11415 return 7;
11416 close (fd2);
11417 if (munmap (data2, pagesize))
11418 return 8;
11419
a8aea176
NN
11420 /* Next, try to mmap the file at a fixed address which already has
11421 something else allocated at it. If we can, also make sure that
11422 we see the same garbage. */
11423 fd = open ("conftest.mmap", O_RDWR);
11424 if (fd < 0)
22e05272 11425 return 9;
a8aea176
NN
11426 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11427 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22e05272 11428 return 10;
a8aea176
NN
11429 for (i = 0; i < pagesize; ++i)
11430 if (*(data + i) != *(data2 + i))
22e05272 11431 return 11;
a8aea176
NN
11432
11433 /* Finally, make sure that changes to the mapped area do not
11434 percolate back to the file as seen by read(). (This is a bug on
11435 some variants of i386 svr4.0.) */
11436 for (i = 0; i < pagesize; ++i)
11437 *(data2 + i) = *(data2 + i) + 1;
11438 data3 = (char *) malloc (pagesize);
11439 if (!data3)
22e05272 11440 return 12;
a8aea176 11441 if (read (fd, data3, pagesize) != pagesize)
22e05272 11442 return 13;
a8aea176
NN
11443 for (i = 0; i < pagesize; ++i)
11444 if (*(data + i) != *(data3 + i))
22e05272 11445 return 14;
a8aea176 11446 close (fd);
5213506e 11447 return 0;
c45f211e 11448}
a8aea176 11449_ACEOF
5213506e 11450if ac_fn_c_try_run "$LINENO"; then :
dfac8a13
TT
11451 ac_cv_func_mmap_fixed_mapped=yes
11452else
5213506e 11453 ac_cv_func_mmap_fixed_mapped=no
dfac8a13 11454fi
5213506e
RW
11455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11456 conftest.$ac_objext conftest.beam conftest.$ac_ext
dfac8a13 11457fi
5213506e 11458
dfac8a13 11459fi
5213506e
RW
11460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11461$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
dfac8a13 11462if test $ac_cv_func_mmap_fixed_mapped = yes; then
a8aea176 11463
5213506e 11464$as_echo "#define HAVE_MMAP 1" >>confdefs.h
dfac8a13
TT
11465
11466fi
22e05272 11467rm -f conftest.mmap conftest.txt
dfac8a13 11468
a8aea176 11469fi
5213506e
RW
11470 for ac_func in memcpy strerror
11471do :
11472 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11473ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22e05272 11474if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a8aea176 11475 cat >>confdefs.h <<_ACEOF
5213506e 11476#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a8aea176 11477_ACEOF
dfac8a13 11478
dfac8a13
TT
11479fi
11480done
11481
79a9a529
TT
11482fi
11483
a8aea176 11484for ac_header in unistd.h
5213506e
RW
11485do :
11486 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
22e05272 11487if test "x$ac_cv_header_unistd_h" = xyes; then :
a8aea176 11488 cat >>confdefs.h <<_ACEOF
5213506e 11489#define HAVE_UNISTD_H 1
a8aea176
NN
11490_ACEOF
11491
11492fi
11493
dfac8a13
TT
11494done
11495
11496
e8e66971
MR
11497
11498# Check whether --with-toolexeclibdir was given.
11499if test "${with_toolexeclibdir+set}" = set; then :
11500 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
11501 /)
11502 ;;
11503 */)
11504 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
11505 ;;
11506esac
11507else
11508 with_toolexeclibdir=no
11509fi
11510
11511
11512
0ccf2c33
AO
11513if test -n "$with_cross_host" &&
11514 test x"$with_cross_host" != x"no"; then
11515 toolexecdir='$(exec_prefix)/$(target_alias)'
e8e66971
MR
11516 case ${with_toolexeclibdir} in
11517 no)
11518 toolexeclibdir='$(toolexecdir)/lib'
11519 ;;
11520 *)
11521 toolexeclibdir=${with_toolexeclibdir}
11522 ;;
11523 esac
b48ed568 11524else
0ccf2c33
AO
11525 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11526 toolexeclibdir='$(libdir)'
b48ed568 11527fi
905280ac
AO
11528if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
11529 multiosdir=/`$CC -print-multi-os-directory`
ff8b9ca8
AS
11530 case $multiosdir in
11531 /.) multiosdir= ;; # Avoid trailing /.
11532 esac
905280ac
AO
11533else
11534 multiosdir=
11535fi
11536toolexeclibdir=${toolexeclibdir}${multiosdir}
0ccf2c33
AO
11537
11538
11539
5213506e 11540 if test -n "$with_target_subdir"; then
e093c992
AG
11541 TARGET_LIBRARY_TRUE=
11542 TARGET_LIBRARY_FALSE='#'
11543else
11544 TARGET_LIBRARY_TRUE='#'
11545 TARGET_LIBRARY_FALSE=
11546fi
11547
9fabf579 11548
dfac8a13
TT
11549if test "${multilib}" = "yes"; then
11550 multilib_arg="--enable-multilib"
11551else
11552 multilib_arg=
11553fi
11554
b6cb10af 11555# Enable --enable-host-shared.
459260ec
DM
11556# Check whether --enable-host-shared was given.
11557if test "${enable_host_shared+set}" = set; then :
b6cb10af
MP
11558 enableval=$enable_host_shared;
11559fi
11560
11561
11562
11563# Enable --enable-host-pie.
11564# Check whether --enable-host-pie was given.
11565if test "${enable_host_pie+set}" = set; then :
11566 enableval=$enable_host_pie;
11567fi
11568
11569
11570
11571if test x$enable_host_shared = xyes; then
11572 PICFLAG=-fPIC
11573elif test x$enable_host_pie = xyes; then
11574 PICFLAG=-fPIE
459260ec
DM
11575else
11576 PICFLAG=
11577fi
11578
11579
5213506e 11580ac_config_files="$ac_config_files Makefile"
a8aea176 11581
a8aea176 11582cat >confcache <<\_ACEOF
dfac8a13
TT
11583# This file is a shell script that caches the results of configure
11584# tests run on this system so they can be shared between configure
a8aea176
NN
11585# scripts and configure runs, see configure's option --config-cache.
11586# It is not useful on other systems. If it contains results you don't
11587# want to keep, you may remove or edit it.
dfac8a13 11588#
a8aea176
NN
11589# config.status only pays attention to the cache file if you give it
11590# the --recheck option to rerun configure.
dfac8a13 11591#
a8aea176
NN
11592# `ac_cv_env_foo' variables (set or unset) will be overridden when
11593# loading this file, other *unset* `ac_cv_foo' will be assigned the
11594# following values.
11595
11596_ACEOF
11597
dfac8a13
TT
11598# The following way of writing the cache mishandles newlines in values,
11599# but we know of no workaround that is simple, portable, and efficient.
5213506e 11600# So, we kill variables containing newlines.
dfac8a13
TT
11601# Ultrix sh set writes to stderr and can't be redirected directly,
11602# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
11603(
11604 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11605 eval ac_val=\$$ac_var
11606 case $ac_val in #(
11607 *${as_nl}*)
11608 case $ac_var in #(
11609 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11610$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11611 esac
11612 case $ac_var in #(
11613 _ | IFS | as_nl) ;; #(
11614 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11615 *) { eval $ac_var=; unset $ac_var;} ;;
11616 esac ;;
11617 esac
11618 done
11619
a8aea176 11620 (set) 2>&1 |
5213506e
RW
11621 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11622 *${as_nl}ac_space=\ *)
11623 # `set' does not quote correctly, so add quotes: double-quote
11624 # substitution turns \\\\ into \\, and sed turns \\ into \.
a8aea176
NN
11625 sed -n \
11626 "s/'/'\\\\''/g;
11627 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 11628 ;; #(
a8aea176
NN
11629 *)
11630 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 11631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
a8aea176 11632 ;;
5213506e
RW
11633 esac |
11634 sort
11635) |
a8aea176 11636 sed '
5213506e 11637 /^ac_cv_env_/b end
a8aea176 11638 t clear
5213506e 11639 :clear
a8aea176
NN
11640 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11641 t end
5213506e
RW
11642 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11643 :end' >>confcache
11644if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11645 if test -w "$cache_file"; then
22e05272 11646 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11648$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
11649 if test ! -f "$cache_file" || test -h "$cache_file"; then
11650 cat confcache >"$cache_file"
11651 else
11652 case $cache_file in #(
11653 */* | ?:*)
11654 mv -f confcache "$cache_file"$$ &&
11655 mv -f "$cache_file"$$ "$cache_file" ;; #(
11656 *)
11657 mv -f confcache "$cache_file" ;;
11658 esac
11659 fi
11660 fi
dfac8a13 11661 else
5213506e
RW
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11663$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
dfac8a13
TT
11664 fi
11665fi
11666rm -f confcache
11667
dfac8a13
TT
11668test "x$prefix" = xNONE && prefix=$ac_default_prefix
11669# Let make expand exec_prefix.
11670test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11671
dfac8a13
TT
11672# Transform confdefs.h into DEFS.
11673# Protect against shell expansion while executing Makefile rules.
11674# Protect against Makefile macro expansion.
a8aea176
NN
11675#
11676# If the first sed substitution is executed (which looks for macros that
5213506e 11677# take arguments), then branch to the quote section. Otherwise,
a8aea176 11678# look for a macro that doesn't take arguments.
5213506e
RW
11679ac_script='
11680:mline
11681/\\$/{
11682 N
11683 s,\\\n,,
11684 b mline
11685}
a8aea176 11686t clear
5213506e
RW
11687:clear
11688s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
a8aea176 11689t quote
5213506e 11690s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
a8aea176 11691t quote
5213506e
RW
11692b any
11693:quote
11694s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11695s/\[/\\&/g
11696s/\]/\\&/g
11697s/\$/$$/g
11698H
11699:any
11700${
11701 g
11702 s/^\n//
11703 s/\n/ /g
11704 p
11705}
11706'
11707DEFS=`sed -n "$ac_script" confdefs.h`
a8aea176
NN
11708
11709
11710ac_libobjs=
11711ac_ltlibobjs=
22e05272 11712U=
a8aea176
NN
11713for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11714 # 1. Remove the extension, and $U if already installed.
5213506e
RW
11715 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11716 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11717 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11718 # will be set to the directory where LIBOBJS objects are built.
11719 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11720 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
a8aea176
NN
11721done
11722LIBOBJS=$ac_libobjs
dfac8a13 11723
a8aea176 11724LTLIBOBJS=$ac_ltlibobjs
dfac8a13 11725
dfac8a13 11726
22e05272
JM
11727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11728$as_echo_n "checking that generated files are newer than configure... " >&6; }
11729 if test -n "$am_sleep_pid"; then
11730 # Hide warnings about reused PIDs.
11731 wait $am_sleep_pid 2>/dev/null
11732 fi
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11734$as_echo "done" >&6; }
5213506e
RW
11735 if test -n "$EXEEXT"; then
11736 am__EXEEXT_TRUE=
11737 am__EXEEXT_FALSE='#'
11738else
11739 am__EXEEXT_TRUE='#'
11740 am__EXEEXT_FALSE=
11741fi
11742
9fabf579 11743if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 11744 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5213506e 11745Usually this means the macro was only invoked conditionally." "$LINENO" 5
9fabf579
KC
11746fi
11747if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 11748 as_fn_error $? "conditional \"AMDEP\" was never defined.
5213506e 11749Usually this means the macro was only invoked conditionally." "$LINENO" 5
9fabf579
KC
11750fi
11751if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 11752 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5213506e 11753Usually this means the macro was only invoked conditionally." "$LINENO" 5
9fabf579
KC
11754fi
11755if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
22e05272 11756 as_fn_error $? "conditional \"TARGET_LIBRARY\" was never defined.
5213506e 11757Usually this means the macro was only invoked conditionally." "$LINENO" 5
9fabf579 11758fi
a8aea176 11759
22e05272 11760: "${CONFIG_STATUS=./config.status}"
5213506e 11761ac_write_fail=0
a8aea176
NN
11762ac_clean_files_save=$ac_clean_files
11763ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
11764{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11765$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11766as_write_fail=0
11767cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
a8aea176
NN
11768#! $SHELL
11769# Generated by $as_me.
dfac8a13 11770# Run this file to recreate the current configuration.
dfac8a13 11771# Compiler output produced by configure, useful for debugging
a8aea176
NN
11772# configure, is in config.log if it exists.
11773
11774debug=false
11775ac_cs_recheck=false
11776ac_cs_silent=false
a8aea176 11777
5213506e
RW
11778SHELL=\${CONFIG_SHELL-$SHELL}
11779export SHELL
11780_ASEOF
11781cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11782## -------------------- ##
11783## M4sh Initialization. ##
11784## -------------------- ##
11785
11786# Be more Bourne compatible
11787DUALCASE=1; export DUALCASE # for MKS sh
11788if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
a8aea176
NN
11789 emulate sh
11790 NULLCMD=:
5213506e 11791 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a8aea176
NN
11792 # is contrary to our usage. Disable this feature.
11793 alias -g '${1+"$@"}'='"$@"'
5213506e 11794 setopt NO_GLOB_SUBST
a8aea176 11795else
5213506e
RW
11796 case `(set -o) 2>/dev/null` in #(
11797 *posix*) :
11798 set -o posix ;; #(
11799 *) :
11800 ;;
11801esac
a8aea176 11802fi
dfac8a13 11803
a8aea176 11804
5213506e
RW
11805as_nl='
11806'
11807export as_nl
11808# Printing a long string crashes Solaris 7 /usr/bin/printf.
11809as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11810as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11811as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11812# Prefer a ksh shell builtin over an external printf program on Solaris,
11813# but without wasting forks for bash or zsh.
11814if test -z "$BASH_VERSION$ZSH_VERSION" \
11815 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11816 as_echo='print -r --'
11817 as_echo_n='print -rn --'
11818elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11819 as_echo='printf %s\n'
11820 as_echo_n='printf %s'
11821else
11822 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11823 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11824 as_echo_n='/usr/ucb/echo -n'
a8aea176 11825 else
5213506e
RW
11826 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11827 as_echo_n_body='eval
11828 arg=$1;
11829 case $arg in #(
11830 *"$as_nl"*)
11831 expr "X$arg" : "X\\(.*\\)$as_nl";
11832 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11833 esac;
11834 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11835 '
11836 export as_echo_n_body
11837 as_echo_n='sh -c $as_echo_n_body as_echo'
a8aea176 11838 fi
5213506e
RW
11839 export as_echo_body
11840 as_echo='sh -c $as_echo_body as_echo'
a8aea176 11841fi
dfac8a13 11842
a8aea176
NN
11843# The user is always right.
11844if test "${PATH_SEPARATOR+set}" != set; then
5213506e
RW
11845 PATH_SEPARATOR=:
11846 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11847 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11848 PATH_SEPARATOR=';'
11849 }
a8aea176 11850fi
dfac8a13 11851
dfac8a13 11852
5213506e
RW
11853# IFS
11854# We need space, tab and new line, in precisely that order. Quoting is
11855# there to prevent editors from complaining about space-tab.
11856# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11857# splitting by setting IFS to empty value.)
11858IFS=" "" $as_nl"
11859
11860# Find who we are. Look in the path if we contain no directory separator.
22e05272 11861as_myself=
5213506e
RW
11862case $0 in #((
11863 *[\\/]* ) as_myself=$0 ;;
11864 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a8aea176
NN
11865for as_dir in $PATH
11866do
11867 IFS=$as_save_IFS
11868 test -z "$as_dir" && as_dir=.
5213506e
RW
11869 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11870 done
11871IFS=$as_save_IFS
11872
11873 ;;
11874esac
11875# We did not find ourselves, most probably we were run as `sh COMMAND'
11876# in which case we are not to be found in the path.
11877if test "x$as_myself" = x; then
11878 as_myself=$0
11879fi
11880if test ! -f "$as_myself"; then
11881 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11882 exit 1
11883fi
11884
11885# Unset variables that we do not need and which cause bugs (e.g. in
11886# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11887# suppresses any "Segmentation fault" message there. '((' could
11888# trigger a bug in pdksh 5.2.14.
11889for as_var in BASH_ENV ENV MAIL MAILPATH
11890do eval test x\${$as_var+set} = xset \
11891 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
a8aea176 11892done
5213506e
RW
11893PS1='$ '
11894PS2='> '
11895PS4='+ '
dfac8a13 11896
5213506e
RW
11897# NLS nuisances.
11898LC_ALL=C
11899export LC_ALL
11900LANGUAGE=C
11901export LANGUAGE
11902
11903# CDPATH.
11904(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11905
11906
22e05272
JM
11907# as_fn_error STATUS ERROR [LINENO LOG_FD]
11908# ----------------------------------------
5213506e
RW
11909# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11910# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 11911# script with STATUS, using 1 if that was 0.
5213506e
RW
11912as_fn_error ()
11913{
22e05272
JM
11914 as_status=$1; test $as_status -eq 0 && as_status=1
11915 if test "$4"; then
11916 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11917 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
dfac8a13 11918 fi
22e05272 11919 $as_echo "$as_me: error: $2" >&2
5213506e
RW
11920 as_fn_exit $as_status
11921} # as_fn_error
dfac8a13 11922
a8aea176 11923
5213506e
RW
11924# as_fn_set_status STATUS
11925# -----------------------
11926# Set $? to STATUS, without forking.
11927as_fn_set_status ()
11928{
11929 return $1
11930} # as_fn_set_status
dfac8a13 11931
5213506e
RW
11932# as_fn_exit STATUS
11933# -----------------
11934# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11935as_fn_exit ()
11936{
11937 set +e
11938 as_fn_set_status $1
11939 exit $1
11940} # as_fn_exit
11941
11942# as_fn_unset VAR
11943# ---------------
11944# Portably unset VAR.
11945as_fn_unset ()
11946{
11947 { eval $1=; unset $1;}
11948}
11949as_unset=as_fn_unset
11950# as_fn_append VAR VALUE
11951# ----------------------
11952# Append the text in VALUE to the end of the definition contained in VAR. Take
11953# advantage of any shell optimizations that allow amortized linear growth over
11954# repeated appends, instead of the typical quadratic growth present in naive
11955# implementations.
11956if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11957 eval 'as_fn_append ()
11958 {
11959 eval $1+=\$2
11960 }'
11961else
11962 as_fn_append ()
11963 {
11964 eval $1=\$$1\$2
11965 }
11966fi # as_fn_append
11967
11968# as_fn_arith ARG...
11969# ------------------
11970# Perform arithmetic evaluation on the ARGs, and store the result in the
11971# global $as_val. Take advantage of shells that can avoid forks. The arguments
11972# must be portable across $(()) and expr.
11973if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11974 eval 'as_fn_arith ()
11975 {
11976 as_val=$(( $* ))
11977 }'
11978else
11979 as_fn_arith ()
11980 {
11981 as_val=`expr "$@" || test $? -eq 1`
11982 }
11983fi # as_fn_arith
dfac8a13 11984
dfac8a13 11985
5213506e
RW
11986if expr a : '\(a\)' >/dev/null 2>&1 &&
11987 test "X`expr 00001 : '.*\(...\)'`" = X001; then
a8aea176
NN
11988 as_expr=expr
11989else
11990 as_expr=false
11991fi
11992
5213506e
RW
11993if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11994 as_basename=basename
11995else
11996 as_basename=false
11997fi
11998
11999if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12000 as_dirname=dirname
12001else
12002 as_dirname=false
12003fi
12004
12005as_me=`$as_basename -- "$0" ||
12006$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12007 X"$0" : 'X\(//\)$' \| \
12008 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12009$as_echo X/"$0" |
12010 sed '/^.*\/\([^/][^/]*\)\/*$/{
12011 s//\1/
12012 q
12013 }
12014 /^X\/\(\/\/\)$/{
12015 s//\1/
12016 q
12017 }
12018 /^X\/\(\/\).*/{
12019 s//\1/
12020 q
12021 }
12022 s/.*/./; q'`
12023
12024# Avoid depending upon Character Ranges.
12025as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12026as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12027as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12028as_cr_digits='0123456789'
12029as_cr_alnum=$as_cr_Letters$as_cr_digits
12030
12031ECHO_C= ECHO_N= ECHO_T=
12032case `echo -n x` in #(((((
12033-n*)
12034 case `echo 'xy\c'` in
12035 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12036 xy) ECHO_C='\c';;
12037 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12038 ECHO_T=' ';;
12039 esac;;
12040*)
12041 ECHO_N='-n';;
12042esac
12043
a8aea176 12044rm -f conf$$ conf$$.exe conf$$.file
5213506e
RW
12045if test -d conf$$.dir; then
12046 rm -f conf$$.dir/conf$$.file
12047else
12048 rm -f conf$$.dir
12049 mkdir conf$$.dir 2>/dev/null
12050fi
12051if (echo >conf$$.file) 2>/dev/null; then
12052 if ln -s conf$$.file conf$$ 2>/dev/null; then
a8aea176 12053 as_ln_s='ln -s'
5213506e
RW
12054 # ... but there are two gotchas:
12055 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12056 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 12057 # In both cases, we have to default to `cp -pR'.
5213506e 12058 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 12059 as_ln_s='cp -pR'
5213506e
RW
12060 elif ln conf$$.file conf$$ 2>/dev/null; then
12061 as_ln_s=ln
12062 else
22e05272 12063 as_ln_s='cp -pR'
dfac8a13 12064 fi
a8aea176 12065else
22e05272 12066 as_ln_s='cp -pR'
a8aea176 12067fi
5213506e
RW
12068rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12069rmdir conf$$.dir 2>/dev/null
12070
12071
12072# as_fn_mkdir_p
12073# -------------
12074# Create "$as_dir" as a directory, including parents if necessary.
12075as_fn_mkdir_p ()
12076{
12077
12078 case $as_dir in #(
12079 -*) as_dir=./$as_dir;;
12080 esac
12081 test -d "$as_dir" || eval $as_mkdir_p || {
12082 as_dirs=
12083 while :; do
12084 case $as_dir in #(
12085 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12086 *) as_qdir=$as_dir;;
12087 esac
12088 as_dirs="'$as_qdir' $as_dirs"
12089 as_dir=`$as_dirname -- "$as_dir" ||
12090$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12091 X"$as_dir" : 'X\(//\)[^/]' \| \
12092 X"$as_dir" : 'X\(//\)$' \| \
12093 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12094$as_echo X"$as_dir" |
12095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12096 s//\1/
12097 q
12098 }
12099 /^X\(\/\/\)[^/].*/{
12100 s//\1/
12101 q
12102 }
12103 /^X\(\/\/\)$/{
12104 s//\1/
12105 q
12106 }
12107 /^X\(\/\).*/{
12108 s//\1/
12109 q
12110 }
12111 s/.*/./; q'`
12112 test -d "$as_dir" && break
12113 done
12114 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 12115 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 12116
dfac8a13 12117
5213506e 12118} # as_fn_mkdir_p
a8aea176 12119if mkdir -p . 2>/dev/null; then
5213506e 12120 as_mkdir_p='mkdir -p "$as_dir"'
a8aea176
NN
12121else
12122 test -d ./-p && rmdir ./-p
12123 as_mkdir_p=false
12124fi
12125
22e05272
JM
12126
12127# as_fn_executable_p FILE
12128# -----------------------
12129# Test if FILE is an executable regular file.
12130as_fn_executable_p ()
12131{
12132 test -f "$1" && test -x "$1"
12133} # as_fn_executable_p
12134as_test_x='test -x'
12135as_executable_p=as_fn_executable_p
dfac8a13 12136
a8aea176
NN
12137# Sed expression to map a string onto a valid CPP name.
12138as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12139
12140# Sed expression to map a string onto a valid variable name.
12141as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12142
12143
a8aea176 12144exec 6>&1
5213506e
RW
12145## ----------------------------------- ##
12146## Main body of $CONFIG_STATUS script. ##
12147## ----------------------------------- ##
12148_ASEOF
12149test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12150
12151cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12152# Save the log message, to keep $0 and so on meaningful, and to
a8aea176 12153# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
12154# values after options handling.
12155ac_log="
22e05272
JM
12156This file was extended by zlib $as_me 1.1.4, which was
12157generated by GNU Autoconf 2.69. Invocation command line was
a8aea176
NN
12158
12159 CONFIG_FILES = $CONFIG_FILES
12160 CONFIG_HEADERS = $CONFIG_HEADERS
12161 CONFIG_LINKS = $CONFIG_LINKS
12162 CONFIG_COMMANDS = $CONFIG_COMMANDS
12163 $ $0 $@
12164
5213506e
RW
12165on `(hostname || uname -n) 2>/dev/null | sed 1q`
12166"
12167
a8aea176
NN
12168_ACEOF
12169
5213506e
RW
12170case $ac_config_files in *"
12171"*) set x $ac_config_files; shift; ac_config_files=$*;;
12172esac
a8aea176 12173
a8aea176 12174
a8aea176 12175
5213506e
RW
12176cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12177# Files that config.status was made for.
12178config_files="$ac_config_files"
12179config_commands="$ac_config_commands"
a8aea176 12180
5213506e 12181_ACEOF
a8aea176 12182
5213506e 12183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a8aea176 12184ac_cs_usage="\
5213506e
RW
12185\`$as_me' instantiates files and other configuration actions
12186from templates according to the current configuration. Unless the files
12187and actions are specified as TAGs, all are instantiated by default.
a8aea176 12188
5213506e 12189Usage: $0 [OPTION]... [TAG]...
a8aea176
NN
12190
12191 -h, --help print this help, then exit
5213506e 12192 -V, --version print version number and configuration settings, then exit
22e05272 12193 --config print configuration, then exit
5213506e
RW
12194 -q, --quiet, --silent
12195 do not print progress messages
a8aea176
NN
12196 -d, --debug don't remove temporary files
12197 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
12198 --file=FILE[:TEMPLATE]
12199 instantiate the configuration file FILE
a8aea176
NN
12200
12201Configuration files:
12202$config_files
12203
12204Configuration commands:
12205$config_commands
12206
5213506e 12207Report bugs to the package provider."
a8aea176 12208
5213506e
RW
12209_ACEOF
12210cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 12211ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
a8aea176 12212ac_cs_version="\\
22e05272
JM
12213zlib config.status 1.1.4
12214configured by $0, generated by GNU Autoconf 2.69,
12215 with options \\"\$ac_cs_config\\"
a8aea176 12216
22e05272 12217Copyright (C) 2012 Free Software Foundation, Inc.
a8aea176
NN
12218This config.status script is free software; the Free Software Foundation
12219gives unlimited permission to copy, distribute and modify it."
5213506e
RW
12220
12221ac_pwd='$ac_pwd'
12222srcdir='$srcdir'
12223INSTALL='$INSTALL'
12224MKDIR_P='$MKDIR_P'
12225AWK='$AWK'
12226test -n "\$AWK" || AWK=awk
a8aea176
NN
12227_ACEOF
12228
5213506e
RW
12229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12230# The default lists apply if the user does not specify any file.
a8aea176
NN
12231ac_need_defaults=:
12232while test $# != 0
12233do
12234 case $1 in
22e05272 12235 --*=?*)
5213506e
RW
12236 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12237 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a8aea176
NN
12238 ac_shift=:
12239 ;;
22e05272
JM
12240 --*=)
12241 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12242 ac_optarg=
12243 ac_shift=:
12244 ;;
5213506e 12245 *)
a8aea176
NN
12246 ac_option=$1
12247 ac_optarg=$2
12248 ac_shift=shift
12249 ;;
dfac8a13
TT
12250 esac
12251
a8aea176
NN
12252 case $ac_option in
12253 # Handling of the options.
a8aea176
NN
12254 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12255 ac_cs_recheck=: ;;
5213506e
RW
12256 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12257 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
12258 --config | --confi | --conf | --con | --co | --c )
12259 $as_echo "$ac_cs_config"; exit ;;
5213506e 12260 --debug | --debu | --deb | --de | --d | -d )
a8aea176
NN
12261 debug=: ;;
12262 --file | --fil | --fi | --f )
12263 $ac_shift
5213506e
RW
12264 case $ac_optarg in
12265 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 12266 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
12267 esac
12268 as_fn_append CONFIG_FILES " '$ac_optarg'"
a8aea176 12269 ac_need_defaults=false;;
5213506e
RW
12270 --he | --h | --help | --hel | -h )
12271 $as_echo "$ac_cs_usage"; exit ;;
a8aea176
NN
12272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12273 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12274 ac_cs_silent=: ;;
12275
12276 # This is an error.
22e05272 12277 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 12278Try \`$0 --help' for more information." ;;
a8aea176 12279
5213506e
RW
12280 *) as_fn_append ac_config_targets " $1"
12281 ac_need_defaults=false ;;
a8aea176 12282
dfac8a13 12283 esac
a8aea176
NN
12284 shift
12285done
dfac8a13 12286
a8aea176
NN
12287ac_configure_extra_args=
12288
12289if $ac_cs_silent; then
12290 exec 6>/dev/null
12291 ac_configure_extra_args="$ac_configure_extra_args --silent"
12292fi
12293
12294_ACEOF
5213506e 12295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a8aea176 12296if \$ac_cs_recheck; then
22e05272 12297 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
12298 shift
12299 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12300 CONFIG_SHELL='$SHELL'
12301 export CONFIG_SHELL
12302 exec "\$@"
a8aea176
NN
12303fi
12304
12305_ACEOF
5213506e
RW
12306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12307exec 5>>config.log
12308{
12309 echo
12310 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12311## Running $as_me. ##
12312_ASBOX
12313 $as_echo "$ac_log"
12314} >&5
a8aea176 12315
5213506e
RW
12316_ACEOF
12317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a8aea176 12318#
5213506e 12319# INIT-COMMANDS
a8aea176 12320#
dfac8a13 12321
076e5443
PB
12322srcdir="$srcdir"
12323host="$host"
12324target="$target"
12325with_multisubdir="$with_multisubdir"
12326with_multisrctop="$with_multisrctop"
12327with_target_subdir="$with_target_subdir"
dfac8a13 12328ac_configure_args="${multilib_arg} ${ac_configure_args}"
076e5443 12329multi_basedir="$multi_basedir"
dfac8a13 12330CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
076e5443 12331CC="$CC"
5213506e
RW
12332CXX="$CXX"
12333GFORTRAN="$GFORTRAN"
22e05272 12334GDC="$GDC"
076e5443 12335AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
a8aea176 12336
1cf3d07d
SE
12337
12338# The HP-UX ksh and POSIX shell print the target directory to stdout
12339# if CDPATH is set.
12340(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12341
12342sed_quote_subst='$sed_quote_subst'
12343double_quote_subst='$double_quote_subst'
12344delay_variable_subst='$delay_variable_subst'
43e02a8a
RW
12345macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12346macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12347enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12348enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12349pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12350enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12351SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12352ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12353host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12354host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12355host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12356build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12357build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12358build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12359SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12360Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12361GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12362EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12363FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12364LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12365NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12366LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12367max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12368ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12369exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12370lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12371lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12372lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12373reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12374reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12375OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12376deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12377file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12378AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12379AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12380STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12381RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12382old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12383old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12384old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12385lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12386CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12387CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12388compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12389GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12390lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12391lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12392lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12393lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
12394objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12395MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12396lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12397lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12398lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12399lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12400lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12401need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12402DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12403NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12404LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12405OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12406OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12407libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12408shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12409extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12410archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12411enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12412export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12413whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12414compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12415old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12416old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12417archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12418archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12419module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12420module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12421with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12422allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12423no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12424hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12425hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12426hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12427hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12428hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12429hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12430hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12431hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12432inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12433link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12434fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12435always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12436export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12437exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12438include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12439prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12440file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12441variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12442need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12443need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12444version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12445runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12446shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12447shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12448libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12449library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12450soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12451install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12452postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12453postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12454finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12455finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12456hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12457sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12458sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12459hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12460enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12461enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12462enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12463old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12464striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
1cf3d07d
SE
12465
12466LTCC='$LTCC'
12467LTCFLAGS='$LTCFLAGS'
12468compiler='$compiler_DEFAULT'
12469
43e02a8a
RW
12470# A function that is used when there is no print builtin or printf.
12471func_fallback_echo ()
12472{
12473 eval 'cat <<_LTECHO_EOF
12474\$1
12475_LTECHO_EOF'
12476}
12477
1cf3d07d 12478# Quote evaled strings.
43e02a8a
RW
12479for var in SHELL \
12480ECHO \
12481SED \
1cf3d07d
SE
12482GREP \
12483EGREP \
12484FGREP \
12485LD \
12486NM \
12487LN_S \
12488lt_SP2NL \
12489lt_NL2SP \
12490reload_flag \
18d98188 12491OBJDUMP \
1cf3d07d
SE
12492deplibs_check_method \
12493file_magic_cmd \
12494AR \
12495AR_FLAGS \
12496STRIP \
12497RANLIB \
12498CC \
12499CFLAGS \
12500compiler \
12501lt_cv_sys_global_symbol_pipe \
12502lt_cv_sys_global_symbol_to_cdecl \
12503lt_cv_sys_global_symbol_to_c_name_address \
18d98188 12504lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
12505lt_prog_compiler_no_builtin_flag \
12506lt_prog_compiler_wl \
12507lt_prog_compiler_pic \
12508lt_prog_compiler_static \
12509lt_cv_prog_compiler_c_o \
12510need_locks \
18d98188
PG
12511DSYMUTIL \
12512NMEDIT \
12513LIPO \
12514OTOOL \
12515OTOOL64 \
1cf3d07d
SE
12516shrext_cmds \
12517export_dynamic_flag_spec \
12518whole_archive_flag_spec \
12519compiler_needs_object \
12520with_gnu_ld \
12521allow_undefined_flag \
12522no_undefined_flag \
12523hardcode_libdir_flag_spec \
12524hardcode_libdir_flag_spec_ld \
12525hardcode_libdir_separator \
12526fix_srcfile_path \
12527exclude_expsyms \
12528include_expsyms \
12529file_list_spec \
12530variables_saved_for_relink \
12531libname_spec \
12532library_names_spec \
12533soname_spec \
43e02a8a 12534install_override_mode \
1cf3d07d
SE
12535finish_eval \
12536old_striplib \
12537striplib; do
43e02a8a 12538 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 12539 *[\\\\\\\`\\"\\\$]*)
43e02a8a 12540 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1cf3d07d
SE
12541 ;;
12542 *)
12543 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12544 ;;
12545 esac
12546done
12547
12548# Double-quote double-evaled strings.
12549for var in reload_cmds \
12550old_postinstall_cmds \
12551old_postuninstall_cmds \
12552old_archive_cmds \
12553extract_expsyms_cmds \
12554old_archive_from_new_cmds \
12555old_archive_from_expsyms_cmds \
12556archive_cmds \
12557archive_expsym_cmds \
12558module_cmds \
12559module_expsym_cmds \
12560export_symbols_cmds \
12561prelink_cmds \
12562postinstall_cmds \
12563postuninstall_cmds \
12564finish_cmds \
12565sys_lib_search_path_spec \
12566sys_lib_dlsearch_path_spec; do
43e02a8a 12567 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 12568 *[\\\\\\\`\\"\\\$]*)
43e02a8a 12569 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1cf3d07d
SE
12570 ;;
12571 *)
12572 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12573 ;;
12574 esac
12575done
12576
1cf3d07d
SE
12577ac_aux_dir='$ac_aux_dir'
12578xsi_shell='$xsi_shell'
12579lt_shell_append='$lt_shell_append'
12580
12581# See if we are running on zsh, and set the options which allow our
12582# commands through without removal of \ escapes INIT.
12583if test -n "\${ZSH_VERSION+set}" ; then
12584 setopt NO_GLOB_SUBST
12585fi
12586
12587
12588 PACKAGE='$PACKAGE'
12589 VERSION='$VERSION'
12590 TIMESTAMP='$TIMESTAMP'
12591 RM='$RM'
12592 ofile='$ofile'
12593
12594
12595
12596
a8aea176
NN
12597_ACEOF
12598
5213506e 12599cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a8aea176 12600
5213506e 12601# Handling of arguments.
a8aea176
NN
12602for ac_config_target in $ac_config_targets
12603do
5213506e
RW
12604 case $ac_config_target in
12605 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12606 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12607 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12608 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12609
22e05272 12610 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
a8aea176
NN
12611 esac
12612done
12613
5213506e 12614
a8aea176
NN
12615# If the user did not use the arguments to specify the items to instantiate,
12616# then the envvar interface is used. Set only those that are not.
12617# We use the long form for the default assignment because of an extremely
12618# bizarre bug on SunOS 4.1.3.
12619if $ac_need_defaults; then
12620 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12621 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12622fi
12623
12624# Have a temporary directory for convenience. Make it in the build tree
5213506e 12625# simply because there is no reason against having it here, and in addition,
a8aea176 12626# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
12627# Hook for its removal unless debugging.
12628# Note that there is a small window in which the directory will not be cleaned:
12629# after its creation but before its name has been assigned to `$tmp'.
a8aea176
NN
12630$debug ||
12631{
22e05272 12632 tmp= ac_tmp=
5213506e 12633 trap 'exit_status=$?
22e05272
JM
12634 : "${ac_tmp:=$tmp}"
12635 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
12636' 0
12637 trap 'as_fn_exit 1' 1 2 13 15
a8aea176 12638}
a8aea176
NN
12639# Create a (secure) tmp directory for tmp files.
12640
12641{
5213506e 12642 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 12643 test -d "$tmp"
a8aea176
NN
12644} ||
12645{
5213506e
RW
12646 tmp=./conf$$-$RANDOM
12647 (umask 077 && mkdir "$tmp")
22e05272
JM
12648} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12649ac_tmp=$tmp
5213506e
RW
12650
12651# Set up the scripts for CONFIG_FILES section.
12652# No need to generate them if there are no CONFIG_FILES.
12653# This happens for instance with `./config.status config.h'.
12654if test -n "$CONFIG_FILES"; then
12655
12656
12657ac_cr=`echo X | tr X '\015'`
12658# On cygwin, bash can eat \r inside `` if the user requested igncr.
12659# But we know of no other shell where ac_cr would be empty at this
12660# point, so we can use a bashism as a fallback.
12661if test "x$ac_cr" = x; then
12662 eval ac_cr=\$\'\\r\'
12663fi
12664ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12665if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 12666 ac_cs_awk_cr='\\r'
5213506e
RW
12667else
12668 ac_cs_awk_cr=$ac_cr
12669fi
12670
22e05272 12671echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
12672_ACEOF
12673
12674
12675{
12676 echo "cat >conf$$subs.awk <<_ACEOF" &&
12677 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12678 echo "_ACEOF"
12679} >conf$$subs.sh ||
22e05272
JM
12680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12681ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
12682ac_delim='%!_!# '
12683for ac_last_try in false false false false false :; do
12684 . ./conf$$subs.sh ||
22e05272 12685 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
12686
12687 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12688 if test $ac_delim_n = $ac_delim_num; then
12689 break
12690 elif $ac_last_try; then
22e05272 12691 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
12692 else
12693 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12694 fi
12695done
12696rm -f conf$$subs.sh
12697
12698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 12699cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5213506e
RW
12700_ACEOF
12701sed -n '
12702h
12703s/^/S["/; s/!.*/"]=/
12704p
12705g
12706s/^[^!]*!//
12707:repl
12708t repl
12709s/'"$ac_delim"'$//
12710t delim
12711:nl
12712h
22e05272 12713s/\(.\{148\}\)..*/\1/
5213506e
RW
12714t more1
12715s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12716p
12717n
12718b repl
12719:more1
12720s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12721p
12722g
12723s/.\{148\}//
12724t nl
12725:delim
12726h
22e05272 12727s/\(.\{148\}\)..*/\1/
5213506e
RW
12728t more2
12729s/["\\]/\\&/g; s/^/"/; s/$/"/
12730p
12731b
12732:more2
12733s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12734p
12735g
12736s/.\{148\}//
12737t delim
12738' <conf$$subs.awk | sed '
12739/^[^""]/{
12740 N
12741 s/\n//
12742}
12743' >>$CONFIG_STATUS || ac_write_fail=1
12744rm -f conf$$subs.awk
12745cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12746_ACAWK
22e05272 12747cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
12748 for (key in S) S_is_set[key] = 1
12749 FS = "\a"
12750
12751}
a8aea176 12752{
5213506e
RW
12753 line = $ 0
12754 nfields = split(line, field, "@")
12755 substed = 0
12756 len = length(field[1])
12757 for (i = 2; i < nfields; i++) {
12758 key = field[i]
12759 keylen = length(key)
12760 if (S_is_set[key]) {
12761 value = S[key]
12762 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12763 len += length(value) + length(field[++i])
12764 substed = 1
12765 } else
12766 len += 1 + keylen
12767 }
12768
12769 print line
a8aea176
NN
12770}
12771
5213506e 12772_ACAWK
a8aea176 12773_ACEOF
5213506e
RW
12774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12775if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12776 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12777else
12778 cat
22e05272
JM
12779fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12780 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
12781_ACEOF
12782
22e05272
JM
12783# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12784# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
12785# trailing colons and then remove the whole line if VPATH becomes empty
12786# (actually we leave an empty line to preserve line numbers).
12787if test "x$srcdir" = x.; then
22e05272
JM
12788 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12789h
12790s///
12791s/^/:/
12792s/[ ]*$/:/
12793s/:\$(srcdir):/:/g
12794s/:\${srcdir}:/:/g
12795s/:@srcdir@:/:/g
12796s/^:*//
5213506e 12797s/:*$//
22e05272
JM
12798x
12799s/\(=[ ]*\).*/\1/
12800G
12801s/\n//
5213506e
RW
12802s/^[^=]*=[ ]*$//
12803}'
12804fi
a8aea176 12805
5213506e
RW
12806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12807fi # test -n "$CONFIG_FILES"
a8aea176 12808
a8aea176 12809
5213506e
RW
12810eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12811shift
12812for ac_tag
12813do
12814 case $ac_tag in
12815 :[FHLC]) ac_mode=$ac_tag; continue;;
12816 esac
12817 case $ac_mode$ac_tag in
12818 :[FHL]*:*);;
22e05272 12819 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
12820 :[FH]-) ac_tag=-:-;;
12821 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12822 esac
12823 ac_save_IFS=$IFS
12824 IFS=:
12825 set x $ac_tag
12826 IFS=$ac_save_IFS
12827 shift
12828 ac_file=$1
12829 shift
a8aea176 12830
5213506e
RW
12831 case $ac_mode in
12832 :L) ac_source=$1;;
12833 :[FH])
12834 ac_file_inputs=
12835 for ac_f
12836 do
12837 case $ac_f in
22e05272 12838 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
12839 *) # Look for the file first in the build tree, then in the source tree
12840 # (if the path is not absolute). The absolute path cannot be DOS-style,
12841 # because $ac_f cannot contain `:'.
12842 test -f "$ac_f" ||
12843 case $ac_f in
12844 [\\/$]*) false;;
12845 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12846 esac ||
22e05272 12847 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
12848 esac
12849 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12850 as_fn_append ac_file_inputs " '$ac_f'"
12851 done
a8aea176 12852
5213506e
RW
12853 # Let's still pretend it is `configure' which instantiates (i.e., don't
12854 # use $as_me), people would be surprised to read:
12855 # /* config.h. Generated by config.status. */
12856 configure_input='Generated from '`
12857 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12858 `' by configure.'
12859 if test x"$ac_file" != x-; then
12860 configure_input="$ac_file. $configure_input"
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12862$as_echo "$as_me: creating $ac_file" >&6;}
a8aea176 12863 fi
5213506e
RW
12864 # Neutralize special characters interpreted by sed in replacement strings.
12865 case $configure_input in #(
12866 *\&* | *\|* | *\\* )
12867 ac_sed_conf_input=`$as_echo "$configure_input" |
12868 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12869 *) ac_sed_conf_input=$configure_input;;
12870 esac
a8aea176 12871
5213506e 12872 case $ac_tag in
22e05272
JM
12873 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12874 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
12875 esac
12876 ;;
a8aea176
NN
12877 esac
12878
5213506e 12879 ac_dir=`$as_dirname -- "$ac_file" ||
a8aea176
NN
12880$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12881 X"$ac_file" : 'X\(//\)[^/]' \| \
12882 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
12883 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12884$as_echo X"$ac_file" |
12885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12886 s//\1/
12887 q
12888 }
12889 /^X\(\/\/\)[^/].*/{
12890 s//\1/
12891 q
12892 }
12893 /^X\(\/\/\)$/{
12894 s//\1/
12895 q
12896 }
12897 /^X\(\/\).*/{
12898 s//\1/
12899 q
12900 }
12901 s/.*/./; q'`
12902 as_dir="$ac_dir"; as_fn_mkdir_p
a8aea176
NN
12903 ac_builddir=.
12904
5213506e
RW
12905case "$ac_dir" in
12906.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12907*)
12908 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12909 # A ".." for each directory in $ac_dir_suffix.
12910 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12911 case $ac_top_builddir_sub in
12912 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12913 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12914 esac ;;
12915esac
12916ac_abs_top_builddir=$ac_pwd
12917ac_abs_builddir=$ac_pwd$ac_dir_suffix
12918# for backward compatibility:
12919ac_top_builddir=$ac_top_build_prefix
a8aea176
NN
12920
12921case $srcdir in
5213506e 12922 .) # We are building in place.
a8aea176 12923 ac_srcdir=.
5213506e
RW
12924 ac_top_srcdir=$ac_top_builddir_sub
12925 ac_abs_top_srcdir=$ac_pwd ;;
12926 [\\/]* | ?:[\\/]* ) # Absolute name.
a8aea176 12927 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
12928 ac_top_srcdir=$srcdir
12929 ac_abs_top_srcdir=$srcdir ;;
12930 *) # Relative name.
12931 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12932 ac_top_srcdir=$ac_top_build_prefix$srcdir
12933 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a8aea176 12934esac
5213506e 12935ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a8aea176 12936
a8aea176 12937
5213506e
RW
12938 case $ac_mode in
12939 :F)
12940 #
12941 # CONFIG_FILE
12942 #
a8aea176
NN
12943
12944 case $INSTALL in
12945 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e
RW
12946 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12947 esac
12948 ac_MKDIR_P=$MKDIR_P
12949 case $MKDIR_P in
12950 [\\/$]* | ?:[\\/]* ) ;;
12951 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
a8aea176 12952 esac
5213506e 12953_ACEOF
a8aea176 12954
5213506e
RW
12955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12956# If the template does not know about datarootdir, expand it.
12957# FIXME: This hack should be removed a few years after 2.60.
12958ac_datarootdir_hack=; ac_datarootdir_seen=
12959ac_sed_dataroot='
12960/datarootdir/ {
12961 p
12962 q
12963}
12964/@datadir@/p
12965/@docdir@/p
12966/@infodir@/p
12967/@localedir@/p
12968/@mandir@/p'
12969case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12970*datarootdir*) ac_datarootdir_seen=yes;;
12971*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12973$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12974_ACEOF
12975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12976 ac_datarootdir_hack='
12977 s&@datadir@&$datadir&g
12978 s&@docdir@&$docdir&g
12979 s&@infodir@&$infodir&g
12980 s&@localedir@&$localedir&g
12981 s&@mandir@&$mandir&g
12982 s&\\\${datarootdir}&$datarootdir&g' ;;
12983esac
a8aea176 12984_ACEOF
5213506e
RW
12985
12986# Neutralize VPATH when `$srcdir' = `.'.
12987# Shell code in configure.ac might set extrasub.
12988# FIXME: do we really want to maintain this feature?
12989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12990ac_sed_extra="$ac_vpsub
a8aea176
NN
12991$extrasub
12992_ACEOF
5213506e 12993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a8aea176
NN
12994:t
12995/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
12996s|@configure_input@|$ac_sed_conf_input|;t t
12997s&@top_builddir@&$ac_top_builddir_sub&;t t
12998s&@top_build_prefix@&$ac_top_build_prefix&;t t
12999s&@srcdir@&$ac_srcdir&;t t
13000s&@abs_srcdir@&$ac_abs_srcdir&;t t
13001s&@top_srcdir@&$ac_top_srcdir&;t t
13002s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13003s&@builddir@&$ac_builddir&;t t
13004s&@abs_builddir@&$ac_abs_builddir&;t t
13005s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13006s&@INSTALL@&$ac_INSTALL&;t t
13007s&@MKDIR_P@&$ac_MKDIR_P&;t t
13008$ac_datarootdir_hack
13009"
22e05272
JM
13010eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13011 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
13012
13013test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
13014 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13015 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13016 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 13017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 13018which seems to be undefined. Please make sure it is defined" >&5
5213506e 13019$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 13020which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 13021
22e05272 13022 rm -f "$ac_tmp/stdin"
5213506e 13023 case $ac_file in
22e05272
JM
13024 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13025 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 13026 esac \
22e05272 13027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 13028 ;;
a8aea176 13029
a8aea176 13030
5213506e
RW
13031 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13032$as_echo "$as_me: executing $ac_file commands" >&6;}
13033 ;;
13034 esac
a8aea176
NN
13035
13036
5213506e
RW
13037 case $ac_file$ac_mode in
13038 "default-1":C)
076e5443
PB
13039# Only add multilib support code if we just rebuilt the top-level
13040# Makefile.
13041case " $CONFIG_FILES " in
13042 *" Makefile "*)
13043 ac_file=Makefile . ${multi_basedir}/config-ml.in
13044 ;;
13045esac ;;
5213506e 13046 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 13047 # Older Autoconf quotes --file arguments for eval, but not when files
5213506e
RW
13048 # are listed without --file. Let's play safe and only enable the eval
13049 # if we detect the quoting.
13050 case $CONFIG_FILES in
13051 *\'*) eval set x "$CONFIG_FILES" ;;
13052 *) set x $CONFIG_FILES ;;
13053 esac
13054 shift
13055 for mf
13056 do
13057 # Strip MF so we end up with the name of the file.
13058 mf=`echo "$mf" | sed -e 's/:.*$//'`
13059 # Check whether this is an Automake generated Makefile or not.
22e05272 13060 # We used to match only the files named 'Makefile.in', but
5213506e
RW
13061 # some people rename them; so instead we look at the file content.
13062 # Grep'ing the first line is not enough: some people post-process
13063 # each Makefile.in and add a new line on top of each file to say so.
13064 # Grep'ing the whole file is not good either: AIX grep has a line
13065 # limit of 2048, but all sed's we know have understand at least 4000.
13066 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13067 dirpart=`$as_dirname -- "$mf" ||
9fabf579
KC
13068$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13069 X"$mf" : 'X\(//\)[^/]' \| \
13070 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
13071 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13072$as_echo X"$mf" |
13073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13074 s//\1/
13075 q
13076 }
13077 /^X\(\/\/\)[^/].*/{
13078 s//\1/
13079 q
13080 }
13081 /^X\(\/\/\)$/{
13082 s//\1/
13083 q
13084 }
13085 /^X\(\/\).*/{
13086 s//\1/
13087 q
13088 }
13089 s/.*/./; q'`
13090 else
13091 continue
13092 fi
13093 # Extract the definition of DEPDIR, am__include, and am__quote
22e05272 13094 # from the Makefile without running 'make'.
5213506e
RW
13095 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13096 test -z "$DEPDIR" && continue
13097 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22e05272 13098 test -z "$am__include" && continue
5213506e 13099 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5213506e
RW
13100 # Find all dependency output files, they are included files with
13101 # $(DEPDIR) in their names. We invoke sed twice because it is the
13102 # simplest approach to changing $(DEPDIR) to its actual value in the
13103 # expansion.
13104 for file in `sed -n "
13105 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22e05272 13106 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
5213506e
RW
13107 # Make sure the directory exists.
13108 test -f "$dirpart/$file" && continue
13109 fdir=`$as_dirname -- "$file" ||
9fabf579
KC
13110$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13111 X"$file" : 'X\(//\)[^/]' \| \
13112 X"$file" : 'X\(//\)$' \| \
5213506e
RW
13113 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13114$as_echo X"$file" |
13115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13116 s//\1/
13117 q
13118 }
13119 /^X\(\/\/\)[^/].*/{
13120 s//\1/
13121 q
13122 }
13123 /^X\(\/\/\)$/{
13124 s//\1/
13125 q
13126 }
13127 /^X\(\/\).*/{
13128 s//\1/
13129 q
13130 }
13131 s/.*/./; q'`
13132 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13133 # echo "creating $dirpart/$file"
13134 echo '# dummy' > "$dirpart/$file"
9fabf579 13135 done
9fabf579 13136 done
5213506e 13137}
1cf3d07d 13138 ;;
5213506e 13139 "libtool":C)
1cf3d07d
SE
13140
13141 # See if we are running on zsh, and set the options which allow our
13142 # commands through without removal of \ escapes.
13143 if test -n "${ZSH_VERSION+set}" ; then
13144 setopt NO_GLOB_SUBST
13145 fi
13146
13147 cfgfile="${ofile}T"
13148 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13149 $RM "$cfgfile"
13150
13151 cat <<_LT_EOF >> "$cfgfile"
13152#! $SHELL
13153
13154# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18d98188 13155# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
13156# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13157# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13158#
18d98188 13159# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43e02a8a 13160# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18d98188 13161# Written by Gordon Matzigkeit, 1996
1cf3d07d 13162#
18d98188 13163# This file is part of GNU Libtool.
1cf3d07d 13164#
18d98188
PG
13165# GNU Libtool is free software; you can redistribute it and/or
13166# modify it under the terms of the GNU General Public License as
13167# published by the Free Software Foundation; either version 2 of
13168# the License, or (at your option) any later version.
1cf3d07d 13169#
18d98188
PG
13170# As a special exception to the GNU General Public License,
13171# if you distribute this file as part of a program or library that
13172# is built using GNU Libtool, you may include this file under the
13173# same distribution terms that you use for the rest of that program.
1cf3d07d 13174#
18d98188
PG
13175# GNU Libtool is distributed in the hope that it will be useful,
13176# but WITHOUT ANY WARRANTY; without even the implied warranty of
13177# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13178# GNU General Public License for more details.
1cf3d07d 13179#
18d98188
PG
13180# You should have received a copy of the GNU General Public License
13181# along with GNU Libtool; see the file COPYING. If not, a copy
13182# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13183# obtained by writing to the Free Software Foundation, Inc.,
13184# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
13185
13186
13187# The names of the tagged configurations supported by this script.
13188available_tags=""
13189
13190# ### BEGIN LIBTOOL CONFIG
13191
13192# Which release of libtool.m4 was used?
13193macro_version=$macro_version
13194macro_revision=$macro_revision
13195
13196# Whether or not to build shared libraries.
13197build_libtool_libs=$enable_shared
13198
13199# Whether or not to build static libraries.
13200build_old_libs=$enable_static
13201
13202# What type of objects to build.
13203pic_mode=$pic_mode
13204
13205# Whether or not to optimize for fast installation.
13206fast_install=$enable_fast_install
13207
43e02a8a
RW
13208# Shell to use when invoking shell scripts.
13209SHELL=$lt_SHELL
13210
13211# An echo program that protects backslashes.
13212ECHO=$lt_ECHO
13213
1cf3d07d
SE
13214# The host system.
13215host_alias=$host_alias
13216host=$host
13217host_os=$host_os
13218
13219# The build system.
13220build_alias=$build_alias
13221build=$build
13222build_os=$build_os
13223
13224# A sed program that does not truncate output.
13225SED=$lt_SED
13226
13227# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13228Xsed="\$SED -e 1s/^X//"
13229
13230# A grep program that handles long lines.
13231GREP=$lt_GREP
13232
13233# An ERE matcher.
13234EGREP=$lt_EGREP
13235
13236# A literal string matcher.
13237FGREP=$lt_FGREP
13238
13239# A BSD- or MS-compatible name lister.
13240NM=$lt_NM
13241
13242# Whether we need soft or hard links.
13243LN_S=$lt_LN_S
13244
13245# What is the maximum length of a command?
13246max_cmd_len=$max_cmd_len
13247
13248# Object file suffix (normally "o").
13249objext=$ac_objext
13250
13251# Executable file suffix (normally "").
13252exeext=$exeext
13253
13254# whether the shell understands "unset".
13255lt_unset=$lt_unset
13256
13257# turn spaces into newlines.
13258SP2NL=$lt_lt_SP2NL
13259
13260# turn newlines into spaces.
13261NL2SP=$lt_lt_NL2SP
13262
18d98188
PG
13263# An object symbol dumper.
13264OBJDUMP=$lt_OBJDUMP
13265
1cf3d07d
SE
13266# Method to check whether dependent libraries are shared objects.
13267deplibs_check_method=$lt_deplibs_check_method
13268
13269# Command to use when deplibs_check_method == "file_magic".
13270file_magic_cmd=$lt_file_magic_cmd
13271
13272# The archiver.
13273AR=$lt_AR
13274AR_FLAGS=$lt_AR_FLAGS
13275
13276# A symbol stripping program.
13277STRIP=$lt_STRIP
13278
13279# Commands used to install an old-style archive.
13280RANLIB=$lt_RANLIB
13281old_postinstall_cmds=$lt_old_postinstall_cmds
13282old_postuninstall_cmds=$lt_old_postuninstall_cmds
13283
43e02a8a
RW
13284# Whether to use a lock for old archive extraction.
13285lock_old_archive_extraction=$lock_old_archive_extraction
13286
1cf3d07d
SE
13287# A C compiler.
13288LTCC=$lt_CC
13289
13290# LTCC compiler flags.
13291LTCFLAGS=$lt_CFLAGS
13292
13293# Take the output of nm and produce a listing of raw symbols and C names.
13294global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13295
13296# Transform the output of nm in a proper C declaration.
13297global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13298
13299# Transform the output of nm in a C name address pair.
13300global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13301
18d98188
PG
13302# Transform the output of nm in a C name address pair when lib prefix is needed.
13303global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13304
1cf3d07d
SE
13305# The name of the directory that contains temporary libtool files.
13306objdir=$objdir
13307
1cf3d07d
SE
13308# Used to examine libraries when file_magic_cmd begins with "file".
13309MAGIC_CMD=$MAGIC_CMD
13310
13311# Must we lock files when doing compilation?
13312need_locks=$lt_need_locks
13313
18d98188
PG
13314# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13315DSYMUTIL=$lt_DSYMUTIL
13316
13317# Tool to change global to local symbols on Mac OS X.
13318NMEDIT=$lt_NMEDIT
13319
13320# Tool to manipulate fat objects and archives on Mac OS X.
13321LIPO=$lt_LIPO
13322
13323# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13324OTOOL=$lt_OTOOL
13325
13326# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13327OTOOL64=$lt_OTOOL64
13328
1cf3d07d
SE
13329# Old archive suffix (normally "a").
13330libext=$libext
13331
13332# Shared library suffix (normally ".so").
13333shrext_cmds=$lt_shrext_cmds
13334
13335# The commands to extract the exported symbol list from a shared archive.
13336extract_expsyms_cmds=$lt_extract_expsyms_cmds
13337
13338# Variables whose values should be saved in libtool wrapper scripts and
13339# restored at link time.
13340variables_saved_for_relink=$lt_variables_saved_for_relink
13341
13342# Do we need the "lib" prefix for modules?
13343need_lib_prefix=$need_lib_prefix
13344
13345# Do we need a version for libraries?
13346need_version=$need_version
13347
13348# Library versioning type.
13349version_type=$version_type
13350
13351# Shared library runtime path variable.
13352runpath_var=$runpath_var
13353
13354# Shared library path variable.
13355shlibpath_var=$shlibpath_var
13356
13357# Is shlibpath searched before the hard-coded library search path?
13358shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13359
13360# Format of library name prefix.
13361libname_spec=$lt_libname_spec
13362
13363# List of archive names. First name is the real one, the rest are links.
13364# The last name is the one that the linker finds with -lNAME
13365library_names_spec=$lt_library_names_spec
13366
13367# The coded name of the library, if different from the real name.
13368soname_spec=$lt_soname_spec
13369
43e02a8a
RW
13370# Permission mode override for installation of shared libraries.
13371install_override_mode=$lt_install_override_mode
13372
1cf3d07d
SE
13373# Command to use after installation of a shared archive.
13374postinstall_cmds=$lt_postinstall_cmds
13375
13376# Command to use after uninstallation of a shared archive.
13377postuninstall_cmds=$lt_postuninstall_cmds
13378
13379# Commands used to finish a libtool library installation in a directory.
13380finish_cmds=$lt_finish_cmds
13381
13382# As "finish_cmds", except a single script fragment to be evaled but
13383# not shown.
13384finish_eval=$lt_finish_eval
13385
13386# Whether we should hardcode library paths into libraries.
13387hardcode_into_libs=$hardcode_into_libs
13388
13389# Compile-time system search path for libraries.
13390sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13391
13392# Run-time system search path for libraries.
13393sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13394
13395# Whether dlopen is supported.
13396dlopen_support=$enable_dlopen
13397
13398# Whether dlopen of programs is supported.
13399dlopen_self=$enable_dlopen_self
13400
13401# Whether dlopen of statically linked programs is supported.
13402dlopen_self_static=$enable_dlopen_self_static
13403
13404# Commands to strip libraries.
13405old_striplib=$lt_old_striplib
13406striplib=$lt_striplib
13407
13408
13409# The linker used to build libraries.
13410LD=$lt_LD
13411
43e02a8a
RW
13412# How to create reloadable object files.
13413reload_flag=$lt_reload_flag
13414reload_cmds=$lt_reload_cmds
13415
1cf3d07d
SE
13416# Commands used to build an old-style archive.
13417old_archive_cmds=$lt_old_archive_cmds
13418
13419# A language specific compiler.
13420CC=$lt_compiler
13421
13422# Is the compiler the GNU compiler?
13423with_gcc=$GCC
13424
13425# Compiler flag to turn off builtin functions.
13426no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13427
13428# How to pass a linker flag through the compiler.
13429wl=$lt_lt_prog_compiler_wl
13430
13431# Additional compiler flags for building library objects.
13432pic_flag=$lt_lt_prog_compiler_pic
13433
13434# Compiler flag to prevent dynamic linking.
13435link_static_flag=$lt_lt_prog_compiler_static
13436
13437# Does compiler simultaneously support -c and -o options?
13438compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13439
13440# Whether or not to add -lc for building shared libraries.
13441build_libtool_need_lc=$archive_cmds_need_lc
13442
13443# Whether or not to disallow shared libs when runtime libs are static.
13444allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13445
13446# Compiler flag to allow reflexive dlopens.
13447export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13448
13449# Compiler flag to generate shared objects directly from archives.
13450whole_archive_flag_spec=$lt_whole_archive_flag_spec
13451
13452# Whether the compiler copes with passing no objects directly.
13453compiler_needs_object=$lt_compiler_needs_object
13454
13455# Create an old-style archive from a shared archive.
13456old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13457
13458# Create a temporary old-style archive to link instead of a shared archive.
13459old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13460
13461# Commands used to build a shared archive.
13462archive_cmds=$lt_archive_cmds
13463archive_expsym_cmds=$lt_archive_expsym_cmds
13464
13465# Commands used to build a loadable module if different from building
13466# a shared archive.
13467module_cmds=$lt_module_cmds
13468module_expsym_cmds=$lt_module_expsym_cmds
13469
13470# Whether we are building with GNU ld or not.
13471with_gnu_ld=$lt_with_gnu_ld
13472
13473# Flag that allows shared libraries with undefined symbols to be built.
13474allow_undefined_flag=$lt_allow_undefined_flag
13475
13476# Flag that enforces no undefined symbols.
13477no_undefined_flag=$lt_no_undefined_flag
13478
13479# Flag to hardcode \$libdir into a binary during linking.
13480# This must work even if \$libdir does not exist
13481hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13482
13483# If ld is used when linking, flag to hardcode \$libdir into a binary
13484# during linking. This must work even if \$libdir does not exist.
13485hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13486
13487# Whether we need a single "-rpath" flag with a separated argument.
13488hardcode_libdir_separator=$lt_hardcode_libdir_separator
13489
13490# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13491# DIR into the resulting binary.
13492hardcode_direct=$hardcode_direct
13493
13494# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13495# DIR into the resulting binary and the resulting library dependency is
13496# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13497# library is relocated.
13498hardcode_direct_absolute=$hardcode_direct_absolute
13499
13500# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13501# into the resulting binary.
13502hardcode_minus_L=$hardcode_minus_L
13503
13504# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13505# into the resulting binary.
13506hardcode_shlibpath_var=$hardcode_shlibpath_var
13507
13508# Set to "yes" if building a shared library automatically hardcodes DIR
13509# into the library and all subsequent libraries and executables linked
13510# against it.
13511hardcode_automatic=$hardcode_automatic
13512
13513# Set to yes if linker adds runtime paths of dependent libraries
13514# to runtime path list.
13515inherit_rpath=$inherit_rpath
13516
13517# Whether libtool must link a program against all its dependency libraries.
13518link_all_deplibs=$link_all_deplibs
13519
13520# Fix the shell variable \$srcfile for the compiler.
13521fix_srcfile_path=$lt_fix_srcfile_path
13522
13523# Set to "yes" if exported symbols are required.
13524always_export_symbols=$always_export_symbols
13525
13526# The commands to list exported symbols.
13527export_symbols_cmds=$lt_export_symbols_cmds
13528
13529# Symbols that should not be listed in the preloaded symbols.
13530exclude_expsyms=$lt_exclude_expsyms
13531
13532# Symbols that must always be exported.
13533include_expsyms=$lt_include_expsyms
13534
13535# Commands necessary for linking programs (against libraries) with templates.
13536prelink_cmds=$lt_prelink_cmds
13537
13538# Specify filename containing input files.
13539file_list_spec=$lt_file_list_spec
13540
13541# How to hardcode a shared library path into an executable.
13542hardcode_action=$hardcode_action
13543
13544# ### END LIBTOOL CONFIG
13545
13546_LT_EOF
13547
13548 case $host_os in
13549 aix3*)
13550 cat <<\_LT_EOF >> "$cfgfile"
13551# AIX sometimes has problems with the GCC collect2 program. For some
13552# reason, if we set the COLLECT_NAMES environment variable, the problems
13553# vanish in a puff of smoke.
13554if test "X${COLLECT_NAMES+set}" != Xset; then
13555 COLLECT_NAMES=
13556 export COLLECT_NAMES
13557fi
13558_LT_EOF
13559 ;;
13560 esac
13561
13562
13563ltmain="$ac_aux_dir/ltmain.sh"
13564
13565
13566 # We use sed instead of cat because bash on DJGPP gets confused if
13567 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13568 # text mode, it properly converts lines to CR/LF. This bash problem
13569 # is reportedly fixed, but why not run on old versions too?
13570 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13571 || (rm -f "$cfgfile"; exit 1)
13572
13573 case $xsi_shell in
13574 yes)
13575 cat << \_LT_EOF >> "$cfgfile"
18d98188 13576
1cf3d07d
SE
13577# func_dirname file append nondir_replacement
13578# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13579# otherwise set result to NONDIR_REPLACEMENT.
13580func_dirname ()
13581{
13582 case ${1} in
13583 */*) func_dirname_result="${1%/*}${2}" ;;
13584 * ) func_dirname_result="${3}" ;;
13585 esac
13586}
13587
13588# func_basename file
13589func_basename ()
13590{
13591 func_basename_result="${1##*/}"
13592}
13593
18d98188
PG
13594# func_dirname_and_basename file append nondir_replacement
13595# perform func_basename and func_dirname in a single function
13596# call:
13597# dirname: Compute the dirname of FILE. If nonempty,
13598# add APPEND to the result, otherwise set result
13599# to NONDIR_REPLACEMENT.
13600# value returned in "$func_dirname_result"
13601# basename: Compute filename of FILE.
13602# value retuned in "$func_basename_result"
13603# Implementation must be kept synchronized with func_dirname
13604# and func_basename. For efficiency, we do not delegate to
13605# those functions but instead duplicate the functionality here.
13606func_dirname_and_basename ()
13607{
13608 case ${1} in
13609 */*) func_dirname_result="${1%/*}${2}" ;;
13610 * ) func_dirname_result="${3}" ;;
13611 esac
13612 func_basename_result="${1##*/}"
13613}
13614
1cf3d07d
SE
13615# func_stripname prefix suffix name
13616# strip PREFIX and SUFFIX off of NAME.
13617# PREFIX and SUFFIX must not contain globbing or regex special
13618# characters, hashes, percent signs, but SUFFIX may contain a leading
13619# dot (in which case that matches only a dot).
13620func_stripname ()
13621{
13622 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13623 # positional parameters, so assign one to ordinary parameter first.
13624 func_stripname_result=${3}
13625 func_stripname_result=${func_stripname_result#"${1}"}
13626 func_stripname_result=${func_stripname_result%"${2}"}
13627}
13628
13629# func_opt_split
13630func_opt_split ()
13631{
13632 func_opt_split_opt=${1%%=*}
13633 func_opt_split_arg=${1#*=}
13634}
13635
13636# func_lo2o object
13637func_lo2o ()
13638{
13639 case ${1} in
13640 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13641 *) func_lo2o_result=${1} ;;
13642 esac
13643}
18d98188
PG
13644
13645# func_xform libobj-or-source
13646func_xform ()
13647{
13648 func_xform_result=${1%.*}.lo
13649}
13650
13651# func_arith arithmetic-term...
13652func_arith ()
13653{
13654 func_arith_result=$(( $* ))
13655}
13656
13657# func_len string
13658# STRING may not start with a hyphen.
13659func_len ()
13660{
13661 func_len_result=${#1}
13662}
13663
1cf3d07d
SE
13664_LT_EOF
13665 ;;
13666 *) # Bourne compatible functions.
13667 cat << \_LT_EOF >> "$cfgfile"
18d98188 13668
1cf3d07d
SE
13669# func_dirname file append nondir_replacement
13670# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13671# otherwise set result to NONDIR_REPLACEMENT.
13672func_dirname ()
13673{
13674 # Extract subdirectory from the argument.
43e02a8a 13675 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1cf3d07d
SE
13676 if test "X$func_dirname_result" = "X${1}"; then
13677 func_dirname_result="${3}"
13678 else
13679 func_dirname_result="$func_dirname_result${2}"
13680 fi
13681}
13682
13683# func_basename file
13684func_basename ()
13685{
43e02a8a 13686 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1cf3d07d
SE
13687}
13688
18d98188 13689
1cf3d07d
SE
13690# func_stripname prefix suffix name
13691# strip PREFIX and SUFFIX off of NAME.
13692# PREFIX and SUFFIX must not contain globbing or regex special
13693# characters, hashes, percent signs, but SUFFIX may contain a leading
13694# dot (in which case that matches only a dot).
13695# func_strip_suffix prefix name
13696func_stripname ()
13697{
13698 case ${2} in
43e02a8a
RW
13699 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13700 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1cf3d07d
SE
13701 esac
13702}
13703
13704# sed scripts:
13705my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13706my_sed_long_arg='1s/^-[^=]*=//'
13707
13708# func_opt_split
13709func_opt_split ()
13710{
43e02a8a
RW
13711 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13712 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1cf3d07d
SE
13713}
13714
13715# func_lo2o object
13716func_lo2o ()
13717{
43e02a8a 13718 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1cf3d07d 13719}
18d98188
PG
13720
13721# func_xform libobj-or-source
13722func_xform ()
13723{
43e02a8a 13724 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18d98188
PG
13725}
13726
13727# func_arith arithmetic-term...
13728func_arith ()
13729{
13730 func_arith_result=`expr "$@"`
13731}
13732
13733# func_len string
13734# STRING may not start with a hyphen.
13735func_len ()
13736{
13737 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13738}
13739
1cf3d07d
SE
13740_LT_EOF
13741esac
13742
13743case $lt_shell_append in
13744 yes)
13745 cat << \_LT_EOF >> "$cfgfile"
13746
13747# func_append var value
13748# Append VALUE to the end of shell variable VAR.
13749func_append ()
13750{
13751 eval "$1+=\$2"
13752}
13753_LT_EOF
13754 ;;
13755 *)
13756 cat << \_LT_EOF >> "$cfgfile"
13757
13758# func_append var value
13759# Append VALUE to the end of shell variable VAR.
13760func_append ()
13761{
13762 eval "$1=\$$1\$2"
13763}
18d98188 13764
1cf3d07d
SE
13765_LT_EOF
13766 ;;
13767 esac
13768
13769
13770 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13771 || (rm -f "$cfgfile"; exit 1)
13772
13773 mv -f "$cfgfile" "$ofile" ||
13774 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13775 chmod +x "$ofile"
13776
9fabf579 13777 ;;
5213506e 13778
a8aea176 13779 esac
5213506e 13780done # for ac_tag
a8aea176 13781
a8aea176 13782
5213506e 13783as_fn_exit 0
a8aea176 13784_ACEOF
a8aea176
NN
13785ac_clean_files=$ac_clean_files_save
13786
5213506e 13787test $ac_write_fail = 0 ||
22e05272 13788 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 13789
a8aea176
NN
13790
13791# configure is writing to config.log, and then calls config.status.
13792# config.status does its own redirection, appending to config.log.
13793# Unfortunately, on DOS this fails, as config.log is still kept open
13794# by configure, so config.status won't be able to write to it; its
13795# output is simply discarded. So we exec the FD to /dev/null,
13796# effectively closing config.log, so it can be properly (re)opened and
13797# appended to by config.status. When coming back to configure, we
13798# need to make the FD available again.
13799if test "$no_create" != yes; then
13800 ac_cs_success=:
13801 ac_config_status_args=
13802 test "$silent" = yes &&
13803 ac_config_status_args="$ac_config_status_args --quiet"
13804 exec 5>/dev/null
13805 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13806 exec 5>>config.log
13807 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13808 # would make configure fail if this is the last instruction.
22e05272 13809 $ac_cs_success || as_fn_exit 1
5213506e
RW
13810fi
13811if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13813$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
a8aea176 13814fi
c45f211e 13815