]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/rl78/configure
sim: require a C11 compiler
[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#
306f4178 2350# The simulator's configure.ac should look like:
87326c78
DD
2351#
2352# dnl Process this file with autoconf to produce a configure script.
2353# AC_PREREQ(2.64)dnl
2354# AC_INIT(Makefile.in)
2355# sinclude(../common/aclocal.m4)
2356#
2357# SIM_AC_COMMON
2358#
2359# ... target specific stuff ...
2360#
2361# SIM_AC_OUTPUT
2362
2363# Include global overrides and fixes for Autoconf.
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
87326c78
DD
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
db2e4d67 2396
5c887dd5
JB
2397
2398
6bb11ab3 2399# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
db2e4d67 2400#
6bb11ab3
L
2401# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2402# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2403# Written by Gordon Matzigkeit, 1996
2404#
2405# This file is free software; the Free Software Foundation gives
2406# unlimited permission to copy and/or distribute it, with or without
2407# modifications, as long as this notice is preserved.
db2e4d67 2408
db2e4d67 2409
db2e4d67 2410
6bb11ab3 2411# serial 56 LT_INIT
db2e4d67
MF
2412
2413
6bb11ab3
L
2414# LT_PREREQ(VERSION)
2415# ------------------
2416# Complain and exit if this libtool version is less that VERSION.
db2e4d67 2417
db2e4d67
MF
2418
2419
6bb11ab3
L
2420# _LT_CHECK_BUILDDIR
2421# ------------------
2422# Complain if the absolute build directory name contains unusual characters
db2e4d67
MF
2423
2424
87326c78 2425
6bb11ab3
L
2426# LT_INIT([OPTIONS])
2427# ------------------
2428# LT_INIT
87326c78 2429
6bb11ab3
L
2430# Old names:
2431# This is what autoupdate's m4 run will expand. It fires
2432# the warning (with _au_warn_XXX), outputs it into the
2433# updated configure.ac (with AC_DIAGNOSE), and then outputs
2434# the replacement expansion.
87326c78
DD
2435
2436
6bb11ab3
L
2437# This is an auxiliary macro that is also run when
2438# autoupdate runs m4. It simply calls m4_warning, but
2439# we need a wrapper so that each warning is emitted only
2440# once. We break the quoting in m4_warning's argument in
2441# order to expand this macro's arguments, not AU_DEFUN's.
87326c78
DD
2442
2443
6bb11ab3
L
2444# Finally, this is the expansion that is picked up by
2445# autoconf. It tells the user to run autoupdate, and
2446# then outputs the replacement expansion. We do not care
2447# about autoupdate's warning because that contains
2448# information on what to do *after* running autoupdate.
87326c78 2449
6bb11ab3
L
2450# This is what autoupdate's m4 run will expand. It fires
2451# the warning (with _au_warn_XXX), outputs it into the
2452# updated configure.ac (with AC_DIAGNOSE), and then outputs
2453# the replacement expansion.
87326c78
DD
2454
2455
6bb11ab3
L
2456# This is an auxiliary macro that is also run when
2457# autoupdate runs m4. It simply calls m4_warning, but
2458# we need a wrapper so that each warning is emitted only
2459# once. We break the quoting in m4_warning's argument in
2460# order to expand this macro's arguments, not AU_DEFUN's.
87326c78
DD
2461
2462
6bb11ab3
L
2463# Finally, this is the expansion that is picked up by
2464# autoconf. It tells the user to run autoupdate, and
2465# then outputs the replacement expansion. We do not care
2466# about autoupdate's warning because that contains
2467# information on what to do *after* running autoupdate.
87326c78
DD
2468
2469
2470
6bb11ab3
L
2471# _LT_CC_BASENAME(CC)
2472# -------------------
2473# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
87326c78
DD
2474
2475
2476
6bb11ab3
L
2477# _LT_FILEUTILS_DEFAULTS
2478# ----------------------
2479# It is okay to use these file commands and assume they have been set
2480# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2481# _LT_FILEUTILS_DEFAULTS
87326c78
DD
2482
2483
6bb11ab3
L
2484# _LT_SETUP
2485# ---------
2486# _LT_SETUP
87326c78
DD
2487
2488
6bb11ab3
L
2489# _LT_PREPARE_SED_QUOTE_VARS
2490# --------------------------
2491# Define a few sed substitution that help us do robust quoting.
87326c78
DD
2492
2493
6bb11ab3
L
2494# _LT_PROG_LTMAIN
2495# ---------------
2496# Note that this code is called both from `configure', and `config.status'
2497# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2498# `config.status' has no value for ac_aux_dir unless we are using Automake,
2499# so we pass a copy along to make sure it has a sensible value anyway.
2500# _LT_PROG_LTMAIN
87326c78
DD
2501
2502
6bb11ab3
L
2503## ------------------------------------- ##
2504## Accumulate code for creating libtool. ##
2505## ------------------------------------- ##
87326c78 2506
6bb11ab3
L
2507# So that we can recreate a full libtool script including additional
2508# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2509# in macros and then make a single call at the end using the `libtool'
2510# label.
87326c78
DD
2511
2512
6bb11ab3
L
2513# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2514# ----------------------------------------
2515# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
87326c78
DD
2516
2517
6bb11ab3 2518# Initialize.
87326c78
DD
2519
2520
2521
6bb11ab3
L
2522# _LT_CONFIG_LIBTOOL([COMMANDS])
2523# ------------------------------
2524# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
87326c78
DD
2525
2526
6bb11ab3 2527# Initialize.
87326c78
DD
2528
2529
2530
6bb11ab3
L
2531# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2532# -----------------------------------------------------
87326c78
DD
2533
2534
2535
6bb11ab3
L
2536# _LT_FORMAT_COMMENT([COMMENT])
2537# -----------------------------
2538# Add leading comment marks to the start of each line, and a trailing
2539# full-stop to the whole comment if one is not present already.
87326c78
DD
2540
2541
2542
2543
6bb11ab3
L
2544## ------------------------ ##
2545## FIXME: Eliminate VARNAME ##
2546## ------------------------ ##
87326c78
DD
2547
2548
6bb11ab3
L
2549# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2550# -------------------------------------------------------------------
2551# CONFIGNAME is the name given to the value in the libtool script.
2552# VARNAME is the (base) name used in the configure script.
2553# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2554# VARNAME. Any other value will be used directly.
87326c78 2555
87326c78
DD
2556
2557
6bb11ab3
L
2558# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2559# --------------------------------------------------------
87326c78
DD
2560
2561
2562
6bb11ab3
L
2563# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2564# ------------------------------------------------
87326c78
DD
2565
2566
2567
6bb11ab3
L
2568# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2569# ---------------------------------------------------------
87326c78
DD
2570
2571
2572
6bb11ab3
L
2573# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2574# --------------------------------------------------
87326c78
DD
2575
2576
2577
6bb11ab3
L
2578# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2579# ---------------------------------------------------
87326c78
DD
2580
2581
2582
6bb11ab3
L
2583# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2584# ---------------------------------------------------
87326c78
DD
2585
2586
2587
2588
6bb11ab3
L
2589# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2590# ------------------------------------------------
87326c78
DD
2591
2592
2593
2594
6bb11ab3
L
2595# _LT_CONFIG_STATUS_DECLARE([VARNAME])
2596# ------------------------------------
2597# Quote a variable value, and forward it to `config.status' so that its
2598# declaration there will have the same value as in `configure'. VARNAME
2599# must have a single quote delimited value for this to work.
87326c78
DD
2600
2601
2602
6bb11ab3
L
2603# _LT_CONFIG_STATUS_DECLARATIONS
2604# ------------------------------
2605# We delimit libtool config variables with single quotes, so when
2606# we write them to config.status, we have to be sure to quote all
2607# embedded single quotes properly. In configure, this macro expands
2608# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2609#
2610# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
87326c78
DD
2611
2612
2613
6bb11ab3
L
2614# _LT_LIBTOOL_TAGS
2615# ----------------
2616# Output comment and list of tags supported by the script
87326c78
DD
2617
2618
2619
6bb11ab3
L
2620# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2621# -----------------------------------
2622# Extract the dictionary values for VARNAME (optionally with TAG) and
2623# expand to a commented shell variable setting:
2624#
2625# # Some comment about what VAR is for.
2626# visible_name=$lt_internal_name
87326c78
DD
2627
2628
87326c78 2629
6bb11ab3
L
2630# _LT_LIBTOOL_CONFIG_VARS
2631# -----------------------
2632# Produce commented declarations of non-tagged libtool config variables
2633# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2634# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2635# section) are produced by _LT_LIBTOOL_TAG_VARS.
87326c78
DD
2636
2637
2638
6bb11ab3
L
2639# _LT_LIBTOOL_TAG_VARS(TAG)
2640# -------------------------
87326c78
DD
2641
2642
2643
6bb11ab3
L
2644# _LT_TAGVAR(VARNAME, [TAGNAME])
2645# ------------------------------
87326c78
DD
2646
2647
2648
6bb11ab3
L
2649# _LT_CONFIG_COMMANDS
2650# -------------------
2651# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2652# variables for single and double quote escaping we saved from calls
2653# to _LT_DECL, we can put quote escaped variables declarations
2654# into `config.status', and then the shell code to quote escape them in
2655# for loops in `config.status'. Finally, any additional code accumulated
2656# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2657#_LT_CONFIG_COMMANDS
2658
2659
2660# Initialize.
2661
2662
2663# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2664# ------------------------------------
2665# Generate a child script FILE with all initialization necessary to
2666# reuse the environment learned by the parent script, and make the
2667# file executable. If COMMENT is supplied, it is inserted after the
2668# `#!' sequence but before initialization text begins. After this
2669# macro, additional text can be appended to FILE to form the body of
2670# the child script. The macro ends with non-zero status if the
2671# file could not be fully written (such as if the disk is full).
2672# _LT_GENERATED_FILE_INIT
2673
2674# LT_OUTPUT
2675# ---------
2676# This macro allows early generation of the libtool script (before
2677# AC_OUTPUT is called), incase it is used in configure for compilation
2678# tests.
2679# LT_OUTPUT
2680
2681
2682# _LT_CONFIG(TAG)
2683# ---------------
2684# If TAG is the built-in tag, create an initial libtool script with a
2685# default configuration from the untagged config vars. Otherwise add code
2686# to config.status for appending the configuration named by TAG from the
2687# matching tagged config vars.
2688# _LT_CONFIG
87326c78
DD
2689
2690
6bb11ab3
L
2691# LT_SUPPORTED_TAG(TAG)
2692# ---------------------
2693# Trace this macro to discover what tags are supported by the libtool
2694# --tag option, using:
2695# autoconf --trace 'LT_SUPPORTED_TAG:$1'
87326c78 2696
87326c78 2697
87326c78 2698
6bb11ab3 2699# C support is built-in for now
87326c78 2700
87326c78
DD
2701
2702
2703
6bb11ab3
L
2704# LT_LANG(LANG)
2705# -------------
2706# Enable libtool support for the given language if not already enabled.
2707# LT_LANG
87326c78
DD
2708
2709
6bb11ab3
L
2710# _LT_LANG(LANGNAME)
2711# ------------------
2712# _LT_LANG
87326c78
DD
2713
2714
6bb11ab3
L
2715# _LT_LANG_DEFAULT_CONFIG
2716# -----------------------
2717# _LT_LANG_DEFAULT_CONFIG
87326c78 2718
6bb11ab3
L
2719# Obsolete macros:
2720# This is what autoupdate's m4 run will expand. It fires
2721# the warning (with _au_warn_XXX), outputs it into the
2722# updated configure.ac (with AC_DIAGNOSE), and then outputs
2723# the replacement expansion.
87326c78 2724
87326c78 2725
6bb11ab3
L
2726# This is an auxiliary macro that is also run when
2727# autoupdate runs m4. It simply calls m4_warning, but
2728# we need a wrapper so that each warning is emitted only
2729# once. We break the quoting in m4_warning's argument in
2730# order to expand this macro's arguments, not AU_DEFUN's.
87326c78 2731
87326c78 2732
6bb11ab3
L
2733# Finally, this is the expansion that is picked up by
2734# autoconf. It tells the user to run autoupdate, and
2735# then outputs the replacement expansion. We do not care
2736# about autoupdate's warning because that contains
2737# information on what to do *after* running autoupdate.
87326c78 2738
6bb11ab3
L
2739# This is what autoupdate's m4 run will expand. It fires
2740# the warning (with _au_warn_XXX), outputs it into the
2741# updated configure.ac (with AC_DIAGNOSE), and then outputs
2742# the replacement expansion.
87326c78
DD
2743
2744
6bb11ab3
L
2745# This is an auxiliary macro that is also run when
2746# autoupdate runs m4. It simply calls m4_warning, but
2747# we need a wrapper so that each warning is emitted only
2748# once. We break the quoting in m4_warning's argument in
2749# order to expand this macro's arguments, not AU_DEFUN's.
87326c78
DD
2750
2751
6bb11ab3
L
2752# Finally, this is the expansion that is picked up by
2753# autoconf. It tells the user to run autoupdate, and
2754# then outputs the replacement expansion. We do not care
2755# about autoupdate's warning because that contains
2756# information on what to do *after* running autoupdate.
87326c78 2757
6bb11ab3
L
2758# This is what autoupdate's m4 run will expand. It fires
2759# the warning (with _au_warn_XXX), outputs it into the
2760# updated configure.ac (with AC_DIAGNOSE), and then outputs
2761# the replacement expansion.
87326c78
DD
2762
2763
6bb11ab3
L
2764# This is an auxiliary macro that is also run when
2765# autoupdate runs m4. It simply calls m4_warning, but
2766# we need a wrapper so that each warning is emitted only
2767# once. We break the quoting in m4_warning's argument in
2768# order to expand this macro's arguments, not AU_DEFUN's.
87326c78
DD
2769
2770
6bb11ab3
L
2771# Finally, this is the expansion that is picked up by
2772# autoconf. It tells the user to run autoupdate, and
2773# then outputs the replacement expansion. We do not care
2774# about autoupdate's warning because that contains
2775# information on what to do *after* running autoupdate.
87326c78 2776
6bb11ab3
L
2777# This is what autoupdate's m4 run will expand. It fires
2778# the warning (with _au_warn_XXX), outputs it into the
2779# updated configure.ac (with AC_DIAGNOSE), and then outputs
2780# the replacement expansion.
87326c78
DD
2781
2782
6bb11ab3
L
2783# This is an auxiliary macro that is also run when
2784# autoupdate runs m4. It simply calls m4_warning, but
2785# we need a wrapper so that each warning is emitted only
2786# once. We break the quoting in m4_warning's argument in
2787# order to expand this macro's arguments, not AU_DEFUN's.
87326c78
DD
2788
2789
6bb11ab3
L
2790# Finally, this is the expansion that is picked up by
2791# autoconf. It tells the user to run autoupdate, and
2792# then outputs the replacement expansion. We do not care
2793# about autoupdate's warning because that contains
2794# information on what to do *after* running autoupdate.
87326c78 2795
6bb11ab3
L
2796# This is what autoupdate's m4 run will expand. It fires
2797# the warning (with _au_warn_XXX), outputs it into the
2798# updated configure.ac (with AC_DIAGNOSE), and then outputs
2799# the replacement expansion.
87326c78
DD
2800
2801
6bb11ab3
L
2802# This is an auxiliary macro that is also run when
2803# autoupdate runs m4. It simply calls m4_warning, but
2804# we need a wrapper so that each warning is emitted only
2805# once. We break the quoting in m4_warning's argument in
2806# order to expand this macro's arguments, not AU_DEFUN's.
87326c78
DD
2807
2808
6bb11ab3
L
2809# Finally, this is the expansion that is picked up by
2810# autoconf. It tells the user to run autoupdate, and
2811# then outputs the replacement expansion. We do not care
2812# about autoupdate's warning because that contains
2813# information on what to do *after* running autoupdate.
87326c78
DD
2814
2815
2816
6bb11ab3
L
2817# _LT_TAG_COMPILER
2818# ----------------
2819# _LT_TAG_COMPILER
87326c78
DD
2820
2821
6bb11ab3
L
2822# _LT_COMPILER_BOILERPLATE
2823# ------------------------
2824# Check for compiler boilerplate output or warnings with
2825# the simple compiler test code.
2826# _LT_COMPILER_BOILERPLATE
87326c78 2827
87326c78 2828
6bb11ab3
L
2829# _LT_LINKER_BOILERPLATE
2830# ----------------------
2831# Check for linker boilerplate output or warnings with
2832# the simple link test code.
2833# _LT_LINKER_BOILERPLATE
87326c78 2834
6bb11ab3
L
2835# _LT_REQUIRED_DARWIN_CHECKS
2836# -------------------------
87326c78 2837
87326c78 2838
87326c78 2839
6bb11ab3
L
2840# _LT_DARWIN_LINKER_FEATURES
2841# --------------------------
2842# Checks for linker and compiler features on darwin
87326c78 2843
87326c78 2844
6bb11ab3
L
2845# _LT_SYS_MODULE_PATH_AIX
2846# -----------------------
2847# Links a minimal program and checks the executable
2848# for the system default hardcoded library path. In most cases,
2849# this is /usr/lib:/lib, but when the MPI compilers are used
2850# the location of the communication and MPI libs are included too.
2851# If we don't find anything, use the default library path according
2852# to the aix ld manual.
2853# _LT_SYS_MODULE_PATH_AIX
87326c78
DD
2854
2855
6bb11ab3
L
2856# _LT_SHELL_INIT(ARG)
2857# -------------------
2858# _LT_SHELL_INIT
87326c78 2859
87326c78
DD
2860
2861
6bb11ab3
L
2862# _LT_PROG_ECHO_BACKSLASH
2863# -----------------------
2864# Find how we can fake an echo command that does not interpret backslash.
2865# In particular, with Autoconf 2.60 or later we add some code to the start
2866# of the generated configure script which will find a shell with a builtin
2867# printf (which we can use as an echo command).
2868# _LT_PROG_ECHO_BACKSLASH
87326c78 2869
87326c78 2870
6bb11ab3
L
2871# _LT_ENABLE_LOCK
2872# ---------------
2873# _LT_ENABLE_LOCK
87326c78 2874
87326c78 2875
6bb11ab3
L
2876# _LT_CMD_OLD_ARCHIVE
2877# -------------------
2878# _LT_CMD_OLD_ARCHIVE
87326c78
DD
2879
2880
6bb11ab3
L
2881# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2882# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2883# ----------------------------------------------------------------
2884# Check whether the given compiler option works
2885# _LT_COMPILER_OPTION
87326c78 2886
6bb11ab3
L
2887# Old name:
2888# This is what autoupdate's m4 run will expand. It fires
2889# the warning (with _au_warn_XXX), outputs it into the
2890# updated configure.ac (with AC_DIAGNOSE), and then outputs
2891# the replacement expansion.
87326c78 2892
87326c78 2893
6bb11ab3
L
2894# This is an auxiliary macro that is also run when
2895# autoupdate runs m4. It simply calls m4_warning, but
2896# we need a wrapper so that each warning is emitted only
2897# once. We break the quoting in m4_warning's argument in
2898# order to expand this macro's arguments, not AU_DEFUN's.
87326c78 2899
87326c78 2900
6bb11ab3
L
2901# Finally, this is the expansion that is picked up by
2902# autoconf. It tells the user to run autoupdate, and
2903# then outputs the replacement expansion. We do not care
2904# about autoupdate's warning because that contains
2905# information on what to do *after* running autoupdate.
87326c78 2906
87326c78 2907
87326c78 2908
6bb11ab3
L
2909# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2910# [ACTION-SUCCESS], [ACTION-FAILURE])
2911# ----------------------------------------------------
2912# Check whether the given linker option works
2913# _LT_LINKER_OPTION
87326c78 2914
6bb11ab3
L
2915# Old name:
2916# This is what autoupdate's m4 run will expand. It fires
2917# the warning (with _au_warn_XXX), outputs it into the
2918# updated configure.ac (with AC_DIAGNOSE), and then outputs
2919# the replacement expansion.
87326c78 2920
87326c78 2921
6bb11ab3
L
2922# This is an auxiliary macro that is also run when
2923# autoupdate runs m4. It simply calls m4_warning, but
2924# we need a wrapper so that each warning is emitted only
2925# once. We break the quoting in m4_warning's argument in
2926# order to expand this macro's arguments, not AU_DEFUN's.
87326c78 2927
87326c78 2928
6bb11ab3
L
2929# Finally, this is the expansion that is picked up by
2930# autoconf. It tells the user to run autoupdate, and
2931# then outputs the replacement expansion. We do not care
2932# about autoupdate's warning because that contains
2933# information on what to do *after* running autoupdate.
2934
2935
2936
2937# LT_CMD_MAX_LEN
2938#---------------
2939# LT_CMD_MAX_LEN
2940
2941# Old name:
2942# This is what autoupdate's m4 run will expand. It fires
2943# the warning (with _au_warn_XXX), outputs it into the
2944# updated configure.ac (with AC_DIAGNOSE), and then outputs
2945# the replacement expansion.
2946
2947
2948# This is an auxiliary macro that is also run when
2949# autoupdate runs m4. It simply calls m4_warning, but
2950# we need a wrapper so that each warning is emitted only
2951# once. We break the quoting in m4_warning's argument in
2952# order to expand this macro's arguments, not AU_DEFUN's.
2953
2954
2955# Finally, this is the expansion that is picked up by
2956# autoconf. It tells the user to run autoupdate, and
2957# then outputs the replacement expansion. We do not care
2958# about autoupdate's warning because that contains
2959# information on what to do *after* running autoupdate.
2960
2961
2962
2963# _LT_HEADER_DLFCN
2964# ----------------
2965# _LT_HEADER_DLFCN
2966
2967
2968# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2969# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2970# ----------------------------------------------------------------
2971# _LT_TRY_DLOPEN_SELF
2972
2973
2974# LT_SYS_DLOPEN_SELF
2975# ------------------
2976# LT_SYS_DLOPEN_SELF
2977
2978# Old name:
2979# This is what autoupdate's m4 run will expand. It fires
2980# the warning (with _au_warn_XXX), outputs it into the
2981# updated configure.ac (with AC_DIAGNOSE), and then outputs
2982# the replacement expansion.
2983
2984
2985# This is an auxiliary macro that is also run when
2986# autoupdate runs m4. It simply calls m4_warning, but
2987# we need a wrapper so that each warning is emitted only
2988# once. We break the quoting in m4_warning's argument in
2989# order to expand this macro's arguments, not AU_DEFUN's.
2990
2991
2992# Finally, this is the expansion that is picked up by
2993# autoconf. It tells the user to run autoupdate, and
2994# then outputs the replacement expansion. We do not care
2995# about autoupdate's warning because that contains
2996# information on what to do *after* running autoupdate.
2997
2998
2999
3000# _LT_COMPILER_C_O([TAGNAME])
3001# ---------------------------
3002# Check to see if options -c and -o are simultaneously supported by compiler.
3003# This macro does not hard code the compiler like AC_PROG_CC_C_O.
3004# _LT_COMPILER_C_O
3005
3006
3007# _LT_COMPILER_FILE_LOCKS([TAGNAME])
3008# ----------------------------------
3009# Check to see if we can do hard links to lock some files if needed
3010# _LT_COMPILER_FILE_LOCKS
3011
3012
3013# _LT_CHECK_OBJDIR
3014# ----------------
3015# _LT_CHECK_OBJDIR
3016
3017
3018# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3019# --------------------------------------
3020# Check hardcoding attributes.
3021# _LT_LINKER_HARDCODE_LIBPATH
3022
3023
3024# _LT_CMD_STRIPLIB
3025# ----------------
3026# _LT_CMD_STRIPLIB
3027
3028
3029# _LT_SYS_DYNAMIC_LINKER([TAG])
3030# -----------------------------
3031# PORTME Fill in your ld.so characteristics
3032# _LT_SYS_DYNAMIC_LINKER
3033
3034
3035# _LT_PATH_TOOL_PREFIX(TOOL)
3036# --------------------------
3037# find a file program which can recognize shared library
3038# _LT_PATH_TOOL_PREFIX
3039
3040# Old name:
3041# This is what autoupdate's m4 run will expand. It fires
3042# the warning (with _au_warn_XXX), outputs it into the
3043# updated configure.ac (with AC_DIAGNOSE), and then outputs
3044# the replacement expansion.
3045
3046
3047# This is an auxiliary macro that is also run when
3048# autoupdate runs m4. It simply calls m4_warning, but
3049# we need a wrapper so that each warning is emitted only
3050# once. We break the quoting in m4_warning's argument in
3051# order to expand this macro's arguments, not AU_DEFUN's.
3052
3053
3054# Finally, this is the expansion that is picked up by
3055# autoconf. It tells the user to run autoupdate, and
3056# then outputs the replacement expansion. We do not care
3057# about autoupdate's warning because that contains
3058# information on what to do *after* running autoupdate.
3059
3060
3061
3062# _LT_PATH_MAGIC
3063# --------------
3064# find a file program which can recognize a shared library
3065# _LT_PATH_MAGIC
3066
3067
3068# LT_PATH_LD
3069# ----------
3070# find the pathname to the GNU or non-GNU linker
3071# LT_PATH_LD
3072
3073# Old names:
3074# This is what autoupdate's m4 run will expand. It fires
3075# the warning (with _au_warn_XXX), outputs it into the
3076# updated configure.ac (with AC_DIAGNOSE), and then outputs
3077# the replacement expansion.
3078
3079
3080# This is an auxiliary macro that is also run when
3081# autoupdate runs m4. It simply calls m4_warning, but
3082# we need a wrapper so that each warning is emitted only
3083# once. We break the quoting in m4_warning's argument in
3084# order to expand this macro's arguments, not AU_DEFUN's.
3085
3086
3087# Finally, this is the expansion that is picked up by
3088# autoconf. It tells the user to run autoupdate, and
3089# then outputs the replacement expansion. We do not care
3090# about autoupdate's warning because that contains
3091# information on what to do *after* running autoupdate.
3092
3093# This is what autoupdate's m4 run will expand. It fires
3094# the warning (with _au_warn_XXX), outputs it into the
3095# updated configure.ac (with AC_DIAGNOSE), and then outputs
3096# the replacement expansion.
3097
3098
3099# This is an auxiliary macro that is also run when
3100# autoupdate runs m4. It simply calls m4_warning, but
3101# we need a wrapper so that each warning is emitted only
3102# once. We break the quoting in m4_warning's argument in
3103# order to expand this macro's arguments, not AU_DEFUN's.
3104
3105
3106# Finally, this is the expansion that is picked up by
3107# autoconf. It tells the user to run autoupdate, and
3108# then outputs the replacement expansion. We do not care
3109# about autoupdate's warning because that contains
3110# information on what to do *after* running autoupdate.
3111
3112
3113
3114# _LT_PATH_LD_GNU
3115#- --------------
3116# _LT_PATH_LD_GNU
3117
3118
3119# _LT_CMD_RELOAD
3120# --------------
3121# find reload flag for linker
3122# -- PORTME Some linkers may need a different reload flag.
3123# _LT_CMD_RELOAD
3124
3125
3126# _LT_CHECK_MAGIC_METHOD
3127# ----------------------
3128# how to check for library dependencies
3129# -- PORTME fill in with the dynamic library characteristics
3130# _LT_CHECK_MAGIC_METHOD
3131
3132
3133# LT_PATH_NM
3134# ----------
3135# find the pathname to a BSD- or MS-compatible name lister
3136# LT_PATH_NM
3137
3138# Old names:
3139# This is what autoupdate's m4 run will expand. It fires
3140# the warning (with _au_warn_XXX), outputs it into the
3141# updated configure.ac (with AC_DIAGNOSE), and then outputs
3142# the replacement expansion.
3143
3144
3145# This is an auxiliary macro that is also run when
3146# autoupdate runs m4. It simply calls m4_warning, but
3147# we need a wrapper so that each warning is emitted only
3148# once. We break the quoting in m4_warning's argument in
3149# order to expand this macro's arguments, not AU_DEFUN's.
3150
3151
3152# Finally, this is the expansion that is picked up by
3153# autoconf. It tells the user to run autoupdate, and
3154# then outputs the replacement expansion. We do not care
3155# about autoupdate's warning because that contains
3156# information on what to do *after* running autoupdate.
3157
3158# This is what autoupdate's m4 run will expand. It fires
3159# the warning (with _au_warn_XXX), outputs it into the
3160# updated configure.ac (with AC_DIAGNOSE), and then outputs
3161# the replacement expansion.
3162
3163
3164# This is an auxiliary macro that is also run when
3165# autoupdate runs m4. It simply calls m4_warning, but
3166# we need a wrapper so that each warning is emitted only
3167# once. We break the quoting in m4_warning's argument in
3168# order to expand this macro's arguments, not AU_DEFUN's.
3169
3170
3171# Finally, this is the expansion that is picked up by
3172# autoconf. It tells the user to run autoupdate, and
3173# then outputs the replacement expansion. We do not care
3174# about autoupdate's warning because that contains
3175# information on what to do *after* running autoupdate.
3176
3177
3178
3179# LT_LIB_M
3180# --------
3181# check for math library
3182# LT_LIB_M
3183
3184# Old name:
3185# This is what autoupdate's m4 run will expand. It fires
3186# the warning (with _au_warn_XXX), outputs it into the
3187# updated configure.ac (with AC_DIAGNOSE), and then outputs
3188# the replacement expansion.
3189
3190
3191# This is an auxiliary macro that is also run when
3192# autoupdate runs m4. It simply calls m4_warning, but
3193# we need a wrapper so that each warning is emitted only
3194# once. We break the quoting in m4_warning's argument in
3195# order to expand this macro's arguments, not AU_DEFUN's.
3196
3197
3198# Finally, this is the expansion that is picked up by
3199# autoconf. It tells the user to run autoupdate, and
3200# then outputs the replacement expansion. We do not care
3201# about autoupdate's warning because that contains
3202# information on what to do *after* running autoupdate.
3203
3204
3205
3206# _LT_COMPILER_NO_RTTI([TAGNAME])
3207# -------------------------------
3208# _LT_COMPILER_NO_RTTI
3209
3210
3211# _LT_CMD_GLOBAL_SYMBOLS
3212# ----------------------
3213 # _LT_CMD_GLOBAL_SYMBOLS
3214
3215
3216# _LT_COMPILER_PIC([TAGNAME])
3217# ---------------------------
3218# _LT_COMPILER_PIC
3219
3220
3221# _LT_LINKER_SHLIBS([TAGNAME])
3222# ----------------------------
3223# See if the linker supports building shared libraries.
3224# _LT_LINKER_SHLIBS
3225
3226
3227# _LT_LANG_C_CONFIG([TAG])
3228# ------------------------
3229# Ensure that the configuration variables for a C compiler are suitably
3230# defined. These variables are subsequently used by _LT_CONFIG to write
3231# the compiler configuration to `libtool'.
3232# _LT_LANG_C_CONFIG
3233
3234
3235# _LT_LANG_CXX_CONFIG([TAG])
3236# --------------------------
3237# Ensure that the configuration variables for a C++ compiler are suitably
3238# defined. These variables are subsequently used by _LT_CONFIG to write
3239# the compiler configuration to `libtool'.
3240# _LT_LANG_CXX_CONFIG
3241
3242
3243# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3244# ---------------------------------
3245# Figure out "hidden" library dependencies from verbose
3246# compiler output when linking a shared library.
3247# Parse the compiler output and extract the necessary
3248# objects, libraries and library flags.
3249# _LT_SYS_HIDDEN_LIBDEPS
3250
3251
3252# _LT_LANG_F77_CONFIG([TAG])
3253# --------------------------
3254# Ensure that the configuration variables for a Fortran 77 compiler are
3255# suitably defined. These variables are subsequently used by _LT_CONFIG
3256# to write the compiler configuration to `libtool'.
3257# _LT_LANG_F77_CONFIG
3258
3259
3260# _LT_LANG_FC_CONFIG([TAG])
3261# -------------------------
3262# Ensure that the configuration variables for a Fortran compiler are
3263# suitably defined. These variables are subsequently used by _LT_CONFIG
3264# to write the compiler configuration to `libtool'.
3265# _LT_LANG_FC_CONFIG
3266
3267
3268# _LT_LANG_GCJ_CONFIG([TAG])
3269# --------------------------
3270# Ensure that the configuration variables for the GNU Java Compiler compiler
3271# are suitably defined. These variables are subsequently used by _LT_CONFIG
3272# to write the compiler configuration to `libtool'.
3273# _LT_LANG_GCJ_CONFIG
3274
3275
3276# _LT_LANG_RC_CONFIG([TAG])
3277# -------------------------
3278# Ensure that the configuration variables for the Windows resource compiler
3279# are suitably defined. These variables are subsequently used by _LT_CONFIG
3280# to write the compiler configuration to `libtool'.
3281# _LT_LANG_RC_CONFIG
3282
3283
3284# LT_PROG_GCJ
3285# -----------
3286
3287
3288# Old name:
3289# This is what autoupdate's m4 run will expand. It fires
3290# the warning (with _au_warn_XXX), outputs it into the
3291# updated configure.ac (with AC_DIAGNOSE), and then outputs
3292# the replacement expansion.
3293
3294
3295# This is an auxiliary macro that is also run when
3296# autoupdate runs m4. It simply calls m4_warning, but
3297# we need a wrapper so that each warning is emitted only
3298# once. We break the quoting in m4_warning's argument in
3299# order to expand this macro's arguments, not AU_DEFUN's.
3300
3301
3302# Finally, this is the expansion that is picked up by
3303# autoconf. It tells the user to run autoupdate, and
3304# then outputs the replacement expansion. We do not care
3305# about autoupdate's warning because that contains
3306# information on what to do *after* running autoupdate.
3307
3308
3309
3310# LT_PROG_RC
3311# ----------
3312
3313
3314# Old name:
3315# This is what autoupdate's m4 run will expand. It fires
3316# the warning (with _au_warn_XXX), outputs it into the
3317# updated configure.ac (with AC_DIAGNOSE), and then outputs
3318# the replacement expansion.
3319
3320
3321# This is an auxiliary macro that is also run when
3322# autoupdate runs m4. It simply calls m4_warning, but
3323# we need a wrapper so that each warning is emitted only
3324# once. We break the quoting in m4_warning's argument in
3325# order to expand this macro's arguments, not AU_DEFUN's.
3326
3327
3328# Finally, this is the expansion that is picked up by
3329# autoconf. It tells the user to run autoupdate, and
3330# then outputs the replacement expansion. We do not care
3331# about autoupdate's warning because that contains
3332# information on what to do *after* running autoupdate.
3333
3334
3335
3336# _LT_DECL_EGREP
3337# --------------
3338# If we don't have a new enough Autoconf to choose the best grep
3339# available, choose the one first in the user's PATH.
3340
3341
3342
3343# _LT_DECL_OBJDUMP
3344# --------------
3345# If we don't have a new enough Autoconf to choose the best objdump
3346# available, choose the one first in the user's PATH.
3347
3348
3349
3350# _LT_DECL_SED
3351# ------------
3352# Check for a fully-functional sed program, that truncates
3353# as few characters as possible. Prefer GNU sed if found.
3354# _LT_DECL_SED
3355
3356#m4_ifndef
3357
3358# Old name:
3359# This is what autoupdate's m4 run will expand. It fires
3360# the warning (with _au_warn_XXX), outputs it into the
3361# updated configure.ac (with AC_DIAGNOSE), and then outputs
3362# the replacement expansion.
3363
3364
3365# This is an auxiliary macro that is also run when
3366# autoupdate runs m4. It simply calls m4_warning, but
3367# we need a wrapper so that each warning is emitted only
3368# once. We break the quoting in m4_warning's argument in
3369# order to expand this macro's arguments, not AU_DEFUN's.
3370
3371
3372# Finally, this is the expansion that is picked up by
3373# autoconf. It tells the user to run autoupdate, and
3374# then outputs the replacement expansion. We do not care
3375# about autoupdate's warning because that contains
3376# information on what to do *after* running autoupdate.
3377
3378
3379
3380# _LT_CHECK_SHELL_FEATURES
3381# ------------------------
3382# Find out whether the shell is Bourne or XSI compatible,
3383# or has some other useful features.
3384# _LT_CHECK_SHELL_FEATURES
3385
3386
3387# _LT_PROG_XSI_SHELLFNS
3388# ---------------------
3389# Bourne and XSI compatible variants of some useful shell functions.
3390
3391
3392# Helper functions for option handling. -*- Autoconf -*-
3393#
3394# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3395# Inc.
3396# Written by Gary V. Vaughan, 2004
3397#
3398# This file is free software; the Free Software Foundation gives
3399# unlimited permission to copy and/or distribute it, with or without
3400# modifications, as long as this notice is preserved.
3401
3402# serial 6 ltoptions.m4
3403
3404# This is to help aclocal find these macros, as it can't see m4_define.
3405
3406
3407
3408# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
3409# ------------------------------------------
3410
3411
3412
3413# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
3414# ---------------------------------------
3415# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
3416# matching handler defined, dispatch to it. Other OPTION-NAMEs are
3417# saved as a flag.
3418
3419
3420
3421# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3422# ------------------------------------------------------------
3423# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3424
3425
3426
3427# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
3428# -------------------------------------------------------
3429# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
3430# are set.
3431
3432
3433
3434# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
3435# ----------------------------------------
3436# OPTION-LIST is a space-separated list of Libtool options associated
3437# with MACRO-NAME. If any OPTION has a matching handler declared with
3438# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
3439# the unknown option and exit.
3440# _LT_SET_OPTIONS
3441
3442
3443## --------------------------------- ##
3444## Macros to handle LT_INIT options. ##
3445## --------------------------------- ##
3446
3447# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
3448# -----------------------------------------
3449
3450
3451
3452# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
3453# -----------------------------------------------
3454# LT_OPTION_DEFINE
3455
3456
3457# dlopen
3458# ------
3459
3460
3461# This is what autoupdate's m4 run will expand. It fires
3462# the warning (with _au_warn_XXX), outputs it into the
3463# updated configure.ac (with AC_DIAGNOSE), and then outputs
3464# the replacement expansion.
3465
3466
3467# This is an auxiliary macro that is also run when
3468# autoupdate runs m4. It simply calls m4_warning, but
3469# we need a wrapper so that each warning is emitted only
3470# once. We break the quoting in m4_warning's argument in
3471# order to expand this macro's arguments, not AU_DEFUN's.
3472
3473
3474# Finally, this is the expansion that is picked up by
3475# autoconf. It tells the user to run autoupdate, and
3476# then outputs the replacement expansion. We do not care
3477# about autoupdate's warning because that contains
3478# information on what to do *after* running autoupdate.
3479
3480
3481
3482
3483# win32-dll
3484# ---------
3485# Declare package support for building win32 dll's.
3486# win32-dll
3487
3488# This is what autoupdate's m4 run will expand. It fires
3489# the warning (with _au_warn_XXX), outputs it into the
3490# updated configure.ac (with AC_DIAGNOSE), and then outputs
3491# the replacement expansion.
3492
3493
3494# This is an auxiliary macro that is also run when
3495# autoupdate runs m4. It simply calls m4_warning, but
3496# we need a wrapper so that each warning is emitted only
3497# once. We break the quoting in m4_warning's argument in
3498# order to expand this macro's arguments, not AU_DEFUN's.
3499
3500
3501# Finally, this is the expansion that is picked up by
3502# autoconf. It tells the user to run autoupdate, and
3503# then outputs the replacement expansion. We do not care
3504# about autoupdate's warning because that contains
3505# information on what to do *after* running autoupdate.
3506
3507
3508
3509
3510# _LT_ENABLE_SHARED([DEFAULT])
3511# ----------------------------
3512# implement the --enable-shared flag, and supports the `shared' and
3513# `disable-shared' LT_INIT options.
3514# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3515# _LT_ENABLE_SHARED
3516
3517
3518
3519
3520# Old names:
3521
3522
3523
3524
3525# This is what autoupdate's m4 run will expand. It fires
3526# the warning (with _au_warn_XXX), outputs it into the
3527# updated configure.ac (with AC_DIAGNOSE), and then outputs
3528# the replacement expansion.
3529
3530
3531# This is an auxiliary macro that is also run when
3532# autoupdate runs m4. It simply calls m4_warning, but
3533# we need a wrapper so that each warning is emitted only
3534# once. We break the quoting in m4_warning's argument in
3535# order to expand this macro's arguments, not AU_DEFUN's.
3536
3537
3538# Finally, this is the expansion that is picked up by
3539# autoconf. It tells the user to run autoupdate, and
3540# then outputs the replacement expansion. We do not care
3541# about autoupdate's warning because that contains
3542# information on what to do *after* running autoupdate.
3543
3544# This is what autoupdate's m4 run will expand. It fires
3545# the warning (with _au_warn_XXX), outputs it into the
3546# updated configure.ac (with AC_DIAGNOSE), and then outputs
3547# the replacement expansion.
3548
3549
3550# This is an auxiliary macro that is also run when
3551# autoupdate runs m4. It simply calls m4_warning, but
3552# we need a wrapper so that each warning is emitted only
3553# once. We break the quoting in m4_warning's argument in
3554# order to expand this macro's arguments, not AU_DEFUN's.
3555
3556
3557# Finally, this is the expansion that is picked up by
3558# autoconf. It tells the user to run autoupdate, and
3559# then outputs the replacement expansion. We do not care
3560# about autoupdate's warning because that contains
3561# information on what to do *after* running autoupdate.
3562
3563
3564
3565
3566
3567# _LT_ENABLE_STATIC([DEFAULT])
3568# ----------------------------
3569# implement the --enable-static flag, and support the `static' and
3570# `disable-static' LT_INIT options.
3571# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3572# _LT_ENABLE_STATIC
3573
3574
3575
3576
3577# Old names:
3578
3579
3580
3581
3582# This is what autoupdate's m4 run will expand. It fires
3583# the warning (with _au_warn_XXX), outputs it into the
3584# updated configure.ac (with AC_DIAGNOSE), and then outputs
3585# the replacement expansion.
3586
3587
3588# This is an auxiliary macro that is also run when
3589# autoupdate runs m4. It simply calls m4_warning, but
3590# we need a wrapper so that each warning is emitted only
3591# once. We break the quoting in m4_warning's argument in
3592# order to expand this macro's arguments, not AU_DEFUN's.
3593
3594
3595# Finally, this is the expansion that is picked up by
3596# autoconf. It tells the user to run autoupdate, and
3597# then outputs the replacement expansion. We do not care
3598# about autoupdate's warning because that contains
3599# information on what to do *after* running autoupdate.
3600
3601# This is what autoupdate's m4 run will expand. It fires
3602# the warning (with _au_warn_XXX), outputs it into the
3603# updated configure.ac (with AC_DIAGNOSE), and then outputs
3604# the replacement expansion.
3605
3606
3607# This is an auxiliary macro that is also run when
3608# autoupdate runs m4. It simply calls m4_warning, but
3609# we need a wrapper so that each warning is emitted only
3610# once. We break the quoting in m4_warning's argument in
3611# order to expand this macro's arguments, not AU_DEFUN's.
3612
3613
3614# Finally, this is the expansion that is picked up by
3615# autoconf. It tells the user to run autoupdate, and
3616# then outputs the replacement expansion. We do not care
3617# about autoupdate's warning because that contains
3618# information on what to do *after* running autoupdate.
3619
3620
3621
3622
3623
3624# _LT_ENABLE_FAST_INSTALL([DEFAULT])
3625# ----------------------------------
3626# implement the --enable-fast-install flag, and support the `fast-install'
3627# and `disable-fast-install' LT_INIT options.
3628# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3629# _LT_ENABLE_FAST_INSTALL
3630
3631
3632
3633
3634# Old names:
3635# This is what autoupdate's m4 run will expand. It fires
3636# the warning (with _au_warn_XXX), outputs it into the
3637# updated configure.ac (with AC_DIAGNOSE), and then outputs
3638# the replacement expansion.
3639
3640
3641# This is an auxiliary macro that is also run when
3642# autoupdate runs m4. It simply calls m4_warning, but
3643# we need a wrapper so that each warning is emitted only
3644# once. We break the quoting in m4_warning's argument in
3645# order to expand this macro's arguments, not AU_DEFUN's.
3646
3647
3648# Finally, this is the expansion that is picked up by
3649# autoconf. It tells the user to run autoupdate, and
3650# then outputs the replacement expansion. We do not care
3651# about autoupdate's warning because that contains
3652# information on what to do *after* running autoupdate.
3653
3654
3655# This is what autoupdate's m4 run will expand. It fires
3656# the warning (with _au_warn_XXX), outputs it into the
3657# updated configure.ac (with AC_DIAGNOSE), and then outputs
3658# the replacement expansion.
3659
3660
3661# This is an auxiliary macro that is also run when
3662# autoupdate runs m4. It simply calls m4_warning, but
3663# we need a wrapper so that each warning is emitted only
3664# once. We break the quoting in m4_warning's argument in
3665# order to expand this macro's arguments, not AU_DEFUN's.
3666
3667
3668# Finally, this is the expansion that is picked up by
3669# autoconf. It tells the user to run autoupdate, and
3670# then outputs the replacement expansion. We do not care
3671# about autoupdate's warning because that contains
3672# information on what to do *after* running autoupdate.
3673
3674
3675
3676
3677# _LT_WITH_PIC([MODE])
3678# --------------------
3679# implement the --with-pic flag, and support the `pic-only' and `no-pic'
3680# LT_INIT options.
3681# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3682# _LT_WITH_PIC
3683
3684
3685
3686
3687# Old name:
3688# This is what autoupdate's m4 run will expand. It fires
3689# the warning (with _au_warn_XXX), outputs it into the
3690# updated configure.ac (with AC_DIAGNOSE), and then outputs
3691# the replacement expansion.
3692
3693
3694# This is an auxiliary macro that is also run when
3695# autoupdate runs m4. It simply calls m4_warning, but
3696# we need a wrapper so that each warning is emitted only
3697# once. We break the quoting in m4_warning's argument in
3698# order to expand this macro's arguments, not AU_DEFUN's.
3699
3700
3701# Finally, this is the expansion that is picked up by
3702# autoconf. It tells the user to run autoupdate, and
3703# then outputs the replacement expansion. We do not care
3704# about autoupdate's warning because that contains
3705# information on what to do *after* running autoupdate.
3706
3707
3708
3709## ----------------- ##
3710## LTDL_INIT Options ##
3711## ----------------- ##
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3723#
3724# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3725# Written by Gary V. Vaughan, 2004
3726#
3727# This file is free software; the Free Software Foundation gives
3728# unlimited permission to copy and/or distribute it, with or without
3729# modifications, as long as this notice is preserved.
3730
3731# serial 6 ltsugar.m4
3732
3733# This is to help aclocal find these macros, as it can't see m4_define.
3734
3735
3736
3737# lt_join(SEP, ARG1, [ARG2...])
3738# -----------------------------
3739# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3740# associated separator.
3741# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3742# versions in m4sugar had bugs.
3743
3744
3745
3746
3747# lt_car(LIST)
3748# lt_cdr(LIST)
3749# ------------
3750# Manipulate m4 lists.
3751# These macros are necessary as long as will still need to support
3752# Autoconf-2.59 which quotes differently.
3753
3754
3755
3756
3757
3758# lt_append(MACRO-NAME, STRING, [SEPARATOR])
3759# ------------------------------------------
3760# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3761# Note that neither SEPARATOR nor STRING are expanded; they are appended
3762# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3763# No SEPARATOR is output if MACRO-NAME was previously undefined (different
3764# than defined and empty).
3765#
3766# This macro is needed until we can rely on Autoconf 2.62, since earlier
3767# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3768
3769
3770
3771
3772# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
3773# ----------------------------------------------------------
3774# Produce a SEP delimited list of all paired combinations of elements of
3775# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
3776# has the form PREFIXmINFIXSUFFIXn.
3777# Needed until we can rely on m4_combine added in Autoconf 2.62.
3778
3779
3780
3781# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
3782# -----------------------------------------------------------------------
3783# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
3784# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
3785
3786
3787
3788# lt_dict_add(DICT, KEY, VALUE)
3789# -----------------------------
3790
3791
3792
3793# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
3794# --------------------------------------------
3795
3796
3797
3798# lt_dict_fetch(DICT, KEY, [SUBKEY])
3799# ----------------------------------
3800
3801
3802
3803# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
3804# -----------------------------------------------------------------
3805
3806
3807
3808# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
3809# --------------------------------------------------------------
3810
3811
3812# ltversion.m4 -- version numbers -*- Autoconf -*-
3813#
3814# Copyright (C) 2004 Free Software Foundation, Inc.
3815# Written by Scott James Remnant, 2004
3816#
3817# This file is free software; the Free Software Foundation gives
3818# unlimited permission to copy and/or distribute it, with or without
3819# modifications, as long as this notice is preserved.
3820
3821# Generated from ltversion.in.
3822
3823# serial 3134 ltversion.m4
3824# This file is part of GNU Libtool
3825
3826
3827
3828
3829
3830
3831# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
3832#
3833# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3834# Written by Scott James Remnant, 2004.
3835#
3836# This file is free software; the Free Software Foundation gives
3837# unlimited permission to copy and/or distribute it, with or without
3838# modifications, as long as this notice is preserved.
3839
3840# serial 4 lt~obsolete.m4
3841
3842# These exist entirely to fool aclocal when bootstrapping libtool.
3843#
3844# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
3845# which have later been changed to m4_define as they aren't part of the
3846# exported API, or moved to Autoconf or Automake where they belong.
3847#
3848# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
3849# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
3850# using a macro with the same name in our local m4/libtool.m4 it'll
3851# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
3852# and doesn't know about Autoconf macros at all.)
3853#
3854# So we provide this file, which has a silly filename so it's always
3855# included after everything else. This provides aclocal with the
3856# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
3857# because those macros already exist, or will be overwritten later.
3858# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
3859#
3860# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3861# Yes, that means every name once taken will need to remain here until
3862# we give up compatibility with versions before 1.7, at which point
3863# we need to keep only those names which we still refer to.
3864
3865# This is to help aclocal find these macros, as it can't see m4_define.
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
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930## -*- Autoconf -*-
3931
3932# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3933# Free Software Foundation, Inc.
3934#
3935# This file is free software; the Free Software Foundation
3936# gives unlimited permission to copy and/or distribute it,
3937# with or without modifications, as long as this notice is preserved.
3938
3939# serial 8
3940
3941# Based on depend.m4 from automake 1.9, modified for standalone use in
3942# an environment where GNU make is required.
3943
3944# ZW_PROG_COMPILER_DEPENDENCIES
3945# -----------------------------
3946# Variant of _AM_DEPENDENCIES which just does the dependency probe and
3947# sets fooDEPMODE accordingly. Cache-variable compatible with
3948# original; not side-effect compatible. As the users of this macro
3949# may require accurate dependencies for correct builds, it does *not*
3950# honor --disable-dependency-checking, and failure to detect a usable
3951# method is an error. depcomp is assumed to be located in
3952# $ac_aux_dir.
3953#
3954# FIXME: Should use the Autoconf 2.5x language-selection mechanism.
3955
3956
3957
3958# AM_SET_DEPDIR
3959# -------------
3960# Choose a directory name for dependency files.
3961
3962
3963# ZW_CREATE_DEPDIR
3964# ----------------
3965# As AM_SET_DEPDIR, but also create the directory at config.status time.
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
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
6bb11ab3
L
4007
4008
4009
4010
4011
6bb11ab3
L
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
6bb11ab3
L
4027
4028
4029
4030
4031
4032# intl sister-directory configuration rules.
4033#
4034
4035# The idea behind this macro is that there's no need to repeat all the
4036# autoconf probes done by the intl directory - it's already done them
4037# for us. In fact, there's no need even to look at the cache for the
4038# answers. All we need to do is nab a few pieces of information.
4039# The intl directory is set up to make this easy, by generating a
4040# small file which can be sourced as a shell script; then we produce
4041# the necessary substitutions and definitions for this directory.
4042
4043
4044
4045# Autoconf M4 include file defining utility macros for complex Canadian
4046# cross builds.
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056####
4057# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
4058# or AC_INIT.
4059# These demand that AC_CANONICAL_SYSTEM be called beforehand.
4060
4061####
4062# NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4063# Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
4064
4065
4066####
4067# NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4068# Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
4069
4070
4071
4072# Backported from Autoconf 2.5x; can go away when and if
4073# we switch. Put the OS path separator in $PATH_SEPARATOR.
4074
4075
4076
4077
37f980dc
SM
4078
4079
4080
4081
6bb11ab3
L
4082# ACX_HAVE_GCC_FOR_TARGET
4083# Check if the variable GCC_FOR_TARGET really points to a GCC binary.
4084
4085
4086# ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
4087# Searching for installed target binutils. We need to take extra care,
4088# else we may find the wrong assembler, linker, etc., and lose.
4089#
4090# First try --with-build-time-tools, if specified.
4091#
4092# For build != host, we ask the installed GCC for the name of the tool it
4093# uses, and accept it if it is an absolute path. This is because the
4094# only good choice for a compiler is the same GCC version that is being
4095# installed (or we couldn't make target libraries), and we assume that
4096# on the host system we'll have not only the same GCC version, but also
4097# the same binutils version.
4098#
4099# For build == host, search the same directories that the installed
4100# compiler will search. We used to do this for the assembler, linker,
4101# and nm only; for simplicity of configuration, however, we extend this
4102# criterion to tools (such as ar and ranlib) that are never invoked by
4103# the compiler, to avoid mismatches.
4104#
4105# Also note we have to check MD_EXEC_PREFIX before checking the user's path
4106# if build == target. This makes the most sense only when bootstrapping,
4107# but we also do so when build != host. In this case, we hope that the
4108# build and host systems will have similar contents of MD_EXEC_PREFIX.
4109#
4110# If we do not find a suitable binary, then try the user's path.
4111
4112
4113###
4114# AC_PROG_CPP_WERROR
4115# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
4116# triggers warnings from the preprocessor. Will be in autoconf 2.58.
4117# For now, using this also overrides header checks to use only the
4118# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
4119# bit harder from here).
4120# Eventually autoconf will default to checking headers with the compiler
4121# instead, and we'll have to do this differently.
4122
4123# AC_PROG_CPP_WERROR
4124
4125# Test for GNAT.
4126# We require the gnatbind & gnatmake programs, as well as a compiler driver
4127# that understands Ada. We use the user's CC setting, already found, and
4128# possibly add $1 to the command-line parameters.
4129#
4130# Sets the shell variable have_gnat to yes or no as appropriate, and
4131# substitutes GNATBIND and GNATMAKE.
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157ac_ext=c
4158ac_cpp='$CPP $CPPFLAGS'
4159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162if test -n "$ac_tool_prefix"; then
4163 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4164set dummy ${ac_tool_prefix}gcc; ac_word=$2
4165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4167if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
4168 $as_echo_n "(cached) " >&6
4169else
4170 if test -n "$CC"; then
4171 ac_cv_prog_CC="$CC" # Let the user override the test.
4172else
4173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174for as_dir in $PATH
4175do
4176 IFS=$as_save_IFS
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4180 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 break 2
4183 fi
4184done
4185 done
4186IFS=$as_save_IFS
4187
4188fi
4189fi
4190CC=$ac_cv_prog_CC
4191if test -n "$CC"; then
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4193$as_echo "$CC" >&6; }
4194else
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196$as_echo "no" >&6; }
4197fi
4198
4199
4200fi
4201if test -z "$ac_cv_prog_CC"; then
4202 ac_ct_CC=$CC
4203 # Extract the first word of "gcc", so it can be a program name with args.
4204set dummy gcc; ac_word=$2
4205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4207if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
4208 $as_echo_n "(cached) " >&6
4209else
4210 if test -n "$ac_ct_CC"; then
4211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4212else
4213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214for as_dir in $PATH
4215do
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4220 ac_cv_prog_ac_ct_CC="gcc"
4221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 break 2
4223 fi
4224done
4225 done
4226IFS=$as_save_IFS
4227
4228fi
4229fi
4230ac_ct_CC=$ac_cv_prog_ac_ct_CC
4231if test -n "$ac_ct_CC"; then
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4233$as_echo "$ac_ct_CC" >&6; }
4234else
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236$as_echo "no" >&6; }
4237fi
4238
4239 if test "x$ac_ct_CC" = x; then
4240 CC=""
4241 else
4242 case $cross_compiling:$ac_tool_warned in
4243yes:)
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4246ac_tool_warned=yes ;;
4247esac
4248 CC=$ac_ct_CC
4249 fi
4250else
4251 CC="$ac_cv_prog_CC"
4252fi
4253
4254if test -z "$CC"; then
4255 if test -n "$ac_tool_prefix"; then
4256 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4257set dummy ${ac_tool_prefix}cc; ac_word=$2
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4260if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
4261 $as_echo_n "(cached) " >&6
4262else
4263 if test -n "$CC"; then
4264 ac_cv_prog_CC="$CC" # Let the user override the test.
4265else
4266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH
4268do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4273 ac_cv_prog_CC="${ac_tool_prefix}cc"
4274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4276 fi
4277done
4278 done
4279IFS=$as_save_IFS
4280
4281fi
4282fi
4283CC=$ac_cv_prog_CC
4284if test -n "$CC"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4286$as_echo "$CC" >&6; }
4287else
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289$as_echo "no" >&6; }
4290fi
4291
4292
4293 fi
4294fi
4295if test -z "$CC"; then
4296 # Extract the first word of "cc", so it can be a program name with args.
4297set dummy cc; ac_word=$2
4298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4299$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4300if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
4301 $as_echo_n "(cached) " >&6
4302else
4303 if test -n "$CC"; then
4304 ac_cv_prog_CC="$CC" # Let the user override the test.
4305else
4306 ac_prog_rejected=no
4307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308for as_dir in $PATH
4309do
4310 IFS=$as_save_IFS
4311 test -z "$as_dir" && as_dir=.
4312 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4314 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4315 ac_prog_rejected=yes
4316 continue
4317 fi
4318 ac_cv_prog_CC="cc"
4319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 break 2
4321 fi
4322done
4323 done
4324IFS=$as_save_IFS
4325
4326if test $ac_prog_rejected = yes; then
4327 # We found a bogon in the path, so make sure we never use it.
4328 set dummy $ac_cv_prog_CC
4329 shift
4330 if test $# != 0; then
4331 # We chose a different compiler from the bogus one.
4332 # However, it has the same basename, so the bogon will be chosen
4333 # first if we set CC to just the basename; use the full file name.
4334 shift
4335 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4336 fi
4337fi
4338fi
4339fi
4340CC=$ac_cv_prog_CC
4341if test -n "$CC"; then
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4343$as_echo "$CC" >&6; }
4344else
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4346$as_echo "no" >&6; }
4347fi
4348
4349
4350fi
4351if test -z "$CC"; then
4352 if test -n "$ac_tool_prefix"; then
4353 for ac_prog in cl.exe
4354 do
4355 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4356set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4359if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
4360 $as_echo_n "(cached) " >&6
4361else
4362 if test -n "$CC"; then
4363 ac_cv_prog_CC="$CC" # Let the user override the test.
4364else
4365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366for as_dir in $PATH
4367do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4372 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4375 fi
4376done
4377 done
4378IFS=$as_save_IFS
4379
4380fi
4381fi
4382CC=$ac_cv_prog_CC
4383if test -n "$CC"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4385$as_echo "$CC" >&6; }
4386else
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388$as_echo "no" >&6; }
4389fi
4390
4391
4392 test -n "$CC" && break
4393 done
4394fi
4395if test -z "$CC"; then
4396 ac_ct_CC=$CC
4397 for ac_prog in cl.exe
4398do
4399 # Extract the first word of "$ac_prog", so it can be a program name with args.
4400set dummy $ac_prog; ac_word=$2
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4403if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
4404 $as_echo_n "(cached) " >&6
4405else
4406 if test -n "$ac_ct_CC"; then
4407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4408else
4409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410for as_dir in $PATH
4411do
4412 IFS=$as_save_IFS
4413 test -z "$as_dir" && as_dir=.
4414 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4416 ac_cv_prog_ac_ct_CC="$ac_prog"
4417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4418 break 2
4419 fi
4420done
4421 done
4422IFS=$as_save_IFS
4423
4424fi
4425fi
4426ac_ct_CC=$ac_cv_prog_ac_ct_CC
4427if test -n "$ac_ct_CC"; then
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4429$as_echo "$ac_ct_CC" >&6; }
4430else
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432$as_echo "no" >&6; }
4433fi
4434
4435
4436 test -n "$ac_ct_CC" && break
4437done
4438
4439 if test "x$ac_ct_CC" = x; then
4440 CC=""
4441 else
4442 case $cross_compiling:$ac_tool_warned in
4443yes:)
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4446ac_tool_warned=yes ;;
4447esac
4448 CC=$ac_ct_CC
4449 fi
4450fi
4451
4452fi
4453
4454
4455test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4457as_fn_error $? "no acceptable C compiler found in \$PATH
4458See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
4459
4460# Provide some information about the compiler.
4461$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4462set X $ac_compile
4463ac_compiler=$2
4464for ac_option in --version -v -V -qversion; do
4465 { { ac_try="$ac_compiler $ac_option >&5"
4466case "(($ac_try" in
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4469esac
4470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4471$as_echo "$ac_try_echo"; } >&5
4472 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4473 ac_status=$?
4474 if test -s conftest.err; then
4475 sed '10a\
4476... rest of stderr output deleted ...
4477 10q' conftest.err >conftest.er1
4478 cat conftest.er1 >&5
6bb11ab3 4479 fi
d0ac1c44 4480 rm -f conftest.er1 conftest.err
6bb11ab3
L
4481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4482 test $ac_status = 0; }
4483done
4484
4485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486/* end confdefs.h. */
4487
4488int
4489main ()
4490{
4491
4492 ;
4493 return 0;
4494}
4495_ACEOF
4496ac_clean_files_save=$ac_clean_files
d0ac1c44 4497ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6bb11ab3
L
4498# Try to create an executable without -o first, disregard a.out.
4499# It will help us diagnose broken compilers, and finding out an intuition
4500# of exeext.
d0ac1c44
SM
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4502$as_echo_n "checking whether the C compiler works... " >&6; }
6bb11ab3
L
4503ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4504
4505# The possible output files:
4506ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4507
4508ac_rmfiles=
4509for ac_file in $ac_files
4510do
4511 case $ac_file in
4512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4513 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4514 esac
4515done
4516rm -f $ac_rmfiles
4517
4518if { { ac_try="$ac_link_default"
4519case "(($ac_try" in
4520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4522esac
4523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4524$as_echo "$ac_try_echo"; } >&5
4525 (eval "$ac_link_default") 2>&5
4526 ac_status=$?
4527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4528 test $ac_status = 0; }; then :
4529 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4530# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4531# in a Makefile. We should not override ac_cv_exeext if it was cached,
4532# so that the user can short-circuit this test for compilers unknown to
4533# Autoconf.
4534for ac_file in $ac_files ''
4535do
4536 test -f "$ac_file" || continue
4537 case $ac_file in
4538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4539 ;;
4540 [ab].out )
4541 # We found the default executable, but exeext='' is most
4542 # certainly right.
4543 break;;
4544 *.* )
4545 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4546 then :; else
4547 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4548 fi
4549 # We set ac_cv_exeext here because the later test for it is not
4550 # safe: cross compilers may not add the suffix if given an `-o'
4551 # argument, so we may need to know it at that point already.
4552 # Even if this section looks crufty: it has the advantage of
4553 # actually working.
4554 break;;
4555 * )
4556 break;;
4557 esac
4558done
4559test "$ac_cv_exeext" = no && ac_cv_exeext=
4560
4561else
4562 ac_file=''
4563fi
6bb11ab3 4564if test -z "$ac_file"; then :
d0ac1c44
SM
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566$as_echo "no" >&6; }
4567$as_echo "$as_me: failed program was:" >&5
6bb11ab3
L
4568sed 's/^/| /' conftest.$ac_ext >&5
4569
4570{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4572as_fn_error 77 "C compiler cannot create executables
4573See \`config.log' for more details" "$LINENO" 5; }
4574else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4576$as_echo "yes" >&6; }
6bb11ab3 4577fi
d0ac1c44
SM
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4579$as_echo_n "checking for C compiler default output file name... " >&6; }
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4581$as_echo "$ac_file" >&6; }
6bb11ab3
L
4582ac_exeext=$ac_cv_exeext
4583
d0ac1c44 4584rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6bb11ab3 4585ac_clean_files=$ac_clean_files_save
6bb11ab3
L
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4587$as_echo_n "checking for suffix of executables... " >&6; }
4588if { { ac_try="$ac_link"
4589case "(($ac_try" in
4590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591 *) ac_try_echo=$ac_try;;
4592esac
4593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4594$as_echo "$ac_try_echo"; } >&5
4595 (eval "$ac_link") 2>&5
4596 ac_status=$?
4597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4598 test $ac_status = 0; }; then :
4599 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4600# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4601# work properly (i.e., refer to `conftest.exe'), while it won't with
4602# `rm'.
4603for ac_file in conftest.exe conftest conftest.*; do
4604 test -f "$ac_file" || continue
4605 case $ac_file in
4606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4607 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4608 break;;
4609 * ) break;;
4610 esac
4611done
4612else
4613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4615as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4616See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3 4617fi
d0ac1c44 4618rm -f conftest conftest$ac_cv_exeext
6bb11ab3
L
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4620$as_echo "$ac_cv_exeext" >&6; }
4621
4622rm -f conftest.$ac_ext
4623EXEEXT=$ac_cv_exeext
4624ac_exeext=$EXEEXT
d0ac1c44
SM
4625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626/* end confdefs.h. */
4627#include <stdio.h>
4628int
4629main ()
4630{
4631FILE *f = fopen ("conftest.out", "w");
4632 return ferror (f) || fclose (f) != 0;
4633
4634 ;
4635 return 0;
4636}
4637_ACEOF
4638ac_clean_files="$ac_clean_files conftest.out"
4639# Check that the compiler produces executables we can run. If not, either
4640# the compiler is broken, or we cross compile.
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4642$as_echo_n "checking whether we are cross compiling... " >&6; }
4643if test "$cross_compiling" != yes; then
4644 { { ac_try="$ac_link"
4645case "(($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_link") 2>&5
4652 ac_status=$?
4653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4654 test $ac_status = 0; }
4655 if { ac_try='./conftest$ac_cv_exeext'
4656 { { case "(($ac_try" in
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4659esac
4660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4661$as_echo "$ac_try_echo"; } >&5
4662 (eval "$ac_try") 2>&5
4663 ac_status=$?
4664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4665 test $ac_status = 0; }; }; then
4666 cross_compiling=no
4667 else
4668 if test "$cross_compiling" = maybe; then
4669 cross_compiling=yes
4670 else
4671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4673as_fn_error $? "cannot run C compiled programs.
4674If you meant to cross compile, use \`--host'.
4675See \`config.log' for more details" "$LINENO" 5; }
4676 fi
4677 fi
4678fi
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4680$as_echo "$cross_compiling" >&6; }
4681
4682rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4683ac_clean_files=$ac_clean_files_save
6bb11ab3
L
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4685$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 4686if ${ac_cv_objext+:} false; then :
6bb11ab3
L
4687 $as_echo_n "(cached) " >&6
4688else
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690/* end confdefs.h. */
4691
4692int
4693main ()
4694{
4695
4696 ;
4697 return 0;
4698}
4699_ACEOF
4700rm -f conftest.o conftest.obj
4701if { { ac_try="$ac_compile"
4702case "(($ac_try" in
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4705esac
4706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4707$as_echo "$ac_try_echo"; } >&5
4708 (eval "$ac_compile") 2>&5
4709 ac_status=$?
4710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4711 test $ac_status = 0; }; then :
4712 for ac_file in conftest.o conftest.obj conftest.*; do
4713 test -f "$ac_file" || continue;
4714 case $ac_file in
4715 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4716 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4717 break;;
4718 esac
4719done
4720else
4721 $as_echo "$as_me: failed program was:" >&5
4722sed 's/^/| /' conftest.$ac_ext >&5
4723
4724{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4725$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4726as_fn_error $? "cannot compute suffix of object files: cannot compile
4727See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
4728fi
4729rm -f conftest.$ac_cv_objext conftest.$ac_ext
4730fi
4731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4732$as_echo "$ac_cv_objext" >&6; }
4733OBJEXT=$ac_cv_objext
4734ac_objext=$OBJEXT
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4736$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4737if ${ac_cv_c_compiler_gnu+:} false; then :
6bb11ab3
L
4738 $as_echo_n "(cached) " >&6
4739else
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741/* end confdefs.h. */
4742
4743int
4744main ()
4745{
4746#ifndef __GNUC__
4747 choke me
4748#endif
4749
4750 ;
4751 return 0;
4752}
4753_ACEOF
4754if ac_fn_c_try_compile "$LINENO"; then :
4755 ac_compiler_gnu=yes
4756else
4757 ac_compiler_gnu=no
4758fi
4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760ac_cv_c_compiler_gnu=$ac_compiler_gnu
4761
4762fi
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4764$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4765if test $ac_compiler_gnu = yes; then
4766 GCC=yes
4767else
4768 GCC=
4769fi
4770ac_test_CFLAGS=${CFLAGS+set}
4771ac_save_CFLAGS=$CFLAGS
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4773$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4774if ${ac_cv_prog_cc_g+:} false; then :
6bb11ab3
L
4775 $as_echo_n "(cached) " >&6
4776else
4777 ac_save_c_werror_flag=$ac_c_werror_flag
4778 ac_c_werror_flag=yes
4779 ac_cv_prog_cc_g=no
4780 CFLAGS="-g"
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782/* end confdefs.h. */
4783
4784int
4785main ()
4786{
4787
4788 ;
4789 return 0;
4790}
4791_ACEOF
4792if ac_fn_c_try_compile "$LINENO"; then :
4793 ac_cv_prog_cc_g=yes
4794else
4795 CFLAGS=""
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797/* end confdefs.h. */
4798
4799int
4800main ()
4801{
4802
4803 ;
4804 return 0;
4805}
4806_ACEOF
4807if ac_fn_c_try_compile "$LINENO"; then :
4808
4809else
4810 ac_c_werror_flag=$ac_save_c_werror_flag
4811 CFLAGS="-g"
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813/* end confdefs.h. */
4814
4815int
4816main ()
4817{
4818
4819 ;
4820 return 0;
4821}
4822_ACEOF
4823if ac_fn_c_try_compile "$LINENO"; then :
4824 ac_cv_prog_cc_g=yes
4825fi
4826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827fi
4828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829fi
4830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831 ac_c_werror_flag=$ac_save_c_werror_flag
4832fi
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4834$as_echo "$ac_cv_prog_cc_g" >&6; }
4835if test "$ac_test_CFLAGS" = set; then
4836 CFLAGS=$ac_save_CFLAGS
4837elif test $ac_cv_prog_cc_g = yes; then
4838 if test "$GCC" = yes; then
4839 CFLAGS="-g -O2"
4840 else
4841 CFLAGS="-g"
4842 fi
4843else
4844 if test "$GCC" = yes; then
4845 CFLAGS="-O2"
4846 else
4847 CFLAGS=
4848 fi
4849fi
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4851$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4852if ${ac_cv_prog_cc_c89+:} false; then :
6bb11ab3
L
4853 $as_echo_n "(cached) " >&6
4854else
4855 ac_cv_prog_cc_c89=no
4856ac_save_CC=$CC
4857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858/* end confdefs.h. */
4859#include <stdarg.h>
4860#include <stdio.h>
d0ac1c44 4861struct stat;
6bb11ab3
L
4862/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4863struct buf { int x; };
4864FILE * (*rcsopen) (struct buf *, struct stat *, int);
4865static char *e (p, i)
4866 char **p;
4867 int i;
4868{
4869 return p[i];
4870}
4871static char *f (char * (*g) (char **, int), char **p, ...)
4872{
4873 char *s;
4874 va_list v;
4875 va_start (v,p);
4876 s = g (p, va_arg (v,int));
4877 va_end (v);
4878 return s;
4879}
4880
4881/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4882 function prototypes and stuff, but not '\xHH' hex character constants.
4883 These don't provoke an error unfortunately, instead are silently treated
4884 as 'x'. The following induces an error, until -std is added to get
4885 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4886 array size at least. It's necessary to write '\x00'==0 to get something
4887 that's true only with -std. */
4888int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4889
4890/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4891 inside strings and character constants. */
4892#define FOO(x) 'x'
4893int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4894
4895int test (int i, double x);
4896struct s1 {int (*f) (int a);};
4897struct s2 {int (*f) (double a);};
4898int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4899int argc;
4900char **argv;
4901int
4902main ()
4903{
4904return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4905 ;
4906 return 0;
4907}
4908_ACEOF
4909for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4910 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4911do
4912 CC="$ac_save_CC $ac_arg"
4913 if ac_fn_c_try_compile "$LINENO"; then :
4914 ac_cv_prog_cc_c89=$ac_arg
4915fi
4916rm -f core conftest.err conftest.$ac_objext
4917 test "x$ac_cv_prog_cc_c89" != "xno" && break
4918done
4919rm -f conftest.$ac_ext
4920CC=$ac_save_CC
4921
4922fi
4923# AC_CACHE_VAL
4924case "x$ac_cv_prog_cc_c89" in
4925 x)
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4927$as_echo "none needed" >&6; } ;;
4928 xno)
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4930$as_echo "unsupported" >&6; } ;;
4931 *)
4932 CC="$CC $ac_cv_prog_cc_c89"
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4934$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4935esac
4936if test "x$ac_cv_prog_cc_c89" != xno; then :
4937
4938fi
4939
4940ac_ext=c
4941ac_cpp='$CPP $CPPFLAGS'
4942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944ac_compiler_gnu=$ac_cv_c_compiler_gnu
4945
4946ac_aux_dir=
4947for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
4948 if test -f "$ac_dir/install-sh"; then
4949 ac_aux_dir=$ac_dir
4950 ac_install_sh="$ac_aux_dir/install-sh -c"
4951 break
4952 elif test -f "$ac_dir/install.sh"; then
4953 ac_aux_dir=$ac_dir
4954 ac_install_sh="$ac_aux_dir/install.sh -c"
4955 break
4956 elif test -f "$ac_dir/shtool"; then
4957 ac_aux_dir=$ac_dir
4958 ac_install_sh="$ac_aux_dir/shtool install -c"
4959 break
4960 fi
6bb11ab3
L
4961done
4962if test -z "$ac_aux_dir"; then
d0ac1c44 4963 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6bb11ab3
L
4964fi
4965
4966# These three variables are undocumented and unsupported,
4967# and are intended to be withdrawn in a future Autoconf release.
4968# They can cause serious problems if a builder's source tree is in a directory
4969# whose full name contains unusual characters.
4970ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4971ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4972ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4973
4974
4975# Make sure we can run config.sub.
4976$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 4977 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6bb11ab3
L
4978
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4980$as_echo_n "checking build system type... " >&6; }
d0ac1c44 4981if ${ac_cv_build+:} false; then :
6bb11ab3
L
4982 $as_echo_n "(cached) " >&6
4983else
4984 ac_build_alias=$build_alias
4985test "x$ac_build_alias" = x &&
4986 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4987test "x$ac_build_alias" = x &&
d0ac1c44 4988 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6bb11ab3 4989ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 4990 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6bb11ab3
L
4991
4992fi
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4994$as_echo "$ac_cv_build" >&6; }
4995case $ac_cv_build in
4996*-*-*) ;;
d0ac1c44 4997*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6bb11ab3
L
4998esac
4999build=$ac_cv_build
5000ac_save_IFS=$IFS; IFS='-'
5001set x $ac_cv_build
5002shift
5003build_cpu=$1
5004build_vendor=$2
5005shift; shift
5006# Remember, the first character of IFS is used to create $*,
5007# except with old shells:
5008build_os=$*
5009IFS=$ac_save_IFS
5010case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5011
5012
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5014$as_echo_n "checking host system type... " >&6; }
d0ac1c44 5015if ${ac_cv_host+:} false; then :
6bb11ab3
L
5016 $as_echo_n "(cached) " >&6
5017else
5018 if test "x$host_alias" = x; then
5019 ac_cv_host=$ac_cv_build
5020else
5021 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 5022 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6bb11ab3
L
5023fi
5024
5025fi
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5027$as_echo "$ac_cv_host" >&6; }
5028case $ac_cv_host in
5029*-*-*) ;;
d0ac1c44 5030*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6bb11ab3
L
5031esac
5032host=$ac_cv_host
5033ac_save_IFS=$IFS; IFS='-'
5034set x $ac_cv_host
5035shift
5036host_cpu=$1
5037host_vendor=$2
5038shift; shift
5039# Remember, the first character of IFS is used to create $*,
5040# except with old shells:
5041host_os=$*
5042IFS=$ac_save_IFS
5043case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5044
5045
5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5047$as_echo_n "checking target system type... " >&6; }
d0ac1c44 5048if ${ac_cv_target+:} false; then :
6bb11ab3
L
5049 $as_echo_n "(cached) " >&6
5050else
5051 if test "x$target_alias" = x; then
5052 ac_cv_target=$ac_cv_host
5053else
5054 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 5055 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6bb11ab3
L
5056fi
5057
5058fi
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5060$as_echo "$ac_cv_target" >&6; }
5061case $ac_cv_target in
5062*-*-*) ;;
d0ac1c44 5063*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6bb11ab3
L
5064esac
5065target=$ac_cv_target
5066ac_save_IFS=$IFS; IFS='-'
5067set x $ac_cv_target
5068shift
5069target_cpu=$1
5070target_vendor=$2
5071shift; shift
5072# Remember, the first character of IFS is used to create $*,
5073# except with old shells:
5074target_os=$*
5075IFS=$ac_save_IFS
5076case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5077
5078
5079# The aliases save the names the user supplied, while $host etc.
5080# will get canonicalized.
5081test -n "$target_alias" &&
5082 test "$program_prefix$program_suffix$program_transform_name" = \
5083 NONENONEs,x,x, &&
5084 program_prefix=${target_alias}-
5085
5086ac_ext=c
5087ac_cpp='$CPP $CPPFLAGS'
5088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090ac_compiler_gnu=$ac_cv_c_compiler_gnu
5091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5092$as_echo_n "checking how to run the C preprocessor... " >&6; }
5093# On Suns, sometimes $CPP names a directory.
5094if test -n "$CPP" && test -d "$CPP"; then
5095 CPP=
5096fi
5097if test -z "$CPP"; then
d0ac1c44 5098 if ${ac_cv_prog_CPP+:} false; then :
6bb11ab3
L
5099 $as_echo_n "(cached) " >&6
5100else
5101 # Double quotes because CPP needs to be expanded
5102 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5103 do
5104 ac_preproc_ok=false
5105for ac_c_preproc_warn_flag in '' yes
5106do
5107 # Use a header file that comes with gcc, so configuring glibc
5108 # with a fresh cross-compiler works.
5109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110 # <limits.h> exists even on freestanding compilers.
5111 # On the NeXT, cc -E runs the code through the compiler's parser,
5112 # not just through cpp. "Syntax error" is here to catch this case.
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114/* end confdefs.h. */
5115#ifdef __STDC__
5116# include <limits.h>
5117#else
5118# include <assert.h>
5119#endif
5120 Syntax error
5121_ACEOF
5122if ac_fn_c_try_cpp "$LINENO"; then :
5123
5124else
5125 # Broken: fails on valid input.
5126continue
5127fi
d0ac1c44 5128rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
5129
5130 # OK, works on sane cases. Now check whether nonexistent headers
5131 # can be detected and how.
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133/* end confdefs.h. */
5134#include <ac_nonexistent.h>
5135_ACEOF
5136if ac_fn_c_try_cpp "$LINENO"; then :
5137 # Broken: success on invalid input.
5138continue
5139else
5140 # Passes both tests.
5141ac_preproc_ok=:
5142break
5143fi
d0ac1c44 5144rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
5145
5146done
5147# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5148rm -f conftest.i conftest.err conftest.$ac_ext
6bb11ab3
L
5149if $ac_preproc_ok; then :
5150 break
5151fi
5152
5153 done
5154 ac_cv_prog_CPP=$CPP
5155
5156fi
5157 CPP=$ac_cv_prog_CPP
5158else
5159 ac_cv_prog_CPP=$CPP
5160fi
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5162$as_echo "$CPP" >&6; }
5163ac_preproc_ok=false
5164for ac_c_preproc_warn_flag in '' yes
5165do
5166 # Use a header file that comes with gcc, so configuring glibc
5167 # with a fresh cross-compiler works.
5168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169 # <limits.h> exists even on freestanding compilers.
5170 # On the NeXT, cc -E runs the code through the compiler's parser,
5171 # not just through cpp. "Syntax error" is here to catch this case.
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173/* end confdefs.h. */
5174#ifdef __STDC__
5175# include <limits.h>
5176#else
5177# include <assert.h>
5178#endif
5179 Syntax error
5180_ACEOF
5181if ac_fn_c_try_cpp "$LINENO"; then :
5182
5183else
5184 # Broken: fails on valid input.
5185continue
5186fi
d0ac1c44 5187rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
5188
5189 # OK, works on sane cases. Now check whether nonexistent headers
5190 # can be detected and how.
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192/* end confdefs.h. */
5193#include <ac_nonexistent.h>
5194_ACEOF
5195if ac_fn_c_try_cpp "$LINENO"; then :
5196 # Broken: success on invalid input.
5197continue
5198else
5199 # Passes both tests.
5200ac_preproc_ok=:
5201break
5202fi
d0ac1c44 5203rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
5204
5205done
5206# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5207rm -f conftest.i conftest.err conftest.$ac_ext
6bb11ab3
L
5208if $ac_preproc_ok; then :
5209
5210else
5211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
5213as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5214See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
5215fi
5216
5217ac_ext=c
5218ac_cpp='$CPP $CPPFLAGS'
5219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221ac_compiler_gnu=$ac_cv_c_compiler_gnu
5222
5223
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5225$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 5226if ${ac_cv_path_GREP+:} false; then :
6bb11ab3
L
5227 $as_echo_n "(cached) " >&6
5228else
5229 if test -z "$GREP"; then
5230 ac_path_GREP_found=false
5231 # Loop through the user's path and test for each of PROGNAME-LIST
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5234do
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_prog in grep ggrep; do
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5240 as_fn_executable_p "$ac_path_GREP" || continue
6bb11ab3
L
5241# Check for GNU ac_path_GREP and select it if it is found.
5242 # Check for GNU $ac_path_GREP
5243case `"$ac_path_GREP" --version 2>&1` in
5244*GNU*)
5245 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5246*)
5247 ac_count=0
5248 $as_echo_n 0123456789 >"conftest.in"
5249 while :
5250 do
5251 cat "conftest.in" "conftest.in" >"conftest.tmp"
5252 mv "conftest.tmp" "conftest.in"
5253 cp "conftest.in" "conftest.nl"
5254 $as_echo 'GREP' >> "conftest.nl"
5255 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5257 as_fn_arith $ac_count + 1 && ac_count=$as_val
5258 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5259 # Best one so far, save it but keep looking for a better one
5260 ac_cv_path_GREP="$ac_path_GREP"
5261 ac_path_GREP_max=$ac_count
5262 fi
5263 # 10*(2^10) chars as input seems more than enough
5264 test $ac_count -gt 10 && break
5265 done
5266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5267esac
5268
5269 $ac_path_GREP_found && break 3
5270 done
5271 done
5272 done
5273IFS=$as_save_IFS
5274 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 5275 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
5276 fi
5277else
5278 ac_cv_path_GREP=$GREP
5279fi
5280
5281fi
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5283$as_echo "$ac_cv_path_GREP" >&6; }
5284 GREP="$ac_cv_path_GREP"
5285
5286
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5288$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 5289if ${ac_cv_path_EGREP+:} false; then :
6bb11ab3
L
5290 $as_echo_n "(cached) " >&6
5291else
5292 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5293 then ac_cv_path_EGREP="$GREP -E"
5294 else
5295 if test -z "$EGREP"; then
5296 ac_path_EGREP_found=false
5297 # Loop through the user's path and test for each of PROGNAME-LIST
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5300do
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 for ac_prog in egrep; do
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5306 as_fn_executable_p "$ac_path_EGREP" || continue
6bb11ab3
L
5307# Check for GNU ac_path_EGREP and select it if it is found.
5308 # Check for GNU $ac_path_EGREP
5309case `"$ac_path_EGREP" --version 2>&1` in
5310*GNU*)
5311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5312*)
5313 ac_count=0
5314 $as_echo_n 0123456789 >"conftest.in"
5315 while :
5316 do
5317 cat "conftest.in" "conftest.in" >"conftest.tmp"
5318 mv "conftest.tmp" "conftest.in"
5319 cp "conftest.in" "conftest.nl"
5320 $as_echo 'EGREP' >> "conftest.nl"
5321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5323 as_fn_arith $ac_count + 1 && ac_count=$as_val
5324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5325 # Best one so far, save it but keep looking for a better one
5326 ac_cv_path_EGREP="$ac_path_EGREP"
5327 ac_path_EGREP_max=$ac_count
5328 fi
5329 # 10*(2^10) chars as input seems more than enough
5330 test $ac_count -gt 10 && break
5331 done
5332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5333esac
5334
5335 $ac_path_EGREP_found && break 3
5336 done
5337 done
5338 done
5339IFS=$as_save_IFS
5340 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 5341 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
5342 fi
5343else
5344 ac_cv_path_EGREP=$EGREP
5345fi
5346
5347 fi
5348fi
5349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5350$as_echo "$ac_cv_path_EGREP" >&6; }
5351 EGREP="$ac_cv_path_EGREP"
5352
5353
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5355$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 5356if ${ac_cv_header_stdc+:} false; then :
6bb11ab3
L
5357 $as_echo_n "(cached) " >&6
5358else
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360/* end confdefs.h. */
5361#include <stdlib.h>
5362#include <stdarg.h>
5363#include <string.h>
5364#include <float.h>
5365
5366int
5367main ()
5368{
5369
5370 ;
5371 return 0;
5372}
5373_ACEOF
5374if ac_fn_c_try_compile "$LINENO"; then :
5375 ac_cv_header_stdc=yes
5376else
5377 ac_cv_header_stdc=no
5378fi
5379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380
5381if test $ac_cv_header_stdc = yes; then
5382 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384/* end confdefs.h. */
5385#include <string.h>
5386
5387_ACEOF
5388if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5389 $EGREP "memchr" >/dev/null 2>&1; then :
5390
5391else
5392 ac_cv_header_stdc=no
5393fi
5394rm -f conftest*
5395
5396fi
5397
5398if test $ac_cv_header_stdc = yes; then
5399 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401/* end confdefs.h. */
5402#include <stdlib.h>
5403
5404_ACEOF
5405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5406 $EGREP "free" >/dev/null 2>&1; then :
5407
5408else
5409 ac_cv_header_stdc=no
5410fi
5411rm -f conftest*
5412
5413fi
5414
5415if test $ac_cv_header_stdc = yes; then
5416 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5417 if test "$cross_compiling" = yes; then :
5418 :
5419else
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421/* end confdefs.h. */
5422#include <ctype.h>
5423#include <stdlib.h>
5424#if ((' ' & 0x0FF) == 0x020)
5425# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5426# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5427#else
5428# define ISLOWER(c) \
5429 (('a' <= (c) && (c) <= 'i') \
5430 || ('j' <= (c) && (c) <= 'r') \
5431 || ('s' <= (c) && (c) <= 'z'))
5432# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5433#endif
5434
5435#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5436int
5437main ()
5438{
5439 int i;
5440 for (i = 0; i < 256; i++)
5441 if (XOR (islower (i), ISLOWER (i))
5442 || toupper (i) != TOUPPER (i))
5443 return 2;
5444 return 0;
5445}
5446_ACEOF
5447if ac_fn_c_try_run "$LINENO"; then :
5448
5449else
5450 ac_cv_header_stdc=no
5451fi
5452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5453 conftest.$ac_objext conftest.beam conftest.$ac_ext
5454fi
5455
5456fi
5457fi
5458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5459$as_echo "$ac_cv_header_stdc" >&6; }
5460if test $ac_cv_header_stdc = yes; then
5461
5462$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5463
5464fi
5465
5466# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5467for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5468 inttypes.h stdint.h unistd.h
5469do :
5470 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5471ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5472"
d0ac1c44 5473if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
5474 cat >>confdefs.h <<_ACEOF
5475#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5476_ACEOF
5477
5478fi
5479
5480done
5481
5482
5483
5484 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 5485if test "x$ac_cv_header_minix_config_h" = xyes; then :
6bb11ab3
L
5486 MINIX=yes
5487else
5488 MINIX=
5489fi
5490
5491
5492 if test "$MINIX" = yes; then
5493
5494$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5495
5496
5497$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5498
5499
5500$as_echo "#define _MINIX 1" >>confdefs.h
5501
5502 fi
5503
5504
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5506$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 5507if ${ac_cv_safe_to_define___extensions__+:} false; then :
6bb11ab3
L
5508 $as_echo_n "(cached) " >&6
5509else
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511/* end confdefs.h. */
5512
d0ac1c44
SM
5513# define __EXTENSIONS__ 1
5514 $ac_includes_default
6bb11ab3
L
5515int
5516main ()
5517{
5518
5519 ;
5520 return 0;
5521}
5522_ACEOF
5523if ac_fn_c_try_compile "$LINENO"; then :
5524 ac_cv_safe_to_define___extensions__=yes
5525else
5526 ac_cv_safe_to_define___extensions__=no
5527fi
5528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529fi
5530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5531$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5532 test $ac_cv_safe_to_define___extensions__ = yes &&
5533 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5534
5535 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5536
5537 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5538
5539 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5540
5541 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5542
5543
5544test "$program_prefix" != NONE &&
5545 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5546# Use a double $ so make ignores it.
5547test "$program_suffix" != NONE &&
5548 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5549# Double any \ or $.
5550# By default was `s,x,x', remove it if useless.
5551ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5552program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5553
5554# Find a good install program. We prefer a C program (faster),
5555# so one script is as good as another. But avoid the broken or
5556# incompatible versions:
5557# SysV /etc/install, /usr/sbin/install
5558# SunOS /usr/etc/install
5559# IRIX /sbin/install
5560# AIX /bin/install
5561# AmigaOS /C/install, which installs bootblocks on floppy discs
5562# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5563# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5564# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5565# OS/2's system install, which has a completely different semantic
5566# ./install, which can be erroneously created by make from ./install.sh.
5567# Reject install programs that cannot install multiple files.
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5569$as_echo_n "checking for a BSD-compatible install... " >&6; }
5570if test -z "$INSTALL"; then
d0ac1c44 5571if ${ac_cv_path_install+:} false; then :
6bb11ab3
L
5572 $as_echo_n "(cached) " >&6
5573else
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575for as_dir in $PATH
5576do
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 # Account for people who put trailing slashes in PATH elements.
5580case $as_dir/ in #((
5581 ./ | .// | /[cC]/* | \
5582 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5583 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5584 /usr/ucb/* ) ;;
5585 *)
5586 # OSF1 and SCO ODT 3.0 have their own names for install.
5587 # Don't use installbsd from OSF since it installs stuff as root
5588 # by default.
5589 for ac_prog in ginstall scoinst install; do
5590 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5591 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6bb11ab3
L
5592 if test $ac_prog = install &&
5593 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5594 # AIX install. It has an incompatible calling convention.
5595 :
5596 elif test $ac_prog = install &&
5597 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5598 # program-specific install script used by HP pwplus--don't use.
5599 :
5600 else
5601 rm -rf conftest.one conftest.two conftest.dir
5602 echo one > conftest.one
5603 echo two > conftest.two
5604 mkdir conftest.dir
5605 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5606 test -s conftest.one && test -s conftest.two &&
5607 test -s conftest.dir/conftest.one &&
5608 test -s conftest.dir/conftest.two
5609 then
5610 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5611 break 3
5612 fi
5613 fi
5614 fi
5615 done
5616 done
5617 ;;
5618esac
5619
5620 done
5621IFS=$as_save_IFS
5622
5623rm -rf conftest.one conftest.two conftest.dir
5624
5625fi
5626 if test "${ac_cv_path_install+set}" = set; then
5627 INSTALL=$ac_cv_path_install
5628 else
5629 # As a last resort, use the slow shell script. Don't cache a
5630 # value for INSTALL within a source directory, because that will
5631 # break other packages using the cache if that directory is
5632 # removed, or if the value is a relative name.
5633 INSTALL=$ac_install_sh
5634 fi
5635fi
5636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5637$as_echo "$INSTALL" >&6; }
5638
5639# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5640# It thinks the first close brace ends the variable substitution.
5641test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5642
5643test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5644
5645test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5646
5647rm -rf .tst 2>/dev/null
5648mkdir .tst 2>/dev/null
5649if test -d .tst; then
5650 am__leading_dot=.
5651else
5652 am__leading_dot=_
5653fi
5654rmdir .tst 2>/dev/null
5655
5656DEPDIR="${am__leading_dot}deps"
5657
5658case `pwd` in
5659 *\ * | *\ *)
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5661$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5662esac
5663
5664
5665
5666macro_version='2.2.7a'
5667macro_revision='1.3134'
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681ltmain="$ac_aux_dir/ltmain.sh"
5682
5683# Backslashify metacharacters that are still active within
5684# double-quoted strings.
5685sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5686
5687# Same as above, but do not quote variable references.
5688double_quote_subst='s/\(["`\\]\)/\\\1/g'
5689
5690# Sed substitution to delay expansion of an escaped shell variable in a
5691# double_quote_subst'ed string.
5692delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5693
5694# Sed substitution to delay expansion of an escaped single quote.
5695delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5696
5697# Sed substitution to avoid accidental globbing in evaled expressions
5698no_glob_subst='s/\*/\\\*/g'
5699
5700ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5701ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5702ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5703
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5705$as_echo_n "checking how to print strings... " >&6; }
5706# Test print first, because it will be a builtin if present.
5707if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5708 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5709 ECHO='print -r --'
5710elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5711 ECHO='printf %s\n'
5712else
5713 # Use this function as a fallback that always works.
5714 func_fallback_echo ()
5715 {
5716 eval 'cat <<_LTECHO_EOF
5717$1
5718_LTECHO_EOF'
5719 }
5720 ECHO='func_fallback_echo'
5721fi
5722
5723# func_echo_all arg...
5724# Invoke $ECHO with all args, space-separated.
5725func_echo_all ()
5726{
5727 $ECHO ""
5728}
5729
5730case "$ECHO" in
5731 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5732$as_echo "printf" >&6; } ;;
5733 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5734$as_echo "print -r" >&6; } ;;
5735 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5736$as_echo "cat" >&6; } ;;
5737esac
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5753$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 5754if ${ac_cv_path_SED+:} false; then :
6bb11ab3
L
5755 $as_echo_n "(cached) " >&6
5756else
5757 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5758 for ac_i in 1 2 3 4 5 6 7; do
5759 ac_script="$ac_script$as_nl$ac_script"
5760 done
5761 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5762 { ac_script=; unset ac_script;}
5763 if test -z "$SED"; then
5764 ac_path_SED_found=false
5765 # Loop through the user's path and test for each of PROGNAME-LIST
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767for as_dir in $PATH
5768do
5769 IFS=$as_save_IFS
5770 test -z "$as_dir" && as_dir=.
5771 for ac_prog in sed gsed; do
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5774 as_fn_executable_p "$ac_path_SED" || continue
6bb11ab3
L
5775# Check for GNU ac_path_SED and select it if it is found.
5776 # Check for GNU $ac_path_SED
5777case `"$ac_path_SED" --version 2>&1` in
5778*GNU*)
5779 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5780*)
5781 ac_count=0
5782 $as_echo_n 0123456789 >"conftest.in"
5783 while :
5784 do
5785 cat "conftest.in" "conftest.in" >"conftest.tmp"
5786 mv "conftest.tmp" "conftest.in"
5787 cp "conftest.in" "conftest.nl"
5788 $as_echo '' >> "conftest.nl"
5789 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5790 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5791 as_fn_arith $ac_count + 1 && ac_count=$as_val
5792 if test $ac_count -gt ${ac_path_SED_max-0}; then
5793 # Best one so far, save it but keep looking for a better one
5794 ac_cv_path_SED="$ac_path_SED"
5795 ac_path_SED_max=$ac_count
5796 fi
5797 # 10*(2^10) chars as input seems more than enough
5798 test $ac_count -gt 10 && break
5799 done
5800 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5801esac
5802
5803 $ac_path_SED_found && break 3
5804 done
5805 done
5806 done
5807IFS=$as_save_IFS
5808 if test -z "$ac_cv_path_SED"; then
d0ac1c44 5809 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6bb11ab3
L
5810 fi
5811else
5812 ac_cv_path_SED=$SED
5813fi
5814
5815fi
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5817$as_echo "$ac_cv_path_SED" >&6; }
5818 SED="$ac_cv_path_SED"
5819 rm -f conftest.sed
5820
5821test -z "$SED" && SED=sed
5822Xsed="$SED -e 1s/^X//"
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5835$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 5836if ${ac_cv_path_FGREP+:} false; then :
6bb11ab3
L
5837 $as_echo_n "(cached) " >&6
5838else
5839 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5840 then ac_cv_path_FGREP="$GREP -F"
5841 else
5842 if test -z "$FGREP"; then
5843 ac_path_FGREP_found=false
5844 # Loop through the user's path and test for each of PROGNAME-LIST
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5847do
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
5850 for ac_prog in fgrep; do
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5853 as_fn_executable_p "$ac_path_FGREP" || continue
6bb11ab3
L
5854# Check for GNU ac_path_FGREP and select it if it is found.
5855 # Check for GNU $ac_path_FGREP
5856case `"$ac_path_FGREP" --version 2>&1` in
5857*GNU*)
5858 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5859*)
5860 ac_count=0
5861 $as_echo_n 0123456789 >"conftest.in"
5862 while :
5863 do
5864 cat "conftest.in" "conftest.in" >"conftest.tmp"
5865 mv "conftest.tmp" "conftest.in"
5866 cp "conftest.in" "conftest.nl"
5867 $as_echo 'FGREP' >> "conftest.nl"
5868 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5870 as_fn_arith $ac_count + 1 && ac_count=$as_val
5871 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5872 # Best one so far, save it but keep looking for a better one
5873 ac_cv_path_FGREP="$ac_path_FGREP"
5874 ac_path_FGREP_max=$ac_count
5875 fi
5876 # 10*(2^10) chars as input seems more than enough
5877 test $ac_count -gt 10 && break
5878 done
5879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5880esac
5881
5882 $ac_path_FGREP_found && break 3
5883 done
5884 done
5885 done
5886IFS=$as_save_IFS
5887 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 5888 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
5889 fi
5890else
5891 ac_cv_path_FGREP=$FGREP
5892fi
5893
5894 fi
5895fi
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5897$as_echo "$ac_cv_path_FGREP" >&6; }
5898 FGREP="$ac_cv_path_FGREP"
5899
5900
5901test -z "$GREP" && GREP=grep
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921# Check whether --with-gnu-ld was given.
5922if test "${with_gnu_ld+set}" = set; then :
5923 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5924else
5925 with_gnu_ld=no
5926fi
5927
5928ac_prog=ld
5929if test "$GCC" = yes; then
5930 # Check if gcc -print-prog-name=ld gives a path.
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5932$as_echo_n "checking for ld used by $CC... " >&6; }
5933 case $host in
5934 *-*-mingw*)
5935 # gcc leaves a trailing carriage return which upsets mingw
5936 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5937 *)
5938 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5939 esac
5940 case $ac_prog in
5941 # Accept absolute paths.
5942 [\\/]* | ?:[\\/]*)
5943 re_direlt='/[^/][^/]*/\.\./'
5944 # Canonicalize the pathname of ld
5945 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5946 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5947 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5948 done
5949 test -z "$LD" && LD="$ac_prog"
5950 ;;
5951 "")
5952 # If it fails, then pretend we aren't using GCC.
5953 ac_prog=ld
5954 ;;
5955 *)
5956 # If it is relative, then search for the first ld in PATH.
5957 with_gnu_ld=unknown
5958 ;;
5959 esac
5960elif test "$with_gnu_ld" = yes; then
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5962$as_echo_n "checking for GNU ld... " >&6; }
5963else
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5965$as_echo_n "checking for non-GNU ld... " >&6; }
5966fi
d0ac1c44 5967if ${lt_cv_path_LD+:} false; then :
6bb11ab3
L
5968 $as_echo_n "(cached) " >&6
5969else
5970 if test -z "$LD"; then
5971 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5972 for ac_dir in $PATH; do
5973 IFS="$lt_save_ifs"
5974 test -z "$ac_dir" && ac_dir=.
5975 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5976 lt_cv_path_LD="$ac_dir/$ac_prog"
5977 # Check to see if the program is GNU ld. I'd rather use --version,
5978 # but apparently some variants of GNU ld only accept -v.
5979 # Break only if it was the GNU/non-GNU ld that we prefer.
5980 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5981 *GNU* | *'with BFD'*)
5982 test "$with_gnu_ld" != no && break
5983 ;;
5984 *)
5985 test "$with_gnu_ld" != yes && break
5986 ;;
5987 esac
5988 fi
5989 done
5990 IFS="$lt_save_ifs"
5991else
5992 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5993fi
5994fi
5995
5996LD="$lt_cv_path_LD"
5997if test -n "$LD"; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5999$as_echo "$LD" >&6; }
6000else
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002$as_echo "no" >&6; }
6003fi
d0ac1c44 6004test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6bb11ab3
L
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6006$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 6007if ${lt_cv_prog_gnu_ld+:} false; then :
6bb11ab3
L
6008 $as_echo_n "(cached) " >&6
6009else
6010 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6011case `$LD -v 2>&1 </dev/null` in
6012*GNU* | *'with BFD'*)
6013 lt_cv_prog_gnu_ld=yes
6014 ;;
6015*)
6016 lt_cv_prog_gnu_ld=no
6017 ;;
6018esac
6019fi
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6021$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6022with_gnu_ld=$lt_cv_prog_gnu_ld
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6033$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 6034if ${lt_cv_path_NM+:} false; then :
6bb11ab3
L
6035 $as_echo_n "(cached) " >&6
6036else
6037 if test -n "$NM"; then
6038 # Let the user override the test.
6039 lt_cv_path_NM="$NM"
6040else
6041 lt_nm_to_check="${ac_tool_prefix}nm"
6042 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6043 lt_nm_to_check="$lt_nm_to_check nm"
6044 fi
6045 for lt_tmp_nm in $lt_nm_to_check; do
6046 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6047 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6048 IFS="$lt_save_ifs"
6049 test -z "$ac_dir" && ac_dir=.
6050 tmp_nm="$ac_dir/$lt_tmp_nm"
6051 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6052 # Check to see if the nm accepts a BSD-compat flag.
6053 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6054 # nm: unknown option "B" ignored
6055 # Tru64's nm complains that /dev/null is an invalid object file
6056 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6057 */dev/null* | *'Invalid file or object type'*)
6058 lt_cv_path_NM="$tmp_nm -B"
6059 break
6060 ;;
6061 *)
6062 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6063 */dev/null*)
6064 lt_cv_path_NM="$tmp_nm -p"
6065 break
6066 ;;
6067 *)
6068 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6069 continue # so that we can try to find one that supports BSD flags
6070 ;;
6071 esac
6072 ;;
6073 esac
6074 fi
6075 done
6076 IFS="$lt_save_ifs"
6077 done
6078 : ${lt_cv_path_NM=no}
6079fi
6080fi
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6082$as_echo "$lt_cv_path_NM" >&6; }
6083if test "$lt_cv_path_NM" != "no"; then
6084 NM="$lt_cv_path_NM"
6085else
6086 # Didn't find any BSD compatible name lister, look for dumpbin.
6087 if test -n "$DUMPBIN"; then :
6088 # Let the user override the test.
6089 else
6090 if test -n "$ac_tool_prefix"; then
6091 for ac_prog in dumpbin "link -dump"
6092 do
6093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6094set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6096$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6097if ${ac_cv_prog_DUMPBIN+:} false; then :
6bb11ab3
L
6098 $as_echo_n "(cached) " >&6
6099else
6100 if test -n "$DUMPBIN"; then
6101 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6102else
6103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104for as_dir in $PATH
6105do
6106 IFS=$as_save_IFS
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6110 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 break 2
6113 fi
6114done
6115 done
6116IFS=$as_save_IFS
6117
6118fi
6119fi
6120DUMPBIN=$ac_cv_prog_DUMPBIN
6121if test -n "$DUMPBIN"; then
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6123$as_echo "$DUMPBIN" >&6; }
6124else
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6126$as_echo "no" >&6; }
6127fi
6128
6129
6130 test -n "$DUMPBIN" && break
6131 done
6132fi
6133if test -z "$DUMPBIN"; then
6134 ac_ct_DUMPBIN=$DUMPBIN
6135 for ac_prog in dumpbin "link -dump"
6136do
6137 # Extract the first word of "$ac_prog", so it can be a program name with args.
6138set dummy $ac_prog; ac_word=$2
6139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6141if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6bb11ab3
L
6142 $as_echo_n "(cached) " >&6
6143else
6144 if test -n "$ac_ct_DUMPBIN"; then
6145 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6146else
6147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148for as_dir in $PATH
6149do
6150 IFS=$as_save_IFS
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6154 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 break 2
6157 fi
6158done
6159 done
6160IFS=$as_save_IFS
6161
6162fi
6163fi
6164ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6165if test -n "$ac_ct_DUMPBIN"; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6167$as_echo "$ac_ct_DUMPBIN" >&6; }
6168else
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170$as_echo "no" >&6; }
6171fi
6172
6173
6174 test -n "$ac_ct_DUMPBIN" && break
6175done
6176
6177 if test "x$ac_ct_DUMPBIN" = x; then
6178 DUMPBIN=":"
6179 else
6180 case $cross_compiling:$ac_tool_warned in
6181yes:)
6182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6184ac_tool_warned=yes ;;
6185esac
6186 DUMPBIN=$ac_ct_DUMPBIN
6187 fi
6188fi
6189
6190 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6191 *COFF*)
6192 DUMPBIN="$DUMPBIN -symbols"
6193 ;;
6194 *)
6195 DUMPBIN=:
6196 ;;
6197 esac
6198 fi
6199
6200 if test "$DUMPBIN" != ":"; then
6201 NM="$DUMPBIN"
6202 fi
6203fi
6204test -z "$NM" && NM=nm
6205
6206
6207
6208
6209
6210
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6212$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 6213if ${lt_cv_nm_interface+:} false; then :
6bb11ab3
L
6214 $as_echo_n "(cached) " >&6
6215else
6216 lt_cv_nm_interface="BSD nm"
6217 echo "int some_variable = 0;" > conftest.$ac_ext
6218 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6219 (eval "$ac_compile" 2>conftest.err)
6220 cat conftest.err >&5
6221 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6222 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6223 cat conftest.err >&5
6224 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6225 cat conftest.out >&5
6226 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6227 lt_cv_nm_interface="MS dumpbin"
6228 fi
6229 rm -f conftest*
6230fi
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6232$as_echo "$lt_cv_nm_interface" >&6; }
6233
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6235$as_echo_n "checking whether ln -s works... " >&6; }
6236LN_S=$as_ln_s
6237if test "$LN_S" = "ln -s"; then
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6239$as_echo "yes" >&6; }
6240else
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6242$as_echo "no, using $LN_S" >&6; }
6243fi
6244
6245# find the maximum length of command line arguments
6246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6247$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 6248if ${lt_cv_sys_max_cmd_len+:} false; then :
6bb11ab3
L
6249 $as_echo_n "(cached) " >&6
6250else
6251 i=0
6252 teststring="ABCD"
6253
6254 case $build_os in
6255 msdosdjgpp*)
6256 # On DJGPP, this test can blow up pretty badly due to problems in libc
6257 # (any single argument exceeding 2000 bytes causes a buffer overrun
6258 # during glob expansion). Even if it were fixed, the result of this
6259 # check would be larger than it should be.
6260 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6261 ;;
6262
6263 gnu*)
6264 # Under GNU Hurd, this test is not required because there is
6265 # no limit to the length of command line arguments.
6266 # Libtool will interpret -1 as no limit whatsoever
6267 lt_cv_sys_max_cmd_len=-1;
6268 ;;
6269
6270 cygwin* | mingw* | cegcc*)
6271 # On Win9x/ME, this test blows up -- it succeeds, but takes
6272 # about 5 minutes as the teststring grows exponentially.
6273 # Worse, since 9x/ME are not pre-emptively multitasking,
6274 # you end up with a "frozen" computer, even though with patience
6275 # the test eventually succeeds (with a max line length of 256k).
6276 # Instead, let's just punt: use the minimum linelength reported by
6277 # all of the supported platforms: 8192 (on NT/2K/XP).
6278 lt_cv_sys_max_cmd_len=8192;
6279 ;;
6280
6281 mint*)
6282 # On MiNT this can take a long time and run out of memory.
6283 lt_cv_sys_max_cmd_len=8192;
6284 ;;
6285
6286 amigaos*)
6287 # On AmigaOS with pdksh, this test takes hours, literally.
6288 # So we just punt and use a minimum line length of 8192.
6289 lt_cv_sys_max_cmd_len=8192;
6290 ;;
6291
6292 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6293 # This has been around since 386BSD, at least. Likely further.
6294 if test -x /sbin/sysctl; then
6295 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6296 elif test -x /usr/sbin/sysctl; then
6297 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6298 else
6299 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6300 fi
6301 # And add a safety zone
6302 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6304 ;;
6305
6306 interix*)
6307 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6308 lt_cv_sys_max_cmd_len=196608
6309 ;;
6310
6311 osf*)
6312 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6313 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6314 # nice to cause kernel panics so lets avoid the loop below.
6315 # First set a reasonable default.
6316 lt_cv_sys_max_cmd_len=16384
6317 #
6318 if test -x /sbin/sysconfig; then
6319 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6320 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6321 esac
6322 fi
6323 ;;
6324 sco3.2v5*)
6325 lt_cv_sys_max_cmd_len=102400
6326 ;;
6327 sysv5* | sco5v6* | sysv4.2uw2*)
6328 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6329 if test -n "$kargmax"; then
6330 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6331 else
6332 lt_cv_sys_max_cmd_len=32768
6333 fi
6334 ;;
6335 *)
6336 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6337 if test -n "$lt_cv_sys_max_cmd_len"; then
6338 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6340 else
6341 # Make teststring a little bigger before we do anything with it.
6342 # a 1K string should be a reasonable start.
6343 for i in 1 2 3 4 5 6 7 8 ; do
6344 teststring=$teststring$teststring
6345 done
6346 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6347 # If test is not a shell built-in, we'll probably end up computing a
6348 # maximum length that is only half of the actual maximum length, but
6349 # we can't tell.
6350 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6351 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6352 test $i != 17 # 1/2 MB should be enough
6353 do
6354 i=`expr $i + 1`
6355 teststring=$teststring$teststring
6356 done
6357 # Only check the string length outside the loop.
6358 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6359 teststring=
6360 # Add a significant safety factor because C++ compilers can tack on
6361 # massive amounts of additional arguments before passing them to the
6362 # linker. It appears as though 1/2 is a usable value.
6363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6364 fi
6365 ;;
6366 esac
6367
6368fi
6369
6370if test -n $lt_cv_sys_max_cmd_len ; then
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6372$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6373else
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6375$as_echo "none" >&6; }
6376fi
6377max_cmd_len=$lt_cv_sys_max_cmd_len
6378
6379
6380
6381
6382
6383
6384: ${CP="cp -f"}
6385: ${MV="mv -f"}
6386: ${RM="rm -f"}
6387
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6389$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6390# Try some XSI features
6391xsi_shell=no
6392( _lt_dummy="a/b/c"
6393 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6394 = c,a/b,, \
6395 && eval 'test $(( 1 + 1 )) -eq 2 \
6396 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6397 && xsi_shell=yes
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6399$as_echo "$xsi_shell" >&6; }
6400
6401
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6403$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6404lt_shell_append=no
6405( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6406 >/dev/null 2>&1 \
6407 && lt_shell_append=yes
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6409$as_echo "$lt_shell_append" >&6; }
6410
6411
6412if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6413 lt_unset=unset
6414else
6415 lt_unset=false
6416fi
6417
6418
6419
6420
6421
6422# test EBCDIC or ASCII
6423case `echo X|tr X '\101'` in
6424 A) # ASCII based system
6425 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6426 lt_SP2NL='tr \040 \012'
6427 lt_NL2SP='tr \015\012 \040\040'
6428 ;;
6429 *) # EBCDIC based system
6430 lt_SP2NL='tr \100 \n'
6431 lt_NL2SP='tr \r\n \100\100'
6432 ;;
6433esac
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6444$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 6445if ${lt_cv_ld_reload_flag+:} false; then :
6bb11ab3
L
6446 $as_echo_n "(cached) " >&6
6447else
6448 lt_cv_ld_reload_flag='-r'
6449fi
6450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6451$as_echo "$lt_cv_ld_reload_flag" >&6; }
6452reload_flag=$lt_cv_ld_reload_flag
6453case $reload_flag in
6454"" | " "*) ;;
6455*) reload_flag=" $reload_flag" ;;
6456esac
6457reload_cmds='$LD$reload_flag -o $output$reload_objs'
6458case $host_os in
6459 darwin*)
6460 if test "$GCC" = yes; then
6461 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6462 else
6463 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6464 fi
6465 ;;
6466esac
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476if test -n "$ac_tool_prefix"; then
6477 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6478set dummy ${ac_tool_prefix}objdump; ac_word=$2
6479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6480$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6481if ${ac_cv_prog_OBJDUMP+:} false; then :
6bb11ab3
L
6482 $as_echo_n "(cached) " >&6
6483else
6484 if test -n "$OBJDUMP"; then
6485 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6486else
6487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488for as_dir in $PATH
6489do
6490 IFS=$as_save_IFS
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6494 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 break 2
6497 fi
6498done
6499 done
6500IFS=$as_save_IFS
6501
6502fi
6503fi
6504OBJDUMP=$ac_cv_prog_OBJDUMP
6505if test -n "$OBJDUMP"; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6507$as_echo "$OBJDUMP" >&6; }
6508else
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510$as_echo "no" >&6; }
6511fi
6512
6513
6514fi
6515if test -z "$ac_cv_prog_OBJDUMP"; then
6516 ac_ct_OBJDUMP=$OBJDUMP
6517 # Extract the first word of "objdump", so it can be a program name with args.
6518set dummy objdump; ac_word=$2
6519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6520$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6521if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6bb11ab3
L
6522 $as_echo_n "(cached) " >&6
6523else
6524 if test -n "$ac_ct_OBJDUMP"; then
6525 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6526else
6527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528for as_dir in $PATH
6529do
6530 IFS=$as_save_IFS
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6534 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 break 2
6537 fi
6538done
6539 done
6540IFS=$as_save_IFS
6541
6542fi
6543fi
6544ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6545if test -n "$ac_ct_OBJDUMP"; then
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6547$as_echo "$ac_ct_OBJDUMP" >&6; }
6548else
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550$as_echo "no" >&6; }
6551fi
6552
6553 if test "x$ac_ct_OBJDUMP" = x; then
6554 OBJDUMP="false"
6555 else
6556 case $cross_compiling:$ac_tool_warned in
6557yes:)
6558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6560ac_tool_warned=yes ;;
6561esac
6562 OBJDUMP=$ac_ct_OBJDUMP
6563 fi
6564else
6565 OBJDUMP="$ac_cv_prog_OBJDUMP"
6566fi
6567
6568test -z "$OBJDUMP" && OBJDUMP=objdump
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6579$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 6580if ${lt_cv_deplibs_check_method+:} false; then :
6bb11ab3
L
6581 $as_echo_n "(cached) " >&6
6582else
6583 lt_cv_file_magic_cmd='$MAGIC_CMD'
6584lt_cv_file_magic_test_file=
6585lt_cv_deplibs_check_method='unknown'
6586# Need to set the preceding variable on all platforms that support
6587# interlibrary dependencies.
6588# 'none' -- dependencies not supported.
6589# `unknown' -- same as none, but documents that we really don't know.
6590# 'pass_all' -- all dependencies passed with no checks.
6591# 'test_compile' -- check by making test program.
6592# 'file_magic [[regex]]' -- check by looking for files in library path
6593# which responds to the $file_magic_cmd with a given extended regex.
6594# If you have `file' or equivalent on your system and you're not sure
6595# whether `pass_all' will *always* work, you probably want this one.
6596
6597case $host_os in
6598aix[4-9]*)
6599 lt_cv_deplibs_check_method=pass_all
6600 ;;
6601
6602beos*)
6603 lt_cv_deplibs_check_method=pass_all
6604 ;;
6605
6606bsdi[45]*)
6607 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6608 lt_cv_file_magic_cmd='/usr/bin/file -L'
6609 lt_cv_file_magic_test_file=/shlib/libc.so
6610 ;;
6611
6612cygwin*)
6613 # func_win32_libid is a shell function defined in ltmain.sh
6614 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6615 lt_cv_file_magic_cmd='func_win32_libid'
6616 ;;
6617
6618mingw* | pw32*)
6619 # Base MSYS/MinGW do not provide the 'file' command needed by
6620 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6621 # unless we find 'file', for example because we are cross-compiling.
6622 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6623 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6624 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6625 lt_cv_file_magic_cmd='func_win32_libid'
6626 else
6627 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6628 lt_cv_file_magic_cmd='$OBJDUMP -f'
6629 fi
6630 ;;
6631
6632cegcc*)
6633 # use the weaker test based on 'objdump'. See mingw*.
6634 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6635 lt_cv_file_magic_cmd='$OBJDUMP -f'
6636 ;;
6637
6638darwin* | rhapsody*)
6639 lt_cv_deplibs_check_method=pass_all
6640 ;;
6641
6642freebsd* | dragonfly*)
6643 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6644 case $host_cpu in
6645 i*86 )
6646 # Not sure whether the presence of OpenBSD here was a mistake.
6647 # Let's accept both of them until this is cleared up.
6648 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6649 lt_cv_file_magic_cmd=/usr/bin/file
6650 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6651 ;;
6652 esac
6653 else
6654 lt_cv_deplibs_check_method=pass_all
6655 fi
6656 ;;
6657
6658gnu*)
6659 lt_cv_deplibs_check_method=pass_all
6660 ;;
6661
6662haiku*)
6663 lt_cv_deplibs_check_method=pass_all
6664 ;;
6665
6666hpux10.20* | hpux11*)
6667 lt_cv_file_magic_cmd=/usr/bin/file
6668 case $host_cpu in
6669 ia64*)
6670 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6671 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6672 ;;
6673 hppa*64*)
6674 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]'
6675 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6676 ;;
6677 *)
6678 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6679 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6680 ;;
6681 esac
6682 ;;
6683
6684interix[3-9]*)
6685 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6686 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6687 ;;
6688
6689irix5* | irix6* | nonstopux*)
6690 case $LD in
6691 *-32|*"-32 ") libmagic=32-bit;;
6692 *-n32|*"-n32 ") libmagic=N32;;
6693 *-64|*"-64 ") libmagic=64-bit;;
6694 *) libmagic=never-match;;
6695 esac
6696 lt_cv_deplibs_check_method=pass_all
6697 ;;
6698
6699# This must be Linux ELF.
6700linux* | k*bsd*-gnu | kopensolaris*-gnu)
6701 lt_cv_deplibs_check_method=pass_all
6702 ;;
6703
6704netbsd*)
6705 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6706 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6707 else
6708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6709 fi
6710 ;;
6711
6712newos6*)
6713 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6714 lt_cv_file_magic_cmd=/usr/bin/file
6715 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6716 ;;
6717
6718*nto* | *qnx*)
6719 lt_cv_deplibs_check_method=pass_all
6720 ;;
6721
6722openbsd*)
6723 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6724 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6725 else
6726 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6727 fi
6728 ;;
6729
6730osf3* | osf4* | osf5*)
6731 lt_cv_deplibs_check_method=pass_all
6732 ;;
6733
6734rdos*)
6735 lt_cv_deplibs_check_method=pass_all
6736 ;;
6737
6738solaris*)
6739 lt_cv_deplibs_check_method=pass_all
6740 ;;
6741
6742sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6743 lt_cv_deplibs_check_method=pass_all
6744 ;;
6745
6746sysv4 | sysv4.3*)
6747 case $host_vendor in
6748 motorola)
6749 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]'
6750 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6751 ;;
6752 ncr)
6753 lt_cv_deplibs_check_method=pass_all
6754 ;;
6755 sequent)
6756 lt_cv_file_magic_cmd='/bin/file'
6757 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6758 ;;
6759 sni)
6760 lt_cv_file_magic_cmd='/bin/file'
6761 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6762 lt_cv_file_magic_test_file=/lib/libc.so
6763 ;;
6764 siemens)
6765 lt_cv_deplibs_check_method=pass_all
6766 ;;
6767 pc)
6768 lt_cv_deplibs_check_method=pass_all
6769 ;;
6770 esac
6771 ;;
6772
6773tpf*)
6774 lt_cv_deplibs_check_method=pass_all
6775 ;;
6776esac
6777
6778fi
6779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6780$as_echo "$lt_cv_deplibs_check_method" >&6; }
6781file_magic_cmd=$lt_cv_file_magic_cmd
6782deplibs_check_method=$lt_cv_deplibs_check_method
6783test -z "$deplibs_check_method" && deplibs_check_method=unknown
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796if test -n "$ac_tool_prefix"; then
6797 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6798set dummy ${ac_tool_prefix}ar; ac_word=$2
6799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6801if ${ac_cv_prog_AR+:} false; then :
6bb11ab3
L
6802 $as_echo_n "(cached) " >&6
6803else
6804 if test -n "$AR"; then
6805 ac_cv_prog_AR="$AR" # Let the user override the test.
6806else
6807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808for as_dir in $PATH
6809do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6814 ac_cv_prog_AR="${ac_tool_prefix}ar"
6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6817 fi
6818done
6819 done
6820IFS=$as_save_IFS
6821
6822fi
6823fi
6824AR=$ac_cv_prog_AR
6825if test -n "$AR"; then
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6827$as_echo "$AR" >&6; }
6828else
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830$as_echo "no" >&6; }
6831fi
6832
6833
6834fi
6835if test -z "$ac_cv_prog_AR"; then
6836 ac_ct_AR=$AR
6837 # Extract the first word of "ar", so it can be a program name with args.
6838set dummy ar; ac_word=$2
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6841if ${ac_cv_prog_ac_ct_AR+:} false; then :
6bb11ab3
L
6842 $as_echo_n "(cached) " >&6
6843else
6844 if test -n "$ac_ct_AR"; then
6845 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6846else
6847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848for as_dir in $PATH
6849do
6850 IFS=$as_save_IFS
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6854 ac_cv_prog_ac_ct_AR="ar"
6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 break 2
6857 fi
6858done
6859 done
6860IFS=$as_save_IFS
6861
6862fi
6863fi
6864ac_ct_AR=$ac_cv_prog_ac_ct_AR
6865if test -n "$ac_ct_AR"; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6867$as_echo "$ac_ct_AR" >&6; }
6868else
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870$as_echo "no" >&6; }
6871fi
6872
6873 if test "x$ac_ct_AR" = x; then
6874 AR="false"
6875 else
6876 case $cross_compiling:$ac_tool_warned in
6877yes:)
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6880ac_tool_warned=yes ;;
6881esac
6882 AR=$ac_ct_AR
6883 fi
6884else
6885 AR="$ac_cv_prog_AR"
6886fi
6887
6888test -z "$AR" && AR=ar
6889test -z "$AR_FLAGS" && AR_FLAGS=cru
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901if test -n "$ac_tool_prefix"; then
6902 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6903set dummy ${ac_tool_prefix}strip; ac_word=$2
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6906if ${ac_cv_prog_STRIP+:} false; then :
6bb11ab3
L
6907 $as_echo_n "(cached) " >&6
6908else
6909 if test -n "$STRIP"; then
6910 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6911else
6912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913for as_dir in $PATH
6914do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6919 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6922 fi
6923done
6924 done
6925IFS=$as_save_IFS
6926
6927fi
6928fi
6929STRIP=$ac_cv_prog_STRIP
6930if test -n "$STRIP"; then
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6932$as_echo "$STRIP" >&6; }
6933else
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935$as_echo "no" >&6; }
6936fi
6937
6938
6939fi
6940if test -z "$ac_cv_prog_STRIP"; then
6941 ac_ct_STRIP=$STRIP
6942 # Extract the first word of "strip", so it can be a program name with args.
6943set dummy strip; ac_word=$2
6944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6946if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6bb11ab3
L
6947 $as_echo_n "(cached) " >&6
6948else
6949 if test -n "$ac_ct_STRIP"; then
6950 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6951else
6952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953for as_dir in $PATH
6954do
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6959 ac_cv_prog_ac_ct_STRIP="strip"
6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6962 fi
6963done
6964 done
6965IFS=$as_save_IFS
6966
6967fi
6968fi
6969ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6970if test -n "$ac_ct_STRIP"; then
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6972$as_echo "$ac_ct_STRIP" >&6; }
6973else
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975$as_echo "no" >&6; }
6976fi
6977
6978 if test "x$ac_ct_STRIP" = x; then
6979 STRIP=":"
6980 else
6981 case $cross_compiling:$ac_tool_warned in
6982yes:)
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6985ac_tool_warned=yes ;;
6986esac
6987 STRIP=$ac_ct_STRIP
6988 fi
6989else
6990 STRIP="$ac_cv_prog_STRIP"
6991fi
6992
6993test -z "$STRIP" && STRIP=:
6994
6995
6996
6997
6998
6999
7000if test -n "$ac_tool_prefix"; then
7001 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7002set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7005if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
7006 $as_echo_n "(cached) " >&6
7007else
7008 if test -n "$RANLIB"; then
7009 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7010else
7011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012for as_dir in $PATH
7013do
7014 IFS=$as_save_IFS
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7018 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 break 2
7021 fi
7022done
7023 done
7024IFS=$as_save_IFS
7025
7026fi
7027fi
7028RANLIB=$ac_cv_prog_RANLIB
7029if test -n "$RANLIB"; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7031$as_echo "$RANLIB" >&6; }
7032else
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034$as_echo "no" >&6; }
7035fi
7036
7037
7038fi
7039if test -z "$ac_cv_prog_RANLIB"; then
7040 ac_ct_RANLIB=$RANLIB
7041 # Extract the first word of "ranlib", so it can be a program name with args.
7042set dummy ranlib; ac_word=$2
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7045if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
7046 $as_echo_n "(cached) " >&6
7047else
7048 if test -n "$ac_ct_RANLIB"; then
7049 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7050else
7051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052for as_dir in $PATH
7053do
7054 IFS=$as_save_IFS
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7058 ac_cv_prog_ac_ct_RANLIB="ranlib"
7059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 break 2
7061 fi
7062done
7063 done
7064IFS=$as_save_IFS
7065
7066fi
7067fi
7068ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7069if test -n "$ac_ct_RANLIB"; then
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7071$as_echo "$ac_ct_RANLIB" >&6; }
7072else
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074$as_echo "no" >&6; }
7075fi
7076
7077 if test "x$ac_ct_RANLIB" = x; then
7078 RANLIB=":"
7079 else
7080 case $cross_compiling:$ac_tool_warned in
7081yes:)
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7084ac_tool_warned=yes ;;
7085esac
7086 RANLIB=$ac_ct_RANLIB
7087 fi
7088else
7089 RANLIB="$ac_cv_prog_RANLIB"
7090fi
7091
7092test -z "$RANLIB" && RANLIB=:
7093
7094
7095
7096
7097
7098
7099# Determine commands to create old-style static archives.
7100old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7101old_postinstall_cmds='chmod 644 $oldlib'
7102old_postuninstall_cmds=
7103
7104if test -n "$RANLIB"; then
7105 case $host_os in
7106 openbsd*)
7107 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7108 ;;
7109 *)
7110 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7111 ;;
7112 esac
7113 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7114fi
7115
7116case $host_os in
7117 darwin*)
7118 lock_old_archive_extraction=yes ;;
7119 *)
7120 lock_old_archive_extraction=no ;;
7121esac
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143for ac_prog in gawk mawk nawk awk
7144do
7145 # Extract the first word of "$ac_prog", so it can be a program name with args.
7146set dummy $ac_prog; ac_word=$2
7147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7148$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7149if ${ac_cv_prog_AWK+:} false; then :
6bb11ab3
L
7150 $as_echo_n "(cached) " >&6
7151else
7152 if test -n "$AWK"; then
7153 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7154else
7155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156for as_dir in $PATH
7157do
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7162 ac_cv_prog_AWK="$ac_prog"
7163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7165 fi
7166done
7167 done
7168IFS=$as_save_IFS
7169
7170fi
7171fi
7172AWK=$ac_cv_prog_AWK
7173if test -n "$AWK"; then
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7175$as_echo "$AWK" >&6; }
7176else
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178$as_echo "no" >&6; }
7179fi
7180
7181
7182 test -n "$AWK" && break
7183done
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203# If no C compiler was specified, use CC.
7204LTCC=${LTCC-"$CC"}
7205
7206# If no C compiler flags were specified, use CFLAGS.
7207LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7208
7209# Allow CC to be a program name with arguments.
7210compiler=$CC
7211
7212
7213# Check for command to grab the raw symbol name followed by C symbol from nm.
7214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7215$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 7216if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6bb11ab3
L
7217 $as_echo_n "(cached) " >&6
7218else
7219
7220# These are sane defaults that work on at least a few old systems.
7221# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7222
7223# Character class describing NM global symbol codes.
7224symcode='[BCDEGRST]'
7225
7226# Regexp to match symbols that can be accessed directly from C.
7227sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7228
7229# Define system-specific variables.
7230case $host_os in
7231aix*)
7232 symcode='[BCDT]'
7233 ;;
7234cygwin* | mingw* | pw32* | cegcc*)
7235 symcode='[ABCDGISTW]'
7236 ;;
7237hpux*)
7238 if test "$host_cpu" = ia64; then
7239 symcode='[ABCDEGRST]'
7240 fi
7241 ;;
7242irix* | nonstopux*)
7243 symcode='[BCDEGRST]'
7244 ;;
7245osf*)
7246 symcode='[BCDEGQRST]'
7247 ;;
7248solaris*)
7249 symcode='[BDRT]'
7250 ;;
7251sco3.2v5*)
7252 symcode='[DT]'
7253 ;;
7254sysv4.2uw2*)
7255 symcode='[DT]'
7256 ;;
7257sysv5* | sco5v6* | unixware* | OpenUNIX*)
7258 symcode='[ABDT]'
7259 ;;
7260sysv4)
7261 symcode='[DFNSTU]'
7262 ;;
7263esac
7264
7265# If we're using GNU nm, then use its standard symbol codes.
7266case `$NM -V 2>&1` in
7267*GNU* | *'with BFD'*)
7268 symcode='[ABCDGIRSTW]' ;;
7269esac
7270
7271# Transform an extracted symbol line into a proper C declaration.
7272# Some systems (esp. on ia64) link data and code symbols differently,
7273# so use this general approach.
7274lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7275
7276# Transform an extracted symbol line into symbol name and symbol address
7277lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7278lt_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'"
7279
7280# Handle CRLF in mingw tool chain
7281opt_cr=
7282case $build_os in
7283mingw*)
7284 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7285 ;;
7286esac
7287
7288# Try without a prefix underscore, then with it.
7289for ac_symprfx in "" "_"; do
7290
7291 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7292 symxfrm="\\1 $ac_symprfx\\2 \\2"
7293
7294 # Write the raw and C identifiers.
7295 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7296 # Fake it for dumpbin and say T for any non-static function
7297 # and D for any global variable.
7298 # Also find C++ and __fastcall symbols from MSVC++,
7299 # which start with @ or ?.
7300 lt_cv_sys_global_symbol_pipe="$AWK '"\
7301" {last_section=section; section=\$ 3};"\
7302" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7303" \$ 0!~/External *\|/{next};"\
7304" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7305" {if(hide[section]) next};"\
7306" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7307" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7308" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7309" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7310" ' prfx=^$ac_symprfx"
7311 else
7312 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7313 fi
7314
7315 # Check to see that the pipe works correctly.
7316 pipe_works=no
7317
7318 rm -f conftest*
7319 cat > conftest.$ac_ext <<_LT_EOF
7320#ifdef __cplusplus
7321extern "C" {
7322#endif
7323char nm_test_var;
7324void nm_test_func(void);
7325void nm_test_func(void){}
7326#ifdef __cplusplus
7327}
7328#endif
7329int main(){nm_test_var='a';nm_test_func();return(0);}
7330_LT_EOF
7331
7332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7333 (eval $ac_compile) 2>&5
7334 ac_status=$?
7335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7336 test $ac_status = 0; }; then
7337 # Now try to grab the symbols.
7338 nlist=conftest.nm
7339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7340 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7341 ac_status=$?
7342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7343 test $ac_status = 0; } && test -s "$nlist"; then
7344 # Try sorting and uniquifying the output.
7345 if sort "$nlist" | uniq > "$nlist"T; then
7346 mv -f "$nlist"T "$nlist"
7347 else
7348 rm -f "$nlist"T
7349 fi
7350
7351 # Make sure that we snagged all the symbols we need.
7352 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7353 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7354 cat <<_LT_EOF > conftest.$ac_ext
7355#ifdef __cplusplus
7356extern "C" {
7357#endif
7358
7359_LT_EOF
7360 # Now generate the symbol file.
7361 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7362
7363 cat <<_LT_EOF >> conftest.$ac_ext
7364
7365/* The mapping between symbol names and symbols. */
7366const struct {
7367 const char *name;
7368 void *address;
7369}
7370lt__PROGRAM__LTX_preloaded_symbols[] =
7371{
7372 { "@PROGRAM@", (void *) 0 },
7373_LT_EOF
7374 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7375 cat <<\_LT_EOF >> conftest.$ac_ext
7376 {0, (void *) 0}
7377};
7378
7379/* This works around a problem in FreeBSD linker */
7380#ifdef FREEBSD_WORKAROUND
7381static const void *lt_preloaded_setup() {
7382 return lt__PROGRAM__LTX_preloaded_symbols;
7383}
7384#endif
7385
7386#ifdef __cplusplus
7387}
7388#endif
7389_LT_EOF
7390 # Now try linking the two files.
7391 mv conftest.$ac_objext conftstm.$ac_objext
7392 lt_save_LIBS="$LIBS"
7393 lt_save_CFLAGS="$CFLAGS"
7394 LIBS="conftstm.$ac_objext"
7395 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7397 (eval $ac_link) 2>&5
7398 ac_status=$?
7399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7400 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7401 pipe_works=yes
7402 fi
7403 LIBS="$lt_save_LIBS"
7404 CFLAGS="$lt_save_CFLAGS"
7405 else
7406 echo "cannot find nm_test_func in $nlist" >&5
7407 fi
7408 else
7409 echo "cannot find nm_test_var in $nlist" >&5
7410 fi
7411 else
7412 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7413 fi
7414 else
7415 echo "$progname: failed program was:" >&5
7416 cat conftest.$ac_ext >&5
7417 fi
7418 rm -rf conftest* conftst*
7419
7420 # Do not use the global_symbol_pipe unless it works.
7421 if test "$pipe_works" = yes; then
7422 break
7423 else
7424 lt_cv_sys_global_symbol_pipe=
7425 fi
7426done
7427
7428fi
7429
7430if test -z "$lt_cv_sys_global_symbol_pipe"; then
7431 lt_cv_sys_global_symbol_to_cdecl=
7432fi
7433if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7435$as_echo "failed" >&6; }
7436else
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7438$as_echo "ok" >&6; }
7439fi
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462# Check whether --enable-libtool-lock was given.
7463if test "${enable_libtool_lock+set}" = set; then :
7464 enableval=$enable_libtool_lock;
7465fi
7466
7467test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7468
7469# Some flags need to be propagated to the compiler or linker for good
7470# libtool support.
7471case $host in
7472ia64-*-hpux*)
7473 # Find out which ABI we are using.
7474 echo 'int i;' > conftest.$ac_ext
7475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7476 (eval $ac_compile) 2>&5
7477 ac_status=$?
7478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7479 test $ac_status = 0; }; then
7480 case `/usr/bin/file conftest.$ac_objext` in
7481 *ELF-32*)
7482 HPUX_IA64_MODE="32"
7483 ;;
7484 *ELF-64*)
7485 HPUX_IA64_MODE="64"
7486 ;;
7487 esac
7488 fi
7489 rm -rf conftest*
7490 ;;
7491*-*-irix6*)
7492 # Find out which ABI we are using.
7493 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7495 (eval $ac_compile) 2>&5
7496 ac_status=$?
7497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7498 test $ac_status = 0; }; then
7499 if test "$lt_cv_prog_gnu_ld" = yes; then
7500 case `/usr/bin/file conftest.$ac_objext` in
7501 *32-bit*)
7502 LD="${LD-ld} -melf32bsmip"
7503 ;;
7504 *N32*)
7505 LD="${LD-ld} -melf32bmipn32"
7506 ;;
7507 *64-bit*)
7508 LD="${LD-ld} -melf64bmip"
7509 ;;
7510 esac
7511 else
7512 case `/usr/bin/file conftest.$ac_objext` in
7513 *32-bit*)
7514 LD="${LD-ld} -32"
7515 ;;
7516 *N32*)
7517 LD="${LD-ld} -n32"
7518 ;;
7519 *64-bit*)
7520 LD="${LD-ld} -64"
7521 ;;
7522 esac
7523 fi
7524 fi
7525 rm -rf conftest*
7526 ;;
7527
bf3d9781 7528x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6bb11ab3
L
7529s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7530 # Find out which ABI we are using.
7531 echo 'int i;' > conftest.$ac_ext
7532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7533 (eval $ac_compile) 2>&5
7534 ac_status=$?
7535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7536 test $ac_status = 0; }; then
7537 case `/usr/bin/file conftest.o` in
7538 *32-bit*)
7539 case $host in
7540 x86_64-*kfreebsd*-gnu)
7541 LD="${LD-ld} -m elf_i386_fbsd"
7542 ;;
7543 x86_64-*linux*)
7544 case `/usr/bin/file conftest.o` in
7545 *x86-64*)
7546 LD="${LD-ld} -m elf32_x86_64"
7547 ;;
7548 *)
7549 LD="${LD-ld} -m elf_i386"
7550 ;;
7551 esac
7552 ;;
bf3d9781
AM
7553 powerpc64le-*linux*)
7554 LD="${LD-ld} -m elf32lppclinux"
7555 ;;
7556 powerpc64-*linux*)
6bb11ab3
L
7557 LD="${LD-ld} -m elf32ppclinux"
7558 ;;
7559 s390x-*linux*)
7560 LD="${LD-ld} -m elf_s390"
7561 ;;
7562 sparc64-*linux*)
7563 LD="${LD-ld} -m elf32_sparc"
7564 ;;
7565 esac
7566 ;;
7567 *64-bit*)
7568 case $host in
7569 x86_64-*kfreebsd*-gnu)
7570 LD="${LD-ld} -m elf_x86_64_fbsd"
7571 ;;
7572 x86_64-*linux*)
7573 LD="${LD-ld} -m elf_x86_64"
7574 ;;
bf3d9781
AM
7575 powerpcle-*linux*)
7576 LD="${LD-ld} -m elf64lppc"
7577 ;;
7578 powerpc-*linux*)
6bb11ab3
L
7579 LD="${LD-ld} -m elf64ppc"
7580 ;;
7581 s390*-*linux*|s390*-*tpf*)
7582 LD="${LD-ld} -m elf64_s390"
7583 ;;
7584 sparc*-*linux*)
7585 LD="${LD-ld} -m elf64_sparc"
7586 ;;
7587 esac
7588 ;;
7589 esac
7590 fi
7591 rm -rf conftest*
7592 ;;
7593
7594*-*-sco3.2v5*)
7595 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7596 SAVE_CFLAGS="$CFLAGS"
7597 CFLAGS="$CFLAGS -belf"
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7599$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 7600if ${lt_cv_cc_needs_belf+:} false; then :
6bb11ab3
L
7601 $as_echo_n "(cached) " >&6
7602else
7603 ac_ext=c
7604ac_cpp='$CPP $CPPFLAGS'
7605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7607ac_compiler_gnu=$ac_cv_c_compiler_gnu
7608
7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610/* end confdefs.h. */
7611
7612int
7613main ()
7614{
7615
7616 ;
7617 return 0;
7618}
7619_ACEOF
7620if ac_fn_c_try_link "$LINENO"; then :
7621 lt_cv_cc_needs_belf=yes
7622else
7623 lt_cv_cc_needs_belf=no
7624fi
7625rm -f core conftest.err conftest.$ac_objext \
7626 conftest$ac_exeext conftest.$ac_ext
7627 ac_ext=c
7628ac_cpp='$CPP $CPPFLAGS'
7629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7631ac_compiler_gnu=$ac_cv_c_compiler_gnu
7632
7633fi
7634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7635$as_echo "$lt_cv_cc_needs_belf" >&6; }
7636 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7637 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7638 CFLAGS="$SAVE_CFLAGS"
7639 fi
7640 ;;
7641sparc*-*solaris*)
7642 # Find out which ABI we are using.
7643 echo 'int i;' > conftest.$ac_ext
7644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7645 (eval $ac_compile) 2>&5
7646 ac_status=$?
7647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7648 test $ac_status = 0; }; then
7649 case `/usr/bin/file conftest.o` in
7650 *64-bit*)
7651 case $lt_cv_prog_gnu_ld in
7652 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7653 *)
7654 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7655 LD="${LD-ld} -64"
7656 fi
7657 ;;
7658 esac
7659 ;;
7660 esac
7661 fi
7662 rm -rf conftest*
7663 ;;
7664esac
7665
7666need_locks="$enable_libtool_lock"
7667
7668
7669 case $host_os in
7670 rhapsody* | darwin*)
7671 if test -n "$ac_tool_prefix"; then
7672 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7673set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7675$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7676if ${ac_cv_prog_DSYMUTIL+:} false; then :
6bb11ab3
L
7677 $as_echo_n "(cached) " >&6
7678else
7679 if test -n "$DSYMUTIL"; then
7680 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7681else
7682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683for as_dir in $PATH
7684do
7685 IFS=$as_save_IFS
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7689 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 break 2
7692 fi
7693done
7694 done
7695IFS=$as_save_IFS
7696
7697fi
7698fi
7699DSYMUTIL=$ac_cv_prog_DSYMUTIL
7700if test -n "$DSYMUTIL"; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7702$as_echo "$DSYMUTIL" >&6; }
7703else
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705$as_echo "no" >&6; }
7706fi
7707
7708
7709fi
7710if test -z "$ac_cv_prog_DSYMUTIL"; then
7711 ac_ct_DSYMUTIL=$DSYMUTIL
7712 # Extract the first word of "dsymutil", so it can be a program name with args.
7713set dummy dsymutil; ac_word=$2
7714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7715$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7716if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6bb11ab3
L
7717 $as_echo_n "(cached) " >&6
7718else
7719 if test -n "$ac_ct_DSYMUTIL"; then
7720 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7721else
7722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723for as_dir in $PATH
7724do
7725 IFS=$as_save_IFS
7726 test -z "$as_dir" && as_dir=.
7727 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7729 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 break 2
7732 fi
7733done
7734 done
7735IFS=$as_save_IFS
7736
7737fi
7738fi
7739ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7740if test -n "$ac_ct_DSYMUTIL"; then
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7742$as_echo "$ac_ct_DSYMUTIL" >&6; }
7743else
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745$as_echo "no" >&6; }
7746fi
7747
7748 if test "x$ac_ct_DSYMUTIL" = x; then
7749 DSYMUTIL=":"
7750 else
7751 case $cross_compiling:$ac_tool_warned in
7752yes:)
7753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7755ac_tool_warned=yes ;;
7756esac
7757 DSYMUTIL=$ac_ct_DSYMUTIL
7758 fi
7759else
7760 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7761fi
7762
7763 if test -n "$ac_tool_prefix"; then
7764 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7765set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7768if ${ac_cv_prog_NMEDIT+:} false; then :
6bb11ab3
L
7769 $as_echo_n "(cached) " >&6
7770else
7771 if test -n "$NMEDIT"; then
7772 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7773else
7774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775for as_dir in $PATH
7776do
7777 IFS=$as_save_IFS
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7781 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 break 2
7784 fi
7785done
7786 done
7787IFS=$as_save_IFS
7788
7789fi
7790fi
7791NMEDIT=$ac_cv_prog_NMEDIT
7792if test -n "$NMEDIT"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7794$as_echo "$NMEDIT" >&6; }
7795else
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797$as_echo "no" >&6; }
7798fi
7799
7800
7801fi
7802if test -z "$ac_cv_prog_NMEDIT"; then
7803 ac_ct_NMEDIT=$NMEDIT
7804 # Extract the first word of "nmedit", so it can be a program name with args.
7805set dummy nmedit; ac_word=$2
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7808if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6bb11ab3
L
7809 $as_echo_n "(cached) " >&6
7810else
7811 if test -n "$ac_ct_NMEDIT"; then
7812 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7813else
7814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815for as_dir in $PATH
7816do
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7821 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7824 fi
7825done
7826 done
7827IFS=$as_save_IFS
7828
7829fi
7830fi
7831ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7832if test -n "$ac_ct_NMEDIT"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7834$as_echo "$ac_ct_NMEDIT" >&6; }
7835else
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837$as_echo "no" >&6; }
7838fi
7839
7840 if test "x$ac_ct_NMEDIT" = x; then
7841 NMEDIT=":"
7842 else
7843 case $cross_compiling:$ac_tool_warned in
7844yes:)
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7847ac_tool_warned=yes ;;
7848esac
7849 NMEDIT=$ac_ct_NMEDIT
7850 fi
7851else
7852 NMEDIT="$ac_cv_prog_NMEDIT"
7853fi
7854
7855 if test -n "$ac_tool_prefix"; then
7856 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7857set dummy ${ac_tool_prefix}lipo; ac_word=$2
7858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7860if ${ac_cv_prog_LIPO+:} false; then :
6bb11ab3
L
7861 $as_echo_n "(cached) " >&6
7862else
7863 if test -n "$LIPO"; then
7864 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7865else
7866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867for as_dir in $PATH
7868do
7869 IFS=$as_save_IFS
7870 test -z "$as_dir" && as_dir=.
7871 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7873 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 break 2
7876 fi
7877done
7878 done
7879IFS=$as_save_IFS
7880
7881fi
7882fi
7883LIPO=$ac_cv_prog_LIPO
7884if test -n "$LIPO"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7886$as_echo "$LIPO" >&6; }
7887else
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889$as_echo "no" >&6; }
7890fi
7891
7892
7893fi
7894if test -z "$ac_cv_prog_LIPO"; then
7895 ac_ct_LIPO=$LIPO
7896 # Extract the first word of "lipo", so it can be a program name with args.
7897set dummy lipo; ac_word=$2
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7900if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6bb11ab3
L
7901 $as_echo_n "(cached) " >&6
7902else
7903 if test -n "$ac_ct_LIPO"; then
7904 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7905else
7906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907for as_dir in $PATH
7908do
7909 IFS=$as_save_IFS
7910 test -z "$as_dir" && as_dir=.
7911 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7913 ac_cv_prog_ac_ct_LIPO="lipo"
7914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915 break 2
7916 fi
7917done
7918 done
7919IFS=$as_save_IFS
7920
7921fi
7922fi
7923ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7924if test -n "$ac_ct_LIPO"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7926$as_echo "$ac_ct_LIPO" >&6; }
7927else
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929$as_echo "no" >&6; }
7930fi
7931
7932 if test "x$ac_ct_LIPO" = x; then
7933 LIPO=":"
7934 else
7935 case $cross_compiling:$ac_tool_warned in
7936yes:)
7937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7939ac_tool_warned=yes ;;
7940esac
7941 LIPO=$ac_ct_LIPO
7942 fi
7943else
7944 LIPO="$ac_cv_prog_LIPO"
7945fi
7946
7947 if test -n "$ac_tool_prefix"; then
7948 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7949set dummy ${ac_tool_prefix}otool; ac_word=$2
7950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7952if ${ac_cv_prog_OTOOL+:} false; then :
6bb11ab3
L
7953 $as_echo_n "(cached) " >&6
7954else
7955 if test -n "$OTOOL"; then
7956 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7957else
7958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7965 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 break 2
7968 fi
7969done
7970 done
7971IFS=$as_save_IFS
7972
7973fi
7974fi
7975OTOOL=$ac_cv_prog_OTOOL
7976if test -n "$OTOOL"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7978$as_echo "$OTOOL" >&6; }
7979else
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981$as_echo "no" >&6; }
7982fi
7983
7984
7985fi
7986if test -z "$ac_cv_prog_OTOOL"; then
7987 ac_ct_OTOOL=$OTOOL
7988 # Extract the first word of "otool", so it can be a program name with args.
7989set dummy otool; ac_word=$2
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7992if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6bb11ab3
L
7993 $as_echo_n "(cached) " >&6
7994else
7995 if test -n "$ac_ct_OTOOL"; then
7996 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7997else
7998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001 IFS=$as_save_IFS
8002 test -z "$as_dir" && as_dir=.
8003 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8005 ac_cv_prog_ac_ct_OTOOL="otool"
8006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007 break 2
8008 fi
8009done
8010 done
8011IFS=$as_save_IFS
8012
8013fi
8014fi
8015ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8016if test -n "$ac_ct_OTOOL"; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8018$as_echo "$ac_ct_OTOOL" >&6; }
8019else
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021$as_echo "no" >&6; }
8022fi
8023
8024 if test "x$ac_ct_OTOOL" = x; then
8025 OTOOL=":"
8026 else
8027 case $cross_compiling:$ac_tool_warned in
8028yes:)
8029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8031ac_tool_warned=yes ;;
8032esac
8033 OTOOL=$ac_ct_OTOOL
8034 fi
8035else
8036 OTOOL="$ac_cv_prog_OTOOL"
8037fi
8038
8039 if test -n "$ac_tool_prefix"; then
8040 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8041set dummy ${ac_tool_prefix}otool64; ac_word=$2
8042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8044if ${ac_cv_prog_OTOOL64+:} false; then :
6bb11ab3
L
8045 $as_echo_n "(cached) " >&6
8046else
8047 if test -n "$OTOOL64"; then
8048 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8049else
8050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051for as_dir in $PATH
8052do
8053 IFS=$as_save_IFS
8054 test -z "$as_dir" && as_dir=.
8055 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8057 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 break 2
8060 fi
8061done
8062 done
8063IFS=$as_save_IFS
8064
8065fi
8066fi
8067OTOOL64=$ac_cv_prog_OTOOL64
8068if test -n "$OTOOL64"; then
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8070$as_echo "$OTOOL64" >&6; }
8071else
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073$as_echo "no" >&6; }
8074fi
8075
8076
8077fi
8078if test -z "$ac_cv_prog_OTOOL64"; then
8079 ac_ct_OTOOL64=$OTOOL64
8080 # Extract the first word of "otool64", so it can be a program name with args.
8081set dummy otool64; ac_word=$2
8082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8084if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6bb11ab3
L
8085 $as_echo_n "(cached) " >&6
8086else
8087 if test -n "$ac_ct_OTOOL64"; then
8088 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8089else
8090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091for as_dir in $PATH
8092do
8093 IFS=$as_save_IFS
8094 test -z "$as_dir" && as_dir=.
8095 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8097 ac_cv_prog_ac_ct_OTOOL64="otool64"
8098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8099 break 2
8100 fi
8101done
8102 done
8103IFS=$as_save_IFS
8104
8105fi
8106fi
8107ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8108if test -n "$ac_ct_OTOOL64"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8110$as_echo "$ac_ct_OTOOL64" >&6; }
8111else
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113$as_echo "no" >&6; }
8114fi
8115
8116 if test "x$ac_ct_OTOOL64" = x; then
8117 OTOOL64=":"
8118 else
8119 case $cross_compiling:$ac_tool_warned in
8120yes:)
8121{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8123ac_tool_warned=yes ;;
8124esac
8125 OTOOL64=$ac_ct_OTOOL64
8126 fi
8127else
8128 OTOOL64="$ac_cv_prog_OTOOL64"
8129fi
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8158$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 8159if ${lt_cv_apple_cc_single_mod+:} false; then :
6bb11ab3
L
8160 $as_echo_n "(cached) " >&6
8161else
8162 lt_cv_apple_cc_single_mod=no
8163 if test -z "${LT_MULTI_MODULE}"; then
8164 # By default we will add the -single_module flag. You can override
8165 # by either setting the environment variable LT_MULTI_MODULE
8166 # non-empty at configure time, or by adding -multi_module to the
8167 # link flags.
8168 rm -rf libconftest.dylib*
8169 echo "int foo(void){return 1;}" > conftest.c
8170 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8171-dynamiclib -Wl,-single_module conftest.c" >&5
8172 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8173 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8174 _lt_result=$?
8175 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8176 lt_cv_apple_cc_single_mod=yes
8177 else
8178 cat conftest.err >&5
8179 fi
8180 rm -rf libconftest.dylib*
8181 rm -f conftest.*
8182 fi
8183fi
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8185$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8187$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 8188if ${lt_cv_ld_exported_symbols_list+:} false; then :
6bb11ab3
L
8189 $as_echo_n "(cached) " >&6
8190else
8191 lt_cv_ld_exported_symbols_list=no
8192 save_LDFLAGS=$LDFLAGS
8193 echo "_main" > conftest.sym
8194 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196/* end confdefs.h. */
8197
8198int
8199main ()
8200{
8201
8202 ;
8203 return 0;
8204}
8205_ACEOF
8206if ac_fn_c_try_link "$LINENO"; then :
8207 lt_cv_ld_exported_symbols_list=yes
8208else
8209 lt_cv_ld_exported_symbols_list=no
8210fi
8211rm -f core conftest.err conftest.$ac_objext \
8212 conftest$ac_exeext conftest.$ac_ext
8213 LDFLAGS="$save_LDFLAGS"
8214
8215fi
8216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8217$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8219$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 8220if ${lt_cv_ld_force_load+:} false; then :
6bb11ab3
L
8221 $as_echo_n "(cached) " >&6
8222else
8223 lt_cv_ld_force_load=no
8224 cat > conftest.c << _LT_EOF
8225int forced_loaded() { return 2;}
8226_LT_EOF
8227 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8228 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8229 echo "$AR cru libconftest.a conftest.o" >&5
8230 $AR cru libconftest.a conftest.o 2>&5
8231 cat > conftest.c << _LT_EOF
8232int main() { return 0;}
8233_LT_EOF
8234 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8235 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8236 _lt_result=$?
8237 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8238 lt_cv_ld_force_load=yes
8239 else
8240 cat conftest.err >&5
8241 fi
8242 rm -f conftest.err libconftest.a conftest conftest.c
8243 rm -rf conftest.dSYM
8244
8245fi
8246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8247$as_echo "$lt_cv_ld_force_load" >&6; }
8248 case $host_os in
8249 rhapsody* | darwin1.[012])
8250 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8251 darwin1.*)
8252 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8253 darwin*) # darwin 5.x on
8254 # if running on 10.5 or later, the deployment target defaults
8255 # to the OS version, if on x86, and 10.4, the deployment
8256 # target defaults to 10.4. Don't you love it?
8257 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8258 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8259 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ae7d0cac 8260 10.[012][,.]*)
6bb11ab3
L
8261 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8262 10.*)
8263 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8264 esac
8265 ;;
8266 esac
8267 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8268 _lt_dar_single_mod='$single_module'
8269 fi
8270 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8271 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8272 else
8273 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8274 fi
8275 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8276 _lt_dsymutil='~$DSYMUTIL $lib || :'
8277 else
8278 _lt_dsymutil=
8279 fi
8280 ;;
8281 esac
8282
8283for ac_header in dlfcn.h
8284do :
8285 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8286"
d0ac1c44 8287if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6bb11ab3
L
8288 cat >>confdefs.h <<_ACEOF
8289#define HAVE_DLFCN_H 1
8290_ACEOF
8291
8292fi
8293
8294done
8295
8296
8297
8298# autoconf.info says this should be called right after AC_INIT.
8299ac_config_headers="$ac_config_headers config.h:config.in"
8300
8301
8302
0cb8d851
MF
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8304$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d0ac1c44 8305if ${ac_cv_c_bigendian+:} false; then :
0cb8d851
MF
8306 $as_echo_n "(cached) " >&6
8307else
8308 ac_cv_c_bigendian=unknown
8309 # See if we're dealing with a universal compiler.
8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311/* end confdefs.h. */
8312#ifndef __APPLE_CC__
8313 not a universal capable compiler
8314 #endif
8315 typedef int dummy;
8316
8317_ACEOF
8318if ac_fn_c_try_compile "$LINENO"; then :
8319
8320 # Check for potential -arch flags. It is not universal unless
8321 # there are at least two -arch flags with different values.
8322 ac_arch=
8323 ac_prev=
8324 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8325 if test -n "$ac_prev"; then
8326 case $ac_word in
8327 i?86 | x86_64 | ppc | ppc64)
8328 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8329 ac_arch=$ac_word
8330 else
8331 ac_cv_c_bigendian=universal
8332 break
8333 fi
8334 ;;
8335 esac
8336 ac_prev=
8337 elif test "x$ac_word" = "x-arch"; then
8338 ac_prev=arch
8339 fi
8340 done
8341fi
8342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8343 if test $ac_cv_c_bigendian = unknown; then
8344 # See if sys/param.h defines the BYTE_ORDER macro.
8345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346/* end confdefs.h. */
8347#include <sys/types.h>
8348 #include <sys/param.h>
8349
8350int
8351main ()
8352{
8353#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8354 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8355 && LITTLE_ENDIAN)
8356 bogus endian macros
8357 #endif
8358
8359 ;
8360 return 0;
8361}
8362_ACEOF
8363if ac_fn_c_try_compile "$LINENO"; then :
8364 # It does; now see whether it defined to BIG_ENDIAN or not.
8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366/* end confdefs.h. */
8367#include <sys/types.h>
8368 #include <sys/param.h>
8369
8370int
8371main ()
8372{
8373#if BYTE_ORDER != BIG_ENDIAN
8374 not big endian
8375 #endif
8376
8377 ;
8378 return 0;
8379}
8380_ACEOF
8381if ac_fn_c_try_compile "$LINENO"; then :
8382 ac_cv_c_bigendian=yes
8383else
8384 ac_cv_c_bigendian=no
8385fi
8386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387fi
8388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 fi
8390 if test $ac_cv_c_bigendian = unknown; then
8391 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393/* end confdefs.h. */
8394#include <limits.h>
8395
8396int
8397main ()
8398{
8399#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8400 bogus endian macros
8401 #endif
8402
8403 ;
8404 return 0;
8405}
8406_ACEOF
8407if ac_fn_c_try_compile "$LINENO"; then :
8408 # It does; now see whether it defined to _BIG_ENDIAN or not.
8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410/* end confdefs.h. */
8411#include <limits.h>
8412
8413int
8414main ()
8415{
8416#ifndef _BIG_ENDIAN
8417 not big endian
8418 #endif
8419
8420 ;
8421 return 0;
8422}
8423_ACEOF
8424if ac_fn_c_try_compile "$LINENO"; then :
8425 ac_cv_c_bigendian=yes
8426else
8427 ac_cv_c_bigendian=no
8428fi
8429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430fi
8431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8432 fi
8433 if test $ac_cv_c_bigendian = unknown; then
8434 # Compile a test program.
8435 if test "$cross_compiling" = yes; then :
8436 # Try to guess by grepping values from an object file.
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438/* end confdefs.h. */
8439short int ascii_mm[] =
8440 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8441 short int ascii_ii[] =
8442 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8443 int use_ascii (int i) {
8444 return ascii_mm[i] + ascii_ii[i];
8445 }
8446 short int ebcdic_ii[] =
8447 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8448 short int ebcdic_mm[] =
8449 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8450 int use_ebcdic (int i) {
8451 return ebcdic_mm[i] + ebcdic_ii[i];
8452 }
8453 extern int foo;
8454
8455int
8456main ()
8457{
8458return use_ascii (foo) == use_ebcdic (foo);
8459 ;
8460 return 0;
8461}
8462_ACEOF
8463if ac_fn_c_try_compile "$LINENO"; then :
8464 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8465 ac_cv_c_bigendian=yes
8466 fi
8467 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8468 if test "$ac_cv_c_bigendian" = unknown; then
8469 ac_cv_c_bigendian=no
8470 else
8471 # finding both strings is unlikely to happen, but who knows?
8472 ac_cv_c_bigendian=unknown
8473 fi
8474 fi
8475fi
8476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8477else
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479/* end confdefs.h. */
8480$ac_includes_default
8481int
8482main ()
8483{
8484
8485 /* Are we little or big endian? From Harbison&Steele. */
8486 union
8487 {
8488 long int l;
8489 char c[sizeof (long int)];
8490 } u;
8491 u.l = 1;
8492 return u.c[sizeof (long int) - 1] == 1;
8493
8494 ;
8495 return 0;
8496}
8497_ACEOF
8498if ac_fn_c_try_run "$LINENO"; then :
8499 ac_cv_c_bigendian=no
8500else
8501 ac_cv_c_bigendian=yes
8502fi
8503rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8504 conftest.$ac_objext conftest.beam conftest.$ac_ext
8505fi
8506
8507 fi
8508fi
8509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8510$as_echo "$ac_cv_c_bigendian" >&6; }
8511 case $ac_cv_c_bigendian in #(
8512 yes)
8513 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8514;; #(
8515 no)
8516 ;; #(
8517 universal)
8518
8519$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8520
8521 ;; #(
8522 *)
d0ac1c44 8523 as_fn_error $? "unknown endianness
0cb8d851
MF
8524 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8525 esac
8526
6bb11ab3
L
8527
8528
8529
8530# Put a plausible default for CC_FOR_BUILD in Makefile.
5c887dd5
JB
8531if test -z "$CC_FOR_BUILD"; then
8532 if test "x$cross_compiling" = "xno"; then
8533 CC_FOR_BUILD='$(CC)'
8534 else
8535 CC_FOR_BUILD=gcc
8536 fi
6bb11ab3
L
8537fi
8538
8539
8540
8541
8542AR=${AR-ar}
8543
8544if test -n "$ac_tool_prefix"; then
8545 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8546set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8549if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
8550 $as_echo_n "(cached) " >&6
8551else
8552 if test -n "$RANLIB"; then
8553 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8554else
8555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8556for as_dir in $PATH
8557do
8558 IFS=$as_save_IFS
8559 test -z "$as_dir" && as_dir=.
8560 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8562 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8564 break 2
8565 fi
8566done
8567 done
8568IFS=$as_save_IFS
8569
8570fi
8571fi
8572RANLIB=$ac_cv_prog_RANLIB
8573if test -n "$RANLIB"; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8575$as_echo "$RANLIB" >&6; }
8576else
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578$as_echo "no" >&6; }
8579fi
8580
8581
8582fi
8583if test -z "$ac_cv_prog_RANLIB"; then
8584 ac_ct_RANLIB=$RANLIB
8585 # Extract the first word of "ranlib", so it can be a program name with args.
8586set dummy ranlib; ac_word=$2
8587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8589if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
8590 $as_echo_n "(cached) " >&6
8591else
8592 if test -n "$ac_ct_RANLIB"; then
8593 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8594else
8595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596for as_dir in $PATH
8597do
8598 IFS=$as_save_IFS
8599 test -z "$as_dir" && as_dir=.
8600 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8602 ac_cv_prog_ac_ct_RANLIB="ranlib"
8603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8604 break 2
8605 fi
8606done
8607 done
8608IFS=$as_save_IFS
8609
8610fi
8611fi
8612ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8613if test -n "$ac_ct_RANLIB"; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8615$as_echo "$ac_ct_RANLIB" >&6; }
8616else
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618$as_echo "no" >&6; }
8619fi
8620
8621 if test "x$ac_ct_RANLIB" = x; then
8622 RANLIB=":"
8623 else
8624 case $cross_compiling:$ac_tool_warned in
8625yes:)
8626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8628ac_tool_warned=yes ;;
8629esac
8630 RANLIB=$ac_ct_RANLIB
8631 fi
8632else
8633 RANLIB="$ac_cv_prog_RANLIB"
8634fi
8635
8636
46f900c0
MF
8637# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
8638# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
8639# is C99. So handle it ourselves.
8640:
8641C_DIALECT=
8642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
8643$as_echo_n "checking whether C11 is supported by default... " >&6; }
8644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645/* end confdefs.h. */
8646
8647#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
8648# error "C11 support not found"
8649#endif
8650
8651_ACEOF
8652if ac_fn_c_try_compile "$LINENO"; then :
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8654$as_echo "yes" >&6; }
8655else
8656
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658$as_echo "no" >&6; }
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
8660$as_echo_n "checking for -std=c11 support... " >&6; }
8661 ac_save_CC="$CC"
8662 CC="$CC -std=c11"
8663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8664/* end confdefs.h. */
8665
8666#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
8667# error "C11 support not found"
8668#endif
8669
8670_ACEOF
8671if ac_fn_c_try_compile "$LINENO"; then :
8672
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8674$as_echo "yes" >&6; }
8675 CC="$ac_save_CC"
8676 C_DIALECT="-std=c11"
8677
8678else
8679 as_fn_error $? "C11 is required" "$LINENO" 5
8680fi
8681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8682fi
8683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8684
8685
6bb11ab3
L
8686# Some of the common include files depend on bfd.h, and bfd.h checks
8687# that config.h is included first by testing that the PACKAGE macro
8688# is defined.
8689PACKAGE=sim
8690
8691cat >>confdefs.h <<_ACEOF
8692#define PACKAGE "$PACKAGE"
8693_ACEOF
8694
8695
8696
8697# Dependency checking.
8698ac_config_commands="$ac_config_commands depdir"
8699
8700
8701depcc="$CC" am_compiler_list=
8702
8703am_depcomp=$ac_aux_dir/depcomp
8704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8705$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 8706if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6bb11ab3
L
8707 $as_echo_n "(cached) " >&6
8708else
8709 if test -f "$am_depcomp"; then
8710 # We make a subdir and do the tests there. Otherwise we can end up
8711 # making bogus files that we don't know about and never remove. For
8712 # instance it was reported that on HP-UX the gcc test will end up
8713 # making a dummy file named `D' -- because `-MD' means `put the output
8714 # in D'.
8715 mkdir conftest.dir
8716 # Copy depcomp to subdir because otherwise we won't find it if we're
8717 # using a relative directory.
8718 cp "$am_depcomp" conftest.dir
8719 cd conftest.dir
8720 # We will build objects and dependencies in a subdirectory because
8721 # it helps to detect inapplicable dependency modes. For instance
8722 # both Tru64's cc and ICC support -MD to output dependencies as a
8723 # side effect of compilation, but ICC will put the dependencies in
8724 # the current directory while Tru64 will put them in the object
8725 # directory.
8726 mkdir sub
8727
8728 am_cv_CC_dependencies_compiler_type=none
8729 if test "$am_compiler_list" = ""; then
8730 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8731 fi
8732 for depmode in $am_compiler_list; do
8733 if test $depmode = none; then break; fi
8734
8735 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8736 # Setup a source with many dependencies, because some compilers
8737 # like to wrap large dependency lists on column 80 (with \), and
8738 # we should not choose a depcomp mode which is confused by this.
8739 #
8740 # We need to recreate these files for each test, as the compiler may
8741 # overwrite some of them when testing with obscure command lines.
8742 # This happens at least with the AIX C compiler.
8743 : > sub/conftest.c
8744 for i in 1 2 3 4 5 6; do
8745 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8746 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8747 # Solaris 8's {/usr,}/bin/sh.
8748 touch sub/conftst$i.h
8749 done
8750 echo "include sub/conftest.Po" > confmf
8751
8752 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8753 # mode. It turns out that the SunPro C++ compiler does not properly
8754 # handle `-M -o', and we need to detect this.
8755 depcmd="depmode=$depmode \
8756 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8757 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8758 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8759 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8760 if env $depcmd > conftest.err 2>&1 &&
8761 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8762 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8763 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8764 # icc doesn't choke on unknown options, it will just issue warnings
8765 # or remarks (even with -Werror). So we grep stderr for any message
8766 # that says an option was ignored or not supported.
8767 # When given -MP, icc 7.0 and 7.1 complain thusly:
8768 # icc: Command line warning: ignoring option '-M'; no argument required
8769 # The diagnosis changed in icc 8.0:
8770 # icc: Command line remark: option '-MP' not supported
8771 if (grep 'ignoring option' conftest.err ||
8772 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8773 am_cv_CC_dependencies_compiler_type=$depmode
8774 $as_echo "$as_me:$LINENO: success" >&5
8775 break
8776 fi
8777 fi
8778 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8779 sed -e 's/^/| /' < conftest.err >&5
8780 done
8781
8782 cd ..
8783 rm -rf conftest.dir
8784else
8785 am_cv_CC_dependencies_compiler_type=none
8786fi
8787
8788fi
8789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8790$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
8791if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
d0ac1c44 8792then as_fn_error $? "no usable dependency style found" "$LINENO" 5
6bb11ab3
L
8793else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8794
8795fi
8796
8797
8798# Check for the 'make' the user wants to use.
8799for ac_prog in make
8800do
8801 # Extract the first word of "$ac_prog", so it can be a program name with args.
8802set dummy $ac_prog; ac_word=$2
8803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8804$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8805if ${ac_cv_prog_MAKE+:} false; then :
6bb11ab3
L
8806 $as_echo_n "(cached) " >&6
8807else
8808 if test -n "$MAKE"; then
8809 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
8810else
8811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812for as_dir in $PATH
8813do
8814 IFS=$as_save_IFS
8815 test -z "$as_dir" && as_dir=.
8816 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
8818 ac_cv_prog_MAKE="$ac_prog"
8819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8820 break 2
8821 fi
8822done
8823 done
8824IFS=$as_save_IFS
8825
8826fi
8827fi
8828MAKE=$ac_cv_prog_MAKE
8829if test -n "$MAKE"; then
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
8831$as_echo "$MAKE" >&6; }
8832else
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8834$as_echo "no" >&6; }
8835fi
8836
8837
8838 test -n "$MAKE" && break
8839done
8840
8841MAKE_IS_GNU=
8842case "`$MAKE --version 2>&1 | sed 1q`" in
8843 *GNU*)
8844 MAKE_IS_GNU=yes
8845 ;;
8846esac
8847 if test "$MAKE_IS_GNU" = yes; then
8848 GMAKE_TRUE=
8849 GMAKE_FALSE='#'
8850else
8851 GMAKE_TRUE='#'
8852 GMAKE_FALSE=
8853fi
8854
8855
8856ALL_LINGUAS=
8857# If we haven't got the data from the intl directory,
8858# assume NLS is disabled.
8859USE_NLS=no
8860LIBINTL=
8861LIBINTL_DEP=
8862INCINTL=
8863XGETTEXT=
8864GMSGFMT=
8865POSUB=
8866
8867if test -f ../../intl/config.intl; then
8868 . ../../intl/config.intl
8869fi
8870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8871$as_echo_n "checking whether NLS is requested... " >&6; }
8872if test x"$USE_NLS" != xyes; then
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8874$as_echo "no" >&6; }
8875else
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8877$as_echo "yes" >&6; }
8878
8879$as_echo "#define ENABLE_NLS 1" >>confdefs.h
8880
8881
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8883$as_echo_n "checking for catalogs to be installed... " >&6; }
8884 # Look for .po and .gmo files in the source directory.
8885 CATALOGS=
8886 XLINGUAS=
8887 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8888 # If there aren't any .gmo files the shell will give us the
8889 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8890 # weeded out.
8891 case "$cat" in *\**)
8892 continue;;
8893 esac
8894 # The quadruple backslash is collapsed to a double backslash
8895 # by the backticks, then collapsed again by the double quotes,
8896 # leaving us with one backslash in the sed expression (right
8897 # before the dot that mustn't act as a wildcard).
8898 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8899 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8900 # The user is allowed to set LINGUAS to a list of languages to
8901 # install catalogs for. If it's empty that means "all of them."
8902 if test "x$LINGUAS" = x; then
8903 CATALOGS="$CATALOGS $cat"
8904 XLINGUAS="$XLINGUAS $lang"
8905 else
8906 case "$LINGUAS" in *$lang*)
8907 CATALOGS="$CATALOGS $cat"
8908 XLINGUAS="$XLINGUAS $lang"
8909 ;;
8910 esac
8911 fi
8912 done
8913 LINGUAS="$XLINGUAS"
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8915$as_echo "$LINGUAS" >&6; }
8916
8917
8918 DATADIRNAME=share
8919
8920 INSTOBJEXT=.mo
8921
8922 GENCAT=gencat
8923
8924 CATOBJEXT=.gmo
8925
8926fi
8927
8928# Check for common headers.
8929# FIXME: Seems to me this can cause problems for i386-windows hosts.
8930# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
8931for ac_header in stdlib.h string.h strings.h unistd.h time.h
8932do :
8933 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8934ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 8935if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
8936 cat >>confdefs.h <<_ACEOF
8937#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8938_ACEOF
8939
8940fi
8941
8942done
8943
936df756 8944for ac_header in sys/time.h sys/times.h sys/resource.h sys/mman.h
6bb11ab3
L
8945do :
8946 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8947ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 8948if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
8949 cat >>confdefs.h <<_ACEOF
8950#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8951_ACEOF
8952
8953fi
8954
8955done
8956
8957for ac_header in fcntl.h fpu_control.h
8958do :
8959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8960ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 8961if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
8962 cat >>confdefs.h <<_ACEOF
8963#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8964_ACEOF
8965
8966fi
8967
8968done
8969
8970for ac_header in dlfcn.h errno.h sys/stat.h
8971do :
8972 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8973ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 8974if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
8975 cat >>confdefs.h <<_ACEOF
8976#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8977_ACEOF
8978
8979fi
8980
8981done
8982
8983for ac_func in getrusage time sigaction __setfpucw
8984do :
8985 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8986ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 8987if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6bb11ab3
L
8988 cat >>confdefs.h <<_ACEOF
8989#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8990_ACEOF
8991
8992fi
8993done
8994
936df756
MF
8995for ac_func in mmap munmap lstat truncate ftruncate posix_fallocate
8996do :
8997 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8998ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 8999if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
936df756
MF
9000 cat >>confdefs.h <<_ACEOF
9001#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9002_ACEOF
9003
9004fi
9005done
9006
9007ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
9008#include <sys/types.h>
9009#endif
9010#ifdef HAVE_SYS_STAT_H
9011#include <sys/stat.h>
9012#endif
9013"
d0ac1c44 9014if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
936df756
MF
9015
9016cat >>confdefs.h <<_ACEOF
9017#define HAVE_STRUCT_STAT_ST_DEV 1
9018_ACEOF
9019
9020
9021fi
9022ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
9023#include <sys/types.h>
9024#endif
9025#ifdef HAVE_SYS_STAT_H
9026#include <sys/stat.h>
9027#endif
9028"
d0ac1c44 9029if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
936df756
MF
9030
9031cat >>confdefs.h <<_ACEOF
9032#define HAVE_STRUCT_STAT_ST_INO 1
9033_ACEOF
9034
9035
9036fi
9037ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
9038#include <sys/types.h>
9039#endif
9040#ifdef HAVE_SYS_STAT_H
9041#include <sys/stat.h>
9042#endif
9043"
d0ac1c44 9044if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
936df756
MF
9045
9046cat >>confdefs.h <<_ACEOF
9047#define HAVE_STRUCT_STAT_ST_MODE 1
9048_ACEOF
9049
9050
9051fi
9052ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
9053#include <sys/types.h>
9054#endif
9055#ifdef HAVE_SYS_STAT_H
9056#include <sys/stat.h>
9057#endif
9058"
d0ac1c44 9059if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
936df756
MF
9060
9061cat >>confdefs.h <<_ACEOF
9062#define HAVE_STRUCT_STAT_ST_NLINK 1
9063_ACEOF
9064
9065
9066fi
9067ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
9068#include <sys/types.h>
9069#endif
9070#ifdef HAVE_SYS_STAT_H
9071#include <sys/stat.h>
9072#endif
9073"
d0ac1c44 9074if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
936df756
MF
9075
9076cat >>confdefs.h <<_ACEOF
9077#define HAVE_STRUCT_STAT_ST_UID 1
9078_ACEOF
9079
9080
9081fi
9082ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
9083#include <sys/types.h>
9084#endif
9085#ifdef HAVE_SYS_STAT_H
9086#include <sys/stat.h>
9087#endif
9088"
d0ac1c44 9089if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
936df756
MF
9090
9091cat >>confdefs.h <<_ACEOF
9092#define HAVE_STRUCT_STAT_ST_GID 1
9093_ACEOF
9094
9095
9096fi
9097ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
9098#include <sys/types.h>
9099#endif
9100#ifdef HAVE_SYS_STAT_H
9101#include <sys/stat.h>
9102#endif
9103"
d0ac1c44 9104if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
936df756
MF
9105
9106cat >>confdefs.h <<_ACEOF
9107#define HAVE_STRUCT_STAT_ST_RDEV 1
9108_ACEOF
9109
9110
9111fi
9112ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
9113#include <sys/types.h>
9114#endif
9115#ifdef HAVE_SYS_STAT_H
9116#include <sys/stat.h>
9117#endif
9118"
d0ac1c44 9119if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
936df756
MF
9120
9121cat >>confdefs.h <<_ACEOF
9122#define HAVE_STRUCT_STAT_ST_SIZE 1
9123_ACEOF
9124
9125
9126fi
9127ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
9128#include <sys/types.h>
9129#endif
9130#ifdef HAVE_SYS_STAT_H
9131#include <sys/stat.h>
9132#endif
9133"
d0ac1c44 9134if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
936df756
MF
9135
9136cat >>confdefs.h <<_ACEOF
9137#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9138_ACEOF
9139
9140
9141fi
9142ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
9143#include <sys/types.h>
9144#endif
9145#ifdef HAVE_SYS_STAT_H
9146#include <sys/stat.h>
9147#endif
9148"
d0ac1c44 9149if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
936df756
MF
9150
9151cat >>confdefs.h <<_ACEOF
9152#define HAVE_STRUCT_STAT_ST_BLOCKS 1
9153_ACEOF
9154
9155
9156fi
9157ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
9158#include <sys/types.h>
9159#endif
9160#ifdef HAVE_SYS_STAT_H
9161#include <sys/stat.h>
9162#endif
9163"
d0ac1c44 9164if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
936df756
MF
9165
9166cat >>confdefs.h <<_ACEOF
9167#define HAVE_STRUCT_STAT_ST_ATIME 1
9168_ACEOF
9169
9170
9171fi
9172ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
9173#include <sys/types.h>
9174#endif
9175#ifdef HAVE_SYS_STAT_H
9176#include <sys/stat.h>
9177#endif
9178"
d0ac1c44 9179if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
936df756
MF
9180
9181cat >>confdefs.h <<_ACEOF
9182#define HAVE_STRUCT_STAT_ST_MTIME 1
9183_ACEOF
9184
9185
9186fi
9187ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
9188#include <sys/types.h>
9189#endif
9190#ifdef HAVE_SYS_STAT_H
9191#include <sys/stat.h>
9192#endif
9193"
d0ac1c44 9194if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
936df756
MF
9195
9196cat >>confdefs.h <<_ACEOF
9197#define HAVE_STRUCT_STAT_ST_CTIME 1
9198_ACEOF
9199
9200
9201fi
9202
9203ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9204#include <sys/socket.h>
9205
9206"
d0ac1c44 9207if test "x$ac_cv_type_socklen_t" = xyes; then :
936df756
MF
9208
9209cat >>confdefs.h <<_ACEOF
9210#define HAVE_SOCKLEN_T 1
9211_ACEOF
9212
9213
9214fi
9215
6bb11ab3
L
9216
9217# Check for socket libraries
9218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
9219$as_echo_n "checking for bind in -lsocket... " >&6; }
d0ac1c44 9220if ${ac_cv_lib_socket_bind+:} false; then :
6bb11ab3
L
9221 $as_echo_n "(cached) " >&6
9222else
9223 ac_check_lib_save_LIBS=$LIBS
9224LIBS="-lsocket $LIBS"
9225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226/* end confdefs.h. */
9227
9228/* Override any GCC internal prototype to avoid an error.
9229 Use char because int might match the return type of a GCC
9230 builtin and then its argument prototype would still apply. */
9231#ifdef __cplusplus
9232extern "C"
9233#endif
9234char bind ();
9235int
9236main ()
9237{
9238return bind ();
9239 ;
9240 return 0;
9241}
9242_ACEOF
9243if ac_fn_c_try_link "$LINENO"; then :
9244 ac_cv_lib_socket_bind=yes
9245else
9246 ac_cv_lib_socket_bind=no
9247fi
9248rm -f core conftest.err conftest.$ac_objext \
9249 conftest$ac_exeext conftest.$ac_ext
9250LIBS=$ac_check_lib_save_LIBS
9251fi
9252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
9253$as_echo "$ac_cv_lib_socket_bind" >&6; }
d0ac1c44 9254if test "x$ac_cv_lib_socket_bind" = xyes; then :
6bb11ab3
L
9255 cat >>confdefs.h <<_ACEOF
9256#define HAVE_LIBSOCKET 1
9257_ACEOF
9258
9259 LIBS="-lsocket $LIBS"
9260
9261fi
9262
9263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
9264$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
d0ac1c44 9265if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6bb11ab3
L
9266 $as_echo_n "(cached) " >&6
9267else
9268 ac_check_lib_save_LIBS=$LIBS
9269LIBS="-lnsl $LIBS"
9270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271/* end confdefs.h. */
9272
9273/* Override any GCC internal prototype to avoid an error.
9274 Use char because int might match the return type of a GCC
9275 builtin and then its argument prototype would still apply. */
9276#ifdef __cplusplus
9277extern "C"
9278#endif
9279char gethostbyname ();
9280int
9281main ()
9282{
9283return gethostbyname ();
9284 ;
9285 return 0;
9286}
9287_ACEOF
9288if ac_fn_c_try_link "$LINENO"; then :
9289 ac_cv_lib_nsl_gethostbyname=yes
9290else
9291 ac_cv_lib_nsl_gethostbyname=no
9292fi
9293rm -f core conftest.err conftest.$ac_objext \
9294 conftest$ac_exeext conftest.$ac_ext
9295LIBS=$ac_check_lib_save_LIBS
9296fi
9297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
9298$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
d0ac1c44 9299if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6bb11ab3
L
9300 cat >>confdefs.h <<_ACEOF
9301#define HAVE_LIBNSL 1
9302_ACEOF
9303
9304 LIBS="-lnsl $LIBS"
9305
9306fi
9307
9308
9309# BFD conditionally uses zlib, so we must link it in if libbfd does, by
9310# using the same condition.
9311
aadc9410 9312 # Use the system's zlib library.
7fed4b0b
L
9313 zlibdir="-L\$(top_builddir)/../zlib"
9314 zlibinc="-I\$(top_srcdir)/../zlib"
6bb11ab3 9315
aadc9410
MF
9316# Check whether --with-system-zlib was given.
9317if test "${with_system_zlib+set}" = set; then :
0ceaf1ec
L
9318 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
9319 zlibdir=
9320 zlibinc=
9321 fi
6bb11ab3
L
9322
9323fi
9324
6bb11ab3 9325
6bb11ab3 9326
6bb11ab3
L
9327
9328
9329# BFD uses libdl when when plugins enabled.
9330
faa743bb
RM
9331 maybe_plugins=no
9332 for ac_header in dlfcn.h
9333do :
9334 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9335"
d0ac1c44 9336if test "x$ac_cv_header_dlfcn_h" = xyes; then :
faa743bb
RM
9337 cat >>confdefs.h <<_ACEOF
9338#define HAVE_DLFCN_H 1
9339_ACEOF
9340 maybe_plugins=yes
9341fi
9342
9343done
9344
9345 for ac_header in windows.h
9346do :
9347 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
9348"
d0ac1c44 9349if test "x$ac_cv_header_windows_h" = xyes; then :
faa743bb
RM
9350 cat >>confdefs.h <<_ACEOF
9351#define HAVE_WINDOWS_H 1
9352_ACEOF
9353 maybe_plugins=yes
9354fi
9355
9356done
9357
9358
9359 # Check whether --enable-plugins was given.
6bb11ab3
L
9360if test "${enable_plugins+set}" = set; then :
9361 enableval=$enable_plugins; case "${enableval}" in
faa743bb
RM
9362 no) plugins=no ;;
9363 *) plugins=yes
9364 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 9365 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
faa743bb
RM
9366 fi ;;
9367 esac
6bb11ab3 9368else
faa743bb
RM
9369 plugins=$maybe_plugins
9370
6bb11ab3
L
9371fi
9372
2974be62 9373 if test "$plugins" = "yes"; then
37f980dc
SM
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
9375$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 9376if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
9377 $as_echo_n "(cached) " >&6
9378else
9379 ac_func_search_save_LIBS=$LIBS
9380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381/* end confdefs.h. */
9382
9383/* Override any GCC internal prototype to avoid an error.
9384 Use char because int might match the return type of a GCC
9385 builtin and then its argument prototype would still apply. */
9386#ifdef __cplusplus
9387extern "C"
9388#endif
37f980dc 9389char dlsym ();
2974be62
AM
9390int
9391main ()
9392{
37f980dc 9393return dlsym ();
2974be62
AM
9394 ;
9395 return 0;
9396}
9397_ACEOF
9398for ac_lib in '' dl; do
9399 if test -z "$ac_lib"; then
9400 ac_res="none required"
9401 else
9402 ac_res=-l$ac_lib
9403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9404 fi
9405 if ac_fn_c_try_link "$LINENO"; then :
37f980dc 9406 ac_cv_search_dlsym=$ac_res
2974be62
AM
9407fi
9408rm -f core conftest.err conftest.$ac_objext \
9409 conftest$ac_exeext
d0ac1c44 9410 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
9411 break
9412fi
9413done
d0ac1c44 9414if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
9415
9416else
37f980dc 9417 ac_cv_search_dlsym=no
2974be62
AM
9418fi
9419rm conftest.$ac_ext
9420LIBS=$ac_func_search_save_LIBS
9421fi
37f980dc
SM
9422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
9423$as_echo "$ac_cv_search_dlsym" >&6; }
9424ac_res=$ac_cv_search_dlsym
2974be62
AM
9425if test "$ac_res" != no; then :
9426 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9427
9428fi
9429
9430 fi
6bb11ab3
L
9431
9432 if test "$plugins" = yes; then
9433 PLUGINS_TRUE=
9434 PLUGINS_FALSE='#'
9435else
9436 PLUGINS_TRUE='#'
9437 PLUGINS_FALSE=
9438fi
9439
9440
9441
9442
9443
9444# Set options
9445enable_dlopen=yes
9446
9447
9448
9449
9450 enable_win32_dll=no
9451
9452
9453 # Check whether --enable-shared was given.
9454if test "${enable_shared+set}" = set; then :
9455 enableval=$enable_shared; p=${PACKAGE-default}
9456 case $enableval in
9457 yes) enable_shared=yes ;;
9458 no) enable_shared=no ;;
9459 *)
9460 enable_shared=no
9461 # Look at the argument we got. We use all the common list separators.
9462 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9463 for pkg in $enableval; do
9464 IFS="$lt_save_ifs"
9465 if test "X$pkg" = "X$p"; then
9466 enable_shared=yes
9467 fi
9468 done
9469 IFS="$lt_save_ifs"
9470 ;;
9471 esac
9472else
9473 enable_shared=yes
9474fi
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484 # Check whether --enable-static was given.
9485if test "${enable_static+set}" = set; then :
9486 enableval=$enable_static; p=${PACKAGE-default}
9487 case $enableval in
9488 yes) enable_static=yes ;;
9489 no) enable_static=no ;;
9490 *)
9491 enable_static=no
9492 # Look at the argument we got. We use all the common list separators.
9493 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9494 for pkg in $enableval; do
9495 IFS="$lt_save_ifs"
9496 if test "X$pkg" = "X$p"; then
9497 enable_static=yes
9498 fi
9499 done
9500 IFS="$lt_save_ifs"
9501 ;;
9502 esac
9503else
9504 enable_static=yes
9505fi
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516# Check whether --with-pic was given.
9517if test "${with_pic+set}" = set; then :
9518 withval=$with_pic; pic_mode="$withval"
9519else
9520 pic_mode=default
9521fi
9522
9523
9524test -z "$pic_mode" && pic_mode=default
9525
9526
9527
9528
9529
9530
9531
9532 # Check whether --enable-fast-install was given.
9533if test "${enable_fast_install+set}" = set; then :
9534 enableval=$enable_fast_install; p=${PACKAGE-default}
9535 case $enableval in
9536 yes) enable_fast_install=yes ;;
9537 no) enable_fast_install=no ;;
9538 *)
9539 enable_fast_install=no
9540 # Look at the argument we got. We use all the common list separators.
9541 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9542 for pkg in $enableval; do
9543 IFS="$lt_save_ifs"
9544 if test "X$pkg" = "X$p"; then
9545 enable_fast_install=yes
9546 fi
9547 done
9548 IFS="$lt_save_ifs"
9549 ;;
9550 esac
9551else
9552 enable_fast_install=yes
9553fi
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565# This can be used to rebuild libtool when needed
9566LIBTOOL_DEPS="$ltmain"
9567
9568# Always use our own libtool.
9569LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596test -z "$LN_S" && LN_S="ln -s"
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611if test -n "${ZSH_VERSION+set}" ; then
9612 setopt NO_GLOB_SUBST
87326c78 9613fi
87326c78 9614
6bb11ab3
L
9615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9616$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 9617if ${lt_cv_objdir+:} false; then :
6bb11ab3
L
9618 $as_echo_n "(cached) " >&6
9619else
9620 rm -f .libs 2>/dev/null
9621mkdir .libs 2>/dev/null
9622if test -d .libs; then
9623 lt_cv_objdir=.libs
9624else
9625 # MS-DOS does not allow filenames that begin with a dot.
9626 lt_cv_objdir=_libs
9627fi
9628rmdir .libs 2>/dev/null
9629fi
9630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9631$as_echo "$lt_cv_objdir" >&6; }
9632objdir=$lt_cv_objdir
9633
9634
9635
9636
9637
9638cat >>confdefs.h <<_ACEOF
9639#define LT_OBJDIR "$lt_cv_objdir/"
9640_ACEOF
9641
9642
9643
9644
9645case $host_os in
9646aix3*)
9647 # AIX sometimes has problems with the GCC collect2 program. For some
9648 # reason, if we set the COLLECT_NAMES environment variable, the problems
9649 # vanish in a puff of smoke.
9650 if test "X${COLLECT_NAMES+set}" != Xset; then
9651 COLLECT_NAMES=
9652 export COLLECT_NAMES
9653 fi
9654 ;;
87326c78 9655esac
6bb11ab3
L
9656
9657# Global variables:
9658ofile=libtool
9659can_build_shared=yes
9660
9661# All known linkers require a `.a' archive for static linking (except MSVC,
9662# which needs '.lib').
9663libext=a
9664
9665with_gnu_ld="$lt_cv_prog_gnu_ld"
9666
9667old_CC="$CC"
9668old_CFLAGS="$CFLAGS"
9669
9670# Set sane defaults for various variables
9671test -z "$CC" && CC=cc
9672test -z "$LTCC" && LTCC=$CC
9673test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9674test -z "$LD" && LD=ld
9675test -z "$ac_objext" && ac_objext=o
9676
9677for cc_temp in $compiler""; do
9678 case $cc_temp in
9679 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9680 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9681 \-*) ;;
9682 *) break;;
9683 esac
9684done
9685cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9686
9687
9688# Only perform the check for file, if the check method requires it
9689test -z "$MAGIC_CMD" && MAGIC_CMD=file
9690case $deplibs_check_method in
9691file_magic*)
9692 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9694$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 9695if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
9696 $as_echo_n "(cached) " >&6
9697else
9698 case $MAGIC_CMD in
9699[\\/*] | ?:[\\/]*)
9700 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9701 ;;
9702*)
9703 lt_save_MAGIC_CMD="$MAGIC_CMD"
9704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9705 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9706 for ac_dir in $ac_dummy; do
9707 IFS="$lt_save_ifs"
9708 test -z "$ac_dir" && ac_dir=.
9709 if test -f $ac_dir/${ac_tool_prefix}file; then
9710 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9711 if test -n "$file_magic_test_file"; then
9712 case $deplibs_check_method in
9713 "file_magic "*)
9714 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9715 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9716 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9717 $EGREP "$file_magic_regex" > /dev/null; then
9718 :
9719 else
9720 cat <<_LT_EOF 1>&2
9721
9722*** Warning: the command libtool uses to detect shared libraries,
9723*** $file_magic_cmd, produces output that libtool cannot recognize.
9724*** The result is that libtool may fail to recognize shared libraries
9725*** as such. This will affect the creation of libtool libraries that
9726*** depend on shared libraries, but programs linked with such libtool
9727*** libraries will work regardless of this problem. Nevertheless, you
9728*** may want to report the problem to your system manager and/or to
9729*** bug-libtool@gnu.org
9730
9731_LT_EOF
9732 fi ;;
9733 esac
9734 fi
9735 break
87326c78 9736 fi
6bb11ab3
L
9737 done
9738 IFS="$lt_save_ifs"
9739 MAGIC_CMD="$lt_save_MAGIC_CMD"
9740 ;;
9741esac
87326c78 9742fi
87326c78 9743
6bb11ab3
L
9744MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9745if test -n "$MAGIC_CMD"; then
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9747$as_echo "$MAGIC_CMD" >&6; }
9748else
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750$as_echo "no" >&6; }
9751fi
87326c78 9752
6bb11ab3
L
9753
9754
9755
9756
9757if test -z "$lt_cv_path_MAGIC_CMD"; then
9758 if test -n "$ac_tool_prefix"; then
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9760$as_echo_n "checking for file... " >&6; }
d0ac1c44 9761if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
9762 $as_echo_n "(cached) " >&6
9763else
9764 case $MAGIC_CMD in
9765[\\/*] | ?:[\\/]*)
9766 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9767 ;;
9768*)
9769 lt_save_MAGIC_CMD="$MAGIC_CMD"
9770 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9771 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9772 for ac_dir in $ac_dummy; do
9773 IFS="$lt_save_ifs"
9774 test -z "$ac_dir" && ac_dir=.
9775 if test -f $ac_dir/file; then
9776 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9777 if test -n "$file_magic_test_file"; then
9778 case $deplibs_check_method in
9779 "file_magic "*)
9780 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9781 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9782 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9783 $EGREP "$file_magic_regex" > /dev/null; then
9784 :
9785 else
9786 cat <<_LT_EOF 1>&2
9787
9788*** Warning: the command libtool uses to detect shared libraries,
9789*** $file_magic_cmd, produces output that libtool cannot recognize.
9790*** The result is that libtool may fail to recognize shared libraries
9791*** as such. This will affect the creation of libtool libraries that
9792*** depend on shared libraries, but programs linked with such libtool
9793*** libraries will work regardless of this problem. Nevertheless, you
9794*** may want to report the problem to your system manager and/or to
9795*** bug-libtool@gnu.org
9796
9797_LT_EOF
9798 fi ;;
9799 esac
9800 fi
9801 break
9802 fi
9803 done
9804 IFS="$lt_save_ifs"
9805 MAGIC_CMD="$lt_save_MAGIC_CMD"
9806 ;;
87326c78 9807esac
6bb11ab3
L
9808fi
9809
9810MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9811if test -n "$MAGIC_CMD"; then
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9813$as_echo "$MAGIC_CMD" >&6; }
9814else
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9816$as_echo "no" >&6; }
9817fi
9818
9819
9820 else
9821 MAGIC_CMD=:
9822 fi
9823fi
9824
9825 fi
9826 ;;
9827esac
9828
9829# Use C for the default configuration in the libtool script
9830
9831lt_save_CC="$CC"
9832ac_ext=c
9833ac_cpp='$CPP $CPPFLAGS'
9834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9836ac_compiler_gnu=$ac_cv_c_compiler_gnu
9837
9838
9839# Source file extension for C test sources.
9840ac_ext=c
9841
9842# Object file extension for compiled C test sources.
9843objext=o
9844objext=$objext
9845
9846# Code to be used in simple compile tests
9847lt_simple_compile_test_code="int some_variable = 0;"
9848
9849# Code to be used in simple link tests
9850lt_simple_link_test_code='int main(){return(0);}'
9851
9852
9853
9854
9855
9856
9857
9858# If no C compiler was specified, use CC.
9859LTCC=${LTCC-"$CC"}
9860
9861# If no C compiler flags were specified, use CFLAGS.
9862LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9863
9864# Allow CC to be a program name with arguments.
9865compiler=$CC
9866
9867# Save the default compiler, since it gets overwritten when the other
9868# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9869compiler_DEFAULT=$CC
9870
9871# save warnings/boilerplate of simple test code
9872ac_outfile=conftest.$ac_objext
9873echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9874eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9875_lt_compiler_boilerplate=`cat conftest.err`
9876$RM conftest*
9877
9878ac_outfile=conftest.$ac_objext
9879echo "$lt_simple_link_test_code" >conftest.$ac_ext
9880eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9881_lt_linker_boilerplate=`cat conftest.err`
9882$RM -r conftest*
9883
9884
9885## CAVEAT EMPTOR:
9886## There is no encapsulation within the following macros, do not change
9887## the running order or otherwise move them around unless you know exactly
9888## what you are doing...
9889if test -n "$compiler"; then
9890
9891lt_prog_compiler_no_builtin_flag=
9892
9893if test "$GCC" = yes; then
9894 case $cc_basename in
9895 nvcc*)
9896 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9897 *)
9898 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
87326c78 9899 esac
6bb11ab3
L
9900
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9902$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 9903if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6bb11ab3 9904 $as_echo_n "(cached) " >&6
87326c78 9905else
6bb11ab3
L
9906 lt_cv_prog_compiler_rtti_exceptions=no
9907 ac_outfile=conftest.$ac_objext
9908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9909 lt_compiler_flag="-fno-rtti -fno-exceptions"
9910 # Insert the option either (1) after the last *FLAGS variable, or
9911 # (2) before a word containing "conftest.", or (3) at the end.
9912 # Note that $ac_compile itself does not contain backslashes and begins
9913 # with a dollar sign (not a hyphen), so the echo should work correctly.
9914 # The option is referenced via a variable to avoid confusing sed.
9915 lt_compile=`echo "$ac_compile" | $SED \
9916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9918 -e 's:$: $lt_compiler_flag:'`
9919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9920 (eval "$lt_compile" 2>conftest.err)
9921 ac_status=$?
9922 cat conftest.err >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 if (exit $ac_status) && test -s "$ac_outfile"; then
9925 # The compiler can only warn and ignore the option if not recognized
9926 # So say no if there are warnings other than the usual output.
9927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9930 lt_cv_prog_compiler_rtti_exceptions=yes
9931 fi
9932 fi
9933 $RM conftest*
9934
87326c78 9935fi
6bb11ab3
L
9936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9937$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9938
9939if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9940 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9941else
9942 :
9943fi
9944
9945fi
9946
9947
9948
9949
9950
9951
9952 lt_prog_compiler_wl=
9953lt_prog_compiler_pic=
9954lt_prog_compiler_static=
9955
9956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9957$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9958
9959 if test "$GCC" = yes; then
9960 lt_prog_compiler_wl='-Wl,'
9961 lt_prog_compiler_static='-static'
9962
9963 case $host_os in
9964 aix*)
9965 # All AIX code is PIC.
9966 if test "$host_cpu" = ia64; then
9967 # AIX 5 now supports IA64 processor
9968 lt_prog_compiler_static='-Bstatic'
9969 fi
9970 lt_prog_compiler_pic='-fPIC'
9971 ;;
9972
9973 amigaos*)
9974 case $host_cpu in
9975 powerpc)
9976 # see comment about AmigaOS4 .so support
9977 lt_prog_compiler_pic='-fPIC'
9978 ;;
9979 m68k)
9980 # FIXME: we need at least 68020 code to build shared libraries, but
9981 # adding the `-m68020' flag to GCC prevents building anything better,
9982 # like `-m68040'.
9983 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9984 ;;
9985 esac
9986 ;;
9987
9988 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9989 # PIC is the default for these OSes.
9990 ;;
9991
9992 mingw* | cygwin* | pw32* | os2* | cegcc*)
9993 # This hack is so that the source file can tell whether it is being
9994 # built for inclusion in a dll (and should export symbols for example).
9995 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9996 # (--disable-auto-import) libraries
9997 lt_prog_compiler_pic='-DDLL_EXPORT'
9998 ;;
9999
10000 darwin* | rhapsody*)
10001 # PIC is the default on this platform
10002 # Common symbols not allowed in MH_DYLIB files
10003 lt_prog_compiler_pic='-fno-common'
10004 ;;
10005
10006 haiku*)
10007 # PIC is the default for Haiku.
10008 # The "-static" flag exists, but is broken.
10009 lt_prog_compiler_static=
10010 ;;
10011
10012 hpux*)
10013 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10014 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10015 # sets the default TLS model and affects inlining.
10016 case $host_cpu in
10017 hppa*64*)
10018 # +Z the default
10019 ;;
10020 *)
10021 lt_prog_compiler_pic='-fPIC'
10022 ;;
10023 esac
10024 ;;
10025
10026 interix[3-9]*)
10027 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10028 # Instead, we relocate shared libraries at runtime.
10029 ;;
10030
10031 msdosdjgpp*)
10032 # Just because we use GCC doesn't mean we suddenly get shared libraries
10033 # on systems that don't support them.
10034 lt_prog_compiler_can_build_shared=no
10035 enable_shared=no
10036 ;;
10037
10038 *nto* | *qnx*)
10039 # QNX uses GNU C++, but need to define -shared option too, otherwise
10040 # it will coredump.
10041 lt_prog_compiler_pic='-fPIC -shared'
10042 ;;
10043
10044 sysv4*MP*)
10045 if test -d /usr/nec; then
10046 lt_prog_compiler_pic=-Kconform_pic
10047 fi
10048 ;;
10049
10050 *)
10051 lt_prog_compiler_pic='-fPIC'
10052 ;;
10053 esac
10054
10055 case $cc_basename in
10056 nvcc*) # Cuda Compiler Driver 2.2
10057 lt_prog_compiler_wl='-Xlinker '
10058 lt_prog_compiler_pic='-Xcompiler -fPIC'
10059 ;;
10060 esac
10061 else
10062 # PORTME Check for flag to pass linker flags through the system compiler.
10063 case $host_os in
10064 aix*)
10065 lt_prog_compiler_wl='-Wl,'
10066 if test "$host_cpu" = ia64; then
10067 # AIX 5 now supports IA64 processor
10068 lt_prog_compiler_static='-Bstatic'
10069 else
10070 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10071 fi
10072 ;;
10073
10074 mingw* | cygwin* | pw32* | os2* | cegcc*)
10075 # This hack is so that the source file can tell whether it is being
10076 # built for inclusion in a dll (and should export symbols for example).
10077 lt_prog_compiler_pic='-DDLL_EXPORT'
10078 ;;
10079
10080 hpux9* | hpux10* | hpux11*)
10081 lt_prog_compiler_wl='-Wl,'
10082 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10083 # not for PA HP-UX.
10084 case $host_cpu in
10085 hppa*64*|ia64*)
10086 # +Z the default
10087 ;;
10088 *)
10089 lt_prog_compiler_pic='+Z'
10090 ;;
10091 esac
10092 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10093 lt_prog_compiler_static='${wl}-a ${wl}archive'
10094 ;;
10095
10096 irix5* | irix6* | nonstopux*)
10097 lt_prog_compiler_wl='-Wl,'
10098 # PIC (with -KPIC) is the default.
10099 lt_prog_compiler_static='-non_shared'
10100 ;;
10101
10102 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10103 case $cc_basename in
10104 # old Intel for x86_64 which still supported -KPIC.
10105 ecc*)
10106 lt_prog_compiler_wl='-Wl,'
10107 lt_prog_compiler_pic='-KPIC'
10108 lt_prog_compiler_static='-static'
10109 ;;
10110 # icc used to be incompatible with GCC.
10111 # ICC 10 doesn't accept -KPIC any more.
10112 icc* | ifort*)
10113 lt_prog_compiler_wl='-Wl,'
10114 lt_prog_compiler_pic='-fPIC'
10115 lt_prog_compiler_static='-static'
10116 ;;
10117 # Lahey Fortran 8.1.
10118 lf95*)
10119 lt_prog_compiler_wl='-Wl,'
10120 lt_prog_compiler_pic='--shared'
10121 lt_prog_compiler_static='--static'
10122 ;;
10123 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10124 # Portland Group compilers (*not* the Pentium gcc compiler,
10125 # which looks to be a dead project)
10126 lt_prog_compiler_wl='-Wl,'
10127 lt_prog_compiler_pic='-fpic'
10128 lt_prog_compiler_static='-Bstatic'
10129 ;;
10130 ccc*)
10131 lt_prog_compiler_wl='-Wl,'
10132 # All Alpha code is PIC.
10133 lt_prog_compiler_static='-non_shared'
10134 ;;
10135 xl* | bgxl* | bgf* | mpixl*)
10136 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10137 lt_prog_compiler_wl='-Wl,'
10138 lt_prog_compiler_pic='-qpic'
10139 lt_prog_compiler_static='-qstaticlink'
10140 ;;
10141 *)
10142 case `$CC -V 2>&1 | sed 5q` in
10143 *Sun\ F* | *Sun*Fortran*)
10144 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10145 lt_prog_compiler_pic='-KPIC'
10146 lt_prog_compiler_static='-Bstatic'
10147 lt_prog_compiler_wl=''
10148 ;;
10149 *Sun\ C*)
10150 # Sun C 5.9
10151 lt_prog_compiler_pic='-KPIC'
10152 lt_prog_compiler_static='-Bstatic'
10153 lt_prog_compiler_wl='-Wl,'
10154 ;;
10155 esac
10156 ;;
10157 esac
10158 ;;
10159
10160 newsos6)
10161 lt_prog_compiler_pic='-KPIC'
10162 lt_prog_compiler_static='-Bstatic'
10163 ;;
10164
10165 *nto* | *qnx*)
10166 # QNX uses GNU C++, but need to define -shared option too, otherwise
10167 # it will coredump.
10168 lt_prog_compiler_pic='-fPIC -shared'
10169 ;;
10170
10171 osf3* | osf4* | osf5*)
10172 lt_prog_compiler_wl='-Wl,'
10173 # All OSF/1 code is PIC.
10174 lt_prog_compiler_static='-non_shared'
10175 ;;
10176
10177 rdos*)
10178 lt_prog_compiler_static='-non_shared'
10179 ;;
87326c78 10180
6bb11ab3
L
10181 solaris*)
10182 lt_prog_compiler_pic='-KPIC'
10183 lt_prog_compiler_static='-Bstatic'
10184 case $cc_basename in
10185 f77* | f90* | f95*)
10186 lt_prog_compiler_wl='-Qoption ld ';;
10187 *)
10188 lt_prog_compiler_wl='-Wl,';;
10189 esac
10190 ;;
87326c78 10191
6bb11ab3
L
10192 sunos4*)
10193 lt_prog_compiler_wl='-Qoption ld '
10194 lt_prog_compiler_pic='-PIC'
10195 lt_prog_compiler_static='-Bstatic'
10196 ;;
87326c78 10197
6bb11ab3
L
10198 sysv4 | sysv4.2uw2* | sysv4.3*)
10199 lt_prog_compiler_wl='-Wl,'
10200 lt_prog_compiler_pic='-KPIC'
10201 lt_prog_compiler_static='-Bstatic'
10202 ;;
10203
10204 sysv4*MP*)
10205 if test -d /usr/nec ;then
10206 lt_prog_compiler_pic='-Kconform_pic'
10207 lt_prog_compiler_static='-Bstatic'
10208 fi
10209 ;;
10210
10211 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10212 lt_prog_compiler_wl='-Wl,'
10213 lt_prog_compiler_pic='-KPIC'
10214 lt_prog_compiler_static='-Bstatic'
10215 ;;
10216
10217 unicos*)
10218 lt_prog_compiler_wl='-Wl,'
10219 lt_prog_compiler_can_build_shared=no
10220 ;;
10221
10222 uts4*)
10223 lt_prog_compiler_pic='-pic'
10224 lt_prog_compiler_static='-Bstatic'
10225 ;;
10226
10227 *)
10228 lt_prog_compiler_can_build_shared=no
10229 ;;
10230 esac
10231 fi
10232
10233case $host_os in
10234 # For platforms which do not support PIC, -DPIC is meaningless:
10235 *djgpp*)
10236 lt_prog_compiler_pic=
10237 ;;
10238 *)
10239 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10240 ;;
87326c78 10241esac
6bb11ab3
L
10242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10243$as_echo "$lt_prog_compiler_pic" >&6; }
10244
10245
10246
10247
10248
10249
10250#
10251# Check to make sure the PIC flag actually works.
10252#
10253if test -n "$lt_prog_compiler_pic"; then
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10255$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 10256if ${lt_cv_prog_compiler_pic_works+:} false; then :
6bb11ab3 10257 $as_echo_n "(cached) " >&6
87326c78 10258else
6bb11ab3
L
10259 lt_cv_prog_compiler_pic_works=no
10260 ac_outfile=conftest.$ac_objext
10261 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10262 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10263 # Insert the option either (1) after the last *FLAGS variable, or
10264 # (2) before a word containing "conftest.", or (3) at the end.
10265 # Note that $ac_compile itself does not contain backslashes and begins
10266 # with a dollar sign (not a hyphen), so the echo should work correctly.
10267 # The option is referenced via a variable to avoid confusing sed.
10268 lt_compile=`echo "$ac_compile" | $SED \
10269 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10270 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10271 -e 's:$: $lt_compiler_flag:'`
10272 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10273 (eval "$lt_compile" 2>conftest.err)
10274 ac_status=$?
10275 cat conftest.err >&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 if (exit $ac_status) && test -s "$ac_outfile"; then
10278 # The compiler can only warn and ignore the option if not recognized
10279 # So say no if there are warnings other than the usual output.
10280 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10281 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10282 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10283 lt_cv_prog_compiler_pic_works=yes
10284 fi
10285 fi
10286 $RM conftest*
87326c78 10287
87326c78 10288fi
6bb11ab3
L
10289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10290$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10291
10292if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10293 case $lt_prog_compiler_pic in
10294 "" | " "*) ;;
10295 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10296 esac
10297else
10298 lt_prog_compiler_pic=
10299 lt_prog_compiler_can_build_shared=no
87326c78 10300fi
6bb11ab3
L
10301
10302fi
10303
10304
10305
10306
10307
10308
10309#
10310# Check to make sure the static flag actually works.
10311#
10312wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10314$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 10315if ${lt_cv_prog_compiler_static_works+:} false; then :
87326c78
DD
10316 $as_echo_n "(cached) " >&6
10317else
6bb11ab3
L
10318 lt_cv_prog_compiler_static_works=no
10319 save_LDFLAGS="$LDFLAGS"
10320 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10321 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10322 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10323 # The linker can only warn and ignore the option if not recognized
10324 # So say no if there are warnings
10325 if test -s conftest.err; then
10326 # Append any errors to the config.log.
10327 cat conftest.err 1>&5
10328 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10330 if diff conftest.exp conftest.er2 >/dev/null; then
10331 lt_cv_prog_compiler_static_works=yes
10332 fi
10333 else
10334 lt_cv_prog_compiler_static_works=yes
10335 fi
10336 fi
10337 $RM -r conftest*
10338 LDFLAGS="$save_LDFLAGS"
87326c78 10339
6bb11ab3
L
10340fi
10341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10342$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
87326c78 10343
6bb11ab3
L
10344if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10345 :
87326c78 10346else
6bb11ab3 10347 lt_prog_compiler_static=
87326c78 10348fi
87326c78 10349
6bb11ab3
L
10350
10351
10352
10353
10354
10355
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10357$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 10358if ${lt_cv_prog_compiler_c_o+:} false; then :
6bb11ab3 10359 $as_echo_n "(cached) " >&6
87326c78 10360else
6bb11ab3
L
10361 lt_cv_prog_compiler_c_o=no
10362 $RM -r conftest 2>/dev/null
10363 mkdir conftest
10364 cd conftest
10365 mkdir out
10366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10367
10368 lt_compiler_flag="-o out/conftest2.$ac_objext"
10369 # Insert the option either (1) after the last *FLAGS variable, or
10370 # (2) before a word containing "conftest.", or (3) at the end.
10371 # Note that $ac_compile itself does not contain backslashes and begins
10372 # with a dollar sign (not a hyphen), so the echo should work correctly.
10373 lt_compile=`echo "$ac_compile" | $SED \
10374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10376 -e 's:$: $lt_compiler_flag:'`
10377 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10378 (eval "$lt_compile" 2>out/conftest.err)
10379 ac_status=$?
10380 cat out/conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10383 then
10384 # The compiler can only warn and ignore the option if not recognized
10385 # So say no if there are warnings
10386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10387 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10388 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10389 lt_cv_prog_compiler_c_o=yes
10390 fi
10391 fi
10392 chmod u+w . 2>&5
10393 $RM conftest*
10394 # SGI C++ compiler will create directory out/ii_files/ for
10395 # template instantiation
10396 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10397 $RM out/* && rmdir out
10398 cd ..
10399 $RM -r conftest
10400 $RM conftest*
10401
87326c78 10402fi
6bb11ab3
L
10403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10404$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10405
10406
10407
10408
10409
10410
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10412$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 10413if ${lt_cv_prog_compiler_c_o+:} false; then :
87326c78
DD
10414 $as_echo_n "(cached) " >&6
10415else
6bb11ab3
L
10416 lt_cv_prog_compiler_c_o=no
10417 $RM -r conftest 2>/dev/null
10418 mkdir conftest
10419 cd conftest
10420 mkdir out
10421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10422
10423 lt_compiler_flag="-o out/conftest2.$ac_objext"
10424 # Insert the option either (1) after the last *FLAGS variable, or
10425 # (2) before a word containing "conftest.", or (3) at the end.
10426 # Note that $ac_compile itself does not contain backslashes and begins
10427 # with a dollar sign (not a hyphen), so the echo should work correctly.
10428 lt_compile=`echo "$ac_compile" | $SED \
10429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10431 -e 's:$: $lt_compiler_flag:'`
10432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10433 (eval "$lt_compile" 2>out/conftest.err)
10434 ac_status=$?
10435 cat out/conftest.err >&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10438 then
10439 # The compiler can only warn and ignore the option if not recognized
10440 # So say no if there are warnings
10441 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10442 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10443 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10444 lt_cv_prog_compiler_c_o=yes
10445 fi
10446 fi
10447 chmod u+w . 2>&5
10448 $RM conftest*
10449 # SGI C++ compiler will create directory out/ii_files/ for
10450 # template instantiation
10451 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10452 $RM out/* && rmdir out
10453 cd ..
10454 $RM -r conftest
10455 $RM conftest*
10456
10457fi
10458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10459$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10460
10461
10462
10463
10464hard_links="nottested"
10465if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10466 # do not overwrite the value of need_locks provided by the user
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10468$as_echo_n "checking if we can lock with hard links... " >&6; }
10469 hard_links=yes
10470 $RM conftest*
10471 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10472 touch conftest.a
10473 ln conftest.a conftest.b 2>&5 || hard_links=no
10474 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10476$as_echo "$hard_links" >&6; }
10477 if test "$hard_links" = no; then
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10479$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10480 need_locks=warn
10481 fi
10482else
10483 need_locks=no
10484fi
10485
10486
10487
10488
10489
10490
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10492$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10493
10494 runpath_var=
10495 allow_undefined_flag=
10496 always_export_symbols=no
10497 archive_cmds=
10498 archive_expsym_cmds=
10499 compiler_needs_object=no
10500 enable_shared_with_static_runtimes=no
10501 export_dynamic_flag_spec=
10502 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10503 hardcode_automatic=no
10504 hardcode_direct=no
10505 hardcode_direct_absolute=no
10506 hardcode_libdir_flag_spec=
10507 hardcode_libdir_flag_spec_ld=
10508 hardcode_libdir_separator=
10509 hardcode_minus_L=no
10510 hardcode_shlibpath_var=unsupported
10511 inherit_rpath=no
10512 link_all_deplibs=unknown
10513 module_cmds=
10514 module_expsym_cmds=
10515 old_archive_from_new_cmds=
10516 old_archive_from_expsyms_cmds=
10517 thread_safe_flag_spec=
10518 whole_archive_flag_spec=
10519 # include_expsyms should be a list of space-separated symbols to be *always*
10520 # included in the symbol list
10521 include_expsyms=
10522 # exclude_expsyms can be an extended regexp of symbols to exclude
10523 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10524 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10525 # as well as any symbol that contains `d'.
10526 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10527 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10528 # platforms (ab)use it in PIC code, but their linkers get confused if
10529 # the symbol is explicitly referenced. Since portable code cannot
10530 # rely on this symbol name, it's probably fine to never include it in
10531 # preloaded symbol tables.
10532 # Exclude shared library initialization/finalization symbols.
10533 extract_expsyms_cmds=
10534
10535 case $host_os in
10536 cygwin* | mingw* | pw32* | cegcc*)
10537 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10538 # When not using gcc, we currently assume that we are using
10539 # Microsoft Visual C++.
10540 if test "$GCC" != yes; then
10541 with_gnu_ld=no
10542 fi
10543 ;;
10544 interix*)
10545 # we just hope/assume this is gcc and not c89 (= MSVC++)
10546 with_gnu_ld=yes
10547 ;;
10548 openbsd*)
10549 with_gnu_ld=no
10550 ;;
10551 esac
87326c78 10552
6bb11ab3
L
10553 ld_shlibs=yes
10554
10555 # On some targets, GNU ld is compatible enough with the native linker
10556 # that we're better off using the native interface for both.
10557 lt_use_gnu_ld_interface=no
10558 if test "$with_gnu_ld" = yes; then
10559 case $host_os in
10560 aix*)
10561 # The AIX port of GNU ld has always aspired to compatibility
10562 # with the native linker. However, as the warning in the GNU ld
10563 # block says, versions before 2.19.5* couldn't really create working
10564 # shared libraries, regardless of the interface used.
10565 case `$LD -v 2>&1` in
10566 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10567 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10568 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10569 *)
10570 lt_use_gnu_ld_interface=yes
10571 ;;
10572 esac
10573 ;;
10574 *)
10575 lt_use_gnu_ld_interface=yes
10576 ;;
10577 esac
10578 fi
87326c78 10579
6bb11ab3
L
10580 if test "$lt_use_gnu_ld_interface" = yes; then
10581 # If archive_cmds runs LD, not CC, wlarc should be empty
10582 wlarc='${wl}'
10583
10584 # Set some defaults for GNU ld with shared library support. These
10585 # are reset later if shared libraries are not supported. Putting them
10586 # here allows them to be overridden if necessary.
10587 runpath_var=LD_RUN_PATH
10588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10589 export_dynamic_flag_spec='${wl}--export-dynamic'
10590 # ancient GNU ld didn't support --whole-archive et. al.
10591 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10592 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10593 else
10594 whole_archive_flag_spec=
10595 fi
10596 supports_anon_versioning=no
10597 case `$LD -v 2>&1` in
10598 *GNU\ gold*) supports_anon_versioning=yes ;;
10599 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10600 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10601 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10602 *\ 2.11.*) ;; # other 2.11 versions
10603 *) supports_anon_versioning=yes ;;
10604 esac
10605
10606 # See if GNU ld supports shared libraries.
10607 case $host_os in
10608 aix[3-9]*)
10609 # On AIX/PPC, the GNU linker is very broken
10610 if test "$host_cpu" != ia64; then
10611 ld_shlibs=no
10612 cat <<_LT_EOF 1>&2
10613
10614*** Warning: the GNU linker, at least up to release 2.19, is reported
10615*** to be unable to reliably create shared libraries on AIX.
10616*** Therefore, libtool is disabling shared libraries support. If you
10617*** really care for shared libraries, you may want to install binutils
10618*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10619*** You will then need to restart the configuration process.
10620
10621_LT_EOF
10622 fi
10623 ;;
10624
10625 amigaos*)
10626 case $host_cpu in
10627 powerpc)
10628 # see comment about AmigaOS4 .so support
10629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10630 archive_expsym_cmds=''
10631 ;;
10632 m68k)
10633 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)'
10634 hardcode_libdir_flag_spec='-L$libdir'
10635 hardcode_minus_L=yes
10636 ;;
10637 esac
10638 ;;
10639
10640 beos*)
10641 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10642 allow_undefined_flag=unsupported
10643 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10644 # support --undefined. This deserves some investigation. FIXME
10645 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10646 else
10647 ld_shlibs=no
10648 fi
10649 ;;
10650
10651 cygwin* | mingw* | pw32* | cegcc*)
10652 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10653 # as there is no search path for DLLs.
10654 hardcode_libdir_flag_spec='-L$libdir'
10655 export_dynamic_flag_spec='${wl}--export-all-symbols'
10656 allow_undefined_flag=unsupported
10657 always_export_symbols=no
10658 enable_shared_with_static_runtimes=yes
10659 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10660
10661 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10663 # If the export-symbols file already is a .def file (1st line
10664 # is EXPORTS), use it as is; otherwise, prepend...
10665 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10666 cp $export_symbols $output_objdir/$soname.def;
10667 else
10668 echo EXPORTS > $output_objdir/$soname.def;
10669 cat $export_symbols >> $output_objdir/$soname.def;
10670 fi~
10671 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10672 else
10673 ld_shlibs=no
10674 fi
10675 ;;
10676
10677 haiku*)
10678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10679 link_all_deplibs=yes
10680 ;;
10681
10682 interix[3-9]*)
10683 hardcode_direct=no
10684 hardcode_shlibpath_var=no
10685 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10686 export_dynamic_flag_spec='${wl}-E'
10687 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10688 # Instead, shared libraries are loaded at an image base (0x10000000 by
10689 # default) and relocated if they conflict, which is a slow very memory
10690 # consuming and fragmenting process. To avoid this, we pick a random,
10691 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10692 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10693 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10694 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'
10695 ;;
10696
10697 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10698 tmp_diet=no
10699 if test "$host_os" = linux-dietlibc; then
10700 case $cc_basename in
10701 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10702 esac
10703 fi
10704 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10705 && test "$tmp_diet" = no
10706 then
ae7d0cac 10707 tmp_addflag=' $pic_flag'
6bb11ab3
L
10708 tmp_sharedflag='-shared'
10709 case $cc_basename,$host_cpu in
10710 pgcc*) # Portland Group C compiler
10711 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'
10712 tmp_addflag=' $pic_flag'
10713 ;;
10714 pgf77* | pgf90* | pgf95* | pgfortran*)
10715 # Portland Group f77 and f90 compilers
10716 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'
10717 tmp_addflag=' $pic_flag -Mnomain' ;;
10718 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10719 tmp_addflag=' -i_dynamic' ;;
10720 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10721 tmp_addflag=' -i_dynamic -nofor_main' ;;
10722 ifc* | ifort*) # Intel Fortran compiler
10723 tmp_addflag=' -nofor_main' ;;
10724 lf95*) # Lahey Fortran 8.1
10725 whole_archive_flag_spec=
10726 tmp_sharedflag='--shared' ;;
10727 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10728 tmp_sharedflag='-qmkshrobj'
10729 tmp_addflag= ;;
10730 nvcc*) # Cuda Compiler Driver 2.2
10731 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'
10732 compiler_needs_object=yes
10733 ;;
10734 esac
10735 case `$CC -V 2>&1 | sed 5q` in
10736 *Sun\ C*) # Sun C 5.9
10737 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'
10738 compiler_needs_object=yes
10739 tmp_sharedflag='-G' ;;
10740 *Sun\ F*) # Sun Fortran 8.3
10741 tmp_sharedflag='-G' ;;
10742 esac
10743 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10744
10745 if test "x$supports_anon_versioning" = xyes; then
10746 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10747 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10748 echo "local: *; };" >> $output_objdir/$libname.ver~
10749 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10750 fi
10751
10752 case $cc_basename in
10753 xlf* | bgf* | bgxlf* | mpixlf*)
10754 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10755 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10756 hardcode_libdir_flag_spec=
10757 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10758 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10759 if test "x$supports_anon_versioning" = xyes; then
10760 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10761 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10762 echo "local: *; };" >> $output_objdir/$libname.ver~
10763 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10764 fi
10765 ;;
10766 esac
10767 else
10768 ld_shlibs=no
10769 fi
10770 ;;
10771
10772 netbsd*)
10773 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10774 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10775 wlarc=
10776 else
10777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10778 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10779 fi
10780 ;;
10781
10782 solaris*)
10783 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10784 ld_shlibs=no
10785 cat <<_LT_EOF 1>&2
10786
10787*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10788*** create shared libraries on Solaris systems. Therefore, libtool
10789*** is disabling shared libraries support. We urge you to upgrade GNU
10790*** binutils to release 2.9.1 or newer. Another option is to modify
10791*** your PATH or compiler configuration so that the native linker is
10792*** used, and then restart.
10793
10794_LT_EOF
10795 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10797 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10798 else
10799 ld_shlibs=no
10800 fi
10801 ;;
10802
10803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10804 case `$LD -v 2>&1` in
10805 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10806 ld_shlibs=no
10807 cat <<_LT_EOF 1>&2
10808
10809*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10810*** reliably create shared libraries on SCO systems. Therefore, libtool
10811*** is disabling shared libraries support. We urge you to upgrade GNU
10812*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10813*** your PATH or compiler configuration so that the native linker is
10814*** used, and then restart.
10815
10816_LT_EOF
10817 ;;
10818 *)
10819 # For security reasons, it is highly recommended that you always
10820 # use absolute paths for naming shared libraries, and exclude the
10821 # DT_RUNPATH tag from executables and libraries. But doing so
10822 # requires that you compile everything twice, which is a pain.
10823 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10825 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10826 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10827 else
10828 ld_shlibs=no
10829 fi
10830 ;;
10831 esac
10832 ;;
10833
10834 sunos4*)
10835 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10836 wlarc=
10837 hardcode_direct=yes
10838 hardcode_shlibpath_var=no
10839 ;;
10840
10841 *)
10842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10844 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10845 else
10846 ld_shlibs=no
10847 fi
10848 ;;
10849 esac
10850
10851 if test "$ld_shlibs" = no; then
10852 runpath_var=
10853 hardcode_libdir_flag_spec=
10854 export_dynamic_flag_spec=
10855 whole_archive_flag_spec=
10856 fi
10857 else
10858 # PORTME fill in a description of your system's linker (not GNU ld)
10859 case $host_os in
10860 aix3*)
10861 allow_undefined_flag=unsupported
10862 always_export_symbols=yes
10863 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'
10864 # Note: this linker hardcodes the directories in LIBPATH if there
10865 # are no directories specified by -L.
10866 hardcode_minus_L=yes
10867 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10868 # Neither direct hardcoding nor static linking is supported with a
10869 # broken collect2.
10870 hardcode_direct=unsupported
10871 fi
10872 ;;
10873
10874 aix[4-9]*)
10875 if test "$host_cpu" = ia64; then
10876 # On IA64, the linker does run time linking by default, so we don't
10877 # have to do anything special.
10878 aix_use_runtimelinking=no
10879 exp_sym_flag='-Bexport'
10880 no_entry_flag=""
10881 else
10882 # If we're using GNU nm, then we don't want the "-C" option.
10883 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10884 # Also, AIX nm treats weak defined symbols like other global
10885 # defined symbols, whereas GNU nm marks them as "W".
10886 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10887 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'
10888 else
5c887dd5 10889 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
10890 fi
10891 aix_use_runtimelinking=no
10892
10893 # Test if we are trying to use run time linking or normal
10894 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10895 # need to do runtime linking.
10896 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10897 for ld_flag in $LDFLAGS; do
10898 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10899 aix_use_runtimelinking=yes
10900 break
10901 fi
10902 done
10903 ;;
10904 esac
10905
10906 exp_sym_flag='-bexport'
10907 no_entry_flag='-bnoentry'
10908 fi
10909
10910 # When large executables or shared objects are built, AIX ld can
10911 # have problems creating the table of contents. If linking a library
10912 # or program results in "error TOC overflow" add -mminimal-toc to
10913 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10914 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10915
10916 archive_cmds=''
10917 hardcode_direct=yes
10918 hardcode_direct_absolute=yes
10919 hardcode_libdir_separator=':'
10920 link_all_deplibs=yes
10921 file_list_spec='${wl}-f,'
10922
10923 if test "$GCC" = yes; then
10924 case $host_os in aix4.[012]|aix4.[012].*)
10925 # We only want to do this on AIX 4.2 and lower, the check
10926 # below for broken collect2 doesn't work under 4.3+
10927 collect2name=`${CC} -print-prog-name=collect2`
10928 if test -f "$collect2name" &&
10929 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10930 then
10931 # We have reworked collect2
10932 :
10933 else
10934 # We have old collect2
10935 hardcode_direct=unsupported
10936 # It fails to find uninstalled libraries when the uninstalled
10937 # path is not listed in the libpath. Setting hardcode_minus_L
10938 # to unsupported forces relinking
10939 hardcode_minus_L=yes
10940 hardcode_libdir_flag_spec='-L$libdir'
10941 hardcode_libdir_separator=
10942 fi
10943 ;;
10944 esac
10945 shared_flag='-shared'
10946 if test "$aix_use_runtimelinking" = yes; then
10947 shared_flag="$shared_flag "'${wl}-G'
10948 fi
10949 else
10950 # not using gcc
10951 if test "$host_cpu" = ia64; then
10952 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10953 # chokes on -Wl,-G. The following line is correct:
10954 shared_flag='-G'
10955 else
10956 if test "$aix_use_runtimelinking" = yes; then
10957 shared_flag='${wl}-G'
10958 else
10959 shared_flag='${wl}-bM:SRE'
10960 fi
10961 fi
10962 fi
10963
10964 export_dynamic_flag_spec='${wl}-bexpall'
10965 # It seems that -bexpall does not export symbols beginning with
10966 # underscore (_), so it is better to generate a list of symbols to export.
10967 always_export_symbols=yes
10968 if test "$aix_use_runtimelinking" = yes; then
10969 # Warning - without using the other runtime loading flags (-brtl),
10970 # -berok will link without error, but may produce a broken library.
10971 allow_undefined_flag='-berok'
10972 # Determine the default libpath from the value encoded in an
10973 # empty executable.
10974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87326c78
DD
10975/* end confdefs.h. */
10976
10977int
10978main ()
10979{
10980
10981 ;
10982 return 0;
10983}
10984_ACEOF
6bb11ab3 10985if ac_fn_c_try_link "$LINENO"; then :
87326c78 10986
6bb11ab3
L
10987lt_aix_libpath_sed='
10988 /Import File Strings/,/^$/ {
10989 /^0/ {
10990 s/^0 *\(.*\)$/\1/
10991 p
10992 }
10993 }'
10994aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10995# Check for a 64-bit object if we didn't find anything.
10996if test -z "$aix_libpath"; then
10997 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10998fi
10999fi
11000rm -f core conftest.err conftest.$ac_objext \
11001 conftest$ac_exeext conftest.$ac_ext
11002if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11003
11004 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11005 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"
11006 else
11007 if test "$host_cpu" = ia64; then
11008 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11009 allow_undefined_flag="-z nodefs"
11010 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"
11011 else
11012 # Determine the default libpath from the value encoded in an
11013 # empty executable.
87326c78
DD
11014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015/* end confdefs.h. */
11016
11017int
11018main ()
11019{
11020
11021 ;
11022 return 0;
11023}
11024_ACEOF
6bb11ab3
L
11025if ac_fn_c_try_link "$LINENO"; then :
11026
11027lt_aix_libpath_sed='
11028 /Import File Strings/,/^$/ {
11029 /^0/ {
11030 s/^0 *\(.*\)$/\1/
11031 p
11032 }
11033 }'
11034aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11035# Check for a 64-bit object if we didn't find anything.
11036if test -z "$aix_libpath"; then
11037 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
87326c78 11038fi
87326c78 11039fi
6bb11ab3
L
11040rm -f core conftest.err conftest.$ac_objext \
11041 conftest$ac_exeext conftest.$ac_ext
11042if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11043
11044 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11045 # Warning - without using the other run time loading flags,
11046 # -berok will link without error, but may produce a broken library.
11047 no_undefined_flag=' ${wl}-bernotok'
11048 allow_undefined_flag=' ${wl}-berok'
11049 if test "$with_gnu_ld" = yes; then
11050 # We only use this code for GNU lds that support --whole-archive.
11051 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11052 else
11053 # Exported symbols can be pulled into shared objects from archives
11054 whole_archive_flag_spec='$convenience'
11055 fi
11056 archive_cmds_need_lc=yes
11057 # This is similar to how AIX traditionally builds its shared libraries.
11058 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'
11059 fi
11060 fi
11061 ;;
11062
11063 amigaos*)
11064 case $host_cpu in
11065 powerpc)
11066 # see comment about AmigaOS4 .so support
11067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11068 archive_expsym_cmds=''
11069 ;;
11070 m68k)
11071 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)'
11072 hardcode_libdir_flag_spec='-L$libdir'
11073 hardcode_minus_L=yes
11074 ;;
11075 esac
11076 ;;
11077
11078 bsdi[45]*)
11079 export_dynamic_flag_spec=-rdynamic
11080 ;;
11081
11082 cygwin* | mingw* | pw32* | cegcc*)
11083 # When not using gcc, we currently assume that we are using
11084 # Microsoft Visual C++.
11085 # hardcode_libdir_flag_spec is actually meaningless, as there is
11086 # no search path for DLLs.
11087 hardcode_libdir_flag_spec=' '
11088 allow_undefined_flag=unsupported
11089 # Tell ltmain to make .lib files, not .a files.
11090 libext=lib
11091 # Tell ltmain to make .dll files, not .so files.
11092 shrext_cmds=".dll"
11093 # FIXME: Setting linknames here is a bad hack.
11094 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11095 # The linker will automatically build a .lib file if we build a DLL.
11096 old_archive_from_new_cmds='true'
11097 # FIXME: Should let the user specify the lib program.
11098 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11099 fix_srcfile_path='`cygpath -w "$srcfile"`'
11100 enable_shared_with_static_runtimes=yes
11101 ;;
11102
11103 darwin* | rhapsody*)
11104
11105
11106 archive_cmds_need_lc=no
11107 hardcode_direct=no
11108 hardcode_automatic=yes
11109 hardcode_shlibpath_var=unsupported
11110 if test "$lt_cv_ld_force_load" = "yes"; then
11111 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 11112 else
6bb11ab3 11113 whole_archive_flag_spec=''
87326c78 11114 fi
6bb11ab3
L
11115 link_all_deplibs=yes
11116 allow_undefined_flag="$_lt_dar_allow_undefined"
11117 case $cc_basename in
11118 ifort*) _lt_dar_can_shared=yes ;;
11119 *) _lt_dar_can_shared=$GCC ;;
11120 esac
11121 if test "$_lt_dar_can_shared" = "yes"; then
11122 output_verbose_link_cmd=func_echo_all
11123 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11124 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11125 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}"
11126 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}"
11127
87326c78 11128 else
6bb11ab3 11129 ld_shlibs=no
87326c78 11130 fi
6bb11ab3
L
11131
11132 ;;
11133
11134 dgux*)
11135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11136 hardcode_libdir_flag_spec='-L$libdir'
11137 hardcode_shlibpath_var=no
11138 ;;
11139
11140 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11141 # support. Future versions do this automatically, but an explicit c++rt0.o
11142 # does not break anything, and helps significantly (at the cost of a little
11143 # extra space).
11144 freebsd2.2*)
11145 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11146 hardcode_libdir_flag_spec='-R$libdir'
11147 hardcode_direct=yes
11148 hardcode_shlibpath_var=no
11149 ;;
11150
11151 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11152 freebsd2.*)
11153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11154 hardcode_direct=yes
11155 hardcode_minus_L=yes
11156 hardcode_shlibpath_var=no
11157 ;;
11158
11159 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11160 freebsd* | dragonfly*)
11161 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11162 hardcode_libdir_flag_spec='-R$libdir'
11163 hardcode_direct=yes
11164 hardcode_shlibpath_var=no
11165 ;;
11166
11167 hpux9*)
11168 if test "$GCC" = yes; then
11169 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'
11170 else
11171 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'
11172 fi
11173 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11174 hardcode_libdir_separator=:
11175 hardcode_direct=yes
11176
11177 # hardcode_minus_L: Not really in the search PATH,
11178 # but as the default location of the library.
11179 hardcode_minus_L=yes
11180 export_dynamic_flag_spec='${wl}-E'
11181 ;;
11182
11183 hpux10*)
11184 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11185 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11186 else
11187 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11188 fi
11189 if test "$with_gnu_ld" = no; then
11190 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11191 hardcode_libdir_flag_spec_ld='+b $libdir'
11192 hardcode_libdir_separator=:
11193 hardcode_direct=yes
11194 hardcode_direct_absolute=yes
11195 export_dynamic_flag_spec='${wl}-E'
11196 # hardcode_minus_L: Not really in the search PATH,
11197 # but as the default location of the library.
11198 hardcode_minus_L=yes
11199 fi
11200 ;;
11201
11202 hpux11*)
11203 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11204 case $host_cpu in
11205 hppa*64*)
11206 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11207 ;;
11208 ia64*)
11209 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11210 ;;
11211 *)
11212 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11213 ;;
11214 esac
11215 else
11216 case $host_cpu in
11217 hppa*64*)
11218 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11219 ;;
11220 ia64*)
11221 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11222 ;;
11223 *)
11224
11225 # Older versions of the 11.00 compiler do not understand -b yet
11226 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11228$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 11229if ${lt_cv_prog_compiler__b+:} false; then :
87326c78
DD
11230 $as_echo_n "(cached) " >&6
11231else
6bb11ab3
L
11232 lt_cv_prog_compiler__b=no
11233 save_LDFLAGS="$LDFLAGS"
11234 LDFLAGS="$LDFLAGS -b"
11235 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11236 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11237 # The linker can only warn and ignore the option if not recognized
11238 # So say no if there are warnings
11239 if test -s conftest.err; then
11240 # Append any errors to the config.log.
11241 cat conftest.err 1>&5
11242 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11243 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11244 if diff conftest.exp conftest.er2 >/dev/null; then
11245 lt_cv_prog_compiler__b=yes
11246 fi
11247 else
11248 lt_cv_prog_compiler__b=yes
11249 fi
11250 fi
11251 $RM -r conftest*
11252 LDFLAGS="$save_LDFLAGS"
87326c78 11253
6bb11ab3
L
11254fi
11255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11256$as_echo "$lt_cv_prog_compiler__b" >&6; }
87326c78 11257
6bb11ab3
L
11258if test x"$lt_cv_prog_compiler__b" = xyes; then
11259 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11260else
11261 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11262fi
87326c78 11263
6bb11ab3
L
11264 ;;
11265 esac
11266 fi
11267 if test "$with_gnu_ld" = no; then
11268 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11269 hardcode_libdir_separator=:
11270
11271 case $host_cpu in
11272 hppa*64*|ia64*)
11273 hardcode_direct=no
11274 hardcode_shlibpath_var=no
11275 ;;
11276 *)
11277 hardcode_direct=yes
11278 hardcode_direct_absolute=yes
11279 export_dynamic_flag_spec='${wl}-E'
11280
11281 # hardcode_minus_L: Not really in the search PATH,
11282 # but as the default location of the library.
11283 hardcode_minus_L=yes
11284 ;;
11285 esac
11286 fi
11287 ;;
11288
11289 irix5* | irix6* | nonstopux*)
11290 if test "$GCC" = yes; then
11291 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'
11292 # Try to use the -exported_symbol ld option, if it does not
11293 # work, assume that -exports_file does not work either and
11294 # implicitly export all symbols.
11295 save_LDFLAGS="$LDFLAGS"
11296 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298/* end confdefs.h. */
11299int foo(void) {}
87326c78 11300_ACEOF
6bb11ab3
L
11301if ac_fn_c_try_link "$LINENO"; then :
11302 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
11303
11304fi
6bb11ab3
L
11305rm -f core conftest.err conftest.$ac_objext \
11306 conftest$ac_exeext conftest.$ac_ext
11307 LDFLAGS="$save_LDFLAGS"
11308 else
11309 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'
11310 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'
11311 fi
11312 archive_cmds_need_lc='no'
11313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11314 hardcode_libdir_separator=:
11315 inherit_rpath=yes
11316 link_all_deplibs=yes
11317 ;;
11318
11319 netbsd*)
11320 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11321 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11322 else
11323 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11324 fi
11325 hardcode_libdir_flag_spec='-R$libdir'
11326 hardcode_direct=yes
11327 hardcode_shlibpath_var=no
11328 ;;
11329
11330 newsos6)
11331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11332 hardcode_direct=yes
11333 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11334 hardcode_libdir_separator=:
11335 hardcode_shlibpath_var=no
11336 ;;
11337
11338 *nto* | *qnx*)
11339 ;;
11340
11341 openbsd*)
11342 if test -f /usr/libexec/ld.so; then
11343 hardcode_direct=yes
11344 hardcode_shlibpath_var=no
11345 hardcode_direct_absolute=yes
11346 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11347 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11348 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11349 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11350 export_dynamic_flag_spec='${wl}-E'
11351 else
11352 case $host_os in
11353 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11355 hardcode_libdir_flag_spec='-R$libdir'
11356 ;;
11357 *)
11358 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11359 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11360 ;;
11361 esac
11362 fi
11363 else
11364 ld_shlibs=no
11365 fi
11366 ;;
11367
11368 os2*)
11369 hardcode_libdir_flag_spec='-L$libdir'
11370 hardcode_minus_L=yes
11371 allow_undefined_flag=unsupported
11372 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'
11373 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11374 ;;
11375
11376 osf3*)
11377 if test "$GCC" = yes; then
11378 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11379 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'
11380 else
11381 allow_undefined_flag=' -expect_unresolved \*'
11382 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'
11383 fi
11384 archive_cmds_need_lc='no'
11385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11386 hardcode_libdir_separator=:
11387 ;;
11388
11389 osf4* | osf5*) # as osf3* with the addition of -msym flag
11390 if test "$GCC" = yes; then
11391 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11392 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'
11393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11394 else
11395 allow_undefined_flag=' -expect_unresolved \*'
11396 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'
11397 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~
11398 $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'
11399
11400 # Both c and cxx compiler support -rpath directly
11401 hardcode_libdir_flag_spec='-rpath $libdir'
11402 fi
11403 archive_cmds_need_lc='no'
11404 hardcode_libdir_separator=:
11405 ;;
11406
11407 solaris*)
11408 no_undefined_flag=' -z defs'
11409 if test "$GCC" = yes; then
11410 wlarc='${wl}'
11411 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11412 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11413 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11414 else
11415 case `$CC -V 2>&1` in
11416 *"Compilers 5.0"*)
11417 wlarc=''
11418 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11419 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11420 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11421 ;;
11422 *)
11423 wlarc='${wl}'
11424 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11425 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11426 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11427 ;;
11428 esac
11429 fi
11430 hardcode_libdir_flag_spec='-R$libdir'
11431 hardcode_shlibpath_var=no
11432 case $host_os in
11433 solaris2.[0-5] | solaris2.[0-5].*) ;;
11434 *)
11435 # The compiler driver will combine and reorder linker options,
11436 # but understands `-z linker_flag'. GCC discards it without `$wl',
11437 # but is careful enough not to reorder.
11438 # Supported since Solaris 2.6 (maybe 2.5.1?)
11439 if test "$GCC" = yes; then
11440 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11441 else
11442 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11443 fi
11444 ;;
11445 esac
11446 link_all_deplibs=yes
11447 ;;
11448
11449 sunos4*)
11450 if test "x$host_vendor" = xsequent; then
11451 # Use $CC to link under sequent, because it throws in some extra .o
11452 # files that make .init and .fini sections work.
11453 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11454 else
11455 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11456 fi
11457 hardcode_libdir_flag_spec='-L$libdir'
11458 hardcode_direct=yes
11459 hardcode_minus_L=yes
11460 hardcode_shlibpath_var=no
11461 ;;
11462
11463 sysv4)
11464 case $host_vendor in
11465 sni)
11466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11467 hardcode_direct=yes # is this really true???
11468 ;;
11469 siemens)
11470 ## LD is ld it makes a PLAMLIB
11471 ## CC just makes a GrossModule.
11472 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11473 reload_cmds='$CC -r -o $output$reload_objs'
11474 hardcode_direct=no
11475 ;;
11476 motorola)
11477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11478 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11479 ;;
11480 esac
11481 runpath_var='LD_RUN_PATH'
11482 hardcode_shlibpath_var=no
11483 ;;
11484
11485 sysv4.3*)
11486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11487 hardcode_shlibpath_var=no
11488 export_dynamic_flag_spec='-Bexport'
11489 ;;
11490
11491 sysv4*MP*)
11492 if test -d /usr/nec; then
11493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11494 hardcode_shlibpath_var=no
11495 runpath_var=LD_RUN_PATH
11496 hardcode_runpath_var=yes
11497 ld_shlibs=yes
11498 fi
11499 ;;
11500
11501 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11502 no_undefined_flag='${wl}-z,text'
11503 archive_cmds_need_lc=no
11504 hardcode_shlibpath_var=no
11505 runpath_var='LD_RUN_PATH'
11506
11507 if test "$GCC" = yes; then
11508 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11509 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11510 else
11511 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11512 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11513 fi
11514 ;;
11515
11516 sysv5* | sco3.2v5* | sco5v6*)
11517 # Note: We can NOT use -z defs as we might desire, because we do not
11518 # link with -lc, and that would cause any symbols used from libc to
11519 # always be unresolved, which means just about no library would
11520 # ever link correctly. If we're not using GNU ld we use -z text
11521 # though, which does catch some bad symbols but isn't as heavy-handed
11522 # as -z defs.
11523 no_undefined_flag='${wl}-z,text'
11524 allow_undefined_flag='${wl}-z,nodefs'
11525 archive_cmds_need_lc=no
11526 hardcode_shlibpath_var=no
11527 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11528 hardcode_libdir_separator=':'
11529 link_all_deplibs=yes
11530 export_dynamic_flag_spec='${wl}-Bexport'
11531 runpath_var='LD_RUN_PATH'
11532
11533 if test "$GCC" = yes; then
11534 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11535 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11536 else
11537 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11538 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11539 fi
11540 ;;
11541
11542 uts4*)
11543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11544 hardcode_libdir_flag_spec='-L$libdir'
11545 hardcode_shlibpath_var=no
11546 ;;
11547
11548 *)
11549 ld_shlibs=no
11550 ;;
11551 esac
11552
11553 if test x$host_vendor = xsni; then
11554 case $host in
11555 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11556 export_dynamic_flag_spec='${wl}-Blargedynsym'
11557 ;;
11558 esac
11559 fi
11560 fi
11561
11562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11563$as_echo "$ld_shlibs" >&6; }
11564test "$ld_shlibs" = no && can_build_shared=no
11565
11566with_gnu_ld=$with_gnu_ld
11567
11568
11569
87326c78 11570
87326c78 11571
87326c78 11572
87326c78 11573
87326c78
DD
11574
11575
87326c78 11576
87326c78 11577
87326c78
DD
11578
11579
6bb11ab3
L
11580
11581
11582#
11583# Do we need to explicitly link libc?
11584#
11585case "x$archive_cmds_need_lc" in
11586x|xyes)
11587 # Assume -lc should be added
11588 archive_cmds_need_lc=yes
11589
11590 if test "$enable_shared" = yes && test "$GCC" = yes; then
11591 case $archive_cmds in
11592 *'~'*)
11593 # FIXME: we may have to deal with multi-command sequences.
11594 ;;
11595 '$CC '*)
11596 # Test whether the compiler implicitly links with -lc since on some
11597 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11598 # to ld, don't add -lc before -lgcc.
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11600$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 11601if ${lt_cv_archive_cmds_need_lc+:} false; then :
87326c78
DD
11602 $as_echo_n "(cached) " >&6
11603else
6bb11ab3
L
11604 $RM conftest*
11605 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11606
11607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11608 (eval $ac_compile) 2>&5
11609 ac_status=$?
11610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11611 test $ac_status = 0; } 2>conftest.err; then
11612 soname=conftest
11613 lib=conftest
11614 libobjs=conftest.$ac_objext
11615 deplibs=
11616 wl=$lt_prog_compiler_wl
11617 pic_flag=$lt_prog_compiler_pic
11618 compiler_flags=-v
11619 linker_flags=-v
11620 verstring=
11621 output_objdir=.
11622 libname=conftest
11623 lt_save_allow_undefined_flag=$allow_undefined_flag
11624 allow_undefined_flag=
11625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11626 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11627 ac_status=$?
11628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11629 test $ac_status = 0; }
11630 then
11631 lt_cv_archive_cmds_need_lc=no
11632 else
11633 lt_cv_archive_cmds_need_lc=yes
11634 fi
11635 allow_undefined_flag=$lt_save_allow_undefined_flag
11636 else
11637 cat conftest.err 1>&5
11638 fi
11639 $RM conftest*
87326c78
DD
11640
11641fi
6bb11ab3
L
11642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11643$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11644 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11645 ;;
11646 esac
11647 fi
11648 ;;
87326c78 11649esac
87326c78
DD
11650
11651
87326c78 11652
87326c78
DD
11653
11654
87326c78 11655
87326c78 11656
87326c78 11657
87326c78 11658
87326c78 11659
87326c78 11660
87326c78 11661
87326c78 11662
87326c78 11663
87326c78 11664
87326c78 11665
87326c78
DD
11666
11667
87326c78 11668
87326c78 11669
87326c78
DD
11670
11671
87326c78 11672
87326c78 11673
87326c78
DD
11674
11675
87326c78 11676
87326c78 11677
87326c78 11678
87326c78 11679
87326c78 11680
87326c78 11681
87326c78 11682
87326c78 11683
87326c78 11684
87326c78 11685
87326c78 11686
87326c78 11687
87326c78 11688
87326c78 11689
87326c78 11690
87326c78 11691
87326c78 11692
87326c78 11693
87326c78 11694
87326c78
DD
11695
11696
11697
2232061b
MF
11698
11699
2232061b 11700
2232061b
MF
11701
11702
2232061b
MF
11703
11704
2232061b 11705
2232061b
MF
11706
11707
6bb11ab3
L
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
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11808$as_echo_n "checking dynamic linker characteristics... " >&6; }
11809
11810if test "$GCC" = yes; then
11811 case $host_os in
11812 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11813 *) lt_awk_arg="/^libraries:/" ;;
11814 esac
11815 case $host_os in
11816 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11817 *) lt_sed_strip_eq="s,=/,/,g" ;;
11818 esac
11819 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11820 case $lt_search_path_spec in
11821 *\;*)
11822 # if the path contains ";" then we assume it to be the separator
11823 # otherwise default to the standard path separator (i.e. ":") - it is
11824 # assumed that no part of a normal pathname contains ";" but that should
11825 # okay in the real world where ";" in dirpaths is itself problematic.
11826 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11827 ;;
11828 *)
11829 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11830 ;;
11831 esac
11832 # Ok, now we have the path, separated by spaces, we can step through it
11833 # and add multilib dir if necessary.
11834 lt_tmp_lt_search_path_spec=
11835 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11836 for lt_sys_path in $lt_search_path_spec; do
11837 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11838 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11839 else
11840 test -d "$lt_sys_path" && \
11841 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11842 fi
11843 done
11844 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11845BEGIN {RS=" "; FS="/|\n";} {
11846 lt_foo="";
11847 lt_count=0;
11848 for (lt_i = NF; lt_i > 0; lt_i--) {
11849 if ($lt_i != "" && $lt_i != ".") {
11850 if ($lt_i == "..") {
11851 lt_count++;
11852 } else {
11853 if (lt_count == 0) {
11854 lt_foo="/" $lt_i lt_foo;
11855 } else {
11856 lt_count--;
11857 }
11858 }
11859 }
11860 }
11861 if (lt_foo != "") { lt_freq[lt_foo]++; }
11862 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11863}'`
11864 # AWK program above erroneously prepends '/' to C:/dos/paths
11865 # for these hosts.
11866 case $host_os in
11867 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11868 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11869 esac
11870 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11871else
11872 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11873fi
11874library_names_spec=
11875libname_spec='lib$name'
11876soname_spec=
11877shrext_cmds=".so"
11878postinstall_cmds=
11879postuninstall_cmds=
11880finish_cmds=
11881finish_eval=
11882shlibpath_var=
11883shlibpath_overrides_runpath=unknown
11884version_type=none
11885dynamic_linker="$host_os ld.so"
11886sys_lib_dlsearch_path_spec="/lib /usr/lib"
11887need_lib_prefix=unknown
11888hardcode_into_libs=no
11889
11890# when you set need_version to no, make sure it does not cause -set_version
11891# flags to be left without arguments
11892need_version=unknown
11893
11894case $host_os in
11895aix3*)
11896 version_type=linux
11897 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11898 shlibpath_var=LIBPATH
11899
11900 # AIX 3 has no versioning support, so we append a major version to the name.
11901 soname_spec='${libname}${release}${shared_ext}$major'
11902 ;;
11903
11904aix[4-9]*)
11905 version_type=linux
11906 need_lib_prefix=no
11907 need_version=no
11908 hardcode_into_libs=yes
11909 if test "$host_cpu" = ia64; then
11910 # AIX 5 supports IA64
11911 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11912 shlibpath_var=LD_LIBRARY_PATH
11913 else
11914 # With GCC up to 2.95.x, collect2 would create an import file
11915 # for dependence libraries. The import file would start with
11916 # the line `#! .'. This would cause the generated library to
11917 # depend on `.', always an invalid library. This was fixed in
11918 # development snapshots of GCC prior to 3.0.
11919 case $host_os in
11920 aix4 | aix4.[01] | aix4.[01].*)
11921 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11922 echo ' yes '
11923 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11924 :
11925 else
11926 can_build_shared=no
11927 fi
11928 ;;
11929 esac
11930 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11931 # soname into executable. Probably we can add versioning support to
11932 # collect2, so additional links can be useful in future.
11933 if test "$aix_use_runtimelinking" = yes; then
11934 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11935 # instead of lib<name>.a to let people know that these are not
11936 # typical AIX shared libraries.
11937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11938 else
11939 # We preserve .a as extension for shared libraries through AIX4.2
11940 # and later when we are not doing run time linking.
11941 library_names_spec='${libname}${release}.a $libname.a'
11942 soname_spec='${libname}${release}${shared_ext}$major'
11943 fi
11944 shlibpath_var=LIBPATH
11945 fi
11946 ;;
11947
11948amigaos*)
11949 case $host_cpu in
11950 powerpc)
11951 # Since July 2007 AmigaOS4 officially supports .so libraries.
11952 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11954 ;;
11955 m68k)
11956 library_names_spec='$libname.ixlibrary $libname.a'
11957 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11958 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'
11959 ;;
11960 esac
11961 ;;
11962
11963beos*)
11964 library_names_spec='${libname}${shared_ext}'
11965 dynamic_linker="$host_os ld.so"
11966 shlibpath_var=LIBRARY_PATH
11967 ;;
11968
11969bsdi[45]*)
11970 version_type=linux
11971 need_version=no
11972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11973 soname_spec='${libname}${release}${shared_ext}$major'
11974 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11975 shlibpath_var=LD_LIBRARY_PATH
11976 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11977 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11978 # the default ld.so.conf also contains /usr/contrib/lib and
11979 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11980 # libtool to hard-code these into programs
11981 ;;
11982
11983cygwin* | mingw* | pw32* | cegcc*)
11984 version_type=windows
11985 shrext_cmds=".dll"
11986 need_version=no
11987 need_lib_prefix=no
11988
11989 case $GCC,$host_os in
11990 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11991 library_names_spec='$libname.dll.a'
11992 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11993 postinstall_cmds='base_file=`basename \${file}`~
11994 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11995 dldir=$destdir/`dirname \$dlpath`~
11996 test -d \$dldir || mkdir -p \$dldir~
11997 $install_prog $dir/$dlname \$dldir/$dlname~
11998 chmod a+x \$dldir/$dlname~
11999 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12000 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12001 fi'
12002 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12003 dlpath=$dir/\$dldll~
12004 $RM \$dlpath'
12005 shlibpath_overrides_runpath=yes
12006
12007 case $host_os in
12008 cygwin*)
12009 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12010 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12011
12012 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12013 ;;
12014 mingw* | cegcc*)
12015 # MinGW DLLs use traditional 'lib' prefix
12016 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12017 ;;
12018 pw32*)
12019 # pw32 DLLs use 'pw' prefix rather than 'lib'
12020 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12021 ;;
12022 esac
12023 ;;
12024
12025 *)
12026 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12027 ;;
12028 esac
12029 dynamic_linker='Win32 ld.exe'
12030 # FIXME: first we should search . and the directory the executable is in
12031 shlibpath_var=PATH
12032 ;;
12033
12034darwin* | rhapsody*)
12035 dynamic_linker="$host_os dyld"
12036 version_type=darwin
12037 need_lib_prefix=no
12038 need_version=no
12039 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12040 soname_spec='${libname}${release}${major}$shared_ext'
12041 shlibpath_overrides_runpath=yes
12042 shlibpath_var=DYLD_LIBRARY_PATH
12043 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12044
12045 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12046 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12047 ;;
12048
12049dgux*)
12050 version_type=linux
12051 need_lib_prefix=no
12052 need_version=no
12053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12054 soname_spec='${libname}${release}${shared_ext}$major'
12055 shlibpath_var=LD_LIBRARY_PATH
12056 ;;
12057
12058freebsd* | dragonfly*)
12059 # DragonFly does not have aout. When/if they implement a new
12060 # versioning mechanism, adjust this.
12061 if test -x /usr/bin/objformat; then
12062 objformat=`/usr/bin/objformat`
12063 else
12064 case $host_os in
12065 freebsd[23].*) objformat=aout ;;
12066 *) objformat=elf ;;
12067 esac
12068 fi
12069 version_type=freebsd-$objformat
12070 case $version_type in
12071 freebsd-elf*)
12072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12073 need_version=no
12074 need_lib_prefix=no
12075 ;;
12076 freebsd-*)
12077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12078 need_version=yes
12079 ;;
12080 esac
12081 shlibpath_var=LD_LIBRARY_PATH
12082 case $host_os in
12083 freebsd2.*)
12084 shlibpath_overrides_runpath=yes
12085 ;;
12086 freebsd3.[01]* | freebsdelf3.[01]*)
12087 shlibpath_overrides_runpath=yes
12088 hardcode_into_libs=yes
12089 ;;
12090 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12091 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12092 shlibpath_overrides_runpath=no
12093 hardcode_into_libs=yes
12094 ;;
12095 *) # from 4.6 on, and DragonFly
12096 shlibpath_overrides_runpath=yes
12097 hardcode_into_libs=yes
12098 ;;
12099 esac
12100 ;;
12101
6bb11ab3
L
12102haiku*)
12103 version_type=linux
12104 need_lib_prefix=no
12105 need_version=no
12106 dynamic_linker="$host_os runtime_loader"
12107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12108 soname_spec='${libname}${release}${shared_ext}$major'
12109 shlibpath_var=LIBRARY_PATH
12110 shlibpath_overrides_runpath=yes
12111 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12112 hardcode_into_libs=yes
12113 ;;
12114
12115hpux9* | hpux10* | hpux11*)
12116 # Give a soname corresponding to the major version so that dld.sl refuses to
12117 # link against other versions.
12118 version_type=sunos
12119 need_lib_prefix=no
12120 need_version=no
12121 case $host_cpu in
12122 ia64*)
12123 shrext_cmds='.so'
12124 hardcode_into_libs=yes
12125 dynamic_linker="$host_os dld.so"
12126 shlibpath_var=LD_LIBRARY_PATH
12127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12129 soname_spec='${libname}${release}${shared_ext}$major'
12130 if test "X$HPUX_IA64_MODE" = X32; then
12131 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12132 else
12133 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12134 fi
12135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12136 ;;
12137 hppa*64*)
12138 shrext_cmds='.sl'
12139 hardcode_into_libs=yes
12140 dynamic_linker="$host_os dld.sl"
12141 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12142 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12144 soname_spec='${libname}${release}${shared_ext}$major'
12145 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12146 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12147 ;;
12148 *)
12149 shrext_cmds='.sl'
12150 dynamic_linker="$host_os dld.sl"
12151 shlibpath_var=SHLIB_PATH
12152 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12154 soname_spec='${libname}${release}${shared_ext}$major'
12155 ;;
12156 esac
12157 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12158 postinstall_cmds='chmod 555 $lib'
12159 # or fails outright, so override atomically:
12160 install_override_mode=555
12161 ;;
12162
12163interix[3-9]*)
12164 version_type=linux
12165 need_lib_prefix=no
12166 need_version=no
12167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12168 soname_spec='${libname}${release}${shared_ext}$major'
12169 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12170 shlibpath_var=LD_LIBRARY_PATH
12171 shlibpath_overrides_runpath=no
12172 hardcode_into_libs=yes
12173 ;;
12174
12175irix5* | irix6* | nonstopux*)
12176 case $host_os in
12177 nonstopux*) version_type=nonstopux ;;
12178 *)
12179 if test "$lt_cv_prog_gnu_ld" = yes; then
12180 version_type=linux
12181 else
12182 version_type=irix
12183 fi ;;
12184 esac
12185 need_lib_prefix=no
12186 need_version=no
12187 soname_spec='${libname}${release}${shared_ext}$major'
12188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12189 case $host_os in
12190 irix5* | nonstopux*)
12191 libsuff= shlibsuff=
12192 ;;
12193 *)
12194 case $LD in # libtool.m4 will add one of these switches to LD
12195 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12196 libsuff= shlibsuff= libmagic=32-bit;;
12197 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12198 libsuff=32 shlibsuff=N32 libmagic=N32;;
12199 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12200 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12201 *) libsuff= shlibsuff= libmagic=never-match;;
12202 esac
12203 ;;
12204 esac
12205 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12206 shlibpath_overrides_runpath=no
12207 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12208 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12209 hardcode_into_libs=yes
12210 ;;
12211
12212# No shared lib support for Linux oldld, aout, or coff.
12213linux*oldld* | linux*aout* | linux*coff*)
12214 dynamic_linker=no
12215 ;;
12216
12217# This must be Linux ELF.
46f900c0 12218linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6bb11ab3
L
12219 version_type=linux
12220 need_lib_prefix=no
12221 need_version=no
12222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12223 soname_spec='${libname}${release}${shared_ext}$major'
12224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12225 shlibpath_var=LD_LIBRARY_PATH
12226 shlibpath_overrides_runpath=no
12227
12228 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 12229 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
2232061b
MF
12230 $as_echo_n "(cached) " >&6
12231else
6bb11ab3
L
12232 lt_cv_shlibpath_overrides_runpath=no
12233 save_LDFLAGS=$LDFLAGS
12234 save_libdir=$libdir
12235 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12236 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232061b
MF
12238/* end confdefs.h. */
12239
2232061b
MF
12240int
12241main ()
12242{
12243
12244 ;
12245 return 0;
12246}
12247_ACEOF
6bb11ab3
L
12248if ac_fn_c_try_link "$LINENO"; then :
12249 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12250 lt_cv_shlibpath_overrides_runpath=yes
2232061b 12251fi
2232061b 12252fi
6bb11ab3
L
12253rm -f core conftest.err conftest.$ac_objext \
12254 conftest$ac_exeext conftest.$ac_ext
12255 LDFLAGS=$save_LDFLAGS
12256 libdir=$save_libdir
2232061b 12257
6bb11ab3 12258fi
2232061b 12259
6bb11ab3 12260 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2232061b 12261
6bb11ab3
L
12262 # This implies no fast_install, which is unacceptable.
12263 # Some rework will be needed to allow for fast_install
12264 # before this can be enabled.
12265 hardcode_into_libs=yes
2232061b 12266
6bb11ab3
L
12267 # Append ld.so.conf contents to the search path
12268 if test -f /etc/ld.so.conf; then
12269 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' ' '`
12270 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12271 fi
2232061b 12272
6bb11ab3
L
12273 # We used to test for /lib/ld.so.1 and disable shared libraries on
12274 # powerpc, because MkLinux only supported shared libraries with the
12275 # GNU dynamic linker. Since this was broken with cross compilers,
12276 # most powerpc-linux boxes support dynamic linking these days and
12277 # people can always --disable-shared, the test was removed, and we
12278 # assume the GNU/Linux dynamic linker is in use.
12279 dynamic_linker='GNU/Linux ld.so'
12280 ;;
12281
12282netbsd*)
12283 version_type=sunos
12284 need_lib_prefix=no
12285 need_version=no
12286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12289 dynamic_linker='NetBSD (a.out) ld.so'
2232061b 12290 else
6bb11ab3
L
12291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12292 soname_spec='${libname}${release}${shared_ext}$major'
12293 dynamic_linker='NetBSD ld.elf_so'
12294 fi
12295 shlibpath_var=LD_LIBRARY_PATH
12296 shlibpath_overrides_runpath=yes
12297 hardcode_into_libs=yes
12298 ;;
12299
12300newsos6)
12301 version_type=linux
12302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12303 shlibpath_var=LD_LIBRARY_PATH
12304 shlibpath_overrides_runpath=yes
12305 ;;
12306
12307*nto* | *qnx*)
12308 version_type=qnx
12309 need_lib_prefix=no
12310 need_version=no
12311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12312 soname_spec='${libname}${release}${shared_ext}$major'
12313 shlibpath_var=LD_LIBRARY_PATH
12314 shlibpath_overrides_runpath=no
12315 hardcode_into_libs=yes
12316 dynamic_linker='ldqnx.so'
12317 ;;
12318
12319openbsd*)
12320 version_type=sunos
12321 sys_lib_dlsearch_path_spec="/usr/lib"
12322 need_lib_prefix=no
12323 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12324 case $host_os in
12325 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12326 *) need_version=no ;;
12327 esac
12328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12330 shlibpath_var=LD_LIBRARY_PATH
12331 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12332 case $host_os in
12333 openbsd2.[89] | openbsd2.[89].*)
12334 shlibpath_overrides_runpath=no
12335 ;;
12336 *)
12337 shlibpath_overrides_runpath=yes
12338 ;;
12339 esac
12340 else
12341 shlibpath_overrides_runpath=yes
12342 fi
12343 ;;
12344
12345os2*)
12346 libname_spec='$name'
12347 shrext_cmds=".dll"
12348 need_lib_prefix=no
12349 library_names_spec='$libname${shared_ext} $libname.a'
12350 dynamic_linker='OS/2 ld.exe'
12351 shlibpath_var=LIBPATH
12352 ;;
12353
12354osf3* | osf4* | osf5*)
12355 version_type=osf
12356 need_lib_prefix=no
12357 need_version=no
12358 soname_spec='${libname}${release}${shared_ext}$major'
12359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12360 shlibpath_var=LD_LIBRARY_PATH
12361 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12362 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12363 ;;
12364
12365rdos*)
12366 dynamic_linker=no
12367 ;;
12368
12369solaris*)
12370 version_type=linux
12371 need_lib_prefix=no
12372 need_version=no
12373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12374 soname_spec='${libname}${release}${shared_ext}$major'
12375 shlibpath_var=LD_LIBRARY_PATH
12376 shlibpath_overrides_runpath=yes
12377 hardcode_into_libs=yes
12378 # ldd complains unless libraries are executable
12379 postinstall_cmds='chmod +x $lib'
12380 ;;
12381
12382sunos4*)
12383 version_type=sunos
12384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12385 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12386 shlibpath_var=LD_LIBRARY_PATH
12387 shlibpath_overrides_runpath=yes
12388 if test "$with_gnu_ld" = yes; then
12389 need_lib_prefix=no
12390 fi
12391 need_version=yes
12392 ;;
12393
12394sysv4 | sysv4.3*)
12395 version_type=linux
12396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12397 soname_spec='${libname}${release}${shared_ext}$major'
12398 shlibpath_var=LD_LIBRARY_PATH
12399 case $host_vendor in
12400 sni)
12401 shlibpath_overrides_runpath=no
12402 need_lib_prefix=no
12403 runpath_var=LD_RUN_PATH
12404 ;;
12405 siemens)
12406 need_lib_prefix=no
12407 ;;
12408 motorola)
12409 need_lib_prefix=no
12410 need_version=no
12411 shlibpath_overrides_runpath=no
12412 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12413 ;;
12414 esac
12415 ;;
12416
12417sysv4*MP*)
12418 if test -d /usr/nec ;then
12419 version_type=linux
12420 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12421 soname_spec='$libname${shared_ext}.$major'
12422 shlibpath_var=LD_LIBRARY_PATH
2232061b 12423 fi
6bb11ab3
L
12424 ;;
12425
12426sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12427 version_type=freebsd-elf
12428 need_lib_prefix=no
12429 need_version=no
12430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12431 soname_spec='${libname}${release}${shared_ext}$major'
12432 shlibpath_var=LD_LIBRARY_PATH
12433 shlibpath_overrides_runpath=yes
12434 hardcode_into_libs=yes
12435 if test "$with_gnu_ld" = yes; then
12436 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12437 else
12438 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12439 case $host_os in
12440 sco3.2v5*)
12441 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12442 ;;
12443 esac
12444 fi
12445 sys_lib_dlsearch_path_spec='/usr/lib'
12446 ;;
12447
12448tpf*)
12449 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12450 version_type=linux
12451 need_lib_prefix=no
12452 need_version=no
12453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12454 shlibpath_var=LD_LIBRARY_PATH
12455 shlibpath_overrides_runpath=no
12456 hardcode_into_libs=yes
12457 ;;
12458
12459uts4*)
12460 version_type=linux
12461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12462 soname_spec='${libname}${release}${shared_ext}$major'
12463 shlibpath_var=LD_LIBRARY_PATH
12464 ;;
12465
12466*)
12467 dynamic_linker=no
12468 ;;
12469esac
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12471$as_echo "$dynamic_linker" >&6; }
12472test "$dynamic_linker" = no && can_build_shared=no
12473
12474variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12475if test "$GCC" = yes; then
12476 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2232061b 12477fi
2232061b 12478
6bb11ab3
L
12479if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12480 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12481fi
12482if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12483 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12484fi
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
2232061b 12511
2232061b 12512
2232061b 12513
2232061b 12514
2232061b
MF
12515
12516
87326c78 12517
87326c78
DD
12518
12519
12520
12521
12522
2232061b 12523
87326c78
DD
12524
12525
12526
12527
87326c78 12528
87326c78 12529
87326c78
DD
12530
12531
87326c78 12532
87326c78 12533
87326c78
DD
12534
12535
5f3ef9d0 12536
5f3ef9d0
JB
12537
12538
12539
db2e4d67
MF
12540
12541
db2e4d67 12542
db2e4d67 12543
db2e4d67 12544
db2e4d67 12545
db2e4d67 12546
db2e4d67 12547
db2e4d67 12548
db2e4d67
MF
12549
12550
db2e4d67 12551
db2e4d67
MF
12552
12553
db2e4d67 12554
db2e4d67
MF
12555
12556
87326c78 12557
87326c78 12558
87326c78
DD
12559
12560
87326c78
DD
12561
12562
87326c78 12563
87326c78 12564
87326c78 12565
87326c78 12566
87326c78 12567
87326c78 12568
87326c78 12569
87326c78 12570
87326c78 12571
87326c78 12572
87326c78 12573
87326c78 12574
87326c78 12575
87326c78 12576
6bb11ab3
L
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12578$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12579hardcode_action=
12580if test -n "$hardcode_libdir_flag_spec" ||
12581 test -n "$runpath_var" ||
12582 test "X$hardcode_automatic" = "Xyes" ; then
87326c78 12583
6bb11ab3
L
12584 # We can hardcode non-existent directories.
12585 if test "$hardcode_direct" != no &&
12586 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12587 # have to relink, otherwise we might link with an installed library
12588 # when we should be linking with a yet-to-be-installed one
12589 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12590 test "$hardcode_minus_L" != no; then
12591 # Linking always hardcodes the temporary library directory.
12592 hardcode_action=relink
12593 else
12594 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12595 hardcode_action=immediate
12596 fi
12597else
12598 # We cannot hardcode anything, or else we can only hardcode existing
12599 # directories.
12600 hardcode_action=unsupported
87326c78 12601fi
6bb11ab3
L
12602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12603$as_echo "$hardcode_action" >&6; }
87326c78 12604
6bb11ab3
L
12605if test "$hardcode_action" = relink ||
12606 test "$inherit_rpath" = yes; then
12607 # Fast installation is not supported
12608 enable_fast_install=no
12609elif test "$shlibpath_overrides_runpath" = yes ||
12610 test "$enable_shared" = no; then
12611 # Fast installation is not necessary
12612 enable_fast_install=needless
12613fi
87326c78 12614
6bb11ab3
L
12615
12616
12617
12618
12619
12620 if test "x$enable_dlopen" != xyes; then
12621 enable_dlopen=unknown
12622 enable_dlopen_self=unknown
12623 enable_dlopen_self_static=unknown
12624else
12625 lt_cv_dlopen=no
12626 lt_cv_dlopen_libs=
12627
12628 case $host_os in
12629 beos*)
12630 lt_cv_dlopen="load_add_on"
12631 lt_cv_dlopen_libs=
12632 lt_cv_dlopen_self=yes
12633 ;;
12634
12635 mingw* | pw32* | cegcc*)
12636 lt_cv_dlopen="LoadLibrary"
12637 lt_cv_dlopen_libs=
12638 ;;
12639
12640 cygwin*)
12641 lt_cv_dlopen="dlopen"
12642 lt_cv_dlopen_libs=
12643 ;;
12644
12645 darwin*)
12646 # if libdl is installed we need to link against it
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12648$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 12649if ${ac_cv_lib_dl_dlopen+:} false; then :
6bb11ab3
L
12650 $as_echo_n "(cached) " >&6
12651else
12652 ac_check_lib_save_LIBS=$LIBS
12653LIBS="-ldl $LIBS"
12654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655/* end confdefs.h. */
12656
12657/* Override any GCC internal prototype to avoid an error.
12658 Use char because int might match the return type of a GCC
12659 builtin and then its argument prototype would still apply. */
12660#ifdef __cplusplus
12661extern "C"
12662#endif
12663char dlopen ();
12664int
12665main ()
12666{
12667return dlopen ();
12668 ;
12669 return 0;
12670}
87326c78 12671_ACEOF
6bb11ab3
L
12672if ac_fn_c_try_link "$LINENO"; then :
12673 ac_cv_lib_dl_dlopen=yes
12674else
12675 ac_cv_lib_dl_dlopen=no
12676fi
12677rm -f core conftest.err conftest.$ac_objext \
12678 conftest$ac_exeext conftest.$ac_ext
12679LIBS=$ac_check_lib_save_LIBS
12680fi
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12682$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 12683if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
12684 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12685else
12686
12687 lt_cv_dlopen="dyld"
12688 lt_cv_dlopen_libs=
12689 lt_cv_dlopen_self=yes
87326c78
DD
12690
12691fi
87326c78 12692
6bb11ab3 12693 ;;
87326c78 12694
6bb11ab3
L
12695 *)
12696 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 12697if test "x$ac_cv_func_shl_load" = xyes; then :
6bb11ab3
L
12698 lt_cv_dlopen="shl_load"
12699else
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12701$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 12702if ${ac_cv_lib_dld_shl_load+:} false; then :
6bb11ab3
L
12703 $as_echo_n "(cached) " >&6
12704else
12705 ac_check_lib_save_LIBS=$LIBS
12706LIBS="-ldld $LIBS"
12707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12708/* end confdefs.h. */
12709
12710/* Override any GCC internal prototype to avoid an error.
12711 Use char because int might match the return type of a GCC
12712 builtin and then its argument prototype would still apply. */
12713#ifdef __cplusplus
12714extern "C"
12715#endif
12716char shl_load ();
12717int
12718main ()
12719{
12720return shl_load ();
12721 ;
12722 return 0;
12723}
12724_ACEOF
12725if ac_fn_c_try_link "$LINENO"; then :
12726 ac_cv_lib_dld_shl_load=yes
12727else
12728 ac_cv_lib_dld_shl_load=no
12729fi
12730rm -f core conftest.err conftest.$ac_objext \
12731 conftest$ac_exeext conftest.$ac_ext
12732LIBS=$ac_check_lib_save_LIBS
12733fi
12734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12735$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 12736if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6bb11ab3
L
12737 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12738else
12739 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 12740if test "x$ac_cv_func_dlopen" = xyes; then :
6bb11ab3
L
12741 lt_cv_dlopen="dlopen"
12742else
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12744$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 12745if ${ac_cv_lib_dl_dlopen+:} false; then :
87326c78
DD
12746 $as_echo_n "(cached) " >&6
12747else
12748 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 12749LIBS="-ldl $LIBS"
87326c78
DD
12750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751/* end confdefs.h. */
12752
12753/* Override any GCC internal prototype to avoid an error.
12754 Use char because int might match the return type of a GCC
12755 builtin and then its argument prototype would still apply. */
12756#ifdef __cplusplus
12757extern "C"
12758#endif
6bb11ab3 12759char dlopen ();
87326c78
DD
12760int
12761main ()
12762{
6bb11ab3 12763return dlopen ();
87326c78
DD
12764 ;
12765 return 0;
12766}
12767_ACEOF
12768if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 12769 ac_cv_lib_dl_dlopen=yes
87326c78 12770else
6bb11ab3 12771 ac_cv_lib_dl_dlopen=no
87326c78
DD
12772fi
12773rm -f core conftest.err conftest.$ac_objext \
12774 conftest$ac_exeext conftest.$ac_ext
12775LIBS=$ac_check_lib_save_LIBS
12776fi
6bb11ab3
L
12777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12778$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 12779if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
12780 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12781else
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12783$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 12784if ${ac_cv_lib_svld_dlopen+:} false; then :
87326c78
DD
12785 $as_echo_n "(cached) " >&6
12786else
12787 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 12788LIBS="-lsvld $LIBS"
87326c78
DD
12789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790/* end confdefs.h. */
12791
12792/* Override any GCC internal prototype to avoid an error.
12793 Use char because int might match the return type of a GCC
12794 builtin and then its argument prototype would still apply. */
12795#ifdef __cplusplus
12796extern "C"
12797#endif
6bb11ab3 12798char dlopen ();
87326c78
DD
12799int
12800main ()
12801{
6bb11ab3 12802return dlopen ();
87326c78
DD
12803 ;
12804 return 0;
12805}
12806_ACEOF
12807if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 12808 ac_cv_lib_svld_dlopen=yes
87326c78 12809else
6bb11ab3 12810 ac_cv_lib_svld_dlopen=no
87326c78
DD
12811fi
12812rm -f core conftest.err conftest.$ac_objext \
12813 conftest$ac_exeext conftest.$ac_ext
12814LIBS=$ac_check_lib_save_LIBS
12815fi
6bb11ab3
L
12816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12817$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 12818if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6bb11ab3 12819 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
87326c78 12820else
6bb11ab3
L
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12822$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 12823if ${ac_cv_lib_dld_dld_link+:} false; then :
87326c78
DD
12824 $as_echo_n "(cached) " >&6
12825else
6bb11ab3
L
12826 ac_check_lib_save_LIBS=$LIBS
12827LIBS="-ldld $LIBS"
87326c78
DD
12828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12829/* end confdefs.h. */
12830
12831/* Override any GCC internal prototype to avoid an error.
12832 Use char because int might match the return type of a GCC
12833 builtin and then its argument prototype would still apply. */
12834#ifdef __cplusplus
12835extern "C"
12836#endif
6bb11ab3 12837char dld_link ();
87326c78
DD
12838int
12839main ()
12840{
6bb11ab3 12841return dld_link ();
87326c78
DD
12842 ;
12843 return 0;
12844}
12845_ACEOF
6bb11ab3
L
12846if ac_fn_c_try_link "$LINENO"; then :
12847 ac_cv_lib_dld_dld_link=yes
12848else
12849 ac_cv_lib_dld_dld_link=no
12850fi
12851rm -f core conftest.err conftest.$ac_objext \
12852 conftest$ac_exeext conftest.$ac_ext
12853LIBS=$ac_check_lib_save_LIBS
12854fi
12855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12856$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 12857if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6bb11ab3
L
12858 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12859fi
12860
12861
12862fi
12863
12864
12865fi
12866
12867
12868fi
12869
12870
12871fi
12872
12873
12874fi
12875
12876 ;;
12877 esac
12878
12879 if test "x$lt_cv_dlopen" != xno; then
12880 enable_dlopen=yes
87326c78 12881 else
6bb11ab3
L
12882 enable_dlopen=no
12883 fi
12884
12885 case $lt_cv_dlopen in
12886 dlopen)
12887 save_CPPFLAGS="$CPPFLAGS"
12888 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12889
12890 save_LDFLAGS="$LDFLAGS"
12891 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12892
12893 save_LIBS="$LIBS"
12894 LIBS="$lt_cv_dlopen_libs $LIBS"
12895
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12897$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 12898if ${lt_cv_dlopen_self+:} false; then :
6bb11ab3
L
12899 $as_echo_n "(cached) " >&6
12900else
12901 if test "$cross_compiling" = yes; then :
12902 lt_cv_dlopen_self=cross
12903else
12904 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12905 lt_status=$lt_dlunknown
12906 cat > conftest.$ac_ext <<_LT_EOF
46f900c0 12907#line 12907 "configure"
6bb11ab3
L
12908#include "confdefs.h"
12909
12910#if HAVE_DLFCN_H
12911#include <dlfcn.h>
12912#endif
12913
12914#include <stdio.h>
12915
12916#ifdef RTLD_GLOBAL
12917# define LT_DLGLOBAL RTLD_GLOBAL
12918#else
12919# ifdef DL_GLOBAL
12920# define LT_DLGLOBAL DL_GLOBAL
12921# else
12922# define LT_DLGLOBAL 0
12923# endif
12924#endif
12925
12926/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12927 find out it does not work in some platform. */
12928#ifndef LT_DLLAZY_OR_NOW
12929# ifdef RTLD_LAZY
12930# define LT_DLLAZY_OR_NOW RTLD_LAZY
12931# else
12932# ifdef DL_LAZY
12933# define LT_DLLAZY_OR_NOW DL_LAZY
12934# else
12935# ifdef RTLD_NOW
12936# define LT_DLLAZY_OR_NOW RTLD_NOW
12937# else
12938# ifdef DL_NOW
12939# define LT_DLLAZY_OR_NOW DL_NOW
12940# else
12941# define LT_DLLAZY_OR_NOW 0
12942# endif
12943# endif
12944# endif
12945# endif
12946#endif
12947
12948/* When -fvisbility=hidden is used, assume the code has been annotated
12949 correspondingly for the symbols needed. */
12950#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12951void fnord () __attribute__((visibility("default")));
12952#endif
12953
12954void fnord () { int i=42; }
12955int main ()
12956{
12957 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12958 int status = $lt_dlunknown;
12959
12960 if (self)
12961 {
12962 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12963 else
12964 {
12965 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12966 else puts (dlerror ());
12967 }
12968 /* dlclose (self); */
12969 }
12970 else
12971 puts (dlerror ());
12972
12973 return status;
12974}
12975_LT_EOF
12976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12977 (eval $ac_link) 2>&5
12978 ac_status=$?
12979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12980 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12981 (./conftest; exit; ) >&5 2>/dev/null
12982 lt_status=$?
12983 case x$lt_status in
12984 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12985 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12986 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12987 esac
12988 else :
12989 # compilation failed
12990 lt_cv_dlopen_self=no
87326c78 12991 fi
87326c78 12992fi
6bb11ab3
L
12993rm -fr conftest*
12994
12995
87326c78 12996fi
6bb11ab3
L
12997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12998$as_echo "$lt_cv_dlopen_self" >&6; }
87326c78 12999
6bb11ab3
L
13000 if test "x$lt_cv_dlopen_self" = xyes; then
13001 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13003$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 13004if ${lt_cv_dlopen_self_static+:} false; then :
6bb11ab3 13005 $as_echo_n "(cached) " >&6
87326c78 13006else
6bb11ab3
L
13007 if test "$cross_compiling" = yes; then :
13008 lt_cv_dlopen_self_static=cross
13009else
13010 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13011 lt_status=$lt_dlunknown
13012 cat > conftest.$ac_ext <<_LT_EOF
46f900c0 13013#line 13013 "configure"
6bb11ab3
L
13014#include "confdefs.h"
13015
13016#if HAVE_DLFCN_H
13017#include <dlfcn.h>
13018#endif
13019
13020#include <stdio.h>
13021
13022#ifdef RTLD_GLOBAL
13023# define LT_DLGLOBAL RTLD_GLOBAL
13024#else
13025# ifdef DL_GLOBAL
13026# define LT_DLGLOBAL DL_GLOBAL
13027# else
13028# define LT_DLGLOBAL 0
13029# endif
13030#endif
13031
13032/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13033 find out it does not work in some platform. */
13034#ifndef LT_DLLAZY_OR_NOW
13035# ifdef RTLD_LAZY
13036# define LT_DLLAZY_OR_NOW RTLD_LAZY
13037# else
13038# ifdef DL_LAZY
13039# define LT_DLLAZY_OR_NOW DL_LAZY
13040# else
13041# ifdef RTLD_NOW
13042# define LT_DLLAZY_OR_NOW RTLD_NOW
13043# else
13044# ifdef DL_NOW
13045# define LT_DLLAZY_OR_NOW DL_NOW
13046# else
13047# define LT_DLLAZY_OR_NOW 0
13048# endif
13049# endif
13050# endif
13051# endif
13052#endif
13053
13054/* When -fvisbility=hidden is used, assume the code has been annotated
13055 correspondingly for the symbols needed. */
13056#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13057void fnord () __attribute__((visibility("default")));
13058#endif
13059
13060void fnord () { int i=42; }
13061int main ()
13062{
13063 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13064 int status = $lt_dlunknown;
13065
13066 if (self)
13067 {
13068 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13069 else
13070 {
13071 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13072 else puts (dlerror ());
13073 }
13074 /* dlclose (self); */
13075 }
13076 else
13077 puts (dlerror ());
13078
13079 return status;
13080}
13081_LT_EOF
13082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13083 (eval $ac_link) 2>&5
13084 ac_status=$?
13085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13086 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13087 (./conftest; exit; ) >&5 2>/dev/null
13088 lt_status=$?
13089 case x$lt_status in
13090 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13091 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13092 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13093 esac
13094 else :
13095 # compilation failed
13096 lt_cv_dlopen_self_static=no
13097 fi
87326c78 13098fi
6bb11ab3
L
13099rm -fr conftest*
13100
13101
87326c78 13102fi
6bb11ab3
L
13103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13104$as_echo "$lt_cv_dlopen_self_static" >&6; }
13105 fi
13106
13107 CPPFLAGS="$save_CPPFLAGS"
13108 LDFLAGS="$save_LDFLAGS"
13109 LIBS="$save_LIBS"
13110 ;;
13111 esac
13112
13113 case $lt_cv_dlopen_self in
13114 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13115 *) enable_dlopen_self=unknown ;;
13116 esac
13117
13118 case $lt_cv_dlopen_self_static in
13119 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13120 *) enable_dlopen_self_static=unknown ;;
13121 esac
13122fi
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140striplib=
13141old_striplib=
13142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13143$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13144if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13145 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13146 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13148$as_echo "yes" >&6; }
13149else
13150# FIXME - insert some real tests, host_os isn't really good enough
13151 case $host_os in
13152 darwin*)
13153 if test -n "$STRIP" ; then
13154 striplib="$STRIP -x"
13155 old_striplib="$STRIP -S"
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13157$as_echo "yes" >&6; }
13158 else
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13160$as_echo "no" >&6; }
13161 fi
13162 ;;
13163 *)
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13165$as_echo "no" >&6; }
13166 ;;
13167 esac
13168fi
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181 # Report which library types will actually be built
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13183$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13185$as_echo "$can_build_shared" >&6; }
13186
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13188$as_echo_n "checking whether to build shared libraries... " >&6; }
13189 test "$can_build_shared" = "no" && enable_shared=no
13190
13191 # On AIX, shared libraries and static libraries use the same namespace, and
13192 # are all built from PIC.
13193 case $host_os in
13194 aix3*)
13195 test "$enable_shared" = yes && enable_static=no
13196 if test -n "$RANLIB"; then
13197 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13198 postinstall_cmds='$RANLIB $lib'
13199 fi
13200 ;;
13201
13202 aix[4-9]*)
13203 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13204 test "$enable_shared" = yes && enable_static=no
13205 fi
13206 ;;
13207 esac
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13209$as_echo "$enable_shared" >&6; }
13210
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13212$as_echo_n "checking whether to build static libraries... " >&6; }
13213 # Make sure either enable_shared or enable_static is yes.
13214 test "$enable_shared" = yes || enable_static=yes
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13216$as_echo "$enable_static" >&6; }
13217
13218
13219
13220
13221fi
13222ac_ext=c
13223ac_cpp='$CPP $CPPFLAGS'
13224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13226ac_compiler_gnu=$ac_cv_c_compiler_gnu
13227
13228CC="$lt_save_CC"
13229
13230
13231
13232
13233
13234
13235
13236
13237
87326c78 13238
87326c78 13239
87326c78 13240
87326c78 13241
6bb11ab3
L
13242 ac_config_commands="$ac_config_commands libtool"
13243
13244
13245
13246
13247# Only expand once:
13248
13249
87326c78
DD
13250
13251
13252. ${srcdir}/../../bfd/configure.host
13253
13254
13255
31e6ad7d
MF
13256
13257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13258$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13259 # Check whether --enable-maintainer-mode was given.
87326c78 13260if test "${enable_maintainer_mode+set}" = set; then :
31e6ad7d
MF
13261 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13262else
13263 USE_MAINTAINER_MODE=no
87326c78 13264fi
31e6ad7d
MF
13265
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13267$as_echo "$USE_MAINTAINER_MODE" >&6; }
13268 if test $USE_MAINTAINER_MODE = yes; then
13269 MAINTAINER_MODE_TRUE=
13270 MAINTAINER_MODE_FALSE='#'
87326c78 13271else
31e6ad7d
MF
13272 MAINTAINER_MODE_TRUE='#'
13273 MAINTAINER_MODE_FALSE=
87326c78
DD
13274fi
13275
31e6ad7d
MF
13276 MAINT=$MAINTAINER_MODE_TRUE
13277
13278
87326c78
DD
13279
13280
ce39bd38
MF
13281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
13282$as_echo_n "checking for sim debug setting... " >&6; }
13283sim_debug="0"
87326c78
DD
13284# Check whether --enable-sim-debug was given.
13285if test "${enable_sim_debug+set}" = set; then :
13286 enableval=$enable_sim_debug; case "${enableval}" in
ce39bd38
MF
13287 yes) sim_debug="7";;
13288 no) sim_debug="0";;
13289 *) sim_debug="($enableval)";;
87326c78 13290esac
87326c78 13291fi
ce39bd38
MF
13292if test "$sim_debug" != "0"; then
13293
13294cat >>confdefs.h <<_ACEOF
13295#define DEBUG $sim_debug
13296_ACEOF
13297
87326c78
DD
13298fi
13299
ce39bd38
MF
13300cat >>confdefs.h <<_ACEOF
13301#define WITH_DEBUG $sim_debug
13302_ACEOF
13303
13304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
13305$as_echo "$sim_debug" >&6; }
87326c78
DD
13306
13307
ce39bd38
MF
13308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
13309$as_echo_n "checking for sim stdio debug behavior... " >&6; }
13310sim_stdio="0"
87326c78
DD
13311# Check whether --enable-sim-stdio was given.
13312if test "${enable_sim_stdio+set}" = set; then :
13313 enableval=$enable_sim_stdio; case "${enableval}" in
ce39bd38
MF
13314 yes) sim_stdio="DO_USE_STDIO";;
13315 no) sim_stdio="DONT_USE_STDIO";;
d0ac1c44 13316 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
87326c78 13317esac
87326c78
DD
13318fi
13319
ce39bd38
MF
13320cat >>confdefs.h <<_ACEOF
13321#define WITH_STDIO $sim_stdio
13322_ACEOF
13323
13324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
13325$as_echo "$sim_stdio" >&6; }
87326c78
DD
13326
13327
ce39bd38
MF
13328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
13329$as_echo_n "checking for sim trace settings... " >&6; }
13330sim_trace="~TRACE_debug"
87326c78
DD
13331# Check whether --enable-sim-trace was given.
13332if test "${enable_sim_trace+set}" = set; then :
13333 enableval=$enable_sim_trace; case "${enableval}" in
ce39bd38
MF
13334 yes) sim_trace="-1";;
13335 no) sim_trace="0";;
87326c78 13336 [-0-9]*)
ce39bd38 13337 sim_trace="'(${enableval})'";;
2232061b 13338 [[:lower:]]*)
87326c78
DD
13339 sim_trace=""
13340 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13341 if test x"$sim_trace" = x; then
ce39bd38 13342 sim_trace="(TRACE_$x"
87326c78
DD
13343 else
13344 sim_trace="${sim_trace}|TRACE_$x"
13345 fi
13346 done
ce39bd38 13347 sim_trace="$sim_trace)" ;;
87326c78 13348esac
87326c78
DD
13349fi
13350
ce39bd38
MF
13351cat >>confdefs.h <<_ACEOF
13352#define WITH_TRACE $sim_trace
13353_ACEOF
13354
13355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
13356$as_echo "$sim_trace" >&6; }
87326c78
DD
13357
13358
ce39bd38
MF
13359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
13360$as_echo_n "checking for sim profile settings... " >&6; }
13361profile="1"
13362sim_profile="-1"
87326c78
DD
13363# Check whether --enable-sim-profile was given.
13364if test "${enable_sim_profile+set}" = set; then :
13365 enableval=$enable_sim_profile; case "${enableval}" in
ce39bd38
MF
13366 yes) profile="1" sim_profile="-1";;
13367 no) profile="0" sim_profile="0";;
87326c78 13368 [-0-9]*)
ce39bd38 13369 profile="(${enableval})" sim_profile="(${enableval})";;
87326c78 13370 [a-z]*)
ce39bd38 13371 profile="1"
87326c78
DD
13372 sim_profile=""
13373 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13374 if test x"$sim_profile" = x; then
ce39bd38 13375 sim_profile="(PROFILE_$x"
87326c78
DD
13376 else
13377 sim_profile="${sim_profile}|PROFILE_$x"
13378 fi
13379 done
ce39bd38 13380 sim_profile="$sim_profile)" ;;
87326c78 13381esac
87326c78
DD
13382fi
13383
ce39bd38
MF
13384cat >>confdefs.h <<_ACEOF
13385#define PROFILE $profile
13386_ACEOF
87326c78
DD
13387
13388
ce39bd38
MF
13389cat >>confdefs.h <<_ACEOF
13390#define WITH_PROFILE $sim_profile
13391_ACEOF
13392
13393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
13394$as_echo "$sim_profile" >&6; }
13395
13396
13397
13398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
13399$as_echo_n "checking whether to enable sim asserts... " >&6; }
13400sim_assert="1"
35656e95
MF
13401# Check whether --enable-sim-assert was given.
13402if test "${enable_sim_assert+set}" = set; then :
13403 enableval=$enable_sim_assert; case "${enableval}" in
ce39bd38
MF
13404 yes) sim_assert="1";;
13405 no) sim_assert="0";;
d0ac1c44 13406 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
35656e95 13407esac
35656e95
MF
13408fi
13409
ce39bd38
MF
13410cat >>confdefs.h <<_ACEOF
13411#define WITH_ASSERT $sim_assert
13412_ACEOF
13413
13414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
13415$as_echo "$sim_assert" >&6; }
13416
35656e95 13417
ce39bd38
MF
13418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
13419$as_echo_n "checking default sim environment setting... " >&6; }
13420sim_environment="ALL_ENVIRONMENT"
16f7876d
MF
13421# Check whether --enable-sim-environment was given.
13422if test "${enable_sim_environment+set}" = set; then :
13423 enableval=$enable_sim_environment; case "${enableval}" in
ce39bd38
MF
13424 all | ALL) sim_environment="ALL_ENVIRONMENT";;
13425 user | USER) sim_environment="USER_ENVIRONMENT";;
13426 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
13427 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
d0ac1c44 13428 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
16f7876d 13429esac
16f7876d
MF
13430fi
13431
ce39bd38
MF
13432cat >>confdefs.h <<_ACEOF
13433#define WITH_ENVIRONMENT $sim_environment
13434_ACEOF
13435
13436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
13437$as_echo "$sim_environment" >&6; }
13438
16f7876d 13439
347fe5bb
MF
13440sim_inline="-DDEFAULT_INLINE=0"
13441# Check whether --enable-sim-inline was given.
13442if test "${enable_sim_inline+set}" = set; then :
13443 enableval=$enable_sim_inline; sim_inline=""
13444case "$enableval" in
13445 no) sim_inline="-DDEFAULT_INLINE=0";;
13446 0) sim_inline="-DDEFAULT_INLINE=0";;
13447 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
13448 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
13449 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13450 new_flag=""
13451 case "$x" in
13452 *_INLINE=*) new_flag="-D$x";;
13453 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
13454 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
13455 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
13456 esac
13457 if test x"$sim_inline" = x""; then
13458 sim_inline="$new_flag"
13459 else
13460 sim_inline="$sim_inline $new_flag"
13461 fi
13462 done;;
13463esac
13464if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
13465 echo "Setting inline flags = $sim_inline" 6>&1
13466fi
13467fi
13468
13469
13470
87326c78
DD
13471
13472# Check whether --with-pkgversion was given.
13473if test "${with_pkgversion+set}" = set; then :
13474 withval=$with_pkgversion; case "$withval" in
d0ac1c44 13475 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
87326c78
DD
13476 no) PKGVERSION= ;;
13477 *) PKGVERSION="($withval) " ;;
13478 esac
13479else
bf12d44e 13480 PKGVERSION="(SIM) "
87326c78
DD
13481
13482fi
13483
13484
13485
13486
13487
13488# Check whether --with-bugurl was given.
13489if test "${with_bugurl+set}" = set; then :
13490 withval=$with_bugurl; case "$withval" in
d0ac1c44 13491 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
87326c78
DD
13492 no) BUGURL=
13493 ;;
13494 *) BUGURL="$withval"
13495 ;;
13496 esac
13497else
dfb856ba 13498 BUGURL="https://www.gnu.org/software/gdb/bugs/"
87326c78
DD
13499
13500fi
13501
13502 case ${BUGURL} in
13503 "")
13504 REPORT_BUGS_TO=
13505 REPORT_BUGS_TEXI=
13506 ;;
13507 *)
13508 REPORT_BUGS_TO="<$BUGURL>"
13509 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
13510 ;;
13511 esac;
13512
13513
13514
13515
13516cat >>confdefs.h <<_ACEOF
13517#define PKGVERSION "$PKGVERSION"
13518_ACEOF
13519
13520
13521cat >>confdefs.h <<_ACEOF
13522#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
13523_ACEOF
13524
13525
13526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13527$as_echo_n "checking return type of signal handlers... " >&6; }
d0ac1c44 13528if ${ac_cv_type_signal+:} false; then :
87326c78
DD
13529 $as_echo_n "(cached) " >&6
13530else
13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532/* end confdefs.h. */
13533#include <sys/types.h>
13534#include <signal.h>
13535
13536int
13537main ()
13538{
13539return *(signal (0, 0)) (0) == 1;
13540 ;
13541 return 0;
13542}
13543_ACEOF
13544if ac_fn_c_try_compile "$LINENO"; then :
13545 ac_cv_type_signal=int
13546else
13547 ac_cv_type_signal=void
13548fi
13549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13550fi
13551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13552$as_echo "$ac_cv_type_signal" >&6; }
13553
13554cat >>confdefs.h <<_ACEOF
13555#define RETSIGTYPE $ac_cv_type_signal
13556_ACEOF
13557
13558
13559
13560
13561
87326c78
DD
13562
13563
13564for ac_header in getopt.h
13565do :
13566 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
d0ac1c44 13567if test "x$ac_cv_header_getopt_h" = xyes; then :
87326c78
DD
13568 cat >>confdefs.h <<_ACEOF
13569#define HAVE_GETOPT_H 1
13570_ACEOF
13571
13572fi
13573
13574done
13575
13576
13577
87326c78
DD
13578cgen_breaks=""
13579if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
13580cgen_breaks="break cgen_rtx_error";
13581fi
13582
13583ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
13584
13585ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
13586
13587ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
13588
13589ac_config_commands="$ac_config_commands Makefile"
13590
13591ac_config_commands="$ac_config_commands stamp-h"
13592
13593cat >confcache <<\_ACEOF
13594# This file is a shell script that caches the results of configure
13595# tests run on this system so they can be shared between configure
13596# scripts and configure runs, see configure's option --config-cache.
13597# It is not useful on other systems. If it contains results you don't
13598# want to keep, you may remove or edit it.
13599#
13600# config.status only pays attention to the cache file if you give it
13601# the --recheck option to rerun configure.
13602#
13603# `ac_cv_env_foo' variables (set or unset) will be overridden when
13604# loading this file, other *unset* `ac_cv_foo' will be assigned the
13605# following values.
13606
13607_ACEOF
13608
13609# The following way of writing the cache mishandles newlines in values,
13610# but we know of no workaround that is simple, portable, and efficient.
13611# So, we kill variables containing newlines.
13612# Ultrix sh set writes to stderr and can't be redirected directly,
13613# and sets the high bit in the cache file unless we assign to the vars.
13614(
13615 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13616 eval ac_val=\$$ac_var
13617 case $ac_val in #(
13618 *${as_nl}*)
13619 case $ac_var in #(
13620 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13621$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13622 esac
13623 case $ac_var in #(
13624 _ | IFS | as_nl) ;; #(
13625 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13626 *) { eval $ac_var=; unset $ac_var;} ;;
13627 esac ;;
13628 esac
13629 done
13630
13631 (set) 2>&1 |
13632 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13633 *${as_nl}ac_space=\ *)
13634 # `set' does not quote correctly, so add quotes: double-quote
13635 # substitution turns \\\\ into \\, and sed turns \\ into \.
13636 sed -n \
13637 "s/'/'\\\\''/g;
13638 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13639 ;; #(
13640 *)
13641 # `set' quotes correctly as required by POSIX, so do not add quotes.
13642 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13643 ;;
13644 esac |
13645 sort
13646) |
13647 sed '
13648 /^ac_cv_env_/b end
13649 t clear
13650 :clear
13651 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13652 t end
13653 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13654 :end' >>confcache
13655if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13656 if test -w "$cache_file"; then
d0ac1c44 13657 if test "x$cache_file" != "x/dev/null"; then
87326c78
DD
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13659$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
13660 if test ! -f "$cache_file" || test -h "$cache_file"; then
13661 cat confcache >"$cache_file"
13662 else
13663 case $cache_file in #(
13664 */* | ?:*)
13665 mv -f confcache "$cache_file"$$ &&
13666 mv -f "$cache_file"$$ "$cache_file" ;; #(
13667 *)
13668 mv -f confcache "$cache_file" ;;
13669 esac
13670 fi
13671 fi
87326c78
DD
13672 else
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13674$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13675 fi
13676fi
13677rm -f confcache
13678
13679test "x$prefix" = xNONE && prefix=$ac_default_prefix
13680# Let make expand exec_prefix.
13681test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13682
13683DEFS=-DHAVE_CONFIG_H
13684
13685ac_libobjs=
13686ac_ltlibobjs=
d0ac1c44 13687U=
87326c78
DD
13688for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13689 # 1. Remove the extension, and $U if already installed.
13690 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13691 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13692 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13693 # will be set to the directory where LIBOBJS objects are built.
13694 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13695 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13696done
13697LIBOBJS=$ac_libobjs
13698
13699LTLIBOBJS=$ac_ltlibobjs
13700
13701
0cb8d851 13702
db2e4d67 13703if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
d0ac1c44 13704 as_fn_error $? "conditional \"GMAKE\" was never defined.
db2e4d67
MF
13705Usually this means the macro was only invoked conditionally." "$LINENO" 5
13706fi
6bb11ab3 13707if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
d0ac1c44 13708 as_fn_error $? "conditional \"PLUGINS\" was never defined.
6bb11ab3
L
13709Usually this means the macro was only invoked conditionally." "$LINENO" 5
13710fi
31e6ad7d 13711if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 13712 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31e6ad7d
MF
13713Usually this means the macro was only invoked conditionally." "$LINENO" 5
13714fi
87326c78 13715
d0ac1c44 13716: "${CONFIG_STATUS=./config.status}"
87326c78
DD
13717ac_write_fail=0
13718ac_clean_files_save=$ac_clean_files
13719ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13720{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13721$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13722as_write_fail=0
13723cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13724#! $SHELL
13725# Generated by $as_me.
13726# Run this file to recreate the current configuration.
13727# Compiler output produced by configure, useful for debugging
13728# configure, is in config.log if it exists.
13729
13730debug=false
13731ac_cs_recheck=false
13732ac_cs_silent=false
13733
13734SHELL=\${CONFIG_SHELL-$SHELL}
13735export SHELL
13736_ASEOF
13737cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13738## -------------------- ##
13739## M4sh Initialization. ##
13740## -------------------- ##
13741
13742# Be more Bourne compatible
13743DUALCASE=1; export DUALCASE # for MKS sh
13744if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13745 emulate sh
13746 NULLCMD=:
13747 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13748 # is contrary to our usage. Disable this feature.
13749 alias -g '${1+"$@"}'='"$@"'
13750 setopt NO_GLOB_SUBST
13751else
13752 case `(set -o) 2>/dev/null` in #(
13753 *posix*) :
13754 set -o posix ;; #(
13755 *) :
13756 ;;
13757esac
13758fi
13759
13760
13761as_nl='
13762'
13763export as_nl
13764# Printing a long string crashes Solaris 7 /usr/bin/printf.
13765as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13766as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13767as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13768# Prefer a ksh shell builtin over an external printf program on Solaris,
13769# but without wasting forks for bash or zsh.
13770if test -z "$BASH_VERSION$ZSH_VERSION" \
13771 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13772 as_echo='print -r --'
13773 as_echo_n='print -rn --'
13774elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13775 as_echo='printf %s\n'
13776 as_echo_n='printf %s'
13777else
13778 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13779 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13780 as_echo_n='/usr/ucb/echo -n'
13781 else
13782 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13783 as_echo_n_body='eval
13784 arg=$1;
13785 case $arg in #(
13786 *"$as_nl"*)
13787 expr "X$arg" : "X\\(.*\\)$as_nl";
13788 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13789 esac;
13790 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13791 '
13792 export as_echo_n_body
13793 as_echo_n='sh -c $as_echo_n_body as_echo'
13794 fi
13795 export as_echo_body
13796 as_echo='sh -c $as_echo_body as_echo'
13797fi
13798
13799# The user is always right.
13800if test "${PATH_SEPARATOR+set}" != set; then
13801 PATH_SEPARATOR=:
13802 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13803 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13804 PATH_SEPARATOR=';'
13805 }
13806fi
13807
13808
13809# IFS
13810# We need space, tab and new line, in precisely that order. Quoting is
13811# there to prevent editors from complaining about space-tab.
13812# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13813# splitting by setting IFS to empty value.)
13814IFS=" "" $as_nl"
13815
13816# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 13817as_myself=
87326c78
DD
13818case $0 in #((
13819 *[\\/]* ) as_myself=$0 ;;
13820 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13821for as_dir in $PATH
13822do
13823 IFS=$as_save_IFS
13824 test -z "$as_dir" && as_dir=.
13825 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13826 done
13827IFS=$as_save_IFS
13828
13829 ;;
13830esac
13831# We did not find ourselves, most probably we were run as `sh COMMAND'
13832# in which case we are not to be found in the path.
13833if test "x$as_myself" = x; then
13834 as_myself=$0
13835fi
13836if test ! -f "$as_myself"; then
13837 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13838 exit 1
13839fi
13840
13841# Unset variables that we do not need and which cause bugs (e.g. in
13842# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13843# suppresses any "Segmentation fault" message there. '((' could
13844# trigger a bug in pdksh 5.2.14.
13845for as_var in BASH_ENV ENV MAIL MAILPATH
13846do eval test x\${$as_var+set} = xset \
13847 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13848done
13849PS1='$ '
13850PS2='> '
13851PS4='+ '
13852
13853# NLS nuisances.
13854LC_ALL=C
13855export LC_ALL
13856LANGUAGE=C
13857export LANGUAGE
13858
13859# CDPATH.
13860(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13861
13862
d0ac1c44
SM
13863# as_fn_error STATUS ERROR [LINENO LOG_FD]
13864# ----------------------------------------
87326c78
DD
13865# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13866# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 13867# script with STATUS, using 1 if that was 0.
87326c78
DD
13868as_fn_error ()
13869{
d0ac1c44
SM
13870 as_status=$1; test $as_status -eq 0 && as_status=1
13871 if test "$4"; then
13872 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13873 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
87326c78 13874 fi
d0ac1c44 13875 $as_echo "$as_me: error: $2" >&2
87326c78
DD
13876 as_fn_exit $as_status
13877} # as_fn_error
13878
13879
13880# as_fn_set_status STATUS
13881# -----------------------
13882# Set $? to STATUS, without forking.
13883as_fn_set_status ()
13884{
13885 return $1
13886} # as_fn_set_status
13887
13888# as_fn_exit STATUS
13889# -----------------
13890# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13891as_fn_exit ()
13892{
13893 set +e
13894 as_fn_set_status $1
13895 exit $1
13896} # as_fn_exit
13897
13898# as_fn_unset VAR
13899# ---------------
13900# Portably unset VAR.
13901as_fn_unset ()
13902{
13903 { eval $1=; unset $1;}
13904}
13905as_unset=as_fn_unset
13906# as_fn_append VAR VALUE
13907# ----------------------
13908# Append the text in VALUE to the end of the definition contained in VAR. Take
13909# advantage of any shell optimizations that allow amortized linear growth over
13910# repeated appends, instead of the typical quadratic growth present in naive
13911# implementations.
13912if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13913 eval 'as_fn_append ()
13914 {
13915 eval $1+=\$2
13916 }'
13917else
13918 as_fn_append ()
13919 {
13920 eval $1=\$$1\$2
13921 }
13922fi # as_fn_append
13923
13924# as_fn_arith ARG...
13925# ------------------
13926# Perform arithmetic evaluation on the ARGs, and store the result in the
13927# global $as_val. Take advantage of shells that can avoid forks. The arguments
13928# must be portable across $(()) and expr.
13929if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13930 eval 'as_fn_arith ()
13931 {
13932 as_val=$(( $* ))
13933 }'
13934else
13935 as_fn_arith ()
13936 {
13937 as_val=`expr "$@" || test $? -eq 1`
13938 }
13939fi # as_fn_arith
13940
13941
13942if expr a : '\(a\)' >/dev/null 2>&1 &&
13943 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13944 as_expr=expr
13945else
13946 as_expr=false
13947fi
13948
13949if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13950 as_basename=basename
13951else
13952 as_basename=false
13953fi
13954
13955if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13956 as_dirname=dirname
13957else
13958 as_dirname=false
13959fi
13960
13961as_me=`$as_basename -- "$0" ||
13962$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13963 X"$0" : 'X\(//\)$' \| \
13964 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13965$as_echo X/"$0" |
13966 sed '/^.*\/\([^/][^/]*\)\/*$/{
13967 s//\1/
13968 q
13969 }
13970 /^X\/\(\/\/\)$/{
13971 s//\1/
13972 q
13973 }
13974 /^X\/\(\/\).*/{
13975 s//\1/
13976 q
13977 }
13978 s/.*/./; q'`
13979
13980# Avoid depending upon Character Ranges.
13981as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13982as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13983as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13984as_cr_digits='0123456789'
13985as_cr_alnum=$as_cr_Letters$as_cr_digits
13986
13987ECHO_C= ECHO_N= ECHO_T=
13988case `echo -n x` in #(((((
13989-n*)
13990 case `echo 'xy\c'` in
13991 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13992 xy) ECHO_C='\c';;
13993 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13994 ECHO_T=' ';;
13995 esac;;
13996*)
13997 ECHO_N='-n';;
13998esac
13999
14000rm -f conf$$ conf$$.exe conf$$.file
14001if test -d conf$$.dir; then
14002 rm -f conf$$.dir/conf$$.file
14003else
14004 rm -f conf$$.dir
14005 mkdir conf$$.dir 2>/dev/null
14006fi
14007if (echo >conf$$.file) 2>/dev/null; then
14008 if ln -s conf$$.file conf$$ 2>/dev/null; then
14009 as_ln_s='ln -s'
14010 # ... but there are two gotchas:
14011 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14012 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 14013 # In both cases, we have to default to `cp -pR'.
87326c78 14014 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 14015 as_ln_s='cp -pR'
87326c78
DD
14016 elif ln conf$$.file conf$$ 2>/dev/null; then
14017 as_ln_s=ln
14018 else
d0ac1c44 14019 as_ln_s='cp -pR'
87326c78
DD
14020 fi
14021else
d0ac1c44 14022 as_ln_s='cp -pR'
87326c78
DD
14023fi
14024rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14025rmdir conf$$.dir 2>/dev/null
14026
14027
14028# as_fn_mkdir_p
14029# -------------
14030# Create "$as_dir" as a directory, including parents if necessary.
14031as_fn_mkdir_p ()
14032{
14033
14034 case $as_dir in #(
14035 -*) as_dir=./$as_dir;;
14036 esac
14037 test -d "$as_dir" || eval $as_mkdir_p || {
14038 as_dirs=
14039 while :; do
14040 case $as_dir in #(
14041 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14042 *) as_qdir=$as_dir;;
14043 esac
14044 as_dirs="'$as_qdir' $as_dirs"
14045 as_dir=`$as_dirname -- "$as_dir" ||
14046$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14047 X"$as_dir" : 'X\(//\)[^/]' \| \
14048 X"$as_dir" : 'X\(//\)$' \| \
14049 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14050$as_echo X"$as_dir" |
14051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14052 s//\1/
14053 q
14054 }
14055 /^X\(\/\/\)[^/].*/{
14056 s//\1/
14057 q
14058 }
14059 /^X\(\/\/\)$/{
14060 s//\1/
14061 q
14062 }
14063 /^X\(\/\).*/{
14064 s//\1/
14065 q
14066 }
14067 s/.*/./; q'`
14068 test -d "$as_dir" && break
14069 done
14070 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 14071 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
87326c78
DD
14072
14073
14074} # as_fn_mkdir_p
14075if mkdir -p . 2>/dev/null; then
14076 as_mkdir_p='mkdir -p "$as_dir"'
14077else
14078 test -d ./-p && rmdir ./-p
14079 as_mkdir_p=false
14080fi
14081
d0ac1c44
SM
14082
14083# as_fn_executable_p FILE
14084# -----------------------
14085# Test if FILE is an executable regular file.
14086as_fn_executable_p ()
14087{
14088 test -f "$1" && test -x "$1"
14089} # as_fn_executable_p
14090as_test_x='test -x'
14091as_executable_p=as_fn_executable_p
87326c78
DD
14092
14093# Sed expression to map a string onto a valid CPP name.
14094as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14095
14096# Sed expression to map a string onto a valid variable name.
14097as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14098
14099
14100exec 6>&1
14101## ----------------------------------- ##
14102## Main body of $CONFIG_STATUS script. ##
14103## ----------------------------------- ##
14104_ASEOF
14105test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14106
14107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14108# Save the log message, to keep $0 and so on meaningful, and to
14109# report actual input values of CONFIG_FILES etc. instead of their
14110# values after options handling.
14111ac_log="
14112This file was extended by $as_me, which was
d0ac1c44 14113generated by GNU Autoconf 2.69. Invocation command line was
87326c78
DD
14114
14115 CONFIG_FILES = $CONFIG_FILES
14116 CONFIG_HEADERS = $CONFIG_HEADERS
14117 CONFIG_LINKS = $CONFIG_LINKS
14118 CONFIG_COMMANDS = $CONFIG_COMMANDS
14119 $ $0 $@
14120
14121on `(hostname || uname -n) 2>/dev/null | sed 1q`
14122"
14123
14124_ACEOF
14125
14126case $ac_config_files in *"
14127"*) set x $ac_config_files; shift; ac_config_files=$*;;
14128esac
14129
14130case $ac_config_headers in *"
14131"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14132esac
14133
14134
14135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14136# Files that config.status was made for.
14137config_files="$ac_config_files"
14138config_headers="$ac_config_headers"
87326c78
DD
14139config_commands="$ac_config_commands"
14140
14141_ACEOF
14142
14143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14144ac_cs_usage="\
14145\`$as_me' instantiates files and other configuration actions
14146from templates according to the current configuration. Unless the files
14147and actions are specified as TAGs, all are instantiated by default.
14148
14149Usage: $0 [OPTION]... [TAG]...
14150
14151 -h, --help print this help, then exit
14152 -V, --version print version number and configuration settings, then exit
d0ac1c44 14153 --config print configuration, then exit
87326c78
DD
14154 -q, --quiet, --silent
14155 do not print progress messages
14156 -d, --debug don't remove temporary files
14157 --recheck update $as_me by reconfiguring in the same conditions
14158 --file=FILE[:TEMPLATE]
14159 instantiate the configuration file FILE
14160 --header=FILE[:TEMPLATE]
14161 instantiate the configuration header FILE
14162
14163Configuration files:
14164$config_files
14165
14166Configuration headers:
14167$config_headers
14168
87326c78
DD
14169Configuration commands:
14170$config_commands
14171
14172Report bugs to the package provider."
14173
14174_ACEOF
14175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 14176ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
87326c78
DD
14177ac_cs_version="\\
14178config.status
d0ac1c44
SM
14179configured by $0, generated by GNU Autoconf 2.69,
14180 with options \\"\$ac_cs_config\\"
87326c78 14181
d0ac1c44 14182Copyright (C) 2012 Free Software Foundation, Inc.
87326c78
DD
14183This config.status script is free software; the Free Software Foundation
14184gives unlimited permission to copy, distribute and modify it."
14185
14186ac_pwd='$ac_pwd'
14187srcdir='$srcdir'
14188INSTALL='$INSTALL'
6bb11ab3 14189AWK='$AWK'
87326c78
DD
14190test -n "\$AWK" || AWK=awk
14191_ACEOF
14192
14193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14194# The default lists apply if the user does not specify any file.
14195ac_need_defaults=:
14196while test $# != 0
14197do
14198 case $1 in
d0ac1c44 14199 --*=?*)
87326c78
DD
14200 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14201 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14202 ac_shift=:
14203 ;;
d0ac1c44
SM
14204 --*=)
14205 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14206 ac_optarg=
14207 ac_shift=:
14208 ;;
87326c78
DD
14209 *)
14210 ac_option=$1
14211 ac_optarg=$2
14212 ac_shift=shift
14213 ;;
14214 esac
14215
14216 case $ac_option in
14217 # Handling of the options.
14218 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14219 ac_cs_recheck=: ;;
14220 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14221 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
14222 --config | --confi | --conf | --con | --co | --c )
14223 $as_echo "$ac_cs_config"; exit ;;
87326c78
DD
14224 --debug | --debu | --deb | --de | --d | -d )
14225 debug=: ;;
14226 --file | --fil | --fi | --f )
14227 $ac_shift
14228 case $ac_optarg in
14229 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 14230 '') as_fn_error $? "missing file argument" ;;
87326c78
DD
14231 esac
14232 as_fn_append CONFIG_FILES " '$ac_optarg'"
14233 ac_need_defaults=false;;
14234 --header | --heade | --head | --hea )
14235 $ac_shift
14236 case $ac_optarg in
14237 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14238 esac
14239 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14240 ac_need_defaults=false;;
14241 --he | --h)
14242 # Conflict between --help and --header
d0ac1c44 14243 as_fn_error $? "ambiguous option: \`$1'
87326c78
DD
14244Try \`$0 --help' for more information.";;
14245 --help | --hel | -h )
14246 $as_echo "$ac_cs_usage"; exit ;;
14247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14248 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14249 ac_cs_silent=: ;;
14250
14251 # This is an error.
d0ac1c44 14252 -*) as_fn_error $? "unrecognized option: \`$1'
87326c78
DD
14253Try \`$0 --help' for more information." ;;
14254
14255 *) as_fn_append ac_config_targets " $1"
14256 ac_need_defaults=false ;;
14257
14258 esac
14259 shift
14260done
14261
14262ac_configure_extra_args=
14263
14264if $ac_cs_silent; then
14265 exec 6>/dev/null
14266 ac_configure_extra_args="$ac_configure_extra_args --silent"
14267fi
14268
14269_ACEOF
14270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14271if \$ac_cs_recheck; then
d0ac1c44 14272 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
87326c78
DD
14273 shift
14274 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14275 CONFIG_SHELL='$SHELL'
14276 export CONFIG_SHELL
14277 exec "\$@"
14278fi
14279
14280_ACEOF
14281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14282exec 5>>config.log
14283{
14284 echo
14285 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14286## Running $as_me. ##
14287_ASBOX
14288 $as_echo "$ac_log"
14289} >&5
14290
14291_ACEOF
14292cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
db2e4d67
MF
14293#
14294# INIT-COMMANDS
14295#
14296ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14297
6bb11ab3
L
14298
14299# The HP-UX ksh and POSIX shell print the target directory to stdout
14300# if CDPATH is set.
14301(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14302
14303sed_quote_subst='$sed_quote_subst'
14304double_quote_subst='$double_quote_subst'
14305delay_variable_subst='$delay_variable_subst'
14306macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14307macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14308enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14309enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14310pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14311enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14312SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14313ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14314host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14315host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14316host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14317build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14318build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14319build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14320SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14321Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14322GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14323EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14324FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14325LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14326NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14327LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14328max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14329ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14330exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14331lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14332lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14333lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14334reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14335reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14336OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14337deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14338file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14339AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14340AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14341STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14342RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14343old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14344old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14345old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14346lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14347CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14348CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14349compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14350GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14351lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14352lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14353lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14354lt_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"`'
14355objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14356MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14357lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14358lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14359lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14360lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14361lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14362need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14363DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14364NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14365LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14366OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14367OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14368libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14369shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14370extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14371archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14372enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14373export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14374whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14375compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14376old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14377old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14378archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14379archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14380module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14381module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14382with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14383allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14384no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14385hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14386hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14387hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14388hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14389hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14390hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14391hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14392hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14393inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14394link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14395fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14396always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14397export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14398exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14399include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14400prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14401file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14402variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14403need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14404need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14405version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14406runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14407shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14408shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14409libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14410library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14411soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14412install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14413postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14414postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14415finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14416finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14417hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14418sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14419sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14420hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14421enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14422enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14423enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14424old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14425striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14426
14427LTCC='$LTCC'
14428LTCFLAGS='$LTCFLAGS'
14429compiler='$compiler_DEFAULT'
14430
14431# A function that is used when there is no print builtin or printf.
14432func_fallback_echo ()
14433{
14434 eval 'cat <<_LTECHO_EOF
14435\$1
14436_LTECHO_EOF'
14437}
14438
14439# Quote evaled strings.
14440for var in SHELL \
14441ECHO \
14442SED \
14443GREP \
14444EGREP \
14445FGREP \
14446LD \
14447NM \
14448LN_S \
14449lt_SP2NL \
14450lt_NL2SP \
14451reload_flag \
14452OBJDUMP \
14453deplibs_check_method \
14454file_magic_cmd \
14455AR \
14456AR_FLAGS \
14457STRIP \
14458RANLIB \
14459CC \
14460CFLAGS \
14461compiler \
14462lt_cv_sys_global_symbol_pipe \
14463lt_cv_sys_global_symbol_to_cdecl \
14464lt_cv_sys_global_symbol_to_c_name_address \
14465lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14466lt_prog_compiler_no_builtin_flag \
14467lt_prog_compiler_wl \
14468lt_prog_compiler_pic \
14469lt_prog_compiler_static \
14470lt_cv_prog_compiler_c_o \
14471need_locks \
14472DSYMUTIL \
14473NMEDIT \
14474LIPO \
14475OTOOL \
14476OTOOL64 \
14477shrext_cmds \
14478export_dynamic_flag_spec \
14479whole_archive_flag_spec \
14480compiler_needs_object \
14481with_gnu_ld \
14482allow_undefined_flag \
14483no_undefined_flag \
14484hardcode_libdir_flag_spec \
14485hardcode_libdir_flag_spec_ld \
14486hardcode_libdir_separator \
14487fix_srcfile_path \
14488exclude_expsyms \
14489include_expsyms \
14490file_list_spec \
14491variables_saved_for_relink \
14492libname_spec \
14493library_names_spec \
14494soname_spec \
14495install_override_mode \
14496finish_eval \
14497old_striplib \
14498striplib; do
14499 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14500 *[\\\\\\\`\\"\\\$]*)
14501 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14502 ;;
14503 *)
14504 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14505 ;;
14506 esac
14507done
14508
14509# Double-quote double-evaled strings.
14510for var in reload_cmds \
14511old_postinstall_cmds \
14512old_postuninstall_cmds \
14513old_archive_cmds \
14514extract_expsyms_cmds \
14515old_archive_from_new_cmds \
14516old_archive_from_expsyms_cmds \
14517archive_cmds \
14518archive_expsym_cmds \
14519module_cmds \
14520module_expsym_cmds \
14521export_symbols_cmds \
14522prelink_cmds \
14523postinstall_cmds \
14524postuninstall_cmds \
14525finish_cmds \
14526sys_lib_search_path_spec \
14527sys_lib_dlsearch_path_spec; do
14528 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14529 *[\\\\\\\`\\"\\\$]*)
14530 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14531 ;;
14532 *)
14533 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14534 ;;
14535 esac
14536done
14537
14538ac_aux_dir='$ac_aux_dir'
14539xsi_shell='$xsi_shell'
14540lt_shell_append='$lt_shell_append'
14541
14542# See if we are running on zsh, and set the options which allow our
14543# commands through without removal of \ escapes INIT.
14544if test -n "\${ZSH_VERSION+set}" ; then
14545 setopt NO_GLOB_SUBST
14546fi
14547
14548
14549 PACKAGE='$PACKAGE'
14550 VERSION='$VERSION'
14551 TIMESTAMP='$TIMESTAMP'
14552 RM='$RM'
14553 ofile='$ofile'
14554
14555
14556
14557
87326c78
DD
14558_ACEOF
14559
14560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14561
14562# Handling of arguments.
14563for ac_config_target in $ac_config_targets
14564do
14565 case $ac_config_target in
14566 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
db2e4d67 14567 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
6bb11ab3 14568 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
87326c78
DD
14569 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
14570 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
14571 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
14572 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
14573 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
14574
d0ac1c44 14575 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
87326c78
DD
14576 esac
14577done
14578
14579
14580# If the user did not use the arguments to specify the items to instantiate,
14581# then the envvar interface is used. Set only those that are not.
14582# We use the long form for the default assignment because of an extremely
14583# bizarre bug on SunOS 4.1.3.
14584if $ac_need_defaults; then
14585 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14586 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
87326c78
DD
14587 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14588fi
14589
14590# Have a temporary directory for convenience. Make it in the build tree
14591# simply because there is no reason against having it here, and in addition,
14592# creating and moving files from /tmp can sometimes cause problems.
14593# Hook for its removal unless debugging.
14594# Note that there is a small window in which the directory will not be cleaned:
14595# after its creation but before its name has been assigned to `$tmp'.
14596$debug ||
14597{
d0ac1c44 14598 tmp= ac_tmp=
87326c78 14599 trap 'exit_status=$?
d0ac1c44
SM
14600 : "${ac_tmp:=$tmp}"
14601 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
87326c78
DD
14602' 0
14603 trap 'as_fn_exit 1' 1 2 13 15
14604}
14605# Create a (secure) tmp directory for tmp files.
14606
14607{
14608 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 14609 test -d "$tmp"
87326c78
DD
14610} ||
14611{
14612 tmp=./conf$$-$RANDOM
14613 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
14614} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14615ac_tmp=$tmp
87326c78
DD
14616
14617# Set up the scripts for CONFIG_FILES section.
14618# No need to generate them if there are no CONFIG_FILES.
14619# This happens for instance with `./config.status config.h'.
14620if test -n "$CONFIG_FILES"; then
14621
14622
14623ac_cr=`echo X | tr X '\015'`
14624# On cygwin, bash can eat \r inside `` if the user requested igncr.
14625# But we know of no other shell where ac_cr would be empty at this
14626# point, so we can use a bashism as a fallback.
14627if test "x$ac_cr" = x; then
14628 eval ac_cr=\$\'\\r\'
14629fi
14630ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14631if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 14632 ac_cs_awk_cr='\\r'
87326c78
DD
14633else
14634 ac_cs_awk_cr=$ac_cr
14635fi
14636
d0ac1c44 14637echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
87326c78
DD
14638_ACEOF
14639
14640
14641{
14642 echo "cat >conf$$subs.awk <<_ACEOF" &&
14643 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14644 echo "_ACEOF"
14645} >conf$$subs.sh ||
d0ac1c44
SM
14646 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14647ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
87326c78
DD
14648ac_delim='%!_!# '
14649for ac_last_try in false false false false false :; do
14650 . ./conf$$subs.sh ||
d0ac1c44 14651 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
87326c78
DD
14652
14653 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14654 if test $ac_delim_n = $ac_delim_num; then
14655 break
14656 elif $ac_last_try; then
d0ac1c44 14657 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
87326c78
DD
14658 else
14659 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14660 fi
14661done
14662rm -f conf$$subs.sh
14663
14664cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 14665cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
87326c78
DD
14666_ACEOF
14667sed -n '
14668h
14669s/^/S["/; s/!.*/"]=/
14670p
14671g
14672s/^[^!]*!//
14673:repl
14674t repl
14675s/'"$ac_delim"'$//
14676t delim
14677:nl
14678h
d0ac1c44 14679s/\(.\{148\}\)..*/\1/
87326c78
DD
14680t more1
14681s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14682p
14683n
14684b repl
14685:more1
14686s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14687p
14688g
14689s/.\{148\}//
14690t nl
14691:delim
14692h
d0ac1c44 14693s/\(.\{148\}\)..*/\1/
87326c78
DD
14694t more2
14695s/["\\]/\\&/g; s/^/"/; s/$/"/
14696p
14697b
14698:more2
14699s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14700p
14701g
14702s/.\{148\}//
14703t delim
14704' <conf$$subs.awk | sed '
14705/^[^""]/{
14706 N
14707 s/\n//
14708}
14709' >>$CONFIG_STATUS || ac_write_fail=1
14710rm -f conf$$subs.awk
14711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14712_ACAWK
d0ac1c44 14713cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
87326c78
DD
14714 for (key in S) S_is_set[key] = 1
14715 FS = "\a"
14716
14717}
14718{
14719 line = $ 0
14720 nfields = split(line, field, "@")
14721 substed = 0
14722 len = length(field[1])
14723 for (i = 2; i < nfields; i++) {
14724 key = field[i]
14725 keylen = length(key)
14726 if (S_is_set[key]) {
14727 value = S[key]
14728 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14729 len += length(value) + length(field[++i])
14730 substed = 1
14731 } else
14732 len += 1 + keylen
14733 }
14734
14735 print line
14736}
14737
14738_ACAWK
14739_ACEOF
14740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14741if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14742 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14743else
14744 cat
d0ac1c44
SM
14745fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14746 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
87326c78
DD
14747_ACEOF
14748
d0ac1c44
SM
14749# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14750# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
87326c78
DD
14751# trailing colons and then remove the whole line if VPATH becomes empty
14752# (actually we leave an empty line to preserve line numbers).
14753if test "x$srcdir" = x.; then
d0ac1c44
SM
14754 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14755h
14756s///
14757s/^/:/
14758s/[ ]*$/:/
14759s/:\$(srcdir):/:/g
14760s/:\${srcdir}:/:/g
14761s/:@srcdir@:/:/g
14762s/^:*//
87326c78 14763s/:*$//
d0ac1c44
SM
14764x
14765s/\(=[ ]*\).*/\1/
14766G
14767s/\n//
87326c78
DD
14768s/^[^=]*=[ ]*$//
14769}'
14770fi
14771
14772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14773fi # test -n "$CONFIG_FILES"
14774
14775# Set up the scripts for CONFIG_HEADERS section.
14776# No need to generate them if there are no CONFIG_HEADERS.
14777# This happens for instance with `./config.status Makefile'.
14778if test -n "$CONFIG_HEADERS"; then
d0ac1c44 14779cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
87326c78
DD
14780BEGIN {
14781_ACEOF
14782
14783# Transform confdefs.h into an awk script `defines.awk', embedded as
14784# here-document in config.status, that substitutes the proper values into
14785# config.h.in to produce config.h.
14786
14787# Create a delimiter string that does not exist in confdefs.h, to ease
14788# handling of long lines.
14789ac_delim='%!_!# '
14790for ac_last_try in false false :; do
d0ac1c44
SM
14791 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14792 if test -z "$ac_tt"; then
87326c78
DD
14793 break
14794 elif $ac_last_try; then
d0ac1c44 14795 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
87326c78
DD
14796 else
14797 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14798 fi
14799done
14800
14801# For the awk script, D is an array of macro values keyed by name,
14802# likewise P contains macro parameters if any. Preserve backslash
14803# newline sequences.
14804
14805ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14806sed -n '
14807s/.\{148\}/&'"$ac_delim"'/g
14808t rset
14809:rset
14810s/^[ ]*#[ ]*define[ ][ ]*/ /
14811t def
14812d
14813:def
14814s/\\$//
14815t bsnl
14816s/["\\]/\\&/g
14817s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14818D["\1"]=" \3"/p
14819s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14820d
14821:bsnl
14822s/["\\]/\\&/g
14823s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14824D["\1"]=" \3\\\\\\n"\\/p
14825t cont
14826s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14827t cont
14828d
14829:cont
14830n
14831s/.\{148\}/&'"$ac_delim"'/g
14832t clear
14833:clear
14834s/\\$//
14835t bsnlc
14836s/["\\]/\\&/g; s/^/"/; s/$/"/p
14837d
14838:bsnlc
14839s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14840b cont
14841' <confdefs.h | sed '
14842s/'"$ac_delim"'/"\\\
14843"/g' >>$CONFIG_STATUS || ac_write_fail=1
14844
14845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14846 for (key in D) D_is_set[key] = 1
14847 FS = "\a"
14848}
14849/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14850 line = \$ 0
14851 split(line, arg, " ")
14852 if (arg[1] == "#") {
14853 defundef = arg[2]
14854 mac1 = arg[3]
14855 } else {
14856 defundef = substr(arg[1], 2)
14857 mac1 = arg[2]
14858 }
14859 split(mac1, mac2, "(") #)
14860 macro = mac2[1]
14861 prefix = substr(line, 1, index(line, defundef) - 1)
14862 if (D_is_set[macro]) {
14863 # Preserve the white space surrounding the "#".
14864 print prefix "define", macro P[macro] D[macro]
14865 next
14866 } else {
14867 # Replace #undef with comments. This is necessary, for example,
14868 # in the case of _POSIX_SOURCE, which is predefined and required
14869 # on some systems where configure will not decide to define it.
14870 if (defundef == "undef") {
14871 print "/*", prefix defundef, macro, "*/"
14872 next
14873 }
14874 }
14875}
14876{ print }
14877_ACAWK
14878_ACEOF
14879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 14880 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
87326c78
DD
14881fi # test -n "$CONFIG_HEADERS"
14882
14883
99d8e879 14884eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
87326c78
DD
14885shift
14886for ac_tag
14887do
14888 case $ac_tag in
14889 :[FHLC]) ac_mode=$ac_tag; continue;;
14890 esac
14891 case $ac_mode$ac_tag in
14892 :[FHL]*:*);;
d0ac1c44 14893 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
87326c78
DD
14894 :[FH]-) ac_tag=-:-;;
14895 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14896 esac
14897 ac_save_IFS=$IFS
14898 IFS=:
14899 set x $ac_tag
14900 IFS=$ac_save_IFS
14901 shift
14902 ac_file=$1
14903 shift
14904
14905 case $ac_mode in
14906 :L) ac_source=$1;;
14907 :[FH])
14908 ac_file_inputs=
14909 for ac_f
14910 do
14911 case $ac_f in
d0ac1c44 14912 -) ac_f="$ac_tmp/stdin";;
87326c78
DD
14913 *) # Look for the file first in the build tree, then in the source tree
14914 # (if the path is not absolute). The absolute path cannot be DOS-style,
14915 # because $ac_f cannot contain `:'.
14916 test -f "$ac_f" ||
14917 case $ac_f in
14918 [\\/$]*) false;;
14919 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14920 esac ||
d0ac1c44 14921 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
87326c78
DD
14922 esac
14923 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14924 as_fn_append ac_file_inputs " '$ac_f'"
14925 done
14926
14927 # Let's still pretend it is `configure' which instantiates (i.e., don't
14928 # use $as_me), people would be surprised to read:
14929 # /* config.h. Generated by config.status. */
14930 configure_input='Generated from '`
14931 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14932 `' by configure.'
14933 if test x"$ac_file" != x-; then
14934 configure_input="$ac_file. $configure_input"
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14936$as_echo "$as_me: creating $ac_file" >&6;}
14937 fi
14938 # Neutralize special characters interpreted by sed in replacement strings.
14939 case $configure_input in #(
14940 *\&* | *\|* | *\\* )
14941 ac_sed_conf_input=`$as_echo "$configure_input" |
14942 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14943 *) ac_sed_conf_input=$configure_input;;
14944 esac
14945
14946 case $ac_tag in
d0ac1c44
SM
14947 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14948 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
87326c78
DD
14949 esac
14950 ;;
14951 esac
14952
14953 ac_dir=`$as_dirname -- "$ac_file" ||
14954$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14955 X"$ac_file" : 'X\(//\)[^/]' \| \
14956 X"$ac_file" : 'X\(//\)$' \| \
14957 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14958$as_echo X"$ac_file" |
14959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14960 s//\1/
14961 q
14962 }
14963 /^X\(\/\/\)[^/].*/{
14964 s//\1/
14965 q
14966 }
14967 /^X\(\/\/\)$/{
14968 s//\1/
14969 q
14970 }
14971 /^X\(\/\).*/{
14972 s//\1/
14973 q
14974 }
14975 s/.*/./; q'`
14976 as_dir="$ac_dir"; as_fn_mkdir_p
14977 ac_builddir=.
14978
14979case "$ac_dir" in
14980.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14981*)
14982 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14983 # A ".." for each directory in $ac_dir_suffix.
14984 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14985 case $ac_top_builddir_sub in
14986 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14987 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14988 esac ;;
14989esac
14990ac_abs_top_builddir=$ac_pwd
14991ac_abs_builddir=$ac_pwd$ac_dir_suffix
14992# for backward compatibility:
14993ac_top_builddir=$ac_top_build_prefix
14994
14995case $srcdir in
14996 .) # We are building in place.
14997 ac_srcdir=.
14998 ac_top_srcdir=$ac_top_builddir_sub
14999 ac_abs_top_srcdir=$ac_pwd ;;
15000 [\\/]* | ?:[\\/]* ) # Absolute name.
15001 ac_srcdir=$srcdir$ac_dir_suffix;
15002 ac_top_srcdir=$srcdir
15003 ac_abs_top_srcdir=$srcdir ;;
15004 *) # Relative name.
15005 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15006 ac_top_srcdir=$ac_top_build_prefix$srcdir
15007 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15008esac
15009ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15010
15011
15012 case $ac_mode in
15013 :F)
15014 #
15015 # CONFIG_FILE
15016 #
15017
15018 case $INSTALL in
15019 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15020 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15021 esac
15022_ACEOF
15023
15024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15025# If the template does not know about datarootdir, expand it.
15026# FIXME: This hack should be removed a few years after 2.60.
15027ac_datarootdir_hack=; ac_datarootdir_seen=
15028ac_sed_dataroot='
15029/datarootdir/ {
15030 p
15031 q
15032}
15033/@datadir@/p
15034/@docdir@/p
15035/@infodir@/p
15036/@localedir@/p
15037/@mandir@/p'
15038case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15039*datarootdir*) ac_datarootdir_seen=yes;;
15040*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15042$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15043_ACEOF
15044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15045 ac_datarootdir_hack='
15046 s&@datadir@&$datadir&g
15047 s&@docdir@&$docdir&g
15048 s&@infodir@&$infodir&g
15049 s&@localedir@&$localedir&g
15050 s&@mandir@&$mandir&g
15051 s&\\\${datarootdir}&$datarootdir&g' ;;
15052esac
15053_ACEOF
15054
15055# Neutralize VPATH when `$srcdir' = `.'.
15056# Shell code in configure.ac might set extrasub.
15057# FIXME: do we really want to maintain this feature?
15058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15059ac_sed_extra="$ac_vpsub
15060$extrasub
15061_ACEOF
15062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15063:t
15064/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15065s|@configure_input@|$ac_sed_conf_input|;t t
15066s&@top_builddir@&$ac_top_builddir_sub&;t t
15067s&@top_build_prefix@&$ac_top_build_prefix&;t t
15068s&@srcdir@&$ac_srcdir&;t t
15069s&@abs_srcdir@&$ac_abs_srcdir&;t t
15070s&@top_srcdir@&$ac_top_srcdir&;t t
15071s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15072s&@builddir@&$ac_builddir&;t t
15073s&@abs_builddir@&$ac_abs_builddir&;t t
15074s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15075s&@INSTALL@&$ac_INSTALL&;t t
15076$ac_datarootdir_hack
15077"
d0ac1c44
SM
15078eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15079 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
87326c78
DD
15080
15081test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
15082 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15083 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15084 "$ac_tmp/out"`; test -z "$ac_out"; } &&
87326c78 15085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 15086which seems to be undefined. Please make sure it is defined" >&5
87326c78 15087$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 15088which seems to be undefined. Please make sure it is defined" >&2;}
87326c78 15089
d0ac1c44 15090 rm -f "$ac_tmp/stdin"
87326c78 15091 case $ac_file in
d0ac1c44
SM
15092 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15093 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
87326c78 15094 esac \
d0ac1c44 15095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
87326c78
DD
15096 ;;
15097 :H)
15098 #
15099 # CONFIG_HEADER
15100 #
15101 if test x"$ac_file" != x-; then
15102 {
15103 $as_echo "/* $configure_input */" \
d0ac1c44
SM
15104 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15105 } >"$ac_tmp/config.h" \
15106 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15107 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
87326c78
DD
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15109$as_echo "$as_me: $ac_file is unchanged" >&6;}
15110 else
15111 rm -f "$ac_file"
d0ac1c44
SM
15112 mv "$ac_tmp/config.h" "$ac_file" \
15113 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
87326c78
DD
15114 fi
15115 else
15116 $as_echo "/* $configure_input */" \
d0ac1c44
SM
15117 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15118 || as_fn_error $? "could not create -" "$LINENO" 5
87326c78
DD
15119 fi
15120 ;;
87326c78 15121
87326c78
DD
15122 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15123$as_echo "$as_me: executing $ac_file commands" >&6;}
15124 ;;
15125 esac
15126
15127
15128 case $ac_file$ac_mode in
db2e4d67 15129 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
6bb11ab3
L
15130 "libtool":C)
15131
15132 # See if we are running on zsh, and set the options which allow our
15133 # commands through without removal of \ escapes.
15134 if test -n "${ZSH_VERSION+set}" ; then
15135 setopt NO_GLOB_SUBST
15136 fi
15137
15138 cfgfile="${ofile}T"
15139 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15140 $RM "$cfgfile"
15141
15142 cat <<_LT_EOF >> "$cfgfile"
15143#! $SHELL
15144
15145# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15146# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15147# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15148# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15149#
15150# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15151# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15152# Written by Gordon Matzigkeit, 1996
15153#
15154# This file is part of GNU Libtool.
15155#
15156# GNU Libtool is free software; you can redistribute it and/or
15157# modify it under the terms of the GNU General Public License as
15158# published by the Free Software Foundation; either version 2 of
15159# the License, or (at your option) any later version.
15160#
15161# As a special exception to the GNU General Public License,
15162# if you distribute this file as part of a program or library that
15163# is built using GNU Libtool, you may include this file under the
15164# same distribution terms that you use for the rest of that program.
15165#
15166# GNU Libtool is distributed in the hope that it will be useful,
15167# but WITHOUT ANY WARRANTY; without even the implied warranty of
15168# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15169# GNU General Public License for more details.
15170#
15171# You should have received a copy of the GNU General Public License
15172# along with GNU Libtool; see the file COPYING. If not, a copy
15173# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15174# obtained by writing to the Free Software Foundation, Inc.,
15175# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15176
15177
15178# The names of the tagged configurations supported by this script.
15179available_tags=""
15180
15181# ### BEGIN LIBTOOL CONFIG
15182
15183# Which release of libtool.m4 was used?
15184macro_version=$macro_version
15185macro_revision=$macro_revision
15186
15187# Whether or not to build shared libraries.
15188build_libtool_libs=$enable_shared
15189
15190# Whether or not to build static libraries.
15191build_old_libs=$enable_static
15192
15193# What type of objects to build.
15194pic_mode=$pic_mode
15195
15196# Whether or not to optimize for fast installation.
15197fast_install=$enable_fast_install
15198
15199# Shell to use when invoking shell scripts.
15200SHELL=$lt_SHELL
15201
15202# An echo program that protects backslashes.
15203ECHO=$lt_ECHO
15204
15205# The host system.
15206host_alias=$host_alias
15207host=$host
15208host_os=$host_os
15209
15210# The build system.
15211build_alias=$build_alias
15212build=$build
15213build_os=$build_os
15214
15215# A sed program that does not truncate output.
15216SED=$lt_SED
15217
15218# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15219Xsed="\$SED -e 1s/^X//"
15220
15221# A grep program that handles long lines.
15222GREP=$lt_GREP
15223
15224# An ERE matcher.
15225EGREP=$lt_EGREP
15226
15227# A literal string matcher.
15228FGREP=$lt_FGREP
15229
15230# A BSD- or MS-compatible name lister.
15231NM=$lt_NM
15232
15233# Whether we need soft or hard links.
15234LN_S=$lt_LN_S
15235
15236# What is the maximum length of a command?
15237max_cmd_len=$max_cmd_len
15238
15239# Object file suffix (normally "o").
15240objext=$ac_objext
15241
15242# Executable file suffix (normally "").
15243exeext=$exeext
15244
15245# whether the shell understands "unset".
15246lt_unset=$lt_unset
15247
15248# turn spaces into newlines.
15249SP2NL=$lt_lt_SP2NL
15250
15251# turn newlines into spaces.
15252NL2SP=$lt_lt_NL2SP
15253
15254# An object symbol dumper.
15255OBJDUMP=$lt_OBJDUMP
15256
15257# Method to check whether dependent libraries are shared objects.
15258deplibs_check_method=$lt_deplibs_check_method
15259
15260# Command to use when deplibs_check_method == "file_magic".
15261file_magic_cmd=$lt_file_magic_cmd
15262
15263# The archiver.
15264AR=$lt_AR
15265AR_FLAGS=$lt_AR_FLAGS
15266
15267# A symbol stripping program.
15268STRIP=$lt_STRIP
15269
15270# Commands used to install an old-style archive.
15271RANLIB=$lt_RANLIB
15272old_postinstall_cmds=$lt_old_postinstall_cmds
15273old_postuninstall_cmds=$lt_old_postuninstall_cmds
15274
15275# Whether to use a lock for old archive extraction.
15276lock_old_archive_extraction=$lock_old_archive_extraction
15277
15278# A C compiler.
15279LTCC=$lt_CC
15280
15281# LTCC compiler flags.
15282LTCFLAGS=$lt_CFLAGS
15283
15284# Take the output of nm and produce a listing of raw symbols and C names.
15285global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15286
15287# Transform the output of nm in a proper C declaration.
15288global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15289
15290# Transform the output of nm in a C name address pair.
15291global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15292
15293# Transform the output of nm in a C name address pair when lib prefix is needed.
15294global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15295
15296# The name of the directory that contains temporary libtool files.
15297objdir=$objdir
15298
15299# Used to examine libraries when file_magic_cmd begins with "file".
15300MAGIC_CMD=$MAGIC_CMD
15301
15302# Must we lock files when doing compilation?
15303need_locks=$lt_need_locks
15304
15305# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15306DSYMUTIL=$lt_DSYMUTIL
15307
15308# Tool to change global to local symbols on Mac OS X.
15309NMEDIT=$lt_NMEDIT
15310
15311# Tool to manipulate fat objects and archives on Mac OS X.
15312LIPO=$lt_LIPO
15313
15314# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15315OTOOL=$lt_OTOOL
15316
15317# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15318OTOOL64=$lt_OTOOL64
15319
15320# Old archive suffix (normally "a").
15321libext=$libext
15322
15323# Shared library suffix (normally ".so").
15324shrext_cmds=$lt_shrext_cmds
15325
15326# The commands to extract the exported symbol list from a shared archive.
15327extract_expsyms_cmds=$lt_extract_expsyms_cmds
15328
15329# Variables whose values should be saved in libtool wrapper scripts and
15330# restored at link time.
15331variables_saved_for_relink=$lt_variables_saved_for_relink
15332
15333# Do we need the "lib" prefix for modules?
15334need_lib_prefix=$need_lib_prefix
15335
15336# Do we need a version for libraries?
15337need_version=$need_version
15338
15339# Library versioning type.
15340version_type=$version_type
15341
15342# Shared library runtime path variable.
15343runpath_var=$runpath_var
15344
15345# Shared library path variable.
15346shlibpath_var=$shlibpath_var
15347
15348# Is shlibpath searched before the hard-coded library search path?
15349shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15350
15351# Format of library name prefix.
15352libname_spec=$lt_libname_spec
15353
15354# List of archive names. First name is the real one, the rest are links.
15355# The last name is the one that the linker finds with -lNAME
15356library_names_spec=$lt_library_names_spec
15357
15358# The coded name of the library, if different from the real name.
15359soname_spec=$lt_soname_spec
15360
15361# Permission mode override for installation of shared libraries.
15362install_override_mode=$lt_install_override_mode
15363
15364# Command to use after installation of a shared archive.
15365postinstall_cmds=$lt_postinstall_cmds
15366
15367# Command to use after uninstallation of a shared archive.
15368postuninstall_cmds=$lt_postuninstall_cmds
15369
15370# Commands used to finish a libtool library installation in a directory.
15371finish_cmds=$lt_finish_cmds
15372
15373# As "finish_cmds", except a single script fragment to be evaled but
15374# not shown.
15375finish_eval=$lt_finish_eval
15376
15377# Whether we should hardcode library paths into libraries.
15378hardcode_into_libs=$hardcode_into_libs
15379
15380# Compile-time system search path for libraries.
15381sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15382
15383# Run-time system search path for libraries.
15384sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15385
15386# Whether dlopen is supported.
15387dlopen_support=$enable_dlopen
15388
15389# Whether dlopen of programs is supported.
15390dlopen_self=$enable_dlopen_self
15391
15392# Whether dlopen of statically linked programs is supported.
15393dlopen_self_static=$enable_dlopen_self_static
15394
15395# Commands to strip libraries.
15396old_striplib=$lt_old_striplib
15397striplib=$lt_striplib
15398
15399
15400# The linker used to build libraries.
15401LD=$lt_LD
15402
15403# How to create reloadable object files.
15404reload_flag=$lt_reload_flag
15405reload_cmds=$lt_reload_cmds
15406
15407# Commands used to build an old-style archive.
15408old_archive_cmds=$lt_old_archive_cmds
15409
15410# A language specific compiler.
15411CC=$lt_compiler
15412
15413# Is the compiler the GNU compiler?
15414with_gcc=$GCC
15415
15416# Compiler flag to turn off builtin functions.
15417no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15418
15419# How to pass a linker flag through the compiler.
15420wl=$lt_lt_prog_compiler_wl
15421
15422# Additional compiler flags for building library objects.
15423pic_flag=$lt_lt_prog_compiler_pic
15424
15425# Compiler flag to prevent dynamic linking.
15426link_static_flag=$lt_lt_prog_compiler_static
15427
15428# Does compiler simultaneously support -c and -o options?
15429compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15430
15431# Whether or not to add -lc for building shared libraries.
15432build_libtool_need_lc=$archive_cmds_need_lc
15433
15434# Whether or not to disallow shared libs when runtime libs are static.
15435allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15436
15437# Compiler flag to allow reflexive dlopens.
15438export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15439
15440# Compiler flag to generate shared objects directly from archives.
15441whole_archive_flag_spec=$lt_whole_archive_flag_spec
15442
15443# Whether the compiler copes with passing no objects directly.
15444compiler_needs_object=$lt_compiler_needs_object
15445
15446# Create an old-style archive from a shared archive.
15447old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15448
15449# Create a temporary old-style archive to link instead of a shared archive.
15450old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15451
15452# Commands used to build a shared archive.
15453archive_cmds=$lt_archive_cmds
15454archive_expsym_cmds=$lt_archive_expsym_cmds
15455
15456# Commands used to build a loadable module if different from building
15457# a shared archive.
15458module_cmds=$lt_module_cmds
15459module_expsym_cmds=$lt_module_expsym_cmds
15460
15461# Whether we are building with GNU ld or not.
15462with_gnu_ld=$lt_with_gnu_ld
15463
15464# Flag that allows shared libraries with undefined symbols to be built.
15465allow_undefined_flag=$lt_allow_undefined_flag
15466
15467# Flag that enforces no undefined symbols.
15468no_undefined_flag=$lt_no_undefined_flag
15469
15470# Flag to hardcode \$libdir into a binary during linking.
15471# This must work even if \$libdir does not exist
15472hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15473
15474# If ld is used when linking, flag to hardcode \$libdir into a binary
15475# during linking. This must work even if \$libdir does not exist.
15476hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15477
15478# Whether we need a single "-rpath" flag with a separated argument.
15479hardcode_libdir_separator=$lt_hardcode_libdir_separator
15480
15481# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15482# DIR into the resulting binary.
15483hardcode_direct=$hardcode_direct
15484
15485# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15486# DIR into the resulting binary and the resulting library dependency is
15487# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15488# library is relocated.
15489hardcode_direct_absolute=$hardcode_direct_absolute
15490
15491# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15492# into the resulting binary.
15493hardcode_minus_L=$hardcode_minus_L
15494
15495# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15496# into the resulting binary.
15497hardcode_shlibpath_var=$hardcode_shlibpath_var
15498
15499# Set to "yes" if building a shared library automatically hardcodes DIR
15500# into the library and all subsequent libraries and executables linked
15501# against it.
15502hardcode_automatic=$hardcode_automatic
15503
15504# Set to yes if linker adds runtime paths of dependent libraries
15505# to runtime path list.
15506inherit_rpath=$inherit_rpath
15507
15508# Whether libtool must link a program against all its dependency libraries.
15509link_all_deplibs=$link_all_deplibs
15510
15511# Fix the shell variable \$srcfile for the compiler.
15512fix_srcfile_path=$lt_fix_srcfile_path
15513
15514# Set to "yes" if exported symbols are required.
15515always_export_symbols=$always_export_symbols
15516
15517# The commands to list exported symbols.
15518export_symbols_cmds=$lt_export_symbols_cmds
15519
15520# Symbols that should not be listed in the preloaded symbols.
15521exclude_expsyms=$lt_exclude_expsyms
15522
15523# Symbols that must always be exported.
15524include_expsyms=$lt_include_expsyms
15525
15526# Commands necessary for linking programs (against libraries) with templates.
15527prelink_cmds=$lt_prelink_cmds
15528
15529# Specify filename containing input files.
15530file_list_spec=$lt_file_list_spec
15531
15532# How to hardcode a shared library path into an executable.
15533hardcode_action=$hardcode_action
15534
15535# ### END LIBTOOL CONFIG
15536
15537_LT_EOF
15538
15539 case $host_os in
15540 aix3*)
15541 cat <<\_LT_EOF >> "$cfgfile"
15542# AIX sometimes has problems with the GCC collect2 program. For some
15543# reason, if we set the COLLECT_NAMES environment variable, the problems
15544# vanish in a puff of smoke.
15545if test "X${COLLECT_NAMES+set}" != Xset; then
15546 COLLECT_NAMES=
15547 export COLLECT_NAMES
15548fi
15549_LT_EOF
15550 ;;
15551 esac
15552
15553
15554ltmain="$ac_aux_dir/ltmain.sh"
15555
15556
15557 # We use sed instead of cat because bash on DJGPP gets confused if
15558 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15559 # text mode, it properly converts lines to CR/LF. This bash problem
15560 # is reportedly fixed, but why not run on old versions too?
15561 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15562 || (rm -f "$cfgfile"; exit 1)
15563
15564 case $xsi_shell in
15565 yes)
15566 cat << \_LT_EOF >> "$cfgfile"
15567
15568# func_dirname file append nondir_replacement
15569# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15570# otherwise set result to NONDIR_REPLACEMENT.
15571func_dirname ()
15572{
15573 case ${1} in
15574 */*) func_dirname_result="${1%/*}${2}" ;;
15575 * ) func_dirname_result="${3}" ;;
15576 esac
15577}
15578
15579# func_basename file
15580func_basename ()
15581{
15582 func_basename_result="${1##*/}"
15583}
15584
15585# func_dirname_and_basename file append nondir_replacement
15586# perform func_basename and func_dirname in a single function
15587# call:
15588# dirname: Compute the dirname of FILE. If nonempty,
15589# add APPEND to the result, otherwise set result
15590# to NONDIR_REPLACEMENT.
15591# value returned in "$func_dirname_result"
15592# basename: Compute filename of FILE.
15593# value retuned in "$func_basename_result"
15594# Implementation must be kept synchronized with func_dirname
15595# and func_basename. For efficiency, we do not delegate to
15596# those functions but instead duplicate the functionality here.
15597func_dirname_and_basename ()
15598{
15599 case ${1} in
15600 */*) func_dirname_result="${1%/*}${2}" ;;
15601 * ) func_dirname_result="${3}" ;;
15602 esac
15603 func_basename_result="${1##*/}"
15604}
15605
15606# func_stripname prefix suffix name
15607# strip PREFIX and SUFFIX off of NAME.
15608# PREFIX and SUFFIX must not contain globbing or regex special
15609# characters, hashes, percent signs, but SUFFIX may contain a leading
15610# dot (in which case that matches only a dot).
15611func_stripname ()
15612{
15613 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15614 # positional parameters, so assign one to ordinary parameter first.
15615 func_stripname_result=${3}
15616 func_stripname_result=${func_stripname_result#"${1}"}
15617 func_stripname_result=${func_stripname_result%"${2}"}
15618}
15619
15620# func_opt_split
15621func_opt_split ()
15622{
15623 func_opt_split_opt=${1%%=*}
15624 func_opt_split_arg=${1#*=}
15625}
15626
15627# func_lo2o object
15628func_lo2o ()
15629{
15630 case ${1} in
15631 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15632 *) func_lo2o_result=${1} ;;
15633 esac
15634}
15635
15636# func_xform libobj-or-source
15637func_xform ()
15638{
15639 func_xform_result=${1%.*}.lo
15640}
15641
15642# func_arith arithmetic-term...
15643func_arith ()
15644{
15645 func_arith_result=$(( $* ))
15646}
15647
15648# func_len string
15649# STRING may not start with a hyphen.
15650func_len ()
15651{
15652 func_len_result=${#1}
15653}
15654
15655_LT_EOF
15656 ;;
15657 *) # Bourne compatible functions.
15658 cat << \_LT_EOF >> "$cfgfile"
15659
15660# func_dirname file append nondir_replacement
15661# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15662# otherwise set result to NONDIR_REPLACEMENT.
15663func_dirname ()
15664{
15665 # Extract subdirectory from the argument.
15666 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15667 if test "X$func_dirname_result" = "X${1}"; then
15668 func_dirname_result="${3}"
15669 else
15670 func_dirname_result="$func_dirname_result${2}"
15671 fi
15672}
15673
15674# func_basename file
15675func_basename ()
15676{
15677 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15678}
15679
15680
15681# func_stripname prefix suffix name
15682# strip PREFIX and SUFFIX off of NAME.
15683# PREFIX and SUFFIX must not contain globbing or regex special
15684# characters, hashes, percent signs, but SUFFIX may contain a leading
15685# dot (in which case that matches only a dot).
15686# func_strip_suffix prefix name
15687func_stripname ()
15688{
15689 case ${2} in
15690 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15691 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15692 esac
15693}
15694
15695# sed scripts:
15696my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15697my_sed_long_arg='1s/^-[^=]*=//'
15698
15699# func_opt_split
15700func_opt_split ()
15701{
15702 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15703 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15704}
15705
15706# func_lo2o object
15707func_lo2o ()
15708{
15709 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15710}
15711
15712# func_xform libobj-or-source
15713func_xform ()
15714{
15715 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15716}
15717
15718# func_arith arithmetic-term...
15719func_arith ()
15720{
15721 func_arith_result=`expr "$@"`
15722}
15723
15724# func_len string
15725# STRING may not start with a hyphen.
15726func_len ()
15727{
15728 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15729}
15730
15731_LT_EOF
15732esac
15733
15734case $lt_shell_append in
15735 yes)
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+=\$2"
15743}
15744_LT_EOF
15745 ;;
15746 *)
15747 cat << \_LT_EOF >> "$cfgfile"
15748
15749# func_append var value
15750# Append VALUE to the end of shell variable VAR.
15751func_append ()
15752{
15753 eval "$1=\$$1\$2"
15754}
15755
15756_LT_EOF
15757 ;;
15758 esac
15759
15760
15761 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15762 || (rm -f "$cfgfile"; exit 1)
15763
15764 mv -f "$cfgfile" "$ofile" ||
15765 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15766 chmod +x "$ofile"
15767
15768 ;;
87326c78
DD
15769 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
15770 rm -f Makesim1.tmp Makesim2.tmp Makefile
15771 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
15772 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
15773 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
15774 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
15775 <Makefile.sim >Makefile
15776 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
15777 ;;
15778 "stamp-h":C) echo > stamp-h ;;
15779
15780 esac
15781done # for ac_tag
15782
15783
15784as_fn_exit 0
15785_ACEOF
15786ac_clean_files=$ac_clean_files_save
15787
15788test $ac_write_fail = 0 ||
d0ac1c44 15789 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
87326c78
DD
15790
15791
15792# configure is writing to config.log, and then calls config.status.
15793# config.status does its own redirection, appending to config.log.
15794# Unfortunately, on DOS this fails, as config.log is still kept open
15795# by configure, so config.status won't be able to write to it; its
15796# output is simply discarded. So we exec the FD to /dev/null,
15797# effectively closing config.log, so it can be properly (re)opened and
15798# appended to by config.status. When coming back to configure, we
15799# need to make the FD available again.
15800if test "$no_create" != yes; then
15801 ac_cs_success=:
15802 ac_config_status_args=
15803 test "$silent" = yes &&
15804 ac_config_status_args="$ac_config_status_args --quiet"
15805 exec 5>/dev/null
15806 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15807 exec 5>>config.log
15808 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15809 # would make configure fail if this is the last instruction.
d0ac1c44 15810 $ac_cs_success || as_fn_exit 1
87326c78
DD
15811fi
15812if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15814$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15815fi
15816
15817