]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/rl78/configure
Updated translations for multiple subdirectories
[thirdparty/binutils-gdb.git] / sim / rl78 / configure
CommitLineData
87326c78
DD
1#! /bin/sh
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.
87326c78 7#
87326c78
DD
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
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 :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
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 }
79fi
80
81
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=
87326c78
DD
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
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
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;}
87326c78
DD
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"
87326c78
DD
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"
87326c78
DD
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
219do
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
87326c78
DD
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."
274 else
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."
279 fi
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"
87326c78
DD
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
87326c78
DD
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# ----------------------------------------
87326c78
DD
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.
87326c78
DD
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
87326c78 422 fi
d0ac1c44 423 $as_echo "$as_me: error: $2" >&2
87326c78
DD
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
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'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
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 |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
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; }
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
87326c78
DD
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
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
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';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
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'.
87326c78 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 536 as_ln_s='cp -pR'
87326c78
DD
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
d0ac1c44 540 as_ln_s='cp -pR'
87326c78
DD
541 fi
542else
d0ac1c44 543 as_ln_s='cp -pR'
87326c78
DD
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
d0ac1c44
SM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
87326c78
DD
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
6bb11ab3
L
564SHELL=${CONFIG_SHELL-/bin/sh}
565
87326c78 566
d0ac1c44
SM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
87326c78
DD
569
570# Name of the host.
d0ac1c44 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
87326c78
DD
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
593PACKAGE_URL=
594
595ac_unique_file="Makefile.in"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='LTLIBOBJS
633LIBOBJS
634cgen_breaks
635REPORT_BUGS_TEXI
636REPORT_BUGS_TO
637PKGVERSION
87326c78 638MAINT
31e6ad7d
MF
639MAINTAINER_MODE_FALSE
640MAINTAINER_MODE_TRUE
6bb11ab3
L
641lt_cv_dlopen_libs
642OTOOL64
643OTOOL
644LIPO
645NMEDIT
646DSYMUTIL
647AWK
648STRIP
649OBJDUMP
650LN_S
651NM
652ac_ct_DUMPBIN
653DUMPBIN
654LD
655FGREP
656SED
657LIBTOOL
658PLUGINS_FALSE
659PLUGINS_TRUE
aadc9410
MF
660zlibinc
661zlibdir
87326c78
DD
662CATOBJEXT
663GENCAT
664INSTOBJEXT
665DATADIRNAME
666CATALOGS
667POSUB
668GMSGFMT
669XGETTEXT
670INCINTL
671LIBINTL_DEP
672LIBINTL
673USE_NLS
db2e4d67
MF
674GMAKE_FALSE
675GMAKE_TRUE
676MAKE
677CCDEPMODE
678DEPDIR
679am__leading_dot
5f3ef9d0 680PACKAGE
46f900c0 681C_DIALECT
87326c78
DD
682RANLIB
683AR
684HDEFINES
685CC_FOR_BUILD
686INSTALL_DATA
687INSTALL_SCRIPT
688INSTALL_PROGRAM
2232061b
MF
689EGREP
690GREP
691CPP
87326c78
DD
692target_os
693target_vendor
694target_cpu
695target
696host_os
697host_vendor
698host_cpu
699host
700build_os
701build_vendor
702build_cpu
703build
704OBJEXT
705EXEEXT
706ac_ct_CC
707CPPFLAGS
708LDFLAGS
709CFLAGS
710CC
711WERROR_CFLAGS
712WARN_CFLAGS
87326c78 713sim_reserved_bits
87326c78
DD
714sim_inline
715sim_hw
716sim_hw_objs
717sim_hw_cflags
718sim_default_model
719sim_scache
720sim_float
87326c78
DD
721sim_endian
722sim_bitsize
87326c78 723sim_alignment
87326c78
DD
724target_alias
725host_alias
726build_alias
727LIBS
728ECHO_T
729ECHO_N
730ECHO_C
731DEFS
732mandir
733localedir
734libdir
735psdir
736pdfdir
737dvidir
738htmldir
739infodir
740docdir
741oldincludedir
742includedir
743localstatedir
744sharedstatedir
745sysconfdir
746datadir
747datarootdir
748libexecdir
749sbindir
750bindir
751program_transform_name
752prefix
753exec_prefix
754PACKAGE_URL
755PACKAGE_BUGREPORT
756PACKAGE_STRING
757PACKAGE_VERSION
758PACKAGE_TARNAME
759PACKAGE_NAME
760PATH_SEPARATOR
761SHELL'
762ac_subst_files=''
763ac_user_opts='
764enable_option_checking
aadc9410 765with_system_zlib
6bb11ab3
L
766enable_plugins
767enable_shared
768enable_static
769with_pic
770enable_fast_install
771with_gnu_ld
772enable_libtool_lock
87326c78 773enable_maintainer_mode
87326c78
DD
774enable_sim_debug
775enable_sim_stdio
776enable_sim_trace
777enable_sim_profile
35656e95 778enable_sim_assert
16f7876d 779enable_sim_environment
347fe5bb 780enable_sim_inline
87326c78
DD
781with_pkgversion
782with_bugurl
783'
784 ac_precious_vars='build_alias
785host_alias
786target_alias
787CC
788CFLAGS
789LDFLAGS
790LIBS
791CPPFLAGS
792CPP'
793
794
795# Initialize some variables set by options.
796ac_init_help=
797ac_init_version=false
798ac_unrecognized_opts=
799ac_unrecognized_sep=
800# The variables have the same names as the options, with
801# dashes changed to underlines.
802cache_file=/dev/null
803exec_prefix=NONE
804no_create=
805no_recursion=
806prefix=NONE
807program_prefix=NONE
808program_suffix=NONE
809program_transform_name=s,x,x,
810silent=
811site=
812srcdir=
813verbose=
814x_includes=NONE
815x_libraries=NONE
816
817# Installation directory options.
818# These are left unexpanded so users can "make install exec_prefix=/foo"
819# and all the variables that are supposed to be based on exec_prefix
820# by default will actually change.
821# Use braces instead of parens because sh, perl, etc. also accept them.
822# (The list follows the same order as the GNU Coding Standards.)
823bindir='${exec_prefix}/bin'
824sbindir='${exec_prefix}/sbin'
825libexecdir='${exec_prefix}/libexec'
826datarootdir='${prefix}/share'
827datadir='${datarootdir}'
828sysconfdir='${prefix}/etc'
829sharedstatedir='${prefix}/com'
830localstatedir='${prefix}/var'
831includedir='${prefix}/include'
832oldincludedir='/usr/include'
833docdir='${datarootdir}/doc/${PACKAGE}'
834infodir='${datarootdir}/info'
835htmldir='${docdir}'
836dvidir='${docdir}'
837pdfdir='${docdir}'
838psdir='${docdir}'
839libdir='${exec_prefix}/lib'
840localedir='${datarootdir}/locale'
841mandir='${datarootdir}/man'
842
843ac_prev=
844ac_dashdash=
845for ac_option
846do
847 # If the previous option needs an argument, assign it.
848 if test -n "$ac_prev"; then
849 eval $ac_prev=\$ac_option
850 ac_prev=
851 continue
852 fi
853
854 case $ac_option in
d0ac1c44
SM
855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856 *=) ac_optarg= ;;
857 *) ac_optarg=yes ;;
87326c78
DD
858 esac
859
860 # Accept the important Cygnus configure options, so we can diagnose typos.
861
862 case $ac_dashdash$ac_option in
863 --)
864 ac_dashdash=yes ;;
865
866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
867 ac_prev=bindir ;;
868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869 bindir=$ac_optarg ;;
870
871 -build | --build | --buil | --bui | --bu)
872 ac_prev=build_alias ;;
873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874 build_alias=$ac_optarg ;;
875
876 -cache-file | --cache-file | --cache-fil | --cache-fi \
877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878 ac_prev=cache_file ;;
879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881 cache_file=$ac_optarg ;;
882
883 --config-cache | -C)
884 cache_file=config.cache ;;
885
886 -datadir | --datadir | --datadi | --datad)
887 ac_prev=datadir ;;
888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
889 datadir=$ac_optarg ;;
890
891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892 | --dataroo | --dataro | --datar)
893 ac_prev=datarootdir ;;
894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896 datarootdir=$ac_optarg ;;
897
898 -disable-* | --disable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 902 as_fn_error $? "invalid feature name: $ac_useropt"
87326c78
DD
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
906 *"
907"enable_$ac_useropt"
908"*) ;;
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
911 esac
912 eval enable_$ac_useropt=no ;;
913
914 -docdir | --docdir | --docdi | --doc | --do)
915 ac_prev=docdir ;;
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917 docdir=$ac_optarg ;;
918
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 ac_prev=dvidir ;;
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922 dvidir=$ac_optarg ;;
923
924 -enable-* | --enable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 928 as_fn_error $? "invalid feature name: $ac_useropt"
87326c78
DD
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933"enable_$ac_useropt"
934"*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=\$ac_optarg ;;
939
940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942 | --exec | --exe | --ex)
943 ac_prev=exec_prefix ;;
944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946 | --exec=* | --exe=* | --ex=*)
947 exec_prefix=$ac_optarg ;;
948
949 -gas | --gas | --ga | --g)
950 # Obsolete; use --with-gas.
951 with_gas=yes ;;
952
953 -help | --help | --hel | --he | -h)
954 ac_init_help=long ;;
955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956 ac_init_help=recursive ;;
957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958 ac_init_help=short ;;
959
960 -host | --host | --hos | --ho)
961 ac_prev=host_alias ;;
962 -host=* | --host=* | --hos=* | --ho=*)
963 host_alias=$ac_optarg ;;
964
965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966 ac_prev=htmldir ;;
967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968 | --ht=*)
969 htmldir=$ac_optarg ;;
970
971 -includedir | --includedir | --includedi | --included | --include \
972 | --includ | --inclu | --incl | --inc)
973 ac_prev=includedir ;;
974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975 | --includ=* | --inclu=* | --incl=* | --inc=*)
976 includedir=$ac_optarg ;;
977
978 -infodir | --infodir | --infodi | --infod | --info | --inf)
979 ac_prev=infodir ;;
980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981 infodir=$ac_optarg ;;
982
983 -libdir | --libdir | --libdi | --libd)
984 ac_prev=libdir ;;
985 -libdir=* | --libdir=* | --libdi=* | --libd=*)
986 libdir=$ac_optarg ;;
987
988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989 | --libexe | --libex | --libe)
990 ac_prev=libexecdir ;;
991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992 | --libexe=* | --libex=* | --libe=*)
993 libexecdir=$ac_optarg ;;
994
995 -localedir | --localedir | --localedi | --localed | --locale)
996 ac_prev=localedir ;;
997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998 localedir=$ac_optarg ;;
999
1000 -localstatedir | --localstatedir | --localstatedi | --localstated \
1001 | --localstate | --localstat | --localsta | --localst | --locals)
1002 ac_prev=localstatedir ;;
1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005 localstatedir=$ac_optarg ;;
1006
1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008 ac_prev=mandir ;;
1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010 mandir=$ac_optarg ;;
1011
1012 -nfp | --nfp | --nf)
1013 # Obsolete; use --without-fp.
1014 with_fp=no ;;
1015
1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017 | --no-cr | --no-c | -n)
1018 no_create=yes ;;
1019
1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022 no_recursion=yes ;;
1023
1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026 | --oldin | --oldi | --old | --ol | --o)
1027 ac_prev=oldincludedir ;;
1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031 oldincludedir=$ac_optarg ;;
1032
1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034 ac_prev=prefix ;;
1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036 prefix=$ac_optarg ;;
1037
1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039 | --program-pre | --program-pr | --program-p)
1040 ac_prev=program_prefix ;;
1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043 program_prefix=$ac_optarg ;;
1044
1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046 | --program-suf | --program-su | --program-s)
1047 ac_prev=program_suffix ;;
1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050 program_suffix=$ac_optarg ;;
1051
1052 -program-transform-name | --program-transform-name \
1053 | --program-transform-nam | --program-transform-na \
1054 | --program-transform-n | --program-transform- \
1055 | --program-transform | --program-transfor \
1056 | --program-transfo | --program-transf \
1057 | --program-trans | --program-tran \
1058 | --progr-tra | --program-tr | --program-t)
1059 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1068
1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070 ac_prev=pdfdir ;;
1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072 pdfdir=$ac_optarg ;;
1073
1074 -psdir | --psdir | --psdi | --psd | --ps)
1075 ac_prev=psdir ;;
1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077 psdir=$ac_optarg ;;
1078
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1081 silent=yes ;;
1082
1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084 ac_prev=sbindir ;;
1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086 | --sbi=* | --sb=*)
1087 sbindir=$ac_optarg ;;
1088
1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091 | --sharedst | --shareds | --shared | --share | --shar \
1092 | --sha | --sh)
1093 ac_prev=sharedstatedir ;;
1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097 | --sha=* | --sh=*)
1098 sharedstatedir=$ac_optarg ;;
1099
1100 -site | --site | --sit)
1101 ac_prev=site ;;
1102 -site=* | --site=* | --sit=*)
1103 site=$ac_optarg ;;
1104
1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106 ac_prev=srcdir ;;
1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108 srcdir=$ac_optarg ;;
1109
1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111 | --syscon | --sysco | --sysc | --sys | --sy)
1112 ac_prev=sysconfdir ;;
1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115 sysconfdir=$ac_optarg ;;
1116
1117 -target | --target | --targe | --targ | --tar | --ta | --t)
1118 ac_prev=target_alias ;;
1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120 target_alias=$ac_optarg ;;
1121
1122 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123 verbose=yes ;;
1124
1125 -version | --version | --versio | --versi | --vers | -V)
1126 ac_init_version=: ;;
1127
1128 -with-* | --with-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1132 as_fn_error $? "invalid package name: $ac_useropt"
87326c78
DD
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1136 *"
1137"with_$ac_useropt"
1138"*) ;;
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1141 esac
1142 eval with_$ac_useropt=\$ac_optarg ;;
1143
1144 -without-* | --without-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1148 as_fn_error $? "invalid package name: $ac_useropt"
87326c78
DD
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1152 *"
1153"with_$ac_useropt"
1154"*) ;;
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1157 esac
1158 eval with_$ac_useropt=no ;;
1159
1160 --x)
1161 # Obsolete; use --with-x.
1162 with_x=yes ;;
1163
1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165 | --x-incl | --x-inc | --x-in | --x-i)
1166 ac_prev=x_includes ;;
1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169 x_includes=$ac_optarg ;;
1170
1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173 ac_prev=x_libraries ;;
1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176 x_libraries=$ac_optarg ;;
1177
d0ac1c44
SM
1178 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179Try \`$0 --help' for more information"
87326c78
DD
1180 ;;
1181
1182 *=*)
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
1185 case $ac_envvar in #(
1186 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1187 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
87326c78
DD
1188 esac
1189 eval $ac_envvar=\$ac_optarg
1190 export $ac_envvar ;;
1191
1192 *)
1193 # FIXME: should be removed in autoconf 3.0.
1194 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1197 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
87326c78
DD
1198 ;;
1199
1200 esac
1201done
1202
1203if test -n "$ac_prev"; then
1204 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1205 as_fn_error $? "missing argument to $ac_option"
87326c78
DD
1206fi
1207
1208if test -n "$ac_unrecognized_opts"; then
1209 case $enable_option_checking in
1210 no) ;;
d0ac1c44 1211 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
87326c78
DD
1212 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213 esac
1214fi
1215
1216# Check all directory arguments for consistency.
1217for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218 datadir sysconfdir sharedstatedir localstatedir includedir \
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220 libdir localedir mandir
1221do
1222 eval ac_val=\$$ac_var
1223 # Remove trailing slashes.
1224 case $ac_val in
1225 */ )
1226 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227 eval $ac_var=\$ac_val;;
1228 esac
1229 # Be sure to have absolute directory names.
1230 case $ac_val in
1231 [\\/$]* | ?:[\\/]* ) continue;;
1232 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233 esac
d0ac1c44 1234 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
87326c78
DD
1235done
1236
1237# There might be people who depend on the old broken behavior: `$host'
1238# used to hold the argument of --host etc.
1239# FIXME: To remove some day.
1240build=$build_alias
1241host=$host_alias
1242target=$target_alias
1243
1244# FIXME: To remove some day.
1245if test "x$host_alias" != x; then
1246 if test "x$build_alias" = x; then
1247 cross_compiling=maybe
87326c78
DD
1248 elif test "x$build_alias" != "x$host_alias"; then
1249 cross_compiling=yes
1250 fi
1251fi
1252
1253ac_tool_prefix=
1254test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255
1256test "$silent" = yes && exec 6>/dev/null
1257
1258
1259ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260ac_ls_di=`ls -di .` &&
1261ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1262 as_fn_error $? "working directory cannot be determined"
87326c78 1263test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1264 as_fn_error $? "pwd does not report name of working directory"
87326c78
DD
1265
1266
1267# Find the source files, if location was not specified.
1268if test -z "$srcdir"; then
1269 ac_srcdir_defaulted=yes
1270 # Try the directory containing this script, then the parent directory.
1271 ac_confdir=`$as_dirname -- "$as_myself" ||
1272$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273 X"$as_myself" : 'X\(//\)[^/]' \| \
1274 X"$as_myself" : 'X\(//\)$' \| \
1275 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276$as_echo X"$as_myself" |
1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)[^/].*/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\/\)$/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\).*/{
1290 s//\1/
1291 q
1292 }
1293 s/.*/./; q'`
1294 srcdir=$ac_confdir
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 srcdir=..
1297 fi
1298else
1299 ac_srcdir_defaulted=no
1300fi
1301if test ! -r "$srcdir/$ac_unique_file"; then
1302 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1303 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
87326c78
DD
1304fi
1305ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306ac_abs_confdir=`(
d0ac1c44 1307 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
87326c78
DD
1308 pwd)`
1309# When building in place, set srcdir=.
1310if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 srcdir=.
1312fi
1313# Remove unnecessary trailing slashes from srcdir.
1314# Double slashes in file names in object file debugging info
1315# mess up M-x gdb in Emacs.
1316case $srcdir in
1317*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318esac
1319for ac_var in $ac_precious_vars; do
1320 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_env_${ac_var}_value=\$${ac_var}
1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324done
1325
1326#
1327# Report the --help message.
1328#
1329if test "$ac_init_help" = "long"; then
1330 # Omit some internal or obsolete options to make the list less imposing.
1331 # This message is too long to be a string in the A/UX 3.1 sh.
1332 cat <<_ACEOF
1333\`configure' configures this package to adapt to many kinds of systems.
1334
1335Usage: $0 [OPTION]... [VAR=VALUE]...
1336
1337To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338VAR=VALUE. See below for descriptions of some of the useful variables.
1339
1340Defaults for the options are specified in brackets.
1341
1342Configuration:
1343 -h, --help display this help and exit
1344 --help=short display options specific to this package
1345 --help=recursive display the short help of all the included packages
1346 -V, --version display version information and exit
d0ac1c44 1347 -q, --quiet, --silent do not print \`checking ...' messages
87326c78
DD
1348 --cache-file=FILE cache test results in FILE [disabled]
1349 -C, --config-cache alias for \`--cache-file=config.cache'
1350 -n, --no-create do not create output files
1351 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352
1353Installation directories:
1354 --prefix=PREFIX install architecture-independent files in PREFIX
1355 [$ac_default_prefix]
1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 [PREFIX]
1358
1359By default, \`make install' will install all the files in
1360\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1361an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362for instance \`--prefix=\$HOME'.
1363
1364For better control, use the options below.
1365
1366Fine tuning of the installation directories:
1367 --bindir=DIR user executables [EPREFIX/bin]
1368 --sbindir=DIR system admin executables [EPREFIX/sbin]
1369 --libexecdir=DIR program executables [EPREFIX/libexec]
1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
1386_ACEOF
1387
1388 cat <<\_ACEOF
1389
1390Program names:
1391 --program-prefix=PREFIX prepend PREFIX to installed program names
1392 --program-suffix=SUFFIX append SUFFIX to installed program names
1393 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1394
1395System types:
1396 --build=BUILD configure for building on BUILD [guessed]
1397 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1398 --target=TARGET configure for building compilers for TARGET [HOST]
1399_ACEOF
1400fi
1401
1402if test -n "$ac_init_help"; then
1403
1404 cat <<\_ACEOF
1405
1406Optional Features:
1407 --disable-option-checking ignore unrecognized --enable/--with options
1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
faa743bb 1410 --enable-plugins Enable support for plugins
6bb11ab3
L
1411 --enable-shared[=PKGS] build shared libraries [default=yes]
1412 --enable-static[=PKGS] build static libraries [default=yes]
1413 --enable-fast-install[=PKGS]
1414 optimize for fast installation [default=yes]
1415 --disable-libtool-lock avoid locking (might break parallel builds)
d0ac1c44
SM
1416 --enable-maintainer-mode
1417 enable make rules and dependencies not useful (and
1418 sometimes confusing) to the casual installer
8d0978fb
MF
1419 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1420 itself)
1421 --enable-sim-stdio Specify whether to use stdio for console
1422 input/output
1423 --enable-sim-trace=opts Enable tracing of simulated programs
1424 --enable-sim-profile=opts
1425 Enable profiling flags
35656e95 1426 --enable-sim-assert Specify whether to perform random assertions
16f7876d
MF
1427 --enable-sim-environment=environment
1428 Specify mixed, user, virtual or operating
1429 environment
347fe5bb
MF
1430 --enable-sim-inline=inlines
1431 Specify which functions should be inlined
87326c78
DD
1432
1433Optional Packages:
1434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
aadc9410 1436 --with-system-zlib use installed libz
6bb11ab3
L
1437 --with-pic try to use only PIC/non-PIC objects [default=use
1438 both]
1439 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
bf12d44e 1440 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
87326c78
DD
1441 --with-bugurl=URL Direct users to URL to report a bug
1442
1443Some influential environment variables:
1444 CC C compiler command
1445 CFLAGS C compiler flags
1446 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1447 nonstandard directory <lib dir>
1448 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1449 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
87326c78
DD
1450 you have headers in a nonstandard directory <include dir>
1451 CPP C preprocessor
1452
1453Use these variables to override the choices made by `configure' or to help
1454it to find libraries and programs with nonstandard names/locations.
1455
1456Report bugs to the package provider.
1457_ACEOF
1458ac_status=$?
1459fi
1460
1461if test "$ac_init_help" = "recursive"; then
1462 # If there are subdirs, report their specific --help.
1463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464 test -d "$ac_dir" ||
1465 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466 continue
1467 ac_builddir=.
1468
1469case "$ac_dir" in
1470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471*)
1472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473 # A ".." for each directory in $ac_dir_suffix.
1474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478 esac ;;
1479esac
1480ac_abs_top_builddir=$ac_pwd
1481ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482# for backward compatibility:
1483ac_top_builddir=$ac_top_build_prefix
1484
1485case $srcdir in
1486 .) # We are building in place.
1487 ac_srcdir=.
1488 ac_top_srcdir=$ac_top_builddir_sub
1489 ac_abs_top_srcdir=$ac_pwd ;;
1490 [\\/]* | ?:[\\/]* ) # Absolute name.
1491 ac_srcdir=$srcdir$ac_dir_suffix;
1492 ac_top_srcdir=$srcdir
1493 ac_abs_top_srcdir=$srcdir ;;
1494 *) # Relative name.
1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498esac
1499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
1501 cd "$ac_dir" || { ac_status=$?; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure" --help=recursive
1509 else
1510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511 fi || ac_status=$?
1512 cd "$ac_pwd" || { ac_status=$?; break; }
1513 done
1514fi
1515
1516test -n "$ac_init_help" && exit $ac_status
1517if $ac_init_version; then
1518 cat <<\_ACEOF
1519configure
d0ac1c44 1520generated by GNU Autoconf 2.69
87326c78 1521
d0ac1c44 1522Copyright (C) 2012 Free Software Foundation, Inc.
87326c78
DD
1523This configure script is free software; the Free Software Foundation
1524gives unlimited permission to copy, distribute and modify it.
1525_ACEOF
1526 exit
1527fi
1528
1529## ------------------------ ##
1530## Autoconf initialization. ##
1531## ------------------------ ##
1532
1533# ac_fn_c_try_compile LINENO
1534# --------------------------
1535# Try to compile conftest.$ac_ext, and return whether this succeeded.
1536ac_fn_c_try_compile ()
1537{
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext
1540 if { { ac_try="$ac_compile"
1541case "(($ac_try" in
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1544esac
1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546$as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1548 ac_status=$?
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1553 fi
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.$ac_objext; then :
1559 ac_retval=0
1560else
1561 $as_echo "$as_me: failed program was:" >&5
1562sed 's/^/| /' conftest.$ac_ext >&5
1563
1564 ac_retval=1
1565fi
d0ac1c44
SM
1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567 as_fn_set_status $ac_retval
87326c78
DD
1568
1569} # ac_fn_c_try_compile
1570
1571# ac_fn_c_try_cpp LINENO
1572# ----------------------
1573# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1574ac_fn_c_try_cpp ()
1575{
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 if { { ac_try="$ac_cpp conftest.$ac_ext"
1578case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581esac
1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583$as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1590 fi
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1592 test $ac_status = 0; } > conftest.i && {
87326c78
DD
1593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 }; then :
1596 ac_retval=0
1597else
1598 $as_echo "$as_me: failed program was:" >&5
1599sed 's/^/| /' conftest.$ac_ext >&5
1600
1601 ac_retval=1
1602fi
d0ac1c44
SM
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
87326c78
DD
1605
1606} # ac_fn_c_try_cpp
1607
1608# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1609# -------------------------------------------------------
1610# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1611# the include files in INCLUDES and setting the cache variable VAR
1612# accordingly.
1613ac_fn_c_check_header_mongrel ()
1614{
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1616 if eval \${$3+:} false; then :
87326c78
DD
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1618$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1619if eval \${$3+:} false; then :
87326c78
DD
1620 $as_echo_n "(cached) " >&6
1621fi
1622eval ac_res=\$$3
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1624$as_echo "$ac_res" >&6; }
1625else
1626 # Is the header compilable?
1627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1628$as_echo_n "checking $2 usability... " >&6; }
1629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630/* end confdefs.h. */
1631$4
1632#include <$2>
1633_ACEOF
1634if ac_fn_c_try_compile "$LINENO"; then :
1635 ac_header_compiler=yes
1636else
1637 ac_header_compiler=no
1638fi
1639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1641$as_echo "$ac_header_compiler" >&6; }
1642
1643# Is the header present?
1644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1645$as_echo_n "checking $2 presence... " >&6; }
1646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647/* end confdefs.h. */
1648#include <$2>
1649_ACEOF
1650if ac_fn_c_try_cpp "$LINENO"; then :
1651 ac_header_preproc=yes
1652else
1653 ac_header_preproc=no
1654fi
d0ac1c44 1655rm -f conftest.err conftest.i conftest.$ac_ext
87326c78
DD
1656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1657$as_echo "$ac_header_preproc" >&6; }
1658
1659# So? What about this header?
1660case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1661 yes:no: )
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1663$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1665$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1666 ;;
1667 no:yes:* )
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1669$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1671$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1673$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1675$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1677$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1678 ;;
1679esac
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1682if eval \${$3+:} false; then :
87326c78
DD
1683 $as_echo_n "(cached) " >&6
1684else
1685 eval "$3=\$ac_header_compiler"
1686fi
1687eval ac_res=\$$3
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689$as_echo "$ac_res" >&6; }
1690fi
d0ac1c44 1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
87326c78
DD
1692
1693} # ac_fn_c_check_header_mongrel
1694
1695# ac_fn_c_try_run LINENO
1696# ----------------------
1697# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698# that executables *can* be run.
1699ac_fn_c_try_run ()
1700{
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_link"
1703case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713 { { case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_try") 2>&5
1720 ac_status=$?
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; }; }; then :
1723 ac_retval=0
1724else
1725 $as_echo "$as_me: program exited with status $ac_status" >&5
1726 $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=$ac_status
1730fi
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
87326c78
DD
1734
1735} # ac_fn_c_try_run
1736
1737# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1738# -------------------------------------------------------
1739# Tests whether HEADER exists and can be compiled using the include files in
1740# INCLUDES, setting the cache variable VAR accordingly.
1741ac_fn_c_check_header_compile ()
1742{
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1746if eval \${$3+:} false; then :
87326c78
DD
1747 $as_echo_n "(cached) " >&6
1748else
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750/* end confdefs.h. */
1751$4
1752#include <$2>
1753_ACEOF
1754if ac_fn_c_try_compile "$LINENO"; then :
1755 eval "$3=yes"
1756else
1757 eval "$3=no"
1758fi
1759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760fi
1761eval ac_res=\$$3
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763$as_echo "$ac_res" >&6; }
d0ac1c44 1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
87326c78
DD
1765
1766} # ac_fn_c_check_header_compile
1767
1768# ac_fn_c_try_link LINENO
1769# -----------------------
1770# Try to link conftest.$ac_ext, and return whether this succeeded.
1771ac_fn_c_try_link ()
1772{
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext conftest$ac_exeext
1775 if { { ac_try="$ac_link"
1776case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779esac
1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781$as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_link") 2>conftest.err
1783 ac_status=$?
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1788 fi
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_c_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest$ac_exeext && {
1794 test "$cross_compiling" = yes ||
d0ac1c44 1795 test -x conftest$ac_exeext
87326c78
DD
1796 }; then :
1797 ac_retval=0
1798else
1799 $as_echo "$as_me: failed program was:" >&5
1800sed 's/^/| /' conftest.$ac_ext >&5
1801
1802 ac_retval=1
1803fi
1804 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1805 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1806 # interfere with the next link command; also delete a directory that is
1807 # left behind by Apple's compiler. We do this before executing the actions.
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 as_fn_set_status $ac_retval
87326c78
DD
1811
1812} # ac_fn_c_try_link
1813
1814# ac_fn_c_check_func LINENO FUNC VAR
1815# ----------------------------------
1816# Tests whether FUNC exists, setting the cache variable VAR accordingly
1817ac_fn_c_check_func ()
1818{
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1822if eval \${$3+:} false; then :
87326c78
DD
1823 $as_echo_n "(cached) " >&6
1824else
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h. */
1827/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1829#define $2 innocuous_$2
1830
1831/* System header to define __stub macros and hopefully few prototypes,
1832 which can conflict with char $2 (); below.
1833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1834 <limits.h> exists even on freestanding compilers. */
1835
1836#ifdef __STDC__
1837# include <limits.h>
1838#else
1839# include <assert.h>
1840#endif
1841
1842#undef $2
1843
1844/* Override any GCC internal prototype to avoid an error.
1845 Use char because int might match the return type of a GCC
1846 builtin and then its argument prototype would still apply. */
1847#ifdef __cplusplus
1848extern "C"
1849#endif
1850char $2 ();
1851/* The GNU C library defines this for functions which it implements
1852 to always fail with ENOSYS. Some functions are actually named
1853 something starting with __ and the normal name is an alias. */
1854#if defined __stub_$2 || defined __stub___$2
1855choke me
1856#endif
1857
1858int
1859main ()
1860{
1861return $2 ();
1862 ;
1863 return 0;
1864}
1865_ACEOF
1866if ac_fn_c_try_link "$LINENO"; then :
1867 eval "$3=yes"
1868else
1869 eval "$3=no"
1870fi
1871rm -f core conftest.err conftest.$ac_objext \
1872 conftest$ac_exeext conftest.$ac_ext
1873fi
1874eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876$as_echo "$ac_res" >&6; }
d0ac1c44 1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
87326c78
DD
1878
1879} # ac_fn_c_check_func
936df756
MF
1880
1881# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1882# ----------------------------------------------------
1883# Tries to find if the field MEMBER exists in type AGGR, after including
1884# INCLUDES, setting cache variable VAR accordingly.
1885ac_fn_c_check_member ()
1886{
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1889$as_echo_n "checking for $2.$3... " >&6; }
d0ac1c44 1890if eval \${$4+:} false; then :
936df756
MF
1891 $as_echo_n "(cached) " >&6
1892else
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894/* end confdefs.h. */
1895$5
1896int
1897main ()
1898{
1899static $2 ac_aggr;
1900if (ac_aggr.$3)
1901return 0;
1902 ;
1903 return 0;
1904}
1905_ACEOF
1906if ac_fn_c_try_compile "$LINENO"; then :
1907 eval "$4=yes"
1908else
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910/* end confdefs.h. */
1911$5
1912int
1913main ()
1914{
1915static $2 ac_aggr;
1916if (sizeof ac_aggr.$3)
1917return 0;
1918 ;
1919 return 0;
1920}
1921_ACEOF
1922if ac_fn_c_try_compile "$LINENO"; then :
1923 eval "$4=yes"
1924else
1925 eval "$4=no"
1926fi
1927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928fi
1929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930fi
1931eval ac_res=\$$4
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933$as_echo "$ac_res" >&6; }
d0ac1c44 1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
936df756
MF
1935
1936} # ac_fn_c_check_member
1937
1938# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1939# -------------------------------------------
1940# Tests whether TYPE exists after having included INCLUDES, setting cache
1941# variable VAR accordingly.
1942ac_fn_c_check_type ()
1943{
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1947if eval \${$3+:} false; then :
936df756
MF
1948 $as_echo_n "(cached) " >&6
1949else
1950 eval "$3=no"
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952/* end confdefs.h. */
1953$4
1954int
1955main ()
1956{
1957if (sizeof ($2))
1958 return 0;
1959 ;
1960 return 0;
1961}
1962_ACEOF
1963if ac_fn_c_try_compile "$LINENO"; then :
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h. */
1966$4
1967int
1968main ()
1969{
1970if (sizeof (($2)))
1971 return 0;
1972 ;
1973 return 0;
1974}
1975_ACEOF
1976if ac_fn_c_try_compile "$LINENO"; then :
1977
1978else
1979 eval "$3=yes"
1980fi
1981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982fi
1983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984fi
1985eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987$as_echo "$ac_res" >&6; }
d0ac1c44 1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
936df756
MF
1989
1990} # ac_fn_c_check_type
87326c78
DD
1991cat >config.log <<_ACEOF
1992This file contains any messages produced by compilers while
1993running configure, to aid debugging if configure makes a mistake.
1994
1995It was created by $as_me, which was
d0ac1c44 1996generated by GNU Autoconf 2.69. Invocation command line was
87326c78
DD
1997
1998 $ $0 $@
1999
2000_ACEOF
2001exec 5>>config.log
2002{
2003cat <<_ASUNAME
2004## --------- ##
2005## Platform. ##
2006## --------- ##
2007
2008hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2009uname -m = `(uname -m) 2>/dev/null || echo unknown`
2010uname -r = `(uname -r) 2>/dev/null || echo unknown`
2011uname -s = `(uname -s) 2>/dev/null || echo unknown`
2012uname -v = `(uname -v) 2>/dev/null || echo unknown`
2013
2014/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2015/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2016
2017/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2018/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2019/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2020/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2021/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2022/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2023/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2024
2025_ASUNAME
2026
2027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028for as_dir in $PATH
2029do
2030 IFS=$as_save_IFS
2031 test -z "$as_dir" && as_dir=.
2032 $as_echo "PATH: $as_dir"
2033 done
2034IFS=$as_save_IFS
2035
2036} >&5
2037
2038cat >&5 <<_ACEOF
2039
2040
2041## ----------- ##
2042## Core tests. ##
2043## ----------- ##
2044
2045_ACEOF
2046
2047
2048# Keep a trace of the command line.
2049# Strip out --no-create and --no-recursion so they do not pile up.
2050# Strip out --silent because we don't want to record it for future runs.
2051# Also quote any args containing shell meta-characters.
2052# Make two passes to allow for proper duplicate-argument suppression.
2053ac_configure_args=
2054ac_configure_args0=
2055ac_configure_args1=
2056ac_must_keep_next=false
2057for ac_pass in 1 2
2058do
2059 for ac_arg
2060 do
2061 case $ac_arg in
2062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2064 | -silent | --silent | --silen | --sile | --sil)
2065 continue ;;
2066 *\'*)
2067 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2068 esac
2069 case $ac_pass in
2070 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2071 2)
2072 as_fn_append ac_configure_args1 " '$ac_arg'"
2073 if test $ac_must_keep_next = true; then
2074 ac_must_keep_next=false # Got value, back to normal.
2075 else
2076 case $ac_arg in
2077 *=* | --config-cache | -C | -disable-* | --disable-* \
2078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2080 | -with-* | --with-* | -without-* | --without-* | --x)
2081 case "$ac_configure_args0 " in
2082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2083 esac
2084 ;;
2085 -* ) ac_must_keep_next=true ;;
2086 esac
2087 fi
2088 as_fn_append ac_configure_args " '$ac_arg'"
2089 ;;
2090 esac
2091 done
2092done
2093{ ac_configure_args0=; unset ac_configure_args0;}
2094{ ac_configure_args1=; unset ac_configure_args1;}
2095
2096# When interrupted or exit'd, cleanup temporary files, and complete
2097# config.log. We remove comments because anyway the quotes in there
2098# would cause problems or look ugly.
2099# WARNING: Use '\'' to represent an apostrophe within the trap.
2100# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2101trap 'exit_status=$?
2102 # Save into config.log some information that might help in debugging.
2103 {
2104 echo
2105
d0ac1c44 2106 $as_echo "## ---------------- ##
87326c78 2107## Cache variables. ##
d0ac1c44 2108## ---------------- ##"
87326c78
DD
2109 echo
2110 # The following way of writing the cache mishandles newlines in values,
2111(
2112 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2113 eval ac_val=\$$ac_var
2114 case $ac_val in #(
2115 *${as_nl}*)
2116 case $ac_var in #(
2117 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2118$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2119 esac
2120 case $ac_var in #(
2121 _ | IFS | as_nl) ;; #(
2122 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2123 *) { eval $ac_var=; unset $ac_var;} ;;
2124 esac ;;
2125 esac
2126 done
2127 (set) 2>&1 |
2128 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2129 *${as_nl}ac_space=\ *)
2130 sed -n \
2131 "s/'\''/'\''\\\\'\'''\''/g;
2132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2133 ;; #(
2134 *)
2135 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2136 ;;
2137 esac |
2138 sort
2139)
2140 echo
2141
d0ac1c44 2142 $as_echo "## ----------------- ##
87326c78 2143## Output variables. ##
d0ac1c44 2144## ----------------- ##"
87326c78
DD
2145 echo
2146 for ac_var in $ac_subst_vars
2147 do
2148 eval ac_val=\$$ac_var
2149 case $ac_val in
2150 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2151 esac
2152 $as_echo "$ac_var='\''$ac_val'\''"
2153 done | sort
2154 echo
2155
2156 if test -n "$ac_subst_files"; then
d0ac1c44 2157 $as_echo "## ------------------- ##
87326c78 2158## File substitutions. ##
d0ac1c44 2159## ------------------- ##"
87326c78
DD
2160 echo
2161 for ac_var in $ac_subst_files
2162 do
2163 eval ac_val=\$$ac_var
2164 case $ac_val in
2165 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2166 esac
2167 $as_echo "$ac_var='\''$ac_val'\''"
2168 done | sort
2169 echo
2170 fi
2171
2172 if test -s confdefs.h; then
d0ac1c44 2173 $as_echo "## ----------- ##
87326c78 2174## confdefs.h. ##
d0ac1c44 2175## ----------- ##"
87326c78
DD
2176 echo
2177 cat confdefs.h
2178 echo
2179 fi
2180 test "$ac_signal" != 0 &&
2181 $as_echo "$as_me: caught signal $ac_signal"
2182 $as_echo "$as_me: exit $exit_status"
2183 } >&5
2184 rm -f core *.core core.conftest.* &&
2185 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2186 exit $exit_status
2187' 0
2188for ac_signal in 1 2 13 15; do
2189 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2190done
2191ac_signal=0
2192
2193# confdefs.h avoids OS command line length limits that DEFS can exceed.
2194rm -f -r conftest* confdefs.h
2195
2196$as_echo "/* confdefs.h */" > confdefs.h
2197
2198# Predefined preprocessor variables.
2199
2200cat >>confdefs.h <<_ACEOF
2201#define PACKAGE_NAME "$PACKAGE_NAME"
2202_ACEOF
2203
2204cat >>confdefs.h <<_ACEOF
2205#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2206_ACEOF
2207
2208cat >>confdefs.h <<_ACEOF
2209#define PACKAGE_VERSION "$PACKAGE_VERSION"
2210_ACEOF
2211
2212cat >>confdefs.h <<_ACEOF
2213#define PACKAGE_STRING "$PACKAGE_STRING"
2214_ACEOF
2215
2216cat >>confdefs.h <<_ACEOF
2217#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2218_ACEOF
2219
2220cat >>confdefs.h <<_ACEOF
2221#define PACKAGE_URL "$PACKAGE_URL"
2222_ACEOF
2223
2224
2225# Let the site file select an alternate cache file if it wants to.
2226# Prefer an explicitly selected file to automatically selected ones.
2227ac_site_file1=NONE
2228ac_site_file2=NONE
2229if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2230 # We do not want a PATH search for config.site.
2231 case $CONFIG_SITE in #((
2232 -*) ac_site_file1=./$CONFIG_SITE;;
2233 */*) ac_site_file1=$CONFIG_SITE;;
2234 *) ac_site_file1=./$CONFIG_SITE;;
2235 esac
87326c78
DD
2236elif test "x$prefix" != xNONE; then
2237 ac_site_file1=$prefix/share/config.site
2238 ac_site_file2=$prefix/etc/config.site
2239else
2240 ac_site_file1=$ac_default_prefix/share/config.site
2241 ac_site_file2=$ac_default_prefix/etc/config.site
2242fi
2243for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2244do
2245 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2246 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
87326c78
DD
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2248$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2249 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2250 . "$ac_site_file" \
2251 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2253as_fn_error $? "failed to load site script $ac_site_file
2254See \`config.log' for more details" "$LINENO" 5; }
87326c78
DD
2255 fi
2256done
2257
2258if test -r "$cache_file"; then
d0ac1c44
SM
2259 # Some versions of bash will fail to source /dev/null (special files
2260 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2261 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
87326c78
DD
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2263$as_echo "$as_me: loading cache $cache_file" >&6;}
2264 case $cache_file in
2265 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2266 *) . "./$cache_file";;
2267 esac
2268 fi
2269else
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2271$as_echo "$as_me: creating cache $cache_file" >&6;}
2272 >$cache_file
2273fi
2274
2275# Check that the precious variables saved in the cache have kept the same
2276# value.
2277ac_cache_corrupted=false
2278for ac_var in $ac_precious_vars; do
2279 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2280 eval ac_new_set=\$ac_env_${ac_var}_set
2281 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2282 eval ac_new_val=\$ac_env_${ac_var}_value
2283 case $ac_old_set,$ac_new_set in
2284 set,)
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2286$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2287 ac_cache_corrupted=: ;;
2288 ,set)
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2290$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2291 ac_cache_corrupted=: ;;
2292 ,);;
2293 *)
2294 if test "x$ac_old_val" != "x$ac_new_val"; then
2295 # differences in whitespace do not lead to failure.
2296 ac_old_val_w=`echo x $ac_old_val`
2297 ac_new_val_w=`echo x $ac_new_val`
2298 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2300$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2301 ac_cache_corrupted=:
2302 else
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2304$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2305 eval $ac_var=\$ac_old_val
2306 fi
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2308$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2310$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2311 fi;;
2312 esac
2313 # Pass precious variables to config.status.
2314 if test "$ac_new_set" = set; then
2315 case $ac_new_val in
2316 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2317 *) ac_arg=$ac_var=$ac_new_val ;;
2318 esac
2319 case " $ac_configure_args " in
2320 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2321 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2322 esac
2323 fi
2324done
2325if $ac_cache_corrupted; then
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2329$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2330 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
87326c78
DD
2331fi
2332## -------------------- ##
2333## Main body of script. ##
2334## -------------------- ##
2335
2336ac_ext=c
2337ac_cpp='$CPP $CPPFLAGS'
2338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340ac_compiler_gnu=$ac_cv_c_compiler_gnu
2341
2342
2343# This file contains common code used by all simulators.
2344#
2345# SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2346# directory. It is intended to be invoked before any target specific stuff.
2347# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2348# It is intended to be invoked last.
2349#
50df264d 2350# See README-HACKING for more details.
87326c78
DD
2351
2352# Include global overrides and fixes for Autoconf.
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
87326c78
DD
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
db2e4d67 2385
5c887dd5
JB
2386
2387
6bb11ab3 2388# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
db2e4d67 2389#
6bb11ab3
L
2390# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2391# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2392# Written by Gordon Matzigkeit, 1996
2393#
2394# This file is free software; the Free Software Foundation gives
2395# unlimited permission to copy and/or distribute it, with or without
2396# modifications, as long as this notice is preserved.
db2e4d67 2397
db2e4d67 2398
db2e4d67 2399
6bb11ab3 2400# serial 56 LT_INIT
db2e4d67
MF
2401
2402
6bb11ab3
L
2403# LT_PREREQ(VERSION)
2404# ------------------
2405# Complain and exit if this libtool version is less that VERSION.
db2e4d67 2406
db2e4d67
MF
2407
2408
6bb11ab3
L
2409# _LT_CHECK_BUILDDIR
2410# ------------------
2411# Complain if the absolute build directory name contains unusual characters
db2e4d67
MF
2412
2413
87326c78 2414
6bb11ab3
L
2415# LT_INIT([OPTIONS])
2416# ------------------
2417# LT_INIT
87326c78 2418
6bb11ab3
L
2419# Old names:
2420# This is what autoupdate's m4 run will expand. It fires
2421# the warning (with _au_warn_XXX), outputs it into the
2422# updated configure.ac (with AC_DIAGNOSE), and then outputs
2423# the replacement expansion.
87326c78
DD
2424
2425
6bb11ab3
L
2426# This is an auxiliary macro that is also run when
2427# autoupdate runs m4. It simply calls m4_warning, but
2428# we need a wrapper so that each warning is emitted only
2429# once. We break the quoting in m4_warning's argument in
2430# order to expand this macro's arguments, not AU_DEFUN's.
87326c78
DD
2431
2432
6bb11ab3
L
2433# Finally, this is the expansion that is picked up by
2434# autoconf. It tells the user to run autoupdate, and
2435# then outputs the replacement expansion. We do not care
2436# about autoupdate's warning because that contains
2437# information on what to do *after* running autoupdate.
87326c78 2438
6bb11ab3
L
2439# This is what autoupdate's m4 run will expand. It fires
2440# the warning (with _au_warn_XXX), outputs it into the
2441# updated configure.ac (with AC_DIAGNOSE), and then outputs
2442# the replacement expansion.
87326c78
DD
2443
2444
6bb11ab3
L
2445# This is an auxiliary macro that is also run when
2446# autoupdate runs m4. It simply calls m4_warning, but
2447# we need a wrapper so that each warning is emitted only
2448# once. We break the quoting in m4_warning's argument in
2449# order to expand this macro's arguments, not AU_DEFUN's.
87326c78
DD
2450
2451
6bb11ab3
L
2452# Finally, this is the expansion that is picked up by
2453# autoconf. It tells the user to run autoupdate, and
2454# then outputs the replacement expansion. We do not care
2455# about autoupdate's warning because that contains
2456# information on what to do *after* running autoupdate.
87326c78
DD
2457
2458
2459
6bb11ab3
L
2460# _LT_CC_BASENAME(CC)
2461# -------------------
2462# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
87326c78
DD
2463
2464
2465
6bb11ab3
L
2466# _LT_FILEUTILS_DEFAULTS
2467# ----------------------
2468# It is okay to use these file commands and assume they have been set
2469# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2470# _LT_FILEUTILS_DEFAULTS
87326c78
DD
2471
2472
6bb11ab3
L
2473# _LT_SETUP
2474# ---------
2475# _LT_SETUP
87326c78
DD
2476
2477
6bb11ab3
L
2478# _LT_PREPARE_SED_QUOTE_VARS
2479# --------------------------
2480# Define a few sed substitution that help us do robust quoting.
87326c78
DD
2481
2482
6bb11ab3
L
2483# _LT_PROG_LTMAIN
2484# ---------------
2485# Note that this code is called both from `configure', and `config.status'
2486# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2487# `config.status' has no value for ac_aux_dir unless we are using Automake,
2488# so we pass a copy along to make sure it has a sensible value anyway.
2489# _LT_PROG_LTMAIN
87326c78
DD
2490
2491
6bb11ab3
L
2492## ------------------------------------- ##
2493## Accumulate code for creating libtool. ##
2494## ------------------------------------- ##
87326c78 2495
6bb11ab3
L
2496# So that we can recreate a full libtool script including additional
2497# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2498# in macros and then make a single call at the end using the `libtool'
2499# label.
87326c78
DD
2500
2501
6bb11ab3
L
2502# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2503# ----------------------------------------
2504# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
87326c78
DD
2505
2506
6bb11ab3 2507# Initialize.
87326c78
DD
2508
2509
2510
6bb11ab3
L
2511# _LT_CONFIG_LIBTOOL([COMMANDS])
2512# ------------------------------
2513# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
87326c78
DD
2514
2515
6bb11ab3 2516# Initialize.
87326c78
DD
2517
2518
2519
6bb11ab3
L
2520# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2521# -----------------------------------------------------
87326c78
DD
2522
2523
2524
6bb11ab3
L
2525# _LT_FORMAT_COMMENT([COMMENT])
2526# -----------------------------
2527# Add leading comment marks to the start of each line, and a trailing
2528# full-stop to the whole comment if one is not present already.
87326c78
DD
2529
2530
2531
2532
6bb11ab3
L
2533## ------------------------ ##
2534## FIXME: Eliminate VARNAME ##
2535## ------------------------ ##
87326c78
DD
2536
2537
6bb11ab3
L
2538# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2539# -------------------------------------------------------------------
2540# CONFIGNAME is the name given to the value in the libtool script.
2541# VARNAME is the (base) name used in the configure script.
2542# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2543# VARNAME. Any other value will be used directly.
87326c78 2544
87326c78
DD
2545
2546
6bb11ab3
L
2547# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2548# --------------------------------------------------------
87326c78
DD
2549
2550
2551
6bb11ab3
L
2552# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2553# ------------------------------------------------
87326c78
DD
2554
2555
2556
6bb11ab3
L
2557# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2558# ---------------------------------------------------------
87326c78
DD
2559
2560
2561
6bb11ab3
L
2562# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2563# --------------------------------------------------
87326c78
DD
2564
2565
2566
6bb11ab3
L
2567# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2568# ---------------------------------------------------
87326c78
DD
2569
2570
2571
6bb11ab3
L
2572# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2573# ---------------------------------------------------
87326c78
DD
2574
2575
2576
2577
6bb11ab3
L
2578# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2579# ------------------------------------------------
87326c78
DD
2580
2581
2582
2583
6bb11ab3
L
2584# _LT_CONFIG_STATUS_DECLARE([VARNAME])
2585# ------------------------------------
2586# Quote a variable value, and forward it to `config.status' so that its
2587# declaration there will have the same value as in `configure'. VARNAME
2588# must have a single quote delimited value for this to work.
87326c78
DD
2589
2590
2591
6bb11ab3
L
2592# _LT_CONFIG_STATUS_DECLARATIONS
2593# ------------------------------
2594# We delimit libtool config variables with single quotes, so when
2595# we write them to config.status, we have to be sure to quote all
2596# embedded single quotes properly. In configure, this macro expands
2597# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2598#
2599# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
87326c78
DD
2600
2601
2602
6bb11ab3
L
2603# _LT_LIBTOOL_TAGS
2604# ----------------
2605# Output comment and list of tags supported by the script
87326c78
DD
2606
2607
2608
6bb11ab3
L
2609# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2610# -----------------------------------
2611# Extract the dictionary values for VARNAME (optionally with TAG) and
2612# expand to a commented shell variable setting:
2613#
2614# # Some comment about what VAR is for.
2615# visible_name=$lt_internal_name
87326c78
DD
2616
2617
87326c78 2618
6bb11ab3
L
2619# _LT_LIBTOOL_CONFIG_VARS
2620# -----------------------
2621# Produce commented declarations of non-tagged libtool config variables
2622# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2623# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2624# section) are produced by _LT_LIBTOOL_TAG_VARS.
87326c78
DD
2625
2626
2627
6bb11ab3
L
2628# _LT_LIBTOOL_TAG_VARS(TAG)
2629# -------------------------
87326c78
DD
2630
2631
2632
6bb11ab3
L
2633# _LT_TAGVAR(VARNAME, [TAGNAME])
2634# ------------------------------
87326c78
DD
2635
2636
2637
6bb11ab3
L
2638# _LT_CONFIG_COMMANDS
2639# -------------------
2640# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2641# variables for single and double quote escaping we saved from calls
2642# to _LT_DECL, we can put quote escaped variables declarations
2643# into `config.status', and then the shell code to quote escape them in
2644# for loops in `config.status'. Finally, any additional code accumulated
2645# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2646#_LT_CONFIG_COMMANDS
2647
2648
2649# Initialize.
2650
2651
2652# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2653# ------------------------------------
2654# Generate a child script FILE with all initialization necessary to
2655# reuse the environment learned by the parent script, and make the
2656# file executable. If COMMENT is supplied, it is inserted after the
2657# `#!' sequence but before initialization text begins. After this
2658# macro, additional text can be appended to FILE to form the body of
2659# the child script. The macro ends with non-zero status if the
2660# file could not be fully written (such as if the disk is full).
2661# _LT_GENERATED_FILE_INIT
2662
2663# LT_OUTPUT
2664# ---------
2665# This macro allows early generation of the libtool script (before
2666# AC_OUTPUT is called), incase it is used in configure for compilation
2667# tests.
2668# LT_OUTPUT
2669
2670
2671# _LT_CONFIG(TAG)
2672# ---------------
2673# If TAG is the built-in tag, create an initial libtool script with a
2674# default configuration from the untagged config vars. Otherwise add code
2675# to config.status for appending the configuration named by TAG from the
2676# matching tagged config vars.
2677# _LT_CONFIG
87326c78
DD
2678
2679
6bb11ab3
L
2680# LT_SUPPORTED_TAG(TAG)
2681# ---------------------
2682# Trace this macro to discover what tags are supported by the libtool
2683# --tag option, using:
2684# autoconf --trace 'LT_SUPPORTED_TAG:$1'
87326c78 2685
87326c78 2686
87326c78 2687
6bb11ab3 2688# C support is built-in for now
87326c78 2689
87326c78
DD
2690
2691
2692
6bb11ab3
L
2693# LT_LANG(LANG)
2694# -------------
2695# Enable libtool support for the given language if not already enabled.
2696# LT_LANG
87326c78
DD
2697
2698
6bb11ab3
L
2699# _LT_LANG(LANGNAME)
2700# ------------------
2701# _LT_LANG
87326c78
DD
2702
2703
6bb11ab3
L
2704# _LT_LANG_DEFAULT_CONFIG
2705# -----------------------
2706# _LT_LANG_DEFAULT_CONFIG
87326c78 2707
6bb11ab3
L
2708# Obsolete macros:
2709# This is what autoupdate's m4 run will expand. It fires
2710# the warning (with _au_warn_XXX), outputs it into the
2711# updated configure.ac (with AC_DIAGNOSE), and then outputs
2712# the replacement expansion.
87326c78 2713
87326c78 2714
6bb11ab3
L
2715# This is an auxiliary macro that is also run when
2716# autoupdate runs m4. It simply calls m4_warning, but
2717# we need a wrapper so that each warning is emitted only
2718# once. We break the quoting in m4_warning's argument in
2719# order to expand this macro's arguments, not AU_DEFUN's.
87326c78 2720
87326c78 2721
6bb11ab3
L
2722# Finally, this is the expansion that is picked up by
2723# autoconf. It tells the user to run autoupdate, and
2724# then outputs the replacement expansion. We do not care
2725# about autoupdate's warning because that contains
2726# information on what to do *after* running autoupdate.
87326c78 2727
6bb11ab3
L
2728# This is what autoupdate's m4 run will expand. It fires
2729# the warning (with _au_warn_XXX), outputs it into the
2730# updated configure.ac (with AC_DIAGNOSE), and then outputs
2731# the replacement expansion.
87326c78
DD
2732
2733
6bb11ab3
L
2734# This is an auxiliary macro that is also run when
2735# autoupdate runs m4. It simply calls m4_warning, but
2736# we need a wrapper so that each warning is emitted only
2737# once. We break the quoting in m4_warning's argument in
2738# order to expand this macro's arguments, not AU_DEFUN's.
87326c78
DD
2739
2740
6bb11ab3
L
2741# Finally, this is the expansion that is picked up by
2742# autoconf. It tells the user to run autoupdate, and
2743# then outputs the replacement expansion. We do not care
2744# about autoupdate's warning because that contains
2745# information on what to do *after* running autoupdate.
87326c78 2746
6bb11ab3
L
2747# This is what autoupdate's m4 run will expand. It fires
2748# the warning (with _au_warn_XXX), outputs it into the
2749# updated configure.ac (with AC_DIAGNOSE), and then outputs
2750# the replacement expansion.
87326c78
DD
2751
2752
6bb11ab3
L
2753# This is an auxiliary macro that is also run when
2754# autoupdate runs m4. It simply calls m4_warning, but
2755# we need a wrapper so that each warning is emitted only
2756# once. We break the quoting in m4_warning's argument in
2757# order to expand this macro's arguments, not AU_DEFUN's.
87326c78
DD
2758
2759
6bb11ab3
L
2760# Finally, this is the expansion that is picked up by
2761# autoconf. It tells the user to run autoupdate, and
2762# then outputs the replacement expansion. We do not care
2763# about autoupdate's warning because that contains
2764# information on what to do *after* running autoupdate.
87326c78 2765
6bb11ab3
L
2766# This is what autoupdate's m4 run will expand. It fires
2767# the warning (with _au_warn_XXX), outputs it into the
2768# updated configure.ac (with AC_DIAGNOSE), and then outputs
2769# the replacement expansion.
87326c78
DD
2770
2771
6bb11ab3
L
2772# This is an auxiliary macro that is also run when
2773# autoupdate runs m4. It simply calls m4_warning, but
2774# we need a wrapper so that each warning is emitted only
2775# once. We break the quoting in m4_warning's argument in
2776# order to expand this macro's arguments, not AU_DEFUN's.
87326c78
DD
2777
2778
6bb11ab3
L
2779# Finally, this is the expansion that is picked up by
2780# autoconf. It tells the user to run autoupdate, and
2781# then outputs the replacement expansion. We do not care
2782# about autoupdate's warning because that contains
2783# information on what to do *after* running autoupdate.
87326c78 2784
6bb11ab3
L
2785# This is what autoupdate's m4 run will expand. It fires
2786# the warning (with _au_warn_XXX), outputs it into the
2787# updated configure.ac (with AC_DIAGNOSE), and then outputs
2788# the replacement expansion.
87326c78
DD
2789
2790
6bb11ab3
L
2791# This is an auxiliary macro that is also run when
2792# autoupdate runs m4. It simply calls m4_warning, but
2793# we need a wrapper so that each warning is emitted only
2794# once. We break the quoting in m4_warning's argument in
2795# order to expand this macro's arguments, not AU_DEFUN's.
87326c78
DD
2796
2797
6bb11ab3
L
2798# Finally, this is the expansion that is picked up by
2799# autoconf. It tells the user to run autoupdate, and
2800# then outputs the replacement expansion. We do not care
2801# about autoupdate's warning because that contains
2802# information on what to do *after* running autoupdate.
87326c78
DD
2803
2804
2805
6bb11ab3
L
2806# _LT_TAG_COMPILER
2807# ----------------
2808# _LT_TAG_COMPILER
87326c78
DD
2809
2810
6bb11ab3
L
2811# _LT_COMPILER_BOILERPLATE
2812# ------------------------
2813# Check for compiler boilerplate output or warnings with
2814# the simple compiler test code.
2815# _LT_COMPILER_BOILERPLATE
87326c78 2816
87326c78 2817
6bb11ab3
L
2818# _LT_LINKER_BOILERPLATE
2819# ----------------------
2820# Check for linker boilerplate output or warnings with
2821# the simple link test code.
2822# _LT_LINKER_BOILERPLATE
87326c78 2823
6bb11ab3
L
2824# _LT_REQUIRED_DARWIN_CHECKS
2825# -------------------------
87326c78 2826
87326c78 2827
87326c78 2828
6bb11ab3
L
2829# _LT_DARWIN_LINKER_FEATURES
2830# --------------------------
2831# Checks for linker and compiler features on darwin
87326c78 2832
87326c78 2833
6bb11ab3
L
2834# _LT_SYS_MODULE_PATH_AIX
2835# -----------------------
2836# Links a minimal program and checks the executable
2837# for the system default hardcoded library path. In most cases,
2838# this is /usr/lib:/lib, but when the MPI compilers are used
2839# the location of the communication and MPI libs are included too.
2840# If we don't find anything, use the default library path according
2841# to the aix ld manual.
2842# _LT_SYS_MODULE_PATH_AIX
87326c78
DD
2843
2844
6bb11ab3
L
2845# _LT_SHELL_INIT(ARG)
2846# -------------------
2847# _LT_SHELL_INIT
87326c78 2848
87326c78
DD
2849
2850
6bb11ab3
L
2851# _LT_PROG_ECHO_BACKSLASH
2852# -----------------------
2853# Find how we can fake an echo command that does not interpret backslash.
2854# In particular, with Autoconf 2.60 or later we add some code to the start
2855# of the generated configure script which will find a shell with a builtin
2856# printf (which we can use as an echo command).
2857# _LT_PROG_ECHO_BACKSLASH
87326c78 2858
87326c78 2859
6bb11ab3
L
2860# _LT_ENABLE_LOCK
2861# ---------------
2862# _LT_ENABLE_LOCK
87326c78 2863
87326c78 2864
6bb11ab3
L
2865# _LT_CMD_OLD_ARCHIVE
2866# -------------------
2867# _LT_CMD_OLD_ARCHIVE
87326c78
DD
2868
2869
6bb11ab3
L
2870# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2871# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2872# ----------------------------------------------------------------
2873# Check whether the given compiler option works
2874# _LT_COMPILER_OPTION
87326c78 2875
6bb11ab3
L
2876# Old name:
2877# This is what autoupdate's m4 run will expand. It fires
2878# the warning (with _au_warn_XXX), outputs it into the
2879# updated configure.ac (with AC_DIAGNOSE), and then outputs
2880# the replacement expansion.
87326c78 2881
87326c78 2882
6bb11ab3
L
2883# This is an auxiliary macro that is also run when
2884# autoupdate runs m4. It simply calls m4_warning, but
2885# we need a wrapper so that each warning is emitted only
2886# once. We break the quoting in m4_warning's argument in
2887# order to expand this macro's arguments, not AU_DEFUN's.
87326c78 2888
87326c78 2889
6bb11ab3
L
2890# Finally, this is the expansion that is picked up by
2891# autoconf. It tells the user to run autoupdate, and
2892# then outputs the replacement expansion. We do not care
2893# about autoupdate's warning because that contains
2894# information on what to do *after* running autoupdate.
87326c78 2895
87326c78 2896
87326c78 2897
6bb11ab3
L
2898# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2899# [ACTION-SUCCESS], [ACTION-FAILURE])
2900# ----------------------------------------------------
2901# Check whether the given linker option works
2902# _LT_LINKER_OPTION
87326c78 2903
6bb11ab3
L
2904# Old name:
2905# This is what autoupdate's m4 run will expand. It fires
2906# the warning (with _au_warn_XXX), outputs it into the
2907# updated configure.ac (with AC_DIAGNOSE), and then outputs
2908# the replacement expansion.
87326c78 2909
87326c78 2910
6bb11ab3
L
2911# This is an auxiliary macro that is also run when
2912# autoupdate runs m4. It simply calls m4_warning, but
2913# we need a wrapper so that each warning is emitted only
2914# once. We break the quoting in m4_warning's argument in
2915# order to expand this macro's arguments, not AU_DEFUN's.
87326c78 2916
87326c78 2917
6bb11ab3
L
2918# Finally, this is the expansion that is picked up by
2919# autoconf. It tells the user to run autoupdate, and
2920# then outputs the replacement expansion. We do not care
2921# about autoupdate's warning because that contains
2922# information on what to do *after* running autoupdate.
2923
2924
2925
2926# LT_CMD_MAX_LEN
2927#---------------
2928# LT_CMD_MAX_LEN
2929
2930# Old name:
2931# This is what autoupdate's m4 run will expand. It fires
2932# the warning (with _au_warn_XXX), outputs it into the
2933# updated configure.ac (with AC_DIAGNOSE), and then outputs
2934# the replacement expansion.
2935
2936
2937# This is an auxiliary macro that is also run when
2938# autoupdate runs m4. It simply calls m4_warning, but
2939# we need a wrapper so that each warning is emitted only
2940# once. We break the quoting in m4_warning's argument in
2941# order to expand this macro's arguments, not AU_DEFUN's.
2942
2943
2944# Finally, this is the expansion that is picked up by
2945# autoconf. It tells the user to run autoupdate, and
2946# then outputs the replacement expansion. We do not care
2947# about autoupdate's warning because that contains
2948# information on what to do *after* running autoupdate.
2949
2950
2951
2952# _LT_HEADER_DLFCN
2953# ----------------
2954# _LT_HEADER_DLFCN
2955
2956
2957# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2958# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2959# ----------------------------------------------------------------
2960# _LT_TRY_DLOPEN_SELF
2961
2962
2963# LT_SYS_DLOPEN_SELF
2964# ------------------
2965# LT_SYS_DLOPEN_SELF
2966
2967# Old name:
2968# This is what autoupdate's m4 run will expand. It fires
2969# the warning (with _au_warn_XXX), outputs it into the
2970# updated configure.ac (with AC_DIAGNOSE), and then outputs
2971# the replacement expansion.
2972
2973
2974# This is an auxiliary macro that is also run when
2975# autoupdate runs m4. It simply calls m4_warning, but
2976# we need a wrapper so that each warning is emitted only
2977# once. We break the quoting in m4_warning's argument in
2978# order to expand this macro's arguments, not AU_DEFUN's.
2979
2980
2981# Finally, this is the expansion that is picked up by
2982# autoconf. It tells the user to run autoupdate, and
2983# then outputs the replacement expansion. We do not care
2984# about autoupdate's warning because that contains
2985# information on what to do *after* running autoupdate.
2986
2987
2988
2989# _LT_COMPILER_C_O([TAGNAME])
2990# ---------------------------
2991# Check to see if options -c and -o are simultaneously supported by compiler.
2992# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2993# _LT_COMPILER_C_O
2994
2995
2996# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2997# ----------------------------------
2998# Check to see if we can do hard links to lock some files if needed
2999# _LT_COMPILER_FILE_LOCKS
3000
3001
3002# _LT_CHECK_OBJDIR
3003# ----------------
3004# _LT_CHECK_OBJDIR
3005
3006
3007# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3008# --------------------------------------
3009# Check hardcoding attributes.
3010# _LT_LINKER_HARDCODE_LIBPATH
3011
3012
3013# _LT_CMD_STRIPLIB
3014# ----------------
3015# _LT_CMD_STRIPLIB
3016
3017
3018# _LT_SYS_DYNAMIC_LINKER([TAG])
3019# -----------------------------
3020# PORTME Fill in your ld.so characteristics
3021# _LT_SYS_DYNAMIC_LINKER
3022
3023
3024# _LT_PATH_TOOL_PREFIX(TOOL)
3025# --------------------------
3026# find a file program which can recognize shared library
3027# _LT_PATH_TOOL_PREFIX
3028
3029# Old name:
3030# This is what autoupdate's m4 run will expand. It fires
3031# the warning (with _au_warn_XXX), outputs it into the
3032# updated configure.ac (with AC_DIAGNOSE), and then outputs
3033# the replacement expansion.
3034
3035
3036# This is an auxiliary macro that is also run when
3037# autoupdate runs m4. It simply calls m4_warning, but
3038# we need a wrapper so that each warning is emitted only
3039# once. We break the quoting in m4_warning's argument in
3040# order to expand this macro's arguments, not AU_DEFUN's.
3041
3042
3043# Finally, this is the expansion that is picked up by
3044# autoconf. It tells the user to run autoupdate, and
3045# then outputs the replacement expansion. We do not care
3046# about autoupdate's warning because that contains
3047# information on what to do *after* running autoupdate.
3048
3049
3050
3051# _LT_PATH_MAGIC
3052# --------------
3053# find a file program which can recognize a shared library
3054# _LT_PATH_MAGIC
3055
3056
3057# LT_PATH_LD
3058# ----------
3059# find the pathname to the GNU or non-GNU linker
3060# LT_PATH_LD
3061
3062# Old names:
3063# This is what autoupdate's m4 run will expand. It fires
3064# the warning (with _au_warn_XXX), outputs it into the
3065# updated configure.ac (with AC_DIAGNOSE), and then outputs
3066# the replacement expansion.
3067
3068
3069# This is an auxiliary macro that is also run when
3070# autoupdate runs m4. It simply calls m4_warning, but
3071# we need a wrapper so that each warning is emitted only
3072# once. We break the quoting in m4_warning's argument in
3073# order to expand this macro's arguments, not AU_DEFUN's.
3074
3075
3076# Finally, this is the expansion that is picked up by
3077# autoconf. It tells the user to run autoupdate, and
3078# then outputs the replacement expansion. We do not care
3079# about autoupdate's warning because that contains
3080# information on what to do *after* running autoupdate.
3081
3082# This is what autoupdate's m4 run will expand. It fires
3083# the warning (with _au_warn_XXX), outputs it into the
3084# updated configure.ac (with AC_DIAGNOSE), and then outputs
3085# the replacement expansion.
3086
3087
3088# This is an auxiliary macro that is also run when
3089# autoupdate runs m4. It simply calls m4_warning, but
3090# we need a wrapper so that each warning is emitted only
3091# once. We break the quoting in m4_warning's argument in
3092# order to expand this macro's arguments, not AU_DEFUN's.
3093
3094
3095# Finally, this is the expansion that is picked up by
3096# autoconf. It tells the user to run autoupdate, and
3097# then outputs the replacement expansion. We do not care
3098# about autoupdate's warning because that contains
3099# information on what to do *after* running autoupdate.
3100
3101
3102
3103# _LT_PATH_LD_GNU
3104#- --------------
3105# _LT_PATH_LD_GNU
3106
3107
3108# _LT_CMD_RELOAD
3109# --------------
3110# find reload flag for linker
3111# -- PORTME Some linkers may need a different reload flag.
3112# _LT_CMD_RELOAD
3113
3114
3115# _LT_CHECK_MAGIC_METHOD
3116# ----------------------
3117# how to check for library dependencies
3118# -- PORTME fill in with the dynamic library characteristics
3119# _LT_CHECK_MAGIC_METHOD
3120
3121
3122# LT_PATH_NM
3123# ----------
3124# find the pathname to a BSD- or MS-compatible name lister
3125# LT_PATH_NM
3126
3127# Old names:
3128# This is what autoupdate's m4 run will expand. It fires
3129# the warning (with _au_warn_XXX), outputs it into the
3130# updated configure.ac (with AC_DIAGNOSE), and then outputs
3131# the replacement expansion.
3132
3133
3134# This is an auxiliary macro that is also run when
3135# autoupdate runs m4. It simply calls m4_warning, but
3136# we need a wrapper so that each warning is emitted only
3137# once. We break the quoting in m4_warning's argument in
3138# order to expand this macro's arguments, not AU_DEFUN's.
3139
3140
3141# Finally, this is the expansion that is picked up by
3142# autoconf. It tells the user to run autoupdate, and
3143# then outputs the replacement expansion. We do not care
3144# about autoupdate's warning because that contains
3145# information on what to do *after* running autoupdate.
3146
3147# This is what autoupdate's m4 run will expand. It fires
3148# the warning (with _au_warn_XXX), outputs it into the
3149# updated configure.ac (with AC_DIAGNOSE), and then outputs
3150# the replacement expansion.
3151
3152
3153# This is an auxiliary macro that is also run when
3154# autoupdate runs m4. It simply calls m4_warning, but
3155# we need a wrapper so that each warning is emitted only
3156# once. We break the quoting in m4_warning's argument in
3157# order to expand this macro's arguments, not AU_DEFUN's.
3158
3159
3160# Finally, this is the expansion that is picked up by
3161# autoconf. It tells the user to run autoupdate, and
3162# then outputs the replacement expansion. We do not care
3163# about autoupdate's warning because that contains
3164# information on what to do *after* running autoupdate.
3165
3166
3167
3168# LT_LIB_M
3169# --------
3170# check for math library
3171# LT_LIB_M
3172
3173# Old name:
3174# This is what autoupdate's m4 run will expand. It fires
3175# the warning (with _au_warn_XXX), outputs it into the
3176# updated configure.ac (with AC_DIAGNOSE), and then outputs
3177# the replacement expansion.
3178
3179
3180# This is an auxiliary macro that is also run when
3181# autoupdate runs m4. It simply calls m4_warning, but
3182# we need a wrapper so that each warning is emitted only
3183# once. We break the quoting in m4_warning's argument in
3184# order to expand this macro's arguments, not AU_DEFUN's.
3185
3186
3187# Finally, this is the expansion that is picked up by
3188# autoconf. It tells the user to run autoupdate, and
3189# then outputs the replacement expansion. We do not care
3190# about autoupdate's warning because that contains
3191# information on what to do *after* running autoupdate.
3192
3193
3194
3195# _LT_COMPILER_NO_RTTI([TAGNAME])
3196# -------------------------------
3197# _LT_COMPILER_NO_RTTI
3198
3199
3200# _LT_CMD_GLOBAL_SYMBOLS
3201# ----------------------
3202 # _LT_CMD_GLOBAL_SYMBOLS
3203
3204
3205# _LT_COMPILER_PIC([TAGNAME])
3206# ---------------------------
3207# _LT_COMPILER_PIC
3208
3209
3210# _LT_LINKER_SHLIBS([TAGNAME])
3211# ----------------------------
3212# See if the linker supports building shared libraries.
3213# _LT_LINKER_SHLIBS
3214
3215
3216# _LT_LANG_C_CONFIG([TAG])
3217# ------------------------
3218# Ensure that the configuration variables for a C compiler are suitably
3219# defined. These variables are subsequently used by _LT_CONFIG to write
3220# the compiler configuration to `libtool'.
3221# _LT_LANG_C_CONFIG
3222
3223
3224# _LT_LANG_CXX_CONFIG([TAG])
3225# --------------------------
3226# Ensure that the configuration variables for a C++ compiler are suitably
3227# defined. These variables are subsequently used by _LT_CONFIG to write
3228# the compiler configuration to `libtool'.
3229# _LT_LANG_CXX_CONFIG
3230
3231
3232# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3233# ---------------------------------
3234# Figure out "hidden" library dependencies from verbose
3235# compiler output when linking a shared library.
3236# Parse the compiler output and extract the necessary
3237# objects, libraries and library flags.
3238# _LT_SYS_HIDDEN_LIBDEPS
3239
3240
3241# _LT_LANG_F77_CONFIG([TAG])
3242# --------------------------
3243# Ensure that the configuration variables for a Fortran 77 compiler are
3244# suitably defined. These variables are subsequently used by _LT_CONFIG
3245# to write the compiler configuration to `libtool'.
3246# _LT_LANG_F77_CONFIG
3247
3248
3249# _LT_LANG_FC_CONFIG([TAG])
3250# -------------------------
3251# Ensure that the configuration variables for a Fortran compiler are
3252# suitably defined. These variables are subsequently used by _LT_CONFIG
3253# to write the compiler configuration to `libtool'.
3254# _LT_LANG_FC_CONFIG
3255
3256
3257# _LT_LANG_GCJ_CONFIG([TAG])
3258# --------------------------
3259# Ensure that the configuration variables for the GNU Java Compiler compiler
3260# are suitably defined. These variables are subsequently used by _LT_CONFIG
3261# to write the compiler configuration to `libtool'.
3262# _LT_LANG_GCJ_CONFIG
3263
3264
3265# _LT_LANG_RC_CONFIG([TAG])
3266# -------------------------
3267# Ensure that the configuration variables for the Windows resource compiler
3268# are suitably defined. These variables are subsequently used by _LT_CONFIG
3269# to write the compiler configuration to `libtool'.
3270# _LT_LANG_RC_CONFIG
3271
3272
3273# LT_PROG_GCJ
3274# -----------
3275
3276
3277# Old name:
3278# This is what autoupdate's m4 run will expand. It fires
3279# the warning (with _au_warn_XXX), outputs it into the
3280# updated configure.ac (with AC_DIAGNOSE), and then outputs
3281# the replacement expansion.
3282
3283
3284# This is an auxiliary macro that is also run when
3285# autoupdate runs m4. It simply calls m4_warning, but
3286# we need a wrapper so that each warning is emitted only
3287# once. We break the quoting in m4_warning's argument in
3288# order to expand this macro's arguments, not AU_DEFUN's.
3289
3290
3291# Finally, this is the expansion that is picked up by
3292# autoconf. It tells the user to run autoupdate, and
3293# then outputs the replacement expansion. We do not care
3294# about autoupdate's warning because that contains
3295# information on what to do *after* running autoupdate.
3296
3297
3298
3299# LT_PROG_RC
3300# ----------
3301
3302
3303# Old name:
3304# This is what autoupdate's m4 run will expand. It fires
3305# the warning (with _au_warn_XXX), outputs it into the
3306# updated configure.ac (with AC_DIAGNOSE), and then outputs
3307# the replacement expansion.
3308
3309
3310# This is an auxiliary macro that is also run when
3311# autoupdate runs m4. It simply calls m4_warning, but
3312# we need a wrapper so that each warning is emitted only
3313# once. We break the quoting in m4_warning's argument in
3314# order to expand this macro's arguments, not AU_DEFUN's.
3315
3316
3317# Finally, this is the expansion that is picked up by
3318# autoconf. It tells the user to run autoupdate, and
3319# then outputs the replacement expansion. We do not care
3320# about autoupdate's warning because that contains
3321# information on what to do *after* running autoupdate.
3322
3323
3324
3325# _LT_DECL_EGREP
3326# --------------
3327# If we don't have a new enough Autoconf to choose the best grep
3328# available, choose the one first in the user's PATH.
3329
3330
3331
3332# _LT_DECL_OBJDUMP
3333# --------------
3334# If we don't have a new enough Autoconf to choose the best objdump
3335# available, choose the one first in the user's PATH.
3336
3337
3338
3339# _LT_DECL_SED
3340# ------------
3341# Check for a fully-functional sed program, that truncates
3342# as few characters as possible. Prefer GNU sed if found.
3343# _LT_DECL_SED
3344
3345#m4_ifndef
3346
3347# Old name:
3348# This is what autoupdate's m4 run will expand. It fires
3349# the warning (with _au_warn_XXX), outputs it into the
3350# updated configure.ac (with AC_DIAGNOSE), and then outputs
3351# the replacement expansion.
3352
3353
3354# This is an auxiliary macro that is also run when
3355# autoupdate runs m4. It simply calls m4_warning, but
3356# we need a wrapper so that each warning is emitted only
3357# once. We break the quoting in m4_warning's argument in
3358# order to expand this macro's arguments, not AU_DEFUN's.
3359
3360
3361# Finally, this is the expansion that is picked up by
3362# autoconf. It tells the user to run autoupdate, and
3363# then outputs the replacement expansion. We do not care
3364# about autoupdate's warning because that contains
3365# information on what to do *after* running autoupdate.
3366
3367
3368
3369# _LT_CHECK_SHELL_FEATURES
3370# ------------------------
3371# Find out whether the shell is Bourne or XSI compatible,
3372# or has some other useful features.
3373# _LT_CHECK_SHELL_FEATURES
3374
3375
3376# _LT_PROG_XSI_SHELLFNS
3377# ---------------------
3378# Bourne and XSI compatible variants of some useful shell functions.
3379
3380
3381# Helper functions for option handling. -*- Autoconf -*-
3382#
3383# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3384# Inc.
3385# Written by Gary V. Vaughan, 2004
3386#
3387# This file is free software; the Free Software Foundation gives
3388# unlimited permission to copy and/or distribute it, with or without
3389# modifications, as long as this notice is preserved.
3390
3391# serial 6 ltoptions.m4
3392
3393# This is to help aclocal find these macros, as it can't see m4_define.
3394
3395
3396
3397# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
3398# ------------------------------------------
3399
3400
3401
3402# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
3403# ---------------------------------------
3404# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
3405# matching handler defined, dispatch to it. Other OPTION-NAMEs are
3406# saved as a flag.
3407
3408
3409
3410# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3411# ------------------------------------------------------------
3412# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3413
3414
3415
3416# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
3417# -------------------------------------------------------
3418# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
3419# are set.
3420
3421
3422
3423# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
3424# ----------------------------------------
3425# OPTION-LIST is a space-separated list of Libtool options associated
3426# with MACRO-NAME. If any OPTION has a matching handler declared with
3427# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
3428# the unknown option and exit.
3429# _LT_SET_OPTIONS
3430
3431
3432## --------------------------------- ##
3433## Macros to handle LT_INIT options. ##
3434## --------------------------------- ##
3435
3436# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
3437# -----------------------------------------
3438
3439
3440
3441# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
3442# -----------------------------------------------
3443# LT_OPTION_DEFINE
3444
3445
3446# dlopen
3447# ------
3448
3449
3450# This is what autoupdate's m4 run will expand. It fires
3451# the warning (with _au_warn_XXX), outputs it into the
3452# updated configure.ac (with AC_DIAGNOSE), and then outputs
3453# the replacement expansion.
3454
3455
3456# This is an auxiliary macro that is also run when
3457# autoupdate runs m4. It simply calls m4_warning, but
3458# we need a wrapper so that each warning is emitted only
3459# once. We break the quoting in m4_warning's argument in
3460# order to expand this macro's arguments, not AU_DEFUN's.
3461
3462
3463# Finally, this is the expansion that is picked up by
3464# autoconf. It tells the user to run autoupdate, and
3465# then outputs the replacement expansion. We do not care
3466# about autoupdate's warning because that contains
3467# information on what to do *after* running autoupdate.
3468
3469
3470
3471
3472# win32-dll
3473# ---------
3474# Declare package support for building win32 dll's.
3475# win32-dll
3476
3477# This is what autoupdate's m4 run will expand. It fires
3478# the warning (with _au_warn_XXX), outputs it into the
3479# updated configure.ac (with AC_DIAGNOSE), and then outputs
3480# the replacement expansion.
3481
3482
3483# This is an auxiliary macro that is also run when
3484# autoupdate runs m4. It simply calls m4_warning, but
3485# we need a wrapper so that each warning is emitted only
3486# once. We break the quoting in m4_warning's argument in
3487# order to expand this macro's arguments, not AU_DEFUN's.
3488
3489
3490# Finally, this is the expansion that is picked up by
3491# autoconf. It tells the user to run autoupdate, and
3492# then outputs the replacement expansion. We do not care
3493# about autoupdate's warning because that contains
3494# information on what to do *after* running autoupdate.
3495
3496
3497
3498
3499# _LT_ENABLE_SHARED([DEFAULT])
3500# ----------------------------
3501# implement the --enable-shared flag, and supports the `shared' and
3502# `disable-shared' LT_INIT options.
3503# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3504# _LT_ENABLE_SHARED
3505
3506
3507
3508
3509# Old names:
3510
3511
3512
3513
3514# This is what autoupdate's m4 run will expand. It fires
3515# the warning (with _au_warn_XXX), outputs it into the
3516# updated configure.ac (with AC_DIAGNOSE), and then outputs
3517# the replacement expansion.
3518
3519
3520# This is an auxiliary macro that is also run when
3521# autoupdate runs m4. It simply calls m4_warning, but
3522# we need a wrapper so that each warning is emitted only
3523# once. We break the quoting in m4_warning's argument in
3524# order to expand this macro's arguments, not AU_DEFUN's.
3525
3526
3527# Finally, this is the expansion that is picked up by
3528# autoconf. It tells the user to run autoupdate, and
3529# then outputs the replacement expansion. We do not care
3530# about autoupdate's warning because that contains
3531# information on what to do *after* running autoupdate.
3532
3533# This is what autoupdate's m4 run will expand. It fires
3534# the warning (with _au_warn_XXX), outputs it into the
3535# updated configure.ac (with AC_DIAGNOSE), and then outputs
3536# the replacement expansion.
3537
3538
3539# This is an auxiliary macro that is also run when
3540# autoupdate runs m4. It simply calls m4_warning, but
3541# we need a wrapper so that each warning is emitted only
3542# once. We break the quoting in m4_warning's argument in
3543# order to expand this macro's arguments, not AU_DEFUN's.
3544
3545
3546# Finally, this is the expansion that is picked up by
3547# autoconf. It tells the user to run autoupdate, and
3548# then outputs the replacement expansion. We do not care
3549# about autoupdate's warning because that contains
3550# information on what to do *after* running autoupdate.
3551
3552
3553
3554
3555
3556# _LT_ENABLE_STATIC([DEFAULT])
3557# ----------------------------
3558# implement the --enable-static flag, and support the `static' and
3559# `disable-static' LT_INIT options.
3560# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3561# _LT_ENABLE_STATIC
3562
3563
3564
3565
3566# Old names:
3567
3568
3569
3570
3571# This is what autoupdate's m4 run will expand. It fires
3572# the warning (with _au_warn_XXX), outputs it into the
3573# updated configure.ac (with AC_DIAGNOSE), and then outputs
3574# the replacement expansion.
3575
3576
3577# This is an auxiliary macro that is also run when
3578# autoupdate runs m4. It simply calls m4_warning, but
3579# we need a wrapper so that each warning is emitted only
3580# once. We break the quoting in m4_warning's argument in
3581# order to expand this macro's arguments, not AU_DEFUN's.
3582
3583
3584# Finally, this is the expansion that is picked up by
3585# autoconf. It tells the user to run autoupdate, and
3586# then outputs the replacement expansion. We do not care
3587# about autoupdate's warning because that contains
3588# information on what to do *after* running autoupdate.
3589
3590# This is what autoupdate's m4 run will expand. It fires
3591# the warning (with _au_warn_XXX), outputs it into the
3592# updated configure.ac (with AC_DIAGNOSE), and then outputs
3593# the replacement expansion.
3594
3595
3596# This is an auxiliary macro that is also run when
3597# autoupdate runs m4. It simply calls m4_warning, but
3598# we need a wrapper so that each warning is emitted only
3599# once. We break the quoting in m4_warning's argument in
3600# order to expand this macro's arguments, not AU_DEFUN's.
3601
3602
3603# Finally, this is the expansion that is picked up by
3604# autoconf. It tells the user to run autoupdate, and
3605# then outputs the replacement expansion. We do not care
3606# about autoupdate's warning because that contains
3607# information on what to do *after* running autoupdate.
3608
3609
3610
3611
3612
3613# _LT_ENABLE_FAST_INSTALL([DEFAULT])
3614# ----------------------------------
3615# implement the --enable-fast-install flag, and support the `fast-install'
3616# and `disable-fast-install' LT_INIT options.
3617# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3618# _LT_ENABLE_FAST_INSTALL
3619
3620
3621
3622
3623# Old names:
3624# This is what autoupdate's m4 run will expand. It fires
3625# the warning (with _au_warn_XXX), outputs it into the
3626# updated configure.ac (with AC_DIAGNOSE), and then outputs
3627# the replacement expansion.
3628
3629
3630# This is an auxiliary macro that is also run when
3631# autoupdate runs m4. It simply calls m4_warning, but
3632# we need a wrapper so that each warning is emitted only
3633# once. We break the quoting in m4_warning's argument in
3634# order to expand this macro's arguments, not AU_DEFUN's.
3635
3636
3637# Finally, this is the expansion that is picked up by
3638# autoconf. It tells the user to run autoupdate, and
3639# then outputs the replacement expansion. We do not care
3640# about autoupdate's warning because that contains
3641# information on what to do *after* running autoupdate.
3642
3643
3644# This is what autoupdate's m4 run will expand. It fires
3645# the warning (with _au_warn_XXX), outputs it into the
3646# updated configure.ac (with AC_DIAGNOSE), and then outputs
3647# the replacement expansion.
3648
3649
3650# This is an auxiliary macro that is also run when
3651# autoupdate runs m4. It simply calls m4_warning, but
3652# we need a wrapper so that each warning is emitted only
3653# once. We break the quoting in m4_warning's argument in
3654# order to expand this macro's arguments, not AU_DEFUN's.
3655
3656
3657# Finally, this is the expansion that is picked up by
3658# autoconf. It tells the user to run autoupdate, and
3659# then outputs the replacement expansion. We do not care
3660# about autoupdate's warning because that contains
3661# information on what to do *after* running autoupdate.
3662
3663
3664
3665
3666# _LT_WITH_PIC([MODE])
3667# --------------------
3668# implement the --with-pic flag, and support the `pic-only' and `no-pic'
3669# LT_INIT options.
3670# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3671# _LT_WITH_PIC
3672
3673
3674
3675
3676# Old name:
3677# This is what autoupdate's m4 run will expand. It fires
3678# the warning (with _au_warn_XXX), outputs it into the
3679# updated configure.ac (with AC_DIAGNOSE), and then outputs
3680# the replacement expansion.
3681
3682
3683# This is an auxiliary macro that is also run when
3684# autoupdate runs m4. It simply calls m4_warning, but
3685# we need a wrapper so that each warning is emitted only
3686# once. We break the quoting in m4_warning's argument in
3687# order to expand this macro's arguments, not AU_DEFUN's.
3688
3689
3690# Finally, this is the expansion that is picked up by
3691# autoconf. It tells the user to run autoupdate, and
3692# then outputs the replacement expansion. We do not care
3693# about autoupdate's warning because that contains
3694# information on what to do *after* running autoupdate.
3695
3696
3697
3698## ----------------- ##
3699## LTDL_INIT Options ##
3700## ----------------- ##
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3712#
3713# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3714# Written by Gary V. Vaughan, 2004
3715#
3716# This file is free software; the Free Software Foundation gives
3717# unlimited permission to copy and/or distribute it, with or without
3718# modifications, as long as this notice is preserved.
3719
3720# serial 6 ltsugar.m4
3721
3722# This is to help aclocal find these macros, as it can't see m4_define.
3723
3724
3725
3726# lt_join(SEP, ARG1, [ARG2...])
3727# -----------------------------
3728# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3729# associated separator.
3730# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3731# versions in m4sugar had bugs.
3732
3733
3734
3735
3736# lt_car(LIST)
3737# lt_cdr(LIST)
3738# ------------
3739# Manipulate m4 lists.
3740# These macros are necessary as long as will still need to support
3741# Autoconf-2.59 which quotes differently.
3742
3743
3744
3745
3746
3747# lt_append(MACRO-NAME, STRING, [SEPARATOR])
3748# ------------------------------------------
3749# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3750# Note that neither SEPARATOR nor STRING are expanded; they are appended
3751# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3752# No SEPARATOR is output if MACRO-NAME was previously undefined (different
3753# than defined and empty).
3754#
3755# This macro is needed until we can rely on Autoconf 2.62, since earlier
3756# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3757
3758
3759
3760
3761# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
3762# ----------------------------------------------------------
3763# Produce a SEP delimited list of all paired combinations of elements of
3764# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
3765# has the form PREFIXmINFIXSUFFIXn.
3766# Needed until we can rely on m4_combine added in Autoconf 2.62.
3767
3768
3769
3770# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
3771# -----------------------------------------------------------------------
3772# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
3773# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
3774
3775
3776
3777# lt_dict_add(DICT, KEY, VALUE)
3778# -----------------------------
3779
3780
3781
3782# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
3783# --------------------------------------------
3784
3785
3786
3787# lt_dict_fetch(DICT, KEY, [SUBKEY])
3788# ----------------------------------
3789
3790
3791
3792# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
3793# -----------------------------------------------------------------
3794
3795
3796
3797# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
3798# --------------------------------------------------------------
3799
3800
3801# ltversion.m4 -- version numbers -*- Autoconf -*-
3802#
3803# Copyright (C) 2004 Free Software Foundation, Inc.
3804# Written by Scott James Remnant, 2004
3805#
3806# This file is free software; the Free Software Foundation gives
3807# unlimited permission to copy and/or distribute it, with or without
3808# modifications, as long as this notice is preserved.
3809
3810# Generated from ltversion.in.
3811
3812# serial 3134 ltversion.m4
3813# This file is part of GNU Libtool
3814
3815
3816
3817
3818
3819
3820# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
3821#
3822# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3823# Written by Scott James Remnant, 2004.
3824#
3825# This file is free software; the Free Software Foundation gives
3826# unlimited permission to copy and/or distribute it, with or without
3827# modifications, as long as this notice is preserved.
3828
3829# serial 4 lt~obsolete.m4
3830
3831# These exist entirely to fool aclocal when bootstrapping libtool.
3832#
3833# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
3834# which have later been changed to m4_define as they aren't part of the
3835# exported API, or moved to Autoconf or Automake where they belong.
3836#
3837# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
3838# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
3839# using a macro with the same name in our local m4/libtool.m4 it'll
3840# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
3841# and doesn't know about Autoconf macros at all.)
3842#
3843# So we provide this file, which has a silly filename so it's always
3844# included after everything else. This provides aclocal with the
3845# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
3846# because those macros already exist, or will be overwritten later.
3847# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
3848#
3849# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3850# Yes, that means every name once taken will need to remain here until
3851# we give up compatibility with versions before 1.7, at which point
3852# we need to keep only those names which we still refer to.
3853
3854# This is to help aclocal find these macros, as it can't see m4_define.
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919## -*- Autoconf -*-
3920
3921# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3922# Free Software Foundation, Inc.
3923#
3924# This file is free software; the Free Software Foundation
3925# gives unlimited permission to copy and/or distribute it,
3926# with or without modifications, as long as this notice is preserved.
3927
3928# serial 8
3929
3930# Based on depend.m4 from automake 1.9, modified for standalone use in
3931# an environment where GNU make is required.
3932
3933# ZW_PROG_COMPILER_DEPENDENCIES
3934# -----------------------------
3935# Variant of _AM_DEPENDENCIES which just does the dependency probe and
3936# sets fooDEPMODE accordingly. Cache-variable compatible with
3937# original; not side-effect compatible. As the users of this macro
3938# may require accurate dependencies for correct builds, it does *not*
3939# honor --disable-dependency-checking, and failure to detect a usable
3940# method is an error. depcomp is assumed to be located in
3941# $ac_aux_dir.
3942#
3943# FIXME: Should use the Autoconf 2.5x language-selection mechanism.
3944
3945
3946
3947# AM_SET_DEPDIR
3948# -------------
3949# Choose a directory name for dependency files.
3950
3951
3952# ZW_CREATE_DEPDIR
3953# ----------------
3954# As AM_SET_DEPDIR, but also create the directory at config.status time.
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
6bb11ab3
L
3996
3997
3998
3999
4000
6bb11ab3
L
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
6bb11ab3
L
4016
4017
4018
4019
4020
4021# intl sister-directory configuration rules.
4022#
4023
4024# The idea behind this macro is that there's no need to repeat all the
4025# autoconf probes done by the intl directory - it's already done them
4026# for us. In fact, there's no need even to look at the cache for the
4027# answers. All we need to do is nab a few pieces of information.
4028# The intl directory is set up to make this easy, by generating a
4029# small file which can be sourced as a shell script; then we produce
4030# the necessary substitutions and definitions for this directory.
4031
4032
4033
4034# Autoconf M4 include file defining utility macros for complex Canadian
4035# cross builds.
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045####
4046# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
4047# or AC_INIT.
4048# These demand that AC_CANONICAL_SYSTEM be called beforehand.
4049
4050####
4051# NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4052# Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
4053
4054
4055####
4056# NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4057# Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
4058
4059
4060
4061# Backported from Autoconf 2.5x; can go away when and if
4062# we switch. Put the OS path separator in $PATH_SEPARATOR.
4063
4064
4065
4066
37f980dc
SM
4067
4068
4069
4070
6bb11ab3
L
4071# ACX_HAVE_GCC_FOR_TARGET
4072# Check if the variable GCC_FOR_TARGET really points to a GCC binary.
4073
4074
4075# ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
4076# Searching for installed target binutils. We need to take extra care,
4077# else we may find the wrong assembler, linker, etc., and lose.
4078#
4079# First try --with-build-time-tools, if specified.
4080#
4081# For build != host, we ask the installed GCC for the name of the tool it
4082# uses, and accept it if it is an absolute path. This is because the
4083# only good choice for a compiler is the same GCC version that is being
4084# installed (or we couldn't make target libraries), and we assume that
4085# on the host system we'll have not only the same GCC version, but also
4086# the same binutils version.
4087#
4088# For build == host, search the same directories that the installed
4089# compiler will search. We used to do this for the assembler, linker,
4090# and nm only; for simplicity of configuration, however, we extend this
4091# criterion to tools (such as ar and ranlib) that are never invoked by
4092# the compiler, to avoid mismatches.
4093#
4094# Also note we have to check MD_EXEC_PREFIX before checking the user's path
4095# if build == target. This makes the most sense only when bootstrapping,
4096# but we also do so when build != host. In this case, we hope that the
4097# build and host systems will have similar contents of MD_EXEC_PREFIX.
4098#
4099# If we do not find a suitable binary, then try the user's path.
4100
4101
4102###
4103# AC_PROG_CPP_WERROR
4104# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
4105# triggers warnings from the preprocessor. Will be in autoconf 2.58.
4106# For now, using this also overrides header checks to use only the
4107# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
4108# bit harder from here).
4109# Eventually autoconf will default to checking headers with the compiler
4110# instead, and we'll have to do this differently.
4111
4112# AC_PROG_CPP_WERROR
4113
4114# Test for GNAT.
4115# We require the gnatbind & gnatmake programs, as well as a compiler driver
4116# that understands Ada. We use the user's CC setting, already found, and
4117# possibly add $1 to the command-line parameters.
4118#
4119# Sets the shell variable have_gnat to yes or no as appropriate, and
4120# substitutes GNATBIND and GNATMAKE.
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146ac_ext=c
4147ac_cpp='$CPP $CPPFLAGS'
4148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150ac_compiler_gnu=$ac_cv_c_compiler_gnu
4151if test -n "$ac_tool_prefix"; then
4152 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4153set dummy ${ac_tool_prefix}gcc; ac_word=$2
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4156if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
4157 $as_echo_n "(cached) " >&6
4158else
4159 if test -n "$CC"; then
4160 ac_cv_prog_CC="$CC" # Let the user override the test.
4161else
4162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163for as_dir in $PATH
4164do
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4169 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 break 2
4172 fi
4173done
4174 done
4175IFS=$as_save_IFS
4176
4177fi
4178fi
4179CC=$ac_cv_prog_CC
4180if test -n "$CC"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4182$as_echo "$CC" >&6; }
4183else
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185$as_echo "no" >&6; }
4186fi
4187
4188
4189fi
4190if test -z "$ac_cv_prog_CC"; then
4191 ac_ct_CC=$CC
4192 # Extract the first word of "gcc", so it can be a program name with args.
4193set dummy gcc; ac_word=$2
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4195$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4196if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
4197 $as_echo_n "(cached) " >&6
4198else
4199 if test -n "$ac_ct_CC"; then
4200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4201else
4202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203for as_dir in $PATH
4204do
4205 IFS=$as_save_IFS
4206 test -z "$as_dir" && as_dir=.
4207 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4209 ac_cv_prog_ac_ct_CC="gcc"
4210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4211 break 2
4212 fi
4213done
4214 done
4215IFS=$as_save_IFS
4216
4217fi
4218fi
4219ac_ct_CC=$ac_cv_prog_ac_ct_CC
4220if test -n "$ac_ct_CC"; then
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4222$as_echo "$ac_ct_CC" >&6; }
4223else
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4225$as_echo "no" >&6; }
4226fi
4227
4228 if test "x$ac_ct_CC" = x; then
4229 CC=""
4230 else
4231 case $cross_compiling:$ac_tool_warned in
4232yes:)
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4235ac_tool_warned=yes ;;
4236esac
4237 CC=$ac_ct_CC
4238 fi
4239else
4240 CC="$ac_cv_prog_CC"
4241fi
4242
4243if test -z "$CC"; then
4244 if test -n "$ac_tool_prefix"; then
4245 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4246set dummy ${ac_tool_prefix}cc; ac_word=$2
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4249if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
4250 $as_echo_n "(cached) " >&6
4251else
4252 if test -n "$CC"; then
4253 ac_cv_prog_CC="$CC" # Let the user override the test.
4254else
4255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256for as_dir in $PATH
4257do
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4262 ac_cv_prog_CC="${ac_tool_prefix}cc"
4263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 break 2
4265 fi
4266done
4267 done
4268IFS=$as_save_IFS
4269
4270fi
4271fi
4272CC=$ac_cv_prog_CC
4273if test -n "$CC"; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4275$as_echo "$CC" >&6; }
4276else
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278$as_echo "no" >&6; }
4279fi
4280
4281
4282 fi
4283fi
4284if test -z "$CC"; then
4285 # Extract the first word of "cc", so it can be a program name with args.
4286set dummy cc; ac_word=$2
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4289if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
4290 $as_echo_n "(cached) " >&6
4291else
4292 if test -n "$CC"; then
4293 ac_cv_prog_CC="$CC" # Let the user override the test.
4294else
4295 ac_prog_rejected=no
4296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297for as_dir in $PATH
4298do
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4303 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4304 ac_prog_rejected=yes
4305 continue
4306 fi
4307 ac_cv_prog_CC="cc"
4308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 break 2
4310 fi
4311done
4312 done
4313IFS=$as_save_IFS
4314
4315if test $ac_prog_rejected = yes; then
4316 # We found a bogon in the path, so make sure we never use it.
4317 set dummy $ac_cv_prog_CC
4318 shift
4319 if test $# != 0; then
4320 # We chose a different compiler from the bogus one.
4321 # However, it has the same basename, so the bogon will be chosen
4322 # first if we set CC to just the basename; use the full file name.
4323 shift
4324 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4325 fi
4326fi
4327fi
4328fi
4329CC=$ac_cv_prog_CC
4330if test -n "$CC"; then
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4332$as_echo "$CC" >&6; }
4333else
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335$as_echo "no" >&6; }
4336fi
4337
4338
4339fi
4340if test -z "$CC"; then
4341 if test -n "$ac_tool_prefix"; then
4342 for ac_prog in cl.exe
4343 do
4344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4345set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4347$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4348if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
4349 $as_echo_n "(cached) " >&6
4350else
4351 if test -n "$CC"; then
4352 ac_cv_prog_CC="$CC" # Let the user override the test.
4353else
4354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355for as_dir in $PATH
4356do
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
4359 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4361 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4363 break 2
4364 fi
4365done
4366 done
4367IFS=$as_save_IFS
4368
4369fi
4370fi
4371CC=$ac_cv_prog_CC
4372if test -n "$CC"; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4374$as_echo "$CC" >&6; }
4375else
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377$as_echo "no" >&6; }
4378fi
4379
4380
4381 test -n "$CC" && break
4382 done
4383fi
4384if test -z "$CC"; then
4385 ac_ct_CC=$CC
4386 for ac_prog in cl.exe
4387do
4388 # Extract the first word of "$ac_prog", so it can be a program name with args.
4389set dummy $ac_prog; ac_word=$2
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4391$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4392if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
4393 $as_echo_n "(cached) " >&6
4394else
4395 if test -n "$ac_ct_CC"; then
4396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4397else
4398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399for as_dir in $PATH
4400do
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4405 ac_cv_prog_ac_ct_CC="$ac_prog"
4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 break 2
4408 fi
4409done
4410 done
4411IFS=$as_save_IFS
4412
4413fi
4414fi
4415ac_ct_CC=$ac_cv_prog_ac_ct_CC
4416if test -n "$ac_ct_CC"; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4418$as_echo "$ac_ct_CC" >&6; }
4419else
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421$as_echo "no" >&6; }
4422fi
4423
4424
4425 test -n "$ac_ct_CC" && break
4426done
4427
4428 if test "x$ac_ct_CC" = x; then
4429 CC=""
4430 else
4431 case $cross_compiling:$ac_tool_warned in
4432yes:)
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4435ac_tool_warned=yes ;;
4436esac
4437 CC=$ac_ct_CC
4438 fi
4439fi
4440
4441fi
4442
4443
4444test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4446as_fn_error $? "no acceptable C compiler found in \$PATH
4447See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
4448
4449# Provide some information about the compiler.
4450$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4451set X $ac_compile
4452ac_compiler=$2
4453for ac_option in --version -v -V -qversion; do
4454 { { ac_try="$ac_compiler $ac_option >&5"
4455case "(($ac_try" in
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4458esac
4459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4460$as_echo "$ac_try_echo"; } >&5
4461 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4462 ac_status=$?
4463 if test -s conftest.err; then
4464 sed '10a\
4465... rest of stderr output deleted ...
4466 10q' conftest.err >conftest.er1
4467 cat conftest.er1 >&5
6bb11ab3 4468 fi
d0ac1c44 4469 rm -f conftest.er1 conftest.err
6bb11ab3
L
4470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4471 test $ac_status = 0; }
4472done
4473
4474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475/* end confdefs.h. */
4476
4477int
4478main ()
4479{
4480
4481 ;
4482 return 0;
4483}
4484_ACEOF
4485ac_clean_files_save=$ac_clean_files
d0ac1c44 4486ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6bb11ab3
L
4487# Try to create an executable without -o first, disregard a.out.
4488# It will help us diagnose broken compilers, and finding out an intuition
4489# of exeext.
d0ac1c44
SM
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4491$as_echo_n "checking whether the C compiler works... " >&6; }
6bb11ab3
L
4492ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4493
4494# The possible output files:
4495ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4496
4497ac_rmfiles=
4498for ac_file in $ac_files
4499do
4500 case $ac_file in
4501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4502 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4503 esac
4504done
4505rm -f $ac_rmfiles
4506
4507if { { ac_try="$ac_link_default"
4508case "(($ac_try" in
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4511esac
4512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513$as_echo "$ac_try_echo"; } >&5
4514 (eval "$ac_link_default") 2>&5
4515 ac_status=$?
4516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4517 test $ac_status = 0; }; then :
4518 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4519# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4520# in a Makefile. We should not override ac_cv_exeext if it was cached,
4521# so that the user can short-circuit this test for compilers unknown to
4522# Autoconf.
4523for ac_file in $ac_files ''
4524do
4525 test -f "$ac_file" || continue
4526 case $ac_file in
4527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4528 ;;
4529 [ab].out )
4530 # We found the default executable, but exeext='' is most
4531 # certainly right.
4532 break;;
4533 *.* )
4534 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4535 then :; else
4536 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4537 fi
4538 # We set ac_cv_exeext here because the later test for it is not
4539 # safe: cross compilers may not add the suffix if given an `-o'
4540 # argument, so we may need to know it at that point already.
4541 # Even if this section looks crufty: it has the advantage of
4542 # actually working.
4543 break;;
4544 * )
4545 break;;
4546 esac
4547done
4548test "$ac_cv_exeext" = no && ac_cv_exeext=
4549
4550else
4551 ac_file=''
4552fi
6bb11ab3 4553if test -z "$ac_file"; then :
d0ac1c44
SM
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555$as_echo "no" >&6; }
4556$as_echo "$as_me: failed program was:" >&5
6bb11ab3
L
4557sed 's/^/| /' conftest.$ac_ext >&5
4558
4559{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4561as_fn_error 77 "C compiler cannot create executables
4562See \`config.log' for more details" "$LINENO" 5; }
4563else
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4565$as_echo "yes" >&6; }
6bb11ab3 4566fi
d0ac1c44
SM
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4568$as_echo_n "checking for C compiler default output file name... " >&6; }
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4570$as_echo "$ac_file" >&6; }
6bb11ab3
L
4571ac_exeext=$ac_cv_exeext
4572
d0ac1c44 4573rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6bb11ab3 4574ac_clean_files=$ac_clean_files_save
6bb11ab3
L
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4576$as_echo_n "checking for suffix of executables... " >&6; }
4577if { { ac_try="$ac_link"
4578case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581esac
4582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4583$as_echo "$ac_try_echo"; } >&5
4584 (eval "$ac_link") 2>&5
4585 ac_status=$?
4586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4587 test $ac_status = 0; }; then :
4588 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4589# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4590# work properly (i.e., refer to `conftest.exe'), while it won't with
4591# `rm'.
4592for ac_file in conftest.exe conftest conftest.*; do
4593 test -f "$ac_file" || continue
4594 case $ac_file in
4595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4596 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4597 break;;
4598 * ) break;;
4599 esac
4600done
4601else
4602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4604as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4605See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3 4606fi
d0ac1c44 4607rm -f conftest conftest$ac_cv_exeext
6bb11ab3
L
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4609$as_echo "$ac_cv_exeext" >&6; }
4610
4611rm -f conftest.$ac_ext
4612EXEEXT=$ac_cv_exeext
4613ac_exeext=$EXEEXT
d0ac1c44
SM
4614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615/* end confdefs.h. */
4616#include <stdio.h>
4617int
4618main ()
4619{
4620FILE *f = fopen ("conftest.out", "w");
4621 return ferror (f) || fclose (f) != 0;
4622
4623 ;
4624 return 0;
4625}
4626_ACEOF
4627ac_clean_files="$ac_clean_files conftest.out"
4628# Check that the compiler produces executables we can run. If not, either
4629# the compiler is broken, or we cross compile.
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4631$as_echo_n "checking whether we are cross compiling... " >&6; }
4632if test "$cross_compiling" != yes; then
4633 { { ac_try="$ac_link"
4634case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4637esac
4638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4639$as_echo "$ac_try_echo"; } >&5
4640 (eval "$ac_link") 2>&5
4641 ac_status=$?
4642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4643 test $ac_status = 0; }
4644 if { ac_try='./conftest$ac_cv_exeext'
4645 { { case "(($ac_try" in
4646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647 *) ac_try_echo=$ac_try;;
4648esac
4649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4650$as_echo "$ac_try_echo"; } >&5
4651 (eval "$ac_try") 2>&5
4652 ac_status=$?
4653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4654 test $ac_status = 0; }; }; then
4655 cross_compiling=no
4656 else
4657 if test "$cross_compiling" = maybe; then
4658 cross_compiling=yes
4659 else
4660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4662as_fn_error $? "cannot run C compiled programs.
4663If you meant to cross compile, use \`--host'.
4664See \`config.log' for more details" "$LINENO" 5; }
4665 fi
4666 fi
4667fi
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4669$as_echo "$cross_compiling" >&6; }
4670
4671rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4672ac_clean_files=$ac_clean_files_save
6bb11ab3
L
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4674$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 4675if ${ac_cv_objext+:} false; then :
6bb11ab3
L
4676 $as_echo_n "(cached) " >&6
4677else
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679/* end confdefs.h. */
4680
4681int
4682main ()
4683{
4684
4685 ;
4686 return 0;
4687}
4688_ACEOF
4689rm -f conftest.o conftest.obj
4690if { { ac_try="$ac_compile"
4691case "(($ac_try" in
4692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693 *) ac_try_echo=$ac_try;;
4694esac
4695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4696$as_echo "$ac_try_echo"; } >&5
4697 (eval "$ac_compile") 2>&5
4698 ac_status=$?
4699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4700 test $ac_status = 0; }; then :
4701 for ac_file in conftest.o conftest.obj conftest.*; do
4702 test -f "$ac_file" || continue;
4703 case $ac_file in
4704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4705 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4706 break;;
4707 esac
4708done
4709else
4710 $as_echo "$as_me: failed program was:" >&5
4711sed 's/^/| /' conftest.$ac_ext >&5
4712
4713{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4715as_fn_error $? "cannot compute suffix of object files: cannot compile
4716See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
4717fi
4718rm -f conftest.$ac_cv_objext conftest.$ac_ext
4719fi
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4721$as_echo "$ac_cv_objext" >&6; }
4722OBJEXT=$ac_cv_objext
4723ac_objext=$OBJEXT
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4725$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4726if ${ac_cv_c_compiler_gnu+:} false; then :
6bb11ab3
L
4727 $as_echo_n "(cached) " >&6
4728else
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730/* end confdefs.h. */
4731
4732int
4733main ()
4734{
4735#ifndef __GNUC__
4736 choke me
4737#endif
4738
4739 ;
4740 return 0;
4741}
4742_ACEOF
4743if ac_fn_c_try_compile "$LINENO"; then :
4744 ac_compiler_gnu=yes
4745else
4746 ac_compiler_gnu=no
4747fi
4748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4749ac_cv_c_compiler_gnu=$ac_compiler_gnu
4750
4751fi
4752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4753$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4754if test $ac_compiler_gnu = yes; then
4755 GCC=yes
4756else
4757 GCC=
4758fi
4759ac_test_CFLAGS=${CFLAGS+set}
4760ac_save_CFLAGS=$CFLAGS
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4762$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4763if ${ac_cv_prog_cc_g+:} false; then :
6bb11ab3
L
4764 $as_echo_n "(cached) " >&6
4765else
4766 ac_save_c_werror_flag=$ac_c_werror_flag
4767 ac_c_werror_flag=yes
4768 ac_cv_prog_cc_g=no
4769 CFLAGS="-g"
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771/* end confdefs.h. */
4772
4773int
4774main ()
4775{
4776
4777 ;
4778 return 0;
4779}
4780_ACEOF
4781if ac_fn_c_try_compile "$LINENO"; then :
4782 ac_cv_prog_cc_g=yes
4783else
4784 CFLAGS=""
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786/* end confdefs.h. */
4787
4788int
4789main ()
4790{
4791
4792 ;
4793 return 0;
4794}
4795_ACEOF
4796if ac_fn_c_try_compile "$LINENO"; then :
4797
4798else
4799 ac_c_werror_flag=$ac_save_c_werror_flag
4800 CFLAGS="-g"
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802/* end confdefs.h. */
4803
4804int
4805main ()
4806{
4807
4808 ;
4809 return 0;
4810}
4811_ACEOF
4812if ac_fn_c_try_compile "$LINENO"; then :
4813 ac_cv_prog_cc_g=yes
4814fi
4815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816fi
4817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818fi
4819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 ac_c_werror_flag=$ac_save_c_werror_flag
4821fi
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4823$as_echo "$ac_cv_prog_cc_g" >&6; }
4824if test "$ac_test_CFLAGS" = set; then
4825 CFLAGS=$ac_save_CFLAGS
4826elif test $ac_cv_prog_cc_g = yes; then
4827 if test "$GCC" = yes; then
4828 CFLAGS="-g -O2"
4829 else
4830 CFLAGS="-g"
4831 fi
4832else
4833 if test "$GCC" = yes; then
4834 CFLAGS="-O2"
4835 else
4836 CFLAGS=
4837 fi
4838fi
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4840$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4841if ${ac_cv_prog_cc_c89+:} false; then :
6bb11ab3
L
4842 $as_echo_n "(cached) " >&6
4843else
4844 ac_cv_prog_cc_c89=no
4845ac_save_CC=$CC
4846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847/* end confdefs.h. */
4848#include <stdarg.h>
4849#include <stdio.h>
d0ac1c44 4850struct stat;
6bb11ab3
L
4851/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4852struct buf { int x; };
4853FILE * (*rcsopen) (struct buf *, struct stat *, int);
4854static char *e (p, i)
4855 char **p;
4856 int i;
4857{
4858 return p[i];
4859}
4860static char *f (char * (*g) (char **, int), char **p, ...)
4861{
4862 char *s;
4863 va_list v;
4864 va_start (v,p);
4865 s = g (p, va_arg (v,int));
4866 va_end (v);
4867 return s;
4868}
4869
4870/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4871 function prototypes and stuff, but not '\xHH' hex character constants.
4872 These don't provoke an error unfortunately, instead are silently treated
4873 as 'x'. The following induces an error, until -std is added to get
4874 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4875 array size at least. It's necessary to write '\x00'==0 to get something
4876 that's true only with -std. */
4877int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4878
4879/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4880 inside strings and character constants. */
4881#define FOO(x) 'x'
4882int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4883
4884int test (int i, double x);
4885struct s1 {int (*f) (int a);};
4886struct s2 {int (*f) (double a);};
4887int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4888int argc;
4889char **argv;
4890int
4891main ()
4892{
4893return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4894 ;
4895 return 0;
4896}
4897_ACEOF
4898for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4899 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4900do
4901 CC="$ac_save_CC $ac_arg"
4902 if ac_fn_c_try_compile "$LINENO"; then :
4903 ac_cv_prog_cc_c89=$ac_arg
4904fi
4905rm -f core conftest.err conftest.$ac_objext
4906 test "x$ac_cv_prog_cc_c89" != "xno" && break
4907done
4908rm -f conftest.$ac_ext
4909CC=$ac_save_CC
4910
4911fi
4912# AC_CACHE_VAL
4913case "x$ac_cv_prog_cc_c89" in
4914 x)
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4916$as_echo "none needed" >&6; } ;;
4917 xno)
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4919$as_echo "unsupported" >&6; } ;;
4920 *)
4921 CC="$CC $ac_cv_prog_cc_c89"
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4923$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4924esac
4925if test "x$ac_cv_prog_cc_c89" != xno; then :
4926
4927fi
4928
4929ac_ext=c
4930ac_cpp='$CPP $CPPFLAGS'
4931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933ac_compiler_gnu=$ac_cv_c_compiler_gnu
4934
4935ac_aux_dir=
4936for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
4937 if test -f "$ac_dir/install-sh"; then
4938 ac_aux_dir=$ac_dir
4939 ac_install_sh="$ac_aux_dir/install-sh -c"
4940 break
4941 elif test -f "$ac_dir/install.sh"; then
4942 ac_aux_dir=$ac_dir
4943 ac_install_sh="$ac_aux_dir/install.sh -c"
4944 break
4945 elif test -f "$ac_dir/shtool"; then
4946 ac_aux_dir=$ac_dir
4947 ac_install_sh="$ac_aux_dir/shtool install -c"
4948 break
4949 fi
6bb11ab3
L
4950done
4951if test -z "$ac_aux_dir"; then
d0ac1c44 4952 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6bb11ab3
L
4953fi
4954
4955# These three variables are undocumented and unsupported,
4956# and are intended to be withdrawn in a future Autoconf release.
4957# They can cause serious problems if a builder's source tree is in a directory
4958# whose full name contains unusual characters.
4959ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4960ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4961ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4962
4963
4964# Make sure we can run config.sub.
4965$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 4966 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6bb11ab3
L
4967
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4969$as_echo_n "checking build system type... " >&6; }
d0ac1c44 4970if ${ac_cv_build+:} false; then :
6bb11ab3
L
4971 $as_echo_n "(cached) " >&6
4972else
4973 ac_build_alias=$build_alias
4974test "x$ac_build_alias" = x &&
4975 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4976test "x$ac_build_alias" = x &&
d0ac1c44 4977 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6bb11ab3 4978ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 4979 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6bb11ab3
L
4980
4981fi
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4983$as_echo "$ac_cv_build" >&6; }
4984case $ac_cv_build in
4985*-*-*) ;;
d0ac1c44 4986*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6bb11ab3
L
4987esac
4988build=$ac_cv_build
4989ac_save_IFS=$IFS; IFS='-'
4990set x $ac_cv_build
4991shift
4992build_cpu=$1
4993build_vendor=$2
4994shift; shift
4995# Remember, the first character of IFS is used to create $*,
4996# except with old shells:
4997build_os=$*
4998IFS=$ac_save_IFS
4999case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5000
5001
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5003$as_echo_n "checking host system type... " >&6; }
d0ac1c44 5004if ${ac_cv_host+:} false; then :
6bb11ab3
L
5005 $as_echo_n "(cached) " >&6
5006else
5007 if test "x$host_alias" = x; then
5008 ac_cv_host=$ac_cv_build
5009else
5010 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 5011 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6bb11ab3
L
5012fi
5013
5014fi
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5016$as_echo "$ac_cv_host" >&6; }
5017case $ac_cv_host in
5018*-*-*) ;;
d0ac1c44 5019*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6bb11ab3
L
5020esac
5021host=$ac_cv_host
5022ac_save_IFS=$IFS; IFS='-'
5023set x $ac_cv_host
5024shift
5025host_cpu=$1
5026host_vendor=$2
5027shift; shift
5028# Remember, the first character of IFS is used to create $*,
5029# except with old shells:
5030host_os=$*
5031IFS=$ac_save_IFS
5032case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5033
5034
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5036$as_echo_n "checking target system type... " >&6; }
d0ac1c44 5037if ${ac_cv_target+:} false; then :
6bb11ab3
L
5038 $as_echo_n "(cached) " >&6
5039else
5040 if test "x$target_alias" = x; then
5041 ac_cv_target=$ac_cv_host
5042else
5043 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 5044 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6bb11ab3
L
5045fi
5046
5047fi
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5049$as_echo "$ac_cv_target" >&6; }
5050case $ac_cv_target in
5051*-*-*) ;;
d0ac1c44 5052*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6bb11ab3
L
5053esac
5054target=$ac_cv_target
5055ac_save_IFS=$IFS; IFS='-'
5056set x $ac_cv_target
5057shift
5058target_cpu=$1
5059target_vendor=$2
5060shift; shift
5061# Remember, the first character of IFS is used to create $*,
5062# except with old shells:
5063target_os=$*
5064IFS=$ac_save_IFS
5065case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5066
5067
5068# The aliases save the names the user supplied, while $host etc.
5069# will get canonicalized.
5070test -n "$target_alias" &&
5071 test "$program_prefix$program_suffix$program_transform_name" = \
5072 NONENONEs,x,x, &&
5073 program_prefix=${target_alias}-
5074
5075ac_ext=c
5076ac_cpp='$CPP $CPPFLAGS'
5077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5079ac_compiler_gnu=$ac_cv_c_compiler_gnu
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5081$as_echo_n "checking how to run the C preprocessor... " >&6; }
5082# On Suns, sometimes $CPP names a directory.
5083if test -n "$CPP" && test -d "$CPP"; then
5084 CPP=
5085fi
5086if test -z "$CPP"; then
d0ac1c44 5087 if ${ac_cv_prog_CPP+:} false; then :
6bb11ab3
L
5088 $as_echo_n "(cached) " >&6
5089else
5090 # Double quotes because CPP needs to be expanded
5091 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5092 do
5093 ac_preproc_ok=false
5094for ac_c_preproc_warn_flag in '' yes
5095do
5096 # Use a header file that comes with gcc, so configuring glibc
5097 # with a fresh cross-compiler works.
5098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5099 # <limits.h> exists even on freestanding compilers.
5100 # On the NeXT, cc -E runs the code through the compiler's parser,
5101 # not just through cpp. "Syntax error" is here to catch this case.
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103/* end confdefs.h. */
5104#ifdef __STDC__
5105# include <limits.h>
5106#else
5107# include <assert.h>
5108#endif
5109 Syntax error
5110_ACEOF
5111if ac_fn_c_try_cpp "$LINENO"; then :
5112
5113else
5114 # Broken: fails on valid input.
5115continue
5116fi
d0ac1c44 5117rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
5118
5119 # OK, works on sane cases. Now check whether nonexistent headers
5120 # can be detected and how.
5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122/* end confdefs.h. */
5123#include <ac_nonexistent.h>
5124_ACEOF
5125if ac_fn_c_try_cpp "$LINENO"; then :
5126 # Broken: success on invalid input.
5127continue
5128else
5129 # Passes both tests.
5130ac_preproc_ok=:
5131break
5132fi
d0ac1c44 5133rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
5134
5135done
5136# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5137rm -f conftest.i conftest.err conftest.$ac_ext
6bb11ab3
L
5138if $ac_preproc_ok; then :
5139 break
5140fi
5141
5142 done
5143 ac_cv_prog_CPP=$CPP
5144
5145fi
5146 CPP=$ac_cv_prog_CPP
5147else
5148 ac_cv_prog_CPP=$CPP
5149fi
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5151$as_echo "$CPP" >&6; }
5152ac_preproc_ok=false
5153for ac_c_preproc_warn_flag in '' yes
5154do
5155 # Use a header file that comes with gcc, so configuring glibc
5156 # with a fresh cross-compiler works.
5157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5158 # <limits.h> exists even on freestanding compilers.
5159 # On the NeXT, cc -E runs the code through the compiler's parser,
5160 # not just through cpp. "Syntax error" is here to catch this case.
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162/* end confdefs.h. */
5163#ifdef __STDC__
5164# include <limits.h>
5165#else
5166# include <assert.h>
5167#endif
5168 Syntax error
5169_ACEOF
5170if ac_fn_c_try_cpp "$LINENO"; then :
5171
5172else
5173 # Broken: fails on valid input.
5174continue
5175fi
d0ac1c44 5176rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
5177
5178 # OK, works on sane cases. Now check whether nonexistent headers
5179 # can be detected and how.
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181/* end confdefs.h. */
5182#include <ac_nonexistent.h>
5183_ACEOF
5184if ac_fn_c_try_cpp "$LINENO"; then :
5185 # Broken: success on invalid input.
5186continue
5187else
5188 # Passes both tests.
5189ac_preproc_ok=:
5190break
5191fi
d0ac1c44 5192rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
5193
5194done
5195# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5196rm -f conftest.i conftest.err conftest.$ac_ext
6bb11ab3
L
5197if $ac_preproc_ok; then :
5198
5199else
5200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
5202as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5203See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
5204fi
5205
5206ac_ext=c
5207ac_cpp='$CPP $CPPFLAGS'
5208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210ac_compiler_gnu=$ac_cv_c_compiler_gnu
5211
5212
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5214$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 5215if ${ac_cv_path_GREP+:} false; then :
6bb11ab3
L
5216 $as_echo_n "(cached) " >&6
5217else
5218 if test -z "$GREP"; then
5219 ac_path_GREP_found=false
5220 # Loop through the user's path and test for each of PROGNAME-LIST
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5223do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_prog in grep ggrep; do
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5229 as_fn_executable_p "$ac_path_GREP" || continue
6bb11ab3
L
5230# Check for GNU ac_path_GREP and select it if it is found.
5231 # Check for GNU $ac_path_GREP
5232case `"$ac_path_GREP" --version 2>&1` in
5233*GNU*)
5234 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5235*)
5236 ac_count=0
5237 $as_echo_n 0123456789 >"conftest.in"
5238 while :
5239 do
5240 cat "conftest.in" "conftest.in" >"conftest.tmp"
5241 mv "conftest.tmp" "conftest.in"
5242 cp "conftest.in" "conftest.nl"
5243 $as_echo 'GREP' >> "conftest.nl"
5244 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5246 as_fn_arith $ac_count + 1 && ac_count=$as_val
5247 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5248 # Best one so far, save it but keep looking for a better one
5249 ac_cv_path_GREP="$ac_path_GREP"
5250 ac_path_GREP_max=$ac_count
5251 fi
5252 # 10*(2^10) chars as input seems more than enough
5253 test $ac_count -gt 10 && break
5254 done
5255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5256esac
5257
5258 $ac_path_GREP_found && break 3
5259 done
5260 done
5261 done
5262IFS=$as_save_IFS
5263 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 5264 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
5265 fi
5266else
5267 ac_cv_path_GREP=$GREP
5268fi
5269
5270fi
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5272$as_echo "$ac_cv_path_GREP" >&6; }
5273 GREP="$ac_cv_path_GREP"
5274
5275
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5277$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 5278if ${ac_cv_path_EGREP+:} false; then :
6bb11ab3
L
5279 $as_echo_n "(cached) " >&6
5280else
5281 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5282 then ac_cv_path_EGREP="$GREP -E"
5283 else
5284 if test -z "$EGREP"; then
5285 ac_path_EGREP_found=false
5286 # Loop through the user's path and test for each of PROGNAME-LIST
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5289do
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_prog in egrep; do
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5295 as_fn_executable_p "$ac_path_EGREP" || continue
6bb11ab3
L
5296# Check for GNU ac_path_EGREP and select it if it is found.
5297 # Check for GNU $ac_path_EGREP
5298case `"$ac_path_EGREP" --version 2>&1` in
5299*GNU*)
5300 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5301*)
5302 ac_count=0
5303 $as_echo_n 0123456789 >"conftest.in"
5304 while :
5305 do
5306 cat "conftest.in" "conftest.in" >"conftest.tmp"
5307 mv "conftest.tmp" "conftest.in"
5308 cp "conftest.in" "conftest.nl"
5309 $as_echo 'EGREP' >> "conftest.nl"
5310 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5311 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5312 as_fn_arith $ac_count + 1 && ac_count=$as_val
5313 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5314 # Best one so far, save it but keep looking for a better one
5315 ac_cv_path_EGREP="$ac_path_EGREP"
5316 ac_path_EGREP_max=$ac_count
5317 fi
5318 # 10*(2^10) chars as input seems more than enough
5319 test $ac_count -gt 10 && break
5320 done
5321 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5322esac
5323
5324 $ac_path_EGREP_found && break 3
5325 done
5326 done
5327 done
5328IFS=$as_save_IFS
5329 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 5330 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
5331 fi
5332else
5333 ac_cv_path_EGREP=$EGREP
5334fi
5335
5336 fi
5337fi
5338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5339$as_echo "$ac_cv_path_EGREP" >&6; }
5340 EGREP="$ac_cv_path_EGREP"
5341
5342
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5344$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 5345if ${ac_cv_header_stdc+:} false; then :
6bb11ab3
L
5346 $as_echo_n "(cached) " >&6
5347else
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349/* end confdefs.h. */
5350#include <stdlib.h>
5351#include <stdarg.h>
5352#include <string.h>
5353#include <float.h>
5354
5355int
5356main ()
5357{
5358
5359 ;
5360 return 0;
5361}
5362_ACEOF
5363if ac_fn_c_try_compile "$LINENO"; then :
5364 ac_cv_header_stdc=yes
5365else
5366 ac_cv_header_stdc=no
5367fi
5368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5369
5370if test $ac_cv_header_stdc = yes; then
5371 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373/* end confdefs.h. */
5374#include <string.h>
5375
5376_ACEOF
5377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5378 $EGREP "memchr" >/dev/null 2>&1; then :
5379
5380else
5381 ac_cv_header_stdc=no
5382fi
5383rm -f conftest*
5384
5385fi
5386
5387if test $ac_cv_header_stdc = yes; then
5388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390/* end confdefs.h. */
5391#include <stdlib.h>
5392
5393_ACEOF
5394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5395 $EGREP "free" >/dev/null 2>&1; then :
5396
5397else
5398 ac_cv_header_stdc=no
5399fi
5400rm -f conftest*
5401
5402fi
5403
5404if test $ac_cv_header_stdc = yes; then
5405 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5406 if test "$cross_compiling" = yes; then :
5407 :
5408else
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410/* end confdefs.h. */
5411#include <ctype.h>
5412#include <stdlib.h>
5413#if ((' ' & 0x0FF) == 0x020)
5414# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5415# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5416#else
5417# define ISLOWER(c) \
5418 (('a' <= (c) && (c) <= 'i') \
5419 || ('j' <= (c) && (c) <= 'r') \
5420 || ('s' <= (c) && (c) <= 'z'))
5421# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5422#endif
5423
5424#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5425int
5426main ()
5427{
5428 int i;
5429 for (i = 0; i < 256; i++)
5430 if (XOR (islower (i), ISLOWER (i))
5431 || toupper (i) != TOUPPER (i))
5432 return 2;
5433 return 0;
5434}
5435_ACEOF
5436if ac_fn_c_try_run "$LINENO"; then :
5437
5438else
5439 ac_cv_header_stdc=no
5440fi
5441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5442 conftest.$ac_objext conftest.beam conftest.$ac_ext
5443fi
5444
5445fi
5446fi
5447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5448$as_echo "$ac_cv_header_stdc" >&6; }
5449if test $ac_cv_header_stdc = yes; then
5450
5451$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5452
5453fi
5454
5455# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5456for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5457 inttypes.h stdint.h unistd.h
5458do :
5459 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5460ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5461"
d0ac1c44 5462if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
5463 cat >>confdefs.h <<_ACEOF
5464#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5465_ACEOF
5466
5467fi
5468
5469done
5470
5471
5472
5473 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 5474if test "x$ac_cv_header_minix_config_h" = xyes; then :
6bb11ab3
L
5475 MINIX=yes
5476else
5477 MINIX=
5478fi
5479
5480
5481 if test "$MINIX" = yes; then
5482
5483$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5484
5485
5486$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5487
5488
5489$as_echo "#define _MINIX 1" >>confdefs.h
5490
5491 fi
5492
5493
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5495$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 5496if ${ac_cv_safe_to_define___extensions__+:} false; then :
6bb11ab3
L
5497 $as_echo_n "(cached) " >&6
5498else
5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500/* end confdefs.h. */
5501
d0ac1c44
SM
5502# define __EXTENSIONS__ 1
5503 $ac_includes_default
6bb11ab3
L
5504int
5505main ()
5506{
5507
5508 ;
5509 return 0;
5510}
5511_ACEOF
5512if ac_fn_c_try_compile "$LINENO"; then :
5513 ac_cv_safe_to_define___extensions__=yes
5514else
5515 ac_cv_safe_to_define___extensions__=no
5516fi
5517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518fi
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5520$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5521 test $ac_cv_safe_to_define___extensions__ = yes &&
5522 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5523
5524 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5525
5526 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5527
5528 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5529
5530 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5531
5532
5533test "$program_prefix" != NONE &&
5534 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5535# Use a double $ so make ignores it.
5536test "$program_suffix" != NONE &&
5537 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5538# Double any \ or $.
5539# By default was `s,x,x', remove it if useless.
5540ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5541program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5542
5543# Find a good install program. We prefer a C program (faster),
5544# so one script is as good as another. But avoid the broken or
5545# incompatible versions:
5546# SysV /etc/install, /usr/sbin/install
5547# SunOS /usr/etc/install
5548# IRIX /sbin/install
5549# AIX /bin/install
5550# AmigaOS /C/install, which installs bootblocks on floppy discs
5551# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5552# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5553# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5554# OS/2's system install, which has a completely different semantic
5555# ./install, which can be erroneously created by make from ./install.sh.
5556# Reject install programs that cannot install multiple files.
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5558$as_echo_n "checking for a BSD-compatible install... " >&6; }
5559if test -z "$INSTALL"; then
d0ac1c44 5560if ${ac_cv_path_install+:} false; then :
6bb11ab3
L
5561 $as_echo_n "(cached) " >&6
5562else
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564for as_dir in $PATH
5565do
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 # Account for people who put trailing slashes in PATH elements.
5569case $as_dir/ in #((
5570 ./ | .// | /[cC]/* | \
5571 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5572 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5573 /usr/ucb/* ) ;;
5574 *)
5575 # OSF1 and SCO ODT 3.0 have their own names for install.
5576 # Don't use installbsd from OSF since it installs stuff as root
5577 # by default.
5578 for ac_prog in ginstall scoinst install; do
5579 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5580 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6bb11ab3
L
5581 if test $ac_prog = install &&
5582 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5583 # AIX install. It has an incompatible calling convention.
5584 :
5585 elif test $ac_prog = install &&
5586 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5587 # program-specific install script used by HP pwplus--don't use.
5588 :
5589 else
5590 rm -rf conftest.one conftest.two conftest.dir
5591 echo one > conftest.one
5592 echo two > conftest.two
5593 mkdir conftest.dir
5594 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5595 test -s conftest.one && test -s conftest.two &&
5596 test -s conftest.dir/conftest.one &&
5597 test -s conftest.dir/conftest.two
5598 then
5599 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5600 break 3
5601 fi
5602 fi
5603 fi
5604 done
5605 done
5606 ;;
5607esac
5608
5609 done
5610IFS=$as_save_IFS
5611
5612rm -rf conftest.one conftest.two conftest.dir
5613
5614fi
5615 if test "${ac_cv_path_install+set}" = set; then
5616 INSTALL=$ac_cv_path_install
5617 else
5618 # As a last resort, use the slow shell script. Don't cache a
5619 # value for INSTALL within a source directory, because that will
5620 # break other packages using the cache if that directory is
5621 # removed, or if the value is a relative name.
5622 INSTALL=$ac_install_sh
5623 fi
5624fi
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5626$as_echo "$INSTALL" >&6; }
5627
5628# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5629# It thinks the first close brace ends the variable substitution.
5630test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5631
5632test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5633
5634test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5635
5636rm -rf .tst 2>/dev/null
5637mkdir .tst 2>/dev/null
5638if test -d .tst; then
5639 am__leading_dot=.
5640else
5641 am__leading_dot=_
5642fi
5643rmdir .tst 2>/dev/null
5644
5645DEPDIR="${am__leading_dot}deps"
5646
5647case `pwd` in
5648 *\ * | *\ *)
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5650$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5651esac
5652
5653
5654
5655macro_version='2.2.7a'
5656macro_revision='1.3134'
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670ltmain="$ac_aux_dir/ltmain.sh"
5671
5672# Backslashify metacharacters that are still active within
5673# double-quoted strings.
5674sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5675
5676# Same as above, but do not quote variable references.
5677double_quote_subst='s/\(["`\\]\)/\\\1/g'
5678
5679# Sed substitution to delay expansion of an escaped shell variable in a
5680# double_quote_subst'ed string.
5681delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5682
5683# Sed substitution to delay expansion of an escaped single quote.
5684delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5685
5686# Sed substitution to avoid accidental globbing in evaled expressions
5687no_glob_subst='s/\*/\\\*/g'
5688
5689ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5690ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5691ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5692
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5694$as_echo_n "checking how to print strings... " >&6; }
5695# Test print first, because it will be a builtin if present.
5696if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5697 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5698 ECHO='print -r --'
5699elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5700 ECHO='printf %s\n'
5701else
5702 # Use this function as a fallback that always works.
5703 func_fallback_echo ()
5704 {
5705 eval 'cat <<_LTECHO_EOF
5706$1
5707_LTECHO_EOF'
5708 }
5709 ECHO='func_fallback_echo'
5710fi
5711
5712# func_echo_all arg...
5713# Invoke $ECHO with all args, space-separated.
5714func_echo_all ()
5715{
5716 $ECHO ""
5717}
5718
5719case "$ECHO" in
5720 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5721$as_echo "printf" >&6; } ;;
5722 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5723$as_echo "print -r" >&6; } ;;
5724 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5725$as_echo "cat" >&6; } ;;
5726esac
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5742$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 5743if ${ac_cv_path_SED+:} false; then :
6bb11ab3
L
5744 $as_echo_n "(cached) " >&6
5745else
5746 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5747 for ac_i in 1 2 3 4 5 6 7; do
5748 ac_script="$ac_script$as_nl$ac_script"
5749 done
5750 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5751 { ac_script=; unset ac_script;}
5752 if test -z "$SED"; then
5753 ac_path_SED_found=false
5754 # Loop through the user's path and test for each of PROGNAME-LIST
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756for as_dir in $PATH
5757do
5758 IFS=$as_save_IFS
5759 test -z "$as_dir" && as_dir=.
5760 for ac_prog in sed gsed; do
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5763 as_fn_executable_p "$ac_path_SED" || continue
6bb11ab3
L
5764# Check for GNU ac_path_SED and select it if it is found.
5765 # Check for GNU $ac_path_SED
5766case `"$ac_path_SED" --version 2>&1` in
5767*GNU*)
5768 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5769*)
5770 ac_count=0
5771 $as_echo_n 0123456789 >"conftest.in"
5772 while :
5773 do
5774 cat "conftest.in" "conftest.in" >"conftest.tmp"
5775 mv "conftest.tmp" "conftest.in"
5776 cp "conftest.in" "conftest.nl"
5777 $as_echo '' >> "conftest.nl"
5778 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5779 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5780 as_fn_arith $ac_count + 1 && ac_count=$as_val
5781 if test $ac_count -gt ${ac_path_SED_max-0}; then
5782 # Best one so far, save it but keep looking for a better one
5783 ac_cv_path_SED="$ac_path_SED"
5784 ac_path_SED_max=$ac_count
5785 fi
5786 # 10*(2^10) chars as input seems more than enough
5787 test $ac_count -gt 10 && break
5788 done
5789 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5790esac
5791
5792 $ac_path_SED_found && break 3
5793 done
5794 done
5795 done
5796IFS=$as_save_IFS
5797 if test -z "$ac_cv_path_SED"; then
d0ac1c44 5798 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6bb11ab3
L
5799 fi
5800else
5801 ac_cv_path_SED=$SED
5802fi
5803
5804fi
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5806$as_echo "$ac_cv_path_SED" >&6; }
5807 SED="$ac_cv_path_SED"
5808 rm -f conftest.sed
5809
5810test -z "$SED" && SED=sed
5811Xsed="$SED -e 1s/^X//"
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5824$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 5825if ${ac_cv_path_FGREP+:} false; then :
6bb11ab3
L
5826 $as_echo_n "(cached) " >&6
5827else
5828 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5829 then ac_cv_path_FGREP="$GREP -F"
5830 else
5831 if test -z "$FGREP"; then
5832 ac_path_FGREP_found=false
5833 # Loop through the user's path and test for each of PROGNAME-LIST
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5836do
5837 IFS=$as_save_IFS
5838 test -z "$as_dir" && as_dir=.
5839 for ac_prog in fgrep; do
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5842 as_fn_executable_p "$ac_path_FGREP" || continue
6bb11ab3
L
5843# Check for GNU ac_path_FGREP and select it if it is found.
5844 # Check for GNU $ac_path_FGREP
5845case `"$ac_path_FGREP" --version 2>&1` in
5846*GNU*)
5847 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5848*)
5849 ac_count=0
5850 $as_echo_n 0123456789 >"conftest.in"
5851 while :
5852 do
5853 cat "conftest.in" "conftest.in" >"conftest.tmp"
5854 mv "conftest.tmp" "conftest.in"
5855 cp "conftest.in" "conftest.nl"
5856 $as_echo 'FGREP' >> "conftest.nl"
5857 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5858 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5859 as_fn_arith $ac_count + 1 && ac_count=$as_val
5860 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5861 # Best one so far, save it but keep looking for a better one
5862 ac_cv_path_FGREP="$ac_path_FGREP"
5863 ac_path_FGREP_max=$ac_count
5864 fi
5865 # 10*(2^10) chars as input seems more than enough
5866 test $ac_count -gt 10 && break
5867 done
5868 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5869esac
5870
5871 $ac_path_FGREP_found && break 3
5872 done
5873 done
5874 done
5875IFS=$as_save_IFS
5876 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 5877 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
5878 fi
5879else
5880 ac_cv_path_FGREP=$FGREP
5881fi
5882
5883 fi
5884fi
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5886$as_echo "$ac_cv_path_FGREP" >&6; }
5887 FGREP="$ac_cv_path_FGREP"
5888
5889
5890test -z "$GREP" && GREP=grep
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910# Check whether --with-gnu-ld was given.
5911if test "${with_gnu_ld+set}" = set; then :
5912 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5913else
5914 with_gnu_ld=no
5915fi
5916
5917ac_prog=ld
5918if test "$GCC" = yes; then
5919 # Check if gcc -print-prog-name=ld gives a path.
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5921$as_echo_n "checking for ld used by $CC... " >&6; }
5922 case $host in
5923 *-*-mingw*)
5924 # gcc leaves a trailing carriage return which upsets mingw
5925 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5926 *)
5927 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5928 esac
5929 case $ac_prog in
5930 # Accept absolute paths.
5931 [\\/]* | ?:[\\/]*)
5932 re_direlt='/[^/][^/]*/\.\./'
5933 # Canonicalize the pathname of ld
5934 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5935 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5936 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5937 done
5938 test -z "$LD" && LD="$ac_prog"
5939 ;;
5940 "")
5941 # If it fails, then pretend we aren't using GCC.
5942 ac_prog=ld
5943 ;;
5944 *)
5945 # If it is relative, then search for the first ld in PATH.
5946 with_gnu_ld=unknown
5947 ;;
5948 esac
5949elif test "$with_gnu_ld" = yes; then
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5951$as_echo_n "checking for GNU ld... " >&6; }
5952else
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5954$as_echo_n "checking for non-GNU ld... " >&6; }
5955fi
d0ac1c44 5956if ${lt_cv_path_LD+:} false; then :
6bb11ab3
L
5957 $as_echo_n "(cached) " >&6
5958else
5959 if test -z "$LD"; then
5960 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5961 for ac_dir in $PATH; do
5962 IFS="$lt_save_ifs"
5963 test -z "$ac_dir" && ac_dir=.
5964 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5965 lt_cv_path_LD="$ac_dir/$ac_prog"
5966 # Check to see if the program is GNU ld. I'd rather use --version,
5967 # but apparently some variants of GNU ld only accept -v.
5968 # Break only if it was the GNU/non-GNU ld that we prefer.
5969 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5970 *GNU* | *'with BFD'*)
5971 test "$with_gnu_ld" != no && break
5972 ;;
5973 *)
5974 test "$with_gnu_ld" != yes && break
5975 ;;
5976 esac
5977 fi
5978 done
5979 IFS="$lt_save_ifs"
5980else
5981 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5982fi
5983fi
5984
5985LD="$lt_cv_path_LD"
5986if test -n "$LD"; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5988$as_echo "$LD" >&6; }
5989else
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991$as_echo "no" >&6; }
5992fi
d0ac1c44 5993test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6bb11ab3
L
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5995$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 5996if ${lt_cv_prog_gnu_ld+:} false; then :
6bb11ab3
L
5997 $as_echo_n "(cached) " >&6
5998else
5999 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6000case `$LD -v 2>&1 </dev/null` in
6001*GNU* | *'with BFD'*)
6002 lt_cv_prog_gnu_ld=yes
6003 ;;
6004*)
6005 lt_cv_prog_gnu_ld=no
6006 ;;
6007esac
6008fi
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6010$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6011with_gnu_ld=$lt_cv_prog_gnu_ld
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6022$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 6023if ${lt_cv_path_NM+:} false; then :
6bb11ab3
L
6024 $as_echo_n "(cached) " >&6
6025else
6026 if test -n "$NM"; then
6027 # Let the user override the test.
6028 lt_cv_path_NM="$NM"
6029else
6030 lt_nm_to_check="${ac_tool_prefix}nm"
6031 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6032 lt_nm_to_check="$lt_nm_to_check nm"
6033 fi
6034 for lt_tmp_nm in $lt_nm_to_check; do
6035 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6036 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6037 IFS="$lt_save_ifs"
6038 test -z "$ac_dir" && ac_dir=.
6039 tmp_nm="$ac_dir/$lt_tmp_nm"
6040 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6041 # Check to see if the nm accepts a BSD-compat flag.
6042 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6043 # nm: unknown option "B" ignored
6044 # Tru64's nm complains that /dev/null is an invalid object file
6045 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6046 */dev/null* | *'Invalid file or object type'*)
6047 lt_cv_path_NM="$tmp_nm -B"
6048 break
6049 ;;
6050 *)
6051 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6052 */dev/null*)
6053 lt_cv_path_NM="$tmp_nm -p"
6054 break
6055 ;;
6056 *)
6057 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6058 continue # so that we can try to find one that supports BSD flags
6059 ;;
6060 esac
6061 ;;
6062 esac
6063 fi
6064 done
6065 IFS="$lt_save_ifs"
6066 done
6067 : ${lt_cv_path_NM=no}
6068fi
6069fi
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6071$as_echo "$lt_cv_path_NM" >&6; }
6072if test "$lt_cv_path_NM" != "no"; then
6073 NM="$lt_cv_path_NM"
6074else
6075 # Didn't find any BSD compatible name lister, look for dumpbin.
6076 if test -n "$DUMPBIN"; then :
6077 # Let the user override the test.
6078 else
6079 if test -n "$ac_tool_prefix"; then
6080 for ac_prog in dumpbin "link -dump"
6081 do
6082 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6083set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6085$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6086if ${ac_cv_prog_DUMPBIN+:} false; then :
6bb11ab3
L
6087 $as_echo_n "(cached) " >&6
6088else
6089 if test -n "$DUMPBIN"; then
6090 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6091else
6092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093for as_dir in $PATH
6094do
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6099 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 break 2
6102 fi
6103done
6104 done
6105IFS=$as_save_IFS
6106
6107fi
6108fi
6109DUMPBIN=$ac_cv_prog_DUMPBIN
6110if test -n "$DUMPBIN"; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6112$as_echo "$DUMPBIN" >&6; }
6113else
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6115$as_echo "no" >&6; }
6116fi
6117
6118
6119 test -n "$DUMPBIN" && break
6120 done
6121fi
6122if test -z "$DUMPBIN"; then
6123 ac_ct_DUMPBIN=$DUMPBIN
6124 for ac_prog in dumpbin "link -dump"
6125do
6126 # Extract the first word of "$ac_prog", so it can be a program name with args.
6127set dummy $ac_prog; ac_word=$2
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6129$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6130if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6bb11ab3
L
6131 $as_echo_n "(cached) " >&6
6132else
6133 if test -n "$ac_ct_DUMPBIN"; then
6134 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6135else
6136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137for as_dir in $PATH
6138do
6139 IFS=$as_save_IFS
6140 test -z "$as_dir" && as_dir=.
6141 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6143 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6145 break 2
6146 fi
6147done
6148 done
6149IFS=$as_save_IFS
6150
6151fi
6152fi
6153ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6154if test -n "$ac_ct_DUMPBIN"; then
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6156$as_echo "$ac_ct_DUMPBIN" >&6; }
6157else
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6159$as_echo "no" >&6; }
6160fi
6161
6162
6163 test -n "$ac_ct_DUMPBIN" && break
6164done
6165
6166 if test "x$ac_ct_DUMPBIN" = x; then
6167 DUMPBIN=":"
6168 else
6169 case $cross_compiling:$ac_tool_warned in
6170yes:)
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6173ac_tool_warned=yes ;;
6174esac
6175 DUMPBIN=$ac_ct_DUMPBIN
6176 fi
6177fi
6178
6179 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6180 *COFF*)
6181 DUMPBIN="$DUMPBIN -symbols"
6182 ;;
6183 *)
6184 DUMPBIN=:
6185 ;;
6186 esac
6187 fi
6188
6189 if test "$DUMPBIN" != ":"; then
6190 NM="$DUMPBIN"
6191 fi
6192fi
6193test -z "$NM" && NM=nm
6194
6195
6196
6197
6198
6199
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6201$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 6202if ${lt_cv_nm_interface+:} false; then :
6bb11ab3
L
6203 $as_echo_n "(cached) " >&6
6204else
6205 lt_cv_nm_interface="BSD nm"
6206 echo "int some_variable = 0;" > conftest.$ac_ext
6207 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6208 (eval "$ac_compile" 2>conftest.err)
6209 cat conftest.err >&5
6210 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6211 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6212 cat conftest.err >&5
6213 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6214 cat conftest.out >&5
6215 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6216 lt_cv_nm_interface="MS dumpbin"
6217 fi
6218 rm -f conftest*
6219fi
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6221$as_echo "$lt_cv_nm_interface" >&6; }
6222
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6224$as_echo_n "checking whether ln -s works... " >&6; }
6225LN_S=$as_ln_s
6226if test "$LN_S" = "ln -s"; then
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6228$as_echo "yes" >&6; }
6229else
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6231$as_echo "no, using $LN_S" >&6; }
6232fi
6233
6234# find the maximum length of command line arguments
6235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6236$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 6237if ${lt_cv_sys_max_cmd_len+:} false; then :
6bb11ab3
L
6238 $as_echo_n "(cached) " >&6
6239else
6240 i=0
6241 teststring="ABCD"
6242
6243 case $build_os in
6244 msdosdjgpp*)
6245 # On DJGPP, this test can blow up pretty badly due to problems in libc
6246 # (any single argument exceeding 2000 bytes causes a buffer overrun
6247 # during glob expansion). Even if it were fixed, the result of this
6248 # check would be larger than it should be.
6249 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6250 ;;
6251
6252 gnu*)
6253 # Under GNU Hurd, this test is not required because there is
6254 # no limit to the length of command line arguments.
6255 # Libtool will interpret -1 as no limit whatsoever
6256 lt_cv_sys_max_cmd_len=-1;
6257 ;;
6258
6259 cygwin* | mingw* | cegcc*)
6260 # On Win9x/ME, this test blows up -- it succeeds, but takes
6261 # about 5 minutes as the teststring grows exponentially.
6262 # Worse, since 9x/ME are not pre-emptively multitasking,
6263 # you end up with a "frozen" computer, even though with patience
6264 # the test eventually succeeds (with a max line length of 256k).
6265 # Instead, let's just punt: use the minimum linelength reported by
6266 # all of the supported platforms: 8192 (on NT/2K/XP).
6267 lt_cv_sys_max_cmd_len=8192;
6268 ;;
6269
6270 mint*)
6271 # On MiNT this can take a long time and run out of memory.
6272 lt_cv_sys_max_cmd_len=8192;
6273 ;;
6274
6275 amigaos*)
6276 # On AmigaOS with pdksh, this test takes hours, literally.
6277 # So we just punt and use a minimum line length of 8192.
6278 lt_cv_sys_max_cmd_len=8192;
6279 ;;
6280
6281 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6282 # This has been around since 386BSD, at least. Likely further.
6283 if test -x /sbin/sysctl; then
6284 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6285 elif test -x /usr/sbin/sysctl; then
6286 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6287 else
6288 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6289 fi
6290 # And add a safety zone
6291 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6292 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6293 ;;
6294
6295 interix*)
6296 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6297 lt_cv_sys_max_cmd_len=196608
6298 ;;
6299
6300 osf*)
6301 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6302 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6303 # nice to cause kernel panics so lets avoid the loop below.
6304 # First set a reasonable default.
6305 lt_cv_sys_max_cmd_len=16384
6306 #
6307 if test -x /sbin/sysconfig; then
6308 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6309 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6310 esac
6311 fi
6312 ;;
6313 sco3.2v5*)
6314 lt_cv_sys_max_cmd_len=102400
6315 ;;
6316 sysv5* | sco5v6* | sysv4.2uw2*)
6317 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6318 if test -n "$kargmax"; then
6319 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6320 else
6321 lt_cv_sys_max_cmd_len=32768
6322 fi
6323 ;;
6324 *)
6325 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6326 if test -n "$lt_cv_sys_max_cmd_len"; then
6327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6329 else
6330 # Make teststring a little bigger before we do anything with it.
6331 # a 1K string should be a reasonable start.
6332 for i in 1 2 3 4 5 6 7 8 ; do
6333 teststring=$teststring$teststring
6334 done
6335 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6336 # If test is not a shell built-in, we'll probably end up computing a
6337 # maximum length that is only half of the actual maximum length, but
6338 # we can't tell.
6339 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6340 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6341 test $i != 17 # 1/2 MB should be enough
6342 do
6343 i=`expr $i + 1`
6344 teststring=$teststring$teststring
6345 done
6346 # Only check the string length outside the loop.
6347 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6348 teststring=
6349 # Add a significant safety factor because C++ compilers can tack on
6350 # massive amounts of additional arguments before passing them to the
6351 # linker. It appears as though 1/2 is a usable value.
6352 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6353 fi
6354 ;;
6355 esac
6356
6357fi
6358
6359if test -n $lt_cv_sys_max_cmd_len ; then
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6361$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6362else
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6364$as_echo "none" >&6; }
6365fi
6366max_cmd_len=$lt_cv_sys_max_cmd_len
6367
6368
6369
6370
6371
6372
6373: ${CP="cp -f"}
6374: ${MV="mv -f"}
6375: ${RM="rm -f"}
6376
6377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6378$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6379# Try some XSI features
6380xsi_shell=no
6381( _lt_dummy="a/b/c"
6382 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6383 = c,a/b,, \
6384 && eval 'test $(( 1 + 1 )) -eq 2 \
6385 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6386 && xsi_shell=yes
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6388$as_echo "$xsi_shell" >&6; }
6389
6390
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6392$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6393lt_shell_append=no
6394( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6395 >/dev/null 2>&1 \
6396 && lt_shell_append=yes
6397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6398$as_echo "$lt_shell_append" >&6; }
6399
6400
6401if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6402 lt_unset=unset
6403else
6404 lt_unset=false
6405fi
6406
6407
6408
6409
6410
6411# test EBCDIC or ASCII
6412case `echo X|tr X '\101'` in
6413 A) # ASCII based system
6414 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6415 lt_SP2NL='tr \040 \012'
6416 lt_NL2SP='tr \015\012 \040\040'
6417 ;;
6418 *) # EBCDIC based system
6419 lt_SP2NL='tr \100 \n'
6420 lt_NL2SP='tr \r\n \100\100'
6421 ;;
6422esac
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6433$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 6434if ${lt_cv_ld_reload_flag+:} false; then :
6bb11ab3
L
6435 $as_echo_n "(cached) " >&6
6436else
6437 lt_cv_ld_reload_flag='-r'
6438fi
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6440$as_echo "$lt_cv_ld_reload_flag" >&6; }
6441reload_flag=$lt_cv_ld_reload_flag
6442case $reload_flag in
6443"" | " "*) ;;
6444*) reload_flag=" $reload_flag" ;;
6445esac
6446reload_cmds='$LD$reload_flag -o $output$reload_objs'
6447case $host_os in
6448 darwin*)
6449 if test "$GCC" = yes; then
6450 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6451 else
6452 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6453 fi
6454 ;;
6455esac
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465if test -n "$ac_tool_prefix"; then
6466 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6467set dummy ${ac_tool_prefix}objdump; ac_word=$2
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6469$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6470if ${ac_cv_prog_OBJDUMP+:} false; then :
6bb11ab3
L
6471 $as_echo_n "(cached) " >&6
6472else
6473 if test -n "$OBJDUMP"; then
6474 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6475else
6476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477for as_dir in $PATH
6478do
6479 IFS=$as_save_IFS
6480 test -z "$as_dir" && as_dir=.
6481 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6483 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6485 break 2
6486 fi
6487done
6488 done
6489IFS=$as_save_IFS
6490
6491fi
6492fi
6493OBJDUMP=$ac_cv_prog_OBJDUMP
6494if test -n "$OBJDUMP"; then
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6496$as_echo "$OBJDUMP" >&6; }
6497else
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6499$as_echo "no" >&6; }
6500fi
6501
6502
6503fi
6504if test -z "$ac_cv_prog_OBJDUMP"; then
6505 ac_ct_OBJDUMP=$OBJDUMP
6506 # Extract the first word of "objdump", so it can be a program name with args.
6507set dummy objdump; ac_word=$2
6508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6509$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6510if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6bb11ab3
L
6511 $as_echo_n "(cached) " >&6
6512else
6513 if test -n "$ac_ct_OBJDUMP"; then
6514 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6515else
6516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517for as_dir in $PATH
6518do
6519 IFS=$as_save_IFS
6520 test -z "$as_dir" && as_dir=.
6521 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6523 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 break 2
6526 fi
6527done
6528 done
6529IFS=$as_save_IFS
6530
6531fi
6532fi
6533ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6534if test -n "$ac_ct_OBJDUMP"; then
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6536$as_echo "$ac_ct_OBJDUMP" >&6; }
6537else
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6539$as_echo "no" >&6; }
6540fi
6541
6542 if test "x$ac_ct_OBJDUMP" = x; then
6543 OBJDUMP="false"
6544 else
6545 case $cross_compiling:$ac_tool_warned in
6546yes:)
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6549ac_tool_warned=yes ;;
6550esac
6551 OBJDUMP=$ac_ct_OBJDUMP
6552 fi
6553else
6554 OBJDUMP="$ac_cv_prog_OBJDUMP"
6555fi
6556
6557test -z "$OBJDUMP" && OBJDUMP=objdump
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6568$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 6569if ${lt_cv_deplibs_check_method+:} false; then :
6bb11ab3
L
6570 $as_echo_n "(cached) " >&6
6571else
6572 lt_cv_file_magic_cmd='$MAGIC_CMD'
6573lt_cv_file_magic_test_file=
6574lt_cv_deplibs_check_method='unknown'
6575# Need to set the preceding variable on all platforms that support
6576# interlibrary dependencies.
6577# 'none' -- dependencies not supported.
6578# `unknown' -- same as none, but documents that we really don't know.
6579# 'pass_all' -- all dependencies passed with no checks.
6580# 'test_compile' -- check by making test program.
6581# 'file_magic [[regex]]' -- check by looking for files in library path
6582# which responds to the $file_magic_cmd with a given extended regex.
6583# If you have `file' or equivalent on your system and you're not sure
6584# whether `pass_all' will *always* work, you probably want this one.
6585
6586case $host_os in
6587aix[4-9]*)
6588 lt_cv_deplibs_check_method=pass_all
6589 ;;
6590
6591beos*)
6592 lt_cv_deplibs_check_method=pass_all
6593 ;;
6594
6595bsdi[45]*)
6596 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6597 lt_cv_file_magic_cmd='/usr/bin/file -L'
6598 lt_cv_file_magic_test_file=/shlib/libc.so
6599 ;;
6600
6601cygwin*)
6602 # func_win32_libid is a shell function defined in ltmain.sh
6603 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6604 lt_cv_file_magic_cmd='func_win32_libid'
6605 ;;
6606
6607mingw* | pw32*)
6608 # Base MSYS/MinGW do not provide the 'file' command needed by
6609 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6610 # unless we find 'file', for example because we are cross-compiling.
6611 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6612 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6613 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6614 lt_cv_file_magic_cmd='func_win32_libid'
6615 else
6616 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6617 lt_cv_file_magic_cmd='$OBJDUMP -f'
6618 fi
6619 ;;
6620
6621cegcc*)
6622 # use the weaker test based on 'objdump'. See mingw*.
6623 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6624 lt_cv_file_magic_cmd='$OBJDUMP -f'
6625 ;;
6626
6627darwin* | rhapsody*)
6628 lt_cv_deplibs_check_method=pass_all
6629 ;;
6630
6631freebsd* | dragonfly*)
6632 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6633 case $host_cpu in
6634 i*86 )
6635 # Not sure whether the presence of OpenBSD here was a mistake.
6636 # Let's accept both of them until this is cleared up.
6637 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6638 lt_cv_file_magic_cmd=/usr/bin/file
6639 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6640 ;;
6641 esac
6642 else
6643 lt_cv_deplibs_check_method=pass_all
6644 fi
6645 ;;
6646
6647gnu*)
6648 lt_cv_deplibs_check_method=pass_all
6649 ;;
6650
6651haiku*)
6652 lt_cv_deplibs_check_method=pass_all
6653 ;;
6654
6655hpux10.20* | hpux11*)
6656 lt_cv_file_magic_cmd=/usr/bin/file
6657 case $host_cpu in
6658 ia64*)
6659 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6660 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6661 ;;
6662 hppa*64*)
6663 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]'
6664 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6665 ;;
6666 *)
6667 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6668 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6669 ;;
6670 esac
6671 ;;
6672
6673interix[3-9]*)
6674 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6676 ;;
6677
6678irix5* | irix6* | nonstopux*)
6679 case $LD in
6680 *-32|*"-32 ") libmagic=32-bit;;
6681 *-n32|*"-n32 ") libmagic=N32;;
6682 *-64|*"-64 ") libmagic=64-bit;;
6683 *) libmagic=never-match;;
6684 esac
6685 lt_cv_deplibs_check_method=pass_all
6686 ;;
6687
6688# This must be Linux ELF.
6689linux* | k*bsd*-gnu | kopensolaris*-gnu)
6690 lt_cv_deplibs_check_method=pass_all
6691 ;;
6692
6693netbsd*)
6694 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6696 else
6697 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6698 fi
6699 ;;
6700
6701newos6*)
6702 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6703 lt_cv_file_magic_cmd=/usr/bin/file
6704 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6705 ;;
6706
6707*nto* | *qnx*)
6708 lt_cv_deplibs_check_method=pass_all
6709 ;;
6710
6711openbsd*)
6712 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6714 else
6715 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6716 fi
6717 ;;
6718
6719osf3* | osf4* | osf5*)
6720 lt_cv_deplibs_check_method=pass_all
6721 ;;
6722
6723rdos*)
6724 lt_cv_deplibs_check_method=pass_all
6725 ;;
6726
6727solaris*)
6728 lt_cv_deplibs_check_method=pass_all
6729 ;;
6730
6731sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6732 lt_cv_deplibs_check_method=pass_all
6733 ;;
6734
6735sysv4 | sysv4.3*)
6736 case $host_vendor in
6737 motorola)
6738 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]'
6739 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6740 ;;
6741 ncr)
6742 lt_cv_deplibs_check_method=pass_all
6743 ;;
6744 sequent)
6745 lt_cv_file_magic_cmd='/bin/file'
6746 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6747 ;;
6748 sni)
6749 lt_cv_file_magic_cmd='/bin/file'
6750 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6751 lt_cv_file_magic_test_file=/lib/libc.so
6752 ;;
6753 siemens)
6754 lt_cv_deplibs_check_method=pass_all
6755 ;;
6756 pc)
6757 lt_cv_deplibs_check_method=pass_all
6758 ;;
6759 esac
6760 ;;
6761
6762tpf*)
6763 lt_cv_deplibs_check_method=pass_all
6764 ;;
6765esac
6766
6767fi
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6769$as_echo "$lt_cv_deplibs_check_method" >&6; }
6770file_magic_cmd=$lt_cv_file_magic_cmd
6771deplibs_check_method=$lt_cv_deplibs_check_method
6772test -z "$deplibs_check_method" && deplibs_check_method=unknown
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785if test -n "$ac_tool_prefix"; then
6786 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6787set dummy ${ac_tool_prefix}ar; ac_word=$2
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6790if ${ac_cv_prog_AR+:} false; then :
6bb11ab3
L
6791 $as_echo_n "(cached) " >&6
6792else
6793 if test -n "$AR"; then
6794 ac_cv_prog_AR="$AR" # Let the user override the test.
6795else
6796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797for as_dir in $PATH
6798do
6799 IFS=$as_save_IFS
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6803 ac_cv_prog_AR="${ac_tool_prefix}ar"
6804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 break 2
6806 fi
6807done
6808 done
6809IFS=$as_save_IFS
6810
6811fi
6812fi
6813AR=$ac_cv_prog_AR
6814if test -n "$AR"; then
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6816$as_echo "$AR" >&6; }
6817else
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819$as_echo "no" >&6; }
6820fi
6821
6822
6823fi
6824if test -z "$ac_cv_prog_AR"; then
6825 ac_ct_AR=$AR
6826 # Extract the first word of "ar", so it can be a program name with args.
6827set dummy ar; ac_word=$2
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6830if ${ac_cv_prog_ac_ct_AR+:} false; then :
6bb11ab3
L
6831 $as_echo_n "(cached) " >&6
6832else
6833 if test -n "$ac_ct_AR"; then
6834 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6835else
6836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837for as_dir in $PATH
6838do
6839 IFS=$as_save_IFS
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6843 ac_cv_prog_ac_ct_AR="ar"
6844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 break 2
6846 fi
6847done
6848 done
6849IFS=$as_save_IFS
6850
6851fi
6852fi
6853ac_ct_AR=$ac_cv_prog_ac_ct_AR
6854if test -n "$ac_ct_AR"; then
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6856$as_echo "$ac_ct_AR" >&6; }
6857else
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859$as_echo "no" >&6; }
6860fi
6861
6862 if test "x$ac_ct_AR" = x; then
6863 AR="false"
6864 else
6865 case $cross_compiling:$ac_tool_warned in
6866yes:)
6867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6869ac_tool_warned=yes ;;
6870esac
6871 AR=$ac_ct_AR
6872 fi
6873else
6874 AR="$ac_cv_prog_AR"
6875fi
6876
6877test -z "$AR" && AR=ar
6878test -z "$AR_FLAGS" && AR_FLAGS=cru
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890if test -n "$ac_tool_prefix"; then
6891 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6892set dummy ${ac_tool_prefix}strip; ac_word=$2
6893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6895if ${ac_cv_prog_STRIP+:} false; then :
6bb11ab3
L
6896 $as_echo_n "(cached) " >&6
6897else
6898 if test -n "$STRIP"; then
6899 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6900else
6901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6908 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6911 fi
6912done
6913 done
6914IFS=$as_save_IFS
6915
6916fi
6917fi
6918STRIP=$ac_cv_prog_STRIP
6919if test -n "$STRIP"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6921$as_echo "$STRIP" >&6; }
6922else
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924$as_echo "no" >&6; }
6925fi
6926
6927
6928fi
6929if test -z "$ac_cv_prog_STRIP"; then
6930 ac_ct_STRIP=$STRIP
6931 # Extract the first word of "strip", so it can be a program name with args.
6932set dummy strip; ac_word=$2
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6935if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6bb11ab3
L
6936 $as_echo_n "(cached) " >&6
6937else
6938 if test -n "$ac_ct_STRIP"; then
6939 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6940else
6941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6948 ac_cv_prog_ac_ct_STRIP="strip"
6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6951 fi
6952done
6953 done
6954IFS=$as_save_IFS
6955
6956fi
6957fi
6958ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6959if test -n "$ac_ct_STRIP"; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6961$as_echo "$ac_ct_STRIP" >&6; }
6962else
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964$as_echo "no" >&6; }
6965fi
6966
6967 if test "x$ac_ct_STRIP" = x; then
6968 STRIP=":"
6969 else
6970 case $cross_compiling:$ac_tool_warned in
6971yes:)
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6974ac_tool_warned=yes ;;
6975esac
6976 STRIP=$ac_ct_STRIP
6977 fi
6978else
6979 STRIP="$ac_cv_prog_STRIP"
6980fi
6981
6982test -z "$STRIP" && STRIP=:
6983
6984
6985
6986
6987
6988
6989if test -n "$ac_tool_prefix"; then
6990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6991set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6994if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
6995 $as_echo_n "(cached) " >&6
6996else
6997 if test -n "$RANLIB"; then
6998 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6999else
7000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001for as_dir in $PATH
7002do
7003 IFS=$as_save_IFS
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7007 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 break 2
7010 fi
7011done
7012 done
7013IFS=$as_save_IFS
7014
7015fi
7016fi
7017RANLIB=$ac_cv_prog_RANLIB
7018if test -n "$RANLIB"; then
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7020$as_echo "$RANLIB" >&6; }
7021else
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023$as_echo "no" >&6; }
7024fi
7025
7026
7027fi
7028if test -z "$ac_cv_prog_RANLIB"; then
7029 ac_ct_RANLIB=$RANLIB
7030 # Extract the first word of "ranlib", so it can be a program name with args.
7031set dummy ranlib; ac_word=$2
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7034if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
7035 $as_echo_n "(cached) " >&6
7036else
7037 if test -n "$ac_ct_RANLIB"; then
7038 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7039else
7040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041for as_dir in $PATH
7042do
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7047 ac_cv_prog_ac_ct_RANLIB="ranlib"
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 break 2
7050 fi
7051done
7052 done
7053IFS=$as_save_IFS
7054
7055fi
7056fi
7057ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7058if test -n "$ac_ct_RANLIB"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7060$as_echo "$ac_ct_RANLIB" >&6; }
7061else
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063$as_echo "no" >&6; }
7064fi
7065
7066 if test "x$ac_ct_RANLIB" = x; then
7067 RANLIB=":"
7068 else
7069 case $cross_compiling:$ac_tool_warned in
7070yes:)
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7073ac_tool_warned=yes ;;
7074esac
7075 RANLIB=$ac_ct_RANLIB
7076 fi
7077else
7078 RANLIB="$ac_cv_prog_RANLIB"
7079fi
7080
7081test -z "$RANLIB" && RANLIB=:
7082
7083
7084
7085
7086
7087
7088# Determine commands to create old-style static archives.
7089old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7090old_postinstall_cmds='chmod 644 $oldlib'
7091old_postuninstall_cmds=
7092
7093if test -n "$RANLIB"; then
7094 case $host_os in
7095 openbsd*)
7096 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7097 ;;
7098 *)
7099 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7100 ;;
7101 esac
7102 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7103fi
7104
7105case $host_os in
7106 darwin*)
7107 lock_old_archive_extraction=yes ;;
7108 *)
7109 lock_old_archive_extraction=no ;;
7110esac
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132for ac_prog in gawk mawk nawk awk
7133do
7134 # Extract the first word of "$ac_prog", so it can be a program name with args.
7135set dummy $ac_prog; ac_word=$2
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7138if ${ac_cv_prog_AWK+:} false; then :
6bb11ab3
L
7139 $as_echo_n "(cached) " >&6
7140else
7141 if test -n "$AWK"; then
7142 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7143else
7144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145for as_dir in $PATH
7146do
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7151 ac_cv_prog_AWK="$ac_prog"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7154 fi
7155done
7156 done
7157IFS=$as_save_IFS
7158
7159fi
7160fi
7161AWK=$ac_cv_prog_AWK
7162if test -n "$AWK"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7164$as_echo "$AWK" >&6; }
7165else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167$as_echo "no" >&6; }
7168fi
7169
7170
7171 test -n "$AWK" && break
7172done
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192# If no C compiler was specified, use CC.
7193LTCC=${LTCC-"$CC"}
7194
7195# If no C compiler flags were specified, use CFLAGS.
7196LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7197
7198# Allow CC to be a program name with arguments.
7199compiler=$CC
7200
7201
7202# Check for command to grab the raw symbol name followed by C symbol from nm.
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7204$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 7205if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6bb11ab3
L
7206 $as_echo_n "(cached) " >&6
7207else
7208
7209# These are sane defaults that work on at least a few old systems.
7210# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7211
7212# Character class describing NM global symbol codes.
7213symcode='[BCDEGRST]'
7214
7215# Regexp to match symbols that can be accessed directly from C.
7216sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7217
7218# Define system-specific variables.
7219case $host_os in
7220aix*)
7221 symcode='[BCDT]'
7222 ;;
7223cygwin* | mingw* | pw32* | cegcc*)
7224 symcode='[ABCDGISTW]'
7225 ;;
7226hpux*)
7227 if test "$host_cpu" = ia64; then
7228 symcode='[ABCDEGRST]'
7229 fi
7230 ;;
7231irix* | nonstopux*)
7232 symcode='[BCDEGRST]'
7233 ;;
7234osf*)
7235 symcode='[BCDEGQRST]'
7236 ;;
7237solaris*)
7238 symcode='[BDRT]'
7239 ;;
7240sco3.2v5*)
7241 symcode='[DT]'
7242 ;;
7243sysv4.2uw2*)
7244 symcode='[DT]'
7245 ;;
7246sysv5* | sco5v6* | unixware* | OpenUNIX*)
7247 symcode='[ABDT]'
7248 ;;
7249sysv4)
7250 symcode='[DFNSTU]'
7251 ;;
7252esac
7253
7254# If we're using GNU nm, then use its standard symbol codes.
7255case `$NM -V 2>&1` in
7256*GNU* | *'with BFD'*)
7257 symcode='[ABCDGIRSTW]' ;;
7258esac
7259
7260# Transform an extracted symbol line into a proper C declaration.
7261# Some systems (esp. on ia64) link data and code symbols differently,
7262# so use this general approach.
7263lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7264
7265# Transform an extracted symbol line into symbol name and symbol address
7266lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7267lt_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'"
7268
7269# Handle CRLF in mingw tool chain
7270opt_cr=
7271case $build_os in
7272mingw*)
7273 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7274 ;;
7275esac
7276
7277# Try without a prefix underscore, then with it.
7278for ac_symprfx in "" "_"; do
7279
7280 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7281 symxfrm="\\1 $ac_symprfx\\2 \\2"
7282
7283 # Write the raw and C identifiers.
7284 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7285 # Fake it for dumpbin and say T for any non-static function
7286 # and D for any global variable.
7287 # Also find C++ and __fastcall symbols from MSVC++,
7288 # which start with @ or ?.
7289 lt_cv_sys_global_symbol_pipe="$AWK '"\
7290" {last_section=section; section=\$ 3};"\
7291" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7292" \$ 0!~/External *\|/{next};"\
7293" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7294" {if(hide[section]) next};"\
7295" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7296" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7297" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7298" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7299" ' prfx=^$ac_symprfx"
7300 else
7301 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7302 fi
7303
7304 # Check to see that the pipe works correctly.
7305 pipe_works=no
7306
7307 rm -f conftest*
7308 cat > conftest.$ac_ext <<_LT_EOF
7309#ifdef __cplusplus
7310extern "C" {
7311#endif
7312char nm_test_var;
7313void nm_test_func(void);
7314void nm_test_func(void){}
7315#ifdef __cplusplus
7316}
7317#endif
7318int main(){nm_test_var='a';nm_test_func();return(0);}
7319_LT_EOF
7320
7321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7322 (eval $ac_compile) 2>&5
7323 ac_status=$?
7324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7325 test $ac_status = 0; }; then
7326 # Now try to grab the symbols.
7327 nlist=conftest.nm
7328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7329 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7330 ac_status=$?
7331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7332 test $ac_status = 0; } && test -s "$nlist"; then
7333 # Try sorting and uniquifying the output.
7334 if sort "$nlist" | uniq > "$nlist"T; then
7335 mv -f "$nlist"T "$nlist"
7336 else
7337 rm -f "$nlist"T
7338 fi
7339
7340 # Make sure that we snagged all the symbols we need.
7341 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7342 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7343 cat <<_LT_EOF > conftest.$ac_ext
7344#ifdef __cplusplus
7345extern "C" {
7346#endif
7347
7348_LT_EOF
7349 # Now generate the symbol file.
7350 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7351
7352 cat <<_LT_EOF >> conftest.$ac_ext
7353
7354/* The mapping between symbol names and symbols. */
7355const struct {
7356 const char *name;
7357 void *address;
7358}
7359lt__PROGRAM__LTX_preloaded_symbols[] =
7360{
7361 { "@PROGRAM@", (void *) 0 },
7362_LT_EOF
7363 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7364 cat <<\_LT_EOF >> conftest.$ac_ext
7365 {0, (void *) 0}
7366};
7367
7368/* This works around a problem in FreeBSD linker */
7369#ifdef FREEBSD_WORKAROUND
7370static const void *lt_preloaded_setup() {
7371 return lt__PROGRAM__LTX_preloaded_symbols;
7372}
7373#endif
7374
7375#ifdef __cplusplus
7376}
7377#endif
7378_LT_EOF
7379 # Now try linking the two files.
7380 mv conftest.$ac_objext conftstm.$ac_objext
7381 lt_save_LIBS="$LIBS"
7382 lt_save_CFLAGS="$CFLAGS"
7383 LIBS="conftstm.$ac_objext"
7384 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7386 (eval $ac_link) 2>&5
7387 ac_status=$?
7388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7389 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7390 pipe_works=yes
7391 fi
7392 LIBS="$lt_save_LIBS"
7393 CFLAGS="$lt_save_CFLAGS"
7394 else
7395 echo "cannot find nm_test_func in $nlist" >&5
7396 fi
7397 else
7398 echo "cannot find nm_test_var in $nlist" >&5
7399 fi
7400 else
7401 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7402 fi
7403 else
7404 echo "$progname: failed program was:" >&5
7405 cat conftest.$ac_ext >&5
7406 fi
7407 rm -rf conftest* conftst*
7408
7409 # Do not use the global_symbol_pipe unless it works.
7410 if test "$pipe_works" = yes; then
7411 break
7412 else
7413 lt_cv_sys_global_symbol_pipe=
7414 fi
7415done
7416
7417fi
7418
7419if test -z "$lt_cv_sys_global_symbol_pipe"; then
7420 lt_cv_sys_global_symbol_to_cdecl=
7421fi
7422if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7424$as_echo "failed" >&6; }
7425else
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7427$as_echo "ok" >&6; }
7428fi
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451# Check whether --enable-libtool-lock was given.
7452if test "${enable_libtool_lock+set}" = set; then :
7453 enableval=$enable_libtool_lock;
7454fi
7455
7456test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7457
7458# Some flags need to be propagated to the compiler or linker for good
7459# libtool support.
7460case $host in
7461ia64-*-hpux*)
7462 # Find out which ABI we are using.
7463 echo 'int i;' > conftest.$ac_ext
7464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7465 (eval $ac_compile) 2>&5
7466 ac_status=$?
7467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7468 test $ac_status = 0; }; then
7469 case `/usr/bin/file conftest.$ac_objext` in
7470 *ELF-32*)
7471 HPUX_IA64_MODE="32"
7472 ;;
7473 *ELF-64*)
7474 HPUX_IA64_MODE="64"
7475 ;;
7476 esac
7477 fi
7478 rm -rf conftest*
7479 ;;
7480*-*-irix6*)
7481 # Find out which ABI we are using.
7482 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7484 (eval $ac_compile) 2>&5
7485 ac_status=$?
7486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7487 test $ac_status = 0; }; then
7488 if test "$lt_cv_prog_gnu_ld" = yes; then
7489 case `/usr/bin/file conftest.$ac_objext` in
7490 *32-bit*)
7491 LD="${LD-ld} -melf32bsmip"
7492 ;;
7493 *N32*)
7494 LD="${LD-ld} -melf32bmipn32"
7495 ;;
7496 *64-bit*)
7497 LD="${LD-ld} -melf64bmip"
7498 ;;
7499 esac
7500 else
7501 case `/usr/bin/file conftest.$ac_objext` in
7502 *32-bit*)
7503 LD="${LD-ld} -32"
7504 ;;
7505 *N32*)
7506 LD="${LD-ld} -n32"
7507 ;;
7508 *64-bit*)
7509 LD="${LD-ld} -64"
7510 ;;
7511 esac
7512 fi
7513 fi
7514 rm -rf conftest*
7515 ;;
7516
bf3d9781 7517x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6bb11ab3
L
7518s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7519 # Find out which ABI we are using.
7520 echo 'int i;' > conftest.$ac_ext
7521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7522 (eval $ac_compile) 2>&5
7523 ac_status=$?
7524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7525 test $ac_status = 0; }; then
7526 case `/usr/bin/file conftest.o` in
7527 *32-bit*)
7528 case $host in
7529 x86_64-*kfreebsd*-gnu)
7530 LD="${LD-ld} -m elf_i386_fbsd"
7531 ;;
7532 x86_64-*linux*)
7533 case `/usr/bin/file conftest.o` in
7534 *x86-64*)
7535 LD="${LD-ld} -m elf32_x86_64"
7536 ;;
7537 *)
7538 LD="${LD-ld} -m elf_i386"
7539 ;;
7540 esac
7541 ;;
bf3d9781
AM
7542 powerpc64le-*linux*)
7543 LD="${LD-ld} -m elf32lppclinux"
7544 ;;
7545 powerpc64-*linux*)
6bb11ab3
L
7546 LD="${LD-ld} -m elf32ppclinux"
7547 ;;
7548 s390x-*linux*)
7549 LD="${LD-ld} -m elf_s390"
7550 ;;
7551 sparc64-*linux*)
7552 LD="${LD-ld} -m elf32_sparc"
7553 ;;
7554 esac
7555 ;;
7556 *64-bit*)
7557 case $host in
7558 x86_64-*kfreebsd*-gnu)
7559 LD="${LD-ld} -m elf_x86_64_fbsd"
7560 ;;
7561 x86_64-*linux*)
7562 LD="${LD-ld} -m elf_x86_64"
7563 ;;
bf3d9781
AM
7564 powerpcle-*linux*)
7565 LD="${LD-ld} -m elf64lppc"
7566 ;;
7567 powerpc-*linux*)
6bb11ab3
L
7568 LD="${LD-ld} -m elf64ppc"
7569 ;;
7570 s390*-*linux*|s390*-*tpf*)
7571 LD="${LD-ld} -m elf64_s390"
7572 ;;
7573 sparc*-*linux*)
7574 LD="${LD-ld} -m elf64_sparc"
7575 ;;
7576 esac
7577 ;;
7578 esac
7579 fi
7580 rm -rf conftest*
7581 ;;
7582
7583*-*-sco3.2v5*)
7584 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7585 SAVE_CFLAGS="$CFLAGS"
7586 CFLAGS="$CFLAGS -belf"
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7588$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 7589if ${lt_cv_cc_needs_belf+:} false; then :
6bb11ab3
L
7590 $as_echo_n "(cached) " >&6
7591else
7592 ac_ext=c
7593ac_cpp='$CPP $CPPFLAGS'
7594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7596ac_compiler_gnu=$ac_cv_c_compiler_gnu
7597
7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599/* end confdefs.h. */
7600
7601int
7602main ()
7603{
7604
7605 ;
7606 return 0;
7607}
7608_ACEOF
7609if ac_fn_c_try_link "$LINENO"; then :
7610 lt_cv_cc_needs_belf=yes
7611else
7612 lt_cv_cc_needs_belf=no
7613fi
7614rm -f core conftest.err conftest.$ac_objext \
7615 conftest$ac_exeext conftest.$ac_ext
7616 ac_ext=c
7617ac_cpp='$CPP $CPPFLAGS'
7618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7620ac_compiler_gnu=$ac_cv_c_compiler_gnu
7621
7622fi
7623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7624$as_echo "$lt_cv_cc_needs_belf" >&6; }
7625 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7626 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7627 CFLAGS="$SAVE_CFLAGS"
7628 fi
7629 ;;
7630sparc*-*solaris*)
7631 # Find out which ABI we are using.
7632 echo 'int i;' > conftest.$ac_ext
7633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7634 (eval $ac_compile) 2>&5
7635 ac_status=$?
7636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7637 test $ac_status = 0; }; then
7638 case `/usr/bin/file conftest.o` in
7639 *64-bit*)
7640 case $lt_cv_prog_gnu_ld in
7641 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7642 *)
7643 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7644 LD="${LD-ld} -64"
7645 fi
7646 ;;
7647 esac
7648 ;;
7649 esac
7650 fi
7651 rm -rf conftest*
7652 ;;
7653esac
7654
7655need_locks="$enable_libtool_lock"
7656
7657
7658 case $host_os in
7659 rhapsody* | darwin*)
7660 if test -n "$ac_tool_prefix"; then
7661 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7662set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7665if ${ac_cv_prog_DSYMUTIL+:} false; then :
6bb11ab3
L
7666 $as_echo_n "(cached) " >&6
7667else
7668 if test -n "$DSYMUTIL"; then
7669 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7670else
7671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672for as_dir in $PATH
7673do
7674 IFS=$as_save_IFS
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7678 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680 break 2
7681 fi
7682done
7683 done
7684IFS=$as_save_IFS
7685
7686fi
7687fi
7688DSYMUTIL=$ac_cv_prog_DSYMUTIL
7689if test -n "$DSYMUTIL"; then
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7691$as_echo "$DSYMUTIL" >&6; }
7692else
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694$as_echo "no" >&6; }
7695fi
7696
7697
7698fi
7699if test -z "$ac_cv_prog_DSYMUTIL"; then
7700 ac_ct_DSYMUTIL=$DSYMUTIL
7701 # Extract the first word of "dsymutil", so it can be a program name with args.
7702set dummy dsymutil; ac_word=$2
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7705if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6bb11ab3
L
7706 $as_echo_n "(cached) " >&6
7707else
7708 if test -n "$ac_ct_DSYMUTIL"; then
7709 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7710else
7711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712for as_dir in $PATH
7713do
7714 IFS=$as_save_IFS
7715 test -z "$as_dir" && as_dir=.
7716 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7718 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7720 break 2
7721 fi
7722done
7723 done
7724IFS=$as_save_IFS
7725
7726fi
7727fi
7728ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7729if test -n "$ac_ct_DSYMUTIL"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7731$as_echo "$ac_ct_DSYMUTIL" >&6; }
7732else
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734$as_echo "no" >&6; }
7735fi
7736
7737 if test "x$ac_ct_DSYMUTIL" = x; then
7738 DSYMUTIL=":"
7739 else
7740 case $cross_compiling:$ac_tool_warned in
7741yes:)
7742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7744ac_tool_warned=yes ;;
7745esac
7746 DSYMUTIL=$ac_ct_DSYMUTIL
7747 fi
7748else
7749 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7750fi
7751
7752 if test -n "$ac_tool_prefix"; then
7753 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7754set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7757if ${ac_cv_prog_NMEDIT+:} false; then :
6bb11ab3
L
7758 $as_echo_n "(cached) " >&6
7759else
7760 if test -n "$NMEDIT"; then
7761 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7762else
7763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764for as_dir in $PATH
7765do
7766 IFS=$as_save_IFS
7767 test -z "$as_dir" && as_dir=.
7768 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7770 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 break 2
7773 fi
7774done
7775 done
7776IFS=$as_save_IFS
7777
7778fi
7779fi
7780NMEDIT=$ac_cv_prog_NMEDIT
7781if test -n "$NMEDIT"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7783$as_echo "$NMEDIT" >&6; }
7784else
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786$as_echo "no" >&6; }
7787fi
7788
7789
7790fi
7791if test -z "$ac_cv_prog_NMEDIT"; then
7792 ac_ct_NMEDIT=$NMEDIT
7793 # Extract the first word of "nmedit", so it can be a program name with args.
7794set dummy nmedit; ac_word=$2
7795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7796$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7797if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6bb11ab3
L
7798 $as_echo_n "(cached) " >&6
7799else
7800 if test -n "$ac_ct_NMEDIT"; then
7801 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7802else
7803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804for as_dir in $PATH
7805do
7806 IFS=$as_save_IFS
7807 test -z "$as_dir" && as_dir=.
7808 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7810 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 break 2
7813 fi
7814done
7815 done
7816IFS=$as_save_IFS
7817
7818fi
7819fi
7820ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7821if test -n "$ac_ct_NMEDIT"; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7823$as_echo "$ac_ct_NMEDIT" >&6; }
7824else
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826$as_echo "no" >&6; }
7827fi
7828
7829 if test "x$ac_ct_NMEDIT" = x; then
7830 NMEDIT=":"
7831 else
7832 case $cross_compiling:$ac_tool_warned in
7833yes:)
7834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7836ac_tool_warned=yes ;;
7837esac
7838 NMEDIT=$ac_ct_NMEDIT
7839 fi
7840else
7841 NMEDIT="$ac_cv_prog_NMEDIT"
7842fi
7843
7844 if test -n "$ac_tool_prefix"; then
7845 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7846set dummy ${ac_tool_prefix}lipo; ac_word=$2
7847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7849if ${ac_cv_prog_LIPO+:} false; then :
6bb11ab3
L
7850 $as_echo_n "(cached) " >&6
7851else
7852 if test -n "$LIPO"; then
7853 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7854else
7855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856for as_dir in $PATH
7857do
7858 IFS=$as_save_IFS
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7862 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 break 2
7865 fi
7866done
7867 done
7868IFS=$as_save_IFS
7869
7870fi
7871fi
7872LIPO=$ac_cv_prog_LIPO
7873if test -n "$LIPO"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7875$as_echo "$LIPO" >&6; }
7876else
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878$as_echo "no" >&6; }
7879fi
7880
7881
7882fi
7883if test -z "$ac_cv_prog_LIPO"; then
7884 ac_ct_LIPO=$LIPO
7885 # Extract the first word of "lipo", so it can be a program name with args.
7886set dummy lipo; ac_word=$2
7887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7888$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7889if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6bb11ab3
L
7890 $as_echo_n "(cached) " >&6
7891else
7892 if test -n "$ac_ct_LIPO"; then
7893 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7894else
7895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896for as_dir in $PATH
7897do
7898 IFS=$as_save_IFS
7899 test -z "$as_dir" && as_dir=.
7900 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7902 ac_cv_prog_ac_ct_LIPO="lipo"
7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904 break 2
7905 fi
7906done
7907 done
7908IFS=$as_save_IFS
7909
7910fi
7911fi
7912ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7913if test -n "$ac_ct_LIPO"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7915$as_echo "$ac_ct_LIPO" >&6; }
7916else
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918$as_echo "no" >&6; }
7919fi
7920
7921 if test "x$ac_ct_LIPO" = x; then
7922 LIPO=":"
7923 else
7924 case $cross_compiling:$ac_tool_warned in
7925yes:)
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7928ac_tool_warned=yes ;;
7929esac
7930 LIPO=$ac_ct_LIPO
7931 fi
7932else
7933 LIPO="$ac_cv_prog_LIPO"
7934fi
7935
7936 if test -n "$ac_tool_prefix"; then
7937 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7938set dummy ${ac_tool_prefix}otool; ac_word=$2
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7941if ${ac_cv_prog_OTOOL+:} false; then :
6bb11ab3
L
7942 $as_echo_n "(cached) " >&6
7943else
7944 if test -n "$OTOOL"; then
7945 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7946else
7947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948for as_dir in $PATH
7949do
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7954 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 break 2
7957 fi
7958done
7959 done
7960IFS=$as_save_IFS
7961
7962fi
7963fi
7964OTOOL=$ac_cv_prog_OTOOL
7965if test -n "$OTOOL"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7967$as_echo "$OTOOL" >&6; }
7968else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970$as_echo "no" >&6; }
7971fi
7972
7973
7974fi
7975if test -z "$ac_cv_prog_OTOOL"; then
7976 ac_ct_OTOOL=$OTOOL
7977 # Extract the first word of "otool", so it can be a program name with args.
7978set dummy otool; ac_word=$2
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7980$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7981if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6bb11ab3
L
7982 $as_echo_n "(cached) " >&6
7983else
7984 if test -n "$ac_ct_OTOOL"; then
7985 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7986else
7987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988for as_dir in $PATH
7989do
7990 IFS=$as_save_IFS
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7994 ac_cv_prog_ac_ct_OTOOL="otool"
7995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 break 2
7997 fi
7998done
7999 done
8000IFS=$as_save_IFS
8001
8002fi
8003fi
8004ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8005if test -n "$ac_ct_OTOOL"; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8007$as_echo "$ac_ct_OTOOL" >&6; }
8008else
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010$as_echo "no" >&6; }
8011fi
8012
8013 if test "x$ac_ct_OTOOL" = x; then
8014 OTOOL=":"
8015 else
8016 case $cross_compiling:$ac_tool_warned in
8017yes:)
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8020ac_tool_warned=yes ;;
8021esac
8022 OTOOL=$ac_ct_OTOOL
8023 fi
8024else
8025 OTOOL="$ac_cv_prog_OTOOL"
8026fi
8027
8028 if test -n "$ac_tool_prefix"; then
8029 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8030set dummy ${ac_tool_prefix}otool64; ac_word=$2
8031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8033if ${ac_cv_prog_OTOOL64+:} false; then :
6bb11ab3
L
8034 $as_echo_n "(cached) " >&6
8035else
8036 if test -n "$OTOOL64"; then
8037 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8038else
8039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040for as_dir in $PATH
8041do
8042 IFS=$as_save_IFS
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8046 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048 break 2
8049 fi
8050done
8051 done
8052IFS=$as_save_IFS
8053
8054fi
8055fi
8056OTOOL64=$ac_cv_prog_OTOOL64
8057if test -n "$OTOOL64"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8059$as_echo "$OTOOL64" >&6; }
8060else
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062$as_echo "no" >&6; }
8063fi
8064
8065
8066fi
8067if test -z "$ac_cv_prog_OTOOL64"; then
8068 ac_ct_OTOOL64=$OTOOL64
8069 # Extract the first word of "otool64", so it can be a program name with args.
8070set dummy otool64; ac_word=$2
8071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8073if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6bb11ab3
L
8074 $as_echo_n "(cached) " >&6
8075else
8076 if test -n "$ac_ct_OTOOL64"; then
8077 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8078else
8079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080for as_dir in $PATH
8081do
8082 IFS=$as_save_IFS
8083 test -z "$as_dir" && as_dir=.
8084 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8086 ac_cv_prog_ac_ct_OTOOL64="otool64"
8087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8088 break 2
8089 fi
8090done
8091 done
8092IFS=$as_save_IFS
8093
8094fi
8095fi
8096ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8097if test -n "$ac_ct_OTOOL64"; then
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8099$as_echo "$ac_ct_OTOOL64" >&6; }
8100else
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102$as_echo "no" >&6; }
8103fi
8104
8105 if test "x$ac_ct_OTOOL64" = x; then
8106 OTOOL64=":"
8107 else
8108 case $cross_compiling:$ac_tool_warned in
8109yes:)
8110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8112ac_tool_warned=yes ;;
8113esac
8114 OTOOL64=$ac_ct_OTOOL64
8115 fi
8116else
8117 OTOOL64="$ac_cv_prog_OTOOL64"
8118fi
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8147$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 8148if ${lt_cv_apple_cc_single_mod+:} false; then :
6bb11ab3
L
8149 $as_echo_n "(cached) " >&6
8150else
8151 lt_cv_apple_cc_single_mod=no
8152 if test -z "${LT_MULTI_MODULE}"; then
8153 # By default we will add the -single_module flag. You can override
8154 # by either setting the environment variable LT_MULTI_MODULE
8155 # non-empty at configure time, or by adding -multi_module to the
8156 # link flags.
8157 rm -rf libconftest.dylib*
8158 echo "int foo(void){return 1;}" > conftest.c
8159 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8160-dynamiclib -Wl,-single_module conftest.c" >&5
8161 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8162 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8163 _lt_result=$?
8164 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8165 lt_cv_apple_cc_single_mod=yes
8166 else
8167 cat conftest.err >&5
8168 fi
8169 rm -rf libconftest.dylib*
8170 rm -f conftest.*
8171 fi
8172fi
8173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8174$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8176$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 8177if ${lt_cv_ld_exported_symbols_list+:} false; then :
6bb11ab3
L
8178 $as_echo_n "(cached) " >&6
8179else
8180 lt_cv_ld_exported_symbols_list=no
8181 save_LDFLAGS=$LDFLAGS
8182 echo "_main" > conftest.sym
8183 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185/* end confdefs.h. */
8186
8187int
8188main ()
8189{
8190
8191 ;
8192 return 0;
8193}
8194_ACEOF
8195if ac_fn_c_try_link "$LINENO"; then :
8196 lt_cv_ld_exported_symbols_list=yes
8197else
8198 lt_cv_ld_exported_symbols_list=no
8199fi
8200rm -f core conftest.err conftest.$ac_objext \
8201 conftest$ac_exeext conftest.$ac_ext
8202 LDFLAGS="$save_LDFLAGS"
8203
8204fi
8205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8206$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8208$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 8209if ${lt_cv_ld_force_load+:} false; then :
6bb11ab3
L
8210 $as_echo_n "(cached) " >&6
8211else
8212 lt_cv_ld_force_load=no
8213 cat > conftest.c << _LT_EOF
8214int forced_loaded() { return 2;}
8215_LT_EOF
8216 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8217 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8218 echo "$AR cru libconftest.a conftest.o" >&5
8219 $AR cru libconftest.a conftest.o 2>&5
8220 cat > conftest.c << _LT_EOF
8221int main() { return 0;}
8222_LT_EOF
8223 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8224 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8225 _lt_result=$?
8226 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8227 lt_cv_ld_force_load=yes
8228 else
8229 cat conftest.err >&5
8230 fi
8231 rm -f conftest.err libconftest.a conftest conftest.c
8232 rm -rf conftest.dSYM
8233
8234fi
8235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8236$as_echo "$lt_cv_ld_force_load" >&6; }
8237 case $host_os in
8238 rhapsody* | darwin1.[012])
8239 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8240 darwin1.*)
8241 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8242 darwin*) # darwin 5.x on
8243 # if running on 10.5 or later, the deployment target defaults
8244 # to the OS version, if on x86, and 10.4, the deployment
8245 # target defaults to 10.4. Don't you love it?
8246 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8247 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8248 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ae7d0cac 8249 10.[012][,.]*)
6bb11ab3
L
8250 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8251 10.*)
8252 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8253 esac
8254 ;;
8255 esac
8256 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8257 _lt_dar_single_mod='$single_module'
8258 fi
8259 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8260 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8261 else
8262 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8263 fi
8264 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8265 _lt_dsymutil='~$DSYMUTIL $lib || :'
8266 else
8267 _lt_dsymutil=
8268 fi
8269 ;;
8270 esac
8271
8272for ac_header in dlfcn.h
8273do :
8274 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8275"
d0ac1c44 8276if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6bb11ab3
L
8277 cat >>confdefs.h <<_ACEOF
8278#define HAVE_DLFCN_H 1
8279_ACEOF
8280
8281fi
8282
8283done
8284
8285
8286
8287# autoconf.info says this should be called right after AC_INIT.
8288ac_config_headers="$ac_config_headers config.h:config.in"
8289
8290
8291
0cb8d851
MF
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8293$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d0ac1c44 8294if ${ac_cv_c_bigendian+:} false; then :
0cb8d851
MF
8295 $as_echo_n "(cached) " >&6
8296else
8297 ac_cv_c_bigendian=unknown
8298 # See if we're dealing with a universal compiler.
8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300/* end confdefs.h. */
8301#ifndef __APPLE_CC__
8302 not a universal capable compiler
8303 #endif
8304 typedef int dummy;
8305
8306_ACEOF
8307if ac_fn_c_try_compile "$LINENO"; then :
8308
8309 # Check for potential -arch flags. It is not universal unless
8310 # there are at least two -arch flags with different values.
8311 ac_arch=
8312 ac_prev=
8313 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8314 if test -n "$ac_prev"; then
8315 case $ac_word in
8316 i?86 | x86_64 | ppc | ppc64)
8317 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8318 ac_arch=$ac_word
8319 else
8320 ac_cv_c_bigendian=universal
8321 break
8322 fi
8323 ;;
8324 esac
8325 ac_prev=
8326 elif test "x$ac_word" = "x-arch"; then
8327 ac_prev=arch
8328 fi
8329 done
8330fi
8331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8332 if test $ac_cv_c_bigendian = unknown; then
8333 # See if sys/param.h defines the BYTE_ORDER macro.
8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335/* end confdefs.h. */
8336#include <sys/types.h>
8337 #include <sys/param.h>
8338
8339int
8340main ()
8341{
8342#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8343 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8344 && LITTLE_ENDIAN)
8345 bogus endian macros
8346 #endif
8347
8348 ;
8349 return 0;
8350}
8351_ACEOF
8352if ac_fn_c_try_compile "$LINENO"; then :
8353 # It does; now see whether it defined to BIG_ENDIAN or not.
8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355/* end confdefs.h. */
8356#include <sys/types.h>
8357 #include <sys/param.h>
8358
8359int
8360main ()
8361{
8362#if BYTE_ORDER != BIG_ENDIAN
8363 not big endian
8364 #endif
8365
8366 ;
8367 return 0;
8368}
8369_ACEOF
8370if ac_fn_c_try_compile "$LINENO"; then :
8371 ac_cv_c_bigendian=yes
8372else
8373 ac_cv_c_bigendian=no
8374fi
8375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8376fi
8377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8378 fi
8379 if test $ac_cv_c_bigendian = unknown; then
8380 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382/* end confdefs.h. */
8383#include <limits.h>
8384
8385int
8386main ()
8387{
8388#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8389 bogus endian macros
8390 #endif
8391
8392 ;
8393 return 0;
8394}
8395_ACEOF
8396if ac_fn_c_try_compile "$LINENO"; then :
8397 # It does; now see whether it defined to _BIG_ENDIAN or not.
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399/* end confdefs.h. */
8400#include <limits.h>
8401
8402int
8403main ()
8404{
8405#ifndef _BIG_ENDIAN
8406 not big endian
8407 #endif
8408
8409 ;
8410 return 0;
8411}
8412_ACEOF
8413if ac_fn_c_try_compile "$LINENO"; then :
8414 ac_cv_c_bigendian=yes
8415else
8416 ac_cv_c_bigendian=no
8417fi
8418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419fi
8420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8421 fi
8422 if test $ac_cv_c_bigendian = unknown; then
8423 # Compile a test program.
8424 if test "$cross_compiling" = yes; then :
8425 # Try to guess by grepping values from an object file.
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427/* end confdefs.h. */
8428short int ascii_mm[] =
8429 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8430 short int ascii_ii[] =
8431 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8432 int use_ascii (int i) {
8433 return ascii_mm[i] + ascii_ii[i];
8434 }
8435 short int ebcdic_ii[] =
8436 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8437 short int ebcdic_mm[] =
8438 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8439 int use_ebcdic (int i) {
8440 return ebcdic_mm[i] + ebcdic_ii[i];
8441 }
8442 extern int foo;
8443
8444int
8445main ()
8446{
8447return use_ascii (foo) == use_ebcdic (foo);
8448 ;
8449 return 0;
8450}
8451_ACEOF
8452if ac_fn_c_try_compile "$LINENO"; then :
8453 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8454 ac_cv_c_bigendian=yes
8455 fi
8456 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8457 if test "$ac_cv_c_bigendian" = unknown; then
8458 ac_cv_c_bigendian=no
8459 else
8460 # finding both strings is unlikely to happen, but who knows?
8461 ac_cv_c_bigendian=unknown
8462 fi
8463 fi
8464fi
8465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466else
8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468/* end confdefs.h. */
8469$ac_includes_default
8470int
8471main ()
8472{
8473
8474 /* Are we little or big endian? From Harbison&Steele. */
8475 union
8476 {
8477 long int l;
8478 char c[sizeof (long int)];
8479 } u;
8480 u.l = 1;
8481 return u.c[sizeof (long int) - 1] == 1;
8482
8483 ;
8484 return 0;
8485}
8486_ACEOF
8487if ac_fn_c_try_run "$LINENO"; then :
8488 ac_cv_c_bigendian=no
8489else
8490 ac_cv_c_bigendian=yes
8491fi
8492rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8493 conftest.$ac_objext conftest.beam conftest.$ac_ext
8494fi
8495
8496 fi
8497fi
8498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8499$as_echo "$ac_cv_c_bigendian" >&6; }
8500 case $ac_cv_c_bigendian in #(
8501 yes)
8502 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8503;; #(
8504 no)
8505 ;; #(
8506 universal)
8507
8508$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8509
8510 ;; #(
8511 *)
d0ac1c44 8512 as_fn_error $? "unknown endianness
0cb8d851
MF
8513 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8514 esac
8515
6bb11ab3
L
8516
8517
8518
8519# Put a plausible default for CC_FOR_BUILD in Makefile.
5c887dd5
JB
8520if test -z "$CC_FOR_BUILD"; then
8521 if test "x$cross_compiling" = "xno"; then
8522 CC_FOR_BUILD='$(CC)'
8523 else
8524 CC_FOR_BUILD=gcc
8525 fi
6bb11ab3
L
8526fi
8527
8528
8529
8530
8531AR=${AR-ar}
8532
8533if test -n "$ac_tool_prefix"; then
8534 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8535set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8538if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
8539 $as_echo_n "(cached) " >&6
8540else
8541 if test -n "$RANLIB"; then
8542 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8543else
8544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545for as_dir in $PATH
8546do
8547 IFS=$as_save_IFS
8548 test -z "$as_dir" && as_dir=.
8549 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8551 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8553 break 2
8554 fi
8555done
8556 done
8557IFS=$as_save_IFS
8558
8559fi
8560fi
8561RANLIB=$ac_cv_prog_RANLIB
8562if test -n "$RANLIB"; then
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8564$as_echo "$RANLIB" >&6; }
8565else
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567$as_echo "no" >&6; }
8568fi
8569
8570
8571fi
8572if test -z "$ac_cv_prog_RANLIB"; then
8573 ac_ct_RANLIB=$RANLIB
8574 # Extract the first word of "ranlib", so it can be a program name with args.
8575set dummy ranlib; ac_word=$2
8576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8577$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8578if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
8579 $as_echo_n "(cached) " >&6
8580else
8581 if test -n "$ac_ct_RANLIB"; then
8582 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8583else
8584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585for as_dir in $PATH
8586do
8587 IFS=$as_save_IFS
8588 test -z "$as_dir" && as_dir=.
8589 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8591 ac_cv_prog_ac_ct_RANLIB="ranlib"
8592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8593 break 2
8594 fi
8595done
8596 done
8597IFS=$as_save_IFS
8598
8599fi
8600fi
8601ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8602if test -n "$ac_ct_RANLIB"; then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8604$as_echo "$ac_ct_RANLIB" >&6; }
8605else
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607$as_echo "no" >&6; }
8608fi
8609
8610 if test "x$ac_ct_RANLIB" = x; then
8611 RANLIB=":"
8612 else
8613 case $cross_compiling:$ac_tool_warned in
8614yes:)
8615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8617ac_tool_warned=yes ;;
8618esac
8619 RANLIB=$ac_ct_RANLIB
8620 fi
8621else
8622 RANLIB="$ac_cv_prog_RANLIB"
8623fi
8624
8625
46f900c0
MF
8626# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
8627# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
8628# is C99. So handle it ourselves.
8629:
8630C_DIALECT=
8631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
8632$as_echo_n "checking whether C11 is supported by default... " >&6; }
8633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8634/* end confdefs.h. */
8635
8636#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
8637# error "C11 support not found"
8638#endif
8639
8640_ACEOF
8641if ac_fn_c_try_compile "$LINENO"; then :
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8643$as_echo "yes" >&6; }
8644else
8645
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647$as_echo "no" >&6; }
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
8649$as_echo_n "checking for -std=c11 support... " >&6; }
8650 ac_save_CC="$CC"
8651 CC="$CC -std=c11"
8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653/* end confdefs.h. */
8654
8655#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
8656# error "C11 support not found"
8657#endif
8658
8659_ACEOF
8660if ac_fn_c_try_compile "$LINENO"; then :
8661
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8663$as_echo "yes" >&6; }
8664 CC="$ac_save_CC"
8665 C_DIALECT="-std=c11"
8666
8667else
8668 as_fn_error $? "C11 is required" "$LINENO" 5
8669fi
8670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671fi
8672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8673
8674
6bb11ab3
L
8675# Some of the common include files depend on bfd.h, and bfd.h checks
8676# that config.h is included first by testing that the PACKAGE macro
8677# is defined.
8678PACKAGE=sim
8679
8680cat >>confdefs.h <<_ACEOF
8681#define PACKAGE "$PACKAGE"
8682_ACEOF
8683
8684
8685
8686# Dependency checking.
8687ac_config_commands="$ac_config_commands depdir"
8688
8689
8690depcc="$CC" am_compiler_list=
8691
8692am_depcomp=$ac_aux_dir/depcomp
8693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8694$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 8695if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6bb11ab3
L
8696 $as_echo_n "(cached) " >&6
8697else
8698 if test -f "$am_depcomp"; then
8699 # We make a subdir and do the tests there. Otherwise we can end up
8700 # making bogus files that we don't know about and never remove. For
8701 # instance it was reported that on HP-UX the gcc test will end up
8702 # making a dummy file named `D' -- because `-MD' means `put the output
8703 # in D'.
8704 mkdir conftest.dir
8705 # Copy depcomp to subdir because otherwise we won't find it if we're
8706 # using a relative directory.
8707 cp "$am_depcomp" conftest.dir
8708 cd conftest.dir
8709 # We will build objects and dependencies in a subdirectory because
8710 # it helps to detect inapplicable dependency modes. For instance
8711 # both Tru64's cc and ICC support -MD to output dependencies as a
8712 # side effect of compilation, but ICC will put the dependencies in
8713 # the current directory while Tru64 will put them in the object
8714 # directory.
8715 mkdir sub
8716
8717 am_cv_CC_dependencies_compiler_type=none
8718 if test "$am_compiler_list" = ""; then
8719 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8720 fi
8721 for depmode in $am_compiler_list; do
8722 if test $depmode = none; then break; fi
8723
8724 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8725 # Setup a source with many dependencies, because some compilers
8726 # like to wrap large dependency lists on column 80 (with \), and
8727 # we should not choose a depcomp mode which is confused by this.
8728 #
8729 # We need to recreate these files for each test, as the compiler may
8730 # overwrite some of them when testing with obscure command lines.
8731 # This happens at least with the AIX C compiler.
8732 : > sub/conftest.c
8733 for i in 1 2 3 4 5 6; do
8734 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8735 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8736 # Solaris 8's {/usr,}/bin/sh.
8737 touch sub/conftst$i.h
8738 done
8739 echo "include sub/conftest.Po" > confmf
8740
8741 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8742 # mode. It turns out that the SunPro C++ compiler does not properly
8743 # handle `-M -o', and we need to detect this.
8744 depcmd="depmode=$depmode \
8745 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8746 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8747 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8748 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8749 if env $depcmd > conftest.err 2>&1 &&
8750 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8751 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8752 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8753 # icc doesn't choke on unknown options, it will just issue warnings
8754 # or remarks (even with -Werror). So we grep stderr for any message
8755 # that says an option was ignored or not supported.
8756 # When given -MP, icc 7.0 and 7.1 complain thusly:
8757 # icc: Command line warning: ignoring option '-M'; no argument required
8758 # The diagnosis changed in icc 8.0:
8759 # icc: Command line remark: option '-MP' not supported
8760 if (grep 'ignoring option' conftest.err ||
8761 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8762 am_cv_CC_dependencies_compiler_type=$depmode
8763 $as_echo "$as_me:$LINENO: success" >&5
8764 break
8765 fi
8766 fi
8767 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8768 sed -e 's/^/| /' < conftest.err >&5
8769 done
8770
8771 cd ..
8772 rm -rf conftest.dir
8773else
8774 am_cv_CC_dependencies_compiler_type=none
8775fi
8776
8777fi
8778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8779$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
8780if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
d0ac1c44 8781then as_fn_error $? "no usable dependency style found" "$LINENO" 5
6bb11ab3
L
8782else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8783
8784fi
8785
8786
8787# Check for the 'make' the user wants to use.
8788for ac_prog in make
8789do
8790 # Extract the first word of "$ac_prog", so it can be a program name with args.
8791set dummy $ac_prog; ac_word=$2
8792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8793$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8794if ${ac_cv_prog_MAKE+:} false; then :
6bb11ab3
L
8795 $as_echo_n "(cached) " >&6
8796else
8797 if test -n "$MAKE"; then
8798 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
8799else
8800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801for as_dir in $PATH
8802do
8803 IFS=$as_save_IFS
8804 test -z "$as_dir" && as_dir=.
8805 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8807 ac_cv_prog_MAKE="$ac_prog"
8808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8809 break 2
8810 fi
8811done
8812 done
8813IFS=$as_save_IFS
8814
8815fi
8816fi
8817MAKE=$ac_cv_prog_MAKE
8818if test -n "$MAKE"; then
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
8820$as_echo "$MAKE" >&6; }
8821else
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823$as_echo "no" >&6; }
8824fi
8825
8826
8827 test -n "$MAKE" && break
8828done
8829
8830MAKE_IS_GNU=
8831case "`$MAKE --version 2>&1 | sed 1q`" in
8832 *GNU*)
8833 MAKE_IS_GNU=yes
8834 ;;
8835esac
8836 if test "$MAKE_IS_GNU" = yes; then
8837 GMAKE_TRUE=
8838 GMAKE_FALSE='#'
8839else
8840 GMAKE_TRUE='#'
8841 GMAKE_FALSE=
8842fi
8843
8844
8845ALL_LINGUAS=
8846# If we haven't got the data from the intl directory,
8847# assume NLS is disabled.
8848USE_NLS=no
8849LIBINTL=
8850LIBINTL_DEP=
8851INCINTL=
8852XGETTEXT=
8853GMSGFMT=
8854POSUB=
8855
8856if test -f ../../intl/config.intl; then
8857 . ../../intl/config.intl
8858fi
8859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8860$as_echo_n "checking whether NLS is requested... " >&6; }
8861if test x"$USE_NLS" != xyes; then
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8863$as_echo "no" >&6; }
8864else
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8866$as_echo "yes" >&6; }
8867
8868$as_echo "#define ENABLE_NLS 1" >>confdefs.h
8869
8870
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8872$as_echo_n "checking for catalogs to be installed... " >&6; }
8873 # Look for .po and .gmo files in the source directory.
8874 CATALOGS=
8875 XLINGUAS=
8876 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8877 # If there aren't any .gmo files the shell will give us the
8878 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8879 # weeded out.
8880 case "$cat" in *\**)
8881 continue;;
8882 esac
8883 # The quadruple backslash is collapsed to a double backslash
8884 # by the backticks, then collapsed again by the double quotes,
8885 # leaving us with one backslash in the sed expression (right
8886 # before the dot that mustn't act as a wildcard).
8887 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8888 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8889 # The user is allowed to set LINGUAS to a list of languages to
8890 # install catalogs for. If it's empty that means "all of them."
8891 if test "x$LINGUAS" = x; then
8892 CATALOGS="$CATALOGS $cat"
8893 XLINGUAS="$XLINGUAS $lang"
8894 else
8895 case "$LINGUAS" in *$lang*)
8896 CATALOGS="$CATALOGS $cat"
8897 XLINGUAS="$XLINGUAS $lang"
8898 ;;
8899 esac
8900 fi
8901 done
8902 LINGUAS="$XLINGUAS"
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8904$as_echo "$LINGUAS" >&6; }
8905
8906
8907 DATADIRNAME=share
8908
8909 INSTOBJEXT=.mo
8910
8911 GENCAT=gencat
8912
8913 CATOBJEXT=.gmo
8914
8915fi
8916
8917# Check for common headers.
8918# FIXME: Seems to me this can cause problems for i386-windows hosts.
8919# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
8920for ac_header in stdlib.h string.h strings.h unistd.h time.h
8921do :
8922 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8923ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 8924if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
8925 cat >>confdefs.h <<_ACEOF
8926#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8927_ACEOF
8928
8929fi
8930
8931done
8932
936df756 8933for ac_header in sys/time.h sys/times.h sys/resource.h sys/mman.h
6bb11ab3
L
8934do :
8935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8936ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 8937if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
8938 cat >>confdefs.h <<_ACEOF
8939#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8940_ACEOF
8941
8942fi
8943
8944done
8945
8946for ac_header in fcntl.h fpu_control.h
8947do :
8948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8949ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 8950if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
8951 cat >>confdefs.h <<_ACEOF
8952#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8953_ACEOF
8954
8955fi
8956
8957done
8958
8959for ac_header in dlfcn.h errno.h sys/stat.h
8960do :
8961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8962ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 8963if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
8964 cat >>confdefs.h <<_ACEOF
8965#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8966_ACEOF
8967
8968fi
8969
8970done
8971
8972for ac_func in getrusage time sigaction __setfpucw
8973do :
8974 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8975ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 8976if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6bb11ab3
L
8977 cat >>confdefs.h <<_ACEOF
8978#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8979_ACEOF
8980
8981fi
8982done
8983
936df756
MF
8984for ac_func in mmap munmap lstat truncate ftruncate posix_fallocate
8985do :
8986 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8987ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 8988if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
936df756
MF
8989 cat >>confdefs.h <<_ACEOF
8990#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8991_ACEOF
8992
8993fi
8994done
8995
8996ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8997#include <sys/types.h>
8998#endif
8999#ifdef HAVE_SYS_STAT_H
9000#include <sys/stat.h>
9001#endif
9002"
d0ac1c44 9003if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
936df756
MF
9004
9005cat >>confdefs.h <<_ACEOF
9006#define HAVE_STRUCT_STAT_ST_DEV 1
9007_ACEOF
9008
9009
9010fi
9011ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
9012#include <sys/types.h>
9013#endif
9014#ifdef HAVE_SYS_STAT_H
9015#include <sys/stat.h>
9016#endif
9017"
d0ac1c44 9018if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
936df756
MF
9019
9020cat >>confdefs.h <<_ACEOF
9021#define HAVE_STRUCT_STAT_ST_INO 1
9022_ACEOF
9023
9024
9025fi
9026ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
9027#include <sys/types.h>
9028#endif
9029#ifdef HAVE_SYS_STAT_H
9030#include <sys/stat.h>
9031#endif
9032"
d0ac1c44 9033if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
936df756
MF
9034
9035cat >>confdefs.h <<_ACEOF
9036#define HAVE_STRUCT_STAT_ST_MODE 1
9037_ACEOF
9038
9039
9040fi
9041ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
9042#include <sys/types.h>
9043#endif
9044#ifdef HAVE_SYS_STAT_H
9045#include <sys/stat.h>
9046#endif
9047"
d0ac1c44 9048if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
936df756
MF
9049
9050cat >>confdefs.h <<_ACEOF
9051#define HAVE_STRUCT_STAT_ST_NLINK 1
9052_ACEOF
9053
9054
9055fi
9056ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
9057#include <sys/types.h>
9058#endif
9059#ifdef HAVE_SYS_STAT_H
9060#include <sys/stat.h>
9061#endif
9062"
d0ac1c44 9063if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
936df756
MF
9064
9065cat >>confdefs.h <<_ACEOF
9066#define HAVE_STRUCT_STAT_ST_UID 1
9067_ACEOF
9068
9069
9070fi
9071ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
9072#include <sys/types.h>
9073#endif
9074#ifdef HAVE_SYS_STAT_H
9075#include <sys/stat.h>
9076#endif
9077"
d0ac1c44 9078if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
936df756
MF
9079
9080cat >>confdefs.h <<_ACEOF
9081#define HAVE_STRUCT_STAT_ST_GID 1
9082_ACEOF
9083
9084
9085fi
9086ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
9087#include <sys/types.h>
9088#endif
9089#ifdef HAVE_SYS_STAT_H
9090#include <sys/stat.h>
9091#endif
9092"
d0ac1c44 9093if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
936df756
MF
9094
9095cat >>confdefs.h <<_ACEOF
9096#define HAVE_STRUCT_STAT_ST_RDEV 1
9097_ACEOF
9098
9099
9100fi
9101ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
9102#include <sys/types.h>
9103#endif
9104#ifdef HAVE_SYS_STAT_H
9105#include <sys/stat.h>
9106#endif
9107"
d0ac1c44 9108if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
936df756
MF
9109
9110cat >>confdefs.h <<_ACEOF
9111#define HAVE_STRUCT_STAT_ST_SIZE 1
9112_ACEOF
9113
9114
9115fi
9116ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
9117#include <sys/types.h>
9118#endif
9119#ifdef HAVE_SYS_STAT_H
9120#include <sys/stat.h>
9121#endif
9122"
d0ac1c44 9123if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
936df756
MF
9124
9125cat >>confdefs.h <<_ACEOF
9126#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9127_ACEOF
9128
9129
9130fi
9131ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
9132#include <sys/types.h>
9133#endif
9134#ifdef HAVE_SYS_STAT_H
9135#include <sys/stat.h>
9136#endif
9137"
d0ac1c44 9138if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
936df756
MF
9139
9140cat >>confdefs.h <<_ACEOF
9141#define HAVE_STRUCT_STAT_ST_BLOCKS 1
9142_ACEOF
9143
9144
9145fi
9146ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
9147#include <sys/types.h>
9148#endif
9149#ifdef HAVE_SYS_STAT_H
9150#include <sys/stat.h>
9151#endif
9152"
d0ac1c44 9153if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
936df756
MF
9154
9155cat >>confdefs.h <<_ACEOF
9156#define HAVE_STRUCT_STAT_ST_ATIME 1
9157_ACEOF
9158
9159
9160fi
9161ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
9162#include <sys/types.h>
9163#endif
9164#ifdef HAVE_SYS_STAT_H
9165#include <sys/stat.h>
9166#endif
9167"
d0ac1c44 9168if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
936df756
MF
9169
9170cat >>confdefs.h <<_ACEOF
9171#define HAVE_STRUCT_STAT_ST_MTIME 1
9172_ACEOF
9173
9174
9175fi
9176ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
9177#include <sys/types.h>
9178#endif
9179#ifdef HAVE_SYS_STAT_H
9180#include <sys/stat.h>
9181#endif
9182"
d0ac1c44 9183if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
936df756
MF
9184
9185cat >>confdefs.h <<_ACEOF
9186#define HAVE_STRUCT_STAT_ST_CTIME 1
9187_ACEOF
9188
9189
9190fi
9191
9192ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9193#include <sys/socket.h>
9194
9195"
d0ac1c44 9196if test "x$ac_cv_type_socklen_t" = xyes; then :
936df756
MF
9197
9198cat >>confdefs.h <<_ACEOF
9199#define HAVE_SOCKLEN_T 1
9200_ACEOF
9201
9202
9203fi
9204
6bb11ab3
L
9205
9206# Check for socket libraries
9207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
9208$as_echo_n "checking for bind in -lsocket... " >&6; }
d0ac1c44 9209if ${ac_cv_lib_socket_bind+:} false; then :
6bb11ab3
L
9210 $as_echo_n "(cached) " >&6
9211else
9212 ac_check_lib_save_LIBS=$LIBS
9213LIBS="-lsocket $LIBS"
9214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215/* end confdefs.h. */
9216
9217/* Override any GCC internal prototype to avoid an error.
9218 Use char because int might match the return type of a GCC
9219 builtin and then its argument prototype would still apply. */
9220#ifdef __cplusplus
9221extern "C"
9222#endif
9223char bind ();
9224int
9225main ()
9226{
9227return bind ();
9228 ;
9229 return 0;
9230}
9231_ACEOF
9232if ac_fn_c_try_link "$LINENO"; then :
9233 ac_cv_lib_socket_bind=yes
9234else
9235 ac_cv_lib_socket_bind=no
9236fi
9237rm -f core conftest.err conftest.$ac_objext \
9238 conftest$ac_exeext conftest.$ac_ext
9239LIBS=$ac_check_lib_save_LIBS
9240fi
9241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
9242$as_echo "$ac_cv_lib_socket_bind" >&6; }
d0ac1c44 9243if test "x$ac_cv_lib_socket_bind" = xyes; then :
6bb11ab3
L
9244 cat >>confdefs.h <<_ACEOF
9245#define HAVE_LIBSOCKET 1
9246_ACEOF
9247
9248 LIBS="-lsocket $LIBS"
9249
9250fi
9251
9252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
9253$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
d0ac1c44 9254if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6bb11ab3
L
9255 $as_echo_n "(cached) " >&6
9256else
9257 ac_check_lib_save_LIBS=$LIBS
9258LIBS="-lnsl $LIBS"
9259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260/* end confdefs.h. */
9261
9262/* Override any GCC internal prototype to avoid an error.
9263 Use char because int might match the return type of a GCC
9264 builtin and then its argument prototype would still apply. */
9265#ifdef __cplusplus
9266extern "C"
9267#endif
9268char gethostbyname ();
9269int
9270main ()
9271{
9272return gethostbyname ();
9273 ;
9274 return 0;
9275}
9276_ACEOF
9277if ac_fn_c_try_link "$LINENO"; then :
9278 ac_cv_lib_nsl_gethostbyname=yes
9279else
9280 ac_cv_lib_nsl_gethostbyname=no
9281fi
9282rm -f core conftest.err conftest.$ac_objext \
9283 conftest$ac_exeext conftest.$ac_ext
9284LIBS=$ac_check_lib_save_LIBS
9285fi
9286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
9287$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
d0ac1c44 9288if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6bb11ab3
L
9289 cat >>confdefs.h <<_ACEOF
9290#define HAVE_LIBNSL 1
9291_ACEOF
9292
9293 LIBS="-lnsl $LIBS"
9294
9295fi
9296
9297
9298# BFD conditionally uses zlib, so we must link it in if libbfd does, by
9299# using the same condition.
9300
aadc9410 9301 # Use the system's zlib library.
7fed4b0b
L
9302 zlibdir="-L\$(top_builddir)/../zlib"
9303 zlibinc="-I\$(top_srcdir)/../zlib"
6bb11ab3 9304
aadc9410
MF
9305# Check whether --with-system-zlib was given.
9306if test "${with_system_zlib+set}" = set; then :
0ceaf1ec
L
9307 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
9308 zlibdir=
9309 zlibinc=
9310 fi
6bb11ab3
L
9311
9312fi
9313
6bb11ab3 9314
6bb11ab3 9315
6bb11ab3
L
9316
9317
9318# BFD uses libdl when when plugins enabled.
9319
faa743bb
RM
9320 maybe_plugins=no
9321 for ac_header in dlfcn.h
9322do :
9323 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9324"
d0ac1c44 9325if test "x$ac_cv_header_dlfcn_h" = xyes; then :
faa743bb
RM
9326 cat >>confdefs.h <<_ACEOF
9327#define HAVE_DLFCN_H 1
9328_ACEOF
9329 maybe_plugins=yes
9330fi
9331
9332done
9333
9334 for ac_header in windows.h
9335do :
9336 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
9337"
d0ac1c44 9338if test "x$ac_cv_header_windows_h" = xyes; then :
faa743bb
RM
9339 cat >>confdefs.h <<_ACEOF
9340#define HAVE_WINDOWS_H 1
9341_ACEOF
9342 maybe_plugins=yes
9343fi
9344
9345done
9346
9347
9348 # Check whether --enable-plugins was given.
6bb11ab3
L
9349if test "${enable_plugins+set}" = set; then :
9350 enableval=$enable_plugins; case "${enableval}" in
faa743bb
RM
9351 no) plugins=no ;;
9352 *) plugins=yes
9353 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 9354 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
faa743bb
RM
9355 fi ;;
9356 esac
6bb11ab3 9357else
faa743bb
RM
9358 plugins=$maybe_plugins
9359
6bb11ab3
L
9360fi
9361
2974be62 9362 if test "$plugins" = "yes"; then
37f980dc
SM
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
9364$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 9365if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
9366 $as_echo_n "(cached) " >&6
9367else
9368 ac_func_search_save_LIBS=$LIBS
9369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9370/* end confdefs.h. */
9371
9372/* Override any GCC internal prototype to avoid an error.
9373 Use char because int might match the return type of a GCC
9374 builtin and then its argument prototype would still apply. */
9375#ifdef __cplusplus
9376extern "C"
9377#endif
37f980dc 9378char dlsym ();
2974be62
AM
9379int
9380main ()
9381{
37f980dc 9382return dlsym ();
2974be62
AM
9383 ;
9384 return 0;
9385}
9386_ACEOF
9387for ac_lib in '' dl; do
9388 if test -z "$ac_lib"; then
9389 ac_res="none required"
9390 else
9391 ac_res=-l$ac_lib
9392 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9393 fi
9394 if ac_fn_c_try_link "$LINENO"; then :
37f980dc 9395 ac_cv_search_dlsym=$ac_res
2974be62
AM
9396fi
9397rm -f core conftest.err conftest.$ac_objext \
9398 conftest$ac_exeext
d0ac1c44 9399 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
9400 break
9401fi
9402done
d0ac1c44 9403if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
9404
9405else
37f980dc 9406 ac_cv_search_dlsym=no
2974be62
AM
9407fi
9408rm conftest.$ac_ext
9409LIBS=$ac_func_search_save_LIBS
9410fi
37f980dc
SM
9411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
9412$as_echo "$ac_cv_search_dlsym" >&6; }
9413ac_res=$ac_cv_search_dlsym
2974be62
AM
9414if test "$ac_res" != no; then :
9415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9416
9417fi
9418
9419 fi
6bb11ab3
L
9420
9421 if test "$plugins" = yes; then
9422 PLUGINS_TRUE=
9423 PLUGINS_FALSE='#'
9424else
9425 PLUGINS_TRUE='#'
9426 PLUGINS_FALSE=
9427fi
9428
9429
9430
9431
9432
9433# Set options
9434enable_dlopen=yes
9435
9436
9437
9438
9439 enable_win32_dll=no
9440
9441
9442 # Check whether --enable-shared was given.
9443if test "${enable_shared+set}" = set; then :
9444 enableval=$enable_shared; p=${PACKAGE-default}
9445 case $enableval in
9446 yes) enable_shared=yes ;;
9447 no) enable_shared=no ;;
9448 *)
9449 enable_shared=no
9450 # Look at the argument we got. We use all the common list separators.
9451 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9452 for pkg in $enableval; do
9453 IFS="$lt_save_ifs"
9454 if test "X$pkg" = "X$p"; then
9455 enable_shared=yes
9456 fi
9457 done
9458 IFS="$lt_save_ifs"
9459 ;;
9460 esac
9461else
9462 enable_shared=yes
9463fi
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473 # Check whether --enable-static was given.
9474if test "${enable_static+set}" = set; then :
9475 enableval=$enable_static; p=${PACKAGE-default}
9476 case $enableval in
9477 yes) enable_static=yes ;;
9478 no) enable_static=no ;;
9479 *)
9480 enable_static=no
9481 # Look at the argument we got. We use all the common list separators.
9482 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9483 for pkg in $enableval; do
9484 IFS="$lt_save_ifs"
9485 if test "X$pkg" = "X$p"; then
9486 enable_static=yes
9487 fi
9488 done
9489 IFS="$lt_save_ifs"
9490 ;;
9491 esac
9492else
9493 enable_static=yes
9494fi
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505# Check whether --with-pic was given.
9506if test "${with_pic+set}" = set; then :
9507 withval=$with_pic; pic_mode="$withval"
9508else
9509 pic_mode=default
9510fi
9511
9512
9513test -z "$pic_mode" && pic_mode=default
9514
9515
9516
9517
9518
9519
9520
9521 # Check whether --enable-fast-install was given.
9522if test "${enable_fast_install+set}" = set; then :
9523 enableval=$enable_fast_install; p=${PACKAGE-default}
9524 case $enableval in
9525 yes) enable_fast_install=yes ;;
9526 no) enable_fast_install=no ;;
9527 *)
9528 enable_fast_install=no
9529 # Look at the argument we got. We use all the common list separators.
9530 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9531 for pkg in $enableval; do
9532 IFS="$lt_save_ifs"
9533 if test "X$pkg" = "X$p"; then
9534 enable_fast_install=yes
9535 fi
9536 done
9537 IFS="$lt_save_ifs"
9538 ;;
9539 esac
9540else
9541 enable_fast_install=yes
9542fi
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554# This can be used to rebuild libtool when needed
9555LIBTOOL_DEPS="$ltmain"
9556
9557# Always use our own libtool.
9558LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585test -z "$LN_S" && LN_S="ln -s"
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600if test -n "${ZSH_VERSION+set}" ; then
9601 setopt NO_GLOB_SUBST
87326c78 9602fi
87326c78 9603
6bb11ab3
L
9604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9605$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 9606if ${lt_cv_objdir+:} false; then :
6bb11ab3
L
9607 $as_echo_n "(cached) " >&6
9608else
9609 rm -f .libs 2>/dev/null
9610mkdir .libs 2>/dev/null
9611if test -d .libs; then
9612 lt_cv_objdir=.libs
9613else
9614 # MS-DOS does not allow filenames that begin with a dot.
9615 lt_cv_objdir=_libs
9616fi
9617rmdir .libs 2>/dev/null
9618fi
9619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9620$as_echo "$lt_cv_objdir" >&6; }
9621objdir=$lt_cv_objdir
9622
9623
9624
9625
9626
9627cat >>confdefs.h <<_ACEOF
9628#define LT_OBJDIR "$lt_cv_objdir/"
9629_ACEOF
9630
9631
9632
9633
9634case $host_os in
9635aix3*)
9636 # AIX sometimes has problems with the GCC collect2 program. For some
9637 # reason, if we set the COLLECT_NAMES environment variable, the problems
9638 # vanish in a puff of smoke.
9639 if test "X${COLLECT_NAMES+set}" != Xset; then
9640 COLLECT_NAMES=
9641 export COLLECT_NAMES
9642 fi
9643 ;;
87326c78 9644esac
6bb11ab3
L
9645
9646# Global variables:
9647ofile=libtool
9648can_build_shared=yes
9649
9650# All known linkers require a `.a' archive for static linking (except MSVC,
9651# which needs '.lib').
9652libext=a
9653
9654with_gnu_ld="$lt_cv_prog_gnu_ld"
9655
9656old_CC="$CC"
9657old_CFLAGS="$CFLAGS"
9658
9659# Set sane defaults for various variables
9660test -z "$CC" && CC=cc
9661test -z "$LTCC" && LTCC=$CC
9662test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9663test -z "$LD" && LD=ld
9664test -z "$ac_objext" && ac_objext=o
9665
9666for cc_temp in $compiler""; do
9667 case $cc_temp in
9668 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9669 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9670 \-*) ;;
9671 *) break;;
9672 esac
9673done
9674cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9675
9676
9677# Only perform the check for file, if the check method requires it
9678test -z "$MAGIC_CMD" && MAGIC_CMD=file
9679case $deplibs_check_method in
9680file_magic*)
9681 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9683$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 9684if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
9685 $as_echo_n "(cached) " >&6
9686else
9687 case $MAGIC_CMD in
9688[\\/*] | ?:[\\/]*)
9689 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9690 ;;
9691*)
9692 lt_save_MAGIC_CMD="$MAGIC_CMD"
9693 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9694 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9695 for ac_dir in $ac_dummy; do
9696 IFS="$lt_save_ifs"
9697 test -z "$ac_dir" && ac_dir=.
9698 if test -f $ac_dir/${ac_tool_prefix}file; then
9699 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9700 if test -n "$file_magic_test_file"; then
9701 case $deplibs_check_method in
9702 "file_magic "*)
9703 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9704 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9705 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9706 $EGREP "$file_magic_regex" > /dev/null; then
9707 :
9708 else
9709 cat <<_LT_EOF 1>&2
9710
9711*** Warning: the command libtool uses to detect shared libraries,
9712*** $file_magic_cmd, produces output that libtool cannot recognize.
9713*** The result is that libtool may fail to recognize shared libraries
9714*** as such. This will affect the creation of libtool libraries that
9715*** depend on shared libraries, but programs linked with such libtool
9716*** libraries will work regardless of this problem. Nevertheless, you
9717*** may want to report the problem to your system manager and/or to
9718*** bug-libtool@gnu.org
9719
9720_LT_EOF
9721 fi ;;
9722 esac
9723 fi
9724 break
87326c78 9725 fi
6bb11ab3
L
9726 done
9727 IFS="$lt_save_ifs"
9728 MAGIC_CMD="$lt_save_MAGIC_CMD"
9729 ;;
9730esac
87326c78 9731fi
87326c78 9732
6bb11ab3
L
9733MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9734if test -n "$MAGIC_CMD"; then
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9736$as_echo "$MAGIC_CMD" >&6; }
9737else
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9739$as_echo "no" >&6; }
9740fi
87326c78 9741
6bb11ab3
L
9742
9743
9744
9745
9746if test -z "$lt_cv_path_MAGIC_CMD"; then
9747 if test -n "$ac_tool_prefix"; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9749$as_echo_n "checking for file... " >&6; }
d0ac1c44 9750if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
9751 $as_echo_n "(cached) " >&6
9752else
9753 case $MAGIC_CMD in
9754[\\/*] | ?:[\\/]*)
9755 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9756 ;;
9757*)
9758 lt_save_MAGIC_CMD="$MAGIC_CMD"
9759 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9760 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9761 for ac_dir in $ac_dummy; do
9762 IFS="$lt_save_ifs"
9763 test -z "$ac_dir" && ac_dir=.
9764 if test -f $ac_dir/file; then
9765 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9766 if test -n "$file_magic_test_file"; then
9767 case $deplibs_check_method in
9768 "file_magic "*)
9769 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9770 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9771 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9772 $EGREP "$file_magic_regex" > /dev/null; then
9773 :
9774 else
9775 cat <<_LT_EOF 1>&2
9776
9777*** Warning: the command libtool uses to detect shared libraries,
9778*** $file_magic_cmd, produces output that libtool cannot recognize.
9779*** The result is that libtool may fail to recognize shared libraries
9780*** as such. This will affect the creation of libtool libraries that
9781*** depend on shared libraries, but programs linked with such libtool
9782*** libraries will work regardless of this problem. Nevertheless, you
9783*** may want to report the problem to your system manager and/or to
9784*** bug-libtool@gnu.org
9785
9786_LT_EOF
9787 fi ;;
9788 esac
9789 fi
9790 break
9791 fi
9792 done
9793 IFS="$lt_save_ifs"
9794 MAGIC_CMD="$lt_save_MAGIC_CMD"
9795 ;;
87326c78 9796esac
6bb11ab3
L
9797fi
9798
9799MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9800if test -n "$MAGIC_CMD"; then
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9802$as_echo "$MAGIC_CMD" >&6; }
9803else
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805$as_echo "no" >&6; }
9806fi
9807
9808
9809 else
9810 MAGIC_CMD=:
9811 fi
9812fi
9813
9814 fi
9815 ;;
9816esac
9817
9818# Use C for the default configuration in the libtool script
9819
9820lt_save_CC="$CC"
9821ac_ext=c
9822ac_cpp='$CPP $CPPFLAGS'
9823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9825ac_compiler_gnu=$ac_cv_c_compiler_gnu
9826
9827
9828# Source file extension for C test sources.
9829ac_ext=c
9830
9831# Object file extension for compiled C test sources.
9832objext=o
9833objext=$objext
9834
9835# Code to be used in simple compile tests
9836lt_simple_compile_test_code="int some_variable = 0;"
9837
9838# Code to be used in simple link tests
9839lt_simple_link_test_code='int main(){return(0);}'
9840
9841
9842
9843
9844
9845
9846
9847# If no C compiler was specified, use CC.
9848LTCC=${LTCC-"$CC"}
9849
9850# If no C compiler flags were specified, use CFLAGS.
9851LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9852
9853# Allow CC to be a program name with arguments.
9854compiler=$CC
9855
9856# Save the default compiler, since it gets overwritten when the other
9857# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9858compiler_DEFAULT=$CC
9859
9860# save warnings/boilerplate of simple test code
9861ac_outfile=conftest.$ac_objext
9862echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9863eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9864_lt_compiler_boilerplate=`cat conftest.err`
9865$RM conftest*
9866
9867ac_outfile=conftest.$ac_objext
9868echo "$lt_simple_link_test_code" >conftest.$ac_ext
9869eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9870_lt_linker_boilerplate=`cat conftest.err`
9871$RM -r conftest*
9872
9873
9874## CAVEAT EMPTOR:
9875## There is no encapsulation within the following macros, do not change
9876## the running order or otherwise move them around unless you know exactly
9877## what you are doing...
9878if test -n "$compiler"; then
9879
9880lt_prog_compiler_no_builtin_flag=
9881
9882if test "$GCC" = yes; then
9883 case $cc_basename in
9884 nvcc*)
9885 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9886 *)
9887 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
87326c78 9888 esac
6bb11ab3
L
9889
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9891$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 9892if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6bb11ab3 9893 $as_echo_n "(cached) " >&6
87326c78 9894else
6bb11ab3
L
9895 lt_cv_prog_compiler_rtti_exceptions=no
9896 ac_outfile=conftest.$ac_objext
9897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9898 lt_compiler_flag="-fno-rtti -fno-exceptions"
9899 # Insert the option either (1) after the last *FLAGS variable, or
9900 # (2) before a word containing "conftest.", or (3) at the end.
9901 # Note that $ac_compile itself does not contain backslashes and begins
9902 # with a dollar sign (not a hyphen), so the echo should work correctly.
9903 # The option is referenced via a variable to avoid confusing sed.
9904 lt_compile=`echo "$ac_compile" | $SED \
9905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9907 -e 's:$: $lt_compiler_flag:'`
9908 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9909 (eval "$lt_compile" 2>conftest.err)
9910 ac_status=$?
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 if (exit $ac_status) && test -s "$ac_outfile"; then
9914 # The compiler can only warn and ignore the option if not recognized
9915 # So say no if there are warnings other than the usual output.
9916 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9917 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9918 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9919 lt_cv_prog_compiler_rtti_exceptions=yes
9920 fi
9921 fi
9922 $RM conftest*
9923
87326c78 9924fi
6bb11ab3
L
9925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9926$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9927
9928if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9929 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9930else
9931 :
9932fi
9933
9934fi
9935
9936
9937
9938
9939
9940
9941 lt_prog_compiler_wl=
9942lt_prog_compiler_pic=
9943lt_prog_compiler_static=
9944
9945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9946$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9947
9948 if test "$GCC" = yes; then
9949 lt_prog_compiler_wl='-Wl,'
9950 lt_prog_compiler_static='-static'
9951
9952 case $host_os in
9953 aix*)
9954 # All AIX code is PIC.
9955 if test "$host_cpu" = ia64; then
9956 # AIX 5 now supports IA64 processor
9957 lt_prog_compiler_static='-Bstatic'
9958 fi
9959 lt_prog_compiler_pic='-fPIC'
9960 ;;
9961
9962 amigaos*)
9963 case $host_cpu in
9964 powerpc)
9965 # see comment about AmigaOS4 .so support
9966 lt_prog_compiler_pic='-fPIC'
9967 ;;
9968 m68k)
9969 # FIXME: we need at least 68020 code to build shared libraries, but
9970 # adding the `-m68020' flag to GCC prevents building anything better,
9971 # like `-m68040'.
9972 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9973 ;;
9974 esac
9975 ;;
9976
9977 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9978 # PIC is the default for these OSes.
9979 ;;
9980
9981 mingw* | cygwin* | pw32* | os2* | cegcc*)
9982 # This hack is so that the source file can tell whether it is being
9983 # built for inclusion in a dll (and should export symbols for example).
9984 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9985 # (--disable-auto-import) libraries
9986 lt_prog_compiler_pic='-DDLL_EXPORT'
9987 ;;
9988
9989 darwin* | rhapsody*)
9990 # PIC is the default on this platform
9991 # Common symbols not allowed in MH_DYLIB files
9992 lt_prog_compiler_pic='-fno-common'
9993 ;;
9994
9995 haiku*)
9996 # PIC is the default for Haiku.
9997 # The "-static" flag exists, but is broken.
9998 lt_prog_compiler_static=
9999 ;;
10000
10001 hpux*)
10002 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10003 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10004 # sets the default TLS model and affects inlining.
10005 case $host_cpu in
10006 hppa*64*)
10007 # +Z the default
10008 ;;
10009 *)
10010 lt_prog_compiler_pic='-fPIC'
10011 ;;
10012 esac
10013 ;;
10014
10015 interix[3-9]*)
10016 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10017 # Instead, we relocate shared libraries at runtime.
10018 ;;
10019
10020 msdosdjgpp*)
10021 # Just because we use GCC doesn't mean we suddenly get shared libraries
10022 # on systems that don't support them.
10023 lt_prog_compiler_can_build_shared=no
10024 enable_shared=no
10025 ;;
10026
10027 *nto* | *qnx*)
10028 # QNX uses GNU C++, but need to define -shared option too, otherwise
10029 # it will coredump.
10030 lt_prog_compiler_pic='-fPIC -shared'
10031 ;;
10032
10033 sysv4*MP*)
10034 if test -d /usr/nec; then
10035 lt_prog_compiler_pic=-Kconform_pic
10036 fi
10037 ;;
10038
10039 *)
10040 lt_prog_compiler_pic='-fPIC'
10041 ;;
10042 esac
10043
10044 case $cc_basename in
10045 nvcc*) # Cuda Compiler Driver 2.2
10046 lt_prog_compiler_wl='-Xlinker '
10047 lt_prog_compiler_pic='-Xcompiler -fPIC'
10048 ;;
10049 esac
10050 else
10051 # PORTME Check for flag to pass linker flags through the system compiler.
10052 case $host_os in
10053 aix*)
10054 lt_prog_compiler_wl='-Wl,'
10055 if test "$host_cpu" = ia64; then
10056 # AIX 5 now supports IA64 processor
10057 lt_prog_compiler_static='-Bstatic'
10058 else
10059 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10060 fi
10061 ;;
10062
10063 mingw* | cygwin* | pw32* | os2* | cegcc*)
10064 # This hack is so that the source file can tell whether it is being
10065 # built for inclusion in a dll (and should export symbols for example).
10066 lt_prog_compiler_pic='-DDLL_EXPORT'
10067 ;;
10068
10069 hpux9* | hpux10* | hpux11*)
10070 lt_prog_compiler_wl='-Wl,'
10071 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10072 # not for PA HP-UX.
10073 case $host_cpu in
10074 hppa*64*|ia64*)
10075 # +Z the default
10076 ;;
10077 *)
10078 lt_prog_compiler_pic='+Z'
10079 ;;
10080 esac
10081 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10082 lt_prog_compiler_static='${wl}-a ${wl}archive'
10083 ;;
10084
10085 irix5* | irix6* | nonstopux*)
10086 lt_prog_compiler_wl='-Wl,'
10087 # PIC (with -KPIC) is the default.
10088 lt_prog_compiler_static='-non_shared'
10089 ;;
10090
10091 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10092 case $cc_basename in
10093 # old Intel for x86_64 which still supported -KPIC.
10094 ecc*)
10095 lt_prog_compiler_wl='-Wl,'
10096 lt_prog_compiler_pic='-KPIC'
10097 lt_prog_compiler_static='-static'
10098 ;;
10099 # icc used to be incompatible with GCC.
10100 # ICC 10 doesn't accept -KPIC any more.
10101 icc* | ifort*)
10102 lt_prog_compiler_wl='-Wl,'
10103 lt_prog_compiler_pic='-fPIC'
10104 lt_prog_compiler_static='-static'
10105 ;;
10106 # Lahey Fortran 8.1.
10107 lf95*)
10108 lt_prog_compiler_wl='-Wl,'
10109 lt_prog_compiler_pic='--shared'
10110 lt_prog_compiler_static='--static'
10111 ;;
10112 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10113 # Portland Group compilers (*not* the Pentium gcc compiler,
10114 # which looks to be a dead project)
10115 lt_prog_compiler_wl='-Wl,'
10116 lt_prog_compiler_pic='-fpic'
10117 lt_prog_compiler_static='-Bstatic'
10118 ;;
10119 ccc*)
10120 lt_prog_compiler_wl='-Wl,'
10121 # All Alpha code is PIC.
10122 lt_prog_compiler_static='-non_shared'
10123 ;;
10124 xl* | bgxl* | bgf* | mpixl*)
10125 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10126 lt_prog_compiler_wl='-Wl,'
10127 lt_prog_compiler_pic='-qpic'
10128 lt_prog_compiler_static='-qstaticlink'
10129 ;;
10130 *)
10131 case `$CC -V 2>&1 | sed 5q` in
10132 *Sun\ F* | *Sun*Fortran*)
10133 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10134 lt_prog_compiler_pic='-KPIC'
10135 lt_prog_compiler_static='-Bstatic'
10136 lt_prog_compiler_wl=''
10137 ;;
10138 *Sun\ C*)
10139 # Sun C 5.9
10140 lt_prog_compiler_pic='-KPIC'
10141 lt_prog_compiler_static='-Bstatic'
10142 lt_prog_compiler_wl='-Wl,'
10143 ;;
10144 esac
10145 ;;
10146 esac
10147 ;;
10148
10149 newsos6)
10150 lt_prog_compiler_pic='-KPIC'
10151 lt_prog_compiler_static='-Bstatic'
10152 ;;
10153
10154 *nto* | *qnx*)
10155 # QNX uses GNU C++, but need to define -shared option too, otherwise
10156 # it will coredump.
10157 lt_prog_compiler_pic='-fPIC -shared'
10158 ;;
10159
10160 osf3* | osf4* | osf5*)
10161 lt_prog_compiler_wl='-Wl,'
10162 # All OSF/1 code is PIC.
10163 lt_prog_compiler_static='-non_shared'
10164 ;;
10165
10166 rdos*)
10167 lt_prog_compiler_static='-non_shared'
10168 ;;
87326c78 10169
6bb11ab3
L
10170 solaris*)
10171 lt_prog_compiler_pic='-KPIC'
10172 lt_prog_compiler_static='-Bstatic'
10173 case $cc_basename in
10174 f77* | f90* | f95*)
10175 lt_prog_compiler_wl='-Qoption ld ';;
10176 *)
10177 lt_prog_compiler_wl='-Wl,';;
10178 esac
10179 ;;
87326c78 10180
6bb11ab3
L
10181 sunos4*)
10182 lt_prog_compiler_wl='-Qoption ld '
10183 lt_prog_compiler_pic='-PIC'
10184 lt_prog_compiler_static='-Bstatic'
10185 ;;
87326c78 10186
6bb11ab3
L
10187 sysv4 | sysv4.2uw2* | sysv4.3*)
10188 lt_prog_compiler_wl='-Wl,'
10189 lt_prog_compiler_pic='-KPIC'
10190 lt_prog_compiler_static='-Bstatic'
10191 ;;
10192
10193 sysv4*MP*)
10194 if test -d /usr/nec ;then
10195 lt_prog_compiler_pic='-Kconform_pic'
10196 lt_prog_compiler_static='-Bstatic'
10197 fi
10198 ;;
10199
10200 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10201 lt_prog_compiler_wl='-Wl,'
10202 lt_prog_compiler_pic='-KPIC'
10203 lt_prog_compiler_static='-Bstatic'
10204 ;;
10205
10206 unicos*)
10207 lt_prog_compiler_wl='-Wl,'
10208 lt_prog_compiler_can_build_shared=no
10209 ;;
10210
10211 uts4*)
10212 lt_prog_compiler_pic='-pic'
10213 lt_prog_compiler_static='-Bstatic'
10214 ;;
10215
10216 *)
10217 lt_prog_compiler_can_build_shared=no
10218 ;;
10219 esac
10220 fi
10221
10222case $host_os in
10223 # For platforms which do not support PIC, -DPIC is meaningless:
10224 *djgpp*)
10225 lt_prog_compiler_pic=
10226 ;;
10227 *)
10228 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10229 ;;
87326c78 10230esac
6bb11ab3
L
10231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10232$as_echo "$lt_prog_compiler_pic" >&6; }
10233
10234
10235
10236
10237
10238
10239#
10240# Check to make sure the PIC flag actually works.
10241#
10242if test -n "$lt_prog_compiler_pic"; then
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10244$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 10245if ${lt_cv_prog_compiler_pic_works+:} false; then :
6bb11ab3 10246 $as_echo_n "(cached) " >&6
87326c78 10247else
6bb11ab3
L
10248 lt_cv_prog_compiler_pic_works=no
10249 ac_outfile=conftest.$ac_objext
10250 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10251 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10252 # Insert the option either (1) after the last *FLAGS variable, or
10253 # (2) before a word containing "conftest.", or (3) at the end.
10254 # Note that $ac_compile itself does not contain backslashes and begins
10255 # with a dollar sign (not a hyphen), so the echo should work correctly.
10256 # The option is referenced via a variable to avoid confusing sed.
10257 lt_compile=`echo "$ac_compile" | $SED \
10258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10260 -e 's:$: $lt_compiler_flag:'`
10261 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10262 (eval "$lt_compile" 2>conftest.err)
10263 ac_status=$?
10264 cat conftest.err >&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 if (exit $ac_status) && test -s "$ac_outfile"; then
10267 # The compiler can only warn and ignore the option if not recognized
10268 # So say no if there are warnings other than the usual output.
10269 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10271 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10272 lt_cv_prog_compiler_pic_works=yes
10273 fi
10274 fi
10275 $RM conftest*
87326c78 10276
87326c78 10277fi
6bb11ab3
L
10278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10279$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10280
10281if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10282 case $lt_prog_compiler_pic in
10283 "" | " "*) ;;
10284 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10285 esac
10286else
10287 lt_prog_compiler_pic=
10288 lt_prog_compiler_can_build_shared=no
87326c78 10289fi
6bb11ab3
L
10290
10291fi
10292
10293
10294
10295
10296
10297
10298#
10299# Check to make sure the static flag actually works.
10300#
10301wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10303$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 10304if ${lt_cv_prog_compiler_static_works+:} false; then :
87326c78
DD
10305 $as_echo_n "(cached) " >&6
10306else
6bb11ab3
L
10307 lt_cv_prog_compiler_static_works=no
10308 save_LDFLAGS="$LDFLAGS"
10309 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10310 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10311 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10312 # The linker can only warn and ignore the option if not recognized
10313 # So say no if there are warnings
10314 if test -s conftest.err; then
10315 # Append any errors to the config.log.
10316 cat conftest.err 1>&5
10317 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10319 if diff conftest.exp conftest.er2 >/dev/null; then
10320 lt_cv_prog_compiler_static_works=yes
10321 fi
10322 else
10323 lt_cv_prog_compiler_static_works=yes
10324 fi
10325 fi
10326 $RM -r conftest*
10327 LDFLAGS="$save_LDFLAGS"
87326c78 10328
6bb11ab3
L
10329fi
10330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10331$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
87326c78 10332
6bb11ab3
L
10333if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10334 :
87326c78 10335else
6bb11ab3 10336 lt_prog_compiler_static=
87326c78 10337fi
87326c78 10338
6bb11ab3
L
10339
10340
10341
10342
10343
10344
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10346$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 10347if ${lt_cv_prog_compiler_c_o+:} false; then :
6bb11ab3 10348 $as_echo_n "(cached) " >&6
87326c78 10349else
6bb11ab3
L
10350 lt_cv_prog_compiler_c_o=no
10351 $RM -r conftest 2>/dev/null
10352 mkdir conftest
10353 cd conftest
10354 mkdir out
10355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10356
10357 lt_compiler_flag="-o out/conftest2.$ac_objext"
10358 # Insert the option either (1) after the last *FLAGS variable, or
10359 # (2) before a word containing "conftest.", or (3) at the end.
10360 # Note that $ac_compile itself does not contain backslashes and begins
10361 # with a dollar sign (not a hyphen), so the echo should work correctly.
10362 lt_compile=`echo "$ac_compile" | $SED \
10363 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10365 -e 's:$: $lt_compiler_flag:'`
10366 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10367 (eval "$lt_compile" 2>out/conftest.err)
10368 ac_status=$?
10369 cat out/conftest.err >&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10372 then
10373 # The compiler can only warn and ignore the option if not recognized
10374 # So say no if there are warnings
10375 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10376 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10377 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10378 lt_cv_prog_compiler_c_o=yes
10379 fi
10380 fi
10381 chmod u+w . 2>&5
10382 $RM conftest*
10383 # SGI C++ compiler will create directory out/ii_files/ for
10384 # template instantiation
10385 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10386 $RM out/* && rmdir out
10387 cd ..
10388 $RM -r conftest
10389 $RM conftest*
10390
87326c78 10391fi
6bb11ab3
L
10392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10393$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10394
10395
10396
10397
10398
10399
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10401$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 10402if ${lt_cv_prog_compiler_c_o+:} false; then :
87326c78
DD
10403 $as_echo_n "(cached) " >&6
10404else
6bb11ab3
L
10405 lt_cv_prog_compiler_c_o=no
10406 $RM -r conftest 2>/dev/null
10407 mkdir conftest
10408 cd conftest
10409 mkdir out
10410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10411
10412 lt_compiler_flag="-o out/conftest2.$ac_objext"
10413 # Insert the option either (1) after the last *FLAGS variable, or
10414 # (2) before a word containing "conftest.", or (3) at the end.
10415 # Note that $ac_compile itself does not contain backslashes and begins
10416 # with a dollar sign (not a hyphen), so the echo should work correctly.
10417 lt_compile=`echo "$ac_compile" | $SED \
10418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10420 -e 's:$: $lt_compiler_flag:'`
10421 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10422 (eval "$lt_compile" 2>out/conftest.err)
10423 ac_status=$?
10424 cat out/conftest.err >&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10427 then
10428 # The compiler can only warn and ignore the option if not recognized
10429 # So say no if there are warnings
10430 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10431 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10432 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10433 lt_cv_prog_compiler_c_o=yes
10434 fi
10435 fi
10436 chmod u+w . 2>&5
10437 $RM conftest*
10438 # SGI C++ compiler will create directory out/ii_files/ for
10439 # template instantiation
10440 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10441 $RM out/* && rmdir out
10442 cd ..
10443 $RM -r conftest
10444 $RM conftest*
10445
10446fi
10447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10448$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10449
10450
10451
10452
10453hard_links="nottested"
10454if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10455 # do not overwrite the value of need_locks provided by the user
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10457$as_echo_n "checking if we can lock with hard links... " >&6; }
10458 hard_links=yes
10459 $RM conftest*
10460 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10461 touch conftest.a
10462 ln conftest.a conftest.b 2>&5 || hard_links=no
10463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10465$as_echo "$hard_links" >&6; }
10466 if test "$hard_links" = no; then
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10468$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10469 need_locks=warn
10470 fi
10471else
10472 need_locks=no
10473fi
10474
10475
10476
10477
10478
10479
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10481$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10482
10483 runpath_var=
10484 allow_undefined_flag=
10485 always_export_symbols=no
10486 archive_cmds=
10487 archive_expsym_cmds=
10488 compiler_needs_object=no
10489 enable_shared_with_static_runtimes=no
10490 export_dynamic_flag_spec=
10491 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10492 hardcode_automatic=no
10493 hardcode_direct=no
10494 hardcode_direct_absolute=no
10495 hardcode_libdir_flag_spec=
10496 hardcode_libdir_flag_spec_ld=
10497 hardcode_libdir_separator=
10498 hardcode_minus_L=no
10499 hardcode_shlibpath_var=unsupported
10500 inherit_rpath=no
10501 link_all_deplibs=unknown
10502 module_cmds=
10503 module_expsym_cmds=
10504 old_archive_from_new_cmds=
10505 old_archive_from_expsyms_cmds=
10506 thread_safe_flag_spec=
10507 whole_archive_flag_spec=
10508 # include_expsyms should be a list of space-separated symbols to be *always*
10509 # included in the symbol list
10510 include_expsyms=
10511 # exclude_expsyms can be an extended regexp of symbols to exclude
10512 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10513 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10514 # as well as any symbol that contains `d'.
10515 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10516 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10517 # platforms (ab)use it in PIC code, but their linkers get confused if
10518 # the symbol is explicitly referenced. Since portable code cannot
10519 # rely on this symbol name, it's probably fine to never include it in
10520 # preloaded symbol tables.
10521 # Exclude shared library initialization/finalization symbols.
10522 extract_expsyms_cmds=
10523
10524 case $host_os in
10525 cygwin* | mingw* | pw32* | cegcc*)
10526 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10527 # When not using gcc, we currently assume that we are using
10528 # Microsoft Visual C++.
10529 if test "$GCC" != yes; then
10530 with_gnu_ld=no
10531 fi
10532 ;;
10533 interix*)
10534 # we just hope/assume this is gcc and not c89 (= MSVC++)
10535 with_gnu_ld=yes
10536 ;;
10537 openbsd*)
10538 with_gnu_ld=no
10539 ;;
10540 esac
87326c78 10541
6bb11ab3
L
10542 ld_shlibs=yes
10543
10544 # On some targets, GNU ld is compatible enough with the native linker
10545 # that we're better off using the native interface for both.
10546 lt_use_gnu_ld_interface=no
10547 if test "$with_gnu_ld" = yes; then
10548 case $host_os in
10549 aix*)
10550 # The AIX port of GNU ld has always aspired to compatibility
10551 # with the native linker. However, as the warning in the GNU ld
10552 # block says, versions before 2.19.5* couldn't really create working
10553 # shared libraries, regardless of the interface used.
10554 case `$LD -v 2>&1` in
10555 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10556 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10557 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10558 *)
10559 lt_use_gnu_ld_interface=yes
10560 ;;
10561 esac
10562 ;;
10563 *)
10564 lt_use_gnu_ld_interface=yes
10565 ;;
10566 esac
10567 fi
87326c78 10568
6bb11ab3
L
10569 if test "$lt_use_gnu_ld_interface" = yes; then
10570 # If archive_cmds runs LD, not CC, wlarc should be empty
10571 wlarc='${wl}'
10572
10573 # Set some defaults for GNU ld with shared library support. These
10574 # are reset later if shared libraries are not supported. Putting them
10575 # here allows them to be overridden if necessary.
10576 runpath_var=LD_RUN_PATH
10577 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10578 export_dynamic_flag_spec='${wl}--export-dynamic'
10579 # ancient GNU ld didn't support --whole-archive et. al.
10580 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10581 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10582 else
10583 whole_archive_flag_spec=
10584 fi
10585 supports_anon_versioning=no
10586 case `$LD -v 2>&1` in
10587 *GNU\ gold*) supports_anon_versioning=yes ;;
10588 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10589 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10590 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10591 *\ 2.11.*) ;; # other 2.11 versions
10592 *) supports_anon_versioning=yes ;;
10593 esac
10594
10595 # See if GNU ld supports shared libraries.
10596 case $host_os in
10597 aix[3-9]*)
10598 # On AIX/PPC, the GNU linker is very broken
10599 if test "$host_cpu" != ia64; then
10600 ld_shlibs=no
10601 cat <<_LT_EOF 1>&2
10602
10603*** Warning: the GNU linker, at least up to release 2.19, is reported
10604*** to be unable to reliably create shared libraries on AIX.
10605*** Therefore, libtool is disabling shared libraries support. If you
10606*** really care for shared libraries, you may want to install binutils
10607*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10608*** You will then need to restart the configuration process.
10609
10610_LT_EOF
10611 fi
10612 ;;
10613
10614 amigaos*)
10615 case $host_cpu in
10616 powerpc)
10617 # see comment about AmigaOS4 .so support
10618 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10619 archive_expsym_cmds=''
10620 ;;
10621 m68k)
10622 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)'
10623 hardcode_libdir_flag_spec='-L$libdir'
10624 hardcode_minus_L=yes
10625 ;;
10626 esac
10627 ;;
10628
10629 beos*)
10630 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10631 allow_undefined_flag=unsupported
10632 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10633 # support --undefined. This deserves some investigation. FIXME
10634 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10635 else
10636 ld_shlibs=no
10637 fi
10638 ;;
10639
10640 cygwin* | mingw* | pw32* | cegcc*)
10641 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10642 # as there is no search path for DLLs.
10643 hardcode_libdir_flag_spec='-L$libdir'
10644 export_dynamic_flag_spec='${wl}--export-all-symbols'
10645 allow_undefined_flag=unsupported
10646 always_export_symbols=no
10647 enable_shared_with_static_runtimes=yes
10648 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10649
10650 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10652 # If the export-symbols file already is a .def file (1st line
10653 # is EXPORTS), use it as is; otherwise, prepend...
10654 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10655 cp $export_symbols $output_objdir/$soname.def;
10656 else
10657 echo EXPORTS > $output_objdir/$soname.def;
10658 cat $export_symbols >> $output_objdir/$soname.def;
10659 fi~
10660 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10661 else
10662 ld_shlibs=no
10663 fi
10664 ;;
10665
10666 haiku*)
10667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10668 link_all_deplibs=yes
10669 ;;
10670
10671 interix[3-9]*)
10672 hardcode_direct=no
10673 hardcode_shlibpath_var=no
10674 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10675 export_dynamic_flag_spec='${wl}-E'
10676 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10677 # Instead, shared libraries are loaded at an image base (0x10000000 by
10678 # default) and relocated if they conflict, which is a slow very memory
10679 # consuming and fragmenting process. To avoid this, we pick a random,
10680 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10681 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10682 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10683 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'
10684 ;;
10685
10686 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10687 tmp_diet=no
10688 if test "$host_os" = linux-dietlibc; then
10689 case $cc_basename in
10690 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10691 esac
10692 fi
10693 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10694 && test "$tmp_diet" = no
10695 then
ae7d0cac 10696 tmp_addflag=' $pic_flag'
6bb11ab3
L
10697 tmp_sharedflag='-shared'
10698 case $cc_basename,$host_cpu in
10699 pgcc*) # Portland Group C compiler
10700 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'
10701 tmp_addflag=' $pic_flag'
10702 ;;
10703 pgf77* | pgf90* | pgf95* | pgfortran*)
10704 # Portland Group f77 and f90 compilers
10705 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'
10706 tmp_addflag=' $pic_flag -Mnomain' ;;
10707 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10708 tmp_addflag=' -i_dynamic' ;;
10709 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10710 tmp_addflag=' -i_dynamic -nofor_main' ;;
10711 ifc* | ifort*) # Intel Fortran compiler
10712 tmp_addflag=' -nofor_main' ;;
10713 lf95*) # Lahey Fortran 8.1
10714 whole_archive_flag_spec=
10715 tmp_sharedflag='--shared' ;;
10716 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10717 tmp_sharedflag='-qmkshrobj'
10718 tmp_addflag= ;;
10719 nvcc*) # Cuda Compiler Driver 2.2
10720 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'
10721 compiler_needs_object=yes
10722 ;;
10723 esac
10724 case `$CC -V 2>&1 | sed 5q` in
10725 *Sun\ C*) # Sun C 5.9
10726 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'
10727 compiler_needs_object=yes
10728 tmp_sharedflag='-G' ;;
10729 *Sun\ F*) # Sun Fortran 8.3
10730 tmp_sharedflag='-G' ;;
10731 esac
10732 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10733
10734 if test "x$supports_anon_versioning" = xyes; then
10735 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10736 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10737 echo "local: *; };" >> $output_objdir/$libname.ver~
10738 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10739 fi
10740
10741 case $cc_basename in
10742 xlf* | bgf* | bgxlf* | mpixlf*)
10743 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10744 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10745 hardcode_libdir_flag_spec=
10746 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10747 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10748 if test "x$supports_anon_versioning" = xyes; then
10749 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10750 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10751 echo "local: *; };" >> $output_objdir/$libname.ver~
10752 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10753 fi
10754 ;;
10755 esac
10756 else
10757 ld_shlibs=no
10758 fi
10759 ;;
10760
10761 netbsd*)
10762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10763 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10764 wlarc=
10765 else
10766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10767 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10768 fi
10769 ;;
10770
10771 solaris*)
10772 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10773 ld_shlibs=no
10774 cat <<_LT_EOF 1>&2
10775
10776*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10777*** create shared libraries on Solaris systems. Therefore, libtool
10778*** is disabling shared libraries support. We urge you to upgrade GNU
10779*** binutils to release 2.9.1 or newer. Another option is to modify
10780*** your PATH or compiler configuration so that the native linker is
10781*** used, and then restart.
10782
10783_LT_EOF
10784 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10785 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10786 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10787 else
10788 ld_shlibs=no
10789 fi
10790 ;;
10791
10792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10793 case `$LD -v 2>&1` in
10794 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10795 ld_shlibs=no
10796 cat <<_LT_EOF 1>&2
10797
10798*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10799*** reliably create shared libraries on SCO systems. Therefore, libtool
10800*** is disabling shared libraries support. We urge you to upgrade GNU
10801*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10802*** your PATH or compiler configuration so that the native linker is
10803*** used, and then restart.
10804
10805_LT_EOF
10806 ;;
10807 *)
10808 # For security reasons, it is highly recommended that you always
10809 # use absolute paths for naming shared libraries, and exclude the
10810 # DT_RUNPATH tag from executables and libraries. But doing so
10811 # requires that you compile everything twice, which is a pain.
10812 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10815 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10816 else
10817 ld_shlibs=no
10818 fi
10819 ;;
10820 esac
10821 ;;
10822
10823 sunos4*)
10824 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10825 wlarc=
10826 hardcode_direct=yes
10827 hardcode_shlibpath_var=no
10828 ;;
10829
10830 *)
10831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10833 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10834 else
10835 ld_shlibs=no
10836 fi
10837 ;;
10838 esac
10839
10840 if test "$ld_shlibs" = no; then
10841 runpath_var=
10842 hardcode_libdir_flag_spec=
10843 export_dynamic_flag_spec=
10844 whole_archive_flag_spec=
10845 fi
10846 else
10847 # PORTME fill in a description of your system's linker (not GNU ld)
10848 case $host_os in
10849 aix3*)
10850 allow_undefined_flag=unsupported
10851 always_export_symbols=yes
10852 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'
10853 # Note: this linker hardcodes the directories in LIBPATH if there
10854 # are no directories specified by -L.
10855 hardcode_minus_L=yes
10856 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10857 # Neither direct hardcoding nor static linking is supported with a
10858 # broken collect2.
10859 hardcode_direct=unsupported
10860 fi
10861 ;;
10862
10863 aix[4-9]*)
10864 if test "$host_cpu" = ia64; then
10865 # On IA64, the linker does run time linking by default, so we don't
10866 # have to do anything special.
10867 aix_use_runtimelinking=no
10868 exp_sym_flag='-Bexport'
10869 no_entry_flag=""
10870 else
10871 # If we're using GNU nm, then we don't want the "-C" option.
10872 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10873 # Also, AIX nm treats weak defined symbols like other global
10874 # defined symbols, whereas GNU nm marks them as "W".
10875 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10876 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'
10877 else
5c887dd5 10878 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
10879 fi
10880 aix_use_runtimelinking=no
10881
10882 # Test if we are trying to use run time linking or normal
10883 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10884 # need to do runtime linking.
10885 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10886 for ld_flag in $LDFLAGS; do
10887 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10888 aix_use_runtimelinking=yes
10889 break
10890 fi
10891 done
10892 ;;
10893 esac
10894
10895 exp_sym_flag='-bexport'
10896 no_entry_flag='-bnoentry'
10897 fi
10898
10899 # When large executables or shared objects are built, AIX ld can
10900 # have problems creating the table of contents. If linking a library
10901 # or program results in "error TOC overflow" add -mminimal-toc to
10902 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10903 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10904
10905 archive_cmds=''
10906 hardcode_direct=yes
10907 hardcode_direct_absolute=yes
10908 hardcode_libdir_separator=':'
10909 link_all_deplibs=yes
10910 file_list_spec='${wl}-f,'
10911
10912 if test "$GCC" = yes; then
10913 case $host_os in aix4.[012]|aix4.[012].*)
10914 # We only want to do this on AIX 4.2 and lower, the check
10915 # below for broken collect2 doesn't work under 4.3+
10916 collect2name=`${CC} -print-prog-name=collect2`
10917 if test -f "$collect2name" &&
10918 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10919 then
10920 # We have reworked collect2
10921 :
10922 else
10923 # We have old collect2
10924 hardcode_direct=unsupported
10925 # It fails to find uninstalled libraries when the uninstalled
10926 # path is not listed in the libpath. Setting hardcode_minus_L
10927 # to unsupported forces relinking
10928 hardcode_minus_L=yes
10929 hardcode_libdir_flag_spec='-L$libdir'
10930 hardcode_libdir_separator=
10931 fi
10932 ;;
10933 esac
10934 shared_flag='-shared'
10935 if test "$aix_use_runtimelinking" = yes; then
10936 shared_flag="$shared_flag "'${wl}-G'
10937 fi
10938 else
10939 # not using gcc
10940 if test "$host_cpu" = ia64; then
10941 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10942 # chokes on -Wl,-G. The following line is correct:
10943 shared_flag='-G'
10944 else
10945 if test "$aix_use_runtimelinking" = yes; then
10946 shared_flag='${wl}-G'
10947 else
10948 shared_flag='${wl}-bM:SRE'
10949 fi
10950 fi
10951 fi
10952
10953 export_dynamic_flag_spec='${wl}-bexpall'
10954 # It seems that -bexpall does not export symbols beginning with
10955 # underscore (_), so it is better to generate a list of symbols to export.
10956 always_export_symbols=yes
10957 if test "$aix_use_runtimelinking" = yes; then
10958 # Warning - without using the other runtime loading flags (-brtl),
10959 # -berok will link without error, but may produce a broken library.
10960 allow_undefined_flag='-berok'
10961 # Determine the default libpath from the value encoded in an
10962 # empty executable.
10963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87326c78
DD
10964/* end confdefs.h. */
10965
10966int
10967main ()
10968{
10969
10970 ;
10971 return 0;
10972}
10973_ACEOF
6bb11ab3 10974if ac_fn_c_try_link "$LINENO"; then :
87326c78 10975
6bb11ab3
L
10976lt_aix_libpath_sed='
10977 /Import File Strings/,/^$/ {
10978 /^0/ {
10979 s/^0 *\(.*\)$/\1/
10980 p
10981 }
10982 }'
10983aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10984# Check for a 64-bit object if we didn't find anything.
10985if test -z "$aix_libpath"; then
10986 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10987fi
10988fi
10989rm -f core conftest.err conftest.$ac_objext \
10990 conftest$ac_exeext conftest.$ac_ext
10991if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10992
10993 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10994 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"
10995 else
10996 if test "$host_cpu" = ia64; then
10997 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10998 allow_undefined_flag="-z nodefs"
10999 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"
11000 else
11001 # Determine the default libpath from the value encoded in an
11002 # empty executable.
87326c78
DD
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004/* end confdefs.h. */
11005
11006int
11007main ()
11008{
11009
11010 ;
11011 return 0;
11012}
11013_ACEOF
6bb11ab3
L
11014if ac_fn_c_try_link "$LINENO"; then :
11015
11016lt_aix_libpath_sed='
11017 /Import File Strings/,/^$/ {
11018 /^0/ {
11019 s/^0 *\(.*\)$/\1/
11020 p
11021 }
11022 }'
11023aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11024# Check for a 64-bit object if we didn't find anything.
11025if test -z "$aix_libpath"; then
11026 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
87326c78 11027fi
87326c78 11028fi
6bb11ab3
L
11029rm -f core conftest.err conftest.$ac_objext \
11030 conftest$ac_exeext conftest.$ac_ext
11031if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11032
11033 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11034 # Warning - without using the other run time loading flags,
11035 # -berok will link without error, but may produce a broken library.
11036 no_undefined_flag=' ${wl}-bernotok'
11037 allow_undefined_flag=' ${wl}-berok'
11038 if test "$with_gnu_ld" = yes; then
11039 # We only use this code for GNU lds that support --whole-archive.
11040 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11041 else
11042 # Exported symbols can be pulled into shared objects from archives
11043 whole_archive_flag_spec='$convenience'
11044 fi
11045 archive_cmds_need_lc=yes
11046 # This is similar to how AIX traditionally builds its shared libraries.
11047 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'
11048 fi
11049 fi
11050 ;;
11051
11052 amigaos*)
11053 case $host_cpu in
11054 powerpc)
11055 # see comment about AmigaOS4 .so support
11056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11057 archive_expsym_cmds=''
11058 ;;
11059 m68k)
11060 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)'
11061 hardcode_libdir_flag_spec='-L$libdir'
11062 hardcode_minus_L=yes
11063 ;;
11064 esac
11065 ;;
11066
11067 bsdi[45]*)
11068 export_dynamic_flag_spec=-rdynamic
11069 ;;
11070
11071 cygwin* | mingw* | pw32* | cegcc*)
11072 # When not using gcc, we currently assume that we are using
11073 # Microsoft Visual C++.
11074 # hardcode_libdir_flag_spec is actually meaningless, as there is
11075 # no search path for DLLs.
11076 hardcode_libdir_flag_spec=' '
11077 allow_undefined_flag=unsupported
11078 # Tell ltmain to make .lib files, not .a files.
11079 libext=lib
11080 # Tell ltmain to make .dll files, not .so files.
11081 shrext_cmds=".dll"
11082 # FIXME: Setting linknames here is a bad hack.
11083 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11084 # The linker will automatically build a .lib file if we build a DLL.
11085 old_archive_from_new_cmds='true'
11086 # FIXME: Should let the user specify the lib program.
11087 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11088 fix_srcfile_path='`cygpath -w "$srcfile"`'
11089 enable_shared_with_static_runtimes=yes
11090 ;;
11091
11092 darwin* | rhapsody*)
11093
11094
11095 archive_cmds_need_lc=no
11096 hardcode_direct=no
11097 hardcode_automatic=yes
11098 hardcode_shlibpath_var=unsupported
11099 if test "$lt_cv_ld_force_load" = "yes"; then
11100 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\"`'
87326c78 11101 else
6bb11ab3 11102 whole_archive_flag_spec=''
87326c78 11103 fi
6bb11ab3
L
11104 link_all_deplibs=yes
11105 allow_undefined_flag="$_lt_dar_allow_undefined"
11106 case $cc_basename in
11107 ifort*) _lt_dar_can_shared=yes ;;
11108 *) _lt_dar_can_shared=$GCC ;;
11109 esac
11110 if test "$_lt_dar_can_shared" = "yes"; then
11111 output_verbose_link_cmd=func_echo_all
11112 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11113 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11114 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}"
11115 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}"
11116
87326c78 11117 else
6bb11ab3 11118 ld_shlibs=no
87326c78 11119 fi
6bb11ab3
L
11120
11121 ;;
11122
11123 dgux*)
11124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11125 hardcode_libdir_flag_spec='-L$libdir'
11126 hardcode_shlibpath_var=no
11127 ;;
11128
11129 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11130 # support. Future versions do this automatically, but an explicit c++rt0.o
11131 # does not break anything, and helps significantly (at the cost of a little
11132 # extra space).
11133 freebsd2.2*)
11134 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11135 hardcode_libdir_flag_spec='-R$libdir'
11136 hardcode_direct=yes
11137 hardcode_shlibpath_var=no
11138 ;;
11139
11140 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11141 freebsd2.*)
11142 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11143 hardcode_direct=yes
11144 hardcode_minus_L=yes
11145 hardcode_shlibpath_var=no
11146 ;;
11147
11148 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11149 freebsd* | dragonfly*)
11150 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11151 hardcode_libdir_flag_spec='-R$libdir'
11152 hardcode_direct=yes
11153 hardcode_shlibpath_var=no
11154 ;;
11155
11156 hpux9*)
11157 if test "$GCC" = yes; then
11158 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'
11159 else
11160 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'
11161 fi
11162 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11163 hardcode_libdir_separator=:
11164 hardcode_direct=yes
11165
11166 # hardcode_minus_L: Not really in the search PATH,
11167 # but as the default location of the library.
11168 hardcode_minus_L=yes
11169 export_dynamic_flag_spec='${wl}-E'
11170 ;;
11171
11172 hpux10*)
11173 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11174 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11175 else
11176 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11177 fi
11178 if test "$with_gnu_ld" = no; then
11179 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11180 hardcode_libdir_flag_spec_ld='+b $libdir'
11181 hardcode_libdir_separator=:
11182 hardcode_direct=yes
11183 hardcode_direct_absolute=yes
11184 export_dynamic_flag_spec='${wl}-E'
11185 # hardcode_minus_L: Not really in the search PATH,
11186 # but as the default location of the library.
11187 hardcode_minus_L=yes
11188 fi
11189 ;;
11190
11191 hpux11*)
11192 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11193 case $host_cpu in
11194 hppa*64*)
11195 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11196 ;;
11197 ia64*)
11198 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11199 ;;
11200 *)
11201 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11202 ;;
11203 esac
11204 else
11205 case $host_cpu in
11206 hppa*64*)
11207 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11208 ;;
11209 ia64*)
11210 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11211 ;;
11212 *)
11213
11214 # Older versions of the 11.00 compiler do not understand -b yet
11215 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11217$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 11218if ${lt_cv_prog_compiler__b+:} false; then :
87326c78
DD
11219 $as_echo_n "(cached) " >&6
11220else
6bb11ab3
L
11221 lt_cv_prog_compiler__b=no
11222 save_LDFLAGS="$LDFLAGS"
11223 LDFLAGS="$LDFLAGS -b"
11224 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11225 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11226 # The linker can only warn and ignore the option if not recognized
11227 # So say no if there are warnings
11228 if test -s conftest.err; then
11229 # Append any errors to the config.log.
11230 cat conftest.err 1>&5
11231 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11232 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11233 if diff conftest.exp conftest.er2 >/dev/null; then
11234 lt_cv_prog_compiler__b=yes
11235 fi
11236 else
11237 lt_cv_prog_compiler__b=yes
11238 fi
11239 fi
11240 $RM -r conftest*
11241 LDFLAGS="$save_LDFLAGS"
87326c78 11242
6bb11ab3
L
11243fi
11244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11245$as_echo "$lt_cv_prog_compiler__b" >&6; }
87326c78 11246
6bb11ab3
L
11247if test x"$lt_cv_prog_compiler__b" = xyes; then
11248 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11249else
11250 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11251fi
87326c78 11252
6bb11ab3
L
11253 ;;
11254 esac
11255 fi
11256 if test "$with_gnu_ld" = no; then
11257 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11258 hardcode_libdir_separator=:
11259
11260 case $host_cpu in
11261 hppa*64*|ia64*)
11262 hardcode_direct=no
11263 hardcode_shlibpath_var=no
11264 ;;
11265 *)
11266 hardcode_direct=yes
11267 hardcode_direct_absolute=yes
11268 export_dynamic_flag_spec='${wl}-E'
11269
11270 # hardcode_minus_L: Not really in the search PATH,
11271 # but as the default location of the library.
11272 hardcode_minus_L=yes
11273 ;;
11274 esac
11275 fi
11276 ;;
11277
11278 irix5* | irix6* | nonstopux*)
11279 if test "$GCC" = yes; then
11280 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'
11281 # Try to use the -exported_symbol ld option, if it does not
11282 # work, assume that -exports_file does not work either and
11283 # implicitly export all symbols.
11284 save_LDFLAGS="$LDFLAGS"
11285 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11287/* end confdefs.h. */
11288int foo(void) {}
87326c78 11289_ACEOF
6bb11ab3
L
11290if ac_fn_c_try_link "$LINENO"; then :
11291 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'
87326c78
DD
11292
11293fi
6bb11ab3
L
11294rm -f core conftest.err conftest.$ac_objext \
11295 conftest$ac_exeext conftest.$ac_ext
11296 LDFLAGS="$save_LDFLAGS"
11297 else
11298 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'
11299 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'
11300 fi
11301 archive_cmds_need_lc='no'
11302 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11303 hardcode_libdir_separator=:
11304 inherit_rpath=yes
11305 link_all_deplibs=yes
11306 ;;
11307
11308 netbsd*)
11309 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11310 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11311 else
11312 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11313 fi
11314 hardcode_libdir_flag_spec='-R$libdir'
11315 hardcode_direct=yes
11316 hardcode_shlibpath_var=no
11317 ;;
11318
11319 newsos6)
11320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11321 hardcode_direct=yes
11322 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11323 hardcode_libdir_separator=:
11324 hardcode_shlibpath_var=no
11325 ;;
11326
11327 *nto* | *qnx*)
11328 ;;
11329
11330 openbsd*)
11331 if test -f /usr/libexec/ld.so; then
11332 hardcode_direct=yes
11333 hardcode_shlibpath_var=no
11334 hardcode_direct_absolute=yes
11335 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11336 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11337 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11338 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11339 export_dynamic_flag_spec='${wl}-E'
11340 else
11341 case $host_os in
11342 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11343 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11344 hardcode_libdir_flag_spec='-R$libdir'
11345 ;;
11346 *)
11347 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11348 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11349 ;;
11350 esac
11351 fi
11352 else
11353 ld_shlibs=no
11354 fi
11355 ;;
11356
11357 os2*)
11358 hardcode_libdir_flag_spec='-L$libdir'
11359 hardcode_minus_L=yes
11360 allow_undefined_flag=unsupported
11361 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'
11362 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11363 ;;
11364
11365 osf3*)
11366 if test "$GCC" = yes; then
11367 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11368 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'
11369 else
11370 allow_undefined_flag=' -expect_unresolved \*'
11371 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'
11372 fi
11373 archive_cmds_need_lc='no'
11374 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11375 hardcode_libdir_separator=:
11376 ;;
11377
11378 osf4* | osf5*) # as osf3* with the addition of -msym flag
11379 if test "$GCC" = yes; then
11380 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11381 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'
11382 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11383 else
11384 allow_undefined_flag=' -expect_unresolved \*'
11385 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'
11386 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~
11387 $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'
11388
11389 # Both c and cxx compiler support -rpath directly
11390 hardcode_libdir_flag_spec='-rpath $libdir'
11391 fi
11392 archive_cmds_need_lc='no'
11393 hardcode_libdir_separator=:
11394 ;;
11395
11396 solaris*)
11397 no_undefined_flag=' -z defs'
11398 if test "$GCC" = yes; then
11399 wlarc='${wl}'
11400 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11401 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11402 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11403 else
11404 case `$CC -V 2>&1` in
11405 *"Compilers 5.0"*)
11406 wlarc=''
11407 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11408 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11409 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11410 ;;
11411 *)
11412 wlarc='${wl}'
11413 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11414 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11415 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11416 ;;
11417 esac
11418 fi
11419 hardcode_libdir_flag_spec='-R$libdir'
11420 hardcode_shlibpath_var=no
11421 case $host_os in
11422 solaris2.[0-5] | solaris2.[0-5].*) ;;
11423 *)
11424 # The compiler driver will combine and reorder linker options,
11425 # but understands `-z linker_flag'. GCC discards it without `$wl',
11426 # but is careful enough not to reorder.
11427 # Supported since Solaris 2.6 (maybe 2.5.1?)
11428 if test "$GCC" = yes; then
11429 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11430 else
11431 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11432 fi
11433 ;;
11434 esac
11435 link_all_deplibs=yes
11436 ;;
11437
11438 sunos4*)
11439 if test "x$host_vendor" = xsequent; then
11440 # Use $CC to link under sequent, because it throws in some extra .o
11441 # files that make .init and .fini sections work.
11442 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11443 else
11444 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11445 fi
11446 hardcode_libdir_flag_spec='-L$libdir'
11447 hardcode_direct=yes
11448 hardcode_minus_L=yes
11449 hardcode_shlibpath_var=no
11450 ;;
11451
11452 sysv4)
11453 case $host_vendor in
11454 sni)
11455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11456 hardcode_direct=yes # is this really true???
11457 ;;
11458 siemens)
11459 ## LD is ld it makes a PLAMLIB
11460 ## CC just makes a GrossModule.
11461 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11462 reload_cmds='$CC -r -o $output$reload_objs'
11463 hardcode_direct=no
11464 ;;
11465 motorola)
11466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11467 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11468 ;;
11469 esac
11470 runpath_var='LD_RUN_PATH'
11471 hardcode_shlibpath_var=no
11472 ;;
11473
11474 sysv4.3*)
11475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11476 hardcode_shlibpath_var=no
11477 export_dynamic_flag_spec='-Bexport'
11478 ;;
11479
11480 sysv4*MP*)
11481 if test -d /usr/nec; then
11482 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11483 hardcode_shlibpath_var=no
11484 runpath_var=LD_RUN_PATH
11485 hardcode_runpath_var=yes
11486 ld_shlibs=yes
11487 fi
11488 ;;
11489
11490 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11491 no_undefined_flag='${wl}-z,text'
11492 archive_cmds_need_lc=no
11493 hardcode_shlibpath_var=no
11494 runpath_var='LD_RUN_PATH'
11495
11496 if test "$GCC" = yes; then
11497 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11498 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11499 else
11500 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11501 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11502 fi
11503 ;;
11504
11505 sysv5* | sco3.2v5* | sco5v6*)
11506 # Note: We can NOT use -z defs as we might desire, because we do not
11507 # link with -lc, and that would cause any symbols used from libc to
11508 # always be unresolved, which means just about no library would
11509 # ever link correctly. If we're not using GNU ld we use -z text
11510 # though, which does catch some bad symbols but isn't as heavy-handed
11511 # as -z defs.
11512 no_undefined_flag='${wl}-z,text'
11513 allow_undefined_flag='${wl}-z,nodefs'
11514 archive_cmds_need_lc=no
11515 hardcode_shlibpath_var=no
11516 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11517 hardcode_libdir_separator=':'
11518 link_all_deplibs=yes
11519 export_dynamic_flag_spec='${wl}-Bexport'
11520 runpath_var='LD_RUN_PATH'
11521
11522 if test "$GCC" = yes; then
11523 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11524 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11525 else
11526 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11527 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11528 fi
11529 ;;
11530
11531 uts4*)
11532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11533 hardcode_libdir_flag_spec='-L$libdir'
11534 hardcode_shlibpath_var=no
11535 ;;
11536
11537 *)
11538 ld_shlibs=no
11539 ;;
11540 esac
11541
11542 if test x$host_vendor = xsni; then
11543 case $host in
11544 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11545 export_dynamic_flag_spec='${wl}-Blargedynsym'
11546 ;;
11547 esac
11548 fi
11549 fi
11550
11551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11552$as_echo "$ld_shlibs" >&6; }
11553test "$ld_shlibs" = no && can_build_shared=no
11554
11555with_gnu_ld=$with_gnu_ld
11556
11557
11558
87326c78 11559
87326c78 11560
87326c78 11561
87326c78 11562
87326c78
DD
11563
11564
87326c78 11565
87326c78 11566
87326c78
DD
11567
11568
6bb11ab3
L
11569
11570
11571#
11572# Do we need to explicitly link libc?
11573#
11574case "x$archive_cmds_need_lc" in
11575x|xyes)
11576 # Assume -lc should be added
11577 archive_cmds_need_lc=yes
11578
11579 if test "$enable_shared" = yes && test "$GCC" = yes; then
11580 case $archive_cmds in
11581 *'~'*)
11582 # FIXME: we may have to deal with multi-command sequences.
11583 ;;
11584 '$CC '*)
11585 # Test whether the compiler implicitly links with -lc since on some
11586 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11587 # to ld, don't add -lc before -lgcc.
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11589$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 11590if ${lt_cv_archive_cmds_need_lc+:} false; then :
87326c78
DD
11591 $as_echo_n "(cached) " >&6
11592else
6bb11ab3
L
11593 $RM conftest*
11594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11595
11596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11597 (eval $ac_compile) 2>&5
11598 ac_status=$?
11599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11600 test $ac_status = 0; } 2>conftest.err; then
11601 soname=conftest
11602 lib=conftest
11603 libobjs=conftest.$ac_objext
11604 deplibs=
11605 wl=$lt_prog_compiler_wl
11606 pic_flag=$lt_prog_compiler_pic
11607 compiler_flags=-v
11608 linker_flags=-v
11609 verstring=
11610 output_objdir=.
11611 libname=conftest
11612 lt_save_allow_undefined_flag=$allow_undefined_flag
11613 allow_undefined_flag=
11614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11615 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11616 ac_status=$?
11617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11618 test $ac_status = 0; }
11619 then
11620 lt_cv_archive_cmds_need_lc=no
11621 else
11622 lt_cv_archive_cmds_need_lc=yes
11623 fi
11624 allow_undefined_flag=$lt_save_allow_undefined_flag
11625 else
11626 cat conftest.err 1>&5
11627 fi
11628 $RM conftest*
87326c78
DD
11629
11630fi
6bb11ab3
L
11631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11632$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11633 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11634 ;;
11635 esac
11636 fi
11637 ;;
87326c78 11638esac
87326c78
DD
11639
11640
87326c78 11641
87326c78
DD
11642
11643
87326c78 11644
87326c78 11645
87326c78 11646
87326c78 11647
87326c78 11648
87326c78 11649
87326c78 11650
87326c78 11651
87326c78 11652
87326c78 11653
87326c78 11654
87326c78
DD
11655
11656
87326c78 11657
87326c78 11658
87326c78
DD
11659
11660
87326c78 11661
87326c78 11662
87326c78
DD
11663
11664
87326c78 11665
87326c78 11666
87326c78 11667
87326c78 11668
87326c78 11669
87326c78 11670
87326c78 11671
87326c78 11672
87326c78 11673
87326c78 11674
87326c78 11675
87326c78 11676
87326c78 11677
87326c78 11678
87326c78 11679
87326c78 11680
87326c78 11681
87326c78 11682
87326c78 11683
87326c78
DD
11684
11685
11686
2232061b
MF
11687
11688
2232061b 11689
2232061b
MF
11690
11691
2232061b
MF
11692
11693
2232061b 11694
2232061b
MF
11695
11696
6bb11ab3
L
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11797$as_echo_n "checking dynamic linker characteristics... " >&6; }
11798
11799if test "$GCC" = yes; then
11800 case $host_os in
11801 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11802 *) lt_awk_arg="/^libraries:/" ;;
11803 esac
11804 case $host_os in
11805 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11806 *) lt_sed_strip_eq="s,=/,/,g" ;;
11807 esac
11808 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11809 case $lt_search_path_spec in
11810 *\;*)
11811 # if the path contains ";" then we assume it to be the separator
11812 # otherwise default to the standard path separator (i.e. ":") - it is
11813 # assumed that no part of a normal pathname contains ";" but that should
11814 # okay in the real world where ";" in dirpaths is itself problematic.
11815 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11816 ;;
11817 *)
11818 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11819 ;;
11820 esac
11821 # Ok, now we have the path, separated by spaces, we can step through it
11822 # and add multilib dir if necessary.
11823 lt_tmp_lt_search_path_spec=
11824 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11825 for lt_sys_path in $lt_search_path_spec; do
11826 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11827 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11828 else
11829 test -d "$lt_sys_path" && \
11830 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11831 fi
11832 done
11833 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11834BEGIN {RS=" "; FS="/|\n";} {
11835 lt_foo="";
11836 lt_count=0;
11837 for (lt_i = NF; lt_i > 0; lt_i--) {
11838 if ($lt_i != "" && $lt_i != ".") {
11839 if ($lt_i == "..") {
11840 lt_count++;
11841 } else {
11842 if (lt_count == 0) {
11843 lt_foo="/" $lt_i lt_foo;
11844 } else {
11845 lt_count--;
11846 }
11847 }
11848 }
11849 }
11850 if (lt_foo != "") { lt_freq[lt_foo]++; }
11851 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11852}'`
11853 # AWK program above erroneously prepends '/' to C:/dos/paths
11854 # for these hosts.
11855 case $host_os in
11856 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11857 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11858 esac
11859 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11860else
11861 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11862fi
11863library_names_spec=
11864libname_spec='lib$name'
11865soname_spec=
11866shrext_cmds=".so"
11867postinstall_cmds=
11868postuninstall_cmds=
11869finish_cmds=
11870finish_eval=
11871shlibpath_var=
11872shlibpath_overrides_runpath=unknown
11873version_type=none
11874dynamic_linker="$host_os ld.so"
11875sys_lib_dlsearch_path_spec="/lib /usr/lib"
11876need_lib_prefix=unknown
11877hardcode_into_libs=no
11878
11879# when you set need_version to no, make sure it does not cause -set_version
11880# flags to be left without arguments
11881need_version=unknown
11882
11883case $host_os in
11884aix3*)
11885 version_type=linux
11886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11887 shlibpath_var=LIBPATH
11888
11889 # AIX 3 has no versioning support, so we append a major version to the name.
11890 soname_spec='${libname}${release}${shared_ext}$major'
11891 ;;
11892
11893aix[4-9]*)
11894 version_type=linux
11895 need_lib_prefix=no
11896 need_version=no
11897 hardcode_into_libs=yes
11898 if test "$host_cpu" = ia64; then
11899 # AIX 5 supports IA64
11900 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11901 shlibpath_var=LD_LIBRARY_PATH
11902 else
11903 # With GCC up to 2.95.x, collect2 would create an import file
11904 # for dependence libraries. The import file would start with
11905 # the line `#! .'. This would cause the generated library to
11906 # depend on `.', always an invalid library. This was fixed in
11907 # development snapshots of GCC prior to 3.0.
11908 case $host_os in
11909 aix4 | aix4.[01] | aix4.[01].*)
11910 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11911 echo ' yes '
11912 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11913 :
11914 else
11915 can_build_shared=no
11916 fi
11917 ;;
11918 esac
11919 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11920 # soname into executable. Probably we can add versioning support to
11921 # collect2, so additional links can be useful in future.
11922 if test "$aix_use_runtimelinking" = yes; then
11923 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11924 # instead of lib<name>.a to let people know that these are not
11925 # typical AIX shared libraries.
11926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11927 else
11928 # We preserve .a as extension for shared libraries through AIX4.2
11929 # and later when we are not doing run time linking.
11930 library_names_spec='${libname}${release}.a $libname.a'
11931 soname_spec='${libname}${release}${shared_ext}$major'
11932 fi
11933 shlibpath_var=LIBPATH
11934 fi
11935 ;;
11936
11937amigaos*)
11938 case $host_cpu in
11939 powerpc)
11940 # Since July 2007 AmigaOS4 officially supports .so libraries.
11941 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11943 ;;
11944 m68k)
11945 library_names_spec='$libname.ixlibrary $libname.a'
11946 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11947 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'
11948 ;;
11949 esac
11950 ;;
11951
11952beos*)
11953 library_names_spec='${libname}${shared_ext}'
11954 dynamic_linker="$host_os ld.so"
11955 shlibpath_var=LIBRARY_PATH
11956 ;;
11957
11958bsdi[45]*)
11959 version_type=linux
11960 need_version=no
11961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11962 soname_spec='${libname}${release}${shared_ext}$major'
11963 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11964 shlibpath_var=LD_LIBRARY_PATH
11965 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11966 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11967 # the default ld.so.conf also contains /usr/contrib/lib and
11968 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11969 # libtool to hard-code these into programs
11970 ;;
11971
11972cygwin* | mingw* | pw32* | cegcc*)
11973 version_type=windows
11974 shrext_cmds=".dll"
11975 need_version=no
11976 need_lib_prefix=no
11977
11978 case $GCC,$host_os in
11979 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11980 library_names_spec='$libname.dll.a'
11981 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11982 postinstall_cmds='base_file=`basename \${file}`~
11983 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11984 dldir=$destdir/`dirname \$dlpath`~
11985 test -d \$dldir || mkdir -p \$dldir~
11986 $install_prog $dir/$dlname \$dldir/$dlname~
11987 chmod a+x \$dldir/$dlname~
11988 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11989 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11990 fi'
11991 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11992 dlpath=$dir/\$dldll~
11993 $RM \$dlpath'
11994 shlibpath_overrides_runpath=yes
11995
11996 case $host_os in
11997 cygwin*)
11998 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11999 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12000
12001 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12002 ;;
12003 mingw* | cegcc*)
12004 # MinGW DLLs use traditional 'lib' prefix
12005 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12006 ;;
12007 pw32*)
12008 # pw32 DLLs use 'pw' prefix rather than 'lib'
12009 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12010 ;;
12011 esac
12012 ;;
12013
12014 *)
12015 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12016 ;;
12017 esac
12018 dynamic_linker='Win32 ld.exe'
12019 # FIXME: first we should search . and the directory the executable is in
12020 shlibpath_var=PATH
12021 ;;
12022
12023darwin* | rhapsody*)
12024 dynamic_linker="$host_os dyld"
12025 version_type=darwin
12026 need_lib_prefix=no
12027 need_version=no
12028 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12029 soname_spec='${libname}${release}${major}$shared_ext'
12030 shlibpath_overrides_runpath=yes
12031 shlibpath_var=DYLD_LIBRARY_PATH
12032 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12033
12034 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12035 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12036 ;;
12037
12038dgux*)
12039 version_type=linux
12040 need_lib_prefix=no
12041 need_version=no
12042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12043 soname_spec='${libname}${release}${shared_ext}$major'
12044 shlibpath_var=LD_LIBRARY_PATH
12045 ;;
12046
12047freebsd* | dragonfly*)
12048 # DragonFly does not have aout. When/if they implement a new
12049 # versioning mechanism, adjust this.
12050 if test -x /usr/bin/objformat; then
12051 objformat=`/usr/bin/objformat`
12052 else
12053 case $host_os in
12054 freebsd[23].*) objformat=aout ;;
12055 *) objformat=elf ;;
12056 esac
12057 fi
12058 version_type=freebsd-$objformat
12059 case $version_type in
12060 freebsd-elf*)
12061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12062 need_version=no
12063 need_lib_prefix=no
12064 ;;
12065 freebsd-*)
12066 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12067 need_version=yes
12068 ;;
12069 esac
12070 shlibpath_var=LD_LIBRARY_PATH
12071 case $host_os in
12072 freebsd2.*)
12073 shlibpath_overrides_runpath=yes
12074 ;;
12075 freebsd3.[01]* | freebsdelf3.[01]*)
12076 shlibpath_overrides_runpath=yes
12077 hardcode_into_libs=yes
12078 ;;
12079 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12080 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12081 shlibpath_overrides_runpath=no
12082 hardcode_into_libs=yes
12083 ;;
12084 *) # from 4.6 on, and DragonFly
12085 shlibpath_overrides_runpath=yes
12086 hardcode_into_libs=yes
12087 ;;
12088 esac
12089 ;;
12090
6bb11ab3
L
12091haiku*)
12092 version_type=linux
12093 need_lib_prefix=no
12094 need_version=no
12095 dynamic_linker="$host_os runtime_loader"
12096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12097 soname_spec='${libname}${release}${shared_ext}$major'
12098 shlibpath_var=LIBRARY_PATH
12099 shlibpath_overrides_runpath=yes
12100 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12101 hardcode_into_libs=yes
12102 ;;
12103
12104hpux9* | hpux10* | hpux11*)
12105 # Give a soname corresponding to the major version so that dld.sl refuses to
12106 # link against other versions.
12107 version_type=sunos
12108 need_lib_prefix=no
12109 need_version=no
12110 case $host_cpu in
12111 ia64*)
12112 shrext_cmds='.so'
12113 hardcode_into_libs=yes
12114 dynamic_linker="$host_os dld.so"
12115 shlibpath_var=LD_LIBRARY_PATH
12116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12118 soname_spec='${libname}${release}${shared_ext}$major'
12119 if test "X$HPUX_IA64_MODE" = X32; then
12120 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12121 else
12122 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12123 fi
12124 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12125 ;;
12126 hppa*64*)
12127 shrext_cmds='.sl'
12128 hardcode_into_libs=yes
12129 dynamic_linker="$host_os dld.sl"
12130 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12133 soname_spec='${libname}${release}${shared_ext}$major'
12134 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12136 ;;
12137 *)
12138 shrext_cmds='.sl'
12139 dynamic_linker="$host_os dld.sl"
12140 shlibpath_var=SHLIB_PATH
12141 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12143 soname_spec='${libname}${release}${shared_ext}$major'
12144 ;;
12145 esac
12146 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12147 postinstall_cmds='chmod 555 $lib'
12148 # or fails outright, so override atomically:
12149 install_override_mode=555
12150 ;;
12151
12152interix[3-9]*)
12153 version_type=linux
12154 need_lib_prefix=no
12155 need_version=no
12156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12157 soname_spec='${libname}${release}${shared_ext}$major'
12158 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12159 shlibpath_var=LD_LIBRARY_PATH
12160 shlibpath_overrides_runpath=no
12161 hardcode_into_libs=yes
12162 ;;
12163
12164irix5* | irix6* | nonstopux*)
12165 case $host_os in
12166 nonstopux*) version_type=nonstopux ;;
12167 *)
12168 if test "$lt_cv_prog_gnu_ld" = yes; then
12169 version_type=linux
12170 else
12171 version_type=irix
12172 fi ;;
12173 esac
12174 need_lib_prefix=no
12175 need_version=no
12176 soname_spec='${libname}${release}${shared_ext}$major'
12177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12178 case $host_os in
12179 irix5* | nonstopux*)
12180 libsuff= shlibsuff=
12181 ;;
12182 *)
12183 case $LD in # libtool.m4 will add one of these switches to LD
12184 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12185 libsuff= shlibsuff= libmagic=32-bit;;
12186 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12187 libsuff=32 shlibsuff=N32 libmagic=N32;;
12188 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12189 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12190 *) libsuff= shlibsuff= libmagic=never-match;;
12191 esac
12192 ;;
12193 esac
12194 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12195 shlibpath_overrides_runpath=no
12196 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12197 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12198 hardcode_into_libs=yes
12199 ;;
12200
12201# No shared lib support for Linux oldld, aout, or coff.
12202linux*oldld* | linux*aout* | linux*coff*)
12203 dynamic_linker=no
12204 ;;
12205
12206# This must be Linux ELF.
46f900c0 12207linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6bb11ab3
L
12208 version_type=linux
12209 need_lib_prefix=no
12210 need_version=no
12211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12212 soname_spec='${libname}${release}${shared_ext}$major'
12213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12214 shlibpath_var=LD_LIBRARY_PATH
12215 shlibpath_overrides_runpath=no
12216
12217 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 12218 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
2232061b
MF
12219 $as_echo_n "(cached) " >&6
12220else
6bb11ab3
L
12221 lt_cv_shlibpath_overrides_runpath=no
12222 save_LDFLAGS=$LDFLAGS
12223 save_libdir=$libdir
12224 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12225 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232061b
MF
12227/* end confdefs.h. */
12228
2232061b
MF
12229int
12230main ()
12231{
12232
12233 ;
12234 return 0;
12235}
12236_ACEOF
6bb11ab3
L
12237if ac_fn_c_try_link "$LINENO"; then :
12238 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12239 lt_cv_shlibpath_overrides_runpath=yes
2232061b 12240fi
2232061b 12241fi
6bb11ab3
L
12242rm -f core conftest.err conftest.$ac_objext \
12243 conftest$ac_exeext conftest.$ac_ext
12244 LDFLAGS=$save_LDFLAGS
12245 libdir=$save_libdir
2232061b 12246
6bb11ab3 12247fi
2232061b 12248
6bb11ab3 12249 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2232061b 12250
6bb11ab3
L
12251 # This implies no fast_install, which is unacceptable.
12252 # Some rework will be needed to allow for fast_install
12253 # before this can be enabled.
12254 hardcode_into_libs=yes
2232061b 12255
6bb11ab3
L
12256 # Append ld.so.conf contents to the search path
12257 if test -f /etc/ld.so.conf; then
12258 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' ' '`
12259 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12260 fi
2232061b 12261
6bb11ab3
L
12262 # We used to test for /lib/ld.so.1 and disable shared libraries on
12263 # powerpc, because MkLinux only supported shared libraries with the
12264 # GNU dynamic linker. Since this was broken with cross compilers,
12265 # most powerpc-linux boxes support dynamic linking these days and
12266 # people can always --disable-shared, the test was removed, and we
12267 # assume the GNU/Linux dynamic linker is in use.
12268 dynamic_linker='GNU/Linux ld.so'
12269 ;;
12270
12271netbsd*)
12272 version_type=sunos
12273 need_lib_prefix=no
12274 need_version=no
12275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12278 dynamic_linker='NetBSD (a.out) ld.so'
2232061b 12279 else
6bb11ab3
L
12280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12281 soname_spec='${libname}${release}${shared_ext}$major'
12282 dynamic_linker='NetBSD ld.elf_so'
12283 fi
12284 shlibpath_var=LD_LIBRARY_PATH
12285 shlibpath_overrides_runpath=yes
12286 hardcode_into_libs=yes
12287 ;;
12288
12289newsos6)
12290 version_type=linux
12291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12292 shlibpath_var=LD_LIBRARY_PATH
12293 shlibpath_overrides_runpath=yes
12294 ;;
12295
12296*nto* | *qnx*)
12297 version_type=qnx
12298 need_lib_prefix=no
12299 need_version=no
12300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12301 soname_spec='${libname}${release}${shared_ext}$major'
12302 shlibpath_var=LD_LIBRARY_PATH
12303 shlibpath_overrides_runpath=no
12304 hardcode_into_libs=yes
12305 dynamic_linker='ldqnx.so'
12306 ;;
12307
12308openbsd*)
12309 version_type=sunos
12310 sys_lib_dlsearch_path_spec="/usr/lib"
12311 need_lib_prefix=no
12312 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12313 case $host_os in
12314 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12315 *) need_version=no ;;
12316 esac
12317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12319 shlibpath_var=LD_LIBRARY_PATH
12320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12321 case $host_os in
12322 openbsd2.[89] | openbsd2.[89].*)
12323 shlibpath_overrides_runpath=no
12324 ;;
12325 *)
12326 shlibpath_overrides_runpath=yes
12327 ;;
12328 esac
12329 else
12330 shlibpath_overrides_runpath=yes
12331 fi
12332 ;;
12333
12334os2*)
12335 libname_spec='$name'
12336 shrext_cmds=".dll"
12337 need_lib_prefix=no
12338 library_names_spec='$libname${shared_ext} $libname.a'
12339 dynamic_linker='OS/2 ld.exe'
12340 shlibpath_var=LIBPATH
12341 ;;
12342
12343osf3* | osf4* | osf5*)
12344 version_type=osf
12345 need_lib_prefix=no
12346 need_version=no
12347 soname_spec='${libname}${release}${shared_ext}$major'
12348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12349 shlibpath_var=LD_LIBRARY_PATH
12350 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12351 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12352 ;;
12353
12354rdos*)
12355 dynamic_linker=no
12356 ;;
12357
12358solaris*)
12359 version_type=linux
12360 need_lib_prefix=no
12361 need_version=no
12362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12363 soname_spec='${libname}${release}${shared_ext}$major'
12364 shlibpath_var=LD_LIBRARY_PATH
12365 shlibpath_overrides_runpath=yes
12366 hardcode_into_libs=yes
12367 # ldd complains unless libraries are executable
12368 postinstall_cmds='chmod +x $lib'
12369 ;;
12370
12371sunos4*)
12372 version_type=sunos
12373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12374 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12375 shlibpath_var=LD_LIBRARY_PATH
12376 shlibpath_overrides_runpath=yes
12377 if test "$with_gnu_ld" = yes; then
12378 need_lib_prefix=no
12379 fi
12380 need_version=yes
12381 ;;
12382
12383sysv4 | sysv4.3*)
12384 version_type=linux
12385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12386 soname_spec='${libname}${release}${shared_ext}$major'
12387 shlibpath_var=LD_LIBRARY_PATH
12388 case $host_vendor in
12389 sni)
12390 shlibpath_overrides_runpath=no
12391 need_lib_prefix=no
12392 runpath_var=LD_RUN_PATH
12393 ;;
12394 siemens)
12395 need_lib_prefix=no
12396 ;;
12397 motorola)
12398 need_lib_prefix=no
12399 need_version=no
12400 shlibpath_overrides_runpath=no
12401 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12402 ;;
12403 esac
12404 ;;
12405
12406sysv4*MP*)
12407 if test -d /usr/nec ;then
12408 version_type=linux
12409 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12410 soname_spec='$libname${shared_ext}.$major'
12411 shlibpath_var=LD_LIBRARY_PATH
2232061b 12412 fi
6bb11ab3
L
12413 ;;
12414
12415sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12416 version_type=freebsd-elf
12417 need_lib_prefix=no
12418 need_version=no
12419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12420 soname_spec='${libname}${release}${shared_ext}$major'
12421 shlibpath_var=LD_LIBRARY_PATH
12422 shlibpath_overrides_runpath=yes
12423 hardcode_into_libs=yes
12424 if test "$with_gnu_ld" = yes; then
12425 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12426 else
12427 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12428 case $host_os in
12429 sco3.2v5*)
12430 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12431 ;;
12432 esac
12433 fi
12434 sys_lib_dlsearch_path_spec='/usr/lib'
12435 ;;
12436
12437tpf*)
12438 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12439 version_type=linux
12440 need_lib_prefix=no
12441 need_version=no
12442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12443 shlibpath_var=LD_LIBRARY_PATH
12444 shlibpath_overrides_runpath=no
12445 hardcode_into_libs=yes
12446 ;;
12447
12448uts4*)
12449 version_type=linux
12450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12451 soname_spec='${libname}${release}${shared_ext}$major'
12452 shlibpath_var=LD_LIBRARY_PATH
12453 ;;
12454
12455*)
12456 dynamic_linker=no
12457 ;;
12458esac
12459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12460$as_echo "$dynamic_linker" >&6; }
12461test "$dynamic_linker" = no && can_build_shared=no
12462
12463variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12464if test "$GCC" = yes; then
12465 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2232061b 12466fi
2232061b 12467
6bb11ab3
L
12468if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12469 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12470fi
12471if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12472 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12473fi
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
2232061b 12500
2232061b 12501
2232061b 12502
2232061b 12503
2232061b
MF
12504
12505
87326c78 12506
87326c78
DD
12507
12508
12509
12510
12511
2232061b 12512
87326c78
DD
12513
12514
12515
12516
87326c78 12517
87326c78 12518
87326c78
DD
12519
12520
87326c78 12521
87326c78 12522
87326c78
DD
12523
12524
5f3ef9d0 12525
5f3ef9d0
JB
12526
12527
12528
db2e4d67
MF
12529
12530
db2e4d67 12531
db2e4d67 12532
db2e4d67 12533
db2e4d67 12534
db2e4d67 12535
db2e4d67 12536
db2e4d67 12537
db2e4d67
MF
12538
12539
db2e4d67 12540
db2e4d67
MF
12541
12542
db2e4d67 12543
db2e4d67
MF
12544
12545
87326c78 12546
87326c78 12547
87326c78
DD
12548
12549
87326c78
DD
12550
12551
87326c78 12552
87326c78 12553
87326c78 12554
87326c78 12555
87326c78 12556
87326c78 12557
87326c78 12558
87326c78 12559
87326c78 12560
87326c78 12561
87326c78 12562
87326c78 12563
87326c78 12564
87326c78 12565
6bb11ab3
L
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12567$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12568hardcode_action=
12569if test -n "$hardcode_libdir_flag_spec" ||
12570 test -n "$runpath_var" ||
12571 test "X$hardcode_automatic" = "Xyes" ; then
87326c78 12572
6bb11ab3
L
12573 # We can hardcode non-existent directories.
12574 if test "$hardcode_direct" != no &&
12575 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12576 # have to relink, otherwise we might link with an installed library
12577 # when we should be linking with a yet-to-be-installed one
12578 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12579 test "$hardcode_minus_L" != no; then
12580 # Linking always hardcodes the temporary library directory.
12581 hardcode_action=relink
12582 else
12583 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12584 hardcode_action=immediate
12585 fi
12586else
12587 # We cannot hardcode anything, or else we can only hardcode existing
12588 # directories.
12589 hardcode_action=unsupported
87326c78 12590fi
6bb11ab3
L
12591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12592$as_echo "$hardcode_action" >&6; }
87326c78 12593
6bb11ab3
L
12594if test "$hardcode_action" = relink ||
12595 test "$inherit_rpath" = yes; then
12596 # Fast installation is not supported
12597 enable_fast_install=no
12598elif test "$shlibpath_overrides_runpath" = yes ||
12599 test "$enable_shared" = no; then
12600 # Fast installation is not necessary
12601 enable_fast_install=needless
12602fi
87326c78 12603
6bb11ab3
L
12604
12605
12606
12607
12608
12609 if test "x$enable_dlopen" != xyes; then
12610 enable_dlopen=unknown
12611 enable_dlopen_self=unknown
12612 enable_dlopen_self_static=unknown
12613else
12614 lt_cv_dlopen=no
12615 lt_cv_dlopen_libs=
12616
12617 case $host_os in
12618 beos*)
12619 lt_cv_dlopen="load_add_on"
12620 lt_cv_dlopen_libs=
12621 lt_cv_dlopen_self=yes
12622 ;;
12623
12624 mingw* | pw32* | cegcc*)
12625 lt_cv_dlopen="LoadLibrary"
12626 lt_cv_dlopen_libs=
12627 ;;
12628
12629 cygwin*)
12630 lt_cv_dlopen="dlopen"
12631 lt_cv_dlopen_libs=
12632 ;;
12633
12634 darwin*)
12635 # if libdl is installed we need to link against it
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12637$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 12638if ${ac_cv_lib_dl_dlopen+:} false; then :
6bb11ab3
L
12639 $as_echo_n "(cached) " >&6
12640else
12641 ac_check_lib_save_LIBS=$LIBS
12642LIBS="-ldl $LIBS"
12643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644/* end confdefs.h. */
12645
12646/* Override any GCC internal prototype to avoid an error.
12647 Use char because int might match the return type of a GCC
12648 builtin and then its argument prototype would still apply. */
12649#ifdef __cplusplus
12650extern "C"
12651#endif
12652char dlopen ();
12653int
12654main ()
12655{
12656return dlopen ();
12657 ;
12658 return 0;
12659}
87326c78 12660_ACEOF
6bb11ab3
L
12661if ac_fn_c_try_link "$LINENO"; then :
12662 ac_cv_lib_dl_dlopen=yes
12663else
12664 ac_cv_lib_dl_dlopen=no
12665fi
12666rm -f core conftest.err conftest.$ac_objext \
12667 conftest$ac_exeext conftest.$ac_ext
12668LIBS=$ac_check_lib_save_LIBS
12669fi
12670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12671$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 12672if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
12673 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12674else
12675
12676 lt_cv_dlopen="dyld"
12677 lt_cv_dlopen_libs=
12678 lt_cv_dlopen_self=yes
87326c78
DD
12679
12680fi
87326c78 12681
6bb11ab3 12682 ;;
87326c78 12683
6bb11ab3
L
12684 *)
12685 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 12686if test "x$ac_cv_func_shl_load" = xyes; then :
6bb11ab3
L
12687 lt_cv_dlopen="shl_load"
12688else
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12690$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 12691if ${ac_cv_lib_dld_shl_load+:} false; then :
6bb11ab3
L
12692 $as_echo_n "(cached) " >&6
12693else
12694 ac_check_lib_save_LIBS=$LIBS
12695LIBS="-ldld $LIBS"
12696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697/* end confdefs.h. */
12698
12699/* Override any GCC internal prototype to avoid an error.
12700 Use char because int might match the return type of a GCC
12701 builtin and then its argument prototype would still apply. */
12702#ifdef __cplusplus
12703extern "C"
12704#endif
12705char shl_load ();
12706int
12707main ()
12708{
12709return shl_load ();
12710 ;
12711 return 0;
12712}
12713_ACEOF
12714if ac_fn_c_try_link "$LINENO"; then :
12715 ac_cv_lib_dld_shl_load=yes
12716else
12717 ac_cv_lib_dld_shl_load=no
12718fi
12719rm -f core conftest.err conftest.$ac_objext \
12720 conftest$ac_exeext conftest.$ac_ext
12721LIBS=$ac_check_lib_save_LIBS
12722fi
12723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12724$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 12725if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6bb11ab3
L
12726 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12727else
12728 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 12729if test "x$ac_cv_func_dlopen" = xyes; then :
6bb11ab3
L
12730 lt_cv_dlopen="dlopen"
12731else
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12733$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 12734if ${ac_cv_lib_dl_dlopen+:} false; then :
87326c78
DD
12735 $as_echo_n "(cached) " >&6
12736else
12737 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 12738LIBS="-ldl $LIBS"
87326c78
DD
12739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740/* end confdefs.h. */
12741
12742/* Override any GCC internal prototype to avoid an error.
12743 Use char because int might match the return type of a GCC
12744 builtin and then its argument prototype would still apply. */
12745#ifdef __cplusplus
12746extern "C"
12747#endif
6bb11ab3 12748char dlopen ();
87326c78
DD
12749int
12750main ()
12751{
6bb11ab3 12752return dlopen ();
87326c78
DD
12753 ;
12754 return 0;
12755}
12756_ACEOF
12757if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 12758 ac_cv_lib_dl_dlopen=yes
87326c78 12759else
6bb11ab3 12760 ac_cv_lib_dl_dlopen=no
87326c78
DD
12761fi
12762rm -f core conftest.err conftest.$ac_objext \
12763 conftest$ac_exeext conftest.$ac_ext
12764LIBS=$ac_check_lib_save_LIBS
12765fi
6bb11ab3
L
12766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12767$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 12768if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
12769 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12770else
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12772$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 12773if ${ac_cv_lib_svld_dlopen+:} false; then :
87326c78
DD
12774 $as_echo_n "(cached) " >&6
12775else
12776 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 12777LIBS="-lsvld $LIBS"
87326c78
DD
12778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779/* end confdefs.h. */
12780
12781/* Override any GCC internal prototype to avoid an error.
12782 Use char because int might match the return type of a GCC
12783 builtin and then its argument prototype would still apply. */
12784#ifdef __cplusplus
12785extern "C"
12786#endif
6bb11ab3 12787char dlopen ();
87326c78
DD
12788int
12789main ()
12790{
6bb11ab3 12791return dlopen ();
87326c78
DD
12792 ;
12793 return 0;
12794}
12795_ACEOF
12796if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 12797 ac_cv_lib_svld_dlopen=yes
87326c78 12798else
6bb11ab3 12799 ac_cv_lib_svld_dlopen=no
87326c78
DD
12800fi
12801rm -f core conftest.err conftest.$ac_objext \
12802 conftest$ac_exeext conftest.$ac_ext
12803LIBS=$ac_check_lib_save_LIBS
12804fi
6bb11ab3
L
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12806$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 12807if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6bb11ab3 12808 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
87326c78 12809else
6bb11ab3
L
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12811$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 12812if ${ac_cv_lib_dld_dld_link+:} false; then :
87326c78
DD
12813 $as_echo_n "(cached) " >&6
12814else
6bb11ab3
L
12815 ac_check_lib_save_LIBS=$LIBS
12816LIBS="-ldld $LIBS"
87326c78
DD
12817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818/* end confdefs.h. */
12819
12820/* Override any GCC internal prototype to avoid an error.
12821 Use char because int might match the return type of a GCC
12822 builtin and then its argument prototype would still apply. */
12823#ifdef __cplusplus
12824extern "C"
12825#endif
6bb11ab3 12826char dld_link ();
87326c78
DD
12827int
12828main ()
12829{
6bb11ab3 12830return dld_link ();
87326c78
DD
12831 ;
12832 return 0;
12833}
12834_ACEOF
6bb11ab3
L
12835if ac_fn_c_try_link "$LINENO"; then :
12836 ac_cv_lib_dld_dld_link=yes
12837else
12838 ac_cv_lib_dld_dld_link=no
12839fi
12840rm -f core conftest.err conftest.$ac_objext \
12841 conftest$ac_exeext conftest.$ac_ext
12842LIBS=$ac_check_lib_save_LIBS
12843fi
12844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12845$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 12846if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6bb11ab3
L
12847 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12848fi
12849
12850
12851fi
12852
12853
12854fi
12855
12856
12857fi
12858
12859
12860fi
12861
12862
12863fi
12864
12865 ;;
12866 esac
12867
12868 if test "x$lt_cv_dlopen" != xno; then
12869 enable_dlopen=yes
87326c78 12870 else
6bb11ab3
L
12871 enable_dlopen=no
12872 fi
12873
12874 case $lt_cv_dlopen in
12875 dlopen)
12876 save_CPPFLAGS="$CPPFLAGS"
12877 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12878
12879 save_LDFLAGS="$LDFLAGS"
12880 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12881
12882 save_LIBS="$LIBS"
12883 LIBS="$lt_cv_dlopen_libs $LIBS"
12884
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12886$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 12887if ${lt_cv_dlopen_self+:} false; then :
6bb11ab3
L
12888 $as_echo_n "(cached) " >&6
12889else
12890 if test "$cross_compiling" = yes; then :
12891 lt_cv_dlopen_self=cross
12892else
12893 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12894 lt_status=$lt_dlunknown
12895 cat > conftest.$ac_ext <<_LT_EOF
50df264d 12896#line 12896 "configure"
6bb11ab3
L
12897#include "confdefs.h"
12898
12899#if HAVE_DLFCN_H
12900#include <dlfcn.h>
12901#endif
12902
12903#include <stdio.h>
12904
12905#ifdef RTLD_GLOBAL
12906# define LT_DLGLOBAL RTLD_GLOBAL
12907#else
12908# ifdef DL_GLOBAL
12909# define LT_DLGLOBAL DL_GLOBAL
12910# else
12911# define LT_DLGLOBAL 0
12912# endif
12913#endif
12914
12915/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12916 find out it does not work in some platform. */
12917#ifndef LT_DLLAZY_OR_NOW
12918# ifdef RTLD_LAZY
12919# define LT_DLLAZY_OR_NOW RTLD_LAZY
12920# else
12921# ifdef DL_LAZY
12922# define LT_DLLAZY_OR_NOW DL_LAZY
12923# else
12924# ifdef RTLD_NOW
12925# define LT_DLLAZY_OR_NOW RTLD_NOW
12926# else
12927# ifdef DL_NOW
12928# define LT_DLLAZY_OR_NOW DL_NOW
12929# else
12930# define LT_DLLAZY_OR_NOW 0
12931# endif
12932# endif
12933# endif
12934# endif
12935#endif
12936
12937/* When -fvisbility=hidden is used, assume the code has been annotated
12938 correspondingly for the symbols needed. */
12939#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12940void fnord () __attribute__((visibility("default")));
12941#endif
12942
12943void fnord () { int i=42; }
12944int main ()
12945{
12946 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12947 int status = $lt_dlunknown;
12948
12949 if (self)
12950 {
12951 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12952 else
12953 {
12954 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12955 else puts (dlerror ());
12956 }
12957 /* dlclose (self); */
12958 }
12959 else
12960 puts (dlerror ());
12961
12962 return status;
12963}
12964_LT_EOF
12965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12966 (eval $ac_link) 2>&5
12967 ac_status=$?
12968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12969 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12970 (./conftest; exit; ) >&5 2>/dev/null
12971 lt_status=$?
12972 case x$lt_status in
12973 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12974 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12975 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12976 esac
12977 else :
12978 # compilation failed
12979 lt_cv_dlopen_self=no
87326c78 12980 fi
87326c78 12981fi
6bb11ab3
L
12982rm -fr conftest*
12983
12984
87326c78 12985fi
6bb11ab3
L
12986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12987$as_echo "$lt_cv_dlopen_self" >&6; }
87326c78 12988
6bb11ab3
L
12989 if test "x$lt_cv_dlopen_self" = xyes; then
12990 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12992$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 12993if ${lt_cv_dlopen_self_static+:} false; then :
6bb11ab3 12994 $as_echo_n "(cached) " >&6
87326c78 12995else
6bb11ab3
L
12996 if test "$cross_compiling" = yes; then :
12997 lt_cv_dlopen_self_static=cross
12998else
12999 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13000 lt_status=$lt_dlunknown
13001 cat > conftest.$ac_ext <<_LT_EOF
50df264d 13002#line 13002 "configure"
6bb11ab3
L
13003#include "confdefs.h"
13004
13005#if HAVE_DLFCN_H
13006#include <dlfcn.h>
13007#endif
13008
13009#include <stdio.h>
13010
13011#ifdef RTLD_GLOBAL
13012# define LT_DLGLOBAL RTLD_GLOBAL
13013#else
13014# ifdef DL_GLOBAL
13015# define LT_DLGLOBAL DL_GLOBAL
13016# else
13017# define LT_DLGLOBAL 0
13018# endif
13019#endif
13020
13021/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13022 find out it does not work in some platform. */
13023#ifndef LT_DLLAZY_OR_NOW
13024# ifdef RTLD_LAZY
13025# define LT_DLLAZY_OR_NOW RTLD_LAZY
13026# else
13027# ifdef DL_LAZY
13028# define LT_DLLAZY_OR_NOW DL_LAZY
13029# else
13030# ifdef RTLD_NOW
13031# define LT_DLLAZY_OR_NOW RTLD_NOW
13032# else
13033# ifdef DL_NOW
13034# define LT_DLLAZY_OR_NOW DL_NOW
13035# else
13036# define LT_DLLAZY_OR_NOW 0
13037# endif
13038# endif
13039# endif
13040# endif
13041#endif
13042
13043/* When -fvisbility=hidden is used, assume the code has been annotated
13044 correspondingly for the symbols needed. */
13045#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13046void fnord () __attribute__((visibility("default")));
13047#endif
13048
13049void fnord () { int i=42; }
13050int main ()
13051{
13052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13053 int status = $lt_dlunknown;
13054
13055 if (self)
13056 {
13057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13058 else
13059 {
13060 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13061 else puts (dlerror ());
13062 }
13063 /* dlclose (self); */
13064 }
13065 else
13066 puts (dlerror ());
13067
13068 return status;
13069}
13070_LT_EOF
13071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13072 (eval $ac_link) 2>&5
13073 ac_status=$?
13074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13075 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13076 (./conftest; exit; ) >&5 2>/dev/null
13077 lt_status=$?
13078 case x$lt_status in
13079 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13080 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13081 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13082 esac
13083 else :
13084 # compilation failed
13085 lt_cv_dlopen_self_static=no
13086 fi
87326c78 13087fi
6bb11ab3
L
13088rm -fr conftest*
13089
13090
87326c78 13091fi
6bb11ab3
L
13092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13093$as_echo "$lt_cv_dlopen_self_static" >&6; }
13094 fi
13095
13096 CPPFLAGS="$save_CPPFLAGS"
13097 LDFLAGS="$save_LDFLAGS"
13098 LIBS="$save_LIBS"
13099 ;;
13100 esac
13101
13102 case $lt_cv_dlopen_self in
13103 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13104 *) enable_dlopen_self=unknown ;;
13105 esac
13106
13107 case $lt_cv_dlopen_self_static in
13108 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13109 *) enable_dlopen_self_static=unknown ;;
13110 esac
13111fi
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129striplib=
13130old_striplib=
13131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13132$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13133if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13134 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13135 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13137$as_echo "yes" >&6; }
13138else
13139# FIXME - insert some real tests, host_os isn't really good enough
13140 case $host_os in
13141 darwin*)
13142 if test -n "$STRIP" ; then
13143 striplib="$STRIP -x"
13144 old_striplib="$STRIP -S"
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13146$as_echo "yes" >&6; }
13147 else
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149$as_echo "no" >&6; }
13150 fi
13151 ;;
13152 *)
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154$as_echo "no" >&6; }
13155 ;;
13156 esac
13157fi
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170 # Report which library types will actually be built
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13172$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13174$as_echo "$can_build_shared" >&6; }
13175
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13177$as_echo_n "checking whether to build shared libraries... " >&6; }
13178 test "$can_build_shared" = "no" && enable_shared=no
13179
13180 # On AIX, shared libraries and static libraries use the same namespace, and
13181 # are all built from PIC.
13182 case $host_os in
13183 aix3*)
13184 test "$enable_shared" = yes && enable_static=no
13185 if test -n "$RANLIB"; then
13186 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13187 postinstall_cmds='$RANLIB $lib'
13188 fi
13189 ;;
13190
13191 aix[4-9]*)
13192 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13193 test "$enable_shared" = yes && enable_static=no
13194 fi
13195 ;;
13196 esac
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13198$as_echo "$enable_shared" >&6; }
13199
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13201$as_echo_n "checking whether to build static libraries... " >&6; }
13202 # Make sure either enable_shared or enable_static is yes.
13203 test "$enable_shared" = yes || enable_static=yes
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13205$as_echo "$enable_static" >&6; }
13206
13207
13208
13209
13210fi
13211ac_ext=c
13212ac_cpp='$CPP $CPPFLAGS'
13213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13215ac_compiler_gnu=$ac_cv_c_compiler_gnu
13216
13217CC="$lt_save_CC"
13218
13219
13220
13221
13222
13223
13224
13225
13226
87326c78 13227
87326c78 13228
87326c78 13229
87326c78 13230
6bb11ab3
L
13231 ac_config_commands="$ac_config_commands libtool"
13232
13233
13234
13235
13236# Only expand once:
13237
13238
87326c78
DD
13239
13240
13241. ${srcdir}/../../bfd/configure.host
13242
13243
13244
31e6ad7d
MF
13245
13246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13247$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13248 # Check whether --enable-maintainer-mode was given.
87326c78 13249if test "${enable_maintainer_mode+set}" = set; then :
31e6ad7d
MF
13250 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13251else
13252 USE_MAINTAINER_MODE=no
87326c78 13253fi
31e6ad7d
MF
13254
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13256$as_echo "$USE_MAINTAINER_MODE" >&6; }
13257 if test $USE_MAINTAINER_MODE = yes; then
13258 MAINTAINER_MODE_TRUE=
13259 MAINTAINER_MODE_FALSE='#'
87326c78 13260else
31e6ad7d
MF
13261 MAINTAINER_MODE_TRUE='#'
13262 MAINTAINER_MODE_FALSE=
87326c78
DD
13263fi
13264
31e6ad7d
MF
13265 MAINT=$MAINTAINER_MODE_TRUE
13266
13267
87326c78
DD
13268
13269
ce39bd38
MF
13270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
13271$as_echo_n "checking for sim debug setting... " >&6; }
13272sim_debug="0"
87326c78
DD
13273# Check whether --enable-sim-debug was given.
13274if test "${enable_sim_debug+set}" = set; then :
13275 enableval=$enable_sim_debug; case "${enableval}" in
ce39bd38
MF
13276 yes) sim_debug="7";;
13277 no) sim_debug="0";;
13278 *) sim_debug="($enableval)";;
87326c78 13279esac
87326c78 13280fi
ce39bd38
MF
13281if test "$sim_debug" != "0"; then
13282
13283cat >>confdefs.h <<_ACEOF
13284#define DEBUG $sim_debug
13285_ACEOF
13286
87326c78
DD
13287fi
13288
ce39bd38
MF
13289cat >>confdefs.h <<_ACEOF
13290#define WITH_DEBUG $sim_debug
13291_ACEOF
13292
13293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
13294$as_echo "$sim_debug" >&6; }
87326c78
DD
13295
13296
ce39bd38
MF
13297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
13298$as_echo_n "checking for sim stdio debug behavior... " >&6; }
13299sim_stdio="0"
87326c78
DD
13300# Check whether --enable-sim-stdio was given.
13301if test "${enable_sim_stdio+set}" = set; then :
13302 enableval=$enable_sim_stdio; case "${enableval}" in
ce39bd38
MF
13303 yes) sim_stdio="DO_USE_STDIO";;
13304 no) sim_stdio="DONT_USE_STDIO";;
d0ac1c44 13305 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
87326c78 13306esac
87326c78
DD
13307fi
13308
ce39bd38
MF
13309cat >>confdefs.h <<_ACEOF
13310#define WITH_STDIO $sim_stdio
13311_ACEOF
13312
13313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
13314$as_echo "$sim_stdio" >&6; }
87326c78
DD
13315
13316
ce39bd38
MF
13317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
13318$as_echo_n "checking for sim trace settings... " >&6; }
13319sim_trace="~TRACE_debug"
87326c78
DD
13320# Check whether --enable-sim-trace was given.
13321if test "${enable_sim_trace+set}" = set; then :
13322 enableval=$enable_sim_trace; case "${enableval}" in
ce39bd38
MF
13323 yes) sim_trace="-1";;
13324 no) sim_trace="0";;
87326c78 13325 [-0-9]*)
ce39bd38 13326 sim_trace="'(${enableval})'";;
2232061b 13327 [[:lower:]]*)
87326c78
DD
13328 sim_trace=""
13329 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13330 if test x"$sim_trace" = x; then
ce39bd38 13331 sim_trace="(TRACE_$x"
87326c78
DD
13332 else
13333 sim_trace="${sim_trace}|TRACE_$x"
13334 fi
13335 done
ce39bd38 13336 sim_trace="$sim_trace)" ;;
87326c78 13337esac
87326c78
DD
13338fi
13339
ce39bd38
MF
13340cat >>confdefs.h <<_ACEOF
13341#define WITH_TRACE $sim_trace
13342_ACEOF
13343
13344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
13345$as_echo "$sim_trace" >&6; }
87326c78
DD
13346
13347
ce39bd38
MF
13348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
13349$as_echo_n "checking for sim profile settings... " >&6; }
13350profile="1"
13351sim_profile="-1"
87326c78
DD
13352# Check whether --enable-sim-profile was given.
13353if test "${enable_sim_profile+set}" = set; then :
13354 enableval=$enable_sim_profile; case "${enableval}" in
ce39bd38
MF
13355 yes) profile="1" sim_profile="-1";;
13356 no) profile="0" sim_profile="0";;
87326c78 13357 [-0-9]*)
ce39bd38 13358 profile="(${enableval})" sim_profile="(${enableval})";;
87326c78 13359 [a-z]*)
ce39bd38 13360 profile="1"
87326c78
DD
13361 sim_profile=""
13362 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13363 if test x"$sim_profile" = x; then
ce39bd38 13364 sim_profile="(PROFILE_$x"
87326c78
DD
13365 else
13366 sim_profile="${sim_profile}|PROFILE_$x"
13367 fi
13368 done
ce39bd38 13369 sim_profile="$sim_profile)" ;;
87326c78 13370esac
87326c78
DD
13371fi
13372
ce39bd38
MF
13373cat >>confdefs.h <<_ACEOF
13374#define PROFILE $profile
13375_ACEOF
87326c78
DD
13376
13377
ce39bd38
MF
13378cat >>confdefs.h <<_ACEOF
13379#define WITH_PROFILE $sim_profile
13380_ACEOF
13381
13382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
13383$as_echo "$sim_profile" >&6; }
13384
13385
13386
13387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
13388$as_echo_n "checking whether to enable sim asserts... " >&6; }
13389sim_assert="1"
35656e95
MF
13390# Check whether --enable-sim-assert was given.
13391if test "${enable_sim_assert+set}" = set; then :
13392 enableval=$enable_sim_assert; case "${enableval}" in
ce39bd38
MF
13393 yes) sim_assert="1";;
13394 no) sim_assert="0";;
d0ac1c44 13395 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
35656e95 13396esac
35656e95
MF
13397fi
13398
ce39bd38
MF
13399cat >>confdefs.h <<_ACEOF
13400#define WITH_ASSERT $sim_assert
13401_ACEOF
13402
13403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
13404$as_echo "$sim_assert" >&6; }
13405
35656e95 13406
ce39bd38
MF
13407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
13408$as_echo_n "checking default sim environment setting... " >&6; }
13409sim_environment="ALL_ENVIRONMENT"
16f7876d
MF
13410# Check whether --enable-sim-environment was given.
13411if test "${enable_sim_environment+set}" = set; then :
13412 enableval=$enable_sim_environment; case "${enableval}" in
ce39bd38
MF
13413 all | ALL) sim_environment="ALL_ENVIRONMENT";;
13414 user | USER) sim_environment="USER_ENVIRONMENT";;
13415 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
13416 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
d0ac1c44 13417 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
16f7876d 13418esac
16f7876d
MF
13419fi
13420
ce39bd38
MF
13421cat >>confdefs.h <<_ACEOF
13422#define WITH_ENVIRONMENT $sim_environment
13423_ACEOF
13424
13425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
13426$as_echo "$sim_environment" >&6; }
13427
16f7876d 13428
347fe5bb
MF
13429sim_inline="-DDEFAULT_INLINE=0"
13430# Check whether --enable-sim-inline was given.
13431if test "${enable_sim_inline+set}" = set; then :
13432 enableval=$enable_sim_inline; sim_inline=""
13433case "$enableval" in
13434 no) sim_inline="-DDEFAULT_INLINE=0";;
13435 0) sim_inline="-DDEFAULT_INLINE=0";;
13436 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
13437 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
13438 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13439 new_flag=""
13440 case "$x" in
13441 *_INLINE=*) new_flag="-D$x";;
13442 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
13443 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
13444 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
13445 esac
13446 if test x"$sim_inline" = x""; then
13447 sim_inline="$new_flag"
13448 else
13449 sim_inline="$sim_inline $new_flag"
13450 fi
13451 done;;
13452esac
13453if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
13454 echo "Setting inline flags = $sim_inline" 6>&1
13455fi
13456fi
13457
13458
13459
87326c78
DD
13460
13461# Check whether --with-pkgversion was given.
13462if test "${with_pkgversion+set}" = set; then :
13463 withval=$with_pkgversion; case "$withval" in
d0ac1c44 13464 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
87326c78
DD
13465 no) PKGVERSION= ;;
13466 *) PKGVERSION="($withval) " ;;
13467 esac
13468else
bf12d44e 13469 PKGVERSION="(SIM) "
87326c78
DD
13470
13471fi
13472
13473
13474
13475
13476
13477# Check whether --with-bugurl was given.
13478if test "${with_bugurl+set}" = set; then :
13479 withval=$with_bugurl; case "$withval" in
d0ac1c44 13480 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
87326c78
DD
13481 no) BUGURL=
13482 ;;
13483 *) BUGURL="$withval"
13484 ;;
13485 esac
13486else
dfb856ba 13487 BUGURL="https://www.gnu.org/software/gdb/bugs/"
87326c78
DD
13488
13489fi
13490
13491 case ${BUGURL} in
13492 "")
13493 REPORT_BUGS_TO=
13494 REPORT_BUGS_TEXI=
13495 ;;
13496 *)
13497 REPORT_BUGS_TO="<$BUGURL>"
13498 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
13499 ;;
13500 esac;
13501
13502
13503
13504
13505cat >>confdefs.h <<_ACEOF
13506#define PKGVERSION "$PKGVERSION"
13507_ACEOF
13508
13509
13510cat >>confdefs.h <<_ACEOF
13511#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
13512_ACEOF
13513
13514
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13516$as_echo_n "checking return type of signal handlers... " >&6; }
d0ac1c44 13517if ${ac_cv_type_signal+:} false; then :
87326c78
DD
13518 $as_echo_n "(cached) " >&6
13519else
13520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13521/* end confdefs.h. */
13522#include <sys/types.h>
13523#include <signal.h>
13524
13525int
13526main ()
13527{
13528return *(signal (0, 0)) (0) == 1;
13529 ;
13530 return 0;
13531}
13532_ACEOF
13533if ac_fn_c_try_compile "$LINENO"; then :
13534 ac_cv_type_signal=int
13535else
13536 ac_cv_type_signal=void
13537fi
13538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13539fi
13540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13541$as_echo "$ac_cv_type_signal" >&6; }
13542
13543cat >>confdefs.h <<_ACEOF
13544#define RETSIGTYPE $ac_cv_type_signal
13545_ACEOF
13546
13547
13548
13549
13550
87326c78
DD
13551
13552
13553for ac_header in getopt.h
13554do :
13555 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
d0ac1c44 13556if test "x$ac_cv_header_getopt_h" = xyes; then :
87326c78
DD
13557 cat >>confdefs.h <<_ACEOF
13558#define HAVE_GETOPT_H 1
13559_ACEOF
13560
13561fi
13562
13563done
13564
13565
13566
87326c78
DD
13567cgen_breaks=""
13568if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
13569cgen_breaks="break cgen_rtx_error";
13570fi
13571
13572ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
13573
13574ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
13575
13576ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
13577
13578ac_config_commands="$ac_config_commands Makefile"
13579
13580ac_config_commands="$ac_config_commands stamp-h"
13581
13582cat >confcache <<\_ACEOF
13583# This file is a shell script that caches the results of configure
13584# tests run on this system so they can be shared between configure
13585# scripts and configure runs, see configure's option --config-cache.
13586# It is not useful on other systems. If it contains results you don't
13587# want to keep, you may remove or edit it.
13588#
13589# config.status only pays attention to the cache file if you give it
13590# the --recheck option to rerun configure.
13591#
13592# `ac_cv_env_foo' variables (set or unset) will be overridden when
13593# loading this file, other *unset* `ac_cv_foo' will be assigned the
13594# following values.
13595
13596_ACEOF
13597
13598# The following way of writing the cache mishandles newlines in values,
13599# but we know of no workaround that is simple, portable, and efficient.
13600# So, we kill variables containing newlines.
13601# Ultrix sh set writes to stderr and can't be redirected directly,
13602# and sets the high bit in the cache file unless we assign to the vars.
13603(
13604 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13605 eval ac_val=\$$ac_var
13606 case $ac_val in #(
13607 *${as_nl}*)
13608 case $ac_var in #(
13609 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13610$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13611 esac
13612 case $ac_var in #(
13613 _ | IFS | as_nl) ;; #(
13614 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13615 *) { eval $ac_var=; unset $ac_var;} ;;
13616 esac ;;
13617 esac
13618 done
13619
13620 (set) 2>&1 |
13621 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13622 *${as_nl}ac_space=\ *)
13623 # `set' does not quote correctly, so add quotes: double-quote
13624 # substitution turns \\\\ into \\, and sed turns \\ into \.
13625 sed -n \
13626 "s/'/'\\\\''/g;
13627 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13628 ;; #(
13629 *)
13630 # `set' quotes correctly as required by POSIX, so do not add quotes.
13631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13632 ;;
13633 esac |
13634 sort
13635) |
13636 sed '
13637 /^ac_cv_env_/b end
13638 t clear
13639 :clear
13640 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13641 t end
13642 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13643 :end' >>confcache
13644if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13645 if test -w "$cache_file"; then
d0ac1c44 13646 if test "x$cache_file" != "x/dev/null"; then
87326c78
DD
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13648$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
13649 if test ! -f "$cache_file" || test -h "$cache_file"; then
13650 cat confcache >"$cache_file"
13651 else
13652 case $cache_file in #(
13653 */* | ?:*)
13654 mv -f confcache "$cache_file"$$ &&
13655 mv -f "$cache_file"$$ "$cache_file" ;; #(
13656 *)
13657 mv -f confcache "$cache_file" ;;
13658 esac
13659 fi
13660 fi
87326c78
DD
13661 else
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13663$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13664 fi
13665fi
13666rm -f confcache
13667
13668test "x$prefix" = xNONE && prefix=$ac_default_prefix
13669# Let make expand exec_prefix.
13670test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13671
13672DEFS=-DHAVE_CONFIG_H
13673
13674ac_libobjs=
13675ac_ltlibobjs=
d0ac1c44 13676U=
87326c78
DD
13677for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13678 # 1. Remove the extension, and $U if already installed.
13679 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13680 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13681 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13682 # will be set to the directory where LIBOBJS objects are built.
13683 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13684 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13685done
13686LIBOBJS=$ac_libobjs
13687
13688LTLIBOBJS=$ac_ltlibobjs
13689
13690
0cb8d851 13691
db2e4d67 13692if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
d0ac1c44 13693 as_fn_error $? "conditional \"GMAKE\" was never defined.
db2e4d67
MF
13694Usually this means the macro was only invoked conditionally." "$LINENO" 5
13695fi
6bb11ab3 13696if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
d0ac1c44 13697 as_fn_error $? "conditional \"PLUGINS\" was never defined.
6bb11ab3
L
13698Usually this means the macro was only invoked conditionally." "$LINENO" 5
13699fi
31e6ad7d 13700if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 13701 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31e6ad7d
MF
13702Usually this means the macro was only invoked conditionally." "$LINENO" 5
13703fi
87326c78 13704
d0ac1c44 13705: "${CONFIG_STATUS=./config.status}"
87326c78
DD
13706ac_write_fail=0
13707ac_clean_files_save=$ac_clean_files
13708ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13709{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13710$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13711as_write_fail=0
13712cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13713#! $SHELL
13714# Generated by $as_me.
13715# Run this file to recreate the current configuration.
13716# Compiler output produced by configure, useful for debugging
13717# configure, is in config.log if it exists.
13718
13719debug=false
13720ac_cs_recheck=false
13721ac_cs_silent=false
13722
13723SHELL=\${CONFIG_SHELL-$SHELL}
13724export SHELL
13725_ASEOF
13726cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13727## -------------------- ##
13728## M4sh Initialization. ##
13729## -------------------- ##
13730
13731# Be more Bourne compatible
13732DUALCASE=1; export DUALCASE # for MKS sh
13733if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13734 emulate sh
13735 NULLCMD=:
13736 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13737 # is contrary to our usage. Disable this feature.
13738 alias -g '${1+"$@"}'='"$@"'
13739 setopt NO_GLOB_SUBST
13740else
13741 case `(set -o) 2>/dev/null` in #(
13742 *posix*) :
13743 set -o posix ;; #(
13744 *) :
13745 ;;
13746esac
13747fi
13748
13749
13750as_nl='
13751'
13752export as_nl
13753# Printing a long string crashes Solaris 7 /usr/bin/printf.
13754as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13755as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13756as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13757# Prefer a ksh shell builtin over an external printf program on Solaris,
13758# but without wasting forks for bash or zsh.
13759if test -z "$BASH_VERSION$ZSH_VERSION" \
13760 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13761 as_echo='print -r --'
13762 as_echo_n='print -rn --'
13763elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13764 as_echo='printf %s\n'
13765 as_echo_n='printf %s'
13766else
13767 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13768 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13769 as_echo_n='/usr/ucb/echo -n'
13770 else
13771 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13772 as_echo_n_body='eval
13773 arg=$1;
13774 case $arg in #(
13775 *"$as_nl"*)
13776 expr "X$arg" : "X\\(.*\\)$as_nl";
13777 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13778 esac;
13779 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13780 '
13781 export as_echo_n_body
13782 as_echo_n='sh -c $as_echo_n_body as_echo'
13783 fi
13784 export as_echo_body
13785 as_echo='sh -c $as_echo_body as_echo'
13786fi
13787
13788# The user is always right.
13789if test "${PATH_SEPARATOR+set}" != set; then
13790 PATH_SEPARATOR=:
13791 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13792 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13793 PATH_SEPARATOR=';'
13794 }
13795fi
13796
13797
13798# IFS
13799# We need space, tab and new line, in precisely that order. Quoting is
13800# there to prevent editors from complaining about space-tab.
13801# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13802# splitting by setting IFS to empty value.)
13803IFS=" "" $as_nl"
13804
13805# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 13806as_myself=
87326c78
DD
13807case $0 in #((
13808 *[\\/]* ) as_myself=$0 ;;
13809 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13810for as_dir in $PATH
13811do
13812 IFS=$as_save_IFS
13813 test -z "$as_dir" && as_dir=.
13814 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13815 done
13816IFS=$as_save_IFS
13817
13818 ;;
13819esac
13820# We did not find ourselves, most probably we were run as `sh COMMAND'
13821# in which case we are not to be found in the path.
13822if test "x$as_myself" = x; then
13823 as_myself=$0
13824fi
13825if test ! -f "$as_myself"; then
13826 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13827 exit 1
13828fi
13829
13830# Unset variables that we do not need and which cause bugs (e.g. in
13831# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13832# suppresses any "Segmentation fault" message there. '((' could
13833# trigger a bug in pdksh 5.2.14.
13834for as_var in BASH_ENV ENV MAIL MAILPATH
13835do eval test x\${$as_var+set} = xset \
13836 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13837done
13838PS1='$ '
13839PS2='> '
13840PS4='+ '
13841
13842# NLS nuisances.
13843LC_ALL=C
13844export LC_ALL
13845LANGUAGE=C
13846export LANGUAGE
13847
13848# CDPATH.
13849(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13850
13851
d0ac1c44
SM
13852# as_fn_error STATUS ERROR [LINENO LOG_FD]
13853# ----------------------------------------
87326c78
DD
13854# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13855# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 13856# script with STATUS, using 1 if that was 0.
87326c78
DD
13857as_fn_error ()
13858{
d0ac1c44
SM
13859 as_status=$1; test $as_status -eq 0 && as_status=1
13860 if test "$4"; then
13861 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13862 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
87326c78 13863 fi
d0ac1c44 13864 $as_echo "$as_me: error: $2" >&2
87326c78
DD
13865 as_fn_exit $as_status
13866} # as_fn_error
13867
13868
13869# as_fn_set_status STATUS
13870# -----------------------
13871# Set $? to STATUS, without forking.
13872as_fn_set_status ()
13873{
13874 return $1
13875} # as_fn_set_status
13876
13877# as_fn_exit STATUS
13878# -----------------
13879# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13880as_fn_exit ()
13881{
13882 set +e
13883 as_fn_set_status $1
13884 exit $1
13885} # as_fn_exit
13886
13887# as_fn_unset VAR
13888# ---------------
13889# Portably unset VAR.
13890as_fn_unset ()
13891{
13892 { eval $1=; unset $1;}
13893}
13894as_unset=as_fn_unset
13895# as_fn_append VAR VALUE
13896# ----------------------
13897# Append the text in VALUE to the end of the definition contained in VAR. Take
13898# advantage of any shell optimizations that allow amortized linear growth over
13899# repeated appends, instead of the typical quadratic growth present in naive
13900# implementations.
13901if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13902 eval 'as_fn_append ()
13903 {
13904 eval $1+=\$2
13905 }'
13906else
13907 as_fn_append ()
13908 {
13909 eval $1=\$$1\$2
13910 }
13911fi # as_fn_append
13912
13913# as_fn_arith ARG...
13914# ------------------
13915# Perform arithmetic evaluation on the ARGs, and store the result in the
13916# global $as_val. Take advantage of shells that can avoid forks. The arguments
13917# must be portable across $(()) and expr.
13918if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13919 eval 'as_fn_arith ()
13920 {
13921 as_val=$(( $* ))
13922 }'
13923else
13924 as_fn_arith ()
13925 {
13926 as_val=`expr "$@" || test $? -eq 1`
13927 }
13928fi # as_fn_arith
13929
13930
13931if expr a : '\(a\)' >/dev/null 2>&1 &&
13932 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13933 as_expr=expr
13934else
13935 as_expr=false
13936fi
13937
13938if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13939 as_basename=basename
13940else
13941 as_basename=false
13942fi
13943
13944if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13945 as_dirname=dirname
13946else
13947 as_dirname=false
13948fi
13949
13950as_me=`$as_basename -- "$0" ||
13951$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13952 X"$0" : 'X\(//\)$' \| \
13953 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13954$as_echo X/"$0" |
13955 sed '/^.*\/\([^/][^/]*\)\/*$/{
13956 s//\1/
13957 q
13958 }
13959 /^X\/\(\/\/\)$/{
13960 s//\1/
13961 q
13962 }
13963 /^X\/\(\/\).*/{
13964 s//\1/
13965 q
13966 }
13967 s/.*/./; q'`
13968
13969# Avoid depending upon Character Ranges.
13970as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13971as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13972as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13973as_cr_digits='0123456789'
13974as_cr_alnum=$as_cr_Letters$as_cr_digits
13975
13976ECHO_C= ECHO_N= ECHO_T=
13977case `echo -n x` in #(((((
13978-n*)
13979 case `echo 'xy\c'` in
13980 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13981 xy) ECHO_C='\c';;
13982 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13983 ECHO_T=' ';;
13984 esac;;
13985*)
13986 ECHO_N='-n';;
13987esac
13988
13989rm -f conf$$ conf$$.exe conf$$.file
13990if test -d conf$$.dir; then
13991 rm -f conf$$.dir/conf$$.file
13992else
13993 rm -f conf$$.dir
13994 mkdir conf$$.dir 2>/dev/null
13995fi
13996if (echo >conf$$.file) 2>/dev/null; then
13997 if ln -s conf$$.file conf$$ 2>/dev/null; then
13998 as_ln_s='ln -s'
13999 # ... but there are two gotchas:
14000 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14001 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 14002 # In both cases, we have to default to `cp -pR'.
87326c78 14003 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 14004 as_ln_s='cp -pR'
87326c78
DD
14005 elif ln conf$$.file conf$$ 2>/dev/null; then
14006 as_ln_s=ln
14007 else
d0ac1c44 14008 as_ln_s='cp -pR'
87326c78
DD
14009 fi
14010else
d0ac1c44 14011 as_ln_s='cp -pR'
87326c78
DD
14012fi
14013rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14014rmdir conf$$.dir 2>/dev/null
14015
14016
14017# as_fn_mkdir_p
14018# -------------
14019# Create "$as_dir" as a directory, including parents if necessary.
14020as_fn_mkdir_p ()
14021{
14022
14023 case $as_dir in #(
14024 -*) as_dir=./$as_dir;;
14025 esac
14026 test -d "$as_dir" || eval $as_mkdir_p || {
14027 as_dirs=
14028 while :; do
14029 case $as_dir in #(
14030 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14031 *) as_qdir=$as_dir;;
14032 esac
14033 as_dirs="'$as_qdir' $as_dirs"
14034 as_dir=`$as_dirname -- "$as_dir" ||
14035$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14036 X"$as_dir" : 'X\(//\)[^/]' \| \
14037 X"$as_dir" : 'X\(//\)$' \| \
14038 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14039$as_echo X"$as_dir" |
14040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14041 s//\1/
14042 q
14043 }
14044 /^X\(\/\/\)[^/].*/{
14045 s//\1/
14046 q
14047 }
14048 /^X\(\/\/\)$/{
14049 s//\1/
14050 q
14051 }
14052 /^X\(\/\).*/{
14053 s//\1/
14054 q
14055 }
14056 s/.*/./; q'`
14057 test -d "$as_dir" && break
14058 done
14059 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 14060 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
87326c78
DD
14061
14062
14063} # as_fn_mkdir_p
14064if mkdir -p . 2>/dev/null; then
14065 as_mkdir_p='mkdir -p "$as_dir"'
14066else
14067 test -d ./-p && rmdir ./-p
14068 as_mkdir_p=false
14069fi
14070
d0ac1c44
SM
14071
14072# as_fn_executable_p FILE
14073# -----------------------
14074# Test if FILE is an executable regular file.
14075as_fn_executable_p ()
14076{
14077 test -f "$1" && test -x "$1"
14078} # as_fn_executable_p
14079as_test_x='test -x'
14080as_executable_p=as_fn_executable_p
87326c78
DD
14081
14082# Sed expression to map a string onto a valid CPP name.
14083as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14084
14085# Sed expression to map a string onto a valid variable name.
14086as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14087
14088
14089exec 6>&1
14090## ----------------------------------- ##
14091## Main body of $CONFIG_STATUS script. ##
14092## ----------------------------------- ##
14093_ASEOF
14094test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14095
14096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14097# Save the log message, to keep $0 and so on meaningful, and to
14098# report actual input values of CONFIG_FILES etc. instead of their
14099# values after options handling.
14100ac_log="
14101This file was extended by $as_me, which was
d0ac1c44 14102generated by GNU Autoconf 2.69. Invocation command line was
87326c78
DD
14103
14104 CONFIG_FILES = $CONFIG_FILES
14105 CONFIG_HEADERS = $CONFIG_HEADERS
14106 CONFIG_LINKS = $CONFIG_LINKS
14107 CONFIG_COMMANDS = $CONFIG_COMMANDS
14108 $ $0 $@
14109
14110on `(hostname || uname -n) 2>/dev/null | sed 1q`
14111"
14112
14113_ACEOF
14114
14115case $ac_config_files in *"
14116"*) set x $ac_config_files; shift; ac_config_files=$*;;
14117esac
14118
14119case $ac_config_headers in *"
14120"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14121esac
14122
14123
14124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14125# Files that config.status was made for.
14126config_files="$ac_config_files"
14127config_headers="$ac_config_headers"
87326c78
DD
14128config_commands="$ac_config_commands"
14129
14130_ACEOF
14131
14132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14133ac_cs_usage="\
14134\`$as_me' instantiates files and other configuration actions
14135from templates according to the current configuration. Unless the files
14136and actions are specified as TAGs, all are instantiated by default.
14137
14138Usage: $0 [OPTION]... [TAG]...
14139
14140 -h, --help print this help, then exit
14141 -V, --version print version number and configuration settings, then exit
d0ac1c44 14142 --config print configuration, then exit
87326c78
DD
14143 -q, --quiet, --silent
14144 do not print progress messages
14145 -d, --debug don't remove temporary files
14146 --recheck update $as_me by reconfiguring in the same conditions
14147 --file=FILE[:TEMPLATE]
14148 instantiate the configuration file FILE
14149 --header=FILE[:TEMPLATE]
14150 instantiate the configuration header FILE
14151
14152Configuration files:
14153$config_files
14154
14155Configuration headers:
14156$config_headers
14157
87326c78
DD
14158Configuration commands:
14159$config_commands
14160
14161Report bugs to the package provider."
14162
14163_ACEOF
14164cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 14165ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
87326c78
DD
14166ac_cs_version="\\
14167config.status
d0ac1c44
SM
14168configured by $0, generated by GNU Autoconf 2.69,
14169 with options \\"\$ac_cs_config\\"
87326c78 14170
d0ac1c44 14171Copyright (C) 2012 Free Software Foundation, Inc.
87326c78
DD
14172This config.status script is free software; the Free Software Foundation
14173gives unlimited permission to copy, distribute and modify it."
14174
14175ac_pwd='$ac_pwd'
14176srcdir='$srcdir'
14177INSTALL='$INSTALL'
6bb11ab3 14178AWK='$AWK'
87326c78
DD
14179test -n "\$AWK" || AWK=awk
14180_ACEOF
14181
14182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14183# The default lists apply if the user does not specify any file.
14184ac_need_defaults=:
14185while test $# != 0
14186do
14187 case $1 in
d0ac1c44 14188 --*=?*)
87326c78
DD
14189 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14190 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14191 ac_shift=:
14192 ;;
d0ac1c44
SM
14193 --*=)
14194 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14195 ac_optarg=
14196 ac_shift=:
14197 ;;
87326c78
DD
14198 *)
14199 ac_option=$1
14200 ac_optarg=$2
14201 ac_shift=shift
14202 ;;
14203 esac
14204
14205 case $ac_option in
14206 # Handling of the options.
14207 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14208 ac_cs_recheck=: ;;
14209 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14210 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
14211 --config | --confi | --conf | --con | --co | --c )
14212 $as_echo "$ac_cs_config"; exit ;;
87326c78
DD
14213 --debug | --debu | --deb | --de | --d | -d )
14214 debug=: ;;
14215 --file | --fil | --fi | --f )
14216 $ac_shift
14217 case $ac_optarg in
14218 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 14219 '') as_fn_error $? "missing file argument" ;;
87326c78
DD
14220 esac
14221 as_fn_append CONFIG_FILES " '$ac_optarg'"
14222 ac_need_defaults=false;;
14223 --header | --heade | --head | --hea )
14224 $ac_shift
14225 case $ac_optarg in
14226 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14227 esac
14228 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14229 ac_need_defaults=false;;
14230 --he | --h)
14231 # Conflict between --help and --header
d0ac1c44 14232 as_fn_error $? "ambiguous option: \`$1'
87326c78
DD
14233Try \`$0 --help' for more information.";;
14234 --help | --hel | -h )
14235 $as_echo "$ac_cs_usage"; exit ;;
14236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14237 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14238 ac_cs_silent=: ;;
14239
14240 # This is an error.
d0ac1c44 14241 -*) as_fn_error $? "unrecognized option: \`$1'
87326c78
DD
14242Try \`$0 --help' for more information." ;;
14243
14244 *) as_fn_append ac_config_targets " $1"
14245 ac_need_defaults=false ;;
14246
14247 esac
14248 shift
14249done
14250
14251ac_configure_extra_args=
14252
14253if $ac_cs_silent; then
14254 exec 6>/dev/null
14255 ac_configure_extra_args="$ac_configure_extra_args --silent"
14256fi
14257
14258_ACEOF
14259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14260if \$ac_cs_recheck; then
d0ac1c44 14261 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
87326c78
DD
14262 shift
14263 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14264 CONFIG_SHELL='$SHELL'
14265 export CONFIG_SHELL
14266 exec "\$@"
14267fi
14268
14269_ACEOF
14270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14271exec 5>>config.log
14272{
14273 echo
14274 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14275## Running $as_me. ##
14276_ASBOX
14277 $as_echo "$ac_log"
14278} >&5
14279
14280_ACEOF
14281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
db2e4d67
MF
14282#
14283# INIT-COMMANDS
14284#
14285ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14286
6bb11ab3
L
14287
14288# The HP-UX ksh and POSIX shell print the target directory to stdout
14289# if CDPATH is set.
14290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14291
14292sed_quote_subst='$sed_quote_subst'
14293double_quote_subst='$double_quote_subst'
14294delay_variable_subst='$delay_variable_subst'
14295macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14296macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14297enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14298enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14299pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14300enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14301SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14302ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14303host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14304host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14305host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14306build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14307build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14308build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14309SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14310Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14311GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14312EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14313FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14314LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14315NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14316LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14317max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14318ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14319exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14320lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14321lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14322lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14323reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14324reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14325OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14326deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14327file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14328AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14329AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14330STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14331RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14332old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14333old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14334old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14335lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14336CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14337CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14338compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14339GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14340lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14341lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14342lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14343lt_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"`'
14344objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14345MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14346lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14347lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14348lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14349lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14350lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14351need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14352DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14353NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14354LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14355OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14356OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14357libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14358shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14359extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14360archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14361enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14362export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14363whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14364compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14365old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14366old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14367archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14368archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14369module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14370module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14371with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14372allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14373no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14374hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14375hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14376hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14377hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14378hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14379hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14380hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14381hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14382inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14383link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14384fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14385always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14386export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14387exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14388include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14389prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14390file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14391variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14392need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14393need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14394version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14395runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14396shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14397shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14398libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14399library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14400soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14401install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14402postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14403postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14404finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14405finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14406hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14407sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14408sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14409hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14410enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14411enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14412enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14413old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14414striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14415
14416LTCC='$LTCC'
14417LTCFLAGS='$LTCFLAGS'
14418compiler='$compiler_DEFAULT'
14419
14420# A function that is used when there is no print builtin or printf.
14421func_fallback_echo ()
14422{
14423 eval 'cat <<_LTECHO_EOF
14424\$1
14425_LTECHO_EOF'
14426}
14427
14428# Quote evaled strings.
14429for var in SHELL \
14430ECHO \
14431SED \
14432GREP \
14433EGREP \
14434FGREP \
14435LD \
14436NM \
14437LN_S \
14438lt_SP2NL \
14439lt_NL2SP \
14440reload_flag \
14441OBJDUMP \
14442deplibs_check_method \
14443file_magic_cmd \
14444AR \
14445AR_FLAGS \
14446STRIP \
14447RANLIB \
14448CC \
14449CFLAGS \
14450compiler \
14451lt_cv_sys_global_symbol_pipe \
14452lt_cv_sys_global_symbol_to_cdecl \
14453lt_cv_sys_global_symbol_to_c_name_address \
14454lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14455lt_prog_compiler_no_builtin_flag \
14456lt_prog_compiler_wl \
14457lt_prog_compiler_pic \
14458lt_prog_compiler_static \
14459lt_cv_prog_compiler_c_o \
14460need_locks \
14461DSYMUTIL \
14462NMEDIT \
14463LIPO \
14464OTOOL \
14465OTOOL64 \
14466shrext_cmds \
14467export_dynamic_flag_spec \
14468whole_archive_flag_spec \
14469compiler_needs_object \
14470with_gnu_ld \
14471allow_undefined_flag \
14472no_undefined_flag \
14473hardcode_libdir_flag_spec \
14474hardcode_libdir_flag_spec_ld \
14475hardcode_libdir_separator \
14476fix_srcfile_path \
14477exclude_expsyms \
14478include_expsyms \
14479file_list_spec \
14480variables_saved_for_relink \
14481libname_spec \
14482library_names_spec \
14483soname_spec \
14484install_override_mode \
14485finish_eval \
14486old_striplib \
14487striplib; do
14488 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14489 *[\\\\\\\`\\"\\\$]*)
14490 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14491 ;;
14492 *)
14493 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14494 ;;
14495 esac
14496done
14497
14498# Double-quote double-evaled strings.
14499for var in reload_cmds \
14500old_postinstall_cmds \
14501old_postuninstall_cmds \
14502old_archive_cmds \
14503extract_expsyms_cmds \
14504old_archive_from_new_cmds \
14505old_archive_from_expsyms_cmds \
14506archive_cmds \
14507archive_expsym_cmds \
14508module_cmds \
14509module_expsym_cmds \
14510export_symbols_cmds \
14511prelink_cmds \
14512postinstall_cmds \
14513postuninstall_cmds \
14514finish_cmds \
14515sys_lib_search_path_spec \
14516sys_lib_dlsearch_path_spec; do
14517 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14518 *[\\\\\\\`\\"\\\$]*)
14519 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14520 ;;
14521 *)
14522 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14523 ;;
14524 esac
14525done
14526
14527ac_aux_dir='$ac_aux_dir'
14528xsi_shell='$xsi_shell'
14529lt_shell_append='$lt_shell_append'
14530
14531# See if we are running on zsh, and set the options which allow our
14532# commands through without removal of \ escapes INIT.
14533if test -n "\${ZSH_VERSION+set}" ; then
14534 setopt NO_GLOB_SUBST
14535fi
14536
14537
14538 PACKAGE='$PACKAGE'
14539 VERSION='$VERSION'
14540 TIMESTAMP='$TIMESTAMP'
14541 RM='$RM'
14542 ofile='$ofile'
14543
14544
14545
14546
87326c78
DD
14547_ACEOF
14548
14549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14550
14551# Handling of arguments.
14552for ac_config_target in $ac_config_targets
14553do
14554 case $ac_config_target in
14555 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
db2e4d67 14556 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
6bb11ab3 14557 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
87326c78
DD
14558 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
14559 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
14560 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
14561 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
14562 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
14563
d0ac1c44 14564 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
87326c78
DD
14565 esac
14566done
14567
14568
14569# If the user did not use the arguments to specify the items to instantiate,
14570# then the envvar interface is used. Set only those that are not.
14571# We use the long form for the default assignment because of an extremely
14572# bizarre bug on SunOS 4.1.3.
14573if $ac_need_defaults; then
14574 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14575 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
87326c78
DD
14576 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14577fi
14578
14579# Have a temporary directory for convenience. Make it in the build tree
14580# simply because there is no reason against having it here, and in addition,
14581# creating and moving files from /tmp can sometimes cause problems.
14582# Hook for its removal unless debugging.
14583# Note that there is a small window in which the directory will not be cleaned:
14584# after its creation but before its name has been assigned to `$tmp'.
14585$debug ||
14586{
d0ac1c44 14587 tmp= ac_tmp=
87326c78 14588 trap 'exit_status=$?
d0ac1c44
SM
14589 : "${ac_tmp:=$tmp}"
14590 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
87326c78
DD
14591' 0
14592 trap 'as_fn_exit 1' 1 2 13 15
14593}
14594# Create a (secure) tmp directory for tmp files.
14595
14596{
14597 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 14598 test -d "$tmp"
87326c78
DD
14599} ||
14600{
14601 tmp=./conf$$-$RANDOM
14602 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
14603} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14604ac_tmp=$tmp
87326c78
DD
14605
14606# Set up the scripts for CONFIG_FILES section.
14607# No need to generate them if there are no CONFIG_FILES.
14608# This happens for instance with `./config.status config.h'.
14609if test -n "$CONFIG_FILES"; then
14610
14611
14612ac_cr=`echo X | tr X '\015'`
14613# On cygwin, bash can eat \r inside `` if the user requested igncr.
14614# But we know of no other shell where ac_cr would be empty at this
14615# point, so we can use a bashism as a fallback.
14616if test "x$ac_cr" = x; then
14617 eval ac_cr=\$\'\\r\'
14618fi
14619ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14620if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 14621 ac_cs_awk_cr='\\r'
87326c78
DD
14622else
14623 ac_cs_awk_cr=$ac_cr
14624fi
14625
d0ac1c44 14626echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
87326c78
DD
14627_ACEOF
14628
14629
14630{
14631 echo "cat >conf$$subs.awk <<_ACEOF" &&
14632 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14633 echo "_ACEOF"
14634} >conf$$subs.sh ||
d0ac1c44
SM
14635 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14636ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
87326c78
DD
14637ac_delim='%!_!# '
14638for ac_last_try in false false false false false :; do
14639 . ./conf$$subs.sh ||
d0ac1c44 14640 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
87326c78
DD
14641
14642 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14643 if test $ac_delim_n = $ac_delim_num; then
14644 break
14645 elif $ac_last_try; then
d0ac1c44 14646 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
87326c78
DD
14647 else
14648 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14649 fi
14650done
14651rm -f conf$$subs.sh
14652
14653cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 14654cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
87326c78
DD
14655_ACEOF
14656sed -n '
14657h
14658s/^/S["/; s/!.*/"]=/
14659p
14660g
14661s/^[^!]*!//
14662:repl
14663t repl
14664s/'"$ac_delim"'$//
14665t delim
14666:nl
14667h
d0ac1c44 14668s/\(.\{148\}\)..*/\1/
87326c78
DD
14669t more1
14670s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14671p
14672n
14673b repl
14674:more1
14675s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14676p
14677g
14678s/.\{148\}//
14679t nl
14680:delim
14681h
d0ac1c44 14682s/\(.\{148\}\)..*/\1/
87326c78
DD
14683t more2
14684s/["\\]/\\&/g; s/^/"/; s/$/"/
14685p
14686b
14687:more2
14688s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14689p
14690g
14691s/.\{148\}//
14692t delim
14693' <conf$$subs.awk | sed '
14694/^[^""]/{
14695 N
14696 s/\n//
14697}
14698' >>$CONFIG_STATUS || ac_write_fail=1
14699rm -f conf$$subs.awk
14700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14701_ACAWK
d0ac1c44 14702cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
87326c78
DD
14703 for (key in S) S_is_set[key] = 1
14704 FS = "\a"
14705
14706}
14707{
14708 line = $ 0
14709 nfields = split(line, field, "@")
14710 substed = 0
14711 len = length(field[1])
14712 for (i = 2; i < nfields; i++) {
14713 key = field[i]
14714 keylen = length(key)
14715 if (S_is_set[key]) {
14716 value = S[key]
14717 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14718 len += length(value) + length(field[++i])
14719 substed = 1
14720 } else
14721 len += 1 + keylen
14722 }
14723
14724 print line
14725}
14726
14727_ACAWK
14728_ACEOF
14729cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14730if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14731 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14732else
14733 cat
d0ac1c44
SM
14734fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14735 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
87326c78
DD
14736_ACEOF
14737
d0ac1c44
SM
14738# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14739# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
87326c78
DD
14740# trailing colons and then remove the whole line if VPATH becomes empty
14741# (actually we leave an empty line to preserve line numbers).
14742if test "x$srcdir" = x.; then
d0ac1c44
SM
14743 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14744h
14745s///
14746s/^/:/
14747s/[ ]*$/:/
14748s/:\$(srcdir):/:/g
14749s/:\${srcdir}:/:/g
14750s/:@srcdir@:/:/g
14751s/^:*//
87326c78 14752s/:*$//
d0ac1c44
SM
14753x
14754s/\(=[ ]*\).*/\1/
14755G
14756s/\n//
87326c78
DD
14757s/^[^=]*=[ ]*$//
14758}'
14759fi
14760
14761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14762fi # test -n "$CONFIG_FILES"
14763
14764# Set up the scripts for CONFIG_HEADERS section.
14765# No need to generate them if there are no CONFIG_HEADERS.
14766# This happens for instance with `./config.status Makefile'.
14767if test -n "$CONFIG_HEADERS"; then
d0ac1c44 14768cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
87326c78
DD
14769BEGIN {
14770_ACEOF
14771
14772# Transform confdefs.h into an awk script `defines.awk', embedded as
14773# here-document in config.status, that substitutes the proper values into
14774# config.h.in to produce config.h.
14775
14776# Create a delimiter string that does not exist in confdefs.h, to ease
14777# handling of long lines.
14778ac_delim='%!_!# '
14779for ac_last_try in false false :; do
d0ac1c44
SM
14780 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14781 if test -z "$ac_tt"; then
87326c78
DD
14782 break
14783 elif $ac_last_try; then
d0ac1c44 14784 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
87326c78
DD
14785 else
14786 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14787 fi
14788done
14789
14790# For the awk script, D is an array of macro values keyed by name,
14791# likewise P contains macro parameters if any. Preserve backslash
14792# newline sequences.
14793
14794ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14795sed -n '
14796s/.\{148\}/&'"$ac_delim"'/g
14797t rset
14798:rset
14799s/^[ ]*#[ ]*define[ ][ ]*/ /
14800t def
14801d
14802:def
14803s/\\$//
14804t bsnl
14805s/["\\]/\\&/g
14806s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14807D["\1"]=" \3"/p
14808s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14809d
14810:bsnl
14811s/["\\]/\\&/g
14812s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14813D["\1"]=" \3\\\\\\n"\\/p
14814t cont
14815s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14816t cont
14817d
14818:cont
14819n
14820s/.\{148\}/&'"$ac_delim"'/g
14821t clear
14822:clear
14823s/\\$//
14824t bsnlc
14825s/["\\]/\\&/g; s/^/"/; s/$/"/p
14826d
14827:bsnlc
14828s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14829b cont
14830' <confdefs.h | sed '
14831s/'"$ac_delim"'/"\\\
14832"/g' >>$CONFIG_STATUS || ac_write_fail=1
14833
14834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14835 for (key in D) D_is_set[key] = 1
14836 FS = "\a"
14837}
14838/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14839 line = \$ 0
14840 split(line, arg, " ")
14841 if (arg[1] == "#") {
14842 defundef = arg[2]
14843 mac1 = arg[3]
14844 } else {
14845 defundef = substr(arg[1], 2)
14846 mac1 = arg[2]
14847 }
14848 split(mac1, mac2, "(") #)
14849 macro = mac2[1]
14850 prefix = substr(line, 1, index(line, defundef) - 1)
14851 if (D_is_set[macro]) {
14852 # Preserve the white space surrounding the "#".
14853 print prefix "define", macro P[macro] D[macro]
14854 next
14855 } else {
14856 # Replace #undef with comments. This is necessary, for example,
14857 # in the case of _POSIX_SOURCE, which is predefined and required
14858 # on some systems where configure will not decide to define it.
14859 if (defundef == "undef") {
14860 print "/*", prefix defundef, macro, "*/"
14861 next
14862 }
14863 }
14864}
14865{ print }
14866_ACAWK
14867_ACEOF
14868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 14869 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
87326c78
DD
14870fi # test -n "$CONFIG_HEADERS"
14871
14872
99d8e879 14873eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
87326c78
DD
14874shift
14875for ac_tag
14876do
14877 case $ac_tag in
14878 :[FHLC]) ac_mode=$ac_tag; continue;;
14879 esac
14880 case $ac_mode$ac_tag in
14881 :[FHL]*:*);;
d0ac1c44 14882 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
87326c78
DD
14883 :[FH]-) ac_tag=-:-;;
14884 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14885 esac
14886 ac_save_IFS=$IFS
14887 IFS=:
14888 set x $ac_tag
14889 IFS=$ac_save_IFS
14890 shift
14891 ac_file=$1
14892 shift
14893
14894 case $ac_mode in
14895 :L) ac_source=$1;;
14896 :[FH])
14897 ac_file_inputs=
14898 for ac_f
14899 do
14900 case $ac_f in
d0ac1c44 14901 -) ac_f="$ac_tmp/stdin";;
87326c78
DD
14902 *) # Look for the file first in the build tree, then in the source tree
14903 # (if the path is not absolute). The absolute path cannot be DOS-style,
14904 # because $ac_f cannot contain `:'.
14905 test -f "$ac_f" ||
14906 case $ac_f in
14907 [\\/$]*) false;;
14908 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14909 esac ||
d0ac1c44 14910 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
87326c78
DD
14911 esac
14912 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14913 as_fn_append ac_file_inputs " '$ac_f'"
14914 done
14915
14916 # Let's still pretend it is `configure' which instantiates (i.e., don't
14917 # use $as_me), people would be surprised to read:
14918 # /* config.h. Generated by config.status. */
14919 configure_input='Generated from '`
14920 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14921 `' by configure.'
14922 if test x"$ac_file" != x-; then
14923 configure_input="$ac_file. $configure_input"
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14925$as_echo "$as_me: creating $ac_file" >&6;}
14926 fi
14927 # Neutralize special characters interpreted by sed in replacement strings.
14928 case $configure_input in #(
14929 *\&* | *\|* | *\\* )
14930 ac_sed_conf_input=`$as_echo "$configure_input" |
14931 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14932 *) ac_sed_conf_input=$configure_input;;
14933 esac
14934
14935 case $ac_tag in
d0ac1c44
SM
14936 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14937 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
87326c78
DD
14938 esac
14939 ;;
14940 esac
14941
14942 ac_dir=`$as_dirname -- "$ac_file" ||
14943$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14944 X"$ac_file" : 'X\(//\)[^/]' \| \
14945 X"$ac_file" : 'X\(//\)$' \| \
14946 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14947$as_echo X"$ac_file" |
14948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14949 s//\1/
14950 q
14951 }
14952 /^X\(\/\/\)[^/].*/{
14953 s//\1/
14954 q
14955 }
14956 /^X\(\/\/\)$/{
14957 s//\1/
14958 q
14959 }
14960 /^X\(\/\).*/{
14961 s//\1/
14962 q
14963 }
14964 s/.*/./; q'`
14965 as_dir="$ac_dir"; as_fn_mkdir_p
14966 ac_builddir=.
14967
14968case "$ac_dir" in
14969.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14970*)
14971 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14972 # A ".." for each directory in $ac_dir_suffix.
14973 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14974 case $ac_top_builddir_sub in
14975 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14976 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14977 esac ;;
14978esac
14979ac_abs_top_builddir=$ac_pwd
14980ac_abs_builddir=$ac_pwd$ac_dir_suffix
14981# for backward compatibility:
14982ac_top_builddir=$ac_top_build_prefix
14983
14984case $srcdir in
14985 .) # We are building in place.
14986 ac_srcdir=.
14987 ac_top_srcdir=$ac_top_builddir_sub
14988 ac_abs_top_srcdir=$ac_pwd ;;
14989 [\\/]* | ?:[\\/]* ) # Absolute name.
14990 ac_srcdir=$srcdir$ac_dir_suffix;
14991 ac_top_srcdir=$srcdir
14992 ac_abs_top_srcdir=$srcdir ;;
14993 *) # Relative name.
14994 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14995 ac_top_srcdir=$ac_top_build_prefix$srcdir
14996 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14997esac
14998ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14999
15000
15001 case $ac_mode in
15002 :F)
15003 #
15004 # CONFIG_FILE
15005 #
15006
15007 case $INSTALL in
15008 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15009 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15010 esac
15011_ACEOF
15012
15013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15014# If the template does not know about datarootdir, expand it.
15015# FIXME: This hack should be removed a few years after 2.60.
15016ac_datarootdir_hack=; ac_datarootdir_seen=
15017ac_sed_dataroot='
15018/datarootdir/ {
15019 p
15020 q
15021}
15022/@datadir@/p
15023/@docdir@/p
15024/@infodir@/p
15025/@localedir@/p
15026/@mandir@/p'
15027case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15028*datarootdir*) ac_datarootdir_seen=yes;;
15029*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15031$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15032_ACEOF
15033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15034 ac_datarootdir_hack='
15035 s&@datadir@&$datadir&g
15036 s&@docdir@&$docdir&g
15037 s&@infodir@&$infodir&g
15038 s&@localedir@&$localedir&g
15039 s&@mandir@&$mandir&g
15040 s&\\\${datarootdir}&$datarootdir&g' ;;
15041esac
15042_ACEOF
15043
15044# Neutralize VPATH when `$srcdir' = `.'.
15045# Shell code in configure.ac might set extrasub.
15046# FIXME: do we really want to maintain this feature?
15047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15048ac_sed_extra="$ac_vpsub
15049$extrasub
15050_ACEOF
15051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15052:t
15053/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15054s|@configure_input@|$ac_sed_conf_input|;t t
15055s&@top_builddir@&$ac_top_builddir_sub&;t t
15056s&@top_build_prefix@&$ac_top_build_prefix&;t t
15057s&@srcdir@&$ac_srcdir&;t t
15058s&@abs_srcdir@&$ac_abs_srcdir&;t t
15059s&@top_srcdir@&$ac_top_srcdir&;t t
15060s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15061s&@builddir@&$ac_builddir&;t t
15062s&@abs_builddir@&$ac_abs_builddir&;t t
15063s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15064s&@INSTALL@&$ac_INSTALL&;t t
15065$ac_datarootdir_hack
15066"
d0ac1c44
SM
15067eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15068 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
87326c78
DD
15069
15070test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
15071 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15072 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15073 "$ac_tmp/out"`; test -z "$ac_out"; } &&
87326c78 15074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 15075which seems to be undefined. Please make sure it is defined" >&5
87326c78 15076$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 15077which seems to be undefined. Please make sure it is defined" >&2;}
87326c78 15078
d0ac1c44 15079 rm -f "$ac_tmp/stdin"
87326c78 15080 case $ac_file in
d0ac1c44
SM
15081 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15082 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
87326c78 15083 esac \
d0ac1c44 15084 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
87326c78
DD
15085 ;;
15086 :H)
15087 #
15088 # CONFIG_HEADER
15089 #
15090 if test x"$ac_file" != x-; then
15091 {
15092 $as_echo "/* $configure_input */" \
d0ac1c44
SM
15093 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15094 } >"$ac_tmp/config.h" \
15095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15096 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
87326c78
DD
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15098$as_echo "$as_me: $ac_file is unchanged" >&6;}
15099 else
15100 rm -f "$ac_file"
d0ac1c44
SM
15101 mv "$ac_tmp/config.h" "$ac_file" \
15102 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
87326c78
DD
15103 fi
15104 else
15105 $as_echo "/* $configure_input */" \
d0ac1c44
SM
15106 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15107 || as_fn_error $? "could not create -" "$LINENO" 5
87326c78
DD
15108 fi
15109 ;;
87326c78 15110
87326c78
DD
15111 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15112$as_echo "$as_me: executing $ac_file commands" >&6;}
15113 ;;
15114 esac
15115
15116
15117 case $ac_file$ac_mode in
db2e4d67 15118 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
6bb11ab3
L
15119 "libtool":C)
15120
15121 # See if we are running on zsh, and set the options which allow our
15122 # commands through without removal of \ escapes.
15123 if test -n "${ZSH_VERSION+set}" ; then
15124 setopt NO_GLOB_SUBST
15125 fi
15126
15127 cfgfile="${ofile}T"
15128 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15129 $RM "$cfgfile"
15130
15131 cat <<_LT_EOF >> "$cfgfile"
15132#! $SHELL
15133
15134# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15135# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15136# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15137# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15138#
15139# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15140# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15141# Written by Gordon Matzigkeit, 1996
15142#
15143# This file is part of GNU Libtool.
15144#
15145# GNU Libtool is free software; you can redistribute it and/or
15146# modify it under the terms of the GNU General Public License as
15147# published by the Free Software Foundation; either version 2 of
15148# the License, or (at your option) any later version.
15149#
15150# As a special exception to the GNU General Public License,
15151# if you distribute this file as part of a program or library that
15152# is built using GNU Libtool, you may include this file under the
15153# same distribution terms that you use for the rest of that program.
15154#
15155# GNU Libtool is distributed in the hope that it will be useful,
15156# but WITHOUT ANY WARRANTY; without even the implied warranty of
15157# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15158# GNU General Public License for more details.
15159#
15160# You should have received a copy of the GNU General Public License
15161# along with GNU Libtool; see the file COPYING. If not, a copy
15162# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15163# obtained by writing to the Free Software Foundation, Inc.,
15164# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15165
15166
15167# The names of the tagged configurations supported by this script.
15168available_tags=""
15169
15170# ### BEGIN LIBTOOL CONFIG
15171
15172# Which release of libtool.m4 was used?
15173macro_version=$macro_version
15174macro_revision=$macro_revision
15175
15176# Whether or not to build shared libraries.
15177build_libtool_libs=$enable_shared
15178
15179# Whether or not to build static libraries.
15180build_old_libs=$enable_static
15181
15182# What type of objects to build.
15183pic_mode=$pic_mode
15184
15185# Whether or not to optimize for fast installation.
15186fast_install=$enable_fast_install
15187
15188# Shell to use when invoking shell scripts.
15189SHELL=$lt_SHELL
15190
15191# An echo program that protects backslashes.
15192ECHO=$lt_ECHO
15193
15194# The host system.
15195host_alias=$host_alias
15196host=$host
15197host_os=$host_os
15198
15199# The build system.
15200build_alias=$build_alias
15201build=$build
15202build_os=$build_os
15203
15204# A sed program that does not truncate output.
15205SED=$lt_SED
15206
15207# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15208Xsed="\$SED -e 1s/^X//"
15209
15210# A grep program that handles long lines.
15211GREP=$lt_GREP
15212
15213# An ERE matcher.
15214EGREP=$lt_EGREP
15215
15216# A literal string matcher.
15217FGREP=$lt_FGREP
15218
15219# A BSD- or MS-compatible name lister.
15220NM=$lt_NM
15221
15222# Whether we need soft or hard links.
15223LN_S=$lt_LN_S
15224
15225# What is the maximum length of a command?
15226max_cmd_len=$max_cmd_len
15227
15228# Object file suffix (normally "o").
15229objext=$ac_objext
15230
15231# Executable file suffix (normally "").
15232exeext=$exeext
15233
15234# whether the shell understands "unset".
15235lt_unset=$lt_unset
15236
15237# turn spaces into newlines.
15238SP2NL=$lt_lt_SP2NL
15239
15240# turn newlines into spaces.
15241NL2SP=$lt_lt_NL2SP
15242
15243# An object symbol dumper.
15244OBJDUMP=$lt_OBJDUMP
15245
15246# Method to check whether dependent libraries are shared objects.
15247deplibs_check_method=$lt_deplibs_check_method
15248
15249# Command to use when deplibs_check_method == "file_magic".
15250file_magic_cmd=$lt_file_magic_cmd
15251
15252# The archiver.
15253AR=$lt_AR
15254AR_FLAGS=$lt_AR_FLAGS
15255
15256# A symbol stripping program.
15257STRIP=$lt_STRIP
15258
15259# Commands used to install an old-style archive.
15260RANLIB=$lt_RANLIB
15261old_postinstall_cmds=$lt_old_postinstall_cmds
15262old_postuninstall_cmds=$lt_old_postuninstall_cmds
15263
15264# Whether to use a lock for old archive extraction.
15265lock_old_archive_extraction=$lock_old_archive_extraction
15266
15267# A C compiler.
15268LTCC=$lt_CC
15269
15270# LTCC compiler flags.
15271LTCFLAGS=$lt_CFLAGS
15272
15273# Take the output of nm and produce a listing of raw symbols and C names.
15274global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15275
15276# Transform the output of nm in a proper C declaration.
15277global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15278
15279# Transform the output of nm in a C name address pair.
15280global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15281
15282# Transform the output of nm in a C name address pair when lib prefix is needed.
15283global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15284
15285# The name of the directory that contains temporary libtool files.
15286objdir=$objdir
15287
15288# Used to examine libraries when file_magic_cmd begins with "file".
15289MAGIC_CMD=$MAGIC_CMD
15290
15291# Must we lock files when doing compilation?
15292need_locks=$lt_need_locks
15293
15294# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15295DSYMUTIL=$lt_DSYMUTIL
15296
15297# Tool to change global to local symbols on Mac OS X.
15298NMEDIT=$lt_NMEDIT
15299
15300# Tool to manipulate fat objects and archives on Mac OS X.
15301LIPO=$lt_LIPO
15302
15303# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15304OTOOL=$lt_OTOOL
15305
15306# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15307OTOOL64=$lt_OTOOL64
15308
15309# Old archive suffix (normally "a").
15310libext=$libext
15311
15312# Shared library suffix (normally ".so").
15313shrext_cmds=$lt_shrext_cmds
15314
15315# The commands to extract the exported symbol list from a shared archive.
15316extract_expsyms_cmds=$lt_extract_expsyms_cmds
15317
15318# Variables whose values should be saved in libtool wrapper scripts and
15319# restored at link time.
15320variables_saved_for_relink=$lt_variables_saved_for_relink
15321
15322# Do we need the "lib" prefix for modules?
15323need_lib_prefix=$need_lib_prefix
15324
15325# Do we need a version for libraries?
15326need_version=$need_version
15327
15328# Library versioning type.
15329version_type=$version_type
15330
15331# Shared library runtime path variable.
15332runpath_var=$runpath_var
15333
15334# Shared library path variable.
15335shlibpath_var=$shlibpath_var
15336
15337# Is shlibpath searched before the hard-coded library search path?
15338shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15339
15340# Format of library name prefix.
15341libname_spec=$lt_libname_spec
15342
15343# List of archive names. First name is the real one, the rest are links.
15344# The last name is the one that the linker finds with -lNAME
15345library_names_spec=$lt_library_names_spec
15346
15347# The coded name of the library, if different from the real name.
15348soname_spec=$lt_soname_spec
15349
15350# Permission mode override for installation of shared libraries.
15351install_override_mode=$lt_install_override_mode
15352
15353# Command to use after installation of a shared archive.
15354postinstall_cmds=$lt_postinstall_cmds
15355
15356# Command to use after uninstallation of a shared archive.
15357postuninstall_cmds=$lt_postuninstall_cmds
15358
15359# Commands used to finish a libtool library installation in a directory.
15360finish_cmds=$lt_finish_cmds
15361
15362# As "finish_cmds", except a single script fragment to be evaled but
15363# not shown.
15364finish_eval=$lt_finish_eval
15365
15366# Whether we should hardcode library paths into libraries.
15367hardcode_into_libs=$hardcode_into_libs
15368
15369# Compile-time system search path for libraries.
15370sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15371
15372# Run-time system search path for libraries.
15373sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15374
15375# Whether dlopen is supported.
15376dlopen_support=$enable_dlopen
15377
15378# Whether dlopen of programs is supported.
15379dlopen_self=$enable_dlopen_self
15380
15381# Whether dlopen of statically linked programs is supported.
15382dlopen_self_static=$enable_dlopen_self_static
15383
15384# Commands to strip libraries.
15385old_striplib=$lt_old_striplib
15386striplib=$lt_striplib
15387
15388
15389# The linker used to build libraries.
15390LD=$lt_LD
15391
15392# How to create reloadable object files.
15393reload_flag=$lt_reload_flag
15394reload_cmds=$lt_reload_cmds
15395
15396# Commands used to build an old-style archive.
15397old_archive_cmds=$lt_old_archive_cmds
15398
15399# A language specific compiler.
15400CC=$lt_compiler
15401
15402# Is the compiler the GNU compiler?
15403with_gcc=$GCC
15404
15405# Compiler flag to turn off builtin functions.
15406no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15407
15408# How to pass a linker flag through the compiler.
15409wl=$lt_lt_prog_compiler_wl
15410
15411# Additional compiler flags for building library objects.
15412pic_flag=$lt_lt_prog_compiler_pic
15413
15414# Compiler flag to prevent dynamic linking.
15415link_static_flag=$lt_lt_prog_compiler_static
15416
15417# Does compiler simultaneously support -c and -o options?
15418compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15419
15420# Whether or not to add -lc for building shared libraries.
15421build_libtool_need_lc=$archive_cmds_need_lc
15422
15423# Whether or not to disallow shared libs when runtime libs are static.
15424allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15425
15426# Compiler flag to allow reflexive dlopens.
15427export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15428
15429# Compiler flag to generate shared objects directly from archives.
15430whole_archive_flag_spec=$lt_whole_archive_flag_spec
15431
15432# Whether the compiler copes with passing no objects directly.
15433compiler_needs_object=$lt_compiler_needs_object
15434
15435# Create an old-style archive from a shared archive.
15436old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15437
15438# Create a temporary old-style archive to link instead of a shared archive.
15439old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15440
15441# Commands used to build a shared archive.
15442archive_cmds=$lt_archive_cmds
15443archive_expsym_cmds=$lt_archive_expsym_cmds
15444
15445# Commands used to build a loadable module if different from building
15446# a shared archive.
15447module_cmds=$lt_module_cmds
15448module_expsym_cmds=$lt_module_expsym_cmds
15449
15450# Whether we are building with GNU ld or not.
15451with_gnu_ld=$lt_with_gnu_ld
15452
15453# Flag that allows shared libraries with undefined symbols to be built.
15454allow_undefined_flag=$lt_allow_undefined_flag
15455
15456# Flag that enforces no undefined symbols.
15457no_undefined_flag=$lt_no_undefined_flag
15458
15459# Flag to hardcode \$libdir into a binary during linking.
15460# This must work even if \$libdir does not exist
15461hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15462
15463# If ld is used when linking, flag to hardcode \$libdir into a binary
15464# during linking. This must work even if \$libdir does not exist.
15465hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15466
15467# Whether we need a single "-rpath" flag with a separated argument.
15468hardcode_libdir_separator=$lt_hardcode_libdir_separator
15469
15470# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15471# DIR into the resulting binary.
15472hardcode_direct=$hardcode_direct
15473
15474# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15475# DIR into the resulting binary and the resulting library dependency is
15476# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15477# library is relocated.
15478hardcode_direct_absolute=$hardcode_direct_absolute
15479
15480# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15481# into the resulting binary.
15482hardcode_minus_L=$hardcode_minus_L
15483
15484# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15485# into the resulting binary.
15486hardcode_shlibpath_var=$hardcode_shlibpath_var
15487
15488# Set to "yes" if building a shared library automatically hardcodes DIR
15489# into the library and all subsequent libraries and executables linked
15490# against it.
15491hardcode_automatic=$hardcode_automatic
15492
15493# Set to yes if linker adds runtime paths of dependent libraries
15494# to runtime path list.
15495inherit_rpath=$inherit_rpath
15496
15497# Whether libtool must link a program against all its dependency libraries.
15498link_all_deplibs=$link_all_deplibs
15499
15500# Fix the shell variable \$srcfile for the compiler.
15501fix_srcfile_path=$lt_fix_srcfile_path
15502
15503# Set to "yes" if exported symbols are required.
15504always_export_symbols=$always_export_symbols
15505
15506# The commands to list exported symbols.
15507export_symbols_cmds=$lt_export_symbols_cmds
15508
15509# Symbols that should not be listed in the preloaded symbols.
15510exclude_expsyms=$lt_exclude_expsyms
15511
15512# Symbols that must always be exported.
15513include_expsyms=$lt_include_expsyms
15514
15515# Commands necessary for linking programs (against libraries) with templates.
15516prelink_cmds=$lt_prelink_cmds
15517
15518# Specify filename containing input files.
15519file_list_spec=$lt_file_list_spec
15520
15521# How to hardcode a shared library path into an executable.
15522hardcode_action=$hardcode_action
15523
15524# ### END LIBTOOL CONFIG
15525
15526_LT_EOF
15527
15528 case $host_os in
15529 aix3*)
15530 cat <<\_LT_EOF >> "$cfgfile"
15531# AIX sometimes has problems with the GCC collect2 program. For some
15532# reason, if we set the COLLECT_NAMES environment variable, the problems
15533# vanish in a puff of smoke.
15534if test "X${COLLECT_NAMES+set}" != Xset; then
15535 COLLECT_NAMES=
15536 export COLLECT_NAMES
15537fi
15538_LT_EOF
15539 ;;
15540 esac
15541
15542
15543ltmain="$ac_aux_dir/ltmain.sh"
15544
15545
15546 # We use sed instead of cat because bash on DJGPP gets confused if
15547 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15548 # text mode, it properly converts lines to CR/LF. This bash problem
15549 # is reportedly fixed, but why not run on old versions too?
15550 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15551 || (rm -f "$cfgfile"; exit 1)
15552
15553 case $xsi_shell in
15554 yes)
15555 cat << \_LT_EOF >> "$cfgfile"
15556
15557# func_dirname file append nondir_replacement
15558# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15559# otherwise set result to NONDIR_REPLACEMENT.
15560func_dirname ()
15561{
15562 case ${1} in
15563 */*) func_dirname_result="${1%/*}${2}" ;;
15564 * ) func_dirname_result="${3}" ;;
15565 esac
15566}
15567
15568# func_basename file
15569func_basename ()
15570{
15571 func_basename_result="${1##*/}"
15572}
15573
15574# func_dirname_and_basename file append nondir_replacement
15575# perform func_basename and func_dirname in a single function
15576# call:
15577# dirname: Compute the dirname of FILE. If nonempty,
15578# add APPEND to the result, otherwise set result
15579# to NONDIR_REPLACEMENT.
15580# value returned in "$func_dirname_result"
15581# basename: Compute filename of FILE.
15582# value retuned in "$func_basename_result"
15583# Implementation must be kept synchronized with func_dirname
15584# and func_basename. For efficiency, we do not delegate to
15585# those functions but instead duplicate the functionality here.
15586func_dirname_and_basename ()
15587{
15588 case ${1} in
15589 */*) func_dirname_result="${1%/*}${2}" ;;
15590 * ) func_dirname_result="${3}" ;;
15591 esac
15592 func_basename_result="${1##*/}"
15593}
15594
15595# func_stripname prefix suffix name
15596# strip PREFIX and SUFFIX off of NAME.
15597# PREFIX and SUFFIX must not contain globbing or regex special
15598# characters, hashes, percent signs, but SUFFIX may contain a leading
15599# dot (in which case that matches only a dot).
15600func_stripname ()
15601{
15602 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15603 # positional parameters, so assign one to ordinary parameter first.
15604 func_stripname_result=${3}
15605 func_stripname_result=${func_stripname_result#"${1}"}
15606 func_stripname_result=${func_stripname_result%"${2}"}
15607}
15608
15609# func_opt_split
15610func_opt_split ()
15611{
15612 func_opt_split_opt=${1%%=*}
15613 func_opt_split_arg=${1#*=}
15614}
15615
15616# func_lo2o object
15617func_lo2o ()
15618{
15619 case ${1} in
15620 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15621 *) func_lo2o_result=${1} ;;
15622 esac
15623}
15624
15625# func_xform libobj-or-source
15626func_xform ()
15627{
15628 func_xform_result=${1%.*}.lo
15629}
15630
15631# func_arith arithmetic-term...
15632func_arith ()
15633{
15634 func_arith_result=$(( $* ))
15635}
15636
15637# func_len string
15638# STRING may not start with a hyphen.
15639func_len ()
15640{
15641 func_len_result=${#1}
15642}
15643
15644_LT_EOF
15645 ;;
15646 *) # Bourne compatible functions.
15647 cat << \_LT_EOF >> "$cfgfile"
15648
15649# func_dirname file append nondir_replacement
15650# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15651# otherwise set result to NONDIR_REPLACEMENT.
15652func_dirname ()
15653{
15654 # Extract subdirectory from the argument.
15655 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15656 if test "X$func_dirname_result" = "X${1}"; then
15657 func_dirname_result="${3}"
15658 else
15659 func_dirname_result="$func_dirname_result${2}"
15660 fi
15661}
15662
15663# func_basename file
15664func_basename ()
15665{
15666 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15667}
15668
15669
15670# func_stripname prefix suffix name
15671# strip PREFIX and SUFFIX off of NAME.
15672# PREFIX and SUFFIX must not contain globbing or regex special
15673# characters, hashes, percent signs, but SUFFIX may contain a leading
15674# dot (in which case that matches only a dot).
15675# func_strip_suffix prefix name
15676func_stripname ()
15677{
15678 case ${2} in
15679 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15680 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15681 esac
15682}
15683
15684# sed scripts:
15685my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15686my_sed_long_arg='1s/^-[^=]*=//'
15687
15688# func_opt_split
15689func_opt_split ()
15690{
15691 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15692 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15693}
15694
15695# func_lo2o object
15696func_lo2o ()
15697{
15698 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15699}
15700
15701# func_xform libobj-or-source
15702func_xform ()
15703{
15704 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15705}
15706
15707# func_arith arithmetic-term...
15708func_arith ()
15709{
15710 func_arith_result=`expr "$@"`
15711}
15712
15713# func_len string
15714# STRING may not start with a hyphen.
15715func_len ()
15716{
15717 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15718}
15719
15720_LT_EOF
15721esac
15722
15723case $lt_shell_append in
15724 yes)
15725 cat << \_LT_EOF >> "$cfgfile"
15726
15727# func_append var value
15728# Append VALUE to the end of shell variable VAR.
15729func_append ()
15730{
15731 eval "$1+=\$2"
15732}
15733_LT_EOF
15734 ;;
15735 *)
15736 cat << \_LT_EOF >> "$cfgfile"
15737
15738# func_append var value
15739# Append VALUE to the end of shell variable VAR.
15740func_append ()
15741{
15742 eval "$1=\$$1\$2"
15743}
15744
15745_LT_EOF
15746 ;;
15747 esac
15748
15749
15750 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15751 || (rm -f "$cfgfile"; exit 1)
15752
15753 mv -f "$cfgfile" "$ofile" ||
15754 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15755 chmod +x "$ofile"
15756
15757 ;;
87326c78
DD
15758 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
15759 rm -f Makesim1.tmp Makesim2.tmp Makefile
15760 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
15761 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
15762 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
15763 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
15764 <Makefile.sim >Makefile
15765 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
15766 ;;
15767 "stamp-h":C) echo > stamp-h ;;
15768
15769 esac
15770done # for ac_tag
15771
15772
15773as_fn_exit 0
15774_ACEOF
15775ac_clean_files=$ac_clean_files_save
15776
15777test $ac_write_fail = 0 ||
d0ac1c44 15778 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
87326c78
DD
15779
15780
15781# configure is writing to config.log, and then calls config.status.
15782# config.status does its own redirection, appending to config.log.
15783# Unfortunately, on DOS this fails, as config.log is still kept open
15784# by configure, so config.status won't be able to write to it; its
15785# output is simply discarded. So we exec the FD to /dev/null,
15786# effectively closing config.log, so it can be properly (re)opened and
15787# appended to by config.status. When coming back to configure, we
15788# need to make the FD available again.
15789if test "$no_create" != yes; then
15790 ac_cs_success=:
15791 ac_config_status_args=
15792 test "$silent" = yes &&
15793 ac_config_status_args="$ac_config_status_args --quiet"
15794 exec 5>/dev/null
15795 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15796 exec 5>>config.log
15797 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15798 # would make configure fail if this is the last instruction.
d0ac1c44 15799 $ac_cs_success || as_fn_exit 1
87326c78
DD
15800fi
15801if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15803$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15804fi
15805
15806