]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m68hc11/configure
sim: switch to AC_CHECK_FUNCS_ONCE & merge a little
[thirdparty/binutils-gdb.git] / sim / m68hc11 / configure
CommitLineData
5d031c16 1#! /bin/sh
b7026657 2# Guess values for system-dependent variables and create Makefiles.
d0ac1c44
SM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
b7026657 8#
b7026657
AC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
5d031c16 14
81ecdfbb
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 :
b7026657
AC
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
b7026657 31fi
5d031c16 32
81ecdfbb
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 }
b7026657 79fi
5d031c16
AC
80
81
81ecdfbb
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.
d0ac1c44 90as_myself=
81ecdfbb
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
b7026657
AC
122PS1='$ '
123PS2='> '
124PS4='+ '
5d031c16 125
b7026657 126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d0ac1c44
SM
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;}
81ecdfbb
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
d0ac1c44
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
81ecdfbb
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
6bb11ab3
L
199test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
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
b7026657 219do
81ecdfbb
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 :
d0ac1c44
SM
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
81ecdfbb
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."
b7026657 274 else
81ecdfbb
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."
b7026657 279 fi
81ecdfbb
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"
d0ac1c44 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
364
365
366} # as_fn_mkdir_p
d0ac1c44
SM
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
81ecdfbb
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
409
410
d0ac1c44
SM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
81ecdfbb
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
d0ac1c44 415# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
416as_fn_error ()
417{
d0ac1c44
SM
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
81ecdfbb 422 fi
d0ac1c44 423 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
424 as_fn_exit $as_status
425} # as_fn_error
5d031c16 426
81ecdfbb
RW
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
429 as_expr=expr
430else
431 as_expr=false
432fi
5d031c16 433
81ecdfbb 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
435 as_basename=basename
436else
437 as_basename=false
438fi
5d031c16 439
81ecdfbb
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
5d031c16 445
81ecdfbb 446as_me=`$as_basename -- "$0" ||
b7026657
AC
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
81ecdfbb
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'`
5d031c16 464
b7026657
AC
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
5d031c16 471
5d031c16 472
81ecdfbb
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 |
b7026657 482 sed '
81ecdfbb
RW
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
b7026657 487 N
81ecdfbb
RW
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 490 t loop
81ecdfbb 491 s/-\n.*//
b7026657 492 ' >$as_me.lineno &&
81ecdfbb
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; }
b7026657 495
d0ac1c44
SM
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
b7026657
AC
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
81ecdfbb
RW
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
b7026657
AC
504 # Exit status is that of the last command.
505 exit
506}
5d031c16 507
81ecdfbb
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';;
b7026657 519esac
5d031c16 520
81ecdfbb
RW
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
b7026657 524else
81ecdfbb
RW
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
b7026657 527fi
81ecdfbb
RW
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 530 as_ln_s='ln -s'
81ecdfbb
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.
d0ac1c44 534 # In both cases, we have to default to `cp -pR'.
81ecdfbb 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 536 as_ln_s='cp -pR'
81ecdfbb
RW
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
d0ac1c44 540 as_ln_s='cp -pR'
b7026657 541 fi
b7026657 542else
d0ac1c44 543 as_ln_s='cp -pR'
b7026657 544fi
81ecdfbb
RW
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
5d031c16 547
b7026657 548if mkdir -p . 2>/dev/null; then
81ecdfbb 549 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
5d031c16 554
d0ac1c44
SM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
5d031c16 557
b7026657
AC
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'"
5d031c16 560
b7026657
AC
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5d031c16 563
6bb11ab3
L
564SHELL=${CONFIG_SHELL-/bin/sh}
565
5d031c16 566
d0ac1c44
SM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
5d031c16 569
b7026657 570# Name of the host.
d0ac1c44 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b7026657
AC
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5d031c16 574
5d031c16 575#
b7026657 576# Initializations.
5d031c16 577#
b7026657 578ac_default_prefix=/usr/local
81ecdfbb 579ac_clean_files=
b7026657 580ac_config_libobj_dir=.
81ecdfbb 581LIBOBJS=
b7026657
AC
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
b7026657
AC
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
81ecdfbb 593PACKAGE_URL=
b7026657
AC
594
595ac_unique_file="Makefile.in"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
81ecdfbb 599#ifdef HAVE_SYS_TYPES_H
b7026657
AC
600# include <sys/types.h>
601#endif
81ecdfbb 602#ifdef HAVE_SYS_STAT_H
b7026657
AC
603# include <sys/stat.h>
604#endif
81ecdfbb 605#ifdef STDC_HEADERS
b7026657
AC
606# include <stdlib.h>
607# include <stddef.h>
608#else
81ecdfbb 609# ifdef HAVE_STDLIB_H
b7026657
AC
610# include <stdlib.h>
611# endif
612#endif
81ecdfbb
RW
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b7026657
AC
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
81ecdfbb 619#ifdef HAVE_STRINGS_H
b7026657
AC
620# include <strings.h>
621#endif
81ecdfbb 622#ifdef HAVE_INTTYPES_H
b7026657 623# include <inttypes.h>
b7026657 624#endif
81ecdfbb
RW
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
b7026657
AC
629# include <unistd.h>
630#endif"
5d031c16 631
37e9f182 632ac_func_list=
81ecdfbb
RW
633ac_subst_vars='LTLIBOBJS
634LIBOBJS
760b3e8b
MF
635sim_reserved_bits
636sim_default_model
637sim_scache
638sim_float
639sim_bitsize
81ecdfbb 640cgen_breaks
81ecdfbb
RW
641REPORT_BUGS_TEXI
642REPORT_BUGS_TO
643PKGVERSION
81ecdfbb 644MAINT
31e6ad7d
MF
645MAINTAINER_MODE_FALSE
646MAINTAINER_MODE_TRUE
6bb11ab3
L
647lt_cv_dlopen_libs
648OTOOL64
649OTOOL
650LIPO
651NMEDIT
652DSYMUTIL
653AWK
654STRIP
655OBJDUMP
656LN_S
657NM
658ac_ct_DUMPBIN
659DUMPBIN
660LD
661FGREP
662SED
663LIBTOOL
664PLUGINS_FALSE
665PLUGINS_TRUE
aadc9410
MF
666zlibinc
667zlibdir
81ecdfbb
RW
668CATOBJEXT
669GENCAT
670INSTOBJEXT
671DATADIRNAME
672CATALOGS
673POSUB
674GMSGFMT
675XGETTEXT
676INCINTL
677LIBINTL_DEP
678LIBINTL
679USE_NLS
db2e4d67
MF
680GMAKE_FALSE
681GMAKE_TRUE
682MAKE
683CCDEPMODE
684DEPDIR
685am__leading_dot
5f3ef9d0 686PACKAGE
46f900c0 687C_DIALECT
81ecdfbb
RW
688RANLIB
689AR
c2783492 690LDFLAGS_FOR_BUILD
c25ea03d 691CFLAGS_FOR_BUILD
81ecdfbb
RW
692CC_FOR_BUILD
693INSTALL_DATA
694INSTALL_SCRIPT
695INSTALL_PROGRAM
2232061b
MF
696EGREP
697GREP
c2783492
MF
698CPP
699OBJEXT
700EXEEXT
701ac_ct_CC
702CPPFLAGS
703LDFLAGS
704CFLAGS
705CC
81ecdfbb
RW
706target_os
707target_vendor
708target_cpu
709target
710host_os
711host_vendor
712host_cpu
713host
714build_os
715build_vendor
716build_cpu
717build
81ecdfbb
RW
718target_alias
719host_alias
720build_alias
721LIBS
722ECHO_T
723ECHO_N
724ECHO_C
725DEFS
726mandir
727localedir
728libdir
729psdir
730pdfdir
731dvidir
732htmldir
733infodir
734docdir
735oldincludedir
736includedir
737localstatedir
738sharedstatedir
739sysconfdir
740datadir
741datarootdir
742libexecdir
743sbindir
744bindir
745program_transform_name
746prefix
747exec_prefix
748PACKAGE_URL
749PACKAGE_BUGREPORT
750PACKAGE_STRING
751PACKAGE_VERSION
752PACKAGE_TARNAME
753PACKAGE_NAME
754PATH_SEPARATOR
136da8cd
MF
755SHELL
756WERROR_CFLAGS
757WARN_CFLAGS
136da8cd
MF
758sim_inline
759sim_hw
760sim_hw_objs
761sim_hw_cflags
136da8cd 762sim_endian
136da8cd 763sim_alignment'
b7026657 764ac_subst_files=''
81ecdfbb
RW
765ac_user_opts='
766enable_option_checking
aadc9410 767with_system_zlib
6bb11ab3
L
768enable_plugins
769enable_shared
770enable_static
771with_pic
772enable_fast_install
773with_gnu_ld
774enable_libtool_lock
81ecdfbb 775enable_maintainer_mode
81ecdfbb
RW
776enable_sim_debug
777enable_sim_stdio
778enable_sim_trace
779enable_sim_profile
35656e95 780enable_sim_assert
16f7876d 781enable_sim_environment
347fe5bb 782enable_sim_inline
81ecdfbb
RW
783with_pkgversion
784with_bugurl
eca4255a 785enable_sim_endian
81ecdfbb 786enable_sim_alignment
2232061b 787enable_werror
81ecdfbb
RW
788enable_build_warnings
789enable_sim_build_warnings
790enable_sim_hardware
791'
792 ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798LIBS
799CPPFLAGS
800CPP'
801
5d031c16
AC
802
803# Initialize some variables set by options.
b7026657
AC
804ac_init_help=
805ac_init_version=false
81ecdfbb
RW
806ac_unrecognized_opts=
807ac_unrecognized_sep=
5d031c16
AC
808# The variables have the same names as the options, with
809# dashes changed to underlines.
b7026657 810cache_file=/dev/null
5d031c16 811exec_prefix=NONE
5d031c16 812no_create=
5d031c16
AC
813no_recursion=
814prefix=NONE
815program_prefix=NONE
816program_suffix=NONE
817program_transform_name=s,x,x,
818silent=
819site=
5d031c16 820srcdir=
5d031c16
AC
821verbose=
822x_includes=NONE
823x_libraries=NONE
b7026657
AC
824
825# Installation directory options.
826# These are left unexpanded so users can "make install exec_prefix=/foo"
827# and all the variables that are supposed to be based on exec_prefix
828# by default will actually change.
829# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 830# (The list follows the same order as the GNU Coding Standards.)
5d031c16
AC
831bindir='${exec_prefix}/bin'
832sbindir='${exec_prefix}/sbin'
833libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
834datarootdir='${prefix}/share'
835datadir='${datarootdir}'
5d031c16
AC
836sysconfdir='${prefix}/etc'
837sharedstatedir='${prefix}/com'
838localstatedir='${prefix}/var'
5d031c16
AC
839includedir='${prefix}/include'
840oldincludedir='/usr/include'
81ecdfbb
RW
841docdir='${datarootdir}/doc/${PACKAGE}'
842infodir='${datarootdir}/info'
843htmldir='${docdir}'
844dvidir='${docdir}'
845pdfdir='${docdir}'
846psdir='${docdir}'
847libdir='${exec_prefix}/lib'
848localedir='${datarootdir}/locale'
849mandir='${datarootdir}/man'
5d031c16 850
5d031c16 851ac_prev=
81ecdfbb 852ac_dashdash=
5d031c16
AC
853for ac_option
854do
5d031c16
AC
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
81ecdfbb 857 eval $ac_prev=\$ac_option
5d031c16
AC
858 ac_prev=
859 continue
860 fi
861
81ecdfbb 862 case $ac_option in
d0ac1c44
SM
863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 *=) ac_optarg= ;;
865 *) ac_optarg=yes ;;
81ecdfbb 866 esac
5d031c16
AC
867
868 # Accept the important Cygnus configure options, so we can diagnose typos.
869
81ecdfbb
RW
870 case $ac_dashdash$ac_option in
871 --)
872 ac_dashdash=yes ;;
5d031c16
AC
873
874 -bindir | --bindir | --bindi | --bind | --bin | --bi)
875 ac_prev=bindir ;;
876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 877 bindir=$ac_optarg ;;
5d031c16
AC
878
879 -build | --build | --buil | --bui | --bu)
b7026657 880 ac_prev=build_alias ;;
5d031c16 881 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 882 build_alias=$ac_optarg ;;
5d031c16
AC
883
884 -cache-file | --cache-file | --cache-fil | --cache-fi \
885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886 ac_prev=cache_file ;;
887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
889 cache_file=$ac_optarg ;;
890
891 --config-cache | -C)
892 cache_file=config.cache ;;
5d031c16 893
81ecdfbb 894 -datadir | --datadir | --datadi | --datad)
5d031c16 895 ac_prev=datadir ;;
81ecdfbb 896 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 897 datadir=$ac_optarg ;;
5d031c16 898
81ecdfbb
RW
899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900 | --dataroo | --dataro | --datar)
901 ac_prev=datarootdir ;;
902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904 datarootdir=$ac_optarg ;;
905
5d031c16 906 -disable-* | --disable-*)
81ecdfbb 907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
5d031c16 908 # Reject names that are not valid shell variable names.
81ecdfbb 909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 910 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915"enable_$ac_useropt"
916"*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=no ;;
921
922 -docdir | --docdir | --docdi | --doc | --do)
923 ac_prev=docdir ;;
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925 docdir=$ac_optarg ;;
926
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928 ac_prev=dvidir ;;
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930 dvidir=$ac_optarg ;;
5d031c16
AC
931
932 -enable-* | --enable-*)
81ecdfbb 933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
5d031c16 934 # Reject names that are not valid shell variable names.
81ecdfbb 935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 936 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
940 *"
941"enable_$ac_useropt"
942"*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
5d031c16 945 esac
81ecdfbb 946 eval enable_$ac_useropt=\$ac_optarg ;;
5d031c16
AC
947
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
b7026657 955 exec_prefix=$ac_optarg ;;
5d031c16
AC
956
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
960
b7026657
AC
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
5d031c16
AC
967
968 -host | --host | --hos | --ho)
b7026657 969 ac_prev=host_alias ;;
5d031c16 970 -host=* | --host=* | --hos=* | --ho=*)
b7026657 971 host_alias=$ac_optarg ;;
5d031c16 972
81ecdfbb
RW
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
978
5d031c16
AC
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 984 includedir=$ac_optarg ;;
5d031c16
AC
985
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 989 infodir=$ac_optarg ;;
5d031c16
AC
990
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 994 libdir=$ac_optarg ;;
5d031c16
AC
995
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
b7026657 1001 libexecdir=$ac_optarg ;;
5d031c16 1002
81ecdfbb
RW
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1007
5d031c16 1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1009 | --localstate | --localstat | --localsta | --localst | --locals)
5d031c16
AC
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 1013 localstatedir=$ac_optarg ;;
5d031c16
AC
1014
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 1018 mandir=$ac_optarg ;;
5d031c16
AC
1019
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1023
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 1025 | --no-cr | --no-c | -n)
5d031c16
AC
1026 no_create=yes ;;
1027
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1031
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 1039 oldincludedir=$ac_optarg ;;
5d031c16
AC
1040
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 1044 prefix=$ac_optarg ;;
5d031c16
AC
1045
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 1051 program_prefix=$ac_optarg ;;
5d031c16
AC
1052
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 1058 program_suffix=$ac_optarg ;;
5d031c16
AC
1059
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 1075 program_transform_name=$ac_optarg ;;
5d031c16 1076
81ecdfbb
RW
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1081
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1086
5d031c16
AC
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1090
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 ac_prev=sbindir ;;
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 | --sbi=* | --sb=*)
b7026657 1095 sbindir=$ac_optarg ;;
5d031c16
AC
1096
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1100 | --sha | --sh)
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 | --sha=* | --sh=*)
b7026657 1106 sharedstatedir=$ac_optarg ;;
5d031c16
AC
1107
1108 -site | --site | --sit)
1109 ac_prev=site ;;
1110 -site=* | --site=* | --sit=*)
b7026657 1111 site=$ac_optarg ;;
5d031c16
AC
1112
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 ac_prev=srcdir ;;
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1116 srcdir=$ac_optarg ;;
5d031c16
AC
1117
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1123 sysconfdir=$ac_optarg ;;
5d031c16
AC
1124
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1126 ac_prev=target_alias ;;
5d031c16 1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1128 target_alias=$ac_optarg ;;
5d031c16
AC
1129
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 verbose=yes ;;
1132
b7026657
AC
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
5d031c16
AC
1135
1136 -with-* | --with-*)
81ecdfbb 1137 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
5d031c16 1138 # Reject names that are not valid shell variable names.
81ecdfbb 1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1140 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1144 *"
1145"with_$ac_useropt"
1146"*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
5d031c16 1149 esac
81ecdfbb 1150 eval with_$ac_useropt=\$ac_optarg ;;
5d031c16
AC
1151
1152 -without-* | --without-*)
81ecdfbb 1153 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
5d031c16 1154 # Reject names that are not valid shell variable names.
81ecdfbb 1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1156 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161"with_$ac_useropt"
1162"*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=no ;;
5d031c16
AC
1167
1168 --x)
1169 # Obsolete; use --with-x.
1170 with_x=yes ;;
1171
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1177 x_includes=$ac_optarg ;;
5d031c16
AC
1178
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1184 x_libraries=$ac_optarg ;;
5d031c16 1185
d0ac1c44
SM
1186 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1187Try \`$0 --help' for more information"
5d031c16
AC
1188 ;;
1189
b7026657
AC
1190 *=*)
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1193 case $ac_envvar in #(
1194 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1195 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1196 esac
1197 eval $ac_envvar=\$ac_optarg
b7026657
AC
1198 export $ac_envvar ;;
1199
5d031c16 1200 *)
b7026657 1201 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1202 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1204 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1205 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
5d031c16
AC
1206 ;;
1207
1208 esac
1209done
1210
1211if test -n "$ac_prev"; then
b7026657 1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1213 as_fn_error $? "missing argument to $ac_option"
5d031c16 1214fi
5d031c16 1215
81ecdfbb
RW
1216if test -n "$ac_unrecognized_opts"; then
1217 case $enable_option_checking in
1218 no) ;;
d0ac1c44 1219 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1220 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b7026657 1221 esac
81ecdfbb 1222fi
5d031c16 1223
81ecdfbb
RW
1224# Check all directory arguments for consistency.
1225for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226 datadir sysconfdir sharedstatedir localstatedir includedir \
1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228 libdir localedir mandir
5d031c16 1229do
81ecdfbb
RW
1230 eval ac_val=\$$ac_var
1231 # Remove trailing slashes.
1232 case $ac_val in
1233 */ )
1234 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1235 eval $ac_var=\$ac_val;;
1236 esac
1237 # Be sure to have absolute directory names.
b7026657 1238 case $ac_val in
81ecdfbb
RW
1239 [\\/$]* | ?:[\\/]* ) continue;;
1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
5d031c16 1241 esac
d0ac1c44 1242 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
5d031c16
AC
1243done
1244
b7026657
AC
1245# There might be people who depend on the old broken behavior: `$host'
1246# used to hold the argument of --host etc.
1247# FIXME: To remove some day.
1248build=$build_alias
1249host=$host_alias
1250target=$target_alias
1251
1252# FIXME: To remove some day.
1253if test "x$host_alias" != x; then
1254 if test "x$build_alias" = x; then
1255 cross_compiling=maybe
b7026657
AC
1256 elif test "x$build_alias" != "x$host_alias"; then
1257 cross_compiling=yes
1258 fi
1259fi
5d031c16 1260
b7026657
AC
1261ac_tool_prefix=
1262test -n "$host_alias" && ac_tool_prefix=$host_alias-
1263
1264test "$silent" = yes && exec 6>/dev/null
5d031c16 1265
5d031c16 1266
81ecdfbb
RW
1267ac_pwd=`pwd` && test -n "$ac_pwd" &&
1268ac_ls_di=`ls -di .` &&
1269ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1270 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1271test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1272 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1273
1274
5d031c16
AC
1275# Find the source files, if location was not specified.
1276if test -z "$srcdir"; then
1277 ac_srcdir_defaulted=yes
81ecdfbb
RW
1278 # Try the directory containing this script, then the parent directory.
1279 ac_confdir=`$as_dirname -- "$as_myself" ||
1280$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1281 X"$as_myself" : 'X\(//\)[^/]' \| \
1282 X"$as_myself" : 'X\(//\)$' \| \
1283 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1284$as_echo X"$as_myself" |
1285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\/\)[^/].*/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\/\)$/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\).*/{
1298 s//\1/
1299 q
1300 }
1301 s/.*/./; q'`
5d031c16 1302 srcdir=$ac_confdir
81ecdfbb 1303 if test ! -r "$srcdir/$ac_unique_file"; then
5d031c16
AC
1304 srcdir=..
1305 fi
1306else
1307 ac_srcdir_defaulted=no
1308fi
81ecdfbb
RW
1309if test ! -r "$srcdir/$ac_unique_file"; then
1310 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1311 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1312fi
1313ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1314ac_abs_confdir=`(
d0ac1c44 1315 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1316 pwd)`
1317# When building in place, set srcdir=.
1318if test "$ac_abs_confdir" = "$ac_pwd"; then
1319 srcdir=.
1320fi
1321# Remove unnecessary trailing slashes from srcdir.
1322# Double slashes in file names in object file debugging info
1323# mess up M-x gdb in Emacs.
1324case $srcdir in
1325*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326esac
1327for ac_var in $ac_precious_vars; do
1328 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_env_${ac_var}_value=\$${ac_var}
1330 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332done
5d031c16 1333
b7026657
AC
1334#
1335# Report the --help message.
1336#
1337if test "$ac_init_help" = "long"; then
1338 # Omit some internal or obsolete options to make the list less imposing.
1339 # This message is too long to be a string in the A/UX 3.1 sh.
1340 cat <<_ACEOF
1341\`configure' configures this package to adapt to many kinds of systems.
5d031c16 1342
b7026657 1343Usage: $0 [OPTION]... [VAR=VALUE]...
5d031c16 1344
b7026657
AC
1345To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346VAR=VALUE. See below for descriptions of some of the useful variables.
5d031c16 1347
b7026657 1348Defaults for the options are specified in brackets.
5d031c16 1349
b7026657
AC
1350Configuration:
1351 -h, --help display this help and exit
1352 --help=short display options specific to this package
1353 --help=recursive display the short help of all the included packages
1354 -V, --version display version information and exit
d0ac1c44 1355 -q, --quiet, --silent do not print \`checking ...' messages
b7026657
AC
1356 --cache-file=FILE cache test results in FILE [disabled]
1357 -C, --config-cache alias for \`--cache-file=config.cache'
1358 -n, --no-create do not create output files
1359 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1360
b7026657
AC
1361Installation directories:
1362 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1363 [$ac_default_prefix]
b7026657 1364 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1365 [PREFIX]
5d031c16 1366
b7026657
AC
1367By default, \`make install' will install all the files in
1368\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1369an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370for instance \`--prefix=\$HOME'.
5d031c16 1371
b7026657
AC
1372For better control, use the options below.
1373
1374Fine tuning of the installation directories:
81ecdfbb
RW
1375 --bindir=DIR user executables [EPREFIX/bin]
1376 --sbindir=DIR system admin executables [EPREFIX/sbin]
1377 --libexecdir=DIR program executables [EPREFIX/libexec]
1378 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1379 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1380 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1394_ACEOF
1395
1396 cat <<\_ACEOF
1397
1398Program names:
1399 --program-prefix=PREFIX prepend PREFIX to installed program names
1400 --program-suffix=SUFFIX append SUFFIX to installed program names
1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1402
1403System types:
1404 --build=BUILD configure for building on BUILD [guessed]
1405 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 --target=TARGET configure for building compilers for TARGET [HOST]
1407_ACEOF
5d031c16 1408fi
b7026657
AC
1409
1410if test -n "$ac_init_help"; then
1411
1412 cat <<\_ACEOF
1413
1414Optional Features:
81ecdfbb 1415 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1416 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1417 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
faa743bb 1418 --enable-plugins Enable support for plugins
6bb11ab3
L
1419 --enable-shared[=PKGS] build shared libraries [default=yes]
1420 --enable-static[=PKGS] build static libraries [default=yes]
1421 --enable-fast-install[=PKGS]
1422 optimize for fast installation [default=yes]
1423 --disable-libtool-lock avoid locking (might break parallel builds)
d0ac1c44
SM
1424 --enable-maintainer-mode
1425 enable make rules and dependencies not useful (and
1426 sometimes confusing) to the casual installer
8d0978fb
MF
1427 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1428 itself)
1429 --enable-sim-stdio Specify whether to use stdio for console
1430 input/output
1431 --enable-sim-trace=opts Enable tracing of simulated programs
1432 --enable-sim-profile=opts
1433 Enable profiling flags
35656e95 1434 --enable-sim-assert Specify whether to perform random assertions
16f7876d
MF
1435 --enable-sim-environment=environment
1436 Specify mixed, user, virtual or operating
1437 environment
8d0978fb
MF
1438 --enable-sim-inline=inlines
1439 Specify which functions should be inlined
eca4255a
MF
1440 --enable-sim-endian=endian
1441 Specify target byte endian orientation
8d0978fb
MF
1442 --enable-sim-alignment=align
1443 Specify strict, nonstrict or forced alignment of
1444 memory accesses
2232061b
MF
1445 --enable-werror treat compile warnings as errors
1446 --enable-build-warnings enable build-time compiler warnings if gcc is used
1447 --enable-sim-build-warnings
1448 enable SIM specific build-time compiler warnings if
1449 gcc is used
1517bd27
MF
1450 --enable-sim-hardware=LIST
1451 Specify the hardware to be included in the build.
b7026657 1452
6efef468
JM
1453Optional Packages:
1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
aadc9410 1456 --with-system-zlib use installed libz
6bb11ab3
L
1457 --with-pic try to use only PIC/non-PIC objects [default=use
1458 both]
1459 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
bf12d44e 1460 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
6efef468
JM
1461 --with-bugurl=URL Direct users to URL to report a bug
1462
b7026657
AC
1463Some influential environment variables:
1464 CC C compiler command
1465 CFLAGS C compiler flags
1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1467 nonstandard directory <lib dir>
81ecdfbb 1468 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1469 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1470 you have headers in a nonstandard directory <include dir>
b7026657
AC
1471 CPP C preprocessor
1472
1473Use these variables to override the choices made by `configure' or to help
1474it to find libraries and programs with nonstandard names/locations.
1475
81ecdfbb 1476Report bugs to the package provider.
b7026657 1477_ACEOF
81ecdfbb 1478ac_status=$?
5d031c16
AC
1479fi
1480
b7026657
AC
1481if test "$ac_init_help" = "recursive"; then
1482 # If there are subdirs, report their specific --help.
b7026657 1483 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1484 test -d "$ac_dir" ||
1485 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1486 continue
b7026657 1487 ac_builddir=.
5d031c16 1488
81ecdfbb
RW
1489case "$ac_dir" in
1490.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491*)
1492 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1493 # A ".." for each directory in $ac_dir_suffix.
1494 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1495 case $ac_top_builddir_sub in
1496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1498 esac ;;
1499esac
1500ac_abs_top_builddir=$ac_pwd
1501ac_abs_builddir=$ac_pwd$ac_dir_suffix
1502# for backward compatibility:
1503ac_top_builddir=$ac_top_build_prefix
5d031c16 1504
b7026657 1505case $srcdir in
81ecdfbb 1506 .) # We are building in place.
b7026657 1507 ac_srcdir=.
81ecdfbb
RW
1508 ac_top_srcdir=$ac_top_builddir_sub
1509 ac_abs_top_srcdir=$ac_pwd ;;
1510 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1511 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1512 ac_top_srcdir=$srcdir
1513 ac_abs_top_srcdir=$srcdir ;;
1514 *) # Relative name.
1515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1516 ac_top_srcdir=$ac_top_build_prefix$srcdir
1517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 1518esac
81ecdfbb
RW
1519ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1520
1521 cd "$ac_dir" || { ac_status=$?; continue; }
1522 # Check for guested configure.
1523 if test -f "$ac_srcdir/configure.gnu"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526 elif test -f "$ac_srcdir/configure"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure" --help=recursive
b7026657 1529 else
81ecdfbb
RW
1530 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531 fi || ac_status=$?
1532 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657 1533 done
5d031c16 1534fi
b7026657 1535
81ecdfbb 1536test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1537if $ac_init_version; then
1538 cat <<\_ACEOF
81ecdfbb 1539configure
d0ac1c44 1540generated by GNU Autoconf 2.69
b7026657 1541
d0ac1c44 1542Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
1543This configure script is free software; the Free Software Foundation
1544gives unlimited permission to copy, distribute and modify it.
1545_ACEOF
81ecdfbb 1546 exit
b7026657 1547fi
b7026657 1548
81ecdfbb
RW
1549## ------------------------ ##
1550## Autoconf initialization. ##
1551## ------------------------ ##
b7026657 1552
81ecdfbb
RW
1553# ac_fn_c_try_compile LINENO
1554# --------------------------
1555# Try to compile conftest.$ac_ext, and return whether this succeeded.
1556ac_fn_c_try_compile ()
b7026657 1557{
81ecdfbb
RW
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 rm -f conftest.$ac_objext
1560 if { { ac_try="$ac_compile"
1561case "(($ac_try" in
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1564esac
1565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566$as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_compile") 2>conftest.err
1568 ac_status=$?
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1573 fi
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && {
1576 test -z "$ac_c_werror_flag" ||
1577 test ! -s conftest.err
1578 } && test -s conftest.$ac_objext; then :
1579 ac_retval=0
1580else
1581 $as_echo "$as_me: failed program was:" >&5
1582sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1583
81ecdfbb
RW
1584 ac_retval=1
1585fi
d0ac1c44
SM
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587 as_fn_set_status $ac_retval
b7026657 1588
81ecdfbb 1589} # ac_fn_c_try_compile
b7026657 1590
81ecdfbb
RW
1591# ac_fn_c_try_cpp LINENO
1592# ----------------------
1593# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1594ac_fn_c_try_cpp ()
1595{
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 if { { ac_try="$ac_cpp conftest.$ac_ext"
1598case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601esac
1602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603$as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1612 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 }; then :
1616 ac_retval=0
1617else
1618 $as_echo "$as_me: failed program was:" >&5
1619sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1620
81ecdfbb
RW
1621 ac_retval=1
1622fi
d0ac1c44
SM
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
b7026657 1625
81ecdfbb
RW
1626} # ac_fn_c_try_cpp
1627
1628# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1629# -------------------------------------------------------
1630# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1631# the include files in INCLUDES and setting the cache variable VAR
1632# accordingly.
1633ac_fn_c_check_header_mongrel ()
1634{
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1636 if eval \${$3+:} false; then :
81ecdfbb
RW
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1639if eval \${$3+:} false; then :
81ecdfbb
RW
1640 $as_echo_n "(cached) " >&6
1641fi
1642eval ac_res=\$$3
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644$as_echo "$ac_res" >&6; }
1645else
1646 # Is the header compilable?
1647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1648$as_echo_n "checking $2 usability... " >&6; }
1649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650/* end confdefs.h. */
1651$4
1652#include <$2>
1653_ACEOF
1654if ac_fn_c_try_compile "$LINENO"; then :
1655 ac_header_compiler=yes
1656else
1657 ac_header_compiler=no
1658fi
1659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1661$as_echo "$ac_header_compiler" >&6; }
1662
1663# Is the header present?
1664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1665$as_echo_n "checking $2 presence... " >&6; }
1666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667/* end confdefs.h. */
1668#include <$2>
1669_ACEOF
1670if ac_fn_c_try_cpp "$LINENO"; then :
1671 ac_header_preproc=yes
1672else
1673 ac_header_preproc=no
1674fi
d0ac1c44 1675rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1677$as_echo "$ac_header_preproc" >&6; }
1678
1679# So? What about this header?
1680case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1681 yes:no: )
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1683$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1685$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1686 ;;
1687 no:yes:* )
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1689$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1691$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1693$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1695$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1697$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1698 ;;
1699esac
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1702if eval \${$3+:} false; then :
81ecdfbb
RW
1703 $as_echo_n "(cached) " >&6
1704else
1705 eval "$3=\$ac_header_compiler"
1706fi
1707eval ac_res=\$$3
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709$as_echo "$ac_res" >&6; }
1710fi
d0ac1c44 1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1712
1713} # ac_fn_c_check_header_mongrel
1714
1715# ac_fn_c_try_run LINENO
1716# ----------------------
1717# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1718# that executables *can* be run.
1719ac_fn_c_try_run ()
1720{
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 if { { ac_try="$ac_link"
1723case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726esac
1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728$as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_link") 2>&5
1730 ac_status=$?
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1733 { { case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_try") 2>&5
1740 ac_status=$?
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; }; }; then :
1743 ac_retval=0
1744else
1745 $as_echo "$as_me: program exited with status $ac_status" >&5
1746 $as_echo "$as_me: failed program was:" >&5
1747sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=$ac_status
1750fi
1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 as_fn_set_status $ac_retval
81ecdfbb
RW
1754
1755} # ac_fn_c_try_run
1756
1757# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1758# -------------------------------------------------------
1759# Tests whether HEADER exists and can be compiled using the include files in
1760# INCLUDES, setting the cache variable VAR accordingly.
1761ac_fn_c_check_header_compile ()
1762{
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1766if eval \${$3+:} false; then :
81ecdfbb
RW
1767 $as_echo_n "(cached) " >&6
1768else
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770/* end confdefs.h. */
1771$4
1772#include <$2>
1773_ACEOF
1774if ac_fn_c_try_compile "$LINENO"; then :
1775 eval "$3=yes"
1776else
1777 eval "$3=no"
1778fi
1779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780fi
1781eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783$as_echo "$ac_res" >&6; }
d0ac1c44 1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1785
1786} # ac_fn_c_check_header_compile
1787
1788# ac_fn_c_try_link LINENO
1789# -----------------------
1790# Try to link conftest.$ac_ext, and return whether this succeeded.
1791ac_fn_c_try_link ()
1792{
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 rm -f conftest.$ac_objext conftest$ac_exeext
1795 if { { ac_try="$ac_link"
1796case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799esac
1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801$as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>conftest.err
1803 ac_status=$?
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1808 fi
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && {
1811 test -z "$ac_c_werror_flag" ||
1812 test ! -s conftest.err
1813 } && test -s conftest$ac_exeext && {
1814 test "$cross_compiling" = yes ||
d0ac1c44 1815 test -x conftest$ac_exeext
81ecdfbb
RW
1816 }; then :
1817 ac_retval=0
1818else
1819 $as_echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=1
1823fi
1824 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1825 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1826 # interfere with the next link command; also delete a directory that is
1827 # left behind by Apple's compiler. We do this before executing the actions.
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
81ecdfbb
RW
1831
1832} # ac_fn_c_try_link
1833
1834# ac_fn_c_check_func LINENO FUNC VAR
1835# ----------------------------------
1836# Tests whether FUNC exists, setting the cache variable VAR accordingly
1837ac_fn_c_check_func ()
1838{
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1842if eval \${$3+:} false; then :
81ecdfbb
RW
1843 $as_echo_n "(cached) " >&6
1844else
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846/* end confdefs.h. */
1847/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1849#define $2 innocuous_$2
1850
1851/* System header to define __stub macros and hopefully few prototypes,
1852 which can conflict with char $2 (); below.
1853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1854 <limits.h> exists even on freestanding compilers. */
1855
1856#ifdef __STDC__
1857# include <limits.h>
1858#else
1859# include <assert.h>
1860#endif
1861
1862#undef $2
1863
1864/* Override any GCC internal prototype to avoid an error.
1865 Use char because int might match the return type of a GCC
1866 builtin and then its argument prototype would still apply. */
1867#ifdef __cplusplus
1868extern "C"
1869#endif
1870char $2 ();
1871/* The GNU C library defines this for functions which it implements
1872 to always fail with ENOSYS. Some functions are actually named
1873 something starting with __ and the normal name is an alias. */
1874#if defined __stub_$2 || defined __stub___$2
1875choke me
1876#endif
1877
1878int
1879main ()
1880{
1881return $2 ();
1882 ;
1883 return 0;
1884}
1885_ACEOF
1886if ac_fn_c_try_link "$LINENO"; then :
1887 eval "$3=yes"
1888else
1889 eval "$3=no"
1890fi
1891rm -f core conftest.err conftest.$ac_objext \
1892 conftest$ac_exeext conftest.$ac_ext
1893fi
1894eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896$as_echo "$ac_res" >&6; }
d0ac1c44 1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1898
1899} # ac_fn_c_check_func
936df756
MF
1900
1901# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1902# ----------------------------------------------------
1903# Tries to find if the field MEMBER exists in type AGGR, after including
1904# INCLUDES, setting cache variable VAR accordingly.
1905ac_fn_c_check_member ()
1906{
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1909$as_echo_n "checking for $2.$3... " >&6; }
d0ac1c44 1910if eval \${$4+:} false; then :
936df756
MF
1911 $as_echo_n "(cached) " >&6
1912else
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914/* end confdefs.h. */
1915$5
1916int
1917main ()
1918{
1919static $2 ac_aggr;
1920if (ac_aggr.$3)
1921return 0;
1922 ;
1923 return 0;
1924}
1925_ACEOF
1926if ac_fn_c_try_compile "$LINENO"; then :
1927 eval "$4=yes"
1928else
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h. */
1931$5
1932int
1933main ()
1934{
1935static $2 ac_aggr;
1936if (sizeof ac_aggr.$3)
1937return 0;
1938 ;
1939 return 0;
1940}
1941_ACEOF
1942if ac_fn_c_try_compile "$LINENO"; then :
1943 eval "$4=yes"
1944else
1945 eval "$4=no"
1946fi
1947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948fi
1949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950fi
1951eval ac_res=\$$4
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953$as_echo "$ac_res" >&6; }
d0ac1c44 1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
936df756
MF
1955
1956} # ac_fn_c_check_member
1957
1958# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1959# -------------------------------------------
1960# Tests whether TYPE exists after having included INCLUDES, setting cache
1961# variable VAR accordingly.
1962ac_fn_c_check_type ()
1963{
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1967if eval \${$3+:} false; then :
936df756
MF
1968 $as_echo_n "(cached) " >&6
1969else
1970 eval "$3=no"
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972/* end confdefs.h. */
1973$4
1974int
1975main ()
1976{
1977if (sizeof ($2))
1978 return 0;
1979 ;
1980 return 0;
1981}
1982_ACEOF
1983if ac_fn_c_try_compile "$LINENO"; then :
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985/* end confdefs.h. */
1986$4
1987int
1988main ()
1989{
1990if (sizeof (($2)))
1991 return 0;
1992 ;
1993 return 0;
1994}
1995_ACEOF
1996if ac_fn_c_try_compile "$LINENO"; then :
1997
1998else
1999 eval "$3=yes"
2000fi
2001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002fi
2003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004fi
2005eval ac_res=\$$3
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007$as_echo "$ac_res" >&6; }
d0ac1c44 2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
936df756
MF
2009
2010} # ac_fn_c_check_type
81ecdfbb
RW
2011cat >config.log <<_ACEOF
2012This file contains any messages produced by compilers while
2013running configure, to aid debugging if configure makes a mistake.
2014
2015It was created by $as_me, which was
d0ac1c44 2016generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
2017
2018 $ $0 $@
2019
2020_ACEOF
2021exec 5>>config.log
2022{
2023cat <<_ASUNAME
2024## --------- ##
2025## Platform. ##
2026## --------- ##
2027
2028hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2029uname -m = `(uname -m) 2>/dev/null || echo unknown`
2030uname -r = `(uname -r) 2>/dev/null || echo unknown`
2031uname -s = `(uname -s) 2>/dev/null || echo unknown`
2032uname -v = `(uname -v) 2>/dev/null || echo unknown`
2033
2034/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2035/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2036
2037/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2038/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2039/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2040/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2041/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2042/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2043/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2044
2045_ASUNAME
2046
2047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048for as_dir in $PATH
2049do
2050 IFS=$as_save_IFS
2051 test -z "$as_dir" && as_dir=.
2052 $as_echo "PATH: $as_dir"
2053 done
2054IFS=$as_save_IFS
2055
2056} >&5
2057
2058cat >&5 <<_ACEOF
b7026657
AC
2059
2060
2061## ----------- ##
2062## Core tests. ##
2063## ----------- ##
2064
2065_ACEOF
2066
2067
2068# Keep a trace of the command line.
2069# Strip out --no-create and --no-recursion so they do not pile up.
2070# Strip out --silent because we don't want to record it for future runs.
2071# Also quote any args containing shell meta-characters.
2072# Make two passes to allow for proper duplicate-argument suppression.
2073ac_configure_args=
2074ac_configure_args0=
2075ac_configure_args1=
b7026657
AC
2076ac_must_keep_next=false
2077for ac_pass in 1 2
2078do
2079 for ac_arg
2080 do
2081 case $ac_arg in
2082 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2084 | -silent | --silent | --silen | --sile | --sil)
2085 continue ;;
81ecdfbb
RW
2086 *\'*)
2087 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2088 esac
2089 case $ac_pass in
81ecdfbb 2090 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 2091 2)
81ecdfbb 2092 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
2093 if test $ac_must_keep_next = true; then
2094 ac_must_keep_next=false # Got value, back to normal.
2095 else
2096 case $ac_arg in
2097 *=* | --config-cache | -C | -disable-* | --disable-* \
2098 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2099 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2100 | -with-* | --with-* | -without-* | --without-* | --x)
2101 case "$ac_configure_args0 " in
2102 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2103 esac
2104 ;;
2105 -* ) ac_must_keep_next=true ;;
2106 esac
2107 fi
81ecdfbb 2108 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
2109 ;;
2110 esac
2111 done
2112done
81ecdfbb
RW
2113{ ac_configure_args0=; unset ac_configure_args0;}
2114{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
2115
2116# When interrupted or exit'd, cleanup temporary files, and complete
2117# config.log. We remove comments because anyway the quotes in there
2118# would cause problems or look ugly.
81ecdfbb
RW
2119# WARNING: Use '\'' to represent an apostrophe within the trap.
2120# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
2121trap 'exit_status=$?
2122 # Save into config.log some information that might help in debugging.
2123 {
2124 echo
2125
d0ac1c44 2126 $as_echo "## ---------------- ##
b7026657 2127## Cache variables. ##
d0ac1c44 2128## ---------------- ##"
b7026657
AC
2129 echo
2130 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2131(
2132 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2133 eval ac_val=\$$ac_var
2134 case $ac_val in #(
2135 *${as_nl}*)
2136 case $ac_var in #(
2137 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2138$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2139 esac
2140 case $ac_var in #(
2141 _ | IFS | as_nl) ;; #(
2142 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2143 *) { eval $ac_var=; unset $ac_var;} ;;
2144 esac ;;
2145 esac
2146 done
b7026657 2147 (set) 2>&1 |
81ecdfbb
RW
2148 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2149 *${as_nl}ac_space=\ *)
b7026657 2150 sed -n \
81ecdfbb
RW
2151 "s/'\''/'\''\\\\'\'''\''/g;
2152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2153 ;; #(
b7026657 2154 *)
81ecdfbb 2155 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 2156 ;;
81ecdfbb
RW
2157 esac |
2158 sort
2159)
b7026657
AC
2160 echo
2161
d0ac1c44 2162 $as_echo "## ----------------- ##
b7026657 2163## Output variables. ##
d0ac1c44 2164## ----------------- ##"
b7026657
AC
2165 echo
2166 for ac_var in $ac_subst_vars
2167 do
81ecdfbb
RW
2168 eval ac_val=\$$ac_var
2169 case $ac_val in
2170 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2171 esac
2172 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2173 done | sort
2174 echo
2175
2176 if test -n "$ac_subst_files"; then
d0ac1c44 2177 $as_echo "## ------------------- ##
81ecdfbb 2178## File substitutions. ##
d0ac1c44 2179## ------------------- ##"
b7026657
AC
2180 echo
2181 for ac_var in $ac_subst_files
2182 do
81ecdfbb
RW
2183 eval ac_val=\$$ac_var
2184 case $ac_val in
2185 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2186 esac
2187 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2188 done | sort
2189 echo
2190 fi
2191
2192 if test -s confdefs.h; then
d0ac1c44 2193 $as_echo "## ----------- ##
b7026657 2194## confdefs.h. ##
d0ac1c44 2195## ----------- ##"
b7026657 2196 echo
81ecdfbb 2197 cat confdefs.h
b7026657
AC
2198 echo
2199 fi
2200 test "$ac_signal" != 0 &&
81ecdfbb
RW
2201 $as_echo "$as_me: caught signal $ac_signal"
2202 $as_echo "$as_me: exit $exit_status"
b7026657 2203 } >&5
81ecdfbb
RW
2204 rm -f core *.core core.conftest.* &&
2205 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 2206 exit $exit_status
81ecdfbb 2207' 0
b7026657 2208for ac_signal in 1 2 13 15; do
81ecdfbb 2209 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
2210done
2211ac_signal=0
2212
2213# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2214rm -f -r conftest* confdefs.h
2215
2216$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
2217
2218# Predefined preprocessor variables.
2219
2220cat >>confdefs.h <<_ACEOF
2221#define PACKAGE_NAME "$PACKAGE_NAME"
2222_ACEOF
2223
b7026657
AC
2224cat >>confdefs.h <<_ACEOF
2225#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2226_ACEOF
2227
b7026657
AC
2228cat >>confdefs.h <<_ACEOF
2229#define PACKAGE_VERSION "$PACKAGE_VERSION"
2230_ACEOF
2231
b7026657
AC
2232cat >>confdefs.h <<_ACEOF
2233#define PACKAGE_STRING "$PACKAGE_STRING"
2234_ACEOF
2235
b7026657
AC
2236cat >>confdefs.h <<_ACEOF
2237#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2238_ACEOF
2239
81ecdfbb
RW
2240cat >>confdefs.h <<_ACEOF
2241#define PACKAGE_URL "$PACKAGE_URL"
2242_ACEOF
2243
b7026657
AC
2244
2245# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2246# Prefer an explicitly selected file to automatically selected ones.
2247ac_site_file1=NONE
2248ac_site_file2=NONE
2249if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2250 # We do not want a PATH search for config.site.
2251 case $CONFIG_SITE in #((
2252 -*) ac_site_file1=./$CONFIG_SITE;;
2253 */*) ac_site_file1=$CONFIG_SITE;;
2254 *) ac_site_file1=./$CONFIG_SITE;;
2255 esac
81ecdfbb
RW
2256elif test "x$prefix" != xNONE; then
2257 ac_site_file1=$prefix/share/config.site
2258 ac_site_file2=$prefix/etc/config.site
2259else
2260 ac_site_file1=$ac_default_prefix/share/config.site
2261 ac_site_file2=$ac_default_prefix/etc/config.site
2262fi
2263for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2264do
2265 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2266 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2268$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657 2269 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2270 . "$ac_site_file" \
2271 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2273as_fn_error $? "failed to load site script $ac_site_file
2274See \`config.log' for more details" "$LINENO" 5; }
b7026657
AC
2275 fi
2276done
2277
2278if test -r "$cache_file"; then
d0ac1c44
SM
2279 # Some versions of bash will fail to source /dev/null (special files
2280 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2281 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2283$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 2284 case $cache_file in
81ecdfbb
RW
2285 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2286 *) . "./$cache_file";;
b7026657
AC
2287 esac
2288 fi
2289else
81ecdfbb
RW
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2291$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657
AC
2292 >$cache_file
2293fi
2294
37e9f182
MF
2295as_fn_append ac_func_list " __setfpucw"
2296as_fn_append ac_func_list " ftruncate"
2297as_fn_append ac_func_list " getrusage"
2298as_fn_append ac_func_list " lstat"
2299as_fn_append ac_func_list " mmap"
2300as_fn_append ac_func_list " munmap"
2301as_fn_append ac_func_list " posix_fallocate"
2302as_fn_append ac_func_list " sigaction"
2303as_fn_append ac_func_list " time"
2304as_fn_append ac_func_list " truncate"
b7026657
AC
2305# Check that the precious variables saved in the cache have kept the same
2306# value.
2307ac_cache_corrupted=false
81ecdfbb 2308for ac_var in $ac_precious_vars; do
b7026657
AC
2309 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2310 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2311 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2312 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
2313 case $ac_old_set,$ac_new_set in
2314 set,)
81ecdfbb
RW
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2316$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
2317 ac_cache_corrupted=: ;;
2318 ,set)
81ecdfbb
RW
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2320$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
2321 ac_cache_corrupted=: ;;
2322 ,);;
2323 *)
2324 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2325 # differences in whitespace do not lead to failure.
2326 ac_old_val_w=`echo x $ac_old_val`
2327 ac_new_val_w=`echo x $ac_new_val`
2328 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2330$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2331 ac_cache_corrupted=:
2332 else
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2334$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2335 eval $ac_var=\$ac_old_val
2336 fi
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2338$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2340$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2341 fi;;
2342 esac
2343 # Pass precious variables to config.status.
2344 if test "$ac_new_set" = set; then
2345 case $ac_new_val in
81ecdfbb 2346 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2347 *) ac_arg=$ac_var=$ac_new_val ;;
2348 esac
2349 case " $ac_configure_args " in
2350 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2351 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657
AC
2352 esac
2353 fi
2354done
2355if $ac_cache_corrupted; then
81ecdfbb
RW
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2359$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2360 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
b7026657 2361fi
81ecdfbb
RW
2362## -------------------- ##
2363## Main body of script. ##
2364## -------------------- ##
b7026657
AC
2365
2366ac_ext=c
2367ac_cpp='$CPP $CPPFLAGS'
2368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2370ac_compiler_gnu=$ac_cv_c_compiler_gnu
2371
2372
6bb11ab3
L
2373
2374
2375
2376
2377
c2783492
MF
2378ac_aux_dir=
2379for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2380 if test -f "$ac_dir/install-sh"; then
2381 ac_aux_dir=$ac_dir
2382 ac_install_sh="$ac_aux_dir/install-sh -c"
2383 break
2384 elif test -f "$ac_dir/install.sh"; then
2385 ac_aux_dir=$ac_dir
2386 ac_install_sh="$ac_aux_dir/install.sh -c"
2387 break
2388 elif test -f "$ac_dir/shtool"; then
2389 ac_aux_dir=$ac_dir
2390 ac_install_sh="$ac_aux_dir/shtool install -c"
2391 break
2392 fi
2393done
2394if test -z "$ac_aux_dir"; then
2395 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2396fi
2397
2398# These three variables are undocumented and unsupported,
2399# and are intended to be withdrawn in a future Autoconf release.
2400# They can cause serious problems if a builder's source tree is in a directory
2401# whose full name contains unusual characters.
2402ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2403ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2404ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2405
2406
2407# Make sure we can run config.sub.
2408$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2409 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2410
2411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2412$as_echo_n "checking build system type... " >&6; }
2413if ${ac_cv_build+:} false; then :
2414 $as_echo_n "(cached) " >&6
2415else
2416 ac_build_alias=$build_alias
2417test "x$ac_build_alias" = x &&
2418 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2419test "x$ac_build_alias" = x &&
2420 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2421ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2422 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2423
2424fi
2425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2426$as_echo "$ac_cv_build" >&6; }
2427case $ac_cv_build in
2428*-*-*) ;;
2429*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2430esac
2431build=$ac_cv_build
2432ac_save_IFS=$IFS; IFS='-'
2433set x $ac_cv_build
2434shift
2435build_cpu=$1
2436build_vendor=$2
2437shift; shift
2438# Remember, the first character of IFS is used to create $*,
2439# except with old shells:
2440build_os=$*
2441IFS=$ac_save_IFS
2442case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2443
2444
2445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2446$as_echo_n "checking host system type... " >&6; }
2447if ${ac_cv_host+:} false; then :
2448 $as_echo_n "(cached) " >&6
2449else
2450 if test "x$host_alias" = x; then
2451 ac_cv_host=$ac_cv_build
2452else
2453 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2454 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2455fi
2456
2457fi
2458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2459$as_echo "$ac_cv_host" >&6; }
2460case $ac_cv_host in
2461*-*-*) ;;
2462*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2463esac
2464host=$ac_cv_host
2465ac_save_IFS=$IFS; IFS='-'
2466set x $ac_cv_host
2467shift
2468host_cpu=$1
2469host_vendor=$2
2470shift; shift
2471# Remember, the first character of IFS is used to create $*,
2472# except with old shells:
2473host_os=$*
2474IFS=$ac_save_IFS
2475case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2476
2477
2478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2479$as_echo_n "checking target system type... " >&6; }
2480if ${ac_cv_target+:} false; then :
2481 $as_echo_n "(cached) " >&6
2482else
2483 if test "x$target_alias" = x; then
2484 ac_cv_target=$ac_cv_host
2485else
2486 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2487 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2488fi
2489
2490fi
2491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2492$as_echo "$ac_cv_target" >&6; }
2493case $ac_cv_target in
2494*-*-*) ;;
2495*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2496esac
2497target=$ac_cv_target
2498ac_save_IFS=$IFS; IFS='-'
2499set x $ac_cv_target
2500shift
2501target_cpu=$1
2502target_vendor=$2
2503shift; shift
2504# Remember, the first character of IFS is used to create $*,
2505# except with old shells:
2506target_os=$*
2507IFS=$ac_save_IFS
2508case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2509
2510
2511# The aliases save the names the user supplied, while $host etc.
2512# will get canonicalized.
2513test -n "$target_alias" &&
2514 test "$program_prefix$program_suffix$program_transform_name" = \
2515 NONENONEs,x,x, &&
2516 program_prefix=${target_alias}-
6bb11ab3
L
2517ac_ext=c
2518ac_cpp='$CPP $CPPFLAGS'
2519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2521ac_compiler_gnu=$ac_cv_c_compiler_gnu
2522if test -n "$ac_tool_prefix"; then
2523 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2524set dummy ${ac_tool_prefix}gcc; ac_word=$2
2525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2526$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2527if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2528 $as_echo_n "(cached) " >&6
2529else
2530 if test -n "$CC"; then
2531 ac_cv_prog_CC="$CC" # Let the user override the test.
2532else
2533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534for as_dir in $PATH
2535do
2536 IFS=$as_save_IFS
2537 test -z "$as_dir" && as_dir=.
2538 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2540 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 break 2
2543 fi
2544done
2545 done
2546IFS=$as_save_IFS
2547
2548fi
2549fi
2550CC=$ac_cv_prog_CC
2551if test -n "$CC"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2553$as_echo "$CC" >&6; }
2554else
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2556$as_echo "no" >&6; }
2557fi
2558
2559
2560fi
2561if test -z "$ac_cv_prog_CC"; then
2562 ac_ct_CC=$CC
2563 # Extract the first word of "gcc", so it can be a program name with args.
2564set dummy gcc; ac_word=$2
2565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2566$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2567if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
2568 $as_echo_n "(cached) " >&6
2569else
2570 if test -n "$ac_ct_CC"; then
2571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2572else
2573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574for as_dir in $PATH
2575do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2580 ac_cv_prog_ac_ct_CC="gcc"
2581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2583 fi
2584done
2585 done
2586IFS=$as_save_IFS
2587
2588fi
2589fi
2590ac_ct_CC=$ac_cv_prog_ac_ct_CC
2591if test -n "$ac_ct_CC"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2593$as_echo "$ac_ct_CC" >&6; }
2594else
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596$as_echo "no" >&6; }
2597fi
2598
2599 if test "x$ac_ct_CC" = x; then
2600 CC=""
2601 else
2602 case $cross_compiling:$ac_tool_warned in
2603yes:)
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2606ac_tool_warned=yes ;;
2607esac
2608 CC=$ac_ct_CC
2609 fi
2610else
2611 CC="$ac_cv_prog_CC"
2612fi
2613
2614if test -z "$CC"; then
2615 if test -n "$ac_tool_prefix"; then
2616 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2617set dummy ${ac_tool_prefix}cc; ac_word=$2
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2619$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2620if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2621 $as_echo_n "(cached) " >&6
2622else
2623 if test -n "$CC"; then
2624 ac_cv_prog_CC="$CC" # Let the user override the test.
2625else
2626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627for as_dir in $PATH
2628do
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2633 ac_cv_prog_CC="${ac_tool_prefix}cc"
2634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 break 2
2636 fi
2637done
2638 done
2639IFS=$as_save_IFS
2640
2641fi
2642fi
2643CC=$ac_cv_prog_CC
2644if test -n "$CC"; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2646$as_echo "$CC" >&6; }
2647else
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649$as_echo "no" >&6; }
2650fi
2651
2652
2653 fi
2654fi
2655if test -z "$CC"; then
2656 # Extract the first word of "cc", so it can be a program name with args.
2657set dummy cc; ac_word=$2
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2660if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2661 $as_echo_n "(cached) " >&6
2662else
2663 if test -n "$CC"; then
2664 ac_cv_prog_CC="$CC" # Let the user override the test.
2665else
2666 ac_prog_rejected=no
2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668for as_dir in $PATH
2669do
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2674 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2675 ac_prog_rejected=yes
2676 continue
2677 fi
2678 ac_cv_prog_CC="cc"
2679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 break 2
2681 fi
2682done
2683 done
2684IFS=$as_save_IFS
2685
2686if test $ac_prog_rejected = yes; then
2687 # We found a bogon in the path, so make sure we never use it.
2688 set dummy $ac_cv_prog_CC
2689 shift
2690 if test $# != 0; then
2691 # We chose a different compiler from the bogus one.
2692 # However, it has the same basename, so the bogon will be chosen
2693 # first if we set CC to just the basename; use the full file name.
2694 shift
2695 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2696 fi
2697fi
2698fi
2699fi
2700CC=$ac_cv_prog_CC
2701if test -n "$CC"; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2703$as_echo "$CC" >&6; }
2704else
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706$as_echo "no" >&6; }
2707fi
2708
2709
2710fi
2711if test -z "$CC"; then
2712 if test -n "$ac_tool_prefix"; then
2713 for ac_prog in cl.exe
2714 do
2715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2716set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2719if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2720 $as_echo_n "(cached) " >&6
2721else
2722 if test -n "$CC"; then
2723 ac_cv_prog_CC="$CC" # Let the user override the test.
2724else
2725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726for as_dir in $PATH
2727do
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2732 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 break 2
2735 fi
2736done
2737 done
2738IFS=$as_save_IFS
2739
2740fi
2741fi
2742CC=$ac_cv_prog_CC
2743if test -n "$CC"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2745$as_echo "$CC" >&6; }
2746else
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748$as_echo "no" >&6; }
2749fi
2750
2751
2752 test -n "$CC" && break
2753 done
2754fi
2755if test -z "$CC"; then
2756 ac_ct_CC=$CC
2757 for ac_prog in cl.exe
2758do
2759 # Extract the first word of "$ac_prog", so it can be a program name with args.
2760set dummy $ac_prog; ac_word=$2
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2763if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
2764 $as_echo_n "(cached) " >&6
2765else
2766 if test -n "$ac_ct_CC"; then
2767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2768else
2769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770for as_dir in $PATH
2771do
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2776 ac_cv_prog_ac_ct_CC="$ac_prog"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2779 fi
2780done
2781 done
2782IFS=$as_save_IFS
2783
2784fi
2785fi
2786ac_ct_CC=$ac_cv_prog_ac_ct_CC
2787if test -n "$ac_ct_CC"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2789$as_echo "$ac_ct_CC" >&6; }
2790else
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792$as_echo "no" >&6; }
2793fi
2794
2795
2796 test -n "$ac_ct_CC" && break
2797done
2798
2799 if test "x$ac_ct_CC" = x; then
2800 CC=""
2801 else
2802 case $cross_compiling:$ac_tool_warned in
2803yes:)
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2806ac_tool_warned=yes ;;
2807esac
2808 CC=$ac_ct_CC
2809 fi
2810fi
2811
2812fi
2813
2814
2815test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2817as_fn_error $? "no acceptable C compiler found in \$PATH
2818See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
2819
2820# Provide some information about the compiler.
2821$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2822set X $ac_compile
2823ac_compiler=$2
2824for ac_option in --version -v -V -qversion; do
2825 { { ac_try="$ac_compiler $ac_option >&5"
2826case "(($ac_try" in
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2829esac
2830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2831$as_echo "$ac_try_echo"; } >&5
2832 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2833 ac_status=$?
2834 if test -s conftest.err; then
2835 sed '10a\
2836... rest of stderr output deleted ...
2837 10q' conftest.err >conftest.er1
2838 cat conftest.er1 >&5
6bb11ab3 2839 fi
d0ac1c44 2840 rm -f conftest.er1 conftest.err
6bb11ab3
L
2841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2842 test $ac_status = 0; }
2843done
2844
2845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2846/* end confdefs.h. */
2847
2848int
2849main ()
2850{
2851
2852 ;
2853 return 0;
2854}
2855_ACEOF
2856ac_clean_files_save=$ac_clean_files
d0ac1c44 2857ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6bb11ab3
L
2858# Try to create an executable without -o first, disregard a.out.
2859# It will help us diagnose broken compilers, and finding out an intuition
2860# of exeext.
d0ac1c44
SM
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2862$as_echo_n "checking whether the C compiler works... " >&6; }
6bb11ab3
L
2863ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2864
2865# The possible output files:
2866ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2867
2868ac_rmfiles=
2869for ac_file in $ac_files
2870do
2871 case $ac_file in
2872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2873 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2874 esac
2875done
2876rm -f $ac_rmfiles
2877
2878if { { ac_try="$ac_link_default"
2879case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882esac
2883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2884$as_echo "$ac_try_echo"; } >&5
2885 (eval "$ac_link_default") 2>&5
2886 ac_status=$?
2887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2888 test $ac_status = 0; }; then :
2889 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2890# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2891# in a Makefile. We should not override ac_cv_exeext if it was cached,
2892# so that the user can short-circuit this test for compilers unknown to
2893# Autoconf.
2894for ac_file in $ac_files ''
2895do
2896 test -f "$ac_file" || continue
2897 case $ac_file in
2898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2899 ;;
2900 [ab].out )
2901 # We found the default executable, but exeext='' is most
2902 # certainly right.
2903 break;;
2904 *.* )
2905 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2906 then :; else
2907 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2908 fi
2909 # We set ac_cv_exeext here because the later test for it is not
2910 # safe: cross compilers may not add the suffix if given an `-o'
2911 # argument, so we may need to know it at that point already.
2912 # Even if this section looks crufty: it has the advantage of
2913 # actually working.
2914 break;;
2915 * )
2916 break;;
2917 esac
2918done
2919test "$ac_cv_exeext" = no && ac_cv_exeext=
2920
2921else
2922 ac_file=''
2923fi
6bb11ab3 2924if test -z "$ac_file"; then :
d0ac1c44
SM
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926$as_echo "no" >&6; }
2927$as_echo "$as_me: failed program was:" >&5
6bb11ab3
L
2928sed 's/^/| /' conftest.$ac_ext >&5
2929
2930{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2932as_fn_error 77 "C compiler cannot create executables
2933See \`config.log' for more details" "$LINENO" 5; }
2934else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2936$as_echo "yes" >&6; }
6bb11ab3 2937fi
d0ac1c44
SM
2938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2939$as_echo_n "checking for C compiler default output file name... " >&6; }
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2941$as_echo "$ac_file" >&6; }
6bb11ab3
L
2942ac_exeext=$ac_cv_exeext
2943
d0ac1c44 2944rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6bb11ab3 2945ac_clean_files=$ac_clean_files_save
6bb11ab3
L
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2947$as_echo_n "checking for suffix of executables... " >&6; }
2948if { { ac_try="$ac_link"
2949case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952esac
2953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2954$as_echo "$ac_try_echo"; } >&5
2955 (eval "$ac_link") 2>&5
2956 ac_status=$?
2957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2958 test $ac_status = 0; }; then :
2959 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2960# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2961# work properly (i.e., refer to `conftest.exe'), while it won't with
2962# `rm'.
2963for ac_file in conftest.exe conftest conftest.*; do
2964 test -f "$ac_file" || continue
2965 case $ac_file in
2966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2967 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2968 break;;
2969 * ) break;;
2970 esac
2971done
2972else
2973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2975as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2976See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3 2977fi
d0ac1c44 2978rm -f conftest conftest$ac_cv_exeext
6bb11ab3
L
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2980$as_echo "$ac_cv_exeext" >&6; }
2981
2982rm -f conftest.$ac_ext
2983EXEEXT=$ac_cv_exeext
2984ac_exeext=$EXEEXT
d0ac1c44
SM
2985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2986/* end confdefs.h. */
2987#include <stdio.h>
2988int
2989main ()
2990{
2991FILE *f = fopen ("conftest.out", "w");
2992 return ferror (f) || fclose (f) != 0;
2993
2994 ;
2995 return 0;
2996}
2997_ACEOF
2998ac_clean_files="$ac_clean_files conftest.out"
2999# Check that the compiler produces executables we can run. If not, either
3000# the compiler is broken, or we cross compile.
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3002$as_echo_n "checking whether we are cross compiling... " >&6; }
3003if test "$cross_compiling" != yes; then
3004 { { ac_try="$ac_link"
3005case "(($ac_try" in
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3008esac
3009eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3010$as_echo "$ac_try_echo"; } >&5
3011 (eval "$ac_link") 2>&5
3012 ac_status=$?
3013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3014 test $ac_status = 0; }
3015 if { ac_try='./conftest$ac_cv_exeext'
3016 { { case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019esac
3020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3021$as_echo "$ac_try_echo"; } >&5
3022 (eval "$ac_try") 2>&5
3023 ac_status=$?
3024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3025 test $ac_status = 0; }; }; then
3026 cross_compiling=no
3027 else
3028 if test "$cross_compiling" = maybe; then
3029 cross_compiling=yes
3030 else
3031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3033as_fn_error $? "cannot run C compiled programs.
3034If you meant to cross compile, use \`--host'.
3035See \`config.log' for more details" "$LINENO" 5; }
3036 fi
3037 fi
3038fi
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3040$as_echo "$cross_compiling" >&6; }
3041
3042rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3043ac_clean_files=$ac_clean_files_save
6bb11ab3
L
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3045$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 3046if ${ac_cv_objext+:} false; then :
6bb11ab3
L
3047 $as_echo_n "(cached) " >&6
3048else
3049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3050/* end confdefs.h. */
3051
3052int
3053main ()
3054{
3055
3056 ;
3057 return 0;
3058}
3059_ACEOF
3060rm -f conftest.o conftest.obj
3061if { { ac_try="$ac_compile"
3062case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065esac
3066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3067$as_echo "$ac_try_echo"; } >&5
3068 (eval "$ac_compile") 2>&5
3069 ac_status=$?
3070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3071 test $ac_status = 0; }; then :
3072 for ac_file in conftest.o conftest.obj conftest.*; do
3073 test -f "$ac_file" || continue;
3074 case $ac_file in
3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3076 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3077 break;;
3078 esac
3079done
3080else
3081 $as_echo "$as_me: failed program was:" >&5
3082sed 's/^/| /' conftest.$ac_ext >&5
3083
3084{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3086as_fn_error $? "cannot compute suffix of object files: cannot compile
3087See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
3088fi
3089rm -f conftest.$ac_cv_objext conftest.$ac_ext
3090fi
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3092$as_echo "$ac_cv_objext" >&6; }
3093OBJEXT=$ac_cv_objext
3094ac_objext=$OBJEXT
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3096$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 3097if ${ac_cv_c_compiler_gnu+:} false; then :
6bb11ab3
L
3098 $as_echo_n "(cached) " >&6
3099else
3100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101/* end confdefs.h. */
3102
3103int
3104main ()
3105{
3106#ifndef __GNUC__
3107 choke me
3108#endif
3109
3110 ;
3111 return 0;
3112}
3113_ACEOF
3114if ac_fn_c_try_compile "$LINENO"; then :
3115 ac_compiler_gnu=yes
3116else
3117 ac_compiler_gnu=no
3118fi
3119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3120ac_cv_c_compiler_gnu=$ac_compiler_gnu
3121
3122fi
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3124$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3125if test $ac_compiler_gnu = yes; then
3126 GCC=yes
3127else
3128 GCC=
3129fi
3130ac_test_CFLAGS=${CFLAGS+set}
3131ac_save_CFLAGS=$CFLAGS
3132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3133$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3134if ${ac_cv_prog_cc_g+:} false; then :
6bb11ab3
L
3135 $as_echo_n "(cached) " >&6
3136else
3137 ac_save_c_werror_flag=$ac_c_werror_flag
3138 ac_c_werror_flag=yes
3139 ac_cv_prog_cc_g=no
3140 CFLAGS="-g"
3141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142/* end confdefs.h. */
3143
3144int
3145main ()
3146{
3147
3148 ;
3149 return 0;
3150}
3151_ACEOF
3152if ac_fn_c_try_compile "$LINENO"; then :
3153 ac_cv_prog_cc_g=yes
3154else
3155 CFLAGS=""
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157/* end confdefs.h. */
3158
3159int
3160main ()
3161{
3162
3163 ;
3164 return 0;
3165}
3166_ACEOF
3167if ac_fn_c_try_compile "$LINENO"; then :
3168
3169else
3170 ac_c_werror_flag=$ac_save_c_werror_flag
3171 CFLAGS="-g"
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173/* end confdefs.h. */
3174
3175int
3176main ()
3177{
3178
3179 ;
3180 return 0;
3181}
3182_ACEOF
3183if ac_fn_c_try_compile "$LINENO"; then :
3184 ac_cv_prog_cc_g=yes
3185fi
3186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187fi
3188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189fi
3190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 ac_c_werror_flag=$ac_save_c_werror_flag
3192fi
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3194$as_echo "$ac_cv_prog_cc_g" >&6; }
3195if test "$ac_test_CFLAGS" = set; then
3196 CFLAGS=$ac_save_CFLAGS
3197elif test $ac_cv_prog_cc_g = yes; then
3198 if test "$GCC" = yes; then
3199 CFLAGS="-g -O2"
3200 else
3201 CFLAGS="-g"
3202 fi
3203else
3204 if test "$GCC" = yes; then
3205 CFLAGS="-O2"
3206 else
3207 CFLAGS=
3208 fi
3209fi
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3211$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3212if ${ac_cv_prog_cc_c89+:} false; then :
6bb11ab3
L
3213 $as_echo_n "(cached) " >&6
3214else
3215 ac_cv_prog_cc_c89=no
3216ac_save_CC=$CC
3217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218/* end confdefs.h. */
3219#include <stdarg.h>
3220#include <stdio.h>
d0ac1c44 3221struct stat;
6bb11ab3
L
3222/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3223struct buf { int x; };
3224FILE * (*rcsopen) (struct buf *, struct stat *, int);
3225static char *e (p, i)
3226 char **p;
3227 int i;
3228{
3229 return p[i];
3230}
3231static char *f (char * (*g) (char **, int), char **p, ...)
3232{
3233 char *s;
3234 va_list v;
3235 va_start (v,p);
3236 s = g (p, va_arg (v,int));
3237 va_end (v);
3238 return s;
3239}
3240
3241/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3242 function prototypes and stuff, but not '\xHH' hex character constants.
3243 These don't provoke an error unfortunately, instead are silently treated
3244 as 'x'. The following induces an error, until -std is added to get
3245 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3246 array size at least. It's necessary to write '\x00'==0 to get something
3247 that's true only with -std. */
3248int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3249
3250/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3251 inside strings and character constants. */
3252#define FOO(x) 'x'
3253int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3254
3255int test (int i, double x);
3256struct s1 {int (*f) (int a);};
3257struct s2 {int (*f) (double a);};
3258int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3259int argc;
3260char **argv;
3261int
3262main ()
3263{
3264return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3265 ;
3266 return 0;
3267}
3268_ACEOF
3269for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3270 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3271do
3272 CC="$ac_save_CC $ac_arg"
3273 if ac_fn_c_try_compile "$LINENO"; then :
3274 ac_cv_prog_cc_c89=$ac_arg
3275fi
3276rm -f core conftest.err conftest.$ac_objext
3277 test "x$ac_cv_prog_cc_c89" != "xno" && break
3278done
3279rm -f conftest.$ac_ext
3280CC=$ac_save_CC
3281
3282fi
3283# AC_CACHE_VAL
3284case "x$ac_cv_prog_cc_c89" in
3285 x)
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3287$as_echo "none needed" >&6; } ;;
3288 xno)
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3290$as_echo "unsupported" >&6; } ;;
3291 *)
3292 CC="$CC $ac_cv_prog_cc_c89"
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3294$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3295esac
3296if test "x$ac_cv_prog_cc_c89" != xno; then :
3297
3298fi
3299
3300ac_ext=c
3301ac_cpp='$CPP $CPPFLAGS'
3302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3304ac_compiler_gnu=$ac_cv_c_compiler_gnu
3305
c2783492 3306
ebe9564b
MF
3307ac_ext=c
3308ac_cpp='$CPP $CPPFLAGS'
3309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3311ac_compiler_gnu=$ac_cv_c_compiler_gnu
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3313$as_echo_n "checking how to run the C preprocessor... " >&6; }
3314# On Suns, sometimes $CPP names a directory.
3315if test -n "$CPP" && test -d "$CPP"; then
3316 CPP=
3317fi
3318if test -z "$CPP"; then
3319 if ${ac_cv_prog_CPP+:} false; then :
3320 $as_echo_n "(cached) " >&6
3321else
3322 # Double quotes because CPP needs to be expanded
3323 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3324 do
3325 ac_preproc_ok=false
3326for ac_c_preproc_warn_flag in '' yes
3327do
3328 # Use a header file that comes with gcc, so configuring glibc
3329 # with a fresh cross-compiler works.
3330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3331 # <limits.h> exists even on freestanding compilers.
3332 # On the NeXT, cc -E runs the code through the compiler's parser,
3333 # not just through cpp. "Syntax error" is here to catch this case.
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335/* end confdefs.h. */
3336#ifdef __STDC__
3337# include <limits.h>
3338#else
3339# include <assert.h>
3340#endif
3341 Syntax error
3342_ACEOF
3343if ac_fn_c_try_cpp "$LINENO"; then :
3344
3345else
3346 # Broken: fails on valid input.
3347continue
3348fi
3349rm -f conftest.err conftest.i conftest.$ac_ext
3350
3351 # OK, works on sane cases. Now check whether nonexistent headers
3352 # can be detected and how.
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354/* end confdefs.h. */
3355#include <ac_nonexistent.h>
3356_ACEOF
3357if ac_fn_c_try_cpp "$LINENO"; then :
3358 # Broken: success on invalid input.
3359continue
3360else
3361 # Passes both tests.
3362ac_preproc_ok=:
3363break
3364fi
3365rm -f conftest.err conftest.i conftest.$ac_ext
3366
3367done
3368# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3369rm -f conftest.i conftest.err conftest.$ac_ext
3370if $ac_preproc_ok; then :
3371 break
3372fi
3373
3374 done
3375 ac_cv_prog_CPP=$CPP
3376
3377fi
3378 CPP=$ac_cv_prog_CPP
3379else
3380 ac_cv_prog_CPP=$CPP
3381fi
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3383$as_echo "$CPP" >&6; }
3384ac_preproc_ok=false
3385for ac_c_preproc_warn_flag in '' yes
3386do
3387 # Use a header file that comes with gcc, so configuring glibc
3388 # with a fresh cross-compiler works.
3389 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3390 # <limits.h> exists even on freestanding compilers.
3391 # On the NeXT, cc -E runs the code through the compiler's parser,
3392 # not just through cpp. "Syntax error" is here to catch this case.
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394/* end confdefs.h. */
3395#ifdef __STDC__
3396# include <limits.h>
3397#else
3398# include <assert.h>
3399#endif
3400 Syntax error
3401_ACEOF
3402if ac_fn_c_try_cpp "$LINENO"; then :
3403
3404else
3405 # Broken: fails on valid input.
3406continue
3407fi
3408rm -f conftest.err conftest.i conftest.$ac_ext
3409
3410 # OK, works on sane cases. Now check whether nonexistent headers
3411 # can be detected and how.
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413/* end confdefs.h. */
3414#include <ac_nonexistent.h>
3415_ACEOF
3416if ac_fn_c_try_cpp "$LINENO"; then :
3417 # Broken: success on invalid input.
3418continue
3419else
3420 # Passes both tests.
3421ac_preproc_ok=:
3422break
3423fi
3424rm -f conftest.err conftest.i conftest.$ac_ext
3425
3426done
3427# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428rm -f conftest.i conftest.err conftest.$ac_ext
3429if $ac_preproc_ok; then :
3430
3431else
3432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3435See \`config.log' for more details" "$LINENO" 5; }
3436fi
3437
3438ac_ext=c
3439ac_cpp='$CPP $CPPFLAGS'
3440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443
6bb11ab3
L
3444
3445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3446$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 3447if ${ac_cv_path_GREP+:} false; then :
6bb11ab3
L
3448 $as_echo_n "(cached) " >&6
3449else
3450 if test -z "$GREP"; then
3451 ac_path_GREP_found=false
3452 # Loop through the user's path and test for each of PROGNAME-LIST
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3455do
3456 IFS=$as_save_IFS
3457 test -z "$as_dir" && as_dir=.
3458 for ac_prog in grep ggrep; do
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3461 as_fn_executable_p "$ac_path_GREP" || continue
6bb11ab3
L
3462# Check for GNU ac_path_GREP and select it if it is found.
3463 # Check for GNU $ac_path_GREP
3464case `"$ac_path_GREP" --version 2>&1` in
3465*GNU*)
3466 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3467*)
3468 ac_count=0
3469 $as_echo_n 0123456789 >"conftest.in"
3470 while :
3471 do
3472 cat "conftest.in" "conftest.in" >"conftest.tmp"
3473 mv "conftest.tmp" "conftest.in"
3474 cp "conftest.in" "conftest.nl"
3475 $as_echo 'GREP' >> "conftest.nl"
3476 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3477 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3478 as_fn_arith $ac_count + 1 && ac_count=$as_val
3479 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3480 # Best one so far, save it but keep looking for a better one
3481 ac_cv_path_GREP="$ac_path_GREP"
3482 ac_path_GREP_max=$ac_count
3483 fi
3484 # 10*(2^10) chars as input seems more than enough
3485 test $ac_count -gt 10 && break
3486 done
3487 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3488esac
3489
3490 $ac_path_GREP_found && break 3
3491 done
3492 done
3493 done
3494IFS=$as_save_IFS
3495 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 3496 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
3497 fi
3498else
3499 ac_cv_path_GREP=$GREP
3500fi
3501
3502fi
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3504$as_echo "$ac_cv_path_GREP" >&6; }
3505 GREP="$ac_cv_path_GREP"
3506
3507
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3509$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 3510if ${ac_cv_path_EGREP+:} false; then :
6bb11ab3
L
3511 $as_echo_n "(cached) " >&6
3512else
3513 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3514 then ac_cv_path_EGREP="$GREP -E"
3515 else
3516 if test -z "$EGREP"; then
3517 ac_path_EGREP_found=false
3518 # Loop through the user's path and test for each of PROGNAME-LIST
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3521do
3522 IFS=$as_save_IFS
3523 test -z "$as_dir" && as_dir=.
3524 for ac_prog in egrep; do
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3527 as_fn_executable_p "$ac_path_EGREP" || continue
6bb11ab3
L
3528# Check for GNU ac_path_EGREP and select it if it is found.
3529 # Check for GNU $ac_path_EGREP
3530case `"$ac_path_EGREP" --version 2>&1` in
3531*GNU*)
3532 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3533*)
3534 ac_count=0
3535 $as_echo_n 0123456789 >"conftest.in"
3536 while :
3537 do
3538 cat "conftest.in" "conftest.in" >"conftest.tmp"
3539 mv "conftest.tmp" "conftest.in"
3540 cp "conftest.in" "conftest.nl"
3541 $as_echo 'EGREP' >> "conftest.nl"
3542 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3543 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3544 as_fn_arith $ac_count + 1 && ac_count=$as_val
3545 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3546 # Best one so far, save it but keep looking for a better one
3547 ac_cv_path_EGREP="$ac_path_EGREP"
3548 ac_path_EGREP_max=$ac_count
3549 fi
3550 # 10*(2^10) chars as input seems more than enough
3551 test $ac_count -gt 10 && break
3552 done
3553 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3554esac
3555
3556 $ac_path_EGREP_found && break 3
3557 done
3558 done
3559 done
3560IFS=$as_save_IFS
3561 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 3562 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
3563 fi
3564else
3565 ac_cv_path_EGREP=$EGREP
3566fi
3567
3568 fi
3569fi
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3571$as_echo "$ac_cv_path_EGREP" >&6; }
3572 EGREP="$ac_cv_path_EGREP"
3573
3574
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3576$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 3577if ${ac_cv_header_stdc+:} false; then :
6bb11ab3
L
3578 $as_echo_n "(cached) " >&6
3579else
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581/* end confdefs.h. */
3582#include <stdlib.h>
3583#include <stdarg.h>
3584#include <string.h>
3585#include <float.h>
3586
3587int
3588main ()
3589{
3590
3591 ;
3592 return 0;
3593}
3594_ACEOF
3595if ac_fn_c_try_compile "$LINENO"; then :
3596 ac_cv_header_stdc=yes
3597else
3598 ac_cv_header_stdc=no
3599fi
3600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601
3602if test $ac_cv_header_stdc = yes; then
3603 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605/* end confdefs.h. */
3606#include <string.h>
3607
3608_ACEOF
3609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3610 $EGREP "memchr" >/dev/null 2>&1; then :
3611
3612else
3613 ac_cv_header_stdc=no
3614fi
3615rm -f conftest*
3616
3617fi
3618
3619if test $ac_cv_header_stdc = yes; then
3620 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622/* end confdefs.h. */
3623#include <stdlib.h>
3624
3625_ACEOF
3626if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3627 $EGREP "free" >/dev/null 2>&1; then :
3628
3629else
3630 ac_cv_header_stdc=no
3631fi
3632rm -f conftest*
3633
3634fi
3635
3636if test $ac_cv_header_stdc = yes; then
3637 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3638 if test "$cross_compiling" = yes; then :
3639 :
3640else
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642/* end confdefs.h. */
3643#include <ctype.h>
3644#include <stdlib.h>
3645#if ((' ' & 0x0FF) == 0x020)
3646# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3647# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3648#else
3649# define ISLOWER(c) \
3650 (('a' <= (c) && (c) <= 'i') \
3651 || ('j' <= (c) && (c) <= 'r') \
3652 || ('s' <= (c) && (c) <= 'z'))
3653# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3654#endif
3655
3656#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3657int
3658main ()
3659{
3660 int i;
3661 for (i = 0; i < 256; i++)
3662 if (XOR (islower (i), ISLOWER (i))
3663 || toupper (i) != TOUPPER (i))
3664 return 2;
3665 return 0;
3666}
3667_ACEOF
3668if ac_fn_c_try_run "$LINENO"; then :
3669
3670else
3671 ac_cv_header_stdc=no
3672fi
3673rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3674 conftest.$ac_objext conftest.beam conftest.$ac_ext
3675fi
3676
3677fi
3678fi
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3680$as_echo "$ac_cv_header_stdc" >&6; }
3681if test $ac_cv_header_stdc = yes; then
3682
3683$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3684
3685fi
3686
3687# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3688for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3689 inttypes.h stdint.h unistd.h
3690do :
3691 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3692ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3693"
d0ac1c44 3694if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
3695 cat >>confdefs.h <<_ACEOF
3696#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3697_ACEOF
3698
3699fi
3700
3701done
3702
3703
3704
3705 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 3706if test "x$ac_cv_header_minix_config_h" = xyes; then :
6bb11ab3
L
3707 MINIX=yes
3708else
3709 MINIX=
3710fi
3711
3712
3713 if test "$MINIX" = yes; then
3714
3715$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3716
3717
3718$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3719
3720
3721$as_echo "#define _MINIX 1" >>confdefs.h
3722
3723 fi
3724
3725
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3727$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 3728if ${ac_cv_safe_to_define___extensions__+:} false; then :
6bb11ab3
L
3729 $as_echo_n "(cached) " >&6
3730else
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732/* end confdefs.h. */
3733
d0ac1c44
SM
3734# define __EXTENSIONS__ 1
3735 $ac_includes_default
6bb11ab3
L
3736int
3737main ()
3738{
3739
3740 ;
3741 return 0;
3742}
3743_ACEOF
3744if ac_fn_c_try_compile "$LINENO"; then :
3745 ac_cv_safe_to_define___extensions__=yes
3746else
3747 ac_cv_safe_to_define___extensions__=no
3748fi
3749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750fi
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3752$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3753 test $ac_cv_safe_to_define___extensions__ = yes &&
3754 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3755
3756 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3757
3758 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3759
3760 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3761
3762 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3763
3764
3765test "$program_prefix" != NONE &&
3766 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3767# Use a double $ so make ignores it.
3768test "$program_suffix" != NONE &&
3769 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3770# Double any \ or $.
3771# By default was `s,x,x', remove it if useless.
3772ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3773program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3774
3775# Find a good install program. We prefer a C program (faster),
3776# so one script is as good as another. But avoid the broken or
3777# incompatible versions:
3778# SysV /etc/install, /usr/sbin/install
3779# SunOS /usr/etc/install
3780# IRIX /sbin/install
3781# AIX /bin/install
3782# AmigaOS /C/install, which installs bootblocks on floppy discs
3783# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3784# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3785# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3786# OS/2's system install, which has a completely different semantic
3787# ./install, which can be erroneously created by make from ./install.sh.
3788# Reject install programs that cannot install multiple files.
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3790$as_echo_n "checking for a BSD-compatible install... " >&6; }
3791if test -z "$INSTALL"; then
d0ac1c44 3792if ${ac_cv_path_install+:} false; then :
6bb11ab3
L
3793 $as_echo_n "(cached) " >&6
3794else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 # Account for people who put trailing slashes in PATH elements.
3801case $as_dir/ in #((
3802 ./ | .// | /[cC]/* | \
3803 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3804 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3805 /usr/ucb/* ) ;;
3806 *)
3807 # OSF1 and SCO ODT 3.0 have their own names for install.
3808 # Don't use installbsd from OSF since it installs stuff as root
3809 # by default.
3810 for ac_prog in ginstall scoinst install; do
3811 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3812 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6bb11ab3
L
3813 if test $ac_prog = install &&
3814 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3815 # AIX install. It has an incompatible calling convention.
3816 :
3817 elif test $ac_prog = install &&
3818 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3819 # program-specific install script used by HP pwplus--don't use.
3820 :
3821 else
3822 rm -rf conftest.one conftest.two conftest.dir
3823 echo one > conftest.one
3824 echo two > conftest.two
3825 mkdir conftest.dir
3826 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3827 test -s conftest.one && test -s conftest.two &&
3828 test -s conftest.dir/conftest.one &&
3829 test -s conftest.dir/conftest.two
3830 then
3831 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3832 break 3
3833 fi
3834 fi
3835 fi
3836 done
3837 done
3838 ;;
3839esac
3840
3841 done
3842IFS=$as_save_IFS
3843
3844rm -rf conftest.one conftest.two conftest.dir
3845
3846fi
3847 if test "${ac_cv_path_install+set}" = set; then
3848 INSTALL=$ac_cv_path_install
3849 else
3850 # As a last resort, use the slow shell script. Don't cache a
3851 # value for INSTALL within a source directory, because that will
3852 # break other packages using the cache if that directory is
3853 # removed, or if the value is a relative name.
3854 INSTALL=$ac_install_sh
3855 fi
3856fi
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3858$as_echo "$INSTALL" >&6; }
3859
3860# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3861# It thinks the first close brace ends the variable substitution.
3862test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3863
3864test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3865
3866test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3867
3868rm -rf .tst 2>/dev/null
3869mkdir .tst 2>/dev/null
3870if test -d .tst; then
3871 am__leading_dot=.
3872else
3873 am__leading_dot=_
3874fi
3875rmdir .tst 2>/dev/null
3876
3877DEPDIR="${am__leading_dot}deps"
37e9f182
MF
3878
3879
3880
3881
3882 for ac_func in $ac_func_list
3883do :
3884 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3885ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3886if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3887 cat >>confdefs.h <<_ACEOF
3888#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3889_ACEOF
3890
3891fi
3892done
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
6bb11ab3
L
3913
3914case `pwd` in
3915 *\ * | *\ *)
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3917$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3918esac
3919
3920
3921
3922macro_version='2.2.7a'
3923macro_revision='1.3134'
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937ltmain="$ac_aux_dir/ltmain.sh"
3938
3939# Backslashify metacharacters that are still active within
3940# double-quoted strings.
3941sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3942
3943# Same as above, but do not quote variable references.
3944double_quote_subst='s/\(["`\\]\)/\\\1/g'
3945
3946# Sed substitution to delay expansion of an escaped shell variable in a
3947# double_quote_subst'ed string.
3948delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3949
3950# Sed substitution to delay expansion of an escaped single quote.
3951delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3952
3953# Sed substitution to avoid accidental globbing in evaled expressions
3954no_glob_subst='s/\*/\\\*/g'
3955
3956ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3957ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3958ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3959
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3961$as_echo_n "checking how to print strings... " >&6; }
3962# Test print first, because it will be a builtin if present.
3963if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3964 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3965 ECHO='print -r --'
3966elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3967 ECHO='printf %s\n'
3968else
3969 # Use this function as a fallback that always works.
3970 func_fallback_echo ()
3971 {
3972 eval 'cat <<_LTECHO_EOF
3973$1
3974_LTECHO_EOF'
3975 }
3976 ECHO='func_fallback_echo'
3977fi
3978
3979# func_echo_all arg...
3980# Invoke $ECHO with all args, space-separated.
3981func_echo_all ()
3982{
3983 $ECHO ""
3984}
3985
3986case "$ECHO" in
3987 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3988$as_echo "printf" >&6; } ;;
3989 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3990$as_echo "print -r" >&6; } ;;
3991 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3992$as_echo "cat" >&6; } ;;
3993esac
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4009$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 4010if ${ac_cv_path_SED+:} false; then :
6bb11ab3
L
4011 $as_echo_n "(cached) " >&6
4012else
4013 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4014 for ac_i in 1 2 3 4 5 6 7; do
4015 ac_script="$ac_script$as_nl$ac_script"
4016 done
4017 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4018 { ac_script=; unset ac_script;}
4019 if test -z "$SED"; then
4020 ac_path_SED_found=false
4021 # Loop through the user's path and test for each of PROGNAME-LIST
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023for as_dir in $PATH
4024do
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
4027 for ac_prog in sed gsed; do
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4030 as_fn_executable_p "$ac_path_SED" || continue
6bb11ab3
L
4031# Check for GNU ac_path_SED and select it if it is found.
4032 # Check for GNU $ac_path_SED
4033case `"$ac_path_SED" --version 2>&1` in
4034*GNU*)
4035 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4036*)
4037 ac_count=0
4038 $as_echo_n 0123456789 >"conftest.in"
4039 while :
4040 do
4041 cat "conftest.in" "conftest.in" >"conftest.tmp"
4042 mv "conftest.tmp" "conftest.in"
4043 cp "conftest.in" "conftest.nl"
4044 $as_echo '' >> "conftest.nl"
4045 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4047 as_fn_arith $ac_count + 1 && ac_count=$as_val
4048 if test $ac_count -gt ${ac_path_SED_max-0}; then
4049 # Best one so far, save it but keep looking for a better one
4050 ac_cv_path_SED="$ac_path_SED"
4051 ac_path_SED_max=$ac_count
4052 fi
4053 # 10*(2^10) chars as input seems more than enough
4054 test $ac_count -gt 10 && break
4055 done
4056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4057esac
4058
4059 $ac_path_SED_found && break 3
4060 done
4061 done
4062 done
4063IFS=$as_save_IFS
4064 if test -z "$ac_cv_path_SED"; then
d0ac1c44 4065 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6bb11ab3
L
4066 fi
4067else
4068 ac_cv_path_SED=$SED
4069fi
4070
4071fi
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4073$as_echo "$ac_cv_path_SED" >&6; }
4074 SED="$ac_cv_path_SED"
4075 rm -f conftest.sed
4076
4077test -z "$SED" && SED=sed
4078Xsed="$SED -e 1s/^X//"
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4091$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 4092if ${ac_cv_path_FGREP+:} false; then :
6bb11ab3
L
4093 $as_echo_n "(cached) " >&6
4094else
4095 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4096 then ac_cv_path_FGREP="$GREP -F"
4097 else
4098 if test -z "$FGREP"; then
4099 ac_path_FGREP_found=false
4100 # Loop through the user's path and test for each of PROGNAME-LIST
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4103do
4104 IFS=$as_save_IFS
4105 test -z "$as_dir" && as_dir=.
4106 for ac_prog in fgrep; do
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4109 as_fn_executable_p "$ac_path_FGREP" || continue
6bb11ab3
L
4110# Check for GNU ac_path_FGREP and select it if it is found.
4111 # Check for GNU $ac_path_FGREP
4112case `"$ac_path_FGREP" --version 2>&1` in
4113*GNU*)
4114 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4115*)
4116 ac_count=0
4117 $as_echo_n 0123456789 >"conftest.in"
4118 while :
4119 do
4120 cat "conftest.in" "conftest.in" >"conftest.tmp"
4121 mv "conftest.tmp" "conftest.in"
4122 cp "conftest.in" "conftest.nl"
4123 $as_echo 'FGREP' >> "conftest.nl"
4124 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4125 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4126 as_fn_arith $ac_count + 1 && ac_count=$as_val
4127 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4128 # Best one so far, save it but keep looking for a better one
4129 ac_cv_path_FGREP="$ac_path_FGREP"
4130 ac_path_FGREP_max=$ac_count
4131 fi
4132 # 10*(2^10) chars as input seems more than enough
4133 test $ac_count -gt 10 && break
4134 done
4135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4136esac
4137
4138 $ac_path_FGREP_found && break 3
4139 done
4140 done
4141 done
4142IFS=$as_save_IFS
4143 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 4144 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
4145 fi
4146else
4147 ac_cv_path_FGREP=$FGREP
4148fi
4149
4150 fi
4151fi
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4153$as_echo "$ac_cv_path_FGREP" >&6; }
4154 FGREP="$ac_cv_path_FGREP"
4155
4156
4157test -z "$GREP" && GREP=grep
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177# Check whether --with-gnu-ld was given.
4178if test "${with_gnu_ld+set}" = set; then :
4179 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4180else
4181 with_gnu_ld=no
4182fi
4183
4184ac_prog=ld
4185if test "$GCC" = yes; then
4186 # Check if gcc -print-prog-name=ld gives a path.
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4188$as_echo_n "checking for ld used by $CC... " >&6; }
4189 case $host in
4190 *-*-mingw*)
4191 # gcc leaves a trailing carriage return which upsets mingw
4192 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4193 *)
4194 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4195 esac
4196 case $ac_prog in
4197 # Accept absolute paths.
4198 [\\/]* | ?:[\\/]*)
4199 re_direlt='/[^/][^/]*/\.\./'
4200 # Canonicalize the pathname of ld
4201 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4202 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4203 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4204 done
4205 test -z "$LD" && LD="$ac_prog"
4206 ;;
4207 "")
4208 # If it fails, then pretend we aren't using GCC.
4209 ac_prog=ld
4210 ;;
4211 *)
4212 # If it is relative, then search for the first ld in PATH.
4213 with_gnu_ld=unknown
4214 ;;
4215 esac
4216elif test "$with_gnu_ld" = yes; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4218$as_echo_n "checking for GNU ld... " >&6; }
4219else
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4221$as_echo_n "checking for non-GNU ld... " >&6; }
4222fi
d0ac1c44 4223if ${lt_cv_path_LD+:} false; then :
6bb11ab3
L
4224 $as_echo_n "(cached) " >&6
4225else
4226 if test -z "$LD"; then
4227 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4228 for ac_dir in $PATH; do
4229 IFS="$lt_save_ifs"
4230 test -z "$ac_dir" && ac_dir=.
4231 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4232 lt_cv_path_LD="$ac_dir/$ac_prog"
4233 # Check to see if the program is GNU ld. I'd rather use --version,
4234 # but apparently some variants of GNU ld only accept -v.
4235 # Break only if it was the GNU/non-GNU ld that we prefer.
4236 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4237 *GNU* | *'with BFD'*)
4238 test "$with_gnu_ld" != no && break
4239 ;;
4240 *)
4241 test "$with_gnu_ld" != yes && break
4242 ;;
4243 esac
4244 fi
4245 done
4246 IFS="$lt_save_ifs"
4247else
4248 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4249fi
4250fi
4251
4252LD="$lt_cv_path_LD"
4253if test -n "$LD"; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4255$as_echo "$LD" >&6; }
4256else
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258$as_echo "no" >&6; }
4259fi
d0ac1c44 4260test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6bb11ab3
L
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4262$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 4263if ${lt_cv_prog_gnu_ld+:} false; then :
6bb11ab3
L
4264 $as_echo_n "(cached) " >&6
4265else
4266 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4267case `$LD -v 2>&1 </dev/null` in
4268*GNU* | *'with BFD'*)
4269 lt_cv_prog_gnu_ld=yes
4270 ;;
4271*)
4272 lt_cv_prog_gnu_ld=no
4273 ;;
4274esac
4275fi
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4277$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4278with_gnu_ld=$lt_cv_prog_gnu_ld
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4289$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 4290if ${lt_cv_path_NM+:} false; then :
6bb11ab3
L
4291 $as_echo_n "(cached) " >&6
4292else
4293 if test -n "$NM"; then
4294 # Let the user override the test.
4295 lt_cv_path_NM="$NM"
4296else
4297 lt_nm_to_check="${ac_tool_prefix}nm"
4298 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4299 lt_nm_to_check="$lt_nm_to_check nm"
4300 fi
4301 for lt_tmp_nm in $lt_nm_to_check; do
4302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4303 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4304 IFS="$lt_save_ifs"
4305 test -z "$ac_dir" && ac_dir=.
4306 tmp_nm="$ac_dir/$lt_tmp_nm"
4307 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4308 # Check to see if the nm accepts a BSD-compat flag.
4309 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4310 # nm: unknown option "B" ignored
4311 # Tru64's nm complains that /dev/null is an invalid object file
4312 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4313 */dev/null* | *'Invalid file or object type'*)
4314 lt_cv_path_NM="$tmp_nm -B"
4315 break
4316 ;;
4317 *)
4318 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4319 */dev/null*)
4320 lt_cv_path_NM="$tmp_nm -p"
4321 break
4322 ;;
4323 *)
4324 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4325 continue # so that we can try to find one that supports BSD flags
4326 ;;
4327 esac
4328 ;;
4329 esac
4330 fi
4331 done
4332 IFS="$lt_save_ifs"
4333 done
4334 : ${lt_cv_path_NM=no}
4335fi
4336fi
4337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4338$as_echo "$lt_cv_path_NM" >&6; }
4339if test "$lt_cv_path_NM" != "no"; then
4340 NM="$lt_cv_path_NM"
4341else
4342 # Didn't find any BSD compatible name lister, look for dumpbin.
4343 if test -n "$DUMPBIN"; then :
4344 # Let the user override the test.
4345 else
4346 if test -n "$ac_tool_prefix"; then
4347 for ac_prog in dumpbin "link -dump"
4348 do
4349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4350set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4353if ${ac_cv_prog_DUMPBIN+:} false; then :
6bb11ab3
L
4354 $as_echo_n "(cached) " >&6
4355else
4356 if test -n "$DUMPBIN"; then
4357 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4358else
4359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360for as_dir in $PATH
4361do
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4366 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 2
4369 fi
4370done
4371 done
4372IFS=$as_save_IFS
4373
4374fi
4375fi
4376DUMPBIN=$ac_cv_prog_DUMPBIN
4377if test -n "$DUMPBIN"; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4379$as_echo "$DUMPBIN" >&6; }
4380else
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382$as_echo "no" >&6; }
4383fi
4384
4385
4386 test -n "$DUMPBIN" && break
4387 done
4388fi
4389if test -z "$DUMPBIN"; then
4390 ac_ct_DUMPBIN=$DUMPBIN
4391 for ac_prog in dumpbin "link -dump"
4392do
4393 # Extract the first word of "$ac_prog", so it can be a program name with args.
4394set dummy $ac_prog; ac_word=$2
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4397if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6bb11ab3
L
4398 $as_echo_n "(cached) " >&6
4399else
4400 if test -n "$ac_ct_DUMPBIN"; then
4401 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4402else
4403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404for as_dir in $PATH
4405do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4410 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414done
4415 done
4416IFS=$as_save_IFS
4417
4418fi
4419fi
4420ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4421if test -n "$ac_ct_DUMPBIN"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4423$as_echo "$ac_ct_DUMPBIN" >&6; }
4424else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426$as_echo "no" >&6; }
4427fi
4428
4429
4430 test -n "$ac_ct_DUMPBIN" && break
4431done
4432
4433 if test "x$ac_ct_DUMPBIN" = x; then
4434 DUMPBIN=":"
4435 else
4436 case $cross_compiling:$ac_tool_warned in
4437yes:)
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4440ac_tool_warned=yes ;;
4441esac
4442 DUMPBIN=$ac_ct_DUMPBIN
4443 fi
4444fi
4445
4446 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4447 *COFF*)
4448 DUMPBIN="$DUMPBIN -symbols"
4449 ;;
4450 *)
4451 DUMPBIN=:
4452 ;;
4453 esac
4454 fi
4455
4456 if test "$DUMPBIN" != ":"; then
4457 NM="$DUMPBIN"
4458 fi
4459fi
4460test -z "$NM" && NM=nm
4461
4462
4463
4464
4465
4466
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4468$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 4469if ${lt_cv_nm_interface+:} false; then :
6bb11ab3
L
4470 $as_echo_n "(cached) " >&6
4471else
4472 lt_cv_nm_interface="BSD nm"
4473 echo "int some_variable = 0;" > conftest.$ac_ext
4474 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4475 (eval "$ac_compile" 2>conftest.err)
4476 cat conftest.err >&5
4477 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4478 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4479 cat conftest.err >&5
4480 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4481 cat conftest.out >&5
4482 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4483 lt_cv_nm_interface="MS dumpbin"
4484 fi
4485 rm -f conftest*
4486fi
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4488$as_echo "$lt_cv_nm_interface" >&6; }
4489
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4491$as_echo_n "checking whether ln -s works... " >&6; }
4492LN_S=$as_ln_s
4493if test "$LN_S" = "ln -s"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4495$as_echo "yes" >&6; }
4496else
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4498$as_echo "no, using $LN_S" >&6; }
4499fi
4500
4501# find the maximum length of command line arguments
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4503$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 4504if ${lt_cv_sys_max_cmd_len+:} false; then :
6bb11ab3
L
4505 $as_echo_n "(cached) " >&6
4506else
4507 i=0
4508 teststring="ABCD"
4509
4510 case $build_os in
4511 msdosdjgpp*)
4512 # On DJGPP, this test can blow up pretty badly due to problems in libc
4513 # (any single argument exceeding 2000 bytes causes a buffer overrun
4514 # during glob expansion). Even if it were fixed, the result of this
4515 # check would be larger than it should be.
4516 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4517 ;;
4518
4519 gnu*)
4520 # Under GNU Hurd, this test is not required because there is
4521 # no limit to the length of command line arguments.
4522 # Libtool will interpret -1 as no limit whatsoever
4523 lt_cv_sys_max_cmd_len=-1;
4524 ;;
4525
4526 cygwin* | mingw* | cegcc*)
4527 # On Win9x/ME, this test blows up -- it succeeds, but takes
4528 # about 5 minutes as the teststring grows exponentially.
4529 # Worse, since 9x/ME are not pre-emptively multitasking,
4530 # you end up with a "frozen" computer, even though with patience
4531 # the test eventually succeeds (with a max line length of 256k).
4532 # Instead, let's just punt: use the minimum linelength reported by
4533 # all of the supported platforms: 8192 (on NT/2K/XP).
4534 lt_cv_sys_max_cmd_len=8192;
4535 ;;
4536
4537 mint*)
4538 # On MiNT this can take a long time and run out of memory.
4539 lt_cv_sys_max_cmd_len=8192;
4540 ;;
4541
4542 amigaos*)
4543 # On AmigaOS with pdksh, this test takes hours, literally.
4544 # So we just punt and use a minimum line length of 8192.
4545 lt_cv_sys_max_cmd_len=8192;
4546 ;;
4547
4548 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4549 # This has been around since 386BSD, at least. Likely further.
4550 if test -x /sbin/sysctl; then
4551 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4552 elif test -x /usr/sbin/sysctl; then
4553 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4554 else
4555 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4556 fi
4557 # And add a safety zone
4558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4559 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4560 ;;
4561
4562 interix*)
4563 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4564 lt_cv_sys_max_cmd_len=196608
4565 ;;
4566
4567 osf*)
4568 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4569 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4570 # nice to cause kernel panics so lets avoid the loop below.
4571 # First set a reasonable default.
4572 lt_cv_sys_max_cmd_len=16384
4573 #
4574 if test -x /sbin/sysconfig; then
4575 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4576 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4577 esac
4578 fi
4579 ;;
4580 sco3.2v5*)
4581 lt_cv_sys_max_cmd_len=102400
4582 ;;
4583 sysv5* | sco5v6* | sysv4.2uw2*)
4584 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4585 if test -n "$kargmax"; then
4586 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4587 else
4588 lt_cv_sys_max_cmd_len=32768
4589 fi
4590 ;;
4591 *)
4592 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4593 if test -n "$lt_cv_sys_max_cmd_len"; then
4594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4596 else
4597 # Make teststring a little bigger before we do anything with it.
4598 # a 1K string should be a reasonable start.
4599 for i in 1 2 3 4 5 6 7 8 ; do
4600 teststring=$teststring$teststring
4601 done
4602 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4603 # If test is not a shell built-in, we'll probably end up computing a
4604 # maximum length that is only half of the actual maximum length, but
4605 # we can't tell.
4606 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4607 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4608 test $i != 17 # 1/2 MB should be enough
4609 do
4610 i=`expr $i + 1`
4611 teststring=$teststring$teststring
4612 done
4613 # Only check the string length outside the loop.
4614 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4615 teststring=
4616 # Add a significant safety factor because C++ compilers can tack on
4617 # massive amounts of additional arguments before passing them to the
4618 # linker. It appears as though 1/2 is a usable value.
4619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4620 fi
4621 ;;
4622 esac
4623
4624fi
4625
4626if test -n $lt_cv_sys_max_cmd_len ; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4628$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4629else
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4631$as_echo "none" >&6; }
4632fi
4633max_cmd_len=$lt_cv_sys_max_cmd_len
4634
4635
4636
4637
4638
4639
4640: ${CP="cp -f"}
4641: ${MV="mv -f"}
4642: ${RM="rm -f"}
4643
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4645$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4646# Try some XSI features
4647xsi_shell=no
4648( _lt_dummy="a/b/c"
4649 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4650 = c,a/b,, \
4651 && eval 'test $(( 1 + 1 )) -eq 2 \
4652 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4653 && xsi_shell=yes
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4655$as_echo "$xsi_shell" >&6; }
4656
4657
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4659$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4660lt_shell_append=no
4661( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4662 >/dev/null 2>&1 \
4663 && lt_shell_append=yes
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4665$as_echo "$lt_shell_append" >&6; }
4666
4667
4668if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4669 lt_unset=unset
4670else
4671 lt_unset=false
4672fi
4673
4674
4675
4676
4677
4678# test EBCDIC or ASCII
4679case `echo X|tr X '\101'` in
4680 A) # ASCII based system
4681 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4682 lt_SP2NL='tr \040 \012'
4683 lt_NL2SP='tr \015\012 \040\040'
4684 ;;
4685 *) # EBCDIC based system
4686 lt_SP2NL='tr \100 \n'
4687 lt_NL2SP='tr \r\n \100\100'
4688 ;;
4689esac
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4700$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 4701if ${lt_cv_ld_reload_flag+:} false; then :
6bb11ab3
L
4702 $as_echo_n "(cached) " >&6
4703else
4704 lt_cv_ld_reload_flag='-r'
4705fi
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4707$as_echo "$lt_cv_ld_reload_flag" >&6; }
4708reload_flag=$lt_cv_ld_reload_flag
4709case $reload_flag in
4710"" | " "*) ;;
4711*) reload_flag=" $reload_flag" ;;
4712esac
4713reload_cmds='$LD$reload_flag -o $output$reload_objs'
4714case $host_os in
4715 darwin*)
4716 if test "$GCC" = yes; then
4717 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4718 else
4719 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4720 fi
4721 ;;
4722esac
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732if test -n "$ac_tool_prefix"; then
4733 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4734set dummy ${ac_tool_prefix}objdump; ac_word=$2
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4737if ${ac_cv_prog_OBJDUMP+:} false; then :
6bb11ab3
L
4738 $as_echo_n "(cached) " >&6
4739else
4740 if test -n "$OBJDUMP"; then
4741 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4742else
4743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744for as_dir in $PATH
4745do
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4750 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 break 2
4753 fi
4754done
4755 done
4756IFS=$as_save_IFS
4757
4758fi
4759fi
4760OBJDUMP=$ac_cv_prog_OBJDUMP
4761if test -n "$OBJDUMP"; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4763$as_echo "$OBJDUMP" >&6; }
4764else
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766$as_echo "no" >&6; }
4767fi
4768
4769
4770fi
4771if test -z "$ac_cv_prog_OBJDUMP"; then
4772 ac_ct_OBJDUMP=$OBJDUMP
4773 # Extract the first word of "objdump", so it can be a program name with args.
4774set dummy objdump; ac_word=$2
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4776$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4777if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6bb11ab3
L
4778 $as_echo_n "(cached) " >&6
4779else
4780 if test -n "$ac_ct_OBJDUMP"; then
4781 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4782else
4783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784for as_dir in $PATH
4785do
4786 IFS=$as_save_IFS
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4790 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 break 2
4793 fi
4794done
4795 done
4796IFS=$as_save_IFS
4797
4798fi
4799fi
4800ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4801if test -n "$ac_ct_OBJDUMP"; then
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4803$as_echo "$ac_ct_OBJDUMP" >&6; }
4804else
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806$as_echo "no" >&6; }
4807fi
4808
4809 if test "x$ac_ct_OBJDUMP" = x; then
4810 OBJDUMP="false"
4811 else
4812 case $cross_compiling:$ac_tool_warned in
4813yes:)
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4816ac_tool_warned=yes ;;
4817esac
4818 OBJDUMP=$ac_ct_OBJDUMP
4819 fi
4820else
4821 OBJDUMP="$ac_cv_prog_OBJDUMP"
4822fi
4823
4824test -z "$OBJDUMP" && OBJDUMP=objdump
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4835$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 4836if ${lt_cv_deplibs_check_method+:} false; then :
6bb11ab3
L
4837 $as_echo_n "(cached) " >&6
4838else
4839 lt_cv_file_magic_cmd='$MAGIC_CMD'
4840lt_cv_file_magic_test_file=
4841lt_cv_deplibs_check_method='unknown'
4842# Need to set the preceding variable on all platforms that support
4843# interlibrary dependencies.
4844# 'none' -- dependencies not supported.
4845# `unknown' -- same as none, but documents that we really don't know.
4846# 'pass_all' -- all dependencies passed with no checks.
4847# 'test_compile' -- check by making test program.
4848# 'file_magic [[regex]]' -- check by looking for files in library path
4849# which responds to the $file_magic_cmd with a given extended regex.
4850# If you have `file' or equivalent on your system and you're not sure
4851# whether `pass_all' will *always* work, you probably want this one.
4852
4853case $host_os in
4854aix[4-9]*)
4855 lt_cv_deplibs_check_method=pass_all
4856 ;;
4857
4858beos*)
4859 lt_cv_deplibs_check_method=pass_all
4860 ;;
4861
4862bsdi[45]*)
4863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4864 lt_cv_file_magic_cmd='/usr/bin/file -L'
4865 lt_cv_file_magic_test_file=/shlib/libc.so
4866 ;;
4867
4868cygwin*)
4869 # func_win32_libid is a shell function defined in ltmain.sh
4870 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4871 lt_cv_file_magic_cmd='func_win32_libid'
4872 ;;
4873
4874mingw* | pw32*)
4875 # Base MSYS/MinGW do not provide the 'file' command needed by
4876 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4877 # unless we find 'file', for example because we are cross-compiling.
4878 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4879 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4880 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4881 lt_cv_file_magic_cmd='func_win32_libid'
4882 else
4883 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4884 lt_cv_file_magic_cmd='$OBJDUMP -f'
4885 fi
4886 ;;
4887
4888cegcc*)
4889 # use the weaker test based on 'objdump'. See mingw*.
4890 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4891 lt_cv_file_magic_cmd='$OBJDUMP -f'
4892 ;;
4893
4894darwin* | rhapsody*)
4895 lt_cv_deplibs_check_method=pass_all
4896 ;;
4897
4898freebsd* | dragonfly*)
4899 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4900 case $host_cpu in
4901 i*86 )
4902 # Not sure whether the presence of OpenBSD here was a mistake.
4903 # Let's accept both of them until this is cleared up.
4904 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4905 lt_cv_file_magic_cmd=/usr/bin/file
4906 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4907 ;;
4908 esac
4909 else
4910 lt_cv_deplibs_check_method=pass_all
4911 fi
4912 ;;
4913
4914gnu*)
4915 lt_cv_deplibs_check_method=pass_all
4916 ;;
4917
4918haiku*)
4919 lt_cv_deplibs_check_method=pass_all
4920 ;;
4921
4922hpux10.20* | hpux11*)
4923 lt_cv_file_magic_cmd=/usr/bin/file
4924 case $host_cpu in
4925 ia64*)
4926 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4927 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4928 ;;
4929 hppa*64*)
4930 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]'
4931 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4932 ;;
4933 *)
4934 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4935 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4936 ;;
4937 esac
4938 ;;
4939
4940interix[3-9]*)
4941 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4943 ;;
4944
4945irix5* | irix6* | nonstopux*)
4946 case $LD in
4947 *-32|*"-32 ") libmagic=32-bit;;
4948 *-n32|*"-n32 ") libmagic=N32;;
4949 *-64|*"-64 ") libmagic=64-bit;;
4950 *) libmagic=never-match;;
4951 esac
4952 lt_cv_deplibs_check_method=pass_all
4953 ;;
4954
4955# This must be Linux ELF.
4956linux* | k*bsd*-gnu | kopensolaris*-gnu)
4957 lt_cv_deplibs_check_method=pass_all
4958 ;;
4959
4960netbsd*)
4961 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4962 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4963 else
4964 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4965 fi
4966 ;;
4967
4968newos6*)
4969 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4970 lt_cv_file_magic_cmd=/usr/bin/file
4971 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4972 ;;
4973
4974*nto* | *qnx*)
4975 lt_cv_deplibs_check_method=pass_all
4976 ;;
4977
4978openbsd*)
4979 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4980 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4981 else
4982 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4983 fi
4984 ;;
4985
4986osf3* | osf4* | osf5*)
4987 lt_cv_deplibs_check_method=pass_all
4988 ;;
4989
4990rdos*)
4991 lt_cv_deplibs_check_method=pass_all
4992 ;;
4993
4994solaris*)
4995 lt_cv_deplibs_check_method=pass_all
4996 ;;
4997
4998sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4999 lt_cv_deplibs_check_method=pass_all
5000 ;;
5001
5002sysv4 | sysv4.3*)
5003 case $host_vendor in
5004 motorola)
5005 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]'
5006 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5007 ;;
5008 ncr)
5009 lt_cv_deplibs_check_method=pass_all
5010 ;;
5011 sequent)
5012 lt_cv_file_magic_cmd='/bin/file'
5013 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5014 ;;
5015 sni)
5016 lt_cv_file_magic_cmd='/bin/file'
5017 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5018 lt_cv_file_magic_test_file=/lib/libc.so
5019 ;;
5020 siemens)
5021 lt_cv_deplibs_check_method=pass_all
5022 ;;
5023 pc)
5024 lt_cv_deplibs_check_method=pass_all
5025 ;;
5026 esac
5027 ;;
5028
5029tpf*)
5030 lt_cv_deplibs_check_method=pass_all
5031 ;;
5032esac
5033
5034fi
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5036$as_echo "$lt_cv_deplibs_check_method" >&6; }
5037file_magic_cmd=$lt_cv_file_magic_cmd
5038deplibs_check_method=$lt_cv_deplibs_check_method
5039test -z "$deplibs_check_method" && deplibs_check_method=unknown
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
68ed2854
MF
5052plugin_option=
5053plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5054for plugin in $plugin_names; do
5055 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5056 if test x$plugin_so = x$plugin; then
5057 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5058 fi
5059 if test x$plugin_so != x$plugin; then
5060 plugin_option="--plugin $plugin_so"
5061 break
5062 fi
5063done
5064
6bb11ab3
L
5065if test -n "$ac_tool_prefix"; then
5066 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5067set dummy ${ac_tool_prefix}ar; ac_word=$2
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5070if ${ac_cv_prog_AR+:} false; then :
6bb11ab3
L
5071 $as_echo_n "(cached) " >&6
5072else
5073 if test -n "$AR"; then
5074 ac_cv_prog_AR="$AR" # Let the user override the test.
5075else
5076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077for as_dir in $PATH
5078do
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5083 ac_cv_prog_AR="${ac_tool_prefix}ar"
5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 break 2
5086 fi
5087done
5088 done
5089IFS=$as_save_IFS
5090
5091fi
5092fi
5093AR=$ac_cv_prog_AR
5094if test -n "$AR"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5096$as_echo "$AR" >&6; }
5097else
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099$as_echo "no" >&6; }
5100fi
5101
5102
5103fi
5104if test -z "$ac_cv_prog_AR"; then
5105 ac_ct_AR=$AR
5106 # Extract the first word of "ar", so it can be a program name with args.
5107set dummy ar; ac_word=$2
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5110if ${ac_cv_prog_ac_ct_AR+:} false; then :
6bb11ab3
L
5111 $as_echo_n "(cached) " >&6
5112else
5113 if test -n "$ac_ct_AR"; then
5114 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5115else
5116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117for as_dir in $PATH
5118do
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5123 ac_cv_prog_ac_ct_AR="ar"
5124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 break 2
5126 fi
5127done
5128 done
5129IFS=$as_save_IFS
5130
5131fi
5132fi
5133ac_ct_AR=$ac_cv_prog_ac_ct_AR
5134if test -n "$ac_ct_AR"; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5136$as_echo "$ac_ct_AR" >&6; }
5137else
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139$as_echo "no" >&6; }
5140fi
5141
5142 if test "x$ac_ct_AR" = x; then
5143 AR="false"
5144 else
5145 case $cross_compiling:$ac_tool_warned in
5146yes:)
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5149ac_tool_warned=yes ;;
5150esac
5151 AR=$ac_ct_AR
5152 fi
5153else
5154 AR="$ac_cv_prog_AR"
5155fi
5156
5157test -z "$AR" && AR=ar
68ed2854
MF
5158if test -n "$plugin_option"; then
5159 if $AR --help 2>&1 | grep -q "\--plugin"; then
88f68ee2
MF
5160 touch conftest.c
5161 $AR $plugin_option rc conftest.a conftest.c
5162 if test "$?" != 0; then
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5164$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5165 else
5166 AR="$AR $plugin_option"
5167 fi
5168 rm -f conftest.*
68ed2854
MF
5169 fi
5170fi
6bb11ab3
L
5171test -z "$AR_FLAGS" && AR_FLAGS=cru
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183if test -n "$ac_tool_prefix"; then
5184 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5185set dummy ${ac_tool_prefix}strip; ac_word=$2
5186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5188if ${ac_cv_prog_STRIP+:} false; then :
6bb11ab3
L
5189 $as_echo_n "(cached) " >&6
5190else
5191 if test -n "$STRIP"; then
5192 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5193else
5194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195for as_dir in $PATH
5196do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5201 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5204 fi
5205done
5206 done
5207IFS=$as_save_IFS
5208
5209fi
5210fi
5211STRIP=$ac_cv_prog_STRIP
5212if test -n "$STRIP"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5214$as_echo "$STRIP" >&6; }
5215else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217$as_echo "no" >&6; }
5218fi
5219
5220
5221fi
5222if test -z "$ac_cv_prog_STRIP"; then
5223 ac_ct_STRIP=$STRIP
5224 # Extract the first word of "strip", so it can be a program name with args.
5225set dummy strip; ac_word=$2
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5228if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6bb11ab3
L
5229 $as_echo_n "(cached) " >&6
5230else
5231 if test -n "$ac_ct_STRIP"; then
5232 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5233else
5234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235for as_dir in $PATH
5236do
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5241 ac_cv_prog_ac_ct_STRIP="strip"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 break 2
5244 fi
5245done
5246 done
5247IFS=$as_save_IFS
5248
5249fi
5250fi
5251ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5252if test -n "$ac_ct_STRIP"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5254$as_echo "$ac_ct_STRIP" >&6; }
5255else
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257$as_echo "no" >&6; }
5258fi
5259
5260 if test "x$ac_ct_STRIP" = x; then
5261 STRIP=":"
5262 else
5263 case $cross_compiling:$ac_tool_warned in
5264yes:)
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5267ac_tool_warned=yes ;;
5268esac
5269 STRIP=$ac_ct_STRIP
5270 fi
5271else
5272 STRIP="$ac_cv_prog_STRIP"
5273fi
5274
5275test -z "$STRIP" && STRIP=:
5276
5277
5278
5279
5280
5281
5282if test -n "$ac_tool_prefix"; then
5283 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5284set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5287if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
5288 $as_echo_n "(cached) " >&6
5289else
5290 if test -n "$RANLIB"; then
5291 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5292else
5293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294for as_dir in $PATH
5295do
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5300 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5303 fi
5304done
5305 done
5306IFS=$as_save_IFS
5307
5308fi
5309fi
5310RANLIB=$ac_cv_prog_RANLIB
5311if test -n "$RANLIB"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5313$as_echo "$RANLIB" >&6; }
5314else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316$as_echo "no" >&6; }
5317fi
5318
5319
5320fi
5321if test -z "$ac_cv_prog_RANLIB"; then
5322 ac_ct_RANLIB=$RANLIB
5323 # Extract the first word of "ranlib", so it can be a program name with args.
5324set dummy ranlib; ac_word=$2
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5327if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
5328 $as_echo_n "(cached) " >&6
5329else
5330 if test -n "$ac_ct_RANLIB"; then
5331 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5332else
5333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334for as_dir in $PATH
5335do
5336 IFS=$as_save_IFS
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5340 ac_cv_prog_ac_ct_RANLIB="ranlib"
5341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 break 2
5343 fi
5344done
5345 done
5346IFS=$as_save_IFS
5347
5348fi
5349fi
5350ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5351if test -n "$ac_ct_RANLIB"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5353$as_echo "$ac_ct_RANLIB" >&6; }
5354else
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356$as_echo "no" >&6; }
5357fi
5358
5359 if test "x$ac_ct_RANLIB" = x; then
5360 RANLIB=":"
5361 else
5362 case $cross_compiling:$ac_tool_warned in
5363yes:)
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5366ac_tool_warned=yes ;;
5367esac
5368 RANLIB=$ac_ct_RANLIB
5369 fi
5370else
5371 RANLIB="$ac_cv_prog_RANLIB"
5372fi
5373
5374test -z "$RANLIB" && RANLIB=:
68ed2854
MF
5375if test -n "$plugin_option" && test "$RANLIB" != ":"; then
5376 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
5377 RANLIB="$RANLIB $plugin_option"
5378 fi
5379fi
6bb11ab3
L
5380
5381
5382
5383
5384
5385
5386# Determine commands to create old-style static archives.
5387old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5388old_postinstall_cmds='chmod 644 $oldlib'
5389old_postuninstall_cmds=
5390
5391if test -n "$RANLIB"; then
5392 case $host_os in
5393 openbsd*)
5394 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5395 ;;
5396 *)
5397 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5398 ;;
5399 esac
5400 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5401fi
5402
5403case $host_os in
5404 darwin*)
5405 lock_old_archive_extraction=yes ;;
5406 *)
5407 lock_old_archive_extraction=no ;;
5408esac
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430for ac_prog in gawk mawk nawk awk
5431do
5432 # Extract the first word of "$ac_prog", so it can be a program name with args.
5433set dummy $ac_prog; ac_word=$2
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5436if ${ac_cv_prog_AWK+:} false; then :
6bb11ab3
L
5437 $as_echo_n "(cached) " >&6
5438else
5439 if test -n "$AWK"; then
5440 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5441else
5442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443for as_dir in $PATH
5444do
5445 IFS=$as_save_IFS
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5449 ac_cv_prog_AWK="$ac_prog"
5450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 break 2
5452 fi
5453done
5454 done
5455IFS=$as_save_IFS
5456
5457fi
5458fi
5459AWK=$ac_cv_prog_AWK
5460if test -n "$AWK"; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5462$as_echo "$AWK" >&6; }
5463else
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465$as_echo "no" >&6; }
5466fi
5467
5468
5469 test -n "$AWK" && break
5470done
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490# If no C compiler was specified, use CC.
5491LTCC=${LTCC-"$CC"}
5492
5493# If no C compiler flags were specified, use CFLAGS.
5494LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5495
5496# Allow CC to be a program name with arguments.
5497compiler=$CC
5498
5499
5500# Check for command to grab the raw symbol name followed by C symbol from nm.
5501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5502$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 5503if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6bb11ab3
L
5504 $as_echo_n "(cached) " >&6
5505else
5506
5507# These are sane defaults that work on at least a few old systems.
5508# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5509
5510# Character class describing NM global symbol codes.
5511symcode='[BCDEGRST]'
5512
5513# Regexp to match symbols that can be accessed directly from C.
5514sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5515
5516# Define system-specific variables.
5517case $host_os in
5518aix*)
5519 symcode='[BCDT]'
5520 ;;
5521cygwin* | mingw* | pw32* | cegcc*)
5522 symcode='[ABCDGISTW]'
5523 ;;
5524hpux*)
5525 if test "$host_cpu" = ia64; then
5526 symcode='[ABCDEGRST]'
5527 fi
5528 ;;
5529irix* | nonstopux*)
5530 symcode='[BCDEGRST]'
5531 ;;
5532osf*)
5533 symcode='[BCDEGQRST]'
5534 ;;
5535solaris*)
5536 symcode='[BDRT]'
5537 ;;
5538sco3.2v5*)
5539 symcode='[DT]'
5540 ;;
5541sysv4.2uw2*)
5542 symcode='[DT]'
5543 ;;
5544sysv5* | sco5v6* | unixware* | OpenUNIX*)
5545 symcode='[ABDT]'
5546 ;;
5547sysv4)
5548 symcode='[DFNSTU]'
5549 ;;
5550esac
5551
5552# If we're using GNU nm, then use its standard symbol codes.
5553case `$NM -V 2>&1` in
5554*GNU* | *'with BFD'*)
5555 symcode='[ABCDGIRSTW]' ;;
5556esac
5557
5558# Transform an extracted symbol line into a proper C declaration.
5559# Some systems (esp. on ia64) link data and code symbols differently,
5560# so use this general approach.
5561lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5562
5563# Transform an extracted symbol line into symbol name and symbol address
5564lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5565lt_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'"
5566
5567# Handle CRLF in mingw tool chain
5568opt_cr=
5569case $build_os in
5570mingw*)
5571 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5572 ;;
5573esac
5574
5575# Try without a prefix underscore, then with it.
5576for ac_symprfx in "" "_"; do
5577
5578 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5579 symxfrm="\\1 $ac_symprfx\\2 \\2"
5580
5581 # Write the raw and C identifiers.
5582 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5583 # Fake it for dumpbin and say T for any non-static function
5584 # and D for any global variable.
5585 # Also find C++ and __fastcall symbols from MSVC++,
5586 # which start with @ or ?.
5587 lt_cv_sys_global_symbol_pipe="$AWK '"\
5588" {last_section=section; section=\$ 3};"\
5589" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5590" \$ 0!~/External *\|/{next};"\
5591" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5592" {if(hide[section]) next};"\
5593" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5594" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5595" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5596" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5597" ' prfx=^$ac_symprfx"
5598 else
5599 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5600 fi
5601
5602 # Check to see that the pipe works correctly.
5603 pipe_works=no
5604
5605 rm -f conftest*
5606 cat > conftest.$ac_ext <<_LT_EOF
5607#ifdef __cplusplus
5608extern "C" {
5609#endif
5610char nm_test_var;
5611void nm_test_func(void);
5612void nm_test_func(void){}
5613#ifdef __cplusplus
5614}
5615#endif
5616int main(){nm_test_var='a';nm_test_func();return(0);}
5617_LT_EOF
5618
5619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5620 (eval $ac_compile) 2>&5
5621 ac_status=$?
5622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5623 test $ac_status = 0; }; then
5624 # Now try to grab the symbols.
5625 nlist=conftest.nm
5626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5627 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5628 ac_status=$?
5629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5630 test $ac_status = 0; } && test -s "$nlist"; then
5631 # Try sorting and uniquifying the output.
5632 if sort "$nlist" | uniq > "$nlist"T; then
5633 mv -f "$nlist"T "$nlist"
5634 else
5635 rm -f "$nlist"T
5636 fi
5637
5638 # Make sure that we snagged all the symbols we need.
5639 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5640 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5641 cat <<_LT_EOF > conftest.$ac_ext
5642#ifdef __cplusplus
5643extern "C" {
5644#endif
5645
5646_LT_EOF
5647 # Now generate the symbol file.
5648 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5649
5650 cat <<_LT_EOF >> conftest.$ac_ext
5651
5652/* The mapping between symbol names and symbols. */
5653const struct {
5654 const char *name;
5655 void *address;
5656}
5657lt__PROGRAM__LTX_preloaded_symbols[] =
5658{
5659 { "@PROGRAM@", (void *) 0 },
5660_LT_EOF
5661 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5662 cat <<\_LT_EOF >> conftest.$ac_ext
5663 {0, (void *) 0}
5664};
5665
5666/* This works around a problem in FreeBSD linker */
5667#ifdef FREEBSD_WORKAROUND
5668static const void *lt_preloaded_setup() {
5669 return lt__PROGRAM__LTX_preloaded_symbols;
5670}
5671#endif
5672
5673#ifdef __cplusplus
5674}
5675#endif
5676_LT_EOF
5677 # Now try linking the two files.
5678 mv conftest.$ac_objext conftstm.$ac_objext
5679 lt_save_LIBS="$LIBS"
5680 lt_save_CFLAGS="$CFLAGS"
5681 LIBS="conftstm.$ac_objext"
5682 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5684 (eval $ac_link) 2>&5
5685 ac_status=$?
5686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5687 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5688 pipe_works=yes
5689 fi
5690 LIBS="$lt_save_LIBS"
5691 CFLAGS="$lt_save_CFLAGS"
5692 else
5693 echo "cannot find nm_test_func in $nlist" >&5
5694 fi
5695 else
5696 echo "cannot find nm_test_var in $nlist" >&5
5697 fi
5698 else
5699 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5700 fi
5701 else
5702 echo "$progname: failed program was:" >&5
5703 cat conftest.$ac_ext >&5
5704 fi
5705 rm -rf conftest* conftst*
5706
5707 # Do not use the global_symbol_pipe unless it works.
5708 if test "$pipe_works" = yes; then
5709 break
5710 else
5711 lt_cv_sys_global_symbol_pipe=
5712 fi
5713done
5714
5715fi
5716
5717if test -z "$lt_cv_sys_global_symbol_pipe"; then
5718 lt_cv_sys_global_symbol_to_cdecl=
5719fi
5720if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5722$as_echo "failed" >&6; }
5723else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5725$as_echo "ok" >&6; }
5726fi
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749# Check whether --enable-libtool-lock was given.
5750if test "${enable_libtool_lock+set}" = set; then :
5751 enableval=$enable_libtool_lock;
5752fi
5753
5754test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5755
5756# Some flags need to be propagated to the compiler or linker for good
5757# libtool support.
5758case $host in
5759ia64-*-hpux*)
5760 # Find out which ABI we are using.
5761 echo 'int i;' > conftest.$ac_ext
5762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5763 (eval $ac_compile) 2>&5
5764 ac_status=$?
5765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5766 test $ac_status = 0; }; then
5767 case `/usr/bin/file conftest.$ac_objext` in
5768 *ELF-32*)
5769 HPUX_IA64_MODE="32"
5770 ;;
5771 *ELF-64*)
5772 HPUX_IA64_MODE="64"
5773 ;;
5774 esac
5775 fi
5776 rm -rf conftest*
5777 ;;
5778*-*-irix6*)
5779 # Find out which ABI we are using.
5780 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5782 (eval $ac_compile) 2>&5
5783 ac_status=$?
5784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5785 test $ac_status = 0; }; then
5786 if test "$lt_cv_prog_gnu_ld" = yes; then
5787 case `/usr/bin/file conftest.$ac_objext` in
5788 *32-bit*)
5789 LD="${LD-ld} -melf32bsmip"
5790 ;;
5791 *N32*)
5792 LD="${LD-ld} -melf32bmipn32"
5793 ;;
5794 *64-bit*)
5795 LD="${LD-ld} -melf64bmip"
5796 ;;
5797 esac
5798 else
5799 case `/usr/bin/file conftest.$ac_objext` in
5800 *32-bit*)
5801 LD="${LD-ld} -32"
5802 ;;
5803 *N32*)
5804 LD="${LD-ld} -n32"
5805 ;;
5806 *64-bit*)
5807 LD="${LD-ld} -64"
5808 ;;
5809 esac
5810 fi
5811 fi
5812 rm -rf conftest*
5813 ;;
5814
bf3d9781 5815x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6bb11ab3
L
5816s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5817 # Find out which ABI we are using.
5818 echo 'int i;' > conftest.$ac_ext
5819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5820 (eval $ac_compile) 2>&5
5821 ac_status=$?
5822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5823 test $ac_status = 0; }; then
5824 case `/usr/bin/file conftest.o` in
5825 *32-bit*)
5826 case $host in
5827 x86_64-*kfreebsd*-gnu)
5828 LD="${LD-ld} -m elf_i386_fbsd"
5829 ;;
5830 x86_64-*linux*)
5831 case `/usr/bin/file conftest.o` in
5832 *x86-64*)
5833 LD="${LD-ld} -m elf32_x86_64"
5834 ;;
5835 *)
5836 LD="${LD-ld} -m elf_i386"
5837 ;;
5838 esac
5839 ;;
bf3d9781
AM
5840 powerpc64le-*linux*)
5841 LD="${LD-ld} -m elf32lppclinux"
5842 ;;
5843 powerpc64-*linux*)
6bb11ab3
L
5844 LD="${LD-ld} -m elf32ppclinux"
5845 ;;
5846 s390x-*linux*)
5847 LD="${LD-ld} -m elf_s390"
5848 ;;
5849 sparc64-*linux*)
5850 LD="${LD-ld} -m elf32_sparc"
5851 ;;
5852 esac
5853 ;;
5854 *64-bit*)
5855 case $host in
5856 x86_64-*kfreebsd*-gnu)
5857 LD="${LD-ld} -m elf_x86_64_fbsd"
5858 ;;
5859 x86_64-*linux*)
5860 LD="${LD-ld} -m elf_x86_64"
5861 ;;
bf3d9781
AM
5862 powerpcle-*linux*)
5863 LD="${LD-ld} -m elf64lppc"
5864 ;;
5865 powerpc-*linux*)
6bb11ab3
L
5866 LD="${LD-ld} -m elf64ppc"
5867 ;;
5868 s390*-*linux*|s390*-*tpf*)
5869 LD="${LD-ld} -m elf64_s390"
5870 ;;
5871 sparc*-*linux*)
5872 LD="${LD-ld} -m elf64_sparc"
5873 ;;
5874 esac
5875 ;;
5876 esac
5877 fi
5878 rm -rf conftest*
5879 ;;
5880
5881*-*-sco3.2v5*)
5882 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5883 SAVE_CFLAGS="$CFLAGS"
5884 CFLAGS="$CFLAGS -belf"
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5886$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 5887if ${lt_cv_cc_needs_belf+:} false; then :
6bb11ab3
L
5888 $as_echo_n "(cached) " >&6
5889else
5890 ac_ext=c
5891ac_cpp='$CPP $CPPFLAGS'
5892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5894ac_compiler_gnu=$ac_cv_c_compiler_gnu
5895
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897/* end confdefs.h. */
5898
5899int
5900main ()
5901{
5902
5903 ;
5904 return 0;
5905}
5906_ACEOF
5907if ac_fn_c_try_link "$LINENO"; then :
5908 lt_cv_cc_needs_belf=yes
5909else
5910 lt_cv_cc_needs_belf=no
5911fi
5912rm -f core conftest.err conftest.$ac_objext \
5913 conftest$ac_exeext conftest.$ac_ext
5914 ac_ext=c
5915ac_cpp='$CPP $CPPFLAGS'
5916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5918ac_compiler_gnu=$ac_cv_c_compiler_gnu
5919
5920fi
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5922$as_echo "$lt_cv_cc_needs_belf" >&6; }
5923 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5924 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5925 CFLAGS="$SAVE_CFLAGS"
5926 fi
5927 ;;
5928sparc*-*solaris*)
5929 # Find out which ABI we are using.
5930 echo 'int i;' > conftest.$ac_ext
5931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5932 (eval $ac_compile) 2>&5
5933 ac_status=$?
5934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5935 test $ac_status = 0; }; then
5936 case `/usr/bin/file conftest.o` in
5937 *64-bit*)
5938 case $lt_cv_prog_gnu_ld in
5939 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5940 *)
5941 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5942 LD="${LD-ld} -64"
5943 fi
5944 ;;
5945 esac
5946 ;;
5947 esac
5948 fi
5949 rm -rf conftest*
5950 ;;
5951esac
5952
5953need_locks="$enable_libtool_lock"
5954
5955
5956 case $host_os in
5957 rhapsody* | darwin*)
5958 if test -n "$ac_tool_prefix"; then
5959 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5960set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5963if ${ac_cv_prog_DSYMUTIL+:} false; then :
6bb11ab3
L
5964 $as_echo_n "(cached) " >&6
5965else
5966 if test -n "$DSYMUTIL"; then
5967 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5968else
5969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970for as_dir in $PATH
5971do
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5976 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
5979 fi
5980done
5981 done
5982IFS=$as_save_IFS
5983
5984fi
5985fi
5986DSYMUTIL=$ac_cv_prog_DSYMUTIL
5987if test -n "$DSYMUTIL"; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5989$as_echo "$DSYMUTIL" >&6; }
5990else
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992$as_echo "no" >&6; }
5993fi
5994
5995
5996fi
5997if test -z "$ac_cv_prog_DSYMUTIL"; then
5998 ac_ct_DSYMUTIL=$DSYMUTIL
5999 # Extract the first word of "dsymutil", so it can be a program name with args.
6000set dummy dsymutil; ac_word=$2
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6003if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6bb11ab3
L
6004 $as_echo_n "(cached) " >&6
6005else
6006 if test -n "$ac_ct_DSYMUTIL"; then
6007 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6008else
6009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010for as_dir in $PATH
6011do
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6016 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 break 2
6019 fi
6020done
6021 done
6022IFS=$as_save_IFS
6023
6024fi
6025fi
6026ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6027if test -n "$ac_ct_DSYMUTIL"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6029$as_echo "$ac_ct_DSYMUTIL" >&6; }
6030else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032$as_echo "no" >&6; }
6033fi
6034
6035 if test "x$ac_ct_DSYMUTIL" = x; then
6036 DSYMUTIL=":"
6037 else
6038 case $cross_compiling:$ac_tool_warned in
6039yes:)
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6042ac_tool_warned=yes ;;
6043esac
6044 DSYMUTIL=$ac_ct_DSYMUTIL
6045 fi
6046else
6047 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6048fi
6049
6050 if test -n "$ac_tool_prefix"; then
6051 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6052set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6055if ${ac_cv_prog_NMEDIT+:} false; then :
6bb11ab3
L
6056 $as_echo_n "(cached) " >&6
6057else
6058 if test -n "$NMEDIT"; then
6059 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6060else
6061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6068 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6071 fi
6072done
6073 done
6074IFS=$as_save_IFS
6075
6076fi
6077fi
6078NMEDIT=$ac_cv_prog_NMEDIT
6079if test -n "$NMEDIT"; then
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6081$as_echo "$NMEDIT" >&6; }
6082else
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084$as_echo "no" >&6; }
6085fi
6086
6087
6088fi
6089if test -z "$ac_cv_prog_NMEDIT"; then
6090 ac_ct_NMEDIT=$NMEDIT
6091 # Extract the first word of "nmedit", so it can be a program name with args.
6092set dummy nmedit; ac_word=$2
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6095if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6bb11ab3
L
6096 $as_echo_n "(cached) " >&6
6097else
6098 if test -n "$ac_ct_NMEDIT"; then
6099 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6100else
6101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102for as_dir in $PATH
6103do
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6108 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 break 2
6111 fi
6112done
6113 done
6114IFS=$as_save_IFS
6115
6116fi
6117fi
6118ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6119if test -n "$ac_ct_NMEDIT"; then
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6121$as_echo "$ac_ct_NMEDIT" >&6; }
6122else
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124$as_echo "no" >&6; }
6125fi
6126
6127 if test "x$ac_ct_NMEDIT" = x; then
6128 NMEDIT=":"
6129 else
6130 case $cross_compiling:$ac_tool_warned in
6131yes:)
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6133$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6134ac_tool_warned=yes ;;
6135esac
6136 NMEDIT=$ac_ct_NMEDIT
6137 fi
6138else
6139 NMEDIT="$ac_cv_prog_NMEDIT"
6140fi
6141
6142 if test -n "$ac_tool_prefix"; then
6143 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6144set dummy ${ac_tool_prefix}lipo; ac_word=$2
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6147if ${ac_cv_prog_LIPO+:} false; then :
6bb11ab3
L
6148 $as_echo_n "(cached) " >&6
6149else
6150 if test -n "$LIPO"; then
6151 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6152else
6153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154for as_dir in $PATH
6155do
6156 IFS=$as_save_IFS
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6160 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 break 2
6163 fi
6164done
6165 done
6166IFS=$as_save_IFS
6167
6168fi
6169fi
6170LIPO=$ac_cv_prog_LIPO
6171if test -n "$LIPO"; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6173$as_echo "$LIPO" >&6; }
6174else
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176$as_echo "no" >&6; }
6177fi
6178
6179
6180fi
6181if test -z "$ac_cv_prog_LIPO"; then
6182 ac_ct_LIPO=$LIPO
6183 # Extract the first word of "lipo", so it can be a program name with args.
6184set dummy lipo; ac_word=$2
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6187if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6bb11ab3
L
6188 $as_echo_n "(cached) " >&6
6189else
6190 if test -n "$ac_ct_LIPO"; then
6191 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6192else
6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194for as_dir in $PATH
6195do
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6200 ac_cv_prog_ac_ct_LIPO="lipo"
6201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6203 fi
6204done
6205 done
6206IFS=$as_save_IFS
6207
6208fi
6209fi
6210ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6211if test -n "$ac_ct_LIPO"; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6213$as_echo "$ac_ct_LIPO" >&6; }
6214else
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216$as_echo "no" >&6; }
6217fi
6218
6219 if test "x$ac_ct_LIPO" = x; then
6220 LIPO=":"
6221 else
6222 case $cross_compiling:$ac_tool_warned in
6223yes:)
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6226ac_tool_warned=yes ;;
6227esac
6228 LIPO=$ac_ct_LIPO
6229 fi
6230else
6231 LIPO="$ac_cv_prog_LIPO"
6232fi
6233
6234 if test -n "$ac_tool_prefix"; then
6235 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6236set dummy ${ac_tool_prefix}otool; ac_word=$2
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6239if ${ac_cv_prog_OTOOL+:} false; then :
6bb11ab3
L
6240 $as_echo_n "(cached) " >&6
6241else
6242 if test -n "$OTOOL"; then
6243 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6244else
6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH
6247do
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6252 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 break 2
6255 fi
6256done
6257 done
6258IFS=$as_save_IFS
6259
6260fi
6261fi
6262OTOOL=$ac_cv_prog_OTOOL
6263if test -n "$OTOOL"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6265$as_echo "$OTOOL" >&6; }
6266else
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268$as_echo "no" >&6; }
6269fi
6270
6271
6272fi
6273if test -z "$ac_cv_prog_OTOOL"; then
6274 ac_ct_OTOOL=$OTOOL
6275 # Extract the first word of "otool", so it can be a program name with args.
6276set dummy otool; ac_word=$2
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6279if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6bb11ab3
L
6280 $as_echo_n "(cached) " >&6
6281else
6282 if test -n "$ac_ct_OTOOL"; then
6283 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6284else
6285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286for as_dir in $PATH
6287do
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6292 ac_cv_prog_ac_ct_OTOOL="otool"
6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
6295 fi
6296done
6297 done
6298IFS=$as_save_IFS
6299
6300fi
6301fi
6302ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6303if test -n "$ac_ct_OTOOL"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6305$as_echo "$ac_ct_OTOOL" >&6; }
6306else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308$as_echo "no" >&6; }
6309fi
6310
6311 if test "x$ac_ct_OTOOL" = x; then
6312 OTOOL=":"
6313 else
6314 case $cross_compiling:$ac_tool_warned in
6315yes:)
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6318ac_tool_warned=yes ;;
6319esac
6320 OTOOL=$ac_ct_OTOOL
6321 fi
6322else
6323 OTOOL="$ac_cv_prog_OTOOL"
6324fi
6325
6326 if test -n "$ac_tool_prefix"; then
6327 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6328set dummy ${ac_tool_prefix}otool64; ac_word=$2
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6331if ${ac_cv_prog_OTOOL64+:} false; then :
6bb11ab3
L
6332 $as_echo_n "(cached) " >&6
6333else
6334 if test -n "$OTOOL64"; then
6335 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6336else
6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338for as_dir in $PATH
6339do
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6344 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6347 fi
6348done
6349 done
6350IFS=$as_save_IFS
6351
6352fi
6353fi
6354OTOOL64=$ac_cv_prog_OTOOL64
6355if test -n "$OTOOL64"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6357$as_echo "$OTOOL64" >&6; }
6358else
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360$as_echo "no" >&6; }
6361fi
6362
6363
6364fi
6365if test -z "$ac_cv_prog_OTOOL64"; then
6366 ac_ct_OTOOL64=$OTOOL64
6367 # Extract the first word of "otool64", so it can be a program name with args.
6368set dummy otool64; ac_word=$2
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6371if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6bb11ab3
L
6372 $as_echo_n "(cached) " >&6
6373else
6374 if test -n "$ac_ct_OTOOL64"; then
6375 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6376else
6377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378for as_dir in $PATH
6379do
6380 IFS=$as_save_IFS
6381 test -z "$as_dir" && as_dir=.
6382 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6384 ac_cv_prog_ac_ct_OTOOL64="otool64"
6385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 break 2
6387 fi
6388done
6389 done
6390IFS=$as_save_IFS
6391
6392fi
6393fi
6394ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6395if test -n "$ac_ct_OTOOL64"; then
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6397$as_echo "$ac_ct_OTOOL64" >&6; }
6398else
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400$as_echo "no" >&6; }
6401fi
6402
6403 if test "x$ac_ct_OTOOL64" = x; then
6404 OTOOL64=":"
6405 else
6406 case $cross_compiling:$ac_tool_warned in
6407yes:)
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6410ac_tool_warned=yes ;;
6411esac
6412 OTOOL64=$ac_ct_OTOOL64
6413 fi
6414else
6415 OTOOL64="$ac_cv_prog_OTOOL64"
6416fi
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6445$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 6446if ${lt_cv_apple_cc_single_mod+:} false; then :
6bb11ab3
L
6447 $as_echo_n "(cached) " >&6
6448else
6449 lt_cv_apple_cc_single_mod=no
6450 if test -z "${LT_MULTI_MODULE}"; then
6451 # By default we will add the -single_module flag. You can override
6452 # by either setting the environment variable LT_MULTI_MODULE
6453 # non-empty at configure time, or by adding -multi_module to the
6454 # link flags.
6455 rm -rf libconftest.dylib*
6456 echo "int foo(void){return 1;}" > conftest.c
6457 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6458-dynamiclib -Wl,-single_module conftest.c" >&5
6459 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6460 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6461 _lt_result=$?
6462 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6463 lt_cv_apple_cc_single_mod=yes
6464 else
6465 cat conftest.err >&5
6466 fi
6467 rm -rf libconftest.dylib*
6468 rm -f conftest.*
6469 fi
6470fi
6471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6472$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6474$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 6475if ${lt_cv_ld_exported_symbols_list+:} false; then :
6bb11ab3
L
6476 $as_echo_n "(cached) " >&6
6477else
6478 lt_cv_ld_exported_symbols_list=no
6479 save_LDFLAGS=$LDFLAGS
6480 echo "_main" > conftest.sym
6481 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483/* end confdefs.h. */
6484
6485int
6486main ()
6487{
6488
6489 ;
6490 return 0;
6491}
6492_ACEOF
6493if ac_fn_c_try_link "$LINENO"; then :
6494 lt_cv_ld_exported_symbols_list=yes
6495else
6496 lt_cv_ld_exported_symbols_list=no
6497fi
6498rm -f core conftest.err conftest.$ac_objext \
6499 conftest$ac_exeext conftest.$ac_ext
6500 LDFLAGS="$save_LDFLAGS"
6501
6502fi
6503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6504$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6506$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 6507if ${lt_cv_ld_force_load+:} false; then :
6bb11ab3
L
6508 $as_echo_n "(cached) " >&6
6509else
6510 lt_cv_ld_force_load=no
6511 cat > conftest.c << _LT_EOF
6512int forced_loaded() { return 2;}
6513_LT_EOF
6514 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6515 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6516 echo "$AR cru libconftest.a conftest.o" >&5
6517 $AR cru libconftest.a conftest.o 2>&5
6518 cat > conftest.c << _LT_EOF
6519int main() { return 0;}
6520_LT_EOF
6521 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6522 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6523 _lt_result=$?
6524 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6525 lt_cv_ld_force_load=yes
6526 else
6527 cat conftest.err >&5
6528 fi
6529 rm -f conftest.err libconftest.a conftest conftest.c
6530 rm -rf conftest.dSYM
6531
6532fi
6533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6534$as_echo "$lt_cv_ld_force_load" >&6; }
6535 case $host_os in
6536 rhapsody* | darwin1.[012])
6537 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6538 darwin1.*)
6539 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6540 darwin*) # darwin 5.x on
6541 # if running on 10.5 or later, the deployment target defaults
6542 # to the OS version, if on x86, and 10.4, the deployment
6543 # target defaults to 10.4. Don't you love it?
6544 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6545 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6546 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5cddc23a 6547 10.[012][,.]*)
6bb11ab3
L
6548 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6549 10.*)
6550 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6551 esac
6552 ;;
6553 esac
6554 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6555 _lt_dar_single_mod='$single_module'
6556 fi
6557 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6558 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6559 else
6560 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6561 fi
6562 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6563 _lt_dsymutil='~$DSYMUTIL $lib || :'
6564 else
6565 _lt_dsymutil=
6566 fi
6567 ;;
6568 esac
6569
6570for ac_header in dlfcn.h
6571do :
6572 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6573"
d0ac1c44 6574if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6bb11ab3
L
6575 cat >>confdefs.h <<_ACEOF
6576#define HAVE_DLFCN_H 1
6577_ACEOF
6578
6579fi
6580
6581done
6582
6583
6584
ebe9564b 6585
6bb11ab3 6586
0cb8d851
MF
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6588$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d0ac1c44 6589if ${ac_cv_c_bigendian+:} false; then :
0cb8d851
MF
6590 $as_echo_n "(cached) " >&6
6591else
6592 ac_cv_c_bigendian=unknown
6593 # See if we're dealing with a universal compiler.
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595/* end confdefs.h. */
6596#ifndef __APPLE_CC__
6597 not a universal capable compiler
6598 #endif
6599 typedef int dummy;
6600
6601_ACEOF
6602if ac_fn_c_try_compile "$LINENO"; then :
6603
6604 # Check for potential -arch flags. It is not universal unless
6605 # there are at least two -arch flags with different values.
6606 ac_arch=
6607 ac_prev=
6608 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6609 if test -n "$ac_prev"; then
6610 case $ac_word in
6611 i?86 | x86_64 | ppc | ppc64)
6612 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6613 ac_arch=$ac_word
6614 else
6615 ac_cv_c_bigendian=universal
6616 break
6617 fi
6618 ;;
6619 esac
6620 ac_prev=
6621 elif test "x$ac_word" = "x-arch"; then
6622 ac_prev=arch
6623 fi
6624 done
6625fi
6626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 if test $ac_cv_c_bigendian = unknown; then
6628 # See if sys/param.h defines the BYTE_ORDER macro.
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630/* end confdefs.h. */
6631#include <sys/types.h>
6632 #include <sys/param.h>
6633
6634int
6635main ()
6636{
6637#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6638 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6639 && LITTLE_ENDIAN)
6640 bogus endian macros
6641 #endif
6642
6643 ;
6644 return 0;
6645}
6646_ACEOF
6647if ac_fn_c_try_compile "$LINENO"; then :
6648 # It does; now see whether it defined to BIG_ENDIAN or not.
6649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6650/* end confdefs.h. */
6651#include <sys/types.h>
6652 #include <sys/param.h>
6653
6654int
6655main ()
6656{
6657#if BYTE_ORDER != BIG_ENDIAN
6658 not big endian
6659 #endif
6660
6661 ;
6662 return 0;
6663}
6664_ACEOF
6665if ac_fn_c_try_compile "$LINENO"; then :
6666 ac_cv_c_bigendian=yes
6667else
6668 ac_cv_c_bigendian=no
6669fi
6670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6671fi
6672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673 fi
6674 if test $ac_cv_c_bigendian = unknown; then
6675 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677/* end confdefs.h. */
6678#include <limits.h>
6679
6680int
6681main ()
6682{
6683#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6684 bogus endian macros
6685 #endif
6686
6687 ;
6688 return 0;
6689}
6690_ACEOF
6691if ac_fn_c_try_compile "$LINENO"; then :
6692 # It does; now see whether it defined to _BIG_ENDIAN or not.
6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694/* end confdefs.h. */
6695#include <limits.h>
6696
6697int
6698main ()
6699{
6700#ifndef _BIG_ENDIAN
6701 not big endian
6702 #endif
6703
6704 ;
6705 return 0;
6706}
6707_ACEOF
6708if ac_fn_c_try_compile "$LINENO"; then :
6709 ac_cv_c_bigendian=yes
6710else
6711 ac_cv_c_bigendian=no
6712fi
6713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714fi
6715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 fi
6717 if test $ac_cv_c_bigendian = unknown; then
6718 # Compile a test program.
6719 if test "$cross_compiling" = yes; then :
6720 # Try to guess by grepping values from an object file.
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722/* end confdefs.h. */
6723short int ascii_mm[] =
6724 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6725 short int ascii_ii[] =
6726 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6727 int use_ascii (int i) {
6728 return ascii_mm[i] + ascii_ii[i];
6729 }
6730 short int ebcdic_ii[] =
6731 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6732 short int ebcdic_mm[] =
6733 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6734 int use_ebcdic (int i) {
6735 return ebcdic_mm[i] + ebcdic_ii[i];
6736 }
6737 extern int foo;
6738
6739int
6740main ()
6741{
6742return use_ascii (foo) == use_ebcdic (foo);
6743 ;
6744 return 0;
6745}
6746_ACEOF
6747if ac_fn_c_try_compile "$LINENO"; then :
6748 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6749 ac_cv_c_bigendian=yes
6750 fi
6751 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6752 if test "$ac_cv_c_bigendian" = unknown; then
6753 ac_cv_c_bigendian=no
6754 else
6755 # finding both strings is unlikely to happen, but who knows?
6756 ac_cv_c_bigendian=unknown
6757 fi
6758 fi
6759fi
6760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6761else
6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763/* end confdefs.h. */
6764$ac_includes_default
6765int
6766main ()
6767{
6768
6769 /* Are we little or big endian? From Harbison&Steele. */
6770 union
6771 {
6772 long int l;
6773 char c[sizeof (long int)];
6774 } u;
6775 u.l = 1;
6776 return u.c[sizeof (long int) - 1] == 1;
6777
6778 ;
6779 return 0;
6780}
6781_ACEOF
6782if ac_fn_c_try_run "$LINENO"; then :
6783 ac_cv_c_bigendian=no
6784else
6785 ac_cv_c_bigendian=yes
6786fi
6787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6788 conftest.$ac_objext conftest.beam conftest.$ac_ext
6789fi
6790
6791 fi
6792fi
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6794$as_echo "$ac_cv_c_bigendian" >&6; }
6795 case $ac_cv_c_bigendian in #(
6796 yes)
6797 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6798;; #(
6799 no)
6800 ;; #(
6801 universal)
6802
6803$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6804
6805 ;; #(
6806 *)
d0ac1c44 6807 as_fn_error $? "unknown endianness
0cb8d851
MF
6808 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6809 esac
6810
6bb11ab3
L
6811
6812
6813
c25ea03d
MF
6814if test "x$cross_compiling" = "xno"; then
6815 : "${CC_FOR_BUILD:=\$(CC)}"
6816 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
c2783492 6817 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
c25ea03d
MF
6818else
6819 : "${CC_FOR_BUILD:=gcc}"
6820 : "${CFLAGS_FOR_BUILD:=-g -O}"
c2783492 6821 : "${LDLFAGS_FOR_BUILD:=}"
6bb11ab3
L
6822fi
6823
6824
6825
c25ea03d 6826
c2783492 6827
a3e2cc64
MF
6828if test -n "$ac_tool_prefix"; then
6829 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6830set dummy ${ac_tool_prefix}ar; ac_word=$2
6831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832$as_echo_n "checking for $ac_word... " >&6; }
6833if ${ac_cv_prog_AR+:} false; then :
6834 $as_echo_n "(cached) " >&6
6835else
6836 if test -n "$AR"; then
6837 ac_cv_prog_AR="$AR" # Let the user override the test.
6838else
6839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840for as_dir in $PATH
6841do
6842 IFS=$as_save_IFS
6843 test -z "$as_dir" && as_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6846 ac_cv_prog_AR="${ac_tool_prefix}ar"
6847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 break 2
6849 fi
6850done
6851 done
6852IFS=$as_save_IFS
6853
6854fi
6855fi
6856AR=$ac_cv_prog_AR
6857if test -n "$AR"; then
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6859$as_echo "$AR" >&6; }
6860else
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862$as_echo "no" >&6; }
6863fi
6864
6865
6866fi
6867if test -z "$ac_cv_prog_AR"; then
6868 ac_ct_AR=$AR
6869 # Extract the first word of "ar", so it can be a program name with args.
6870set dummy ar; ac_word=$2
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872$as_echo_n "checking for $ac_word... " >&6; }
6873if ${ac_cv_prog_ac_ct_AR+:} false; then :
6874 $as_echo_n "(cached) " >&6
6875else
6876 if test -n "$ac_ct_AR"; then
6877 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6878else
6879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880for as_dir in $PATH
6881do
6882 IFS=$as_save_IFS
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6886 ac_cv_prog_ac_ct_AR="ar"
6887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 break 2
6889 fi
6890done
6891 done
6892IFS=$as_save_IFS
6893
6894fi
6895fi
6896ac_ct_AR=$ac_cv_prog_ac_ct_AR
6897if test -n "$ac_ct_AR"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6899$as_echo "$ac_ct_AR" >&6; }
6900else
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902$as_echo "no" >&6; }
6903fi
6904
6905 if test "x$ac_ct_AR" = x; then
6906 AR=""
6907 else
6908 case $cross_compiling:$ac_tool_warned in
6909yes:)
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6912ac_tool_warned=yes ;;
6913esac
6914 AR=$ac_ct_AR
6915 fi
6916else
6917 AR="$ac_cv_prog_AR"
6918fi
6bb11ab3
L
6919
6920if test -n "$ac_tool_prefix"; then
6921 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6922set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6925if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
6926 $as_echo_n "(cached) " >&6
6927else
6928 if test -n "$RANLIB"; then
6929 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6930else
6931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932for as_dir in $PATH
6933do
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6938 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 break 2
6941 fi
6942done
6943 done
6944IFS=$as_save_IFS
6945
6946fi
6947fi
6948RANLIB=$ac_cv_prog_RANLIB
6949if test -n "$RANLIB"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6951$as_echo "$RANLIB" >&6; }
6952else
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954$as_echo "no" >&6; }
6955fi
6956
6957
6958fi
6959if test -z "$ac_cv_prog_RANLIB"; then
6960 ac_ct_RANLIB=$RANLIB
6961 # Extract the first word of "ranlib", so it can be a program name with args.
6962set dummy ranlib; ac_word=$2
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6965if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
6966 $as_echo_n "(cached) " >&6
6967else
6968 if test -n "$ac_ct_RANLIB"; then
6969 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6970else
6971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972for as_dir in $PATH
6973do
6974 IFS=$as_save_IFS
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6978 ac_cv_prog_ac_ct_RANLIB="ranlib"
6979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 break 2
6981 fi
6982done
6983 done
6984IFS=$as_save_IFS
6985
6986fi
6987fi
6988ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6989if test -n "$ac_ct_RANLIB"; then
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6991$as_echo "$ac_ct_RANLIB" >&6; }
6992else
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994$as_echo "no" >&6; }
6995fi
6996
6997 if test "x$ac_ct_RANLIB" = x; then
6998 RANLIB=":"
6999 else
7000 case $cross_compiling:$ac_tool_warned in
7001yes:)
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7004ac_tool_warned=yes ;;
7005esac
7006 RANLIB=$ac_ct_RANLIB
7007 fi
7008else
7009 RANLIB="$ac_cv_prog_RANLIB"
7010fi
7011
7012
46f900c0
MF
7013# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
7014# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
7015# is C99. So handle it ourselves.
7016:
7017C_DIALECT=
7018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
7019$as_echo_n "checking whether C11 is supported by default... " >&6; }
7020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021/* end confdefs.h. */
7022
7023#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
7024# error "C11 support not found"
7025#endif
7026
7027_ACEOF
7028if ac_fn_c_try_compile "$LINENO"; then :
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7030$as_echo "yes" >&6; }
7031else
7032
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034$as_echo "no" >&6; }
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
7036$as_echo_n "checking for -std=c11 support... " >&6; }
7037 ac_save_CC="$CC"
7038 CC="$CC -std=c11"
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040/* end confdefs.h. */
7041
7042#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
7043# error "C11 support not found"
7044#endif
7045
7046_ACEOF
7047if ac_fn_c_try_compile "$LINENO"; then :
7048
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7050$as_echo "yes" >&6; }
7051 CC="$ac_save_CC"
7052 C_DIALECT="-std=c11"
7053
7054else
7055 as_fn_error $? "C11 is required" "$LINENO" 5
7056fi
7057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7058fi
7059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060
7061
c2783492
MF
7062ac_config_headers="$ac_config_headers config.h:config.in"
7063
7064
6bb11ab3
L
7065# Some of the common include files depend on bfd.h, and bfd.h checks
7066# that config.h is included first by testing that the PACKAGE macro
7067# is defined.
7068PACKAGE=sim
7069
7070cat >>confdefs.h <<_ACEOF
7071#define PACKAGE "$PACKAGE"
7072_ACEOF
7073
7074
7075
7076# Dependency checking.
7077ac_config_commands="$ac_config_commands depdir"
7078
7079
7080depcc="$CC" am_compiler_list=
7081
7082am_depcomp=$ac_aux_dir/depcomp
7083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7084$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 7085if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6bb11ab3
L
7086 $as_echo_n "(cached) " >&6
7087else
7088 if test -f "$am_depcomp"; then
7089 # We make a subdir and do the tests there. Otherwise we can end up
7090 # making bogus files that we don't know about and never remove. For
7091 # instance it was reported that on HP-UX the gcc test will end up
7092 # making a dummy file named `D' -- because `-MD' means `put the output
7093 # in D'.
7094 mkdir conftest.dir
7095 # Copy depcomp to subdir because otherwise we won't find it if we're
7096 # using a relative directory.
7097 cp "$am_depcomp" conftest.dir
7098 cd conftest.dir
7099 # We will build objects and dependencies in a subdirectory because
7100 # it helps to detect inapplicable dependency modes. For instance
7101 # both Tru64's cc and ICC support -MD to output dependencies as a
7102 # side effect of compilation, but ICC will put the dependencies in
7103 # the current directory while Tru64 will put them in the object
7104 # directory.
7105 mkdir sub
7106
7107 am_cv_CC_dependencies_compiler_type=none
7108 if test "$am_compiler_list" = ""; then
7109 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7110 fi
7111 for depmode in $am_compiler_list; do
7112 if test $depmode = none; then break; fi
7113
7114 $as_echo "$as_me:$LINENO: trying $depmode" >&5
7115 # Setup a source with many dependencies, because some compilers
7116 # like to wrap large dependency lists on column 80 (with \), and
7117 # we should not choose a depcomp mode which is confused by this.
7118 #
7119 # We need to recreate these files for each test, as the compiler may
7120 # overwrite some of them when testing with obscure command lines.
7121 # This happens at least with the AIX C compiler.
7122 : > sub/conftest.c
7123 for i in 1 2 3 4 5 6; do
7124 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7125 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7126 # Solaris 8's {/usr,}/bin/sh.
7127 touch sub/conftst$i.h
7128 done
7129 echo "include sub/conftest.Po" > confmf
7130
7131 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7132 # mode. It turns out that the SunPro C++ compiler does not properly
7133 # handle `-M -o', and we need to detect this.
7134 depcmd="depmode=$depmode \
7135 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7136 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7137 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
7138 echo "| $depcmd" | sed -e 's/ */ /g' >&5
7139 if env $depcmd > conftest.err 2>&1 &&
7140 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
7141 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
7142 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
7143 # icc doesn't choke on unknown options, it will just issue warnings
7144 # or remarks (even with -Werror). So we grep stderr for any message
7145 # that says an option was ignored or not supported.
7146 # When given -MP, icc 7.0 and 7.1 complain thusly:
7147 # icc: Command line warning: ignoring option '-M'; no argument required
7148 # The diagnosis changed in icc 8.0:
7149 # icc: Command line remark: option '-MP' not supported
7150 if (grep 'ignoring option' conftest.err ||
7151 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7152 am_cv_CC_dependencies_compiler_type=$depmode
7153 $as_echo "$as_me:$LINENO: success" >&5
7154 break
7155 fi
7156 fi
7157 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
7158 sed -e 's/^/| /' < conftest.err >&5
7159 done
7160
7161 cd ..
7162 rm -rf conftest.dir
7163else
7164 am_cv_CC_dependencies_compiler_type=none
7165fi
7166
7167fi
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7169$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7170if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
d0ac1c44 7171then as_fn_error $? "no usable dependency style found" "$LINENO" 5
6bb11ab3
L
7172else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7173
7174fi
7175
7176
7177# Check for the 'make' the user wants to use.
7178for ac_prog in make
7179do
7180 # Extract the first word of "$ac_prog", so it can be a program name with args.
7181set dummy $ac_prog; ac_word=$2
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7184if ${ac_cv_prog_MAKE+:} false; then :
6bb11ab3
L
7185 $as_echo_n "(cached) " >&6
7186else
7187 if test -n "$MAKE"; then
7188 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
7189else
7190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191for as_dir in $PATH
7192do
7193 IFS=$as_save_IFS
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7197 ac_cv_prog_MAKE="$ac_prog"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 break 2
7200 fi
7201done
7202 done
7203IFS=$as_save_IFS
7204
7205fi
7206fi
7207MAKE=$ac_cv_prog_MAKE
7208if test -n "$MAKE"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7210$as_echo "$MAKE" >&6; }
7211else
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213$as_echo "no" >&6; }
7214fi
7215
7216
7217 test -n "$MAKE" && break
7218done
7219
7220MAKE_IS_GNU=
7221case "`$MAKE --version 2>&1 | sed 1q`" in
7222 *GNU*)
7223 MAKE_IS_GNU=yes
7224 ;;
7225esac
7226 if test "$MAKE_IS_GNU" = yes; then
7227 GMAKE_TRUE=
7228 GMAKE_FALSE='#'
7229else
7230 GMAKE_TRUE='#'
7231 GMAKE_FALSE=
7232fi
7233
7234
7235ALL_LINGUAS=
7236# If we haven't got the data from the intl directory,
7237# assume NLS is disabled.
7238USE_NLS=no
7239LIBINTL=
7240LIBINTL_DEP=
7241INCINTL=
7242XGETTEXT=
7243GMSGFMT=
7244POSUB=
7245
7246if test -f ../../intl/config.intl; then
7247 . ../../intl/config.intl
7248fi
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7250$as_echo_n "checking whether NLS is requested... " >&6; }
7251if test x"$USE_NLS" != xyes; then
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253$as_echo "no" >&6; }
7254else
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7256$as_echo "yes" >&6; }
7257
7258$as_echo "#define ENABLE_NLS 1" >>confdefs.h
7259
7260
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7262$as_echo_n "checking for catalogs to be installed... " >&6; }
7263 # Look for .po and .gmo files in the source directory.
7264 CATALOGS=
7265 XLINGUAS=
7266 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7267 # If there aren't any .gmo files the shell will give us the
7268 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7269 # weeded out.
7270 case "$cat" in *\**)
7271 continue;;
7272 esac
7273 # The quadruple backslash is collapsed to a double backslash
7274 # by the backticks, then collapsed again by the double quotes,
7275 # leaving us with one backslash in the sed expression (right
7276 # before the dot that mustn't act as a wildcard).
7277 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7278 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7279 # The user is allowed to set LINGUAS to a list of languages to
7280 # install catalogs for. If it's empty that means "all of them."
7281 if test "x$LINGUAS" = x; then
7282 CATALOGS="$CATALOGS $cat"
7283 XLINGUAS="$XLINGUAS $lang"
7284 else
7285 case "$LINGUAS" in *$lang*)
7286 CATALOGS="$CATALOGS $cat"
7287 XLINGUAS="$XLINGUAS $lang"
7288 ;;
7289 esac
7290 fi
7291 done
7292 LINGUAS="$XLINGUAS"
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7294$as_echo "$LINGUAS" >&6; }
7295
7296
7297 DATADIRNAME=share
7298
7299 INSTOBJEXT=.mo
7300
7301 GENCAT=gencat
7302
7303 CATOBJEXT=.gmo
7304
7305fi
7306
7307# Check for common headers.
68ed2854
MF
7308# NB: You can assume C11 headers exist.
7309for ac_header in unistd.h
6bb11ab3 7310do :
68ed2854
MF
7311 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
7312if test "x$ac_cv_header_unistd_h" = xyes; then :
6bb11ab3 7313 cat >>confdefs.h <<_ACEOF
68ed2854 7314#define HAVE_UNISTD_H 1
6bb11ab3
L
7315_ACEOF
7316
7317fi
7318
7319done
7320
936df756 7321for ac_header in sys/time.h sys/times.h sys/resource.h sys/mman.h
6bb11ab3
L
7322do :
7323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7324ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 7325if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
7326 cat >>confdefs.h <<_ACEOF
7327#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7328_ACEOF
7329
7330fi
7331
7332done
7333
7334for ac_header in fcntl.h fpu_control.h
7335do :
7336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7337ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 7338if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
7339 cat >>confdefs.h <<_ACEOF
7340#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7341_ACEOF
7342
7343fi
7344
7345done
7346
68ed2854 7347for ac_header in dlfcn.h sys/stat.h
6bb11ab3
L
7348do :
7349 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7350ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 7351if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
7352 cat >>confdefs.h <<_ACEOF
7353#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7354_ACEOF
7355
7356fi
7357
7358done
7359
936df756
MF
7360
7361ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
7362#include <sys/types.h>
7363#endif
7364#ifdef HAVE_SYS_STAT_H
7365#include <sys/stat.h>
7366#endif
7367"
d0ac1c44 7368if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
936df756
MF
7369
7370cat >>confdefs.h <<_ACEOF
7371#define HAVE_STRUCT_STAT_ST_DEV 1
7372_ACEOF
7373
7374
7375fi
7376ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
7377#include <sys/types.h>
7378#endif
7379#ifdef HAVE_SYS_STAT_H
7380#include <sys/stat.h>
7381#endif
7382"
d0ac1c44 7383if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
936df756
MF
7384
7385cat >>confdefs.h <<_ACEOF
7386#define HAVE_STRUCT_STAT_ST_INO 1
7387_ACEOF
7388
7389
7390fi
7391ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
7392#include <sys/types.h>
7393#endif
7394#ifdef HAVE_SYS_STAT_H
7395#include <sys/stat.h>
7396#endif
7397"
d0ac1c44 7398if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
936df756
MF
7399
7400cat >>confdefs.h <<_ACEOF
7401#define HAVE_STRUCT_STAT_ST_MODE 1
7402_ACEOF
7403
7404
7405fi
7406ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
7407#include <sys/types.h>
7408#endif
7409#ifdef HAVE_SYS_STAT_H
7410#include <sys/stat.h>
7411#endif
7412"
d0ac1c44 7413if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
936df756
MF
7414
7415cat >>confdefs.h <<_ACEOF
7416#define HAVE_STRUCT_STAT_ST_NLINK 1
7417_ACEOF
7418
7419
7420fi
7421ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
7422#include <sys/types.h>
7423#endif
7424#ifdef HAVE_SYS_STAT_H
7425#include <sys/stat.h>
7426#endif
7427"
d0ac1c44 7428if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
936df756
MF
7429
7430cat >>confdefs.h <<_ACEOF
7431#define HAVE_STRUCT_STAT_ST_UID 1
7432_ACEOF
7433
7434
7435fi
7436ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
7437#include <sys/types.h>
7438#endif
7439#ifdef HAVE_SYS_STAT_H
7440#include <sys/stat.h>
7441#endif
7442"
d0ac1c44 7443if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
936df756
MF
7444
7445cat >>confdefs.h <<_ACEOF
7446#define HAVE_STRUCT_STAT_ST_GID 1
7447_ACEOF
7448
7449
7450fi
7451ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
7452#include <sys/types.h>
7453#endif
7454#ifdef HAVE_SYS_STAT_H
7455#include <sys/stat.h>
7456#endif
7457"
d0ac1c44 7458if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
936df756
MF
7459
7460cat >>confdefs.h <<_ACEOF
7461#define HAVE_STRUCT_STAT_ST_RDEV 1
7462_ACEOF
7463
7464
7465fi
7466ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
7467#include <sys/types.h>
7468#endif
7469#ifdef HAVE_SYS_STAT_H
7470#include <sys/stat.h>
7471#endif
7472"
d0ac1c44 7473if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
936df756
MF
7474
7475cat >>confdefs.h <<_ACEOF
7476#define HAVE_STRUCT_STAT_ST_SIZE 1
7477_ACEOF
7478
7479
7480fi
7481ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
7482#include <sys/types.h>
7483#endif
7484#ifdef HAVE_SYS_STAT_H
7485#include <sys/stat.h>
7486#endif
7487"
d0ac1c44 7488if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
936df756
MF
7489
7490cat >>confdefs.h <<_ACEOF
7491#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7492_ACEOF
7493
7494
7495fi
7496ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
7497#include <sys/types.h>
7498#endif
7499#ifdef HAVE_SYS_STAT_H
7500#include <sys/stat.h>
7501#endif
7502"
d0ac1c44 7503if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
936df756
MF
7504
7505cat >>confdefs.h <<_ACEOF
7506#define HAVE_STRUCT_STAT_ST_BLOCKS 1
7507_ACEOF
7508
7509
7510fi
7511ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
7512#include <sys/types.h>
7513#endif
7514#ifdef HAVE_SYS_STAT_H
7515#include <sys/stat.h>
7516#endif
7517"
d0ac1c44 7518if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
936df756
MF
7519
7520cat >>confdefs.h <<_ACEOF
7521#define HAVE_STRUCT_STAT_ST_ATIME 1
7522_ACEOF
7523
7524
7525fi
7526ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
7527#include <sys/types.h>
7528#endif
7529#ifdef HAVE_SYS_STAT_H
7530#include <sys/stat.h>
7531#endif
7532"
d0ac1c44 7533if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
936df756
MF
7534
7535cat >>confdefs.h <<_ACEOF
7536#define HAVE_STRUCT_STAT_ST_MTIME 1
7537_ACEOF
7538
7539
7540fi
7541ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
7542#include <sys/types.h>
7543#endif
7544#ifdef HAVE_SYS_STAT_H
7545#include <sys/stat.h>
7546#endif
7547"
d0ac1c44 7548if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
936df756
MF
7549
7550cat >>confdefs.h <<_ACEOF
7551#define HAVE_STRUCT_STAT_ST_CTIME 1
7552_ACEOF
7553
7554
7555fi
7556
7557ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
7558#include <sys/socket.h>
7559
7560"
d0ac1c44 7561if test "x$ac_cv_type_socklen_t" = xyes; then :
936df756
MF
7562
7563cat >>confdefs.h <<_ACEOF
7564#define HAVE_SOCKLEN_T 1
7565_ACEOF
7566
7567
7568fi
7569
6bb11ab3
L
7570
7571# Check for socket libraries
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7573$as_echo_n "checking for bind in -lsocket... " >&6; }
d0ac1c44 7574if ${ac_cv_lib_socket_bind+:} false; then :
6bb11ab3
L
7575 $as_echo_n "(cached) " >&6
7576else
7577 ac_check_lib_save_LIBS=$LIBS
7578LIBS="-lsocket $LIBS"
7579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580/* end confdefs.h. */
7581
7582/* Override any GCC internal prototype to avoid an error.
7583 Use char because int might match the return type of a GCC
7584 builtin and then its argument prototype would still apply. */
7585#ifdef __cplusplus
7586extern "C"
7587#endif
7588char bind ();
7589int
7590main ()
7591{
7592return bind ();
7593 ;
7594 return 0;
7595}
7596_ACEOF
7597if ac_fn_c_try_link "$LINENO"; then :
7598 ac_cv_lib_socket_bind=yes
7599else
7600 ac_cv_lib_socket_bind=no
7601fi
7602rm -f core conftest.err conftest.$ac_objext \
7603 conftest$ac_exeext conftest.$ac_ext
7604LIBS=$ac_check_lib_save_LIBS
7605fi
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7607$as_echo "$ac_cv_lib_socket_bind" >&6; }
d0ac1c44 7608if test "x$ac_cv_lib_socket_bind" = xyes; then :
6bb11ab3
L
7609 cat >>confdefs.h <<_ACEOF
7610#define HAVE_LIBSOCKET 1
7611_ACEOF
7612
7613 LIBS="-lsocket $LIBS"
7614
7615fi
7616
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7618$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
d0ac1c44 7619if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6bb11ab3
L
7620 $as_echo_n "(cached) " >&6
7621else
7622 ac_check_lib_save_LIBS=$LIBS
7623LIBS="-lnsl $LIBS"
7624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625/* end confdefs.h. */
7626
7627/* Override any GCC internal prototype to avoid an error.
7628 Use char because int might match the return type of a GCC
7629 builtin and then its argument prototype would still apply. */
7630#ifdef __cplusplus
7631extern "C"
7632#endif
7633char gethostbyname ();
7634int
7635main ()
7636{
7637return gethostbyname ();
7638 ;
7639 return 0;
7640}
7641_ACEOF
7642if ac_fn_c_try_link "$LINENO"; then :
7643 ac_cv_lib_nsl_gethostbyname=yes
7644else
7645 ac_cv_lib_nsl_gethostbyname=no
7646fi
7647rm -f core conftest.err conftest.$ac_objext \
7648 conftest$ac_exeext conftest.$ac_ext
7649LIBS=$ac_check_lib_save_LIBS
7650fi
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7652$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
d0ac1c44 7653if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6bb11ab3
L
7654 cat >>confdefs.h <<_ACEOF
7655#define HAVE_LIBNSL 1
7656_ACEOF
7657
7658 LIBS="-lnsl $LIBS"
7659
7660fi
7661
7662
7663# BFD conditionally uses zlib, so we must link it in if libbfd does, by
7664# using the same condition.
7665
aadc9410 7666 # Use the system's zlib library.
7fed4b0b
L
7667 zlibdir="-L\$(top_builddir)/../zlib"
7668 zlibinc="-I\$(top_srcdir)/../zlib"
6bb11ab3 7669
aadc9410
MF
7670# Check whether --with-system-zlib was given.
7671if test "${with_system_zlib+set}" = set; then :
0ceaf1ec
L
7672 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7673 zlibdir=
7674 zlibinc=
7675 fi
6bb11ab3
L
7676
7677fi
7678
6bb11ab3 7679
6bb11ab3 7680
6bb11ab3
L
7681
7682
7683# BFD uses libdl when when plugins enabled.
7684
faa743bb
RM
7685 maybe_plugins=no
7686 for ac_header in dlfcn.h
7687do :
7688 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7689"
d0ac1c44 7690if test "x$ac_cv_header_dlfcn_h" = xyes; then :
faa743bb
RM
7691 cat >>confdefs.h <<_ACEOF
7692#define HAVE_DLFCN_H 1
7693_ACEOF
7694 maybe_plugins=yes
7695fi
7696
7697done
7698
7699 for ac_header in windows.h
7700do :
7701 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
7702"
d0ac1c44 7703if test "x$ac_cv_header_windows_h" = xyes; then :
faa743bb
RM
7704 cat >>confdefs.h <<_ACEOF
7705#define HAVE_WINDOWS_H 1
7706_ACEOF
7707 maybe_plugins=yes
7708fi
7709
7710done
7711
7712
7713 # Check whether --enable-plugins was given.
6bb11ab3
L
7714if test "${enable_plugins+set}" = set; then :
7715 enableval=$enable_plugins; case "${enableval}" in
faa743bb
RM
7716 no) plugins=no ;;
7717 *) plugins=yes
7718 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 7719 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
faa743bb
RM
7720 fi ;;
7721 esac
6bb11ab3 7722else
faa743bb
RM
7723 plugins=$maybe_plugins
7724
6bb11ab3
L
7725fi
7726
2974be62 7727 if test "$plugins" = "yes"; then
37f980dc
SM
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
7729$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 7730if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7731 $as_echo_n "(cached) " >&6
7732else
7733 ac_func_search_save_LIBS=$LIBS
7734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735/* end confdefs.h. */
7736
7737/* Override any GCC internal prototype to avoid an error.
7738 Use char because int might match the return type of a GCC
7739 builtin and then its argument prototype would still apply. */
7740#ifdef __cplusplus
7741extern "C"
7742#endif
37f980dc 7743char dlsym ();
2974be62
AM
7744int
7745main ()
7746{
37f980dc 7747return dlsym ();
2974be62
AM
7748 ;
7749 return 0;
7750}
7751_ACEOF
7752for ac_lib in '' dl; do
7753 if test -z "$ac_lib"; then
7754 ac_res="none required"
7755 else
7756 ac_res=-l$ac_lib
7757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7758 fi
7759 if ac_fn_c_try_link "$LINENO"; then :
37f980dc 7760 ac_cv_search_dlsym=$ac_res
2974be62
AM
7761fi
7762rm -f core conftest.err conftest.$ac_objext \
7763 conftest$ac_exeext
d0ac1c44 7764 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7765 break
7766fi
7767done
d0ac1c44 7768if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7769
7770else
37f980dc 7771 ac_cv_search_dlsym=no
2974be62
AM
7772fi
7773rm conftest.$ac_ext
7774LIBS=$ac_func_search_save_LIBS
7775fi
37f980dc
SM
7776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
7777$as_echo "$ac_cv_search_dlsym" >&6; }
7778ac_res=$ac_cv_search_dlsym
2974be62
AM
7779if test "$ac_res" != no; then :
7780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7781
7782fi
7783
7784 fi
6bb11ab3
L
7785
7786 if test "$plugins" = yes; then
7787 PLUGINS_TRUE=
7788 PLUGINS_FALSE='#'
7789else
7790 PLUGINS_TRUE='#'
7791 PLUGINS_FALSE=
7792fi
7793
7794
7795
7796
7797
7798# Set options
7799enable_dlopen=yes
7800
7801
7802
7803
7804 enable_win32_dll=no
7805
7806
7807 # Check whether --enable-shared was given.
7808if test "${enable_shared+set}" = set; then :
7809 enableval=$enable_shared; p=${PACKAGE-default}
7810 case $enableval in
7811 yes) enable_shared=yes ;;
7812 no) enable_shared=no ;;
7813 *)
7814 enable_shared=no
7815 # Look at the argument we got. We use all the common list separators.
7816 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7817 for pkg in $enableval; do
7818 IFS="$lt_save_ifs"
7819 if test "X$pkg" = "X$p"; then
7820 enable_shared=yes
7821 fi
7822 done
7823 IFS="$lt_save_ifs"
7824 ;;
7825 esac
7826else
7827 enable_shared=yes
7828fi
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838 # Check whether --enable-static was given.
7839if test "${enable_static+set}" = set; then :
7840 enableval=$enable_static; p=${PACKAGE-default}
7841 case $enableval in
7842 yes) enable_static=yes ;;
7843 no) enable_static=no ;;
7844 *)
7845 enable_static=no
7846 # Look at the argument we got. We use all the common list separators.
7847 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7848 for pkg in $enableval; do
7849 IFS="$lt_save_ifs"
7850 if test "X$pkg" = "X$p"; then
7851 enable_static=yes
7852 fi
7853 done
7854 IFS="$lt_save_ifs"
7855 ;;
7856 esac
7857else
7858 enable_static=yes
7859fi
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870# Check whether --with-pic was given.
7871if test "${with_pic+set}" = set; then :
7872 withval=$with_pic; pic_mode="$withval"
7873else
7874 pic_mode=default
7875fi
7876
7877
7878test -z "$pic_mode" && pic_mode=default
7879
7880
7881
7882
7883
7884
7885
7886 # Check whether --enable-fast-install was given.
7887if test "${enable_fast_install+set}" = set; then :
7888 enableval=$enable_fast_install; p=${PACKAGE-default}
7889 case $enableval in
7890 yes) enable_fast_install=yes ;;
7891 no) enable_fast_install=no ;;
7892 *)
7893 enable_fast_install=no
7894 # Look at the argument we got. We use all the common list separators.
7895 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7896 for pkg in $enableval; do
7897 IFS="$lt_save_ifs"
7898 if test "X$pkg" = "X$p"; then
7899 enable_fast_install=yes
7900 fi
7901 done
7902 IFS="$lt_save_ifs"
7903 ;;
7904 esac
7905else
7906 enable_fast_install=yes
7907fi
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919# This can be used to rebuild libtool when needed
7920LIBTOOL_DEPS="$ltmain"
7921
7922# Always use our own libtool.
7923LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950test -z "$LN_S" && LN_S="ln -s"
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965if test -n "${ZSH_VERSION+set}" ; then
7966 setopt NO_GLOB_SUBST
7967fi
7968
7969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7970$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 7971if ${lt_cv_objdir+:} false; then :
6bb11ab3
L
7972 $as_echo_n "(cached) " >&6
7973else
7974 rm -f .libs 2>/dev/null
7975mkdir .libs 2>/dev/null
7976if test -d .libs; then
7977 lt_cv_objdir=.libs
7978else
7979 # MS-DOS does not allow filenames that begin with a dot.
7980 lt_cv_objdir=_libs
b7026657 7981fi
6bb11ab3
L
7982rmdir .libs 2>/dev/null
7983fi
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7985$as_echo "$lt_cv_objdir" >&6; }
7986objdir=$lt_cv_objdir
b7026657 7987
6bb11ab3
L
7988
7989
7990
7991
7992cat >>confdefs.h <<_ACEOF
7993#define LT_OBJDIR "$lt_cv_objdir/"
7994_ACEOF
7995
7996
7997
7998
7999case $host_os in
8000aix3*)
8001 # AIX sometimes has problems with the GCC collect2 program. For some
8002 # reason, if we set the COLLECT_NAMES environment variable, the problems
8003 # vanish in a puff of smoke.
8004 if test "X${COLLECT_NAMES+set}" != Xset; then
8005 COLLECT_NAMES=
8006 export COLLECT_NAMES
8007 fi
8008 ;;
81ecdfbb 8009esac
6bb11ab3
L
8010
8011# Global variables:
8012ofile=libtool
8013can_build_shared=yes
8014
8015# All known linkers require a `.a' archive for static linking (except MSVC,
8016# which needs '.lib').
8017libext=a
8018
8019with_gnu_ld="$lt_cv_prog_gnu_ld"
8020
8021old_CC="$CC"
8022old_CFLAGS="$CFLAGS"
8023
8024# Set sane defaults for various variables
8025test -z "$CC" && CC=cc
8026test -z "$LTCC" && LTCC=$CC
8027test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8028test -z "$LD" && LD=ld
8029test -z "$ac_objext" && ac_objext=o
8030
8031for cc_temp in $compiler""; do
8032 case $cc_temp in
8033 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8034 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8035 \-*) ;;
8036 *) break;;
8037 esac
8038done
8039cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8040
8041
8042# Only perform the check for file, if the check method requires it
8043test -z "$MAGIC_CMD" && MAGIC_CMD=file
8044case $deplibs_check_method in
8045file_magic*)
8046 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8048$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 8049if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
8050 $as_echo_n "(cached) " >&6
8051else
8052 case $MAGIC_CMD in
8053[\\/*] | ?:[\\/]*)
8054 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8055 ;;
8056*)
8057 lt_save_MAGIC_CMD="$MAGIC_CMD"
8058 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8059 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8060 for ac_dir in $ac_dummy; do
8061 IFS="$lt_save_ifs"
8062 test -z "$ac_dir" && ac_dir=.
8063 if test -f $ac_dir/${ac_tool_prefix}file; then
8064 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8065 if test -n "$file_magic_test_file"; then
8066 case $deplibs_check_method in
8067 "file_magic "*)
8068 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8069 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8070 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8071 $EGREP "$file_magic_regex" > /dev/null; then
8072 :
8073 else
8074 cat <<_LT_EOF 1>&2
8075
8076*** Warning: the command libtool uses to detect shared libraries,
8077*** $file_magic_cmd, produces output that libtool cannot recognize.
8078*** The result is that libtool may fail to recognize shared libraries
8079*** as such. This will affect the creation of libtool libraries that
8080*** depend on shared libraries, but programs linked with such libtool
8081*** libraries will work regardless of this problem. Nevertheless, you
8082*** may want to report the problem to your system manager and/or to
8083*** bug-libtool@gnu.org
8084
8085_LT_EOF
8086 fi ;;
8087 esac
8088 fi
8089 break
f0569246 8090 fi
6bb11ab3
L
8091 done
8092 IFS="$lt_save_ifs"
8093 MAGIC_CMD="$lt_save_MAGIC_CMD"
8094 ;;
8095esac
f0569246 8096fi
f0569246 8097
6bb11ab3
L
8098MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8099if test -n "$MAGIC_CMD"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8101$as_echo "$MAGIC_CMD" >&6; }
8102else
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104$as_echo "no" >&6; }
8105fi
81ecdfbb 8106
6bb11ab3
L
8107
8108
8109
8110
8111if test -z "$lt_cv_path_MAGIC_CMD"; then
8112 if test -n "$ac_tool_prefix"; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8114$as_echo_n "checking for file... " >&6; }
d0ac1c44 8115if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
8116 $as_echo_n "(cached) " >&6
8117else
8118 case $MAGIC_CMD in
8119[\\/*] | ?:[\\/]*)
8120 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8121 ;;
8122*)
8123 lt_save_MAGIC_CMD="$MAGIC_CMD"
8124 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8125 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8126 for ac_dir in $ac_dummy; do
8127 IFS="$lt_save_ifs"
8128 test -z "$ac_dir" && ac_dir=.
8129 if test -f $ac_dir/file; then
8130 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8131 if test -n "$file_magic_test_file"; then
8132 case $deplibs_check_method in
8133 "file_magic "*)
8134 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8135 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8136 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8137 $EGREP "$file_magic_regex" > /dev/null; then
8138 :
8139 else
8140 cat <<_LT_EOF 1>&2
8141
8142*** Warning: the command libtool uses to detect shared libraries,
8143*** $file_magic_cmd, produces output that libtool cannot recognize.
8144*** The result is that libtool may fail to recognize shared libraries
8145*** as such. This will affect the creation of libtool libraries that
8146*** depend on shared libraries, but programs linked with such libtool
8147*** libraries will work regardless of this problem. Nevertheless, you
8148*** may want to report the problem to your system manager and/or to
8149*** bug-libtool@gnu.org
8150
8151_LT_EOF
8152 fi ;;
8153 esac
8154 fi
8155 break
8156 fi
8157 done
8158 IFS="$lt_save_ifs"
8159 MAGIC_CMD="$lt_save_MAGIC_CMD"
8160 ;;
81ecdfbb 8161esac
6bb11ab3
L
8162fi
8163
8164MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8165if test -n "$MAGIC_CMD"; then
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8167$as_echo "$MAGIC_CMD" >&6; }
8168else
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170$as_echo "no" >&6; }
8171fi
8172
8173
8174 else
8175 MAGIC_CMD=:
8176 fi
8177fi
8178
8179 fi
8180 ;;
8181esac
8182
8183# Use C for the default configuration in the libtool script
8184
8185lt_save_CC="$CC"
8186ac_ext=c
8187ac_cpp='$CPP $CPPFLAGS'
8188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8190ac_compiler_gnu=$ac_cv_c_compiler_gnu
8191
8192
8193# Source file extension for C test sources.
8194ac_ext=c
8195
8196# Object file extension for compiled C test sources.
8197objext=o
8198objext=$objext
8199
8200# Code to be used in simple compile tests
8201lt_simple_compile_test_code="int some_variable = 0;"
8202
8203# Code to be used in simple link tests
8204lt_simple_link_test_code='int main(){return(0);}'
8205
8206
8207
8208
8209
8210
8211
8212# If no C compiler was specified, use CC.
8213LTCC=${LTCC-"$CC"}
8214
8215# If no C compiler flags were specified, use CFLAGS.
8216LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8217
8218# Allow CC to be a program name with arguments.
8219compiler=$CC
8220
8221# Save the default compiler, since it gets overwritten when the other
8222# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8223compiler_DEFAULT=$CC
8224
8225# save warnings/boilerplate of simple test code
8226ac_outfile=conftest.$ac_objext
8227echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8228eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8229_lt_compiler_boilerplate=`cat conftest.err`
8230$RM conftest*
8231
8232ac_outfile=conftest.$ac_objext
8233echo "$lt_simple_link_test_code" >conftest.$ac_ext
8234eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8235_lt_linker_boilerplate=`cat conftest.err`
8236$RM -r conftest*
8237
8238
8239## CAVEAT EMPTOR:
8240## There is no encapsulation within the following macros, do not change
8241## the running order or otherwise move them around unless you know exactly
8242## what you are doing...
8243if test -n "$compiler"; then
8244
8245lt_prog_compiler_no_builtin_flag=
8246
8247if test "$GCC" = yes; then
8248 case $cc_basename in
8249 nvcc*)
8250 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8251 *)
8252 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
f0569246 8253 esac
6bb11ab3
L
8254
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8256$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 8257if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6bb11ab3 8258 $as_echo_n "(cached) " >&6
f0569246 8259else
6bb11ab3
L
8260 lt_cv_prog_compiler_rtti_exceptions=no
8261 ac_outfile=conftest.$ac_objext
8262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8263 lt_compiler_flag="-fno-rtti -fno-exceptions"
8264 # Insert the option either (1) after the last *FLAGS variable, or
8265 # (2) before a word containing "conftest.", or (3) at the end.
8266 # Note that $ac_compile itself does not contain backslashes and begins
8267 # with a dollar sign (not a hyphen), so the echo should work correctly.
8268 # The option is referenced via a variable to avoid confusing sed.
8269 lt_compile=`echo "$ac_compile" | $SED \
8270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8272 -e 's:$: $lt_compiler_flag:'`
8273 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8274 (eval "$lt_compile" 2>conftest.err)
8275 ac_status=$?
8276 cat conftest.err >&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 if (exit $ac_status) && test -s "$ac_outfile"; then
8279 # The compiler can only warn and ignore the option if not recognized
8280 # So say no if there are warnings other than the usual output.
8281 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8282 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8283 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8284 lt_cv_prog_compiler_rtti_exceptions=yes
8285 fi
8286 fi
8287 $RM conftest*
8288
f0569246 8289fi
6bb11ab3
L
8290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8291$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8292
8293if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8294 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8295else
8296 :
8297fi
8298
8299fi
8300
8301
8302
8303
8304
8305
8306 lt_prog_compiler_wl=
8307lt_prog_compiler_pic=
8308lt_prog_compiler_static=
8309
8310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8311$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8312
8313 if test "$GCC" = yes; then
8314 lt_prog_compiler_wl='-Wl,'
8315 lt_prog_compiler_static='-static'
8316
8317 case $host_os in
8318 aix*)
8319 # All AIX code is PIC.
8320 if test "$host_cpu" = ia64; then
8321 # AIX 5 now supports IA64 processor
8322 lt_prog_compiler_static='-Bstatic'
8323 fi
8324 lt_prog_compiler_pic='-fPIC'
8325 ;;
8326
8327 amigaos*)
8328 case $host_cpu in
8329 powerpc)
8330 # see comment about AmigaOS4 .so support
8331 lt_prog_compiler_pic='-fPIC'
8332 ;;
8333 m68k)
8334 # FIXME: we need at least 68020 code to build shared libraries, but
8335 # adding the `-m68020' flag to GCC prevents building anything better,
8336 # like `-m68040'.
8337 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8338 ;;
8339 esac
8340 ;;
8341
8342 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8343 # PIC is the default for these OSes.
8344 ;;
8345
8346 mingw* | cygwin* | pw32* | os2* | cegcc*)
8347 # This hack is so that the source file can tell whether it is being
8348 # built for inclusion in a dll (and should export symbols for example).
8349 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8350 # (--disable-auto-import) libraries
8351 lt_prog_compiler_pic='-DDLL_EXPORT'
8352 ;;
8353
8354 darwin* | rhapsody*)
8355 # PIC is the default on this platform
8356 # Common symbols not allowed in MH_DYLIB files
8357 lt_prog_compiler_pic='-fno-common'
8358 ;;
8359
8360 haiku*)
8361 # PIC is the default for Haiku.
8362 # The "-static" flag exists, but is broken.
8363 lt_prog_compiler_static=
8364 ;;
8365
8366 hpux*)
8367 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8368 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8369 # sets the default TLS model and affects inlining.
8370 case $host_cpu in
8371 hppa*64*)
8372 # +Z the default
8373 ;;
8374 *)
8375 lt_prog_compiler_pic='-fPIC'
8376 ;;
8377 esac
8378 ;;
8379
8380 interix[3-9]*)
8381 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8382 # Instead, we relocate shared libraries at runtime.
8383 ;;
8384
8385 msdosdjgpp*)
8386 # Just because we use GCC doesn't mean we suddenly get shared libraries
8387 # on systems that don't support them.
8388 lt_prog_compiler_can_build_shared=no
8389 enable_shared=no
8390 ;;
8391
8392 *nto* | *qnx*)
8393 # QNX uses GNU C++, but need to define -shared option too, otherwise
8394 # it will coredump.
8395 lt_prog_compiler_pic='-fPIC -shared'
8396 ;;
8397
8398 sysv4*MP*)
8399 if test -d /usr/nec; then
8400 lt_prog_compiler_pic=-Kconform_pic
8401 fi
8402 ;;
8403
8404 *)
8405 lt_prog_compiler_pic='-fPIC'
8406 ;;
8407 esac
8408
8409 case $cc_basename in
8410 nvcc*) # Cuda Compiler Driver 2.2
8411 lt_prog_compiler_wl='-Xlinker '
8412 lt_prog_compiler_pic='-Xcompiler -fPIC'
8413 ;;
8414 esac
8415 else
8416 # PORTME Check for flag to pass linker flags through the system compiler.
8417 case $host_os in
8418 aix*)
8419 lt_prog_compiler_wl='-Wl,'
8420 if test "$host_cpu" = ia64; then
8421 # AIX 5 now supports IA64 processor
8422 lt_prog_compiler_static='-Bstatic'
8423 else
8424 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8425 fi
8426 ;;
8427
8428 mingw* | cygwin* | pw32* | os2* | cegcc*)
8429 # This hack is so that the source file can tell whether it is being
8430 # built for inclusion in a dll (and should export symbols for example).
8431 lt_prog_compiler_pic='-DDLL_EXPORT'
8432 ;;
8433
8434 hpux9* | hpux10* | hpux11*)
8435 lt_prog_compiler_wl='-Wl,'
8436 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8437 # not for PA HP-UX.
8438 case $host_cpu in
8439 hppa*64*|ia64*)
8440 # +Z the default
8441 ;;
8442 *)
8443 lt_prog_compiler_pic='+Z'
8444 ;;
8445 esac
8446 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8447 lt_prog_compiler_static='${wl}-a ${wl}archive'
8448 ;;
8449
8450 irix5* | irix6* | nonstopux*)
8451 lt_prog_compiler_wl='-Wl,'
8452 # PIC (with -KPIC) is the default.
8453 lt_prog_compiler_static='-non_shared'
8454 ;;
8455
8456 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8457 case $cc_basename in
8458 # old Intel for x86_64 which still supported -KPIC.
8459 ecc*)
8460 lt_prog_compiler_wl='-Wl,'
8461 lt_prog_compiler_pic='-KPIC'
8462 lt_prog_compiler_static='-static'
8463 ;;
8464 # icc used to be incompatible with GCC.
8465 # ICC 10 doesn't accept -KPIC any more.
8466 icc* | ifort*)
8467 lt_prog_compiler_wl='-Wl,'
8468 lt_prog_compiler_pic='-fPIC'
8469 lt_prog_compiler_static='-static'
8470 ;;
8471 # Lahey Fortran 8.1.
8472 lf95*)
8473 lt_prog_compiler_wl='-Wl,'
8474 lt_prog_compiler_pic='--shared'
8475 lt_prog_compiler_static='--static'
8476 ;;
8477 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8478 # Portland Group compilers (*not* the Pentium gcc compiler,
8479 # which looks to be a dead project)
8480 lt_prog_compiler_wl='-Wl,'
8481 lt_prog_compiler_pic='-fpic'
8482 lt_prog_compiler_static='-Bstatic'
8483 ;;
8484 ccc*)
8485 lt_prog_compiler_wl='-Wl,'
8486 # All Alpha code is PIC.
8487 lt_prog_compiler_static='-non_shared'
8488 ;;
8489 xl* | bgxl* | bgf* | mpixl*)
8490 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8491 lt_prog_compiler_wl='-Wl,'
8492 lt_prog_compiler_pic='-qpic'
8493 lt_prog_compiler_static='-qstaticlink'
8494 ;;
8495 *)
8496 case `$CC -V 2>&1 | sed 5q` in
8497 *Sun\ F* | *Sun*Fortran*)
8498 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8499 lt_prog_compiler_pic='-KPIC'
8500 lt_prog_compiler_static='-Bstatic'
8501 lt_prog_compiler_wl=''
8502 ;;
8503 *Sun\ C*)
8504 # Sun C 5.9
8505 lt_prog_compiler_pic='-KPIC'
8506 lt_prog_compiler_static='-Bstatic'
8507 lt_prog_compiler_wl='-Wl,'
8508 ;;
8509 esac
8510 ;;
8511 esac
8512 ;;
8513
8514 newsos6)
8515 lt_prog_compiler_pic='-KPIC'
8516 lt_prog_compiler_static='-Bstatic'
8517 ;;
8518
8519 *nto* | *qnx*)
8520 # QNX uses GNU C++, but need to define -shared option too, otherwise
8521 # it will coredump.
8522 lt_prog_compiler_pic='-fPIC -shared'
8523 ;;
8524
8525 osf3* | osf4* | osf5*)
8526 lt_prog_compiler_wl='-Wl,'
8527 # All OSF/1 code is PIC.
8528 lt_prog_compiler_static='-non_shared'
8529 ;;
8530
8531 rdos*)
8532 lt_prog_compiler_static='-non_shared'
8533 ;;
8534
8535 solaris*)
8536 lt_prog_compiler_pic='-KPIC'
8537 lt_prog_compiler_static='-Bstatic'
8538 case $cc_basename in
8539 f77* | f90* | f95*)
8540 lt_prog_compiler_wl='-Qoption ld ';;
8541 *)
8542 lt_prog_compiler_wl='-Wl,';;
8543 esac
8544 ;;
f0569246 8545
6bb11ab3
L
8546 sunos4*)
8547 lt_prog_compiler_wl='-Qoption ld '
8548 lt_prog_compiler_pic='-PIC'
8549 lt_prog_compiler_static='-Bstatic'
8550 ;;
f0569246 8551
6bb11ab3
L
8552 sysv4 | sysv4.2uw2* | sysv4.3*)
8553 lt_prog_compiler_wl='-Wl,'
8554 lt_prog_compiler_pic='-KPIC'
8555 lt_prog_compiler_static='-Bstatic'
8556 ;;
f0569246 8557
6bb11ab3
L
8558 sysv4*MP*)
8559 if test -d /usr/nec ;then
8560 lt_prog_compiler_pic='-Kconform_pic'
8561 lt_prog_compiler_static='-Bstatic'
8562 fi
8563 ;;
8564
8565 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8566 lt_prog_compiler_wl='-Wl,'
8567 lt_prog_compiler_pic='-KPIC'
8568 lt_prog_compiler_static='-Bstatic'
8569 ;;
8570
8571 unicos*)
8572 lt_prog_compiler_wl='-Wl,'
8573 lt_prog_compiler_can_build_shared=no
8574 ;;
8575
8576 uts4*)
8577 lt_prog_compiler_pic='-pic'
8578 lt_prog_compiler_static='-Bstatic'
8579 ;;
8580
8581 *)
8582 lt_prog_compiler_can_build_shared=no
8583 ;;
8584 esac
8585 fi
8586
8587case $host_os in
8588 # For platforms which do not support PIC, -DPIC is meaningless:
8589 *djgpp*)
8590 lt_prog_compiler_pic=
8591 ;;
8592 *)
8593 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8594 ;;
81ecdfbb 8595esac
6bb11ab3
L
8596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8597$as_echo "$lt_prog_compiler_pic" >&6; }
8598
8599
8600
8601
8602
8603
8604#
8605# Check to make sure the PIC flag actually works.
8606#
8607if test -n "$lt_prog_compiler_pic"; then
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8609$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 8610if ${lt_cv_prog_compiler_pic_works+:} false; then :
6bb11ab3 8611 $as_echo_n "(cached) " >&6
b7026657 8612else
6bb11ab3
L
8613 lt_cv_prog_compiler_pic_works=no
8614 ac_outfile=conftest.$ac_objext
8615 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8616 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8617 # Insert the option either (1) after the last *FLAGS variable, or
8618 # (2) before a word containing "conftest.", or (3) at the end.
8619 # Note that $ac_compile itself does not contain backslashes and begins
8620 # with a dollar sign (not a hyphen), so the echo should work correctly.
8621 # The option is referenced via a variable to avoid confusing sed.
8622 lt_compile=`echo "$ac_compile" | $SED \
8623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8625 -e 's:$: $lt_compiler_flag:'`
8626 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8627 (eval "$lt_compile" 2>conftest.err)
8628 ac_status=$?
8629 cat conftest.err >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 if (exit $ac_status) && test -s "$ac_outfile"; then
8632 # The compiler can only warn and ignore the option if not recognized
8633 # So say no if there are warnings other than the usual output.
8634 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8635 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8636 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8637 lt_cv_prog_compiler_pic_works=yes
8638 fi
8639 fi
8640 $RM conftest*
b7026657 8641
b7026657 8642fi
6bb11ab3
L
8643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8644$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8645
8646if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8647 case $lt_prog_compiler_pic in
8648 "" | " "*) ;;
8649 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8650 esac
8651else
8652 lt_prog_compiler_pic=
8653 lt_prog_compiler_can_build_shared=no
f0569246 8654fi
6bb11ab3
L
8655
8656fi
8657
8658
8659
8660
8661
8662
8663#
8664# Check to make sure the static flag actually works.
8665#
8666wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8668$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 8669if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 8670 $as_echo_n "(cached) " >&6
f0569246 8671else
6bb11ab3
L
8672 lt_cv_prog_compiler_static_works=no
8673 save_LDFLAGS="$LDFLAGS"
8674 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8675 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8676 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8677 # The linker can only warn and ignore the option if not recognized
8678 # So say no if there are warnings
8679 if test -s conftest.err; then
8680 # Append any errors to the config.log.
8681 cat conftest.err 1>&5
8682 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8683 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8684 if diff conftest.exp conftest.er2 >/dev/null; then
8685 lt_cv_prog_compiler_static_works=yes
8686 fi
8687 else
8688 lt_cv_prog_compiler_static_works=yes
8689 fi
8690 fi
8691 $RM -r conftest*
8692 LDFLAGS="$save_LDFLAGS"
f0569246 8693
6bb11ab3
L
8694fi
8695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8696$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
f0569246 8697
6bb11ab3
L
8698if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8699 :
b7026657 8700else
6bb11ab3 8701 lt_prog_compiler_static=
b7026657 8702fi
f0569246 8703
6bb11ab3
L
8704
8705
8706
8707
8708
8709
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8711$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8712if ${lt_cv_prog_compiler_c_o+:} false; then :
6bb11ab3 8713 $as_echo_n "(cached) " >&6
81ecdfbb 8714else
6bb11ab3
L
8715 lt_cv_prog_compiler_c_o=no
8716 $RM -r conftest 2>/dev/null
8717 mkdir conftest
8718 cd conftest
8719 mkdir out
8720 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8721
8722 lt_compiler_flag="-o out/conftest2.$ac_objext"
8723 # Insert the option either (1) after the last *FLAGS variable, or
8724 # (2) before a word containing "conftest.", or (3) at the end.
8725 # Note that $ac_compile itself does not contain backslashes and begins
8726 # with a dollar sign (not a hyphen), so the echo should work correctly.
8727 lt_compile=`echo "$ac_compile" | $SED \
8728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8730 -e 's:$: $lt_compiler_flag:'`
8731 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8732 (eval "$lt_compile" 2>out/conftest.err)
8733 ac_status=$?
8734 cat out/conftest.err >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8737 then
8738 # The compiler can only warn and ignore the option if not recognized
8739 # So say no if there are warnings
8740 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8741 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8742 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8743 lt_cv_prog_compiler_c_o=yes
8744 fi
8745 fi
8746 chmod u+w . 2>&5
8747 $RM conftest*
8748 # SGI C++ compiler will create directory out/ii_files/ for
8749 # template instantiation
8750 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8751 $RM out/* && rmdir out
8752 cd ..
8753 $RM -r conftest
8754 $RM conftest*
8755
81ecdfbb 8756fi
6bb11ab3
L
8757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8758$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8759
8760
8761
8762
8763
8764
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8766$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8767if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb
RW
8768 $as_echo_n "(cached) " >&6
8769else
6bb11ab3
L
8770 lt_cv_prog_compiler_c_o=no
8771 $RM -r conftest 2>/dev/null
8772 mkdir conftest
8773 cd conftest
8774 mkdir out
8775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8776
8777 lt_compiler_flag="-o out/conftest2.$ac_objext"
8778 # Insert the option either (1) after the last *FLAGS variable, or
8779 # (2) before a word containing "conftest.", or (3) at the end.
8780 # Note that $ac_compile itself does not contain backslashes and begins
8781 # with a dollar sign (not a hyphen), so the echo should work correctly.
8782 lt_compile=`echo "$ac_compile" | $SED \
8783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8785 -e 's:$: $lt_compiler_flag:'`
8786 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8787 (eval "$lt_compile" 2>out/conftest.err)
8788 ac_status=$?
8789 cat out/conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8792 then
8793 # The compiler can only warn and ignore the option if not recognized
8794 # So say no if there are warnings
8795 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8796 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8797 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8798 lt_cv_prog_compiler_c_o=yes
8799 fi
8800 fi
8801 chmod u+w . 2>&5
8802 $RM conftest*
8803 # SGI C++ compiler will create directory out/ii_files/ for
8804 # template instantiation
8805 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8806 $RM out/* && rmdir out
8807 cd ..
8808 $RM -r conftest
8809 $RM conftest*
8810
8811fi
8812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8813$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8814
8815
8816
8817
8818hard_links="nottested"
8819if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8820 # do not overwrite the value of need_locks provided by the user
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8822$as_echo_n "checking if we can lock with hard links... " >&6; }
8823 hard_links=yes
8824 $RM conftest*
8825 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8826 touch conftest.a
8827 ln conftest.a conftest.b 2>&5 || hard_links=no
8828 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8830$as_echo "$hard_links" >&6; }
8831 if test "$hard_links" = no; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8833$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8834 need_locks=warn
8835 fi
8836else
8837 need_locks=no
8838fi
8839
8840
8841
8842
8843
8844
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8846$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8847
8848 runpath_var=
8849 allow_undefined_flag=
8850 always_export_symbols=no
8851 archive_cmds=
8852 archive_expsym_cmds=
8853 compiler_needs_object=no
8854 enable_shared_with_static_runtimes=no
8855 export_dynamic_flag_spec=
8856 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8857 hardcode_automatic=no
8858 hardcode_direct=no
8859 hardcode_direct_absolute=no
8860 hardcode_libdir_flag_spec=
8861 hardcode_libdir_flag_spec_ld=
8862 hardcode_libdir_separator=
8863 hardcode_minus_L=no
8864 hardcode_shlibpath_var=unsupported
8865 inherit_rpath=no
8866 link_all_deplibs=unknown
8867 module_cmds=
8868 module_expsym_cmds=
8869 old_archive_from_new_cmds=
8870 old_archive_from_expsyms_cmds=
8871 thread_safe_flag_spec=
8872 whole_archive_flag_spec=
8873 # include_expsyms should be a list of space-separated symbols to be *always*
8874 # included in the symbol list
8875 include_expsyms=
8876 # exclude_expsyms can be an extended regexp of symbols to exclude
8877 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8878 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8879 # as well as any symbol that contains `d'.
8880 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8881 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8882 # platforms (ab)use it in PIC code, but their linkers get confused if
8883 # the symbol is explicitly referenced. Since portable code cannot
8884 # rely on this symbol name, it's probably fine to never include it in
8885 # preloaded symbol tables.
8886 # Exclude shared library initialization/finalization symbols.
8887 extract_expsyms_cmds=
8888
8889 case $host_os in
8890 cygwin* | mingw* | pw32* | cegcc*)
8891 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8892 # When not using gcc, we currently assume that we are using
8893 # Microsoft Visual C++.
8894 if test "$GCC" != yes; then
8895 with_gnu_ld=no
8896 fi
8897 ;;
8898 interix*)
8899 # we just hope/assume this is gcc and not c89 (= MSVC++)
8900 with_gnu_ld=yes
8901 ;;
8902 openbsd*)
8903 with_gnu_ld=no
8904 ;;
8905 esac
f0569246 8906
6bb11ab3
L
8907 ld_shlibs=yes
8908
8909 # On some targets, GNU ld is compatible enough with the native linker
8910 # that we're better off using the native interface for both.
8911 lt_use_gnu_ld_interface=no
8912 if test "$with_gnu_ld" = yes; then
8913 case $host_os in
8914 aix*)
8915 # The AIX port of GNU ld has always aspired to compatibility
8916 # with the native linker. However, as the warning in the GNU ld
8917 # block says, versions before 2.19.5* couldn't really create working
8918 # shared libraries, regardless of the interface used.
8919 case `$LD -v 2>&1` in
8920 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8921 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8922 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8923 *)
8924 lt_use_gnu_ld_interface=yes
8925 ;;
8926 esac
8927 ;;
8928 *)
8929 lt_use_gnu_ld_interface=yes
8930 ;;
8931 esac
8932 fi
f0569246 8933
6bb11ab3
L
8934 if test "$lt_use_gnu_ld_interface" = yes; then
8935 # If archive_cmds runs LD, not CC, wlarc should be empty
8936 wlarc='${wl}'
8937
8938 # Set some defaults for GNU ld with shared library support. These
8939 # are reset later if shared libraries are not supported. Putting them
8940 # here allows them to be overridden if necessary.
8941 runpath_var=LD_RUN_PATH
8942 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8943 export_dynamic_flag_spec='${wl}--export-dynamic'
8944 # ancient GNU ld didn't support --whole-archive et. al.
8945 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8946 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8947 else
8948 whole_archive_flag_spec=
8949 fi
8950 supports_anon_versioning=no
8951 case `$LD -v 2>&1` in
8952 *GNU\ gold*) supports_anon_versioning=yes ;;
8953 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8954 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8955 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8956 *\ 2.11.*) ;; # other 2.11 versions
8957 *) supports_anon_versioning=yes ;;
8958 esac
8959
8960 # See if GNU ld supports shared libraries.
8961 case $host_os in
8962 aix[3-9]*)
8963 # On AIX/PPC, the GNU linker is very broken
8964 if test "$host_cpu" != ia64; then
8965 ld_shlibs=no
8966 cat <<_LT_EOF 1>&2
8967
8968*** Warning: the GNU linker, at least up to release 2.19, is reported
8969*** to be unable to reliably create shared libraries on AIX.
8970*** Therefore, libtool is disabling shared libraries support. If you
8971*** really care for shared libraries, you may want to install binutils
8972*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8973*** You will then need to restart the configuration process.
8974
8975_LT_EOF
8976 fi
8977 ;;
8978
8979 amigaos*)
8980 case $host_cpu in
8981 powerpc)
8982 # see comment about AmigaOS4 .so support
8983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8984 archive_expsym_cmds=''
8985 ;;
8986 m68k)
8987 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)'
8988 hardcode_libdir_flag_spec='-L$libdir'
8989 hardcode_minus_L=yes
8990 ;;
8991 esac
8992 ;;
8993
8994 beos*)
8995 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8996 allow_undefined_flag=unsupported
8997 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8998 # support --undefined. This deserves some investigation. FIXME
8999 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9000 else
9001 ld_shlibs=no
9002 fi
9003 ;;
9004
9005 cygwin* | mingw* | pw32* | cegcc*)
9006 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9007 # as there is no search path for DLLs.
9008 hardcode_libdir_flag_spec='-L$libdir'
9009 export_dynamic_flag_spec='${wl}--export-all-symbols'
9010 allow_undefined_flag=unsupported
9011 always_export_symbols=no
9012 enable_shared_with_static_runtimes=yes
9013 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9014
9015 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9017 # If the export-symbols file already is a .def file (1st line
9018 # is EXPORTS), use it as is; otherwise, prepend...
9019 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9020 cp $export_symbols $output_objdir/$soname.def;
9021 else
9022 echo EXPORTS > $output_objdir/$soname.def;
9023 cat $export_symbols >> $output_objdir/$soname.def;
9024 fi~
9025 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9026 else
9027 ld_shlibs=no
9028 fi
9029 ;;
9030
9031 haiku*)
9032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9033 link_all_deplibs=yes
9034 ;;
9035
9036 interix[3-9]*)
9037 hardcode_direct=no
9038 hardcode_shlibpath_var=no
9039 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9040 export_dynamic_flag_spec='${wl}-E'
9041 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9042 # Instead, shared libraries are loaded at an image base (0x10000000 by
9043 # default) and relocated if they conflict, which is a slow very memory
9044 # consuming and fragmenting process. To avoid this, we pick a random,
9045 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9046 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9047 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9048 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'
9049 ;;
9050
9051 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9052 tmp_diet=no
9053 if test "$host_os" = linux-dietlibc; then
9054 case $cc_basename in
9055 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9056 esac
9057 fi
9058 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9059 && test "$tmp_diet" = no
9060 then
5cddc23a 9061 tmp_addflag=' $pic_flag'
6bb11ab3
L
9062 tmp_sharedflag='-shared'
9063 case $cc_basename,$host_cpu in
9064 pgcc*) # Portland Group C compiler
9065 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'
9066 tmp_addflag=' $pic_flag'
9067 ;;
9068 pgf77* | pgf90* | pgf95* | pgfortran*)
9069 # Portland Group f77 and f90 compilers
9070 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'
9071 tmp_addflag=' $pic_flag -Mnomain' ;;
9072 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9073 tmp_addflag=' -i_dynamic' ;;
9074 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9075 tmp_addflag=' -i_dynamic -nofor_main' ;;
9076 ifc* | ifort*) # Intel Fortran compiler
9077 tmp_addflag=' -nofor_main' ;;
9078 lf95*) # Lahey Fortran 8.1
9079 whole_archive_flag_spec=
9080 tmp_sharedflag='--shared' ;;
9081 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9082 tmp_sharedflag='-qmkshrobj'
9083 tmp_addflag= ;;
9084 nvcc*) # Cuda Compiler Driver 2.2
9085 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'
9086 compiler_needs_object=yes
9087 ;;
9088 esac
9089 case `$CC -V 2>&1 | sed 5q` in
9090 *Sun\ C*) # Sun C 5.9
9091 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'
9092 compiler_needs_object=yes
9093 tmp_sharedflag='-G' ;;
9094 *Sun\ F*) # Sun Fortran 8.3
9095 tmp_sharedflag='-G' ;;
9096 esac
9097 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9098
9099 if test "x$supports_anon_versioning" = xyes; then
9100 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9101 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9102 echo "local: *; };" >> $output_objdir/$libname.ver~
9103 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9104 fi
9105
9106 case $cc_basename in
9107 xlf* | bgf* | bgxlf* | mpixlf*)
9108 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9109 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9110 hardcode_libdir_flag_spec=
9111 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9112 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9113 if test "x$supports_anon_versioning" = xyes; then
9114 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9115 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9116 echo "local: *; };" >> $output_objdir/$libname.ver~
9117 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9118 fi
9119 ;;
9120 esac
9121 else
9122 ld_shlibs=no
9123 fi
9124 ;;
9125
9126 netbsd*)
9127 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9128 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9129 wlarc=
9130 else
9131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9132 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9133 fi
9134 ;;
9135
9136 solaris*)
9137 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9138 ld_shlibs=no
9139 cat <<_LT_EOF 1>&2
9140
9141*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9142*** create shared libraries on Solaris systems. Therefore, libtool
9143*** is disabling shared libraries support. We urge you to upgrade GNU
9144*** binutils to release 2.9.1 or newer. Another option is to modify
9145*** your PATH or compiler configuration so that the native linker is
9146*** used, and then restart.
9147
9148_LT_EOF
9149 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9151 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9152 else
9153 ld_shlibs=no
9154 fi
9155 ;;
9156
9157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9158 case `$LD -v 2>&1` in
9159 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9160 ld_shlibs=no
9161 cat <<_LT_EOF 1>&2
9162
9163*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9164*** reliably create shared libraries on SCO systems. Therefore, libtool
9165*** is disabling shared libraries support. We urge you to upgrade GNU
9166*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9167*** your PATH or compiler configuration so that the native linker is
9168*** used, and then restart.
9169
9170_LT_EOF
9171 ;;
9172 *)
9173 # For security reasons, it is highly recommended that you always
9174 # use absolute paths for naming shared libraries, and exclude the
9175 # DT_RUNPATH tag from executables and libraries. But doing so
9176 # requires that you compile everything twice, which is a pain.
9177 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9180 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9181 else
9182 ld_shlibs=no
9183 fi
9184 ;;
9185 esac
9186 ;;
9187
9188 sunos4*)
9189 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9190 wlarc=
9191 hardcode_direct=yes
9192 hardcode_shlibpath_var=no
9193 ;;
9194
9195 *)
9196 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9197 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9198 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9199 else
9200 ld_shlibs=no
9201 fi
9202 ;;
9203 esac
9204
9205 if test "$ld_shlibs" = no; then
9206 runpath_var=
9207 hardcode_libdir_flag_spec=
9208 export_dynamic_flag_spec=
9209 whole_archive_flag_spec=
9210 fi
9211 else
9212 # PORTME fill in a description of your system's linker (not GNU ld)
9213 case $host_os in
9214 aix3*)
9215 allow_undefined_flag=unsupported
9216 always_export_symbols=yes
9217 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'
9218 # Note: this linker hardcodes the directories in LIBPATH if there
9219 # are no directories specified by -L.
9220 hardcode_minus_L=yes
9221 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9222 # Neither direct hardcoding nor static linking is supported with a
9223 # broken collect2.
9224 hardcode_direct=unsupported
9225 fi
9226 ;;
9227
9228 aix[4-9]*)
9229 if test "$host_cpu" = ia64; then
9230 # On IA64, the linker does run time linking by default, so we don't
9231 # have to do anything special.
9232 aix_use_runtimelinking=no
9233 exp_sym_flag='-Bexport'
9234 no_entry_flag=""
9235 else
9236 # If we're using GNU nm, then we don't want the "-C" option.
9237 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9238 # Also, AIX nm treats weak defined symbols like other global
9239 # defined symbols, whereas GNU nm marks them as "W".
9240 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9241 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'
9242 else
5c887dd5 9243 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'
6bb11ab3
L
9244 fi
9245 aix_use_runtimelinking=no
9246
9247 # Test if we are trying to use run time linking or normal
9248 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9249 # need to do runtime linking.
9250 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9251 for ld_flag in $LDFLAGS; do
9252 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9253 aix_use_runtimelinking=yes
9254 break
9255 fi
9256 done
9257 ;;
9258 esac
9259
9260 exp_sym_flag='-bexport'
9261 no_entry_flag='-bnoentry'
9262 fi
9263
9264 # When large executables or shared objects are built, AIX ld can
9265 # have problems creating the table of contents. If linking a library
9266 # or program results in "error TOC overflow" add -mminimal-toc to
9267 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9268 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9269
9270 archive_cmds=''
9271 hardcode_direct=yes
9272 hardcode_direct_absolute=yes
9273 hardcode_libdir_separator=':'
9274 link_all_deplibs=yes
9275 file_list_spec='${wl}-f,'
9276
9277 if test "$GCC" = yes; then
9278 case $host_os in aix4.[012]|aix4.[012].*)
9279 # We only want to do this on AIX 4.2 and lower, the check
9280 # below for broken collect2 doesn't work under 4.3+
9281 collect2name=`${CC} -print-prog-name=collect2`
9282 if test -f "$collect2name" &&
9283 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9284 then
9285 # We have reworked collect2
9286 :
9287 else
9288 # We have old collect2
9289 hardcode_direct=unsupported
9290 # It fails to find uninstalled libraries when the uninstalled
9291 # path is not listed in the libpath. Setting hardcode_minus_L
9292 # to unsupported forces relinking
9293 hardcode_minus_L=yes
9294 hardcode_libdir_flag_spec='-L$libdir'
9295 hardcode_libdir_separator=
9296 fi
9297 ;;
9298 esac
9299 shared_flag='-shared'
9300 if test "$aix_use_runtimelinking" = yes; then
9301 shared_flag="$shared_flag "'${wl}-G'
9302 fi
9303 else
9304 # not using gcc
9305 if test "$host_cpu" = ia64; then
9306 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9307 # chokes on -Wl,-G. The following line is correct:
9308 shared_flag='-G'
9309 else
9310 if test "$aix_use_runtimelinking" = yes; then
9311 shared_flag='${wl}-G'
9312 else
9313 shared_flag='${wl}-bM:SRE'
9314 fi
9315 fi
9316 fi
9317
9318 export_dynamic_flag_spec='${wl}-bexpall'
9319 # It seems that -bexpall does not export symbols beginning with
9320 # underscore (_), so it is better to generate a list of symbols to export.
9321 always_export_symbols=yes
9322 if test "$aix_use_runtimelinking" = yes; then
9323 # Warning - without using the other runtime loading flags (-brtl),
9324 # -berok will link without error, but may produce a broken library.
9325 allow_undefined_flag='-berok'
9326 # Determine the default libpath from the value encoded in an
9327 # empty executable.
9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb
RW
9329/* end confdefs.h. */
9330
9331int
9332main ()
9333{
9334
9335 ;
9336 return 0;
9337}
9338_ACEOF
6bb11ab3 9339if ac_fn_c_try_link "$LINENO"; then :
b7026657 9340
6bb11ab3
L
9341lt_aix_libpath_sed='
9342 /Import File Strings/,/^$/ {
9343 /^0/ {
9344 s/^0 *\(.*\)$/\1/
9345 p
9346 }
9347 }'
9348aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9349# Check for a 64-bit object if we didn't find anything.
9350if test -z "$aix_libpath"; then
9351 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9352fi
9353fi
9354rm -f core conftest.err conftest.$ac_objext \
9355 conftest$ac_exeext conftest.$ac_ext
9356if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9357
9358 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9359 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"
9360 else
9361 if test "$host_cpu" = ia64; then
9362 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9363 allow_undefined_flag="-z nodefs"
9364 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"
9365 else
9366 # Determine the default libpath from the value encoded in an
9367 # empty executable.
81ecdfbb
RW
9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369/* end confdefs.h. */
9370
9371int
9372main ()
9373{
9374
9375 ;
9376 return 0;
9377}
9378_ACEOF
6bb11ab3
L
9379if ac_fn_c_try_link "$LINENO"; then :
9380
9381lt_aix_libpath_sed='
9382 /Import File Strings/,/^$/ {
9383 /^0/ {
9384 s/^0 *\(.*\)$/\1/
9385 p
9386 }
9387 }'
9388aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9389# Check for a 64-bit object if we didn't find anything.
9390if test -z "$aix_libpath"; then
9391 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
81ecdfbb 9392fi
81ecdfbb 9393fi
6bb11ab3
L
9394rm -f core conftest.err conftest.$ac_objext \
9395 conftest$ac_exeext conftest.$ac_ext
9396if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9397
9398 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9399 # Warning - without using the other run time loading flags,
9400 # -berok will link without error, but may produce a broken library.
9401 no_undefined_flag=' ${wl}-bernotok'
9402 allow_undefined_flag=' ${wl}-berok'
9403 if test "$with_gnu_ld" = yes; then
9404 # We only use this code for GNU lds that support --whole-archive.
9405 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9406 else
9407 # Exported symbols can be pulled into shared objects from archives
9408 whole_archive_flag_spec='$convenience'
9409 fi
9410 archive_cmds_need_lc=yes
9411 # This is similar to how AIX traditionally builds its shared libraries.
9412 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'
9413 fi
9414 fi
9415 ;;
9416
9417 amigaos*)
9418 case $host_cpu in
9419 powerpc)
9420 # see comment about AmigaOS4 .so support
9421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422 archive_expsym_cmds=''
9423 ;;
9424 m68k)
9425 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)'
9426 hardcode_libdir_flag_spec='-L$libdir'
9427 hardcode_minus_L=yes
9428 ;;
9429 esac
9430 ;;
9431
9432 bsdi[45]*)
9433 export_dynamic_flag_spec=-rdynamic
9434 ;;
9435
9436 cygwin* | mingw* | pw32* | cegcc*)
9437 # When not using gcc, we currently assume that we are using
9438 # Microsoft Visual C++.
9439 # hardcode_libdir_flag_spec is actually meaningless, as there is
9440 # no search path for DLLs.
9441 hardcode_libdir_flag_spec=' '
9442 allow_undefined_flag=unsupported
9443 # Tell ltmain to make .lib files, not .a files.
9444 libext=lib
9445 # Tell ltmain to make .dll files, not .so files.
9446 shrext_cmds=".dll"
9447 # FIXME: Setting linknames here is a bad hack.
9448 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9449 # The linker will automatically build a .lib file if we build a DLL.
9450 old_archive_from_new_cmds='true'
9451 # FIXME: Should let the user specify the lib program.
9452 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9453 fix_srcfile_path='`cygpath -w "$srcfile"`'
9454 enable_shared_with_static_runtimes=yes
9455 ;;
9456
9457 darwin* | rhapsody*)
9458
9459
9460 archive_cmds_need_lc=no
9461 hardcode_direct=no
9462 hardcode_automatic=yes
9463 hardcode_shlibpath_var=unsupported
9464 if test "$lt_cv_ld_force_load" = "yes"; then
9465 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\"`'
f0569246 9466 else
6bb11ab3 9467 whole_archive_flag_spec=''
f0569246 9468 fi
6bb11ab3
L
9469 link_all_deplibs=yes
9470 allow_undefined_flag="$_lt_dar_allow_undefined"
9471 case $cc_basename in
9472 ifort*) _lt_dar_can_shared=yes ;;
9473 *) _lt_dar_can_shared=$GCC ;;
9474 esac
9475 if test "$_lt_dar_can_shared" = "yes"; then
9476 output_verbose_link_cmd=func_echo_all
9477 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9478 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9479 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}"
9480 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}"
9481
f0569246 9482 else
6bb11ab3 9483 ld_shlibs=no
f0569246 9484 fi
6bb11ab3
L
9485
9486 ;;
9487
9488 dgux*)
9489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9490 hardcode_libdir_flag_spec='-L$libdir'
9491 hardcode_shlibpath_var=no
9492 ;;
9493
9494 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9495 # support. Future versions do this automatically, but an explicit c++rt0.o
9496 # does not break anything, and helps significantly (at the cost of a little
9497 # extra space).
9498 freebsd2.2*)
9499 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9500 hardcode_libdir_flag_spec='-R$libdir'
9501 hardcode_direct=yes
9502 hardcode_shlibpath_var=no
9503 ;;
9504
9505 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9506 freebsd2.*)
9507 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9508 hardcode_direct=yes
9509 hardcode_minus_L=yes
9510 hardcode_shlibpath_var=no
9511 ;;
9512
9513 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9514 freebsd* | dragonfly*)
9515 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9516 hardcode_libdir_flag_spec='-R$libdir'
9517 hardcode_direct=yes
9518 hardcode_shlibpath_var=no
9519 ;;
9520
9521 hpux9*)
9522 if test "$GCC" = yes; then
9523 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'
9524 else
9525 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'
9526 fi
9527 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9528 hardcode_libdir_separator=:
9529 hardcode_direct=yes
9530
9531 # hardcode_minus_L: Not really in the search PATH,
9532 # but as the default location of the library.
9533 hardcode_minus_L=yes
9534 export_dynamic_flag_spec='${wl}-E'
9535 ;;
9536
9537 hpux10*)
9538 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9539 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9540 else
9541 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9542 fi
9543 if test "$with_gnu_ld" = no; then
9544 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9545 hardcode_libdir_flag_spec_ld='+b $libdir'
9546 hardcode_libdir_separator=:
9547 hardcode_direct=yes
9548 hardcode_direct_absolute=yes
9549 export_dynamic_flag_spec='${wl}-E'
9550 # hardcode_minus_L: Not really in the search PATH,
9551 # but as the default location of the library.
9552 hardcode_minus_L=yes
9553 fi
9554 ;;
9555
9556 hpux11*)
9557 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9558 case $host_cpu in
9559 hppa*64*)
9560 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9561 ;;
9562 ia64*)
9563 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9564 ;;
9565 *)
9566 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9567 ;;
9568 esac
9569 else
9570 case $host_cpu in
9571 hppa*64*)
9572 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9573 ;;
9574 ia64*)
9575 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9576 ;;
9577 *)
9578
9579 # Older versions of the 11.00 compiler do not understand -b yet
9580 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9582$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 9583if ${lt_cv_prog_compiler__b+:} false; then :
81ecdfbb 9584 $as_echo_n "(cached) " >&6
f0569246 9585else
6bb11ab3
L
9586 lt_cv_prog_compiler__b=no
9587 save_LDFLAGS="$LDFLAGS"
9588 LDFLAGS="$LDFLAGS -b"
9589 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9590 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9591 # The linker can only warn and ignore the option if not recognized
9592 # So say no if there are warnings
9593 if test -s conftest.err; then
9594 # Append any errors to the config.log.
9595 cat conftest.err 1>&5
9596 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9597 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9598 if diff conftest.exp conftest.er2 >/dev/null; then
9599 lt_cv_prog_compiler__b=yes
9600 fi
9601 else
9602 lt_cv_prog_compiler__b=yes
9603 fi
9604 fi
9605 $RM -r conftest*
9606 LDFLAGS="$save_LDFLAGS"
f0569246 9607
6bb11ab3
L
9608fi
9609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9610$as_echo "$lt_cv_prog_compiler__b" >&6; }
f0569246 9611
6bb11ab3
L
9612if test x"$lt_cv_prog_compiler__b" = xyes; then
9613 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9614else
9615 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9616fi
81ecdfbb 9617
6bb11ab3
L
9618 ;;
9619 esac
9620 fi
9621 if test "$with_gnu_ld" = no; then
9622 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9623 hardcode_libdir_separator=:
9624
9625 case $host_cpu in
9626 hppa*64*|ia64*)
9627 hardcode_direct=no
9628 hardcode_shlibpath_var=no
9629 ;;
9630 *)
9631 hardcode_direct=yes
9632 hardcode_direct_absolute=yes
9633 export_dynamic_flag_spec='${wl}-E'
9634
9635 # hardcode_minus_L: Not really in the search PATH,
9636 # but as the default location of the library.
9637 hardcode_minus_L=yes
9638 ;;
9639 esac
9640 fi
9641 ;;
9642
9643 irix5* | irix6* | nonstopux*)
9644 if test "$GCC" = yes; then
9645 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'
9646 # Try to use the -exported_symbol ld option, if it does not
9647 # work, assume that -exports_file does not work either and
9648 # implicitly export all symbols.
9649 save_LDFLAGS="$LDFLAGS"
9650 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652/* end confdefs.h. */
9653int foo(void) {}
b7026657 9654_ACEOF
6bb11ab3
L
9655if ac_fn_c_try_link "$LINENO"; then :
9656 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'
5d031c16 9657
f0569246 9658fi
6bb11ab3
L
9659rm -f core conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9661 LDFLAGS="$save_LDFLAGS"
9662 else
9663 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'
9664 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'
9665 fi
9666 archive_cmds_need_lc='no'
9667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9668 hardcode_libdir_separator=:
9669 inherit_rpath=yes
9670 link_all_deplibs=yes
9671 ;;
9672
9673 netbsd*)
9674 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9676 else
9677 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9678 fi
9679 hardcode_libdir_flag_spec='-R$libdir'
9680 hardcode_direct=yes
9681 hardcode_shlibpath_var=no
9682 ;;
9683
9684 newsos6)
9685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9686 hardcode_direct=yes
9687 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9688 hardcode_libdir_separator=:
9689 hardcode_shlibpath_var=no
9690 ;;
9691
9692 *nto* | *qnx*)
9693 ;;
9694
9695 openbsd*)
9696 if test -f /usr/libexec/ld.so; then
9697 hardcode_direct=yes
9698 hardcode_shlibpath_var=no
9699 hardcode_direct_absolute=yes
9700 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9701 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9702 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9703 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9704 export_dynamic_flag_spec='${wl}-E'
9705 else
9706 case $host_os in
9707 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9708 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9709 hardcode_libdir_flag_spec='-R$libdir'
9710 ;;
9711 *)
9712 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9713 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9714 ;;
9715 esac
9716 fi
9717 else
9718 ld_shlibs=no
9719 fi
9720 ;;
9721
9722 os2*)
9723 hardcode_libdir_flag_spec='-L$libdir'
9724 hardcode_minus_L=yes
9725 allow_undefined_flag=unsupported
9726 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'
9727 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9728 ;;
9729
9730 osf3*)
9731 if test "$GCC" = yes; then
9732 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9733 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'
9734 else
9735 allow_undefined_flag=' -expect_unresolved \*'
9736 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'
9737 fi
9738 archive_cmds_need_lc='no'
9739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9740 hardcode_libdir_separator=:
9741 ;;
9742
9743 osf4* | osf5*) # as osf3* with the addition of -msym flag
9744 if test "$GCC" = yes; then
9745 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9746 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'
9747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9748 else
9749 allow_undefined_flag=' -expect_unresolved \*'
9750 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'
9751 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~
9752 $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'
9753
9754 # Both c and cxx compiler support -rpath directly
9755 hardcode_libdir_flag_spec='-rpath $libdir'
9756 fi
9757 archive_cmds_need_lc='no'
9758 hardcode_libdir_separator=:
9759 ;;
9760
9761 solaris*)
9762 no_undefined_flag=' -z defs'
9763 if test "$GCC" = yes; then
9764 wlarc='${wl}'
9765 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9766 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9767 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9768 else
9769 case `$CC -V 2>&1` in
9770 *"Compilers 5.0"*)
9771 wlarc=''
9772 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9773 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9774 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9775 ;;
9776 *)
9777 wlarc='${wl}'
9778 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9779 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9780 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9781 ;;
9782 esac
9783 fi
9784 hardcode_libdir_flag_spec='-R$libdir'
9785 hardcode_shlibpath_var=no
9786 case $host_os in
9787 solaris2.[0-5] | solaris2.[0-5].*) ;;
9788 *)
9789 # The compiler driver will combine and reorder linker options,
9790 # but understands `-z linker_flag'. GCC discards it without `$wl',
9791 # but is careful enough not to reorder.
9792 # Supported since Solaris 2.6 (maybe 2.5.1?)
9793 if test "$GCC" = yes; then
9794 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9795 else
9796 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9797 fi
9798 ;;
9799 esac
9800 link_all_deplibs=yes
9801 ;;
9802
9803 sunos4*)
9804 if test "x$host_vendor" = xsequent; then
9805 # Use $CC to link under sequent, because it throws in some extra .o
9806 # files that make .init and .fini sections work.
9807 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9808 else
9809 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9810 fi
9811 hardcode_libdir_flag_spec='-L$libdir'
9812 hardcode_direct=yes
9813 hardcode_minus_L=yes
9814 hardcode_shlibpath_var=no
9815 ;;
9816
9817 sysv4)
9818 case $host_vendor in
9819 sni)
9820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9821 hardcode_direct=yes # is this really true???
9822 ;;
9823 siemens)
9824 ## LD is ld it makes a PLAMLIB
9825 ## CC just makes a GrossModule.
9826 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9827 reload_cmds='$CC -r -o $output$reload_objs'
9828 hardcode_direct=no
9829 ;;
9830 motorola)
9831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9832 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9833 ;;
9834 esac
9835 runpath_var='LD_RUN_PATH'
9836 hardcode_shlibpath_var=no
9837 ;;
9838
9839 sysv4.3*)
9840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9841 hardcode_shlibpath_var=no
9842 export_dynamic_flag_spec='-Bexport'
9843 ;;
9844
9845 sysv4*MP*)
9846 if test -d /usr/nec; then
9847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9848 hardcode_shlibpath_var=no
9849 runpath_var=LD_RUN_PATH
9850 hardcode_runpath_var=yes
9851 ld_shlibs=yes
9852 fi
9853 ;;
9854
9855 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9856 no_undefined_flag='${wl}-z,text'
9857 archive_cmds_need_lc=no
9858 hardcode_shlibpath_var=no
9859 runpath_var='LD_RUN_PATH'
9860
9861 if test "$GCC" = yes; then
9862 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9863 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9864 else
9865 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9866 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9867 fi
9868 ;;
9869
9870 sysv5* | sco3.2v5* | sco5v6*)
9871 # Note: We can NOT use -z defs as we might desire, because we do not
9872 # link with -lc, and that would cause any symbols used from libc to
9873 # always be unresolved, which means just about no library would
9874 # ever link correctly. If we're not using GNU ld we use -z text
9875 # though, which does catch some bad symbols but isn't as heavy-handed
9876 # as -z defs.
9877 no_undefined_flag='${wl}-z,text'
9878 allow_undefined_flag='${wl}-z,nodefs'
9879 archive_cmds_need_lc=no
9880 hardcode_shlibpath_var=no
9881 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9882 hardcode_libdir_separator=':'
9883 link_all_deplibs=yes
9884 export_dynamic_flag_spec='${wl}-Bexport'
9885 runpath_var='LD_RUN_PATH'
9886
9887 if test "$GCC" = yes; then
9888 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9889 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9890 else
9891 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9892 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9893 fi
9894 ;;
9895
9896 uts4*)
9897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9898 hardcode_libdir_flag_spec='-L$libdir'
9899 hardcode_shlibpath_var=no
9900 ;;
9901
9902 *)
9903 ld_shlibs=no
9904 ;;
9905 esac
9906
9907 if test x$host_vendor = xsni; then
9908 case $host in
9909 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9910 export_dynamic_flag_spec='${wl}-Blargedynsym'
9911 ;;
9912 esac
9913 fi
9914 fi
9915
9916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9917$as_echo "$ld_shlibs" >&6; }
9918test "$ld_shlibs" = no && can_build_shared=no
9919
9920with_gnu_ld=$with_gnu_ld
9921
9922
9923
9924
b7026657 9925
f0569246 9926
f0569246 9927
6ffe910a 9928
6ffe910a
MF
9929
9930
6ffe910a 9931
f0569246 9932
f0569246
AC
9933
9934
6bb11ab3
L
9935
9936#
9937# Do we need to explicitly link libc?
9938#
9939case "x$archive_cmds_need_lc" in
9940x|xyes)
9941 # Assume -lc should be added
9942 archive_cmds_need_lc=yes
9943
9944 if test "$enable_shared" = yes && test "$GCC" = yes; then
9945 case $archive_cmds in
9946 *'~'*)
9947 # FIXME: we may have to deal with multi-command sequences.
9948 ;;
9949 '$CC '*)
9950 # Test whether the compiler implicitly links with -lc since on some
9951 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9952 # to ld, don't add -lc before -lgcc.
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9954$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 9955if ${lt_cv_archive_cmds_need_lc+:} false; then :
6ffe910a 9956 $as_echo_n "(cached) " >&6
b7026657 9957else
6bb11ab3
L
9958 $RM conftest*
9959 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9960
9961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9962 (eval $ac_compile) 2>&5
9963 ac_status=$?
9964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9965 test $ac_status = 0; } 2>conftest.err; then
9966 soname=conftest
9967 lib=conftest
9968 libobjs=conftest.$ac_objext
9969 deplibs=
9970 wl=$lt_prog_compiler_wl
9971 pic_flag=$lt_prog_compiler_pic
9972 compiler_flags=-v
9973 linker_flags=-v
9974 verstring=
9975 output_objdir=.
9976 libname=conftest
9977 lt_save_allow_undefined_flag=$allow_undefined_flag
9978 allow_undefined_flag=
9979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9980 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9981 ac_status=$?
9982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9983 test $ac_status = 0; }
9984 then
9985 lt_cv_archive_cmds_need_lc=no
9986 else
9987 lt_cv_archive_cmds_need_lc=yes
9988 fi
9989 allow_undefined_flag=$lt_save_allow_undefined_flag
9990 else
9991 cat conftest.err 1>&5
9992 fi
9993 $RM conftest*
5d031c16 9994
6ffe910a 9995fi
6bb11ab3
L
9996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9997$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9998 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9999 ;;
10000 esac
10001 fi
10002 ;;
6ffe910a 10003esac
5d031c16 10004
5d031c16 10005
6ffe910a 10006
5d031c16 10007
81ecdfbb 10008
35695fd6 10009
35695fd6 10010
35695fd6 10011
f0569246 10012
5d031c16 10013
f0569246 10014
b7026657 10015
f0569246 10016
5d031c16 10017
81ecdfbb 10018
5d031c16 10019
f0569246
AC
10020
10021
81ecdfbb 10022
81ecdfbb 10023
81ecdfbb
RW
10024
10025
81ecdfbb 10026
81ecdfbb 10027
f0569246
AC
10028
10029
5d031c16 10030
f0569246 10031
5d031c16 10032
5d031c16 10033
81ecdfbb 10034
b7026657 10035
5d031c16 10036
f0569246 10037
81ecdfbb 10038
f0569246 10039
5d031c16 10040
5d031c16 10041
b7026657 10042
81ecdfbb 10043
b7026657 10044
5d031c16 10045
5d031c16 10046
b7026657
AC
10047
10048
10049
10050
6ffe910a 10051
2232061b
MF
10052
10053
2232061b 10054
2232061b
MF
10055
10056
2232061b
MF
10057
10058
2232061b 10059
2232061b
MF
10060
10061
6bb11ab3
L
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10162$as_echo_n "checking dynamic linker characteristics... " >&6; }
10163
10164if test "$GCC" = yes; then
10165 case $host_os in
10166 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10167 *) lt_awk_arg="/^libraries:/" ;;
10168 esac
10169 case $host_os in
10170 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10171 *) lt_sed_strip_eq="s,=/,/,g" ;;
10172 esac
10173 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10174 case $lt_search_path_spec in
10175 *\;*)
10176 # if the path contains ";" then we assume it to be the separator
10177 # otherwise default to the standard path separator (i.e. ":") - it is
10178 # assumed that no part of a normal pathname contains ";" but that should
10179 # okay in the real world where ";" in dirpaths is itself problematic.
10180 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10181 ;;
10182 *)
10183 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10184 ;;
10185 esac
10186 # Ok, now we have the path, separated by spaces, we can step through it
10187 # and add multilib dir if necessary.
10188 lt_tmp_lt_search_path_spec=
10189 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10190 for lt_sys_path in $lt_search_path_spec; do
10191 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10192 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10193 else
10194 test -d "$lt_sys_path" && \
10195 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10196 fi
10197 done
10198 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10199BEGIN {RS=" "; FS="/|\n";} {
10200 lt_foo="";
10201 lt_count=0;
10202 for (lt_i = NF; lt_i > 0; lt_i--) {
10203 if ($lt_i != "" && $lt_i != ".") {
10204 if ($lt_i == "..") {
10205 lt_count++;
10206 } else {
10207 if (lt_count == 0) {
10208 lt_foo="/" $lt_i lt_foo;
10209 } else {
10210 lt_count--;
10211 }
10212 }
10213 }
10214 }
10215 if (lt_foo != "") { lt_freq[lt_foo]++; }
10216 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10217}'`
10218 # AWK program above erroneously prepends '/' to C:/dos/paths
10219 # for these hosts.
10220 case $host_os in
10221 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10222 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10223 esac
10224 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10225else
10226 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10227fi
10228library_names_spec=
10229libname_spec='lib$name'
10230soname_spec=
10231shrext_cmds=".so"
10232postinstall_cmds=
10233postuninstall_cmds=
10234finish_cmds=
10235finish_eval=
10236shlibpath_var=
10237shlibpath_overrides_runpath=unknown
10238version_type=none
10239dynamic_linker="$host_os ld.so"
10240sys_lib_dlsearch_path_spec="/lib /usr/lib"
10241need_lib_prefix=unknown
10242hardcode_into_libs=no
10243
10244# when you set need_version to no, make sure it does not cause -set_version
10245# flags to be left without arguments
10246need_version=unknown
10247
10248case $host_os in
10249aix3*)
10250 version_type=linux
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10252 shlibpath_var=LIBPATH
10253
10254 # AIX 3 has no versioning support, so we append a major version to the name.
10255 soname_spec='${libname}${release}${shared_ext}$major'
10256 ;;
10257
10258aix[4-9]*)
10259 version_type=linux
10260 need_lib_prefix=no
10261 need_version=no
10262 hardcode_into_libs=yes
10263 if test "$host_cpu" = ia64; then
10264 # AIX 5 supports IA64
10265 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10266 shlibpath_var=LD_LIBRARY_PATH
10267 else
10268 # With GCC up to 2.95.x, collect2 would create an import file
10269 # for dependence libraries. The import file would start with
10270 # the line `#! .'. This would cause the generated library to
10271 # depend on `.', always an invalid library. This was fixed in
10272 # development snapshots of GCC prior to 3.0.
10273 case $host_os in
10274 aix4 | aix4.[01] | aix4.[01].*)
10275 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10276 echo ' yes '
10277 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10278 :
10279 else
10280 can_build_shared=no
10281 fi
10282 ;;
10283 esac
10284 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10285 # soname into executable. Probably we can add versioning support to
10286 # collect2, so additional links can be useful in future.
10287 if test "$aix_use_runtimelinking" = yes; then
10288 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10289 # instead of lib<name>.a to let people know that these are not
10290 # typical AIX shared libraries.
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 else
10293 # We preserve .a as extension for shared libraries through AIX4.2
10294 # and later when we are not doing run time linking.
10295 library_names_spec='${libname}${release}.a $libname.a'
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 fi
10298 shlibpath_var=LIBPATH
10299 fi
10300 ;;
10301
10302amigaos*)
10303 case $host_cpu in
10304 powerpc)
10305 # Since July 2007 AmigaOS4 officially supports .so libraries.
10306 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308 ;;
10309 m68k)
10310 library_names_spec='$libname.ixlibrary $libname.a'
10311 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10312 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'
10313 ;;
10314 esac
10315 ;;
10316
10317beos*)
10318 library_names_spec='${libname}${shared_ext}'
10319 dynamic_linker="$host_os ld.so"
10320 shlibpath_var=LIBRARY_PATH
10321 ;;
10322
10323bsdi[45]*)
10324 version_type=linux
10325 need_version=no
10326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10327 soname_spec='${libname}${release}${shared_ext}$major'
10328 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10329 shlibpath_var=LD_LIBRARY_PATH
10330 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10331 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10332 # the default ld.so.conf also contains /usr/contrib/lib and
10333 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10334 # libtool to hard-code these into programs
10335 ;;
10336
10337cygwin* | mingw* | pw32* | cegcc*)
10338 version_type=windows
10339 shrext_cmds=".dll"
10340 need_version=no
10341 need_lib_prefix=no
10342
10343 case $GCC,$host_os in
10344 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10345 library_names_spec='$libname.dll.a'
10346 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10347 postinstall_cmds='base_file=`basename \${file}`~
10348 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10349 dldir=$destdir/`dirname \$dlpath`~
10350 test -d \$dldir || mkdir -p \$dldir~
10351 $install_prog $dir/$dlname \$dldir/$dlname~
10352 chmod a+x \$dldir/$dlname~
10353 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10354 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10355 fi'
10356 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10357 dlpath=$dir/\$dldll~
10358 $RM \$dlpath'
10359 shlibpath_overrides_runpath=yes
10360
10361 case $host_os in
10362 cygwin*)
10363 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10364 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10365
10366 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10367 ;;
10368 mingw* | cegcc*)
10369 # MinGW DLLs use traditional 'lib' prefix
10370 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10371 ;;
10372 pw32*)
10373 # pw32 DLLs use 'pw' prefix rather than 'lib'
10374 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10375 ;;
10376 esac
10377 ;;
10378
10379 *)
10380 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10381 ;;
10382 esac
10383 dynamic_linker='Win32 ld.exe'
10384 # FIXME: first we should search . and the directory the executable is in
10385 shlibpath_var=PATH
10386 ;;
10387
10388darwin* | rhapsody*)
10389 dynamic_linker="$host_os dyld"
10390 version_type=darwin
10391 need_lib_prefix=no
10392 need_version=no
10393 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10394 soname_spec='${libname}${release}${major}$shared_ext'
10395 shlibpath_overrides_runpath=yes
10396 shlibpath_var=DYLD_LIBRARY_PATH
10397 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10398
10399 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10400 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10401 ;;
10402
10403dgux*)
10404 version_type=linux
10405 need_lib_prefix=no
10406 need_version=no
10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10408 soname_spec='${libname}${release}${shared_ext}$major'
10409 shlibpath_var=LD_LIBRARY_PATH
10410 ;;
10411
10412freebsd* | dragonfly*)
10413 # DragonFly does not have aout. When/if they implement a new
10414 # versioning mechanism, adjust this.
10415 if test -x /usr/bin/objformat; then
10416 objformat=`/usr/bin/objformat`
10417 else
10418 case $host_os in
10419 freebsd[23].*) objformat=aout ;;
10420 *) objformat=elf ;;
10421 esac
10422 fi
10423 version_type=freebsd-$objformat
10424 case $version_type in
10425 freebsd-elf*)
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10427 need_version=no
10428 need_lib_prefix=no
10429 ;;
10430 freebsd-*)
10431 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10432 need_version=yes
10433 ;;
10434 esac
10435 shlibpath_var=LD_LIBRARY_PATH
10436 case $host_os in
10437 freebsd2.*)
10438 shlibpath_overrides_runpath=yes
10439 ;;
10440 freebsd3.[01]* | freebsdelf3.[01]*)
10441 shlibpath_overrides_runpath=yes
10442 hardcode_into_libs=yes
10443 ;;
10444 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10445 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10446 shlibpath_overrides_runpath=no
10447 hardcode_into_libs=yes
10448 ;;
10449 *) # from 4.6 on, and DragonFly
10450 shlibpath_overrides_runpath=yes
10451 hardcode_into_libs=yes
10452 ;;
10453 esac
10454 ;;
10455
6bb11ab3
L
10456haiku*)
10457 version_type=linux
10458 need_lib_prefix=no
10459 need_version=no
10460 dynamic_linker="$host_os runtime_loader"
10461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10462 soname_spec='${libname}${release}${shared_ext}$major'
10463 shlibpath_var=LIBRARY_PATH
10464 shlibpath_overrides_runpath=yes
10465 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10466 hardcode_into_libs=yes
10467 ;;
10468
10469hpux9* | hpux10* | hpux11*)
10470 # Give a soname corresponding to the major version so that dld.sl refuses to
10471 # link against other versions.
10472 version_type=sunos
10473 need_lib_prefix=no
10474 need_version=no
10475 case $host_cpu in
10476 ia64*)
10477 shrext_cmds='.so'
10478 hardcode_into_libs=yes
10479 dynamic_linker="$host_os dld.so"
10480 shlibpath_var=LD_LIBRARY_PATH
10481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10483 soname_spec='${libname}${release}${shared_ext}$major'
10484 if test "X$HPUX_IA64_MODE" = X32; then
10485 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10486 else
10487 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10488 fi
10489 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10490 ;;
10491 hppa*64*)
10492 shrext_cmds='.sl'
10493 hardcode_into_libs=yes
10494 dynamic_linker="$host_os dld.sl"
10495 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10496 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10498 soname_spec='${libname}${release}${shared_ext}$major'
10499 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10500 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10501 ;;
10502 *)
10503 shrext_cmds='.sl'
10504 dynamic_linker="$host_os dld.sl"
10505 shlibpath_var=SHLIB_PATH
10506 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10508 soname_spec='${libname}${release}${shared_ext}$major'
10509 ;;
10510 esac
10511 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10512 postinstall_cmds='chmod 555 $lib'
10513 # or fails outright, so override atomically:
10514 install_override_mode=555
10515 ;;
10516
10517interix[3-9]*)
10518 version_type=linux
10519 need_lib_prefix=no
10520 need_version=no
10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10522 soname_spec='${libname}${release}${shared_ext}$major'
10523 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10524 shlibpath_var=LD_LIBRARY_PATH
10525 shlibpath_overrides_runpath=no
10526 hardcode_into_libs=yes
10527 ;;
10528
10529irix5* | irix6* | nonstopux*)
10530 case $host_os in
10531 nonstopux*) version_type=nonstopux ;;
10532 *)
10533 if test "$lt_cv_prog_gnu_ld" = yes; then
10534 version_type=linux
10535 else
10536 version_type=irix
10537 fi ;;
10538 esac
10539 need_lib_prefix=no
10540 need_version=no
10541 soname_spec='${libname}${release}${shared_ext}$major'
10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10543 case $host_os in
10544 irix5* | nonstopux*)
10545 libsuff= shlibsuff=
10546 ;;
10547 *)
10548 case $LD in # libtool.m4 will add one of these switches to LD
10549 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10550 libsuff= shlibsuff= libmagic=32-bit;;
10551 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10552 libsuff=32 shlibsuff=N32 libmagic=N32;;
10553 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10554 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10555 *) libsuff= shlibsuff= libmagic=never-match;;
10556 esac
10557 ;;
10558 esac
10559 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10560 shlibpath_overrides_runpath=no
10561 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10562 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10563 hardcode_into_libs=yes
10564 ;;
10565
10566# No shared lib support for Linux oldld, aout, or coff.
10567linux*oldld* | linux*aout* | linux*coff*)
10568 dynamic_linker=no
10569 ;;
10570
10571# This must be Linux ELF.
46f900c0 10572linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6bb11ab3
L
10573 version_type=linux
10574 need_lib_prefix=no
10575 need_version=no
10576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10577 soname_spec='${libname}${release}${shared_ext}$major'
10578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10579 shlibpath_var=LD_LIBRARY_PATH
10580 shlibpath_overrides_runpath=no
10581
10582 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 10583 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
2232061b
MF
10584 $as_echo_n "(cached) " >&6
10585else
6bb11ab3
L
10586 lt_cv_shlibpath_overrides_runpath=no
10587 save_LDFLAGS=$LDFLAGS
10588 save_libdir=$libdir
10589 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10590 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232061b
MF
10592/* end confdefs.h. */
10593
2232061b
MF
10594int
10595main ()
10596{
10597
10598 ;
10599 return 0;
10600}
10601_ACEOF
6bb11ab3
L
10602if ac_fn_c_try_link "$LINENO"; then :
10603 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10604 lt_cv_shlibpath_overrides_runpath=yes
2232061b 10605fi
2232061b 10606fi
6bb11ab3
L
10607rm -f core conftest.err conftest.$ac_objext \
10608 conftest$ac_exeext conftest.$ac_ext
10609 LDFLAGS=$save_LDFLAGS
10610 libdir=$save_libdir
2232061b 10611
6bb11ab3 10612fi
2232061b 10613
6bb11ab3 10614 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2232061b 10615
6bb11ab3
L
10616 # This implies no fast_install, which is unacceptable.
10617 # Some rework will be needed to allow for fast_install
10618 # before this can be enabled.
10619 hardcode_into_libs=yes
2232061b 10620
6bb11ab3
L
10621 # Append ld.so.conf contents to the search path
10622 if test -f /etc/ld.so.conf; then
10623 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' ' '`
10624 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10625 fi
2232061b 10626
6bb11ab3
L
10627 # We used to test for /lib/ld.so.1 and disable shared libraries on
10628 # powerpc, because MkLinux only supported shared libraries with the
10629 # GNU dynamic linker. Since this was broken with cross compilers,
10630 # most powerpc-linux boxes support dynamic linking these days and
10631 # people can always --disable-shared, the test was removed, and we
10632 # assume the GNU/Linux dynamic linker is in use.
10633 dynamic_linker='GNU/Linux ld.so'
10634 ;;
10635
10636netbsd*)
10637 version_type=sunos
10638 need_lib_prefix=no
10639 need_version=no
10640 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10643 dynamic_linker='NetBSD (a.out) ld.so'
2232061b 10644 else
6bb11ab3
L
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10646 soname_spec='${libname}${release}${shared_ext}$major'
10647 dynamic_linker='NetBSD ld.elf_so'
10648 fi
10649 shlibpath_var=LD_LIBRARY_PATH
10650 shlibpath_overrides_runpath=yes
10651 hardcode_into_libs=yes
10652 ;;
10653
10654newsos6)
10655 version_type=linux
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10657 shlibpath_var=LD_LIBRARY_PATH
10658 shlibpath_overrides_runpath=yes
10659 ;;
10660
10661*nto* | *qnx*)
10662 version_type=qnx
10663 need_lib_prefix=no
10664 need_version=no
10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10666 soname_spec='${libname}${release}${shared_ext}$major'
10667 shlibpath_var=LD_LIBRARY_PATH
10668 shlibpath_overrides_runpath=no
10669 hardcode_into_libs=yes
10670 dynamic_linker='ldqnx.so'
10671 ;;
10672
10673openbsd*)
10674 version_type=sunos
10675 sys_lib_dlsearch_path_spec="/usr/lib"
10676 need_lib_prefix=no
10677 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10678 case $host_os in
10679 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10680 *) need_version=no ;;
10681 esac
10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10683 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10684 shlibpath_var=LD_LIBRARY_PATH
10685 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10686 case $host_os in
10687 openbsd2.[89] | openbsd2.[89].*)
10688 shlibpath_overrides_runpath=no
10689 ;;
10690 *)
10691 shlibpath_overrides_runpath=yes
10692 ;;
10693 esac
10694 else
10695 shlibpath_overrides_runpath=yes
10696 fi
10697 ;;
10698
10699os2*)
10700 libname_spec='$name'
10701 shrext_cmds=".dll"
10702 need_lib_prefix=no
10703 library_names_spec='$libname${shared_ext} $libname.a'
10704 dynamic_linker='OS/2 ld.exe'
10705 shlibpath_var=LIBPATH
10706 ;;
10707
10708osf3* | osf4* | osf5*)
10709 version_type=osf
10710 need_lib_prefix=no
10711 need_version=no
10712 soname_spec='${libname}${release}${shared_ext}$major'
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714 shlibpath_var=LD_LIBRARY_PATH
10715 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10716 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10717 ;;
10718
10719rdos*)
10720 dynamic_linker=no
10721 ;;
10722
10723solaris*)
10724 version_type=linux
10725 need_lib_prefix=no
10726 need_version=no
10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10728 soname_spec='${libname}${release}${shared_ext}$major'
10729 shlibpath_var=LD_LIBRARY_PATH
10730 shlibpath_overrides_runpath=yes
10731 hardcode_into_libs=yes
10732 # ldd complains unless libraries are executable
10733 postinstall_cmds='chmod +x $lib'
10734 ;;
10735
10736sunos4*)
10737 version_type=sunos
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10739 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10740 shlibpath_var=LD_LIBRARY_PATH
10741 shlibpath_overrides_runpath=yes
10742 if test "$with_gnu_ld" = yes; then
10743 need_lib_prefix=no
10744 fi
10745 need_version=yes
10746 ;;
10747
10748sysv4 | sysv4.3*)
10749 version_type=linux
10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10751 soname_spec='${libname}${release}${shared_ext}$major'
10752 shlibpath_var=LD_LIBRARY_PATH
10753 case $host_vendor in
10754 sni)
10755 shlibpath_overrides_runpath=no
10756 need_lib_prefix=no
10757 runpath_var=LD_RUN_PATH
10758 ;;
10759 siemens)
10760 need_lib_prefix=no
10761 ;;
10762 motorola)
10763 need_lib_prefix=no
10764 need_version=no
10765 shlibpath_overrides_runpath=no
10766 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10767 ;;
10768 esac
10769 ;;
10770
10771sysv4*MP*)
10772 if test -d /usr/nec ;then
10773 version_type=linux
10774 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10775 soname_spec='$libname${shared_ext}.$major'
10776 shlibpath_var=LD_LIBRARY_PATH
2232061b 10777 fi
6bb11ab3
L
10778 ;;
10779
10780sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10781 version_type=freebsd-elf
10782 need_lib_prefix=no
10783 need_version=no
10784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10785 soname_spec='${libname}${release}${shared_ext}$major'
10786 shlibpath_var=LD_LIBRARY_PATH
10787 shlibpath_overrides_runpath=yes
10788 hardcode_into_libs=yes
10789 if test "$with_gnu_ld" = yes; then
10790 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10791 else
10792 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10793 case $host_os in
10794 sco3.2v5*)
10795 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10796 ;;
10797 esac
10798 fi
10799 sys_lib_dlsearch_path_spec='/usr/lib'
10800 ;;
10801
10802tpf*)
10803 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10804 version_type=linux
10805 need_lib_prefix=no
10806 need_version=no
10807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10808 shlibpath_var=LD_LIBRARY_PATH
10809 shlibpath_overrides_runpath=no
10810 hardcode_into_libs=yes
10811 ;;
10812
10813uts4*)
10814 version_type=linux
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10816 soname_spec='${libname}${release}${shared_ext}$major'
10817 shlibpath_var=LD_LIBRARY_PATH
10818 ;;
10819
10820*)
10821 dynamic_linker=no
10822 ;;
10823esac
10824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10825$as_echo "$dynamic_linker" >&6; }
10826test "$dynamic_linker" = no && can_build_shared=no
10827
10828variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10829if test "$GCC" = yes; then
10830 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2232061b 10831fi
2232061b 10832
6bb11ab3
L
10833if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10834 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10835fi
10836if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10837 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10838fi
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
2232061b 10865
2232061b 10866
2232061b 10867
2232061b 10868
2232061b
MF
10869
10870
6ffe910a 10871
6ffe910a
MF
10872
10873
10874
10875
10876
2232061b 10877
6ffe910a
MF
10878
10879
10880
10881
6ffe910a 10882
6ffe910a 10883
6ffe910a
MF
10884
10885
6ffe910a 10886
6ffe910a 10887
6ffe910a
MF
10888
10889
5f3ef9d0 10890
5f3ef9d0
JB
10891
10892
10893
db2e4d67
MF
10894
10895
db2e4d67 10896
db2e4d67 10897
db2e4d67 10898
db2e4d67 10899
db2e4d67 10900
db2e4d67 10901
db2e4d67 10902
db2e4d67
MF
10903
10904
db2e4d67 10905
db2e4d67
MF
10906
10907
db2e4d67 10908
db2e4d67
MF
10909
10910
6ffe910a 10911
6ffe910a 10912
6ffe910a
MF
10913
10914
6ffe910a
MF
10915
10916
6ffe910a 10917
6ffe910a 10918
6ffe910a 10919
6ffe910a 10920
6ffe910a 10921
b7026657 10922
b7026657 10923
5d031c16 10924
b7026657 10925
b7026657 10926
5d031c16 10927
b7026657 10928
b7026657 10929
5d031c16 10930
6bb11ab3
L
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10932$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10933hardcode_action=
10934if test -n "$hardcode_libdir_flag_spec" ||
10935 test -n "$runpath_var" ||
10936 test "X$hardcode_automatic" = "Xyes" ; then
b7026657 10937
6bb11ab3
L
10938 # We can hardcode non-existent directories.
10939 if test "$hardcode_direct" != no &&
10940 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10941 # have to relink, otherwise we might link with an installed library
10942 # when we should be linking with a yet-to-be-installed one
10943 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10944 test "$hardcode_minus_L" != no; then
10945 # Linking always hardcodes the temporary library directory.
10946 hardcode_action=relink
10947 else
10948 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10949 hardcode_action=immediate
10950 fi
10951else
10952 # We cannot hardcode anything, or else we can only hardcode existing
10953 # directories.
10954 hardcode_action=unsupported
b7026657 10955fi
6bb11ab3
L
10956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10957$as_echo "$hardcode_action" >&6; }
b7026657 10958
6bb11ab3
L
10959if test "$hardcode_action" = relink ||
10960 test "$inherit_rpath" = yes; then
10961 # Fast installation is not supported
10962 enable_fast_install=no
10963elif test "$shlibpath_overrides_runpath" = yes ||
10964 test "$enable_shared" = no; then
10965 # Fast installation is not necessary
10966 enable_fast_install=needless
10967fi
5d031c16 10968
6bb11ab3
L
10969
10970
10971
10972
10973
10974 if test "x$enable_dlopen" != xyes; then
10975 enable_dlopen=unknown
10976 enable_dlopen_self=unknown
10977 enable_dlopen_self_static=unknown
10978else
10979 lt_cv_dlopen=no
10980 lt_cv_dlopen_libs=
10981
10982 case $host_os in
10983 beos*)
10984 lt_cv_dlopen="load_add_on"
10985 lt_cv_dlopen_libs=
10986 lt_cv_dlopen_self=yes
10987 ;;
10988
10989 mingw* | pw32* | cegcc*)
10990 lt_cv_dlopen="LoadLibrary"
10991 lt_cv_dlopen_libs=
10992 ;;
10993
10994 cygwin*)
10995 lt_cv_dlopen="dlopen"
10996 lt_cv_dlopen_libs=
10997 ;;
10998
10999 darwin*)
11000 # if libdl is installed we need to link against it
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11002$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 11003if ${ac_cv_lib_dl_dlopen+:} false; then :
6bb11ab3
L
11004 $as_echo_n "(cached) " >&6
11005else
11006 ac_check_lib_save_LIBS=$LIBS
11007LIBS="-ldl $LIBS"
11008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009/* end confdefs.h. */
11010
11011/* Override any GCC internal prototype to avoid an error.
11012 Use char because int might match the return type of a GCC
11013 builtin and then its argument prototype would still apply. */
11014#ifdef __cplusplus
11015extern "C"
11016#endif
11017char dlopen ();
11018int
11019main ()
11020{
11021return dlopen ();
11022 ;
11023 return 0;
11024}
b7026657 11025_ACEOF
6bb11ab3
L
11026if ac_fn_c_try_link "$LINENO"; then :
11027 ac_cv_lib_dl_dlopen=yes
11028else
11029 ac_cv_lib_dl_dlopen=no
11030fi
11031rm -f core conftest.err conftest.$ac_objext \
11032 conftest$ac_exeext conftest.$ac_ext
11033LIBS=$ac_check_lib_save_LIBS
11034fi
11035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11036$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11037if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
11038 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11039else
11040
11041 lt_cv_dlopen="dyld"
11042 lt_cv_dlopen_libs=
11043 lt_cv_dlopen_self=yes
5d031c16 11044
5d031c16 11045fi
5d031c16 11046
6bb11ab3 11047 ;;
5d031c16 11048
6bb11ab3
L
11049 *)
11050 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 11051if test "x$ac_cv_func_shl_load" = xyes; then :
6bb11ab3
L
11052 lt_cv_dlopen="shl_load"
11053else
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11055$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 11056if ${ac_cv_lib_dld_shl_load+:} false; then :
6bb11ab3
L
11057 $as_echo_n "(cached) " >&6
11058else
11059 ac_check_lib_save_LIBS=$LIBS
11060LIBS="-ldld $LIBS"
11061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062/* end confdefs.h. */
11063
11064/* Override any GCC internal prototype to avoid an error.
11065 Use char because int might match the return type of a GCC
11066 builtin and then its argument prototype would still apply. */
11067#ifdef __cplusplus
11068extern "C"
11069#endif
11070char shl_load ();
11071int
11072main ()
11073{
11074return shl_load ();
11075 ;
11076 return 0;
11077}
11078_ACEOF
11079if ac_fn_c_try_link "$LINENO"; then :
11080 ac_cv_lib_dld_shl_load=yes
11081else
11082 ac_cv_lib_dld_shl_load=no
11083fi
11084rm -f core conftest.err conftest.$ac_objext \
11085 conftest$ac_exeext conftest.$ac_ext
11086LIBS=$ac_check_lib_save_LIBS
11087fi
11088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11089$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 11090if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6bb11ab3
L
11091 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11092else
11093 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 11094if test "x$ac_cv_func_dlopen" = xyes; then :
6bb11ab3
L
11095 lt_cv_dlopen="dlopen"
11096else
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11098$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 11099if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 11100 $as_echo_n "(cached) " >&6
5d031c16 11101else
b7026657 11102 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 11103LIBS="-ldl $LIBS"
81ecdfbb 11104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
11105/* end confdefs.h. */
11106
81ecdfbb
RW
11107/* Override any GCC internal prototype to avoid an error.
11108 Use char because int might match the return type of a GCC
11109 builtin and then its argument prototype would still apply. */
b7026657
AC
11110#ifdef __cplusplus
11111extern "C"
11112#endif
6bb11ab3 11113char dlopen ();
b7026657
AC
11114int
11115main ()
11116{
6bb11ab3 11117return dlopen ();
b7026657
AC
11118 ;
11119 return 0;
11120}
11121_ACEOF
81ecdfbb 11122if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 11123 ac_cv_lib_dl_dlopen=yes
b7026657 11124else
6bb11ab3 11125 ac_cv_lib_dl_dlopen=no
b7026657 11126fi
81ecdfbb
RW
11127rm -f core conftest.err conftest.$ac_objext \
11128 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
11129LIBS=$ac_check_lib_save_LIBS
11130fi
6bb11ab3
L
11131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11132$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11133if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
11134 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11135else
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11137$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 11138if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 11139 $as_echo_n "(cached) " >&6
5d031c16 11140else
b7026657 11141 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 11142LIBS="-lsvld $LIBS"
81ecdfbb 11143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
11144/* end confdefs.h. */
11145
81ecdfbb
RW
11146/* Override any GCC internal prototype to avoid an error.
11147 Use char because int might match the return type of a GCC
11148 builtin and then its argument prototype would still apply. */
b7026657
AC
11149#ifdef __cplusplus
11150extern "C"
11151#endif
6bb11ab3 11152char dlopen ();
b7026657
AC
11153int
11154main ()
11155{
6bb11ab3 11156return dlopen ();
b7026657
AC
11157 ;
11158 return 0;
11159}
11160_ACEOF
81ecdfbb 11161if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 11162 ac_cv_lib_svld_dlopen=yes
b7026657 11163else
6bb11ab3 11164 ac_cv_lib_svld_dlopen=no
b7026657 11165fi
81ecdfbb
RW
11166rm -f core conftest.err conftest.$ac_objext \
11167 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
11168LIBS=$ac_check_lib_save_LIBS
11169fi
6bb11ab3
L
11170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11171$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 11172if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6bb11ab3 11173 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5912fadd 11174else
6bb11ab3
L
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11176$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 11177if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb 11178 $as_echo_n "(cached) " >&6
b5bd9624 11179else
6bb11ab3
L
11180 ac_check_lib_save_LIBS=$LIBS
11181LIBS="-ldld $LIBS"
81ecdfbb 11182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b5bd9624
HPN
11183/* end confdefs.h. */
11184
81ecdfbb
RW
11185/* Override any GCC internal prototype to avoid an error.
11186 Use char because int might match the return type of a GCC
b5bd9624 11187 builtin and then its argument prototype would still apply. */
b5bd9624
HPN
11188#ifdef __cplusplus
11189extern "C"
11190#endif
6bb11ab3 11191char dld_link ();
b5bd9624
HPN
11192int
11193main ()
11194{
6bb11ab3 11195return dld_link ();
b5bd9624
HPN
11196 ;
11197 return 0;
11198}
11199_ACEOF
6bb11ab3
L
11200if ac_fn_c_try_link "$LINENO"; then :
11201 ac_cv_lib_dld_dld_link=yes
11202else
11203 ac_cv_lib_dld_dld_link=no
11204fi
11205rm -f core conftest.err conftest.$ac_objext \
11206 conftest$ac_exeext conftest.$ac_ext
11207LIBS=$ac_check_lib_save_LIBS
11208fi
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11210$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 11211if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6bb11ab3
L
11212 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11213fi
11214
11215
11216fi
11217
11218
11219fi
11220
11221
11222fi
11223
11224
11225fi
11226
11227
11228fi
11229
11230 ;;
11231 esac
11232
11233 if test "x$lt_cv_dlopen" != xno; then
11234 enable_dlopen=yes
b5bd9624 11235 else
6bb11ab3
L
11236 enable_dlopen=no
11237 fi
11238
11239 case $lt_cv_dlopen in
11240 dlopen)
11241 save_CPPFLAGS="$CPPFLAGS"
11242 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11243
11244 save_LDFLAGS="$LDFLAGS"
11245 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11246
11247 save_LIBS="$LIBS"
11248 LIBS="$lt_cv_dlopen_libs $LIBS"
11249
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11251$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 11252if ${lt_cv_dlopen_self+:} false; then :
6bb11ab3
L
11253 $as_echo_n "(cached) " >&6
11254else
11255 if test "$cross_compiling" = yes; then :
11256 lt_cv_dlopen_self=cross
11257else
11258 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11259 lt_status=$lt_dlunknown
11260 cat > conftest.$ac_ext <<_LT_EOF
37e9f182 11261#line 11261 "configure"
6bb11ab3
L
11262#include "confdefs.h"
11263
11264#if HAVE_DLFCN_H
11265#include <dlfcn.h>
11266#endif
11267
11268#include <stdio.h>
11269
11270#ifdef RTLD_GLOBAL
11271# define LT_DLGLOBAL RTLD_GLOBAL
11272#else
11273# ifdef DL_GLOBAL
11274# define LT_DLGLOBAL DL_GLOBAL
11275# else
11276# define LT_DLGLOBAL 0
11277# endif
11278#endif
11279
11280/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11281 find out it does not work in some platform. */
11282#ifndef LT_DLLAZY_OR_NOW
11283# ifdef RTLD_LAZY
11284# define LT_DLLAZY_OR_NOW RTLD_LAZY
11285# else
11286# ifdef DL_LAZY
11287# define LT_DLLAZY_OR_NOW DL_LAZY
11288# else
11289# ifdef RTLD_NOW
11290# define LT_DLLAZY_OR_NOW RTLD_NOW
11291# else
11292# ifdef DL_NOW
11293# define LT_DLLAZY_OR_NOW DL_NOW
11294# else
11295# define LT_DLLAZY_OR_NOW 0
11296# endif
11297# endif
11298# endif
11299# endif
11300#endif
11301
11302/* When -fvisbility=hidden is used, assume the code has been annotated
11303 correspondingly for the symbols needed. */
11304#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11305void fnord () __attribute__((visibility("default")));
11306#endif
11307
11308void fnord () { int i=42; }
11309int main ()
11310{
11311 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11312 int status = $lt_dlunknown;
11313
11314 if (self)
11315 {
11316 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11317 else
11318 {
11319 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11320 else puts (dlerror ());
11321 }
11322 /* dlclose (self); */
11323 }
11324 else
11325 puts (dlerror ());
11326
11327 return status;
11328}
11329_LT_EOF
11330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11331 (eval $ac_link) 2>&5
11332 ac_status=$?
11333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11334 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11335 (./conftest; exit; ) >&5 2>/dev/null
11336 lt_status=$?
11337 case x$lt_status in
11338 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11339 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11340 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11341 esac
11342 else :
11343 # compilation failed
11344 lt_cv_dlopen_self=no
b5bd9624 11345 fi
b5bd9624 11346fi
6bb11ab3
L
11347rm -fr conftest*
11348
11349
b5bd9624 11350fi
6bb11ab3
L
11351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11352$as_echo "$lt_cv_dlopen_self" >&6; }
b5bd9624 11353
6bb11ab3
L
11354 if test "x$lt_cv_dlopen_self" = xyes; then
11355 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11357$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 11358if ${lt_cv_dlopen_self_static+:} false; then :
6bb11ab3 11359 $as_echo_n "(cached) " >&6
b5bd9624 11360else
6bb11ab3
L
11361 if test "$cross_compiling" = yes; then :
11362 lt_cv_dlopen_self_static=cross
11363else
11364 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11365 lt_status=$lt_dlunknown
11366 cat > conftest.$ac_ext <<_LT_EOF
37e9f182 11367#line 11367 "configure"
6bb11ab3
L
11368#include "confdefs.h"
11369
11370#if HAVE_DLFCN_H
11371#include <dlfcn.h>
11372#endif
11373
11374#include <stdio.h>
11375
11376#ifdef RTLD_GLOBAL
11377# define LT_DLGLOBAL RTLD_GLOBAL
11378#else
11379# ifdef DL_GLOBAL
11380# define LT_DLGLOBAL DL_GLOBAL
11381# else
11382# define LT_DLGLOBAL 0
11383# endif
11384#endif
11385
11386/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11387 find out it does not work in some platform. */
11388#ifndef LT_DLLAZY_OR_NOW
11389# ifdef RTLD_LAZY
11390# define LT_DLLAZY_OR_NOW RTLD_LAZY
11391# else
11392# ifdef DL_LAZY
11393# define LT_DLLAZY_OR_NOW DL_LAZY
11394# else
11395# ifdef RTLD_NOW
11396# define LT_DLLAZY_OR_NOW RTLD_NOW
11397# else
11398# ifdef DL_NOW
11399# define LT_DLLAZY_OR_NOW DL_NOW
11400# else
11401# define LT_DLLAZY_OR_NOW 0
11402# endif
11403# endif
11404# endif
11405# endif
11406#endif
11407
11408/* When -fvisbility=hidden is used, assume the code has been annotated
11409 correspondingly for the symbols needed. */
11410#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11411void fnord () __attribute__((visibility("default")));
11412#endif
11413
11414void fnord () { int i=42; }
11415int main ()
11416{
11417 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11418 int status = $lt_dlunknown;
11419
11420 if (self)
11421 {
11422 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11423 else
11424 {
11425 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11426 else puts (dlerror ());
11427 }
11428 /* dlclose (self); */
11429 }
11430 else
11431 puts (dlerror ());
11432
11433 return status;
11434}
11435_LT_EOF
11436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11437 (eval $ac_link) 2>&5
11438 ac_status=$?
11439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11440 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11441 (./conftest; exit; ) >&5 2>/dev/null
11442 lt_status=$?
11443 case x$lt_status in
11444 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11445 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11446 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11447 esac
11448 else :
11449 # compilation failed
11450 lt_cv_dlopen_self_static=no
11451 fi
b5bd9624 11452fi
6bb11ab3
L
11453rm -fr conftest*
11454
11455
b5bd9624 11456fi
6bb11ab3
L
11457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11458$as_echo "$lt_cv_dlopen_self_static" >&6; }
11459 fi
11460
11461 CPPFLAGS="$save_CPPFLAGS"
11462 LDFLAGS="$save_LDFLAGS"
11463 LIBS="$save_LIBS"
11464 ;;
11465 esac
11466
11467 case $lt_cv_dlopen_self in
11468 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11469 *) enable_dlopen_self=unknown ;;
11470 esac
11471
11472 case $lt_cv_dlopen_self_static in
11473 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11474 *) enable_dlopen_self_static=unknown ;;
11475 esac
11476fi
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494striplib=
11495old_striplib=
11496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11497$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11498if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11499 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11500 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11502$as_echo "yes" >&6; }
11503else
11504# FIXME - insert some real tests, host_os isn't really good enough
11505 case $host_os in
11506 darwin*)
11507 if test -n "$STRIP" ; then
11508 striplib="$STRIP -x"
11509 old_striplib="$STRIP -S"
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11511$as_echo "yes" >&6; }
11512 else
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11514$as_echo "no" >&6; }
11515 fi
11516 ;;
11517 *)
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519$as_echo "no" >&6; }
11520 ;;
11521 esac
11522fi
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535 # Report which library types will actually be built
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11537$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11539$as_echo "$can_build_shared" >&6; }
11540
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11542$as_echo_n "checking whether to build shared libraries... " >&6; }
11543 test "$can_build_shared" = "no" && enable_shared=no
11544
11545 # On AIX, shared libraries and static libraries use the same namespace, and
11546 # are all built from PIC.
11547 case $host_os in
11548 aix3*)
11549 test "$enable_shared" = yes && enable_static=no
11550 if test -n "$RANLIB"; then
11551 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11552 postinstall_cmds='$RANLIB $lib'
11553 fi
11554 ;;
11555
11556 aix[4-9]*)
11557 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11558 test "$enable_shared" = yes && enable_static=no
11559 fi
11560 ;;
11561 esac
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11563$as_echo "$enable_shared" >&6; }
11564
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11566$as_echo_n "checking whether to build static libraries... " >&6; }
11567 # Make sure either enable_shared or enable_static is yes.
11568 test "$enable_shared" = yes || enable_static=yes
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11570$as_echo "$enable_static" >&6; }
11571
11572
11573
11574
11575fi
11576ac_ext=c
11577ac_cpp='$CPP $CPPFLAGS'
11578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11580ac_compiler_gnu=$ac_cv_c_compiler_gnu
11581
11582CC="$lt_save_CC"
11583
11584
11585
11586
11587
11588
11589
11590
11591
b5bd9624 11592
b5bd9624 11593
b5bd9624 11594
b5bd9624 11595
6bb11ab3
L
11596 ac_config_commands="$ac_config_commands libtool"
11597
11598
11599
11600
11601# Only expand once:
11602
11603
5912fadd 11604
b5bd9624 11605
5d031c16
AC
11606
11607
31e6ad7d
MF
11608
11609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11610$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11611 # Check whether --enable-maintainer-mode was given.
81ecdfbb 11612if test "${enable_maintainer_mode+set}" = set; then :
31e6ad7d
MF
11613 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11614else
11615 USE_MAINTAINER_MODE=no
5d031c16 11616fi
31e6ad7d
MF
11617
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11619$as_echo "$USE_MAINTAINER_MODE" >&6; }
11620 if test $USE_MAINTAINER_MODE = yes; then
11621 MAINTAINER_MODE_TRUE=
11622 MAINTAINER_MODE_FALSE='#'
5d031c16 11623else
31e6ad7d
MF
11624 MAINTAINER_MODE_TRUE='#'
11625 MAINTAINER_MODE_FALSE=
81ecdfbb
RW
11626fi
11627
31e6ad7d
MF
11628 MAINT=$MAINTAINER_MODE_TRUE
11629
11630
5d031c16
AC
11631
11632
ce39bd38
MF
11633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
11634$as_echo_n "checking for sim debug setting... " >&6; }
11635sim_debug="0"
81ecdfbb
RW
11636# Check whether --enable-sim-debug was given.
11637if test "${enable_sim_debug+set}" = set; then :
11638 enableval=$enable_sim_debug; case "${enableval}" in
ce39bd38
MF
11639 yes) sim_debug="7";;
11640 no) sim_debug="0";;
11641 *) sim_debug="($enableval)";;
5d031c16 11642esac
5d031c16 11643fi
ce39bd38
MF
11644if test "$sim_debug" != "0"; then
11645
11646cat >>confdefs.h <<_ACEOF
11647#define DEBUG $sim_debug
11648_ACEOF
11649
81ecdfbb
RW
11650fi
11651
ce39bd38
MF
11652cat >>confdefs.h <<_ACEOF
11653#define WITH_DEBUG $sim_debug
11654_ACEOF
11655
11656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
11657$as_echo "$sim_debug" >&6; }
5d031c16
AC
11658
11659
ce39bd38
MF
11660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
11661$as_echo_n "checking for sim stdio debug behavior... " >&6; }
11662sim_stdio="0"
81ecdfbb
RW
11663# Check whether --enable-sim-stdio was given.
11664if test "${enable_sim_stdio+set}" = set; then :
11665 enableval=$enable_sim_stdio; case "${enableval}" in
ce39bd38
MF
11666 yes) sim_stdio="DO_USE_STDIO";;
11667 no) sim_stdio="DONT_USE_STDIO";;
d0ac1c44 11668 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
5d031c16 11669esac
81ecdfbb 11670fi
5d031c16 11671
ce39bd38
MF
11672cat >>confdefs.h <<_ACEOF
11673#define WITH_STDIO $sim_stdio
11674_ACEOF
11675
11676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
11677$as_echo "$sim_stdio" >&6; }
5d031c16 11678
81ecdfbb 11679
ce39bd38
MF
11680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
11681$as_echo_n "checking for sim trace settings... " >&6; }
11682sim_trace="~TRACE_debug"
81ecdfbb
RW
11683# Check whether --enable-sim-trace was given.
11684if test "${enable_sim_trace+set}" = set; then :
11685 enableval=$enable_sim_trace; case "${enableval}" in
ce39bd38
MF
11686 yes) sim_trace="-1";;
11687 no) sim_trace="0";;
5d031c16 11688 [-0-9]*)
ce39bd38 11689 sim_trace="'(${enableval})'";;
2232061b 11690 [[:lower:]]*)
5d031c16
AC
11691 sim_trace=""
11692 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11693 if test x"$sim_trace" = x; then
ce39bd38 11694 sim_trace="(TRACE_$x"
5d031c16
AC
11695 else
11696 sim_trace="${sim_trace}|TRACE_$x"
11697 fi
11698 done
ce39bd38 11699 sim_trace="$sim_trace)" ;;
5d031c16 11700esac
81ecdfbb 11701fi
5d031c16 11702
ce39bd38
MF
11703cat >>confdefs.h <<_ACEOF
11704#define WITH_TRACE $sim_trace
11705_ACEOF
11706
11707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
11708$as_echo "$sim_trace" >&6; }
5d031c16 11709
81ecdfbb 11710
ce39bd38
MF
11711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
11712$as_echo_n "checking for sim profile settings... " >&6; }
11713profile="1"
11714sim_profile="-1"
81ecdfbb
RW
11715# Check whether --enable-sim-profile was given.
11716if test "${enable_sim_profile+set}" = set; then :
11717 enableval=$enable_sim_profile; case "${enableval}" in
ce39bd38
MF
11718 yes) profile="1" sim_profile="-1";;
11719 no) profile="0" sim_profile="0";;
5d031c16 11720 [-0-9]*)
ce39bd38 11721 profile="(${enableval})" sim_profile="(${enableval})";;
5d031c16 11722 [a-z]*)
ce39bd38 11723 profile="1"
5d031c16
AC
11724 sim_profile=""
11725 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11726 if test x"$sim_profile" = x; then
ce39bd38 11727 sim_profile="(PROFILE_$x"
5d031c16
AC
11728 else
11729 sim_profile="${sim_profile}|PROFILE_$x"
11730 fi
11731 done
ce39bd38 11732 sim_profile="$sim_profile)" ;;
5d031c16 11733esac
81ecdfbb 11734fi
5d031c16 11735
ce39bd38
MF
11736cat >>confdefs.h <<_ACEOF
11737#define PROFILE $profile
11738_ACEOF
5d031c16 11739
6efef468 11740
ce39bd38
MF
11741cat >>confdefs.h <<_ACEOF
11742#define WITH_PROFILE $sim_profile
11743_ACEOF
11744
11745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
11746$as_echo "$sim_profile" >&6; }
11747
11748
11749
11750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
11751$as_echo_n "checking whether to enable sim asserts... " >&6; }
11752sim_assert="1"
35656e95
MF
11753# Check whether --enable-sim-assert was given.
11754if test "${enable_sim_assert+set}" = set; then :
11755 enableval=$enable_sim_assert; case "${enableval}" in
ce39bd38
MF
11756 yes) sim_assert="1";;
11757 no) sim_assert="0";;
d0ac1c44 11758 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
35656e95 11759esac
35656e95
MF
11760fi
11761
ce39bd38
MF
11762cat >>confdefs.h <<_ACEOF
11763#define WITH_ASSERT $sim_assert
11764_ACEOF
11765
11766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
11767$as_echo "$sim_assert" >&6; }
11768
35656e95 11769
ce39bd38
MF
11770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
11771$as_echo_n "checking default sim environment setting... " >&6; }
11772sim_environment="ALL_ENVIRONMENT"
16f7876d
MF
11773# Check whether --enable-sim-environment was given.
11774if test "${enable_sim_environment+set}" = set; then :
11775 enableval=$enable_sim_environment; case "${enableval}" in
ce39bd38
MF
11776 all | ALL) sim_environment="ALL_ENVIRONMENT";;
11777 user | USER) sim_environment="USER_ENVIRONMENT";;
11778 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
11779 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
d0ac1c44 11780 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
16f7876d 11781esac
16f7876d
MF
11782fi
11783
ce39bd38
MF
11784cat >>confdefs.h <<_ACEOF
11785#define WITH_ENVIRONMENT $sim_environment
11786_ACEOF
11787
11788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
11789$as_echo "$sim_environment" >&6; }
11790
16f7876d 11791
347fe5bb
MF
11792sim_inline="-DDEFAULT_INLINE=0"
11793# Check whether --enable-sim-inline was given.
11794if test "${enable_sim_inline+set}" = set; then :
11795 enableval=$enable_sim_inline; sim_inline=""
11796case "$enableval" in
11797 no) sim_inline="-DDEFAULT_INLINE=0";;
11798 0) sim_inline="-DDEFAULT_INLINE=0";;
11799 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
11800 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
11801 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11802 new_flag=""
11803 case "$x" in
11804 *_INLINE=*) new_flag="-D$x";;
11805 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
11806 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
11807 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
11808 esac
11809 if test x"$sim_inline" = x""; then
11810 sim_inline="$new_flag"
11811 else
11812 sim_inline="$sim_inline $new_flag"
11813 fi
11814 done;;
11815esac
11816if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
11817 echo "Setting inline flags = $sim_inline" 6>&1
11818fi
11819fi
11820
11821
11822
81ecdfbb
RW
11823
11824# Check whether --with-pkgversion was given.
11825if test "${with_pkgversion+set}" = set; then :
11826 withval=$with_pkgversion; case "$withval" in
d0ac1c44 11827 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
6efef468
JM
11828 no) PKGVERSION= ;;
11829 *) PKGVERSION="($withval) " ;;
11830 esac
11831else
bf12d44e 11832 PKGVERSION="(SIM) "
6efef468 11833
81ecdfbb
RW
11834fi
11835
6efef468
JM
11836
11837
11838
11839
81ecdfbb
RW
11840# Check whether --with-bugurl was given.
11841if test "${with_bugurl+set}" = set; then :
11842 withval=$with_bugurl; case "$withval" in
d0ac1c44 11843 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
6efef468
JM
11844 no) BUGURL=
11845 ;;
11846 *) BUGURL="$withval"
11847 ;;
11848 esac
11849else
dfb856ba 11850 BUGURL="https://www.gnu.org/software/gdb/bugs/"
6efef468 11851
81ecdfbb
RW
11852fi
11853
6efef468
JM
11854 case ${BUGURL} in
11855 "")
11856 REPORT_BUGS_TO=
11857 REPORT_BUGS_TEXI=
11858 ;;
11859 *)
11860 REPORT_BUGS_TO="<$BUGURL>"
11861 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
11862 ;;
11863 esac;
11864
11865
11866
11867
11868cat >>confdefs.h <<_ACEOF
11869#define PKGVERSION "$PKGVERSION"
11870_ACEOF
11871
11872
11873cat >>confdefs.h <<_ACEOF
11874#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
11875_ACEOF
11876
11877
81ecdfbb
RW
11878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11879$as_echo_n "checking return type of signal handlers... " >&6; }
d0ac1c44 11880if ${ac_cv_type_signal+:} false; then :
81ecdfbb 11881 $as_echo_n "(cached) " >&6
5d031c16 11882else
81ecdfbb 11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 11884/* end confdefs.h. */
5d031c16
AC
11885#include <sys/types.h>
11886#include <signal.h>
5d031c16 11887
b7026657
AC
11888int
11889main ()
11890{
81ecdfbb 11891return *(signal (0, 0)) (0) == 1;
b7026657
AC
11892 ;
11893 return 0;
11894}
11895_ACEOF
81ecdfbb
RW
11896if ac_fn_c_try_compile "$LINENO"; then :
11897 ac_cv_type_signal=int
5d031c16 11898else
81ecdfbb 11899 ac_cv_type_signal=void
5d031c16 11900fi
81ecdfbb 11901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5d031c16 11902fi
81ecdfbb
RW
11903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11904$as_echo "$ac_cv_type_signal" >&6; }
5d031c16 11905
b7026657 11906cat >>confdefs.h <<_ACEOF
5d031c16 11907#define RETSIGTYPE $ac_cv_type_signal
b7026657 11908_ACEOF
5d031c16
AC
11909
11910
11911
5d031c16
AC
11912
11913
5d031c16
AC
11914
11915
1ac72f06 11916wire_endian="BIG"
eca4255a
MF
11917default_endian=""
11918# Check whether --enable-sim-endian was given.
11919if test "${enable_sim_endian+set}" = set; then :
11920 enableval=$enable_sim_endian; case "${enableval}" in
1ac72f06
MF
11921 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_BIG";;
11922 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_LITTLE";;
eca4255a 11923 yes) if test x"$wire_endian" != x; then
1ac72f06 11924 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
eca4255a 11925 else
1ac72f06
MF
11926 if test x"$default_endian" != x; then
11927 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
eca4255a
MF
11928 else
11929 echo "No hard-wired endian for target $target" 1>&6
1ac72f06 11930 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
eca4255a
MF
11931 fi
11932 fi;;
11933 no) if test x"$default_endian" != x; then
1ac72f06 11934 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
eca4255a
MF
11935 else
11936 if test x"$wire_endian" != x; then
1ac72f06 11937 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
eca4255a
MF
11938 else
11939 echo "No default endian for target $target" 1>&6
1ac72f06 11940 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
eca4255a
MF
11941 fi
11942 fi;;
d0ac1c44 11943 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
eca4255a
MF
11944esac
11945if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
11946 echo "Setting endian flags = $sim_endian" 6>&1
11947fi
11948else
11949 if test x"$default_endian" != x; then
1ac72f06 11950 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
eca4255a
MF
11951else
11952 if test x"$wire_endian" != x; then
1ac72f06 11953 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
eca4255a
MF
11954 else
11955 sim_endian=
11956 fi
11957fi
11958fi
11959
5d031c16
AC
11960wire_alignment="NONSTRICT_ALIGNMENT"
11961default_alignment=""
11962
81ecdfbb
RW
11963# Check whether --enable-sim-alignment was given.
11964if test "${enable_sim_alignment+set}" = set; then :
11965 enableval=$enable_sim_alignment; case "${enableval}" in
5d031c16
AC
11966 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
11967 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
11968 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
11969 yes) if test x"$wire_alignment" != x; then
11970 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
11971 else
11972 if test x"$default_alignment" != x; then
11973 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
11974 else
11975 echo "No hard-wired alignment for target $target" 1>&6
11976 sim_alignment="-DWITH_ALIGNMENT=0"
11977 fi
11978 fi;;
11979 no) if test x"$default_alignment" != x; then
11980 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
11981 else
11982 if test x"$wire_alignment" != x; then
11983 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
11984 else
11985 echo "No default alignment for target $target" 1>&6
11986 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
11987 fi
11988 fi;;
d0ac1c44 11989 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
5d031c16
AC
11990esac
11991if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
11992 echo "Setting alignment flags = $sim_alignment" 6>&1
11993fi
11994else
11995 if test x"$default_alignment" != x; then
11996 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
11997else
11998 if test x"$wire_alignment" != x; then
11999 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
12000 else
12001 sim_alignment=
12002 fi
12003fi
81ecdfbb 12004fi
5d031c16 12005
81ecdfbb 12006
2232061b
MF
12007# Check whether --enable-werror was given.
12008if test "${enable_werror+set}" = set; then :
12009 enableval=$enable_werror; case "${enableval}" in
12010 yes | y) ERROR_ON_WARNING="yes" ;;
12011 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 12012 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
2232061b
MF
12013 esac
12014fi
12015
12016
12017# Enable -Werror by default when using gcc
12018if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12019 ERROR_ON_WARNING=yes
51216631 12020fi
2232061b
MF
12021
12022WERROR_CFLAGS=""
2232061b 12023
2232061b 12024build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
1a8a700e 12025-Wpointer-sign \
2232061b 12026-Wno-unused -Wunused-value -Wunused-function \
1a8a700e
MF
12027-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
12028-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
12029-Wold-style-declaration -Wold-style-definition"
2232061b
MF
12030
12031# Enable -Wno-format by default when using gcc on mingw since many
12032# GCC versions complain about %I64.
12033case "${host}" in
12034 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
d3685d60 12035 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
2232061b
MF
12036esac
12037
81ecdfbb
RW
12038# Check whether --enable-build-warnings was given.
12039if test "${enable_build_warnings+set}" = set; then :
12040 enableval=$enable_build_warnings; case "${enableval}" in
c8cca39f
AC
12041 yes) ;;
12042 no) build_warnings="-w";;
12043 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12044 build_warnings="${build_warnings} ${t}";;
12045 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12046 build_warnings="${t} ${build_warnings}";;
12047 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12048esac
12049if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12050 echo "Setting compiler warning flags = $build_warnings" 6>&1
12051fi
81ecdfbb
RW
12052fi
12053# Check whether --enable-sim-build-warnings was given.
12054if test "${enable_sim_build_warnings+set}" = set; then :
12055 enableval=$enable_sim_build_warnings; case "${enableval}" in
5d031c16
AC
12056 yes) ;;
12057 no) build_warnings="-w";;
12058 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f 12059 build_warnings="${build_warnings} ${t}";;
5d031c16 12060 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f
AC
12061 build_warnings="${t} ${build_warnings}";;
12062 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5d031c16
AC
12063esac
12064if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
c8cca39f
AC
12065 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
12066fi
81ecdfbb
RW
12067fi
12068WARN_CFLAGS=""
5d031c16
AC
12069if test "x${build_warnings}" != x -a "x$GCC" = xyes
12070then
81ecdfbb
RW
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
12072$as_echo_n "checking compiler warning flags... " >&6; }
c8cca39f
AC
12073 # Separate out the -Werror flag as some files just cannot be
12074 # compiled with it enabled.
12075 for w in ${build_warnings}; do
12076 case $w in
12077 -Werr*) WERROR_CFLAGS=-Werror ;;
12078 *) # Check that GCC accepts it
12079 saved_CFLAGS="$CFLAGS"
12080 CFLAGS="$CFLAGS $w"
81ecdfbb 12081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 12082/* end confdefs.h. */
c8cca39f 12083
b7026657
AC
12084int
12085main ()
12086{
c8cca39f 12087
b7026657
AC
12088 ;
12089 return 0;
12090}
12091_ACEOF
81ecdfbb 12092if ac_fn_c_try_compile "$LINENO"; then :
c8cca39f 12093 WARN_CFLAGS="${WARN_CFLAGS} $w"
c8cca39f 12094fi
81ecdfbb 12095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c8cca39f
AC
12096 CFLAGS="$saved_CFLAGS"
12097 esac
12098 done
2232061b
MF
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
12100$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
5d031c16
AC
12101fi
12102
12103
88f68ee2
MF
12104if test ""; then
12105 hardware=""
5d031c16 12106else
6ffe910a 12107 hardware="cfi core pal glue"
5d031c16 12108fi
88f68ee2 12109hardware="$hardware m68hc11 m68hc11sio m68hc11eepr m68hc11tim m68hc11spi nvram"
1517bd27 12110
5d031c16
AC
12111sim_hw_cflags="-DWITH_HW=1"
12112sim_hw="$hardware"
12113sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
1517bd27 12114
81ecdfbb
RW
12115# Check whether --enable-sim-hardware was given.
12116if test "${enable_sim_hardware+set}" = set; then :
12117 enableval=$enable_sim_hardware;
30452bbe 12118else
88f68ee2 12119 enable_sim_hardware="yes"
1517bd27
MF
12120fi
12121
12122case ${enable_sim_hardware} in
64dd13df
MF
12123 yes|no) ;;
12124 ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
12125 *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
12126 *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
5d031c16 12127esac
1517bd27 12128
64dd13df 12129if test "$enable_sim_hardware" = no; then
5d031c16
AC
12130 sim_hw_objs=
12131 sim_hw_cflags="-DWITH_HW=0"
12132 sim_hw=
12133else
12134 sim_hw_cflags="-DWITH_HW=1"
12135 # remove duplicates
12136 sim_hw=""
12137 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
b3a3ffef
HPN
12138 for i in $hardware ; do
12139 case " $sim_hw " in
5d031c16
AC
12140 *" $i "*) ;;
12141 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
12142 esac
12143 done
1517bd27 12144 # mingw does not support sockser
1517bd27
MF
12145 case ${host} in
12146 *mingw*) ;;
49cd1634
MF
12147 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
12148 # that you instatiate. Instead, other code will call into it directly.
12149 # At some point, we should convert it over.
12150 sim_hw_objs="$sim_hw_objs dv-sockser.o"
b7026657 12151
1517bd27
MF
12152cat >>confdefs.h <<_ACEOF
12153#define HAVE_DV_SOCKSER 1
12154_ACEOF
b7026657 12155
1517bd27
MF
12156 ;;
12157 esac
1517bd27
MF
12158 if test x"$silent" != x"yes"; then
12159 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
12160 fi
12161 case " $hardware " in
12162 *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
4399a56b 12163$as_echo_n "checking for log2 in -lm... " >&6; }
d0ac1c44 12164if ${ac_cv_lib_m_log2+:} false; then :
4399a56b
MF
12165 $as_echo_n "(cached) " >&6
12166else
12167 ac_check_lib_save_LIBS=$LIBS
12168LIBS="-lm $LIBS"
12169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170/* end confdefs.h. */
12171
12172/* Override any GCC internal prototype to avoid an error.
12173 Use char because int might match the return type of a GCC
12174 builtin and then its argument prototype would still apply. */
12175#ifdef __cplusplus
12176extern "C"
12177#endif
12178char log2 ();
12179int
12180main ()
12181{
12182return log2 ();
12183 ;
12184 return 0;
12185}
12186_ACEOF
12187if ac_fn_c_try_link "$LINENO"; then :
12188 ac_cv_lib_m_log2=yes
12189else
12190 ac_cv_lib_m_log2=no
12191fi
12192rm -f core conftest.err conftest.$ac_objext \
12193 conftest$ac_exeext conftest.$ac_ext
12194LIBS=$ac_check_lib_save_LIBS
12195fi
12196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
12197$as_echo "$ac_cv_lib_m_log2" >&6; }
d0ac1c44 12198if test "x$ac_cv_lib_m_log2" = xyes; then :
4399a56b
MF
12199 cat >>confdefs.h <<_ACEOF
12200#define HAVE_LIBM 1
12201_ACEOF
12202
12203 LIBS="-lm $LIBS"
12204
12205fi
12206;;
1517bd27
MF
12207 esac
12208fi
4399a56b 12209
b7026657 12210
5d031c16 12211
379832de
HPN
12212cgen_breaks=""
12213if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
12214cgen_breaks="break cgen_rtx_error";
12215fi
12216
81ecdfbb 12217ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
38f48d72 12218
81ecdfbb 12219ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
38f48d72 12220
81ecdfbb 12221ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
38f48d72 12222
81ecdfbb 12223ac_config_commands="$ac_config_commands Makefile"
38f48d72 12224
81ecdfbb 12225ac_config_commands="$ac_config_commands stamp-h"
38f48d72 12226
760b3e8b
MF
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
b7026657 12239cat >confcache <<\_ACEOF
5d031c16
AC
12240# This file is a shell script that caches the results of configure
12241# tests run on this system so they can be shared between configure
b7026657
AC
12242# scripts and configure runs, see configure's option --config-cache.
12243# It is not useful on other systems. If it contains results you don't
12244# want to keep, you may remove or edit it.
5d031c16 12245#
b7026657
AC
12246# config.status only pays attention to the cache file if you give it
12247# the --recheck option to rerun configure.
5d031c16 12248#
b7026657
AC
12249# `ac_cv_env_foo' variables (set or unset) will be overridden when
12250# loading this file, other *unset* `ac_cv_foo' will be assigned the
12251# following values.
12252
12253_ACEOF
12254
5d031c16
AC
12255# The following way of writing the cache mishandles newlines in values,
12256# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 12257# So, we kill variables containing newlines.
5d031c16
AC
12258# Ultrix sh set writes to stderr and can't be redirected directly,
12259# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
12260(
12261 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12262 eval ac_val=\$$ac_var
12263 case $ac_val in #(
12264 *${as_nl}*)
12265 case $ac_var in #(
12266 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12267$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12268 esac
12269 case $ac_var in #(
12270 _ | IFS | as_nl) ;; #(
12271 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12272 *) { eval $ac_var=; unset $ac_var;} ;;
12273 esac ;;
12274 esac
12275 done
12276
b7026657 12277 (set) 2>&1 |
81ecdfbb
RW
12278 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12279 *${as_nl}ac_space=\ *)
12280 # `set' does not quote correctly, so add quotes: double-quote
12281 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
12282 sed -n \
12283 "s/'/'\\\\''/g;
12284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 12285 ;; #(
b7026657
AC
12286 *)
12287 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 12288 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 12289 ;;
81ecdfbb
RW
12290 esac |
12291 sort
12292) |
b7026657 12293 sed '
81ecdfbb 12294 /^ac_cv_env_/b end
b7026657 12295 t clear
81ecdfbb 12296 :clear
b7026657
AC
12297 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12298 t end
81ecdfbb
RW
12299 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12300 :end' >>confcache
12301if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12302 if test -w "$cache_file"; then
d0ac1c44 12303 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12305$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
12306 if test ! -f "$cache_file" || test -h "$cache_file"; then
12307 cat confcache >"$cache_file"
12308 else
12309 case $cache_file in #(
12310 */* | ?:*)
12311 mv -f confcache "$cache_file"$$ &&
12312 mv -f "$cache_file"$$ "$cache_file" ;; #(
12313 *)
12314 mv -f confcache "$cache_file" ;;
12315 esac
12316 fi
12317 fi
5d031c16 12318 else
81ecdfbb
RW
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12320$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5d031c16
AC
12321 fi
12322fi
12323rm -f confcache
12324
5d031c16
AC
12325test "x$prefix" = xNONE && prefix=$ac_default_prefix
12326# Let make expand exec_prefix.
12327test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12328
5d031c16
AC
12329DEFS=-DHAVE_CONFIG_H
12330
b7026657
AC
12331ac_libobjs=
12332ac_ltlibobjs=
d0ac1c44 12333U=
b7026657
AC
12334for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12335 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
12336 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12337 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12338 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12339 # will be set to the directory where LIBOBJS objects are built.
12340 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12341 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
12342done
12343LIBOBJS=$ac_libobjs
5d031c16 12344
b7026657
AC
12345LTLIBOBJS=$ac_ltlibobjs
12346
12347
0cb8d851 12348
db2e4d67 12349if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
d0ac1c44 12350 as_fn_error $? "conditional \"GMAKE\" was never defined.
db2e4d67
MF
12351Usually this means the macro was only invoked conditionally." "$LINENO" 5
12352fi
6bb11ab3 12353if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
d0ac1c44 12354 as_fn_error $? "conditional \"PLUGINS\" was never defined.
6bb11ab3
L
12355Usually this means the macro was only invoked conditionally." "$LINENO" 5
12356fi
31e6ad7d 12357if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 12358 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31e6ad7d
MF
12359Usually this means the macro was only invoked conditionally." "$LINENO" 5
12360fi
b7026657 12361
d0ac1c44 12362: "${CONFIG_STATUS=./config.status}"
81ecdfbb 12363ac_write_fail=0
b7026657
AC
12364ac_clean_files_save=$ac_clean_files
12365ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
12366{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12367$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12368as_write_fail=0
12369cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
12370#! $SHELL
12371# Generated by $as_me.
5d031c16 12372# Run this file to recreate the current configuration.
5d031c16 12373# Compiler output produced by configure, useful for debugging
b7026657 12374# configure, is in config.log if it exists.
5d031c16 12375
b7026657
AC
12376debug=false
12377ac_cs_recheck=false
12378ac_cs_silent=false
b7026657 12379
81ecdfbb
RW
12380SHELL=\${CONFIG_SHELL-$SHELL}
12381export SHELL
12382_ASEOF
12383cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12384## -------------------- ##
12385## M4sh Initialization. ##
12386## -------------------- ##
12387
12388# Be more Bourne compatible
12389DUALCASE=1; export DUALCASE # for MKS sh
12390if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
12391 emulate sh
12392 NULLCMD=:
81ecdfbb 12393 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
12394 # is contrary to our usage. Disable this feature.
12395 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
12396 setopt NO_GLOB_SUBST
12397else
12398 case `(set -o) 2>/dev/null` in #(
12399 *posix*) :
12400 set -o posix ;; #(
12401 *) :
12402 ;;
12403esac
b7026657 12404fi
b7026657 12405
81ecdfbb
RW
12406
12407as_nl='
12408'
12409export as_nl
12410# Printing a long string crashes Solaris 7 /usr/bin/printf.
12411as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12412as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12413as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12414# Prefer a ksh shell builtin over an external printf program on Solaris,
12415# but without wasting forks for bash or zsh.
12416if test -z "$BASH_VERSION$ZSH_VERSION" \
12417 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12418 as_echo='print -r --'
12419 as_echo_n='print -rn --'
12420elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12421 as_echo='printf %s\n'
12422 as_echo_n='printf %s'
12423else
12424 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12425 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12426 as_echo_n='/usr/ucb/echo -n'
12427 else
12428 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12429 as_echo_n_body='eval
12430 arg=$1;
12431 case $arg in #(
12432 *"$as_nl"*)
12433 expr "X$arg" : "X\\(.*\\)$as_nl";
12434 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12435 esac;
12436 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12437 '
12438 export as_echo_n_body
12439 as_echo_n='sh -c $as_echo_n_body as_echo'
12440 fi
12441 export as_echo_body
12442 as_echo='sh -c $as_echo_body as_echo'
12443fi
12444
12445# The user is always right.
12446if test "${PATH_SEPARATOR+set}" != set; then
12447 PATH_SEPARATOR=:
12448 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12449 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12450 PATH_SEPARATOR=';'
12451 }
b7026657
AC
12452fi
12453
12454
81ecdfbb
RW
12455# IFS
12456# We need space, tab and new line, in precisely that order. Quoting is
12457# there to prevent editors from complaining about space-tab.
12458# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12459# splitting by setting IFS to empty value.)
12460IFS=" "" $as_nl"
12461
12462# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 12463as_myself=
81ecdfbb
RW
12464case $0 in #((
12465 *[\\/]* ) as_myself=$0 ;;
12466 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467for as_dir in $PATH
12468do
12469 IFS=$as_save_IFS
12470 test -z "$as_dir" && as_dir=.
12471 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12472 done
12473IFS=$as_save_IFS
12474
12475 ;;
12476esac
12477# We did not find ourselves, most probably we were run as `sh COMMAND'
12478# in which case we are not to be found in the path.
12479if test "x$as_myself" = x; then
12480 as_myself=$0
12481fi
12482if test ! -f "$as_myself"; then
12483 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12484 exit 1
12485fi
12486
12487# Unset variables that we do not need and which cause bugs (e.g. in
12488# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12489# suppresses any "Segmentation fault" message there. '((' could
12490# trigger a bug in pdksh 5.2.14.
12491for as_var in BASH_ENV ENV MAIL MAILPATH
12492do eval test x\${$as_var+set} = xset \
12493 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12494done
b7026657
AC
12495PS1='$ '
12496PS2='> '
12497PS4='+ '
12498
12499# NLS nuisances.
81ecdfbb
RW
12500LC_ALL=C
12501export LC_ALL
12502LANGUAGE=C
12503export LANGUAGE
12504
12505# CDPATH.
12506(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12507
12508
d0ac1c44
SM
12509# as_fn_error STATUS ERROR [LINENO LOG_FD]
12510# ----------------------------------------
81ecdfbb
RW
12511# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12512# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 12513# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
12514as_fn_error ()
12515{
d0ac1c44
SM
12516 as_status=$1; test $as_status -eq 0 && as_status=1
12517 if test "$4"; then
12518 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12519 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 12520 fi
d0ac1c44 12521 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
12522 as_fn_exit $as_status
12523} # as_fn_error
12524
12525
12526# as_fn_set_status STATUS
12527# -----------------------
12528# Set $? to STATUS, without forking.
12529as_fn_set_status ()
12530{
12531 return $1
12532} # as_fn_set_status
12533
12534# as_fn_exit STATUS
12535# -----------------
12536# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12537as_fn_exit ()
12538{
12539 set +e
12540 as_fn_set_status $1
12541 exit $1
12542} # as_fn_exit
12543
12544# as_fn_unset VAR
12545# ---------------
12546# Portably unset VAR.
12547as_fn_unset ()
12548{
12549 { eval $1=; unset $1;}
12550}
12551as_unset=as_fn_unset
12552# as_fn_append VAR VALUE
12553# ----------------------
12554# Append the text in VALUE to the end of the definition contained in VAR. Take
12555# advantage of any shell optimizations that allow amortized linear growth over
12556# repeated appends, instead of the typical quadratic growth present in naive
12557# implementations.
12558if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12559 eval 'as_fn_append ()
12560 {
12561 eval $1+=\$2
12562 }'
12563else
12564 as_fn_append ()
12565 {
12566 eval $1=\$$1\$2
12567 }
12568fi # as_fn_append
12569
12570# as_fn_arith ARG...
12571# ------------------
12572# Perform arithmetic evaluation on the ARGs, and store the result in the
12573# global $as_val. Take advantage of shells that can avoid forks. The arguments
12574# must be portable across $(()) and expr.
12575if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12576 eval 'as_fn_arith ()
12577 {
12578 as_val=$(( $* ))
12579 }'
12580else
12581 as_fn_arith ()
12582 {
12583 as_val=`expr "$@" || test $? -eq 1`
12584 }
12585fi # as_fn_arith
12586
5d031c16 12587
81ecdfbb
RW
12588if expr a : '\(a\)' >/dev/null 2>&1 &&
12589 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
12590 as_expr=expr
12591else
12592 as_expr=false
12593fi
12594
81ecdfbb 12595if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
12596 as_basename=basename
12597else
12598 as_basename=false
12599fi
5d031c16 12600
81ecdfbb
RW
12601if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12602 as_dirname=dirname
12603else
12604 as_dirname=false
12605fi
5d031c16 12606
81ecdfbb 12607as_me=`$as_basename -- "$0" ||
b7026657
AC
12608$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12609 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
12610 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12611$as_echo X/"$0" |
12612 sed '/^.*\/\([^/][^/]*\)\/*$/{
12613 s//\1/
12614 q
12615 }
12616 /^X\/\(\/\/\)$/{
12617 s//\1/
12618 q
12619 }
12620 /^X\/\(\/\).*/{
12621 s//\1/
12622 q
12623 }
12624 s/.*/./; q'`
5d031c16 12625
b7026657
AC
12626# Avoid depending upon Character Ranges.
12627as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12628as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12629as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12630as_cr_digits='0123456789'
12631as_cr_alnum=$as_cr_Letters$as_cr_digits
12632
81ecdfbb
RW
12633ECHO_C= ECHO_N= ECHO_T=
12634case `echo -n x` in #(((((
12635-n*)
12636 case `echo 'xy\c'` in
12637 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12638 xy) ECHO_C='\c';;
12639 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12640 ECHO_T=' ';;
12641 esac;;
12642*)
12643 ECHO_N='-n';;
b7026657
AC
12644esac
12645
81ecdfbb
RW
12646rm -f conf$$ conf$$.exe conf$$.file
12647if test -d conf$$.dir; then
12648 rm -f conf$$.dir/conf$$.file
b7026657 12649else
81ecdfbb
RW
12650 rm -f conf$$.dir
12651 mkdir conf$$.dir 2>/dev/null
b7026657 12652fi
81ecdfbb
RW
12653if (echo >conf$$.file) 2>/dev/null; then
12654 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 12655 as_ln_s='ln -s'
81ecdfbb
RW
12656 # ... but there are two gotchas:
12657 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12658 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 12659 # In both cases, we have to default to `cp -pR'.
81ecdfbb 12660 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 12661 as_ln_s='cp -pR'
81ecdfbb
RW
12662 elif ln conf$$.file conf$$ 2>/dev/null; then
12663 as_ln_s=ln
12664 else
d0ac1c44 12665 as_ln_s='cp -pR'
5d031c16 12666 fi
b7026657 12667else
d0ac1c44 12668 as_ln_s='cp -pR'
b7026657 12669fi
81ecdfbb
RW
12670rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12671rmdir conf$$.dir 2>/dev/null
b7026657 12672
81ecdfbb
RW
12673
12674# as_fn_mkdir_p
12675# -------------
12676# Create "$as_dir" as a directory, including parents if necessary.
12677as_fn_mkdir_p ()
12678{
12679
12680 case $as_dir in #(
12681 -*) as_dir=./$as_dir;;
12682 esac
12683 test -d "$as_dir" || eval $as_mkdir_p || {
12684 as_dirs=
12685 while :; do
12686 case $as_dir in #(
12687 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12688 *) as_qdir=$as_dir;;
12689 esac
12690 as_dirs="'$as_qdir' $as_dirs"
12691 as_dir=`$as_dirname -- "$as_dir" ||
12692$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12693 X"$as_dir" : 'X\(//\)[^/]' \| \
12694 X"$as_dir" : 'X\(//\)$' \| \
12695 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12696$as_echo X"$as_dir" |
12697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12698 s//\1/
12699 q
12700 }
12701 /^X\(\/\/\)[^/].*/{
12702 s//\1/
12703 q
12704 }
12705 /^X\(\/\/\)$/{
12706 s//\1/
12707 q
12708 }
12709 /^X\(\/\).*/{
12710 s//\1/
12711 q
12712 }
12713 s/.*/./; q'`
12714 test -d "$as_dir" && break
12715 done
12716 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 12717 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
12718
12719
12720} # as_fn_mkdir_p
b7026657 12721if mkdir -p . 2>/dev/null; then
81ecdfbb 12722 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
12723else
12724 test -d ./-p && rmdir ./-p
12725 as_mkdir_p=false
12726fi
12727
d0ac1c44
SM
12728
12729# as_fn_executable_p FILE
12730# -----------------------
12731# Test if FILE is an executable regular file.
12732as_fn_executable_p ()
12733{
12734 test -f "$1" && test -x "$1"
12735} # as_fn_executable_p
12736as_test_x='test -x'
12737as_executable_p=as_fn_executable_p
b7026657
AC
12738
12739# Sed expression to map a string onto a valid CPP name.
12740as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12741
12742# Sed expression to map a string onto a valid variable name.
12743as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12744
12745
b7026657 12746exec 6>&1
81ecdfbb
RW
12747## ----------------------------------- ##
12748## Main body of $CONFIG_STATUS script. ##
12749## ----------------------------------- ##
12750_ASEOF
12751test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12752
12753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12754# Save the log message, to keep $0 and so on meaningful, and to
b7026657 12755# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
12756# values after options handling.
12757ac_log="
b7026657 12758This file was extended by $as_me, which was
d0ac1c44 12759generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
12760
12761 CONFIG_FILES = $CONFIG_FILES
12762 CONFIG_HEADERS = $CONFIG_HEADERS
12763 CONFIG_LINKS = $CONFIG_LINKS
12764 CONFIG_COMMANDS = $CONFIG_COMMANDS
12765 $ $0 $@
12766
81ecdfbb
RW
12767on `(hostname || uname -n) 2>/dev/null | sed 1q`
12768"
12769
b7026657
AC
12770_ACEOF
12771
81ecdfbb
RW
12772case $ac_config_files in *"
12773"*) set x $ac_config_files; shift; ac_config_files=$*;;
12774esac
b7026657 12775
81ecdfbb
RW
12776case $ac_config_headers in *"
12777"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12778esac
b7026657 12779
b7026657 12780
81ecdfbb
RW
12781cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12782# Files that config.status was made for.
12783config_files="$ac_config_files"
12784config_headers="$ac_config_headers"
81ecdfbb 12785config_commands="$ac_config_commands"
b7026657 12786
81ecdfbb 12787_ACEOF
b7026657 12788
81ecdfbb 12789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 12790ac_cs_usage="\
81ecdfbb
RW
12791\`$as_me' instantiates files and other configuration actions
12792from templates according to the current configuration. Unless the files
12793and actions are specified as TAGs, all are instantiated by default.
b7026657 12794
81ecdfbb 12795Usage: $0 [OPTION]... [TAG]...
b7026657
AC
12796
12797 -h, --help print this help, then exit
81ecdfbb 12798 -V, --version print version number and configuration settings, then exit
d0ac1c44 12799 --config print configuration, then exit
81ecdfbb
RW
12800 -q, --quiet, --silent
12801 do not print progress messages
b7026657
AC
12802 -d, --debug don't remove temporary files
12803 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
12804 --file=FILE[:TEMPLATE]
12805 instantiate the configuration file FILE
12806 --header=FILE[:TEMPLATE]
12807 instantiate the configuration header FILE
b7026657
AC
12808
12809Configuration files:
12810$config_files
12811
12812Configuration headers:
12813$config_headers
12814
b7026657
AC
12815Configuration commands:
12816$config_commands
12817
81ecdfbb 12818Report bugs to the package provider."
b7026657 12819
81ecdfbb
RW
12820_ACEOF
12821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 12822ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657
AC
12823ac_cs_version="\\
12824config.status
d0ac1c44
SM
12825configured by $0, generated by GNU Autoconf 2.69,
12826 with options \\"\$ac_cs_config\\"
b7026657 12827
d0ac1c44 12828Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
12829This config.status script is free software; the Free Software Foundation
12830gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
12831
12832ac_pwd='$ac_pwd'
12833srcdir='$srcdir'
12834INSTALL='$INSTALL'
6bb11ab3 12835AWK='$AWK'
81ecdfbb 12836test -n "\$AWK" || AWK=awk
b7026657
AC
12837_ACEOF
12838
81ecdfbb
RW
12839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12840# The default lists apply if the user does not specify any file.
b7026657
AC
12841ac_need_defaults=:
12842while test $# != 0
12843do
12844 case $1 in
d0ac1c44 12845 --*=?*)
81ecdfbb
RW
12846 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12847 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657
AC
12848 ac_shift=:
12849 ;;
d0ac1c44
SM
12850 --*=)
12851 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12852 ac_optarg=
12853 ac_shift=:
12854 ;;
81ecdfbb 12855 *)
b7026657
AC
12856 ac_option=$1
12857 ac_optarg=$2
12858 ac_shift=shift
12859 ;;
b7026657
AC
12860 esac
12861
12862 case $ac_option in
12863 # Handling of the options.
b7026657
AC
12864 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12865 ac_cs_recheck=: ;;
81ecdfbb
RW
12866 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12867 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
12868 --config | --confi | --conf | --con | --co | --c )
12869 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 12870 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
12871 debug=: ;;
12872 --file | --fil | --fi | --f )
12873 $ac_shift
81ecdfbb
RW
12874 case $ac_optarg in
12875 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 12876 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
12877 esac
12878 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657
AC
12879 ac_need_defaults=false;;
12880 --header | --heade | --head | --hea )
12881 $ac_shift
81ecdfbb
RW
12882 case $ac_optarg in
12883 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12884 esac
12885 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b7026657 12886 ac_need_defaults=false;;
81ecdfbb
RW
12887 --he | --h)
12888 # Conflict between --help and --header
d0ac1c44 12889 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
12890Try \`$0 --help' for more information.";;
12891 --help | --hel | -h )
12892 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
12893 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12894 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12895 ac_cs_silent=: ;;
12896
12897 # This is an error.
d0ac1c44 12898 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 12899Try \`$0 --help' for more information." ;;
b7026657 12900
81ecdfbb
RW
12901 *) as_fn_append ac_config_targets " $1"
12902 ac_need_defaults=false ;;
b7026657
AC
12903
12904 esac
12905 shift
5d031c16 12906done
b7026657
AC
12907
12908ac_configure_extra_args=
12909
12910if $ac_cs_silent; then
12911 exec 6>/dev/null
12912 ac_configure_extra_args="$ac_configure_extra_args --silent"
12913fi
12914
12915_ACEOF
81ecdfbb 12916cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 12917if \$ac_cs_recheck; then
d0ac1c44 12918 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
12919 shift
12920 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12921 CONFIG_SHELL='$SHELL'
12922 export CONFIG_SHELL
12923 exec "\$@"
5d031c16 12924fi
5d031c16 12925
b7026657 12926_ACEOF
81ecdfbb
RW
12927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12928exec 5>>config.log
12929{
12930 echo
12931 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12932## Running $as_me. ##
12933_ASBOX
12934 $as_echo "$ac_log"
12935} >&5
5d031c16 12936
81ecdfbb
RW
12937_ACEOF
12938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
db2e4d67
MF
12939#
12940# INIT-COMMANDS
12941#
12942ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
12943
6bb11ab3
L
12944
12945# The HP-UX ksh and POSIX shell print the target directory to stdout
12946# if CDPATH is set.
12947(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12948
12949sed_quote_subst='$sed_quote_subst'
12950double_quote_subst='$double_quote_subst'
12951delay_variable_subst='$delay_variable_subst'
12952macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12953macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12954enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12955enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12956pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12957enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12958SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12959ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12960host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12961host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12962host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12963build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12964build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12965build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12966SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12967Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12968GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12969EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12970FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12971LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12972NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12973LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12974max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12975ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12976exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12977lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12978lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12979lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12980reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12981reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12982OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12983deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12984file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12985AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12986AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12987STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12988RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12989old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12990old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12991old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12992lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12993CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12994CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12995compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12996GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12997lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12998lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12999lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13000lt_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"`'
13001objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13002MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13003lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13004lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13005lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13006lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13007lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13008need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13009DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13010NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13011LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13012OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13013OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13014libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13015shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13016extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13017archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13018enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13019export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13020whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13021compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13022old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13023old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13024archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13025archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13026module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13027module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13028with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13029allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13030no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13031hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13032hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13033hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13034hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13035hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13036hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13037hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13038hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13039inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13040link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13041fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13042always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13043export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13044exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13045include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13046prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13047file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13048variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13049need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13050need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13051version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13052runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13053shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13054shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13055libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13056library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13057soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13058install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13059postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13060postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13061finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13062finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13063hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13064sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13065sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13066hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13067enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13068enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13069enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13070old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13071striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13072
13073LTCC='$LTCC'
13074LTCFLAGS='$LTCFLAGS'
13075compiler='$compiler_DEFAULT'
13076
13077# A function that is used when there is no print builtin or printf.
13078func_fallback_echo ()
13079{
13080 eval 'cat <<_LTECHO_EOF
13081\$1
13082_LTECHO_EOF'
13083}
13084
13085# Quote evaled strings.
13086for var in SHELL \
13087ECHO \
13088SED \
13089GREP \
13090EGREP \
13091FGREP \
13092LD \
13093NM \
13094LN_S \
13095lt_SP2NL \
13096lt_NL2SP \
13097reload_flag \
13098OBJDUMP \
13099deplibs_check_method \
13100file_magic_cmd \
13101AR \
13102AR_FLAGS \
13103STRIP \
13104RANLIB \
13105CC \
13106CFLAGS \
13107compiler \
13108lt_cv_sys_global_symbol_pipe \
13109lt_cv_sys_global_symbol_to_cdecl \
13110lt_cv_sys_global_symbol_to_c_name_address \
13111lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13112lt_prog_compiler_no_builtin_flag \
13113lt_prog_compiler_wl \
13114lt_prog_compiler_pic \
13115lt_prog_compiler_static \
13116lt_cv_prog_compiler_c_o \
13117need_locks \
13118DSYMUTIL \
13119NMEDIT \
13120LIPO \
13121OTOOL \
13122OTOOL64 \
13123shrext_cmds \
13124export_dynamic_flag_spec \
13125whole_archive_flag_spec \
13126compiler_needs_object \
13127with_gnu_ld \
13128allow_undefined_flag \
13129no_undefined_flag \
13130hardcode_libdir_flag_spec \
13131hardcode_libdir_flag_spec_ld \
13132hardcode_libdir_separator \
13133fix_srcfile_path \
13134exclude_expsyms \
13135include_expsyms \
13136file_list_spec \
13137variables_saved_for_relink \
13138libname_spec \
13139library_names_spec \
13140soname_spec \
13141install_override_mode \
13142finish_eval \
13143old_striplib \
13144striplib; do
13145 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13146 *[\\\\\\\`\\"\\\$]*)
13147 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13148 ;;
13149 *)
13150 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13151 ;;
13152 esac
13153done
13154
13155# Double-quote double-evaled strings.
13156for var in reload_cmds \
13157old_postinstall_cmds \
13158old_postuninstall_cmds \
13159old_archive_cmds \
13160extract_expsyms_cmds \
13161old_archive_from_new_cmds \
13162old_archive_from_expsyms_cmds \
13163archive_cmds \
13164archive_expsym_cmds \
13165module_cmds \
13166module_expsym_cmds \
13167export_symbols_cmds \
13168prelink_cmds \
13169postinstall_cmds \
13170postuninstall_cmds \
13171finish_cmds \
13172sys_lib_search_path_spec \
13173sys_lib_dlsearch_path_spec; do
13174 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13175 *[\\\\\\\`\\"\\\$]*)
13176 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13177 ;;
13178 *)
13179 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13180 ;;
13181 esac
13182done
13183
13184ac_aux_dir='$ac_aux_dir'
13185xsi_shell='$xsi_shell'
13186lt_shell_append='$lt_shell_append'
13187
13188# See if we are running on zsh, and set the options which allow our
13189# commands through without removal of \ escapes INIT.
13190if test -n "\${ZSH_VERSION+set}" ; then
13191 setopt NO_GLOB_SUBST
13192fi
13193
13194
13195 PACKAGE='$PACKAGE'
13196 VERSION='$VERSION'
13197 TIMESTAMP='$TIMESTAMP'
13198 RM='$RM'
13199 ofile='$ofile'
13200
13201
13202
13203
81ecdfbb 13204_ACEOF
b7026657 13205
81ecdfbb 13206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 13207
81ecdfbb 13208# Handling of arguments.
b7026657
AC
13209for ac_config_target in $ac_config_targets
13210do
81ecdfbb
RW
13211 case $ac_config_target in
13212 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
db2e4d67 13213 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
6bb11ab3 13214 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
81ecdfbb
RW
13215 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
13216 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
13217 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
13218 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
13219 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
13220
d0ac1c44 13221 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5d031c16 13222 esac
b7026657 13223done
5d031c16 13224
81ecdfbb 13225
b7026657
AC
13226# If the user did not use the arguments to specify the items to instantiate,
13227# then the envvar interface is used. Set only those that are not.
13228# We use the long form for the default assignment because of an extremely
13229# bizarre bug on SunOS 4.1.3.
13230if $ac_need_defaults; then
13231 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13232 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
b7026657
AC
13233 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13234fi
13235
13236# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 13237# simply because there is no reason against having it here, and in addition,
b7026657 13238# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
13239# Hook for its removal unless debugging.
13240# Note that there is a small window in which the directory will not be cleaned:
13241# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
13242$debug ||
13243{
d0ac1c44 13244 tmp= ac_tmp=
81ecdfbb 13245 trap 'exit_status=$?
d0ac1c44
SM
13246 : "${ac_tmp:=$tmp}"
13247 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
13248' 0
13249 trap 'as_fn_exit 1' 1 2 13 15
b7026657 13250}
b7026657
AC
13251# Create a (secure) tmp directory for tmp files.
13252
13253{
81ecdfbb 13254 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 13255 test -d "$tmp"
b7026657
AC
13256} ||
13257{
81ecdfbb
RW
13258 tmp=./conf$$-$RANDOM
13259 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
13260} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13261ac_tmp=$tmp
b7026657 13262
81ecdfbb
RW
13263# Set up the scripts for CONFIG_FILES section.
13264# No need to generate them if there are no CONFIG_FILES.
13265# This happens for instance with `./config.status config.h'.
13266if test -n "$CONFIG_FILES"; then
b7026657 13267
b7026657 13268
81ecdfbb
RW
13269ac_cr=`echo X | tr X '\015'`
13270# On cygwin, bash can eat \r inside `` if the user requested igncr.
13271# But we know of no other shell where ac_cr would be empty at this
13272# point, so we can use a bashism as a fallback.
13273if test "x$ac_cr" = x; then
13274 eval ac_cr=\$\'\\r\'
13275fi
13276ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13277if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 13278 ac_cs_awk_cr='\\r'
81ecdfbb
RW
13279else
13280 ac_cs_awk_cr=$ac_cr
13281fi
b7026657 13282
d0ac1c44 13283echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
b7026657
AC
13284_ACEOF
13285
5d031c16 13286
81ecdfbb
RW
13287{
13288 echo "cat >conf$$subs.awk <<_ACEOF" &&
13289 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13290 echo "_ACEOF"
13291} >conf$$subs.sh ||
d0ac1c44
SM
13292 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13293ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
13294ac_delim='%!_!# '
13295for ac_last_try in false false false false false :; do
13296 . ./conf$$subs.sh ||
d0ac1c44 13297 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
13298
13299 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13300 if test $ac_delim_n = $ac_delim_num; then
13301 break
13302 elif $ac_last_try; then
d0ac1c44 13303 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
b7026657 13304 else
81ecdfbb
RW
13305 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13306 fi
13307done
13308rm -f conf$$subs.sh
13309
13310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 13311cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
13312_ACEOF
13313sed -n '
13314h
13315s/^/S["/; s/!.*/"]=/
13316p
13317g
13318s/^[^!]*!//
13319:repl
13320t repl
13321s/'"$ac_delim"'$//
13322t delim
13323:nl
13324h
d0ac1c44 13325s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
13326t more1
13327s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13328p
13329n
13330b repl
13331:more1
13332s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13333p
13334g
13335s/.\{148\}//
13336t nl
13337:delim
13338h
d0ac1c44 13339s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
13340t more2
13341s/["\\]/\\&/g; s/^/"/; s/$/"/
13342p
13343b
13344:more2
13345s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13346p
13347g
13348s/.\{148\}//
13349t delim
13350' <conf$$subs.awk | sed '
13351/^[^""]/{
13352 N
13353 s/\n//
13354}
13355' >>$CONFIG_STATUS || ac_write_fail=1
13356rm -f conf$$subs.awk
13357cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13358_ACAWK
d0ac1c44 13359cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
13360 for (key in S) S_is_set[key] = 1
13361 FS = "\a"
5d031c16 13362
81ecdfbb
RW
13363}
13364{
13365 line = $ 0
13366 nfields = split(line, field, "@")
13367 substed = 0
13368 len = length(field[1])
13369 for (i = 2; i < nfields; i++) {
13370 key = field[i]
13371 keylen = length(key)
13372 if (S_is_set[key]) {
13373 value = S[key]
13374 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13375 len += length(value) + length(field[++i])
13376 substed = 1
13377 } else
13378 len += 1 + keylen
13379 }
13380
13381 print line
13382}
b7026657 13383
81ecdfbb
RW
13384_ACAWK
13385_ACEOF
13386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13387if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13388 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
b7026657 13389else
81ecdfbb 13390 cat
d0ac1c44
SM
13391fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13392 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb 13393_ACEOF
b7026657 13394
d0ac1c44
SM
13395# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13396# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
13397# trailing colons and then remove the whole line if VPATH becomes empty
13398# (actually we leave an empty line to preserve line numbers).
13399if test "x$srcdir" = x.; then
d0ac1c44
SM
13400 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13401h
13402s///
13403s/^/:/
13404s/[ ]*$/:/
13405s/:\$(srcdir):/:/g
13406s/:\${srcdir}:/:/g
13407s/:@srcdir@:/:/g
13408s/^:*//
81ecdfbb 13409s/:*$//
d0ac1c44
SM
13410x
13411s/\(=[ ]*\).*/\1/
13412G
13413s/\n//
81ecdfbb
RW
13414s/^[^=]*=[ ]*$//
13415}'
13416fi
b7026657 13417
81ecdfbb
RW
13418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13419fi # test -n "$CONFIG_FILES"
b7026657 13420
81ecdfbb
RW
13421# Set up the scripts for CONFIG_HEADERS section.
13422# No need to generate them if there are no CONFIG_HEADERS.
13423# This happens for instance with `./config.status Makefile'.
13424if test -n "$CONFIG_HEADERS"; then
d0ac1c44 13425cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb
RW
13426BEGIN {
13427_ACEOF
b7026657 13428
81ecdfbb
RW
13429# Transform confdefs.h into an awk script `defines.awk', embedded as
13430# here-document in config.status, that substitutes the proper values into
13431# config.h.in to produce config.h.
5d031c16 13432
81ecdfbb
RW
13433# Create a delimiter string that does not exist in confdefs.h, to ease
13434# handling of long lines.
13435ac_delim='%!_!# '
13436for ac_last_try in false false :; do
d0ac1c44
SM
13437 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13438 if test -z "$ac_tt"; then
81ecdfbb
RW
13439 break
13440 elif $ac_last_try; then
d0ac1c44 13441 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
b7026657 13442 else
81ecdfbb 13443 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
b7026657 13444 fi
b7026657 13445done
81ecdfbb
RW
13446
13447# For the awk script, D is an array of macro values keyed by name,
13448# likewise P contains macro parameters if any. Preserve backslash
13449# newline sequences.
13450
13451ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13452sed -n '
13453s/.\{148\}/&'"$ac_delim"'/g
13454t rset
13455:rset
13456s/^[ ]*#[ ]*define[ ][ ]*/ /
13457t def
13458d
13459:def
13460s/\\$//
13461t bsnl
13462s/["\\]/\\&/g
13463s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13464D["\1"]=" \3"/p
13465s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13466d
13467:bsnl
13468s/["\\]/\\&/g
13469s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13470D["\1"]=" \3\\\\\\n"\\/p
13471t cont
13472s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13473t cont
13474d
13475:cont
13476n
13477s/.\{148\}/&'"$ac_delim"'/g
13478t clear
13479:clear
13480s/\\$//
13481t bsnlc
13482s/["\\]/\\&/g; s/^/"/; s/$/"/p
13483d
13484:bsnlc
13485s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13486b cont
13487' <confdefs.h | sed '
13488s/'"$ac_delim"'/"\\\
13489"/g' >>$CONFIG_STATUS || ac_write_fail=1
13490
13491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13492 for (key in D) D_is_set[key] = 1
13493 FS = "\a"
13494}
13495/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13496 line = \$ 0
13497 split(line, arg, " ")
13498 if (arg[1] == "#") {
13499 defundef = arg[2]
13500 mac1 = arg[3]
13501 } else {
13502 defundef = substr(arg[1], 2)
13503 mac1 = arg[2]
13504 }
13505 split(mac1, mac2, "(") #)
13506 macro = mac2[1]
13507 prefix = substr(line, 1, index(line, defundef) - 1)
13508 if (D_is_set[macro]) {
13509 # Preserve the white space surrounding the "#".
13510 print prefix "define", macro P[macro] D[macro]
13511 next
13512 } else {
13513 # Replace #undef with comments. This is necessary, for example,
13514 # in the case of _POSIX_SOURCE, which is predefined and required
13515 # on some systems where configure will not decide to define it.
13516 if (defundef == "undef") {
13517 print "/*", prefix defundef, macro, "*/"
13518 next
13519 }
13520 }
13521}
13522{ print }
13523_ACAWK
b7026657 13524_ACEOF
81ecdfbb 13525cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 13526 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb 13527fi # test -n "$CONFIG_HEADERS"
b7026657 13528
5d031c16 13529
99d8e879 13530eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
81ecdfbb
RW
13531shift
13532for ac_tag
13533do
13534 case $ac_tag in
13535 :[FHLC]) ac_mode=$ac_tag; continue;;
5d031c16 13536 esac
81ecdfbb
RW
13537 case $ac_mode$ac_tag in
13538 :[FHL]*:*);;
d0ac1c44 13539 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
13540 :[FH]-) ac_tag=-:-;;
13541 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13542 esac
13543 ac_save_IFS=$IFS
13544 IFS=:
13545 set x $ac_tag
13546 IFS=$ac_save_IFS
13547 shift
13548 ac_file=$1
13549 shift
5d031c16 13550
81ecdfbb
RW
13551 case $ac_mode in
13552 :L) ac_source=$1;;
13553 :[FH])
13554 ac_file_inputs=
13555 for ac_f
13556 do
13557 case $ac_f in
d0ac1c44 13558 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
13559 *) # Look for the file first in the build tree, then in the source tree
13560 # (if the path is not absolute). The absolute path cannot be DOS-style,
13561 # because $ac_f cannot contain `:'.
13562 test -f "$ac_f" ||
13563 case $ac_f in
13564 [\\/$]*) false;;
13565 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13566 esac ||
d0ac1c44 13567 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
b7026657 13568 esac
81ecdfbb
RW
13569 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13570 as_fn_append ac_file_inputs " '$ac_f'"
13571 done
b7026657 13572
81ecdfbb
RW
13573 # Let's still pretend it is `configure' which instantiates (i.e., don't
13574 # use $as_me), people would be surprised to read:
13575 # /* config.h. Generated by config.status. */
13576 configure_input='Generated from '`
13577 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13578 `' by configure.'
13579 if test x"$ac_file" != x-; then
13580 configure_input="$ac_file. $configure_input"
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13582$as_echo "$as_me: creating $ac_file" >&6;}
13583 fi
13584 # Neutralize special characters interpreted by sed in replacement strings.
13585 case $configure_input in #(
13586 *\&* | *\|* | *\\* )
13587 ac_sed_conf_input=`$as_echo "$configure_input" |
13588 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13589 *) ac_sed_conf_input=$configure_input;;
13590 esac
b7026657 13591
81ecdfbb 13592 case $ac_tag in
d0ac1c44
SM
13593 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13594 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
13595 esac
13596 ;;
13597 esac
b7026657 13598
81ecdfbb 13599 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
13600$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13601 X"$ac_file" : 'X\(//\)[^/]' \| \
13602 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
13603 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13604$as_echo X"$ac_file" |
13605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13606 s//\1/
13607 q
13608 }
13609 /^X\(\/\/\)[^/].*/{
13610 s//\1/
13611 q
13612 }
13613 /^X\(\/\/\)$/{
13614 s//\1/
13615 q
13616 }
13617 /^X\(\/\).*/{
13618 s//\1/
13619 q
13620 }
13621 s/.*/./; q'`
13622 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
13623 ac_builddir=.
13624
81ecdfbb
RW
13625case "$ac_dir" in
13626.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13627*)
13628 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13629 # A ".." for each directory in $ac_dir_suffix.
13630 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13631 case $ac_top_builddir_sub in
13632 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13633 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13634 esac ;;
13635esac
13636ac_abs_top_builddir=$ac_pwd
13637ac_abs_builddir=$ac_pwd$ac_dir_suffix
13638# for backward compatibility:
13639ac_top_builddir=$ac_top_build_prefix
b7026657
AC
13640
13641case $srcdir in
81ecdfbb 13642 .) # We are building in place.
b7026657 13643 ac_srcdir=.
81ecdfbb
RW
13644 ac_top_srcdir=$ac_top_builddir_sub
13645 ac_abs_top_srcdir=$ac_pwd ;;
13646 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 13647 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
13648 ac_top_srcdir=$srcdir
13649 ac_abs_top_srcdir=$srcdir ;;
13650 *) # Relative name.
13651 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13652 ac_top_srcdir=$ac_top_build_prefix$srcdir
13653 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 13654esac
81ecdfbb 13655ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 13656
5d031c16 13657
81ecdfbb
RW
13658 case $ac_mode in
13659 :F)
13660 #
13661 # CONFIG_FILE
13662 #
b7026657 13663
81ecdfbb
RW
13664 case $INSTALL in
13665 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13666 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5d031c16 13667 esac
81ecdfbb 13668_ACEOF
5d031c16 13669
81ecdfbb
RW
13670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13671# If the template does not know about datarootdir, expand it.
13672# FIXME: This hack should be removed a few years after 2.60.
13673ac_datarootdir_hack=; ac_datarootdir_seen=
13674ac_sed_dataroot='
13675/datarootdir/ {
13676 p
13677 q
13678}
13679/@datadir@/p
13680/@docdir@/p
13681/@infodir@/p
13682/@localedir@/p
13683/@mandir@/p'
13684case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13685*datarootdir*) ac_datarootdir_seen=yes;;
13686*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13688$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13689_ACEOF
13690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13691 ac_datarootdir_hack='
13692 s&@datadir@&$datadir&g
13693 s&@docdir@&$docdir&g
13694 s&@infodir@&$infodir&g
13695 s&@localedir@&$localedir&g
13696 s&@mandir@&$mandir&g
13697 s&\\\${datarootdir}&$datarootdir&g' ;;
13698esac
b7026657 13699_ACEOF
b7026657 13700
81ecdfbb
RW
13701# Neutralize VPATH when `$srcdir' = `.'.
13702# Shell code in configure.ac might set extrasub.
13703# FIXME: do we really want to maintain this feature?
13704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13705ac_sed_extra="$ac_vpsub
13706$extrasub
13707_ACEOF
13708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13709:t
13710/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13711s|@configure_input@|$ac_sed_conf_input|;t t
13712s&@top_builddir@&$ac_top_builddir_sub&;t t
13713s&@top_build_prefix@&$ac_top_build_prefix&;t t
13714s&@srcdir@&$ac_srcdir&;t t
13715s&@abs_srcdir@&$ac_abs_srcdir&;t t
13716s&@top_srcdir@&$ac_top_srcdir&;t t
13717s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13718s&@builddir@&$ac_builddir&;t t
13719s&@abs_builddir@&$ac_abs_builddir&;t t
13720s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13721s&@INSTALL@&$ac_INSTALL&;t t
13722$ac_datarootdir_hack
13723"
d0ac1c44
SM
13724eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13725 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
13726
13727test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
13728 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13729 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13730 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 13731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 13732which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 13733$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 13734which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 13735
d0ac1c44 13736 rm -f "$ac_tmp/stdin"
81ecdfbb 13737 case $ac_file in
d0ac1c44
SM
13738 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13739 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 13740 esac \
d0ac1c44 13741 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
13742 ;;
13743 :H)
13744 #
13745 # CONFIG_HEADER
13746 #
13747 if test x"$ac_file" != x-; then
13748 {
13749 $as_echo "/* $configure_input */" \
d0ac1c44
SM
13750 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13751 } >"$ac_tmp/config.h" \
13752 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13753 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13755$as_echo "$as_me: $ac_file is unchanged" >&6;}
13756 else
13757 rm -f "$ac_file"
d0ac1c44
SM
13758 mv "$ac_tmp/config.h" "$ac_file" \
13759 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 13760 fi
b7026657 13761 else
81ecdfbb 13762 $as_echo "/* $configure_input */" \
d0ac1c44
SM
13763 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13764 || as_fn_error $? "could not create -" "$LINENO" 5
81ecdfbb
RW
13765 fi
13766 ;;
b7026657 13767
81ecdfbb
RW
13768 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13769$as_echo "$as_me: executing $ac_file commands" >&6;}
13770 ;;
13771 esac
b7026657
AC
13772
13773
81ecdfbb 13774 case $ac_file$ac_mode in
db2e4d67 13775 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
6bb11ab3
L
13776 "libtool":C)
13777
13778 # See if we are running on zsh, and set the options which allow our
13779 # commands through without removal of \ escapes.
13780 if test -n "${ZSH_VERSION+set}" ; then
13781 setopt NO_GLOB_SUBST
13782 fi
13783
13784 cfgfile="${ofile}T"
13785 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13786 $RM "$cfgfile"
13787
13788 cat <<_LT_EOF >> "$cfgfile"
13789#! $SHELL
13790
13791# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13792# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13793# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13794# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13795#
13796# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13797# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13798# Written by Gordon Matzigkeit, 1996
13799#
13800# This file is part of GNU Libtool.
13801#
13802# GNU Libtool is free software; you can redistribute it and/or
13803# modify it under the terms of the GNU General Public License as
13804# published by the Free Software Foundation; either version 2 of
13805# the License, or (at your option) any later version.
13806#
13807# As a special exception to the GNU General Public License,
13808# if you distribute this file as part of a program or library that
13809# is built using GNU Libtool, you may include this file under the
13810# same distribution terms that you use for the rest of that program.
13811#
13812# GNU Libtool is distributed in the hope that it will be useful,
13813# but WITHOUT ANY WARRANTY; without even the implied warranty of
13814# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13815# GNU General Public License for more details.
13816#
13817# You should have received a copy of the GNU General Public License
13818# along with GNU Libtool; see the file COPYING. If not, a copy
13819# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13820# obtained by writing to the Free Software Foundation, Inc.,
13821# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13822
13823
13824# The names of the tagged configurations supported by this script.
13825available_tags=""
13826
13827# ### BEGIN LIBTOOL CONFIG
13828
13829# Which release of libtool.m4 was used?
13830macro_version=$macro_version
13831macro_revision=$macro_revision
13832
13833# Whether or not to build shared libraries.
13834build_libtool_libs=$enable_shared
13835
13836# Whether or not to build static libraries.
13837build_old_libs=$enable_static
13838
13839# What type of objects to build.
13840pic_mode=$pic_mode
13841
13842# Whether or not to optimize for fast installation.
13843fast_install=$enable_fast_install
13844
13845# Shell to use when invoking shell scripts.
13846SHELL=$lt_SHELL
13847
13848# An echo program that protects backslashes.
13849ECHO=$lt_ECHO
13850
13851# The host system.
13852host_alias=$host_alias
13853host=$host
13854host_os=$host_os
13855
13856# The build system.
13857build_alias=$build_alias
13858build=$build
13859build_os=$build_os
13860
13861# A sed program that does not truncate output.
13862SED=$lt_SED
13863
13864# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13865Xsed="\$SED -e 1s/^X//"
13866
13867# A grep program that handles long lines.
13868GREP=$lt_GREP
13869
13870# An ERE matcher.
13871EGREP=$lt_EGREP
13872
13873# A literal string matcher.
13874FGREP=$lt_FGREP
13875
13876# A BSD- or MS-compatible name lister.
13877NM=$lt_NM
13878
13879# Whether we need soft or hard links.
13880LN_S=$lt_LN_S
13881
13882# What is the maximum length of a command?
13883max_cmd_len=$max_cmd_len
13884
13885# Object file suffix (normally "o").
13886objext=$ac_objext
13887
13888# Executable file suffix (normally "").
13889exeext=$exeext
13890
13891# whether the shell understands "unset".
13892lt_unset=$lt_unset
13893
13894# turn spaces into newlines.
13895SP2NL=$lt_lt_SP2NL
13896
13897# turn newlines into spaces.
13898NL2SP=$lt_lt_NL2SP
13899
13900# An object symbol dumper.
13901OBJDUMP=$lt_OBJDUMP
13902
13903# Method to check whether dependent libraries are shared objects.
13904deplibs_check_method=$lt_deplibs_check_method
13905
13906# Command to use when deplibs_check_method == "file_magic".
13907file_magic_cmd=$lt_file_magic_cmd
13908
13909# The archiver.
13910AR=$lt_AR
13911AR_FLAGS=$lt_AR_FLAGS
13912
13913# A symbol stripping program.
13914STRIP=$lt_STRIP
13915
13916# Commands used to install an old-style archive.
13917RANLIB=$lt_RANLIB
13918old_postinstall_cmds=$lt_old_postinstall_cmds
13919old_postuninstall_cmds=$lt_old_postuninstall_cmds
13920
13921# Whether to use a lock for old archive extraction.
13922lock_old_archive_extraction=$lock_old_archive_extraction
13923
13924# A C compiler.
13925LTCC=$lt_CC
13926
13927# LTCC compiler flags.
13928LTCFLAGS=$lt_CFLAGS
13929
13930# Take the output of nm and produce a listing of raw symbols and C names.
13931global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13932
13933# Transform the output of nm in a proper C declaration.
13934global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13935
13936# Transform the output of nm in a C name address pair.
13937global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13938
13939# Transform the output of nm in a C name address pair when lib prefix is needed.
13940global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13941
13942# The name of the directory that contains temporary libtool files.
13943objdir=$objdir
13944
13945# Used to examine libraries when file_magic_cmd begins with "file".
13946MAGIC_CMD=$MAGIC_CMD
13947
13948# Must we lock files when doing compilation?
13949need_locks=$lt_need_locks
13950
13951# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13952DSYMUTIL=$lt_DSYMUTIL
13953
13954# Tool to change global to local symbols on Mac OS X.
13955NMEDIT=$lt_NMEDIT
13956
13957# Tool to manipulate fat objects and archives on Mac OS X.
13958LIPO=$lt_LIPO
13959
13960# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13961OTOOL=$lt_OTOOL
13962
13963# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13964OTOOL64=$lt_OTOOL64
13965
13966# Old archive suffix (normally "a").
13967libext=$libext
13968
13969# Shared library suffix (normally ".so").
13970shrext_cmds=$lt_shrext_cmds
13971
13972# The commands to extract the exported symbol list from a shared archive.
13973extract_expsyms_cmds=$lt_extract_expsyms_cmds
13974
13975# Variables whose values should be saved in libtool wrapper scripts and
13976# restored at link time.
13977variables_saved_for_relink=$lt_variables_saved_for_relink
13978
13979# Do we need the "lib" prefix for modules?
13980need_lib_prefix=$need_lib_prefix
13981
13982# Do we need a version for libraries?
13983need_version=$need_version
13984
13985# Library versioning type.
13986version_type=$version_type
13987
13988# Shared library runtime path variable.
13989runpath_var=$runpath_var
13990
13991# Shared library path variable.
13992shlibpath_var=$shlibpath_var
13993
13994# Is shlibpath searched before the hard-coded library search path?
13995shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13996
13997# Format of library name prefix.
13998libname_spec=$lt_libname_spec
13999
14000# List of archive names. First name is the real one, the rest are links.
14001# The last name is the one that the linker finds with -lNAME
14002library_names_spec=$lt_library_names_spec
14003
14004# The coded name of the library, if different from the real name.
14005soname_spec=$lt_soname_spec
14006
14007# Permission mode override for installation of shared libraries.
14008install_override_mode=$lt_install_override_mode
14009
14010# Command to use after installation of a shared archive.
14011postinstall_cmds=$lt_postinstall_cmds
14012
14013# Command to use after uninstallation of a shared archive.
14014postuninstall_cmds=$lt_postuninstall_cmds
14015
14016# Commands used to finish a libtool library installation in a directory.
14017finish_cmds=$lt_finish_cmds
14018
14019# As "finish_cmds", except a single script fragment to be evaled but
14020# not shown.
14021finish_eval=$lt_finish_eval
14022
14023# Whether we should hardcode library paths into libraries.
14024hardcode_into_libs=$hardcode_into_libs
14025
14026# Compile-time system search path for libraries.
14027sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14028
14029# Run-time system search path for libraries.
14030sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14031
14032# Whether dlopen is supported.
14033dlopen_support=$enable_dlopen
14034
14035# Whether dlopen of programs is supported.
14036dlopen_self=$enable_dlopen_self
14037
14038# Whether dlopen of statically linked programs is supported.
14039dlopen_self_static=$enable_dlopen_self_static
14040
14041# Commands to strip libraries.
14042old_striplib=$lt_old_striplib
14043striplib=$lt_striplib
14044
14045
14046# The linker used to build libraries.
14047LD=$lt_LD
14048
14049# How to create reloadable object files.
14050reload_flag=$lt_reload_flag
14051reload_cmds=$lt_reload_cmds
14052
14053# Commands used to build an old-style archive.
14054old_archive_cmds=$lt_old_archive_cmds
14055
14056# A language specific compiler.
14057CC=$lt_compiler
14058
14059# Is the compiler the GNU compiler?
14060with_gcc=$GCC
14061
14062# Compiler flag to turn off builtin functions.
14063no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14064
14065# How to pass a linker flag through the compiler.
14066wl=$lt_lt_prog_compiler_wl
14067
14068# Additional compiler flags for building library objects.
14069pic_flag=$lt_lt_prog_compiler_pic
14070
14071# Compiler flag to prevent dynamic linking.
14072link_static_flag=$lt_lt_prog_compiler_static
14073
14074# Does compiler simultaneously support -c and -o options?
14075compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14076
14077# Whether or not to add -lc for building shared libraries.
14078build_libtool_need_lc=$archive_cmds_need_lc
14079
14080# Whether or not to disallow shared libs when runtime libs are static.
14081allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14082
14083# Compiler flag to allow reflexive dlopens.
14084export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14085
14086# Compiler flag to generate shared objects directly from archives.
14087whole_archive_flag_spec=$lt_whole_archive_flag_spec
14088
14089# Whether the compiler copes with passing no objects directly.
14090compiler_needs_object=$lt_compiler_needs_object
14091
14092# Create an old-style archive from a shared archive.
14093old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14094
14095# Create a temporary old-style archive to link instead of a shared archive.
14096old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14097
14098# Commands used to build a shared archive.
14099archive_cmds=$lt_archive_cmds
14100archive_expsym_cmds=$lt_archive_expsym_cmds
14101
14102# Commands used to build a loadable module if different from building
14103# a shared archive.
14104module_cmds=$lt_module_cmds
14105module_expsym_cmds=$lt_module_expsym_cmds
14106
14107# Whether we are building with GNU ld or not.
14108with_gnu_ld=$lt_with_gnu_ld
14109
14110# Flag that allows shared libraries with undefined symbols to be built.
14111allow_undefined_flag=$lt_allow_undefined_flag
14112
14113# Flag that enforces no undefined symbols.
14114no_undefined_flag=$lt_no_undefined_flag
14115
14116# Flag to hardcode \$libdir into a binary during linking.
14117# This must work even if \$libdir does not exist
14118hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14119
14120# If ld is used when linking, flag to hardcode \$libdir into a binary
14121# during linking. This must work even if \$libdir does not exist.
14122hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14123
14124# Whether we need a single "-rpath" flag with a separated argument.
14125hardcode_libdir_separator=$lt_hardcode_libdir_separator
14126
14127# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14128# DIR into the resulting binary.
14129hardcode_direct=$hardcode_direct
14130
14131# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14132# DIR into the resulting binary and the resulting library dependency is
14133# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14134# library is relocated.
14135hardcode_direct_absolute=$hardcode_direct_absolute
14136
14137# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14138# into the resulting binary.
14139hardcode_minus_L=$hardcode_minus_L
14140
14141# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14142# into the resulting binary.
14143hardcode_shlibpath_var=$hardcode_shlibpath_var
14144
14145# Set to "yes" if building a shared library automatically hardcodes DIR
14146# into the library and all subsequent libraries and executables linked
14147# against it.
14148hardcode_automatic=$hardcode_automatic
14149
14150# Set to yes if linker adds runtime paths of dependent libraries
14151# to runtime path list.
14152inherit_rpath=$inherit_rpath
14153
14154# Whether libtool must link a program against all its dependency libraries.
14155link_all_deplibs=$link_all_deplibs
14156
14157# Fix the shell variable \$srcfile for the compiler.
14158fix_srcfile_path=$lt_fix_srcfile_path
14159
14160# Set to "yes" if exported symbols are required.
14161always_export_symbols=$always_export_symbols
14162
14163# The commands to list exported symbols.
14164export_symbols_cmds=$lt_export_symbols_cmds
14165
14166# Symbols that should not be listed in the preloaded symbols.
14167exclude_expsyms=$lt_exclude_expsyms
14168
14169# Symbols that must always be exported.
14170include_expsyms=$lt_include_expsyms
14171
14172# Commands necessary for linking programs (against libraries) with templates.
14173prelink_cmds=$lt_prelink_cmds
14174
14175# Specify filename containing input files.
14176file_list_spec=$lt_file_list_spec
14177
14178# How to hardcode a shared library path into an executable.
14179hardcode_action=$hardcode_action
14180
14181# ### END LIBTOOL CONFIG
14182
14183_LT_EOF
14184
14185 case $host_os in
14186 aix3*)
14187 cat <<\_LT_EOF >> "$cfgfile"
14188# AIX sometimes has problems with the GCC collect2 program. For some
14189# reason, if we set the COLLECT_NAMES environment variable, the problems
14190# vanish in a puff of smoke.
14191if test "X${COLLECT_NAMES+set}" != Xset; then
14192 COLLECT_NAMES=
14193 export COLLECT_NAMES
14194fi
14195_LT_EOF
14196 ;;
14197 esac
14198
14199
14200ltmain="$ac_aux_dir/ltmain.sh"
14201
14202
14203 # We use sed instead of cat because bash on DJGPP gets confused if
14204 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14205 # text mode, it properly converts lines to CR/LF. This bash problem
14206 # is reportedly fixed, but why not run on old versions too?
14207 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14208 || (rm -f "$cfgfile"; exit 1)
14209
14210 case $xsi_shell in
14211 yes)
14212 cat << \_LT_EOF >> "$cfgfile"
14213
14214# func_dirname file append nondir_replacement
14215# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14216# otherwise set result to NONDIR_REPLACEMENT.
14217func_dirname ()
14218{
14219 case ${1} in
14220 */*) func_dirname_result="${1%/*}${2}" ;;
14221 * ) func_dirname_result="${3}" ;;
14222 esac
14223}
14224
14225# func_basename file
14226func_basename ()
14227{
14228 func_basename_result="${1##*/}"
14229}
14230
14231# func_dirname_and_basename file append nondir_replacement
14232# perform func_basename and func_dirname in a single function
14233# call:
14234# dirname: Compute the dirname of FILE. If nonempty,
14235# add APPEND to the result, otherwise set result
14236# to NONDIR_REPLACEMENT.
14237# value returned in "$func_dirname_result"
14238# basename: Compute filename of FILE.
14239# value retuned in "$func_basename_result"
14240# Implementation must be kept synchronized with func_dirname
14241# and func_basename. For efficiency, we do not delegate to
14242# those functions but instead duplicate the functionality here.
14243func_dirname_and_basename ()
14244{
14245 case ${1} in
14246 */*) func_dirname_result="${1%/*}${2}" ;;
14247 * ) func_dirname_result="${3}" ;;
14248 esac
14249 func_basename_result="${1##*/}"
14250}
14251
14252# func_stripname prefix suffix name
14253# strip PREFIX and SUFFIX off of NAME.
14254# PREFIX and SUFFIX must not contain globbing or regex special
14255# characters, hashes, percent signs, but SUFFIX may contain a leading
14256# dot (in which case that matches only a dot).
14257func_stripname ()
14258{
14259 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14260 # positional parameters, so assign one to ordinary parameter first.
14261 func_stripname_result=${3}
14262 func_stripname_result=${func_stripname_result#"${1}"}
14263 func_stripname_result=${func_stripname_result%"${2}"}
14264}
14265
14266# func_opt_split
14267func_opt_split ()
14268{
14269 func_opt_split_opt=${1%%=*}
14270 func_opt_split_arg=${1#*=}
14271}
14272
14273# func_lo2o object
14274func_lo2o ()
14275{
14276 case ${1} in
14277 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14278 *) func_lo2o_result=${1} ;;
14279 esac
14280}
14281
14282# func_xform libobj-or-source
14283func_xform ()
14284{
14285 func_xform_result=${1%.*}.lo
14286}
14287
14288# func_arith arithmetic-term...
14289func_arith ()
14290{
14291 func_arith_result=$(( $* ))
14292}
14293
14294# func_len string
14295# STRING may not start with a hyphen.
14296func_len ()
14297{
14298 func_len_result=${#1}
14299}
14300
14301_LT_EOF
14302 ;;
14303 *) # Bourne compatible functions.
14304 cat << \_LT_EOF >> "$cfgfile"
14305
14306# func_dirname file append nondir_replacement
14307# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14308# otherwise set result to NONDIR_REPLACEMENT.
14309func_dirname ()
14310{
14311 # Extract subdirectory from the argument.
14312 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14313 if test "X$func_dirname_result" = "X${1}"; then
14314 func_dirname_result="${3}"
14315 else
14316 func_dirname_result="$func_dirname_result${2}"
14317 fi
14318}
14319
14320# func_basename file
14321func_basename ()
14322{
14323 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14324}
14325
14326
14327# func_stripname prefix suffix name
14328# strip PREFIX and SUFFIX off of NAME.
14329# PREFIX and SUFFIX must not contain globbing or regex special
14330# characters, hashes, percent signs, but SUFFIX may contain a leading
14331# dot (in which case that matches only a dot).
14332# func_strip_suffix prefix name
14333func_stripname ()
14334{
14335 case ${2} in
14336 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14337 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14338 esac
14339}
14340
14341# sed scripts:
14342my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14343my_sed_long_arg='1s/^-[^=]*=//'
14344
14345# func_opt_split
14346func_opt_split ()
14347{
14348 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14349 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14350}
14351
14352# func_lo2o object
14353func_lo2o ()
14354{
14355 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14356}
14357
14358# func_xform libobj-or-source
14359func_xform ()
14360{
14361 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14362}
14363
14364# func_arith arithmetic-term...
14365func_arith ()
14366{
14367 func_arith_result=`expr "$@"`
14368}
14369
14370# func_len string
14371# STRING may not start with a hyphen.
14372func_len ()
14373{
14374 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14375}
14376
14377_LT_EOF
14378esac
14379
14380case $lt_shell_append in
14381 yes)
14382 cat << \_LT_EOF >> "$cfgfile"
14383
14384# func_append var value
14385# Append VALUE to the end of shell variable VAR.
14386func_append ()
14387{
14388 eval "$1+=\$2"
14389}
14390_LT_EOF
14391 ;;
14392 *)
14393 cat << \_LT_EOF >> "$cfgfile"
14394
14395# func_append var value
14396# Append VALUE to the end of shell variable VAR.
14397func_append ()
14398{
14399 eval "$1=\$$1\$2"
14400}
14401
14402_LT_EOF
14403 ;;
14404 esac
14405
14406
14407 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14408 || (rm -f "$cfgfile"; exit 1)
14409
14410 mv -f "$cfgfile" "$ofile" ||
14411 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14412 chmod +x "$ofile"
14413
14414 ;;
81ecdfbb 14415 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
38f48d72
AC
14416 rm -f Makesim1.tmp Makesim2.tmp Makefile
14417 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
14418 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
14419 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
5d031c16
AC
14420 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
14421 <Makefile.sim >Makefile
38f48d72 14422 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
b7026657 14423 ;;
81ecdfbb
RW
14424 "stamp-h":C) echo > stamp-h ;;
14425
b7026657 14426 esac
81ecdfbb 14427done # for ac_tag
5d031c16 14428
b7026657 14429
81ecdfbb 14430as_fn_exit 0
b7026657 14431_ACEOF
b7026657
AC
14432ac_clean_files=$ac_clean_files_save
14433
81ecdfbb 14434test $ac_write_fail = 0 ||
d0ac1c44 14435 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 14436
b7026657
AC
14437
14438# configure is writing to config.log, and then calls config.status.
14439# config.status does its own redirection, appending to config.log.
14440# Unfortunately, on DOS this fails, as config.log is still kept open
14441# by configure, so config.status won't be able to write to it; its
14442# output is simply discarded. So we exec the FD to /dev/null,
14443# effectively closing config.log, so it can be properly (re)opened and
14444# appended to by config.status. When coming back to configure, we
14445# need to make the FD available again.
14446if test "$no_create" != yes; then
14447 ac_cs_success=:
14448 ac_config_status_args=
14449 test "$silent" = yes &&
14450 ac_config_status_args="$ac_config_status_args --quiet"
14451 exec 5>/dev/null
14452 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14453 exec 5>>config.log
14454 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14455 # would make configure fail if this is the last instruction.
d0ac1c44 14456 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
14457fi
14458if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14460$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 14461fi
5d031c16
AC
14462
14463