]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/bfin/configure
sim: common: split up acinclude.m4 into individual m4 files
[thirdparty/binutils-gdb.git] / sim / bfin / configure
CommitLineData
ef016f83
MF
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.
ef016f83 7#
ef016f83
MF
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=
ef016f83
MF
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;}
ef016f83
MF
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"
ef016f83
MF
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"
ef016f83
MF
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
ef016f83
MF
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"
ef016f83
MF
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
ef016f83
MF
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# ----------------------------------------
ef016f83
MF
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.
ef016f83
MF
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
ef016f83 422 fi
d0ac1c44 423 $as_echo "$as_me: error: $2" >&2
ef016f83
MF
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
ef016f83
MF
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'.
ef016f83 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 536 as_ln_s='cp -pR'
ef016f83
MF
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
d0ac1c44 540 as_ln_s='cp -pR'
ef016f83
MF
541 fi
542else
d0ac1c44 543 as_ln_s='cp -pR'
ef016f83
MF
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
ef016f83
MF
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
ef016f83 566
d0ac1c44
SM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
ef016f83
MF
569
570# Name of the host.
d0ac1c44 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
ef016f83
MF
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
760b3e8b
MF
634sim_reserved_bits
635sim_scache
636sim_float
637sim_bitsize
ef016f83
MF
638cgen_breaks
639SDL_LIBS
640SDL_CFLAGS
5798d69f
SM
641PKG_CONFIG_LIBDIR
642PKG_CONFIG_PATH
643PKG_CONFIG
ef016f83
MF
644REPORT_BUGS_TEXI
645REPORT_BUGS_TO
646PKGVERSION
ef016f83 647MAINT
31e6ad7d
MF
648MAINTAINER_MODE_FALSE
649MAINTAINER_MODE_TRUE
6bb11ab3
L
650lt_cv_dlopen_libs
651OTOOL64
652OTOOL
653LIPO
654NMEDIT
655DSYMUTIL
656AWK
657STRIP
658OBJDUMP
659LN_S
660NM
661ac_ct_DUMPBIN
662DUMPBIN
663LD
664FGREP
665SED
666LIBTOOL
667PLUGINS_FALSE
668PLUGINS_TRUE
aadc9410
MF
669zlibinc
670zlibdir
ef016f83
MF
671CATOBJEXT
672GENCAT
673INSTOBJEXT
674DATADIRNAME
675CATALOGS
676POSUB
677GMSGFMT
678XGETTEXT
679INCINTL
680LIBINTL_DEP
681LIBINTL
682USE_NLS
db2e4d67
MF
683GMAKE_FALSE
684GMAKE_TRUE
685MAKE
686CCDEPMODE
687DEPDIR
688am__leading_dot
5f3ef9d0 689PACKAGE
46f900c0 690C_DIALECT
ef016f83
MF
691RANLIB
692AR
ef016f83
MF
693CC_FOR_BUILD
694INSTALL_DATA
695INSTALL_SCRIPT
696INSTALL_PROGRAM
2232061b
MF
697EGREP
698GREP
699CPP
ef016f83
MF
700target_os
701target_vendor
702target_cpu
703target
704host_os
705host_vendor
706host_cpu
707host
708build_os
709build_vendor
710build_cpu
711build
6ffe910a
MF
712OBJEXT
713EXEEXT
714ac_ct_CC
715CPPFLAGS
716LDFLAGS
717CFLAGS
718CC
ef016f83
MF
719target_alias
720host_alias
721build_alias
722LIBS
723ECHO_T
724ECHO_N
725ECHO_C
726DEFS
727mandir
728localedir
729libdir
730psdir
731pdfdir
732dvidir
733htmldir
734infodir
735docdir
736oldincludedir
737includedir
738localstatedir
739sharedstatedir
740sysconfdir
741datadir
742datarootdir
743libexecdir
744sbindir
745bindir
746program_transform_name
747prefix
748exec_prefix
749PACKAGE_URL
750PACKAGE_BUGREPORT
751PACKAGE_STRING
752PACKAGE_VERSION
753PACKAGE_TARNAME
754PACKAGE_NAME
755PATH_SEPARATOR
136da8cd
MF
756SHELL
757WERROR_CFLAGS
758WARN_CFLAGS
136da8cd
MF
759sim_inline
760sim_hw
761sim_hw_objs
762sim_hw_cflags
136da8cd 763sim_endian
760b3e8b 764sim_default_model
136da8cd 765sim_alignment'
ef016f83
MF
766ac_subst_files=''
767ac_user_opts='
768enable_option_checking
aadc9410 769with_system_zlib
6bb11ab3
L
770enable_plugins
771enable_shared
772enable_static
773with_pic
774enable_fast_install
775with_gnu_ld
776enable_libtool_lock
ef016f83 777enable_maintainer_mode
ef016f83
MF
778enable_sim_debug
779enable_sim_stdio
780enable_sim_trace
781enable_sim_profile
35656e95 782enable_sim_assert
16f7876d 783enable_sim_environment
347fe5bb 784enable_sim_inline
ef016f83
MF
785with_pkgversion
786with_bugurl
787enable_sim_endian
788enable_sim_alignment
ef016f83 789enable_sim_default_model
2232061b 790enable_werror
ef016f83
MF
791enable_build_warnings
792enable_sim_build_warnings
793enable_sim_hardware
794'
795 ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801LIBS
802CPPFLAGS
5798d69f
SM
803CPP
804PKG_CONFIG
805PKG_CONFIG_PATH
806PKG_CONFIG_LIBDIR
807SDL_CFLAGS
808SDL_LIBS'
ef016f83
MF
809
810
811# Initialize some variables set by options.
812ac_init_help=
813ac_init_version=false
814ac_unrecognized_opts=
815ac_unrecognized_sep=
816# The variables have the same names as the options, with
817# dashes changed to underlines.
818cache_file=/dev/null
819exec_prefix=NONE
820no_create=
821no_recursion=
822prefix=NONE
823program_prefix=NONE
824program_suffix=NONE
825program_transform_name=s,x,x,
826silent=
827site=
828srcdir=
829verbose=
830x_includes=NONE
831x_libraries=NONE
832
833# Installation directory options.
834# These are left unexpanded so users can "make install exec_prefix=/foo"
835# and all the variables that are supposed to be based on exec_prefix
836# by default will actually change.
837# Use braces instead of parens because sh, perl, etc. also accept them.
838# (The list follows the same order as the GNU Coding Standards.)
839bindir='${exec_prefix}/bin'
840sbindir='${exec_prefix}/sbin'
841libexecdir='${exec_prefix}/libexec'
842datarootdir='${prefix}/share'
843datadir='${datarootdir}'
844sysconfdir='${prefix}/etc'
845sharedstatedir='${prefix}/com'
846localstatedir='${prefix}/var'
847includedir='${prefix}/include'
848oldincludedir='/usr/include'
849docdir='${datarootdir}/doc/${PACKAGE}'
850infodir='${datarootdir}/info'
851htmldir='${docdir}'
852dvidir='${docdir}'
853pdfdir='${docdir}'
854psdir='${docdir}'
855libdir='${exec_prefix}/lib'
856localedir='${datarootdir}/locale'
857mandir='${datarootdir}/man'
858
859ac_prev=
860ac_dashdash=
861for ac_option
862do
863 # If the previous option needs an argument, assign it.
864 if test -n "$ac_prev"; then
865 eval $ac_prev=\$ac_option
866 ac_prev=
867 continue
868 fi
869
870 case $ac_option in
d0ac1c44
SM
871 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872 *=) ac_optarg= ;;
873 *) ac_optarg=yes ;;
ef016f83
MF
874 esac
875
876 # Accept the important Cygnus configure options, so we can diagnose typos.
877
878 case $ac_dashdash$ac_option in
879 --)
880 ac_dashdash=yes ;;
881
882 -bindir | --bindir | --bindi | --bind | --bin | --bi)
883 ac_prev=bindir ;;
884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885 bindir=$ac_optarg ;;
886
887 -build | --build | --buil | --bui | --bu)
888 ac_prev=build_alias ;;
889 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890 build_alias=$ac_optarg ;;
891
892 -cache-file | --cache-file | --cache-fil | --cache-fi \
893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894 ac_prev=cache_file ;;
895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897 cache_file=$ac_optarg ;;
898
899 --config-cache | -C)
900 cache_file=config.cache ;;
901
902 -datadir | --datadir | --datadi | --datad)
903 ac_prev=datadir ;;
904 -datadir=* | --datadir=* | --datadi=* | --datad=*)
905 datadir=$ac_optarg ;;
906
907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908 | --dataroo | --dataro | --datar)
909 ac_prev=datarootdir ;;
910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912 datarootdir=$ac_optarg ;;
913
914 -disable-* | --disable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 918 as_fn_error $? "invalid feature name: $ac_useropt"
ef016f83
MF
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923"enable_$ac_useropt"
924"*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=no ;;
929
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
934
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
939
940 -enable-* | --enable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 944 as_fn_error $? "invalid feature name: $ac_useropt"
ef016f83
MF
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949"enable_$ac_useropt"
950"*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=\$ac_optarg ;;
955
956 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958 | --exec | --exe | --ex)
959 ac_prev=exec_prefix ;;
960 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962 | --exec=* | --exe=* | --ex=*)
963 exec_prefix=$ac_optarg ;;
964
965 -gas | --gas | --ga | --g)
966 # Obsolete; use --with-gas.
967 with_gas=yes ;;
968
969 -help | --help | --hel | --he | -h)
970 ac_init_help=long ;;
971 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972 ac_init_help=recursive ;;
973 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974 ac_init_help=short ;;
975
976 -host | --host | --hos | --ho)
977 ac_prev=host_alias ;;
978 -host=* | --host=* | --hos=* | --ho=*)
979 host_alias=$ac_optarg ;;
980
981 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982 ac_prev=htmldir ;;
983 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984 | --ht=*)
985 htmldir=$ac_optarg ;;
986
987 -includedir | --includedir | --includedi | --included | --include \
988 | --includ | --inclu | --incl | --inc)
989 ac_prev=includedir ;;
990 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991 | --includ=* | --inclu=* | --incl=* | --inc=*)
992 includedir=$ac_optarg ;;
993
994 -infodir | --infodir | --infodi | --infod | --info | --inf)
995 ac_prev=infodir ;;
996 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997 infodir=$ac_optarg ;;
998
999 -libdir | --libdir | --libdi | --libd)
1000 ac_prev=libdir ;;
1001 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002 libdir=$ac_optarg ;;
1003
1004 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005 | --libexe | --libex | --libe)
1006 ac_prev=libexecdir ;;
1007 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008 | --libexe=* | --libex=* | --libe=*)
1009 libexecdir=$ac_optarg ;;
1010
1011 -localedir | --localedir | --localedi | --localed | --locale)
1012 ac_prev=localedir ;;
1013 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014 localedir=$ac_optarg ;;
1015
1016 -localstatedir | --localstatedir | --localstatedi | --localstated \
1017 | --localstate | --localstat | --localsta | --localst | --locals)
1018 ac_prev=localstatedir ;;
1019 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1020 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1021 localstatedir=$ac_optarg ;;
1022
1023 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024 ac_prev=mandir ;;
1025 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026 mandir=$ac_optarg ;;
1027
1028 -nfp | --nfp | --nf)
1029 # Obsolete; use --without-fp.
1030 with_fp=no ;;
1031
1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033 | --no-cr | --no-c | -n)
1034 no_create=yes ;;
1035
1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038 no_recursion=yes ;;
1039
1040 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042 | --oldin | --oldi | --old | --ol | --o)
1043 ac_prev=oldincludedir ;;
1044 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1047 oldincludedir=$ac_optarg ;;
1048
1049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050 ac_prev=prefix ;;
1051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052 prefix=$ac_optarg ;;
1053
1054 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055 | --program-pre | --program-pr | --program-p)
1056 ac_prev=program_prefix ;;
1057 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1059 program_prefix=$ac_optarg ;;
1060
1061 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062 | --program-suf | --program-su | --program-s)
1063 ac_prev=program_suffix ;;
1064 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1066 program_suffix=$ac_optarg ;;
1067
1068 -program-transform-name | --program-transform-name \
1069 | --program-transform-nam | --program-transform-na \
1070 | --program-transform-n | --program-transform- \
1071 | --program-transform | --program-transfor \
1072 | --program-transfo | --program-transf \
1073 | --program-trans | --program-tran \
1074 | --progr-tra | --program-tr | --program-t)
1075 ac_prev=program_transform_name ;;
1076 -program-transform-name=* | --program-transform-name=* \
1077 | --program-transform-nam=* | --program-transform-na=* \
1078 | --program-transform-n=* | --program-transform-=* \
1079 | --program-transform=* | --program-transfor=* \
1080 | --program-transfo=* | --program-transf=* \
1081 | --program-trans=* | --program-tran=* \
1082 | --progr-tra=* | --program-tr=* | --program-t=*)
1083 program_transform_name=$ac_optarg ;;
1084
1085 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086 ac_prev=pdfdir ;;
1087 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088 pdfdir=$ac_optarg ;;
1089
1090 -psdir | --psdir | --psdi | --psd | --ps)
1091 ac_prev=psdir ;;
1092 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093 psdir=$ac_optarg ;;
1094
1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096 | -silent | --silent | --silen | --sile | --sil)
1097 silent=yes ;;
1098
1099 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100 ac_prev=sbindir ;;
1101 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102 | --sbi=* | --sb=*)
1103 sbindir=$ac_optarg ;;
1104
1105 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107 | --sharedst | --shareds | --shared | --share | --shar \
1108 | --sha | --sh)
1109 ac_prev=sharedstatedir ;;
1110 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113 | --sha=* | --sh=*)
1114 sharedstatedir=$ac_optarg ;;
1115
1116 -site | --site | --sit)
1117 ac_prev=site ;;
1118 -site=* | --site=* | --sit=*)
1119 site=$ac_optarg ;;
1120
1121 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122 ac_prev=srcdir ;;
1123 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124 srcdir=$ac_optarg ;;
1125
1126 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127 | --syscon | --sysco | --sysc | --sys | --sy)
1128 ac_prev=sysconfdir ;;
1129 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1131 sysconfdir=$ac_optarg ;;
1132
1133 -target | --target | --targe | --targ | --tar | --ta | --t)
1134 ac_prev=target_alias ;;
1135 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1136 target_alias=$ac_optarg ;;
1137
1138 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139 verbose=yes ;;
1140
1141 -version | --version | --versio | --versi | --vers | -V)
1142 ac_init_version=: ;;
1143
1144 -with-* | --with-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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"
ef016f83
MF
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--with-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1157 esac
1158 eval with_$ac_useropt=\$ac_optarg ;;
1159
1160 -without-* | --without-*)
1161 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1164 as_fn_error $? "invalid package name: $ac_useropt"
ef016f83
MF
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1168 *"
1169"with_$ac_useropt"
1170"*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval with_$ac_useropt=no ;;
1175
1176 --x)
1177 # Obsolete; use --with-x.
1178 with_x=yes ;;
1179
1180 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181 | --x-incl | --x-inc | --x-in | --x-i)
1182 ac_prev=x_includes ;;
1183 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1185 x_includes=$ac_optarg ;;
1186
1187 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189 ac_prev=x_libraries ;;
1190 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1192 x_libraries=$ac_optarg ;;
1193
d0ac1c44
SM
1194 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1195Try \`$0 --help' for more information"
ef016f83
MF
1196 ;;
1197
1198 *=*)
1199 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200 # Reject names that are not valid shell variable names.
1201 case $ac_envvar in #(
1202 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1203 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
ef016f83
MF
1204 esac
1205 eval $ac_envvar=\$ac_optarg
1206 export $ac_envvar ;;
1207
1208 *)
1209 # FIXME: should be removed in autoconf 3.0.
1210 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1211 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1213 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
ef016f83
MF
1214 ;;
1215
1216 esac
1217done
1218
1219if test -n "$ac_prev"; then
1220 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1221 as_fn_error $? "missing argument to $ac_option"
ef016f83
MF
1222fi
1223
1224if test -n "$ac_unrecognized_opts"; then
1225 case $enable_option_checking in
1226 no) ;;
d0ac1c44 1227 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
ef016f83
MF
1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229 esac
1230fi
1231
1232# Check all directory arguments for consistency.
1233for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234 datadir sysconfdir sharedstatedir localstatedir includedir \
1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236 libdir localedir mandir
1237do
1238 eval ac_val=\$$ac_var
1239 # Remove trailing slashes.
1240 case $ac_val in
1241 */ )
1242 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243 eval $ac_var=\$ac_val;;
1244 esac
1245 # Be sure to have absolute directory names.
1246 case $ac_val in
1247 [\\/$]* | ?:[\\/]* ) continue;;
1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249 esac
d0ac1c44 1250 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
ef016f83
MF
1251done
1252
1253# There might be people who depend on the old broken behavior: `$host'
1254# used to hold the argument of --host etc.
1255# FIXME: To remove some day.
1256build=$build_alias
1257host=$host_alias
1258target=$target_alias
1259
1260# FIXME: To remove some day.
1261if test "x$host_alias" != x; then
1262 if test "x$build_alias" = x; then
1263 cross_compiling=maybe
ef016f83
MF
1264 elif test "x$build_alias" != "x$host_alias"; then
1265 cross_compiling=yes
1266 fi
1267fi
1268
1269ac_tool_prefix=
1270test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
1272test "$silent" = yes && exec 6>/dev/null
1273
1274
1275ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276ac_ls_di=`ls -di .` &&
1277ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1278 as_fn_error $? "working directory cannot be determined"
ef016f83 1279test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1280 as_fn_error $? "pwd does not report name of working directory"
ef016f83
MF
1281
1282
1283# Find the source files, if location was not specified.
1284if test -z "$srcdir"; then
1285 ac_srcdir_defaulted=yes
1286 # Try the directory containing this script, then the parent directory.
1287 ac_confdir=`$as_dirname -- "$as_myself" ||
1288$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289 X"$as_myself" : 'X\(//\)[^/]' \| \
1290 X"$as_myself" : 'X\(//\)$' \| \
1291 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292$as_echo X"$as_myself" |
1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)[^/].*/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\).*/{
1306 s//\1/
1307 q
1308 }
1309 s/.*/./; q'`
1310 srcdir=$ac_confdir
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 srcdir=..
1313 fi
1314else
1315 ac_srcdir_defaulted=no
1316fi
1317if test ! -r "$srcdir/$ac_unique_file"; then
1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1319 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
ef016f83
MF
1320fi
1321ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322ac_abs_confdir=`(
d0ac1c44 1323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
ef016f83
MF
1324 pwd)`
1325# When building in place, set srcdir=.
1326if test "$ac_abs_confdir" = "$ac_pwd"; then
1327 srcdir=.
1328fi
1329# Remove unnecessary trailing slashes from srcdir.
1330# Double slashes in file names in object file debugging info
1331# mess up M-x gdb in Emacs.
1332case $srcdir in
1333*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334esac
1335for ac_var in $ac_precious_vars; do
1336 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_env_${ac_var}_value=\$${ac_var}
1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340done
1341
1342#
1343# Report the --help message.
1344#
1345if test "$ac_init_help" = "long"; then
1346 # Omit some internal or obsolete options to make the list less imposing.
1347 # This message is too long to be a string in the A/UX 3.1 sh.
1348 cat <<_ACEOF
1349\`configure' configures this package to adapt to many kinds of systems.
1350
1351Usage: $0 [OPTION]... [VAR=VALUE]...
1352
1353To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354VAR=VALUE. See below for descriptions of some of the useful variables.
1355
1356Defaults for the options are specified in brackets.
1357
1358Configuration:
1359 -h, --help display this help and exit
1360 --help=short display options specific to this package
1361 --help=recursive display the short help of all the included packages
1362 -V, --version display version information and exit
d0ac1c44 1363 -q, --quiet, --silent do not print \`checking ...' messages
ef016f83
MF
1364 --cache-file=FILE cache test results in FILE [disabled]
1365 -C, --config-cache alias for \`--cache-file=config.cache'
1366 -n, --no-create do not create output files
1367 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368
1369Installation directories:
1370 --prefix=PREFIX install architecture-independent files in PREFIX
1371 [$ac_default_prefix]
1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1373 [PREFIX]
1374
1375By default, \`make install' will install all the files in
1376\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1377an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378for instance \`--prefix=\$HOME'.
1379
1380For better control, use the options below.
1381
1382Fine tuning of the installation directories:
1383 --bindir=DIR user executables [EPREFIX/bin]
1384 --sbindir=DIR system admin executables [EPREFIX/sbin]
1385 --libexecdir=DIR program executables [EPREFIX/libexec]
1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
1402_ACEOF
1403
1404 cat <<\_ACEOF
1405
1406Program names:
1407 --program-prefix=PREFIX prepend PREFIX to installed program names
1408 --program-suffix=SUFFIX append SUFFIX to installed program names
1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1410
1411System types:
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 --target=TARGET configure for building compilers for TARGET [HOST]
1415_ACEOF
1416fi
1417
1418if test -n "$ac_init_help"; then
1419
1420 cat <<\_ACEOF
1421
1422Optional Features:
1423 --disable-option-checking ignore unrecognized --enable/--with options
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
faa743bb 1426 --enable-plugins Enable support for plugins
6bb11ab3
L
1427 --enable-shared[=PKGS] build shared libraries [default=yes]
1428 --enable-static[=PKGS] build static libraries [default=yes]
1429 --enable-fast-install[=PKGS]
1430 optimize for fast installation [default=yes]
1431 --disable-libtool-lock avoid locking (might break parallel builds)
d0ac1c44
SM
1432 --enable-maintainer-mode
1433 enable make rules and dependencies not useful (and
1434 sometimes confusing) to the casual installer
8d0978fb
MF
1435 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1436 itself)
1437 --enable-sim-stdio Specify whether to use stdio for console
1438 input/output
1439 --enable-sim-trace=opts Enable tracing of simulated programs
1440 --enable-sim-profile=opts
1441 Enable profiling flags
35656e95 1442 --enable-sim-assert Specify whether to perform random assertions
16f7876d
MF
1443 --enable-sim-environment=environment
1444 Specify mixed, user, virtual or operating
1445 environment
347fe5bb
MF
1446 --enable-sim-inline=inlines
1447 Specify which functions should be inlined
8d0978fb
MF
1448 --enable-sim-endian=endian
1449 Specify target byte endian orientation
1450 --enable-sim-alignment=align
1451 Specify strict, nonstrict or forced alignment of
1452 memory accesses
8d0978fb
MF
1453 --enable-sim-default-model=model
1454 Specify default model to simulate
2232061b
MF
1455 --enable-werror treat compile warnings as errors
1456 --enable-build-warnings enable build-time compiler warnings if gcc is used
1457 --enable-sim-build-warnings
1458 enable SIM specific build-time compiler warnings if
1459 gcc is used
1517bd27
MF
1460 --enable-sim-hardware=LIST
1461 Specify the hardware to be included in the build.
ef016f83
MF
1462
1463Optional Packages:
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
aadc9410 1466 --with-system-zlib use installed libz
6bb11ab3
L
1467 --with-pic try to use only PIC/non-PIC objects [default=use
1468 both]
1469 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
bf12d44e 1470 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
ef016f83
MF
1471 --with-bugurl=URL Direct users to URL to report a bug
1472
1473Some influential environment variables:
1474 CC C compiler command
1475 CFLAGS C compiler flags
1476 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1477 nonstandard directory <lib dir>
1478 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1479 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
ef016f83
MF
1480 you have headers in a nonstandard directory <include dir>
1481 CPP C preprocessor
5798d69f
SM
1482 PKG_CONFIG path to pkg-config utility
1483 PKG_CONFIG_PATH
1484 directories to add to pkg-config's search path
1485 PKG_CONFIG_LIBDIR
1486 path overriding pkg-config's built-in search path
1487 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1488 SDL_LIBS linker flags for SDL, overriding pkg-config
ef016f83
MF
1489
1490Use these variables to override the choices made by `configure' or to help
1491it to find libraries and programs with nonstandard names/locations.
1492
1493Report bugs to the package provider.
1494_ACEOF
1495ac_status=$?
1496fi
1497
1498if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501 test -d "$ac_dir" ||
1502 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503 continue
1504 ac_builddir=.
1505
1506case "$ac_dir" in
1507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508*)
1509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516esac
1517ac_abs_top_builddir=$ac_pwd
1518ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519# for backward compatibility:
1520ac_top_builddir=$ac_top_build_prefix
1521
1522case $srcdir in
1523 .) # We are building in place.
1524 ac_srcdir=.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535esac
1536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1546 else
1547 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1550 done
1551fi
1552
1553test -n "$ac_init_help" && exit $ac_status
1554if $ac_init_version; then
1555 cat <<\_ACEOF
1556configure
d0ac1c44 1557generated by GNU Autoconf 2.69
ef016f83 1558
d0ac1c44 1559Copyright (C) 2012 Free Software Foundation, Inc.
ef016f83
MF
1560This configure script is free software; the Free Software Foundation
1561gives unlimited permission to copy, distribute and modify it.
1562_ACEOF
1563 exit
1564fi
1565
1566## ------------------------ ##
1567## Autoconf initialization. ##
1568## ------------------------ ##
1569
1570# ac_fn_c_try_compile LINENO
1571# --------------------------
1572# Try to compile conftest.$ac_ext, and return whether this succeeded.
1573ac_fn_c_try_compile ()
1574{
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext
1577 if { { ac_try="$ac_compile"
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_compile") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1590 fi
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest.$ac_objext; 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
ef016f83
MF
1605
1606} # ac_fn_c_try_compile
1607
1608# ac_fn_c_try_cpp LINENO
1609# ----------------------
1610# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1611ac_fn_c_try_cpp ()
1612{
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 if { { ac_try="$ac_cpp conftest.$ac_ext"
1615case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618esac
1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620$as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1627 fi
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1629 test $ac_status = 0; } > conftest.i && {
ef016f83
MF
1630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 }; then :
1633 ac_retval=0
1634else
1635 $as_echo "$as_me: failed program was:" >&5
1636sed 's/^/| /' conftest.$ac_ext >&5
1637
1638 ac_retval=1
1639fi
d0ac1c44
SM
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
ef016f83
MF
1642
1643} # ac_fn_c_try_cpp
1644
1645# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1646# -------------------------------------------------------
1647# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1648# the include files in INCLUDES and setting the cache variable VAR
1649# accordingly.
1650ac_fn_c_check_header_mongrel ()
1651{
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1653 if eval \${$3+:} false; then :
ef016f83
MF
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1656if eval \${$3+:} false; then :
ef016f83
MF
1657 $as_echo_n "(cached) " >&6
1658fi
1659eval ac_res=\$$3
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661$as_echo "$ac_res" >&6; }
1662else
1663 # Is the header compilable?
1664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1665$as_echo_n "checking $2 usability... " >&6; }
1666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667/* end confdefs.h. */
1668$4
1669#include <$2>
1670_ACEOF
1671if ac_fn_c_try_compile "$LINENO"; then :
1672 ac_header_compiler=yes
1673else
1674 ac_header_compiler=no
1675fi
1676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1678$as_echo "$ac_header_compiler" >&6; }
1679
1680# Is the header present?
1681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1682$as_echo_n "checking $2 presence... " >&6; }
1683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684/* end confdefs.h. */
1685#include <$2>
1686_ACEOF
1687if ac_fn_c_try_cpp "$LINENO"; then :
1688 ac_header_preproc=yes
1689else
1690 ac_header_preproc=no
1691fi
d0ac1c44 1692rm -f conftest.err conftest.i conftest.$ac_ext
ef016f83
MF
1693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1694$as_echo "$ac_header_preproc" >&6; }
1695
1696# So? What about this header?
1697case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1698 yes:no: )
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1700$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1702$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1703 ;;
1704 no:yes:* )
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1706$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1708$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1710$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1712$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1714$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1715 ;;
1716esac
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1719if eval \${$3+:} false; then :
ef016f83
MF
1720 $as_echo_n "(cached) " >&6
1721else
1722 eval "$3=\$ac_header_compiler"
1723fi
1724eval ac_res=\$$3
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726$as_echo "$ac_res" >&6; }
1727fi
d0ac1c44 1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
ef016f83
MF
1729
1730} # ac_fn_c_check_header_mongrel
1731
1732# ac_fn_c_try_run LINENO
1733# ----------------------
1734# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1735# that executables *can* be run.
1736ac_fn_c_try_run ()
1737{
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_link"
1740case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743esac
1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745$as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_link") 2>&5
1747 ac_status=$?
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1750 { { case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753esac
1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755$as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_try") 2>&5
1757 ac_status=$?
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; }; }; then :
1760 ac_retval=0
1761else
1762 $as_echo "$as_me: program exited with status $ac_status" >&5
1763 $as_echo "$as_me: failed program was:" >&5
1764sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=$ac_status
1767fi
1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status $ac_retval
ef016f83
MF
1771
1772} # ac_fn_c_try_run
1773
1774# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1775# -------------------------------------------------------
1776# Tests whether HEADER exists and can be compiled using the include files in
1777# INCLUDES, setting the cache variable VAR accordingly.
1778ac_fn_c_check_header_compile ()
1779{
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1783if eval \${$3+:} false; then :
ef016f83
MF
1784 $as_echo_n "(cached) " >&6
1785else
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787/* end confdefs.h. */
1788$4
1789#include <$2>
1790_ACEOF
1791if ac_fn_c_try_compile "$LINENO"; then :
1792 eval "$3=yes"
1793else
1794 eval "$3=no"
1795fi
1796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797fi
1798eval ac_res=\$$3
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800$as_echo "$ac_res" >&6; }
d0ac1c44 1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
ef016f83
MF
1802
1803} # ac_fn_c_check_header_compile
1804
1805# ac_fn_c_try_link LINENO
1806# -----------------------
1807# Try to link conftest.$ac_ext, and return whether this succeeded.
1808ac_fn_c_try_link ()
1809{
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 rm -f conftest.$ac_objext conftest$ac_exeext
1812 if { { ac_try="$ac_link"
1813case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1816esac
1817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818$as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_link") 2>conftest.err
1820 ac_status=$?
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1825 fi
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } && {
1828 test -z "$ac_c_werror_flag" ||
1829 test ! -s conftest.err
1830 } && test -s conftest$ac_exeext && {
1831 test "$cross_compiling" = yes ||
d0ac1c44 1832 test -x conftest$ac_exeext
ef016f83
MF
1833 }; then :
1834 ac_retval=0
1835else
1836 $as_echo "$as_me: failed program was:" >&5
1837sed 's/^/| /' conftest.$ac_ext >&5
1838
1839 ac_retval=1
1840fi
1841 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1842 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1843 # interfere with the next link command; also delete a directory that is
1844 # left behind by Apple's compiler. We do this before executing the actions.
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
ef016f83
MF
1848
1849} # ac_fn_c_try_link
1850
1851# ac_fn_c_check_func LINENO FUNC VAR
1852# ----------------------------------
1853# Tests whether FUNC exists, setting the cache variable VAR accordingly
1854ac_fn_c_check_func ()
1855{
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1859if eval \${$3+:} false; then :
ef016f83
MF
1860 $as_echo_n "(cached) " >&6
1861else
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863/* end confdefs.h. */
1864/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1866#define $2 innocuous_$2
1867
1868/* System header to define __stub macros and hopefully few prototypes,
1869 which can conflict with char $2 (); below.
1870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1871 <limits.h> exists even on freestanding compilers. */
1872
1873#ifdef __STDC__
1874# include <limits.h>
1875#else
1876# include <assert.h>
1877#endif
1878
1879#undef $2
1880
1881/* Override any GCC internal prototype to avoid an error.
1882 Use char because int might match the return type of a GCC
1883 builtin and then its argument prototype would still apply. */
1884#ifdef __cplusplus
1885extern "C"
1886#endif
1887char $2 ();
1888/* The GNU C library defines this for functions which it implements
1889 to always fail with ENOSYS. Some functions are actually named
1890 something starting with __ and the normal name is an alias. */
1891#if defined __stub_$2 || defined __stub___$2
1892choke me
1893#endif
1894
1895int
1896main ()
1897{
1898return $2 ();
1899 ;
1900 return 0;
1901}
1902_ACEOF
1903if ac_fn_c_try_link "$LINENO"; then :
1904 eval "$3=yes"
1905else
1906 eval "$3=no"
1907fi
1908rm -f core conftest.err conftest.$ac_objext \
1909 conftest$ac_exeext conftest.$ac_ext
1910fi
1911eval ac_res=\$$3
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913$as_echo "$ac_res" >&6; }
d0ac1c44 1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
ef016f83
MF
1915
1916} # ac_fn_c_check_func
936df756
MF
1917
1918# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1919# ----------------------------------------------------
1920# Tries to find if the field MEMBER exists in type AGGR, after including
1921# INCLUDES, setting cache variable VAR accordingly.
1922ac_fn_c_check_member ()
1923{
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1926$as_echo_n "checking for $2.$3... " >&6; }
d0ac1c44 1927if eval \${$4+:} false; then :
936df756
MF
1928 $as_echo_n "(cached) " >&6
1929else
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931/* end confdefs.h. */
1932$5
1933int
1934main ()
1935{
1936static $2 ac_aggr;
1937if (ac_aggr.$3)
1938return 0;
1939 ;
1940 return 0;
1941}
1942_ACEOF
1943if ac_fn_c_try_compile "$LINENO"; then :
1944 eval "$4=yes"
1945else
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h. */
1948$5
1949int
1950main ()
1951{
1952static $2 ac_aggr;
1953if (sizeof ac_aggr.$3)
1954return 0;
1955 ;
1956 return 0;
1957}
1958_ACEOF
1959if ac_fn_c_try_compile "$LINENO"; then :
1960 eval "$4=yes"
1961else
1962 eval "$4=no"
1963fi
1964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965fi
1966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967fi
1968eval ac_res=\$$4
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970$as_echo "$ac_res" >&6; }
d0ac1c44 1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
936df756
MF
1972
1973} # ac_fn_c_check_member
1974
1975# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1976# -------------------------------------------
1977# Tests whether TYPE exists after having included INCLUDES, setting cache
1978# variable VAR accordingly.
1979ac_fn_c_check_type ()
1980{
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1984if eval \${$3+:} false; then :
936df756
MF
1985 $as_echo_n "(cached) " >&6
1986else
1987 eval "$3=no"
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h. */
1990$4
1991int
1992main ()
1993{
1994if (sizeof ($2))
1995 return 0;
1996 ;
1997 return 0;
1998}
1999_ACEOF
2000if ac_fn_c_try_compile "$LINENO"; then :
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002/* end confdefs.h. */
2003$4
2004int
2005main ()
2006{
2007if (sizeof (($2)))
2008 return 0;
2009 ;
2010 return 0;
2011}
2012_ACEOF
2013if ac_fn_c_try_compile "$LINENO"; then :
2014
2015else
2016 eval "$3=yes"
2017fi
2018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019fi
2020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021fi
2022eval ac_res=\$$3
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024$as_echo "$ac_res" >&6; }
d0ac1c44 2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
936df756
MF
2026
2027} # ac_fn_c_check_type
ef016f83
MF
2028cat >config.log <<_ACEOF
2029This file contains any messages produced by compilers while
2030running configure, to aid debugging if configure makes a mistake.
2031
2032It was created by $as_me, which was
d0ac1c44 2033generated by GNU Autoconf 2.69. Invocation command line was
ef016f83
MF
2034
2035 $ $0 $@
2036
2037_ACEOF
2038exec 5>>config.log
2039{
2040cat <<_ASUNAME
2041## --------- ##
2042## Platform. ##
2043## --------- ##
2044
2045hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2046uname -m = `(uname -m) 2>/dev/null || echo unknown`
2047uname -r = `(uname -r) 2>/dev/null || echo unknown`
2048uname -s = `(uname -s) 2>/dev/null || echo unknown`
2049uname -v = `(uname -v) 2>/dev/null || echo unknown`
2050
2051/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2052/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2053
2054/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2055/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2056/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2057/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2058/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2059/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2060/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2061
2062_ASUNAME
2063
2064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065for as_dir in $PATH
2066do
2067 IFS=$as_save_IFS
2068 test -z "$as_dir" && as_dir=.
2069 $as_echo "PATH: $as_dir"
2070 done
2071IFS=$as_save_IFS
2072
2073} >&5
2074
2075cat >&5 <<_ACEOF
2076
2077
2078## ----------- ##
2079## Core tests. ##
2080## ----------- ##
2081
2082_ACEOF
2083
2084
2085# Keep a trace of the command line.
2086# Strip out --no-create and --no-recursion so they do not pile up.
2087# Strip out --silent because we don't want to record it for future runs.
2088# Also quote any args containing shell meta-characters.
2089# Make two passes to allow for proper duplicate-argument suppression.
2090ac_configure_args=
2091ac_configure_args0=
2092ac_configure_args1=
2093ac_must_keep_next=false
2094for ac_pass in 1 2
2095do
2096 for ac_arg
2097 do
2098 case $ac_arg in
2099 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2101 | -silent | --silent | --silen | --sile | --sil)
2102 continue ;;
2103 *\'*)
2104 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2105 esac
2106 case $ac_pass in
2107 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2108 2)
2109 as_fn_append ac_configure_args1 " '$ac_arg'"
2110 if test $ac_must_keep_next = true; then
2111 ac_must_keep_next=false # Got value, back to normal.
2112 else
2113 case $ac_arg in
2114 *=* | --config-cache | -C | -disable-* | --disable-* \
2115 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2116 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2117 | -with-* | --with-* | -without-* | --without-* | --x)
2118 case "$ac_configure_args0 " in
2119 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2120 esac
2121 ;;
2122 -* ) ac_must_keep_next=true ;;
2123 esac
2124 fi
2125 as_fn_append ac_configure_args " '$ac_arg'"
2126 ;;
2127 esac
2128 done
2129done
2130{ ac_configure_args0=; unset ac_configure_args0;}
2131{ ac_configure_args1=; unset ac_configure_args1;}
2132
2133# When interrupted or exit'd, cleanup temporary files, and complete
2134# config.log. We remove comments because anyway the quotes in there
2135# would cause problems or look ugly.
2136# WARNING: Use '\'' to represent an apostrophe within the trap.
2137# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2138trap 'exit_status=$?
2139 # Save into config.log some information that might help in debugging.
2140 {
2141 echo
2142
d0ac1c44 2143 $as_echo "## ---------------- ##
ef016f83 2144## Cache variables. ##
d0ac1c44 2145## ---------------- ##"
ef016f83
MF
2146 echo
2147 # The following way of writing the cache mishandles newlines in values,
2148(
2149 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2150 eval ac_val=\$$ac_var
2151 case $ac_val in #(
2152 *${as_nl}*)
2153 case $ac_var in #(
2154 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2155$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2156 esac
2157 case $ac_var in #(
2158 _ | IFS | as_nl) ;; #(
2159 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2160 *) { eval $ac_var=; unset $ac_var;} ;;
2161 esac ;;
2162 esac
2163 done
2164 (set) 2>&1 |
2165 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2166 *${as_nl}ac_space=\ *)
2167 sed -n \
2168 "s/'\''/'\''\\\\'\'''\''/g;
2169 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2170 ;; #(
2171 *)
2172 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2173 ;;
2174 esac |
2175 sort
2176)
2177 echo
2178
d0ac1c44 2179 $as_echo "## ----------------- ##
ef016f83 2180## Output variables. ##
d0ac1c44 2181## ----------------- ##"
ef016f83
MF
2182 echo
2183 for ac_var in $ac_subst_vars
2184 do
2185 eval ac_val=\$$ac_var
2186 case $ac_val in
2187 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2188 esac
2189 $as_echo "$ac_var='\''$ac_val'\''"
2190 done | sort
2191 echo
2192
2193 if test -n "$ac_subst_files"; then
d0ac1c44 2194 $as_echo "## ------------------- ##
ef016f83 2195## File substitutions. ##
d0ac1c44 2196## ------------------- ##"
ef016f83
MF
2197 echo
2198 for ac_var in $ac_subst_files
2199 do
2200 eval ac_val=\$$ac_var
2201 case $ac_val in
2202 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2203 esac
2204 $as_echo "$ac_var='\''$ac_val'\''"
2205 done | sort
2206 echo
2207 fi
2208
2209 if test -s confdefs.h; then
d0ac1c44 2210 $as_echo "## ----------- ##
ef016f83 2211## confdefs.h. ##
d0ac1c44 2212## ----------- ##"
ef016f83
MF
2213 echo
2214 cat confdefs.h
2215 echo
2216 fi
2217 test "$ac_signal" != 0 &&
2218 $as_echo "$as_me: caught signal $ac_signal"
2219 $as_echo "$as_me: exit $exit_status"
2220 } >&5
2221 rm -f core *.core core.conftest.* &&
2222 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2223 exit $exit_status
2224' 0
2225for ac_signal in 1 2 13 15; do
2226 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2227done
2228ac_signal=0
2229
2230# confdefs.h avoids OS command line length limits that DEFS can exceed.
2231rm -f -r conftest* confdefs.h
2232
2233$as_echo "/* confdefs.h */" > confdefs.h
2234
2235# Predefined preprocessor variables.
2236
2237cat >>confdefs.h <<_ACEOF
2238#define PACKAGE_NAME "$PACKAGE_NAME"
2239_ACEOF
2240
2241cat >>confdefs.h <<_ACEOF
2242#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2243_ACEOF
2244
2245cat >>confdefs.h <<_ACEOF
2246#define PACKAGE_VERSION "$PACKAGE_VERSION"
2247_ACEOF
2248
2249cat >>confdefs.h <<_ACEOF
2250#define PACKAGE_STRING "$PACKAGE_STRING"
2251_ACEOF
2252
2253cat >>confdefs.h <<_ACEOF
2254#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2255_ACEOF
2256
2257cat >>confdefs.h <<_ACEOF
2258#define PACKAGE_URL "$PACKAGE_URL"
2259_ACEOF
2260
2261
2262# Let the site file select an alternate cache file if it wants to.
2263# Prefer an explicitly selected file to automatically selected ones.
2264ac_site_file1=NONE
2265ac_site_file2=NONE
2266if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2267 # We do not want a PATH search for config.site.
2268 case $CONFIG_SITE in #((
2269 -*) ac_site_file1=./$CONFIG_SITE;;
2270 */*) ac_site_file1=$CONFIG_SITE;;
2271 *) ac_site_file1=./$CONFIG_SITE;;
2272 esac
ef016f83
MF
2273elif test "x$prefix" != xNONE; then
2274 ac_site_file1=$prefix/share/config.site
2275 ac_site_file2=$prefix/etc/config.site
2276else
2277 ac_site_file1=$ac_default_prefix/share/config.site
2278 ac_site_file2=$ac_default_prefix/etc/config.site
2279fi
2280for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2281do
2282 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2283 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
ef016f83
MF
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2285$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2286 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2287 . "$ac_site_file" \
2288 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290as_fn_error $? "failed to load site script $ac_site_file
2291See \`config.log' for more details" "$LINENO" 5; }
ef016f83
MF
2292 fi
2293done
2294
2295if test -r "$cache_file"; then
d0ac1c44
SM
2296 # Some versions of bash will fail to source /dev/null (special files
2297 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2298 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
ef016f83
MF
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2300$as_echo "$as_me: loading cache $cache_file" >&6;}
2301 case $cache_file in
2302 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2303 *) . "./$cache_file";;
2304 esac
2305 fi
2306else
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2308$as_echo "$as_me: creating cache $cache_file" >&6;}
2309 >$cache_file
2310fi
2311
2312# Check that the precious variables saved in the cache have kept the same
2313# value.
2314ac_cache_corrupted=false
2315for ac_var in $ac_precious_vars; do
2316 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2317 eval ac_new_set=\$ac_env_${ac_var}_set
2318 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2319 eval ac_new_val=\$ac_env_${ac_var}_value
2320 case $ac_old_set,$ac_new_set in
2321 set,)
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2323$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2324 ac_cache_corrupted=: ;;
2325 ,set)
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2327$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2328 ac_cache_corrupted=: ;;
2329 ,);;
2330 *)
2331 if test "x$ac_old_val" != "x$ac_new_val"; then
2332 # differences in whitespace do not lead to failure.
2333 ac_old_val_w=`echo x $ac_old_val`
2334 ac_new_val_w=`echo x $ac_new_val`
2335 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2337$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2338 ac_cache_corrupted=:
2339 else
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2341$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2342 eval $ac_var=\$ac_old_val
2343 fi
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2345$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2347$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2348 fi;;
2349 esac
2350 # Pass precious variables to config.status.
2351 if test "$ac_new_set" = set; then
2352 case $ac_new_val in
2353 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2354 *) ac_arg=$ac_var=$ac_new_val ;;
2355 esac
2356 case " $ac_configure_args " in
2357 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2358 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2359 esac
2360 fi
2361done
2362if $ac_cache_corrupted; then
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2366$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2367 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
ef016f83
MF
2368fi
2369## -------------------- ##
2370## Main body of script. ##
2371## -------------------- ##
2372
2373ac_ext=c
2374ac_cpp='$CPP $CPPFLAGS'
2375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2377ac_compiler_gnu=$ac_cv_c_compiler_gnu
2378
2379
6bb11ab3
L
2380
2381
2382
2383
2384
2385ac_ext=c
2386ac_cpp='$CPP $CPPFLAGS'
2387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390if test -n "$ac_tool_prefix"; then
2391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2392set dummy ${ac_tool_prefix}gcc; ac_word=$2
2393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2394$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2395if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2396 $as_echo_n "(cached) " >&6
2397else
2398 if test -n "$CC"; then
2399 ac_cv_prog_CC="$CC" # Let the user override the test.
2400else
2401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402for as_dir in $PATH
2403do
2404 IFS=$as_save_IFS
2405 test -z "$as_dir" && as_dir=.
2406 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2408 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2410 break 2
2411 fi
2412done
2413 done
2414IFS=$as_save_IFS
2415
2416fi
2417fi
2418CC=$ac_cv_prog_CC
2419if test -n "$CC"; then
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2421$as_echo "$CC" >&6; }
2422else
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2424$as_echo "no" >&6; }
2425fi
2426
2427
2428fi
2429if test -z "$ac_cv_prog_CC"; then
2430 ac_ct_CC=$CC
2431 # Extract the first word of "gcc", so it can be a program name with args.
2432set dummy gcc; ac_word=$2
2433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2434$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2435if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
2436 $as_echo_n "(cached) " >&6
2437else
2438 if test -n "$ac_ct_CC"; then
2439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2440else
2441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442for as_dir in $PATH
2443do
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2448 ac_cv_prog_ac_ct_CC="gcc"
2449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 break 2
2451 fi
2452done
2453 done
2454IFS=$as_save_IFS
2455
2456fi
2457fi
2458ac_ct_CC=$ac_cv_prog_ac_ct_CC
2459if test -n "$ac_ct_CC"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2461$as_echo "$ac_ct_CC" >&6; }
2462else
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2464$as_echo "no" >&6; }
2465fi
2466
2467 if test "x$ac_ct_CC" = x; then
2468 CC=""
2469 else
2470 case $cross_compiling:$ac_tool_warned in
2471yes:)
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2474ac_tool_warned=yes ;;
2475esac
2476 CC=$ac_ct_CC
2477 fi
2478else
2479 CC="$ac_cv_prog_CC"
2480fi
2481
2482if test -z "$CC"; then
2483 if test -n "$ac_tool_prefix"; then
2484 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2485set dummy ${ac_tool_prefix}cc; ac_word=$2
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2487$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2488if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2489 $as_echo_n "(cached) " >&6
2490else
2491 if test -n "$CC"; then
2492 ac_cv_prog_CC="$CC" # Let the user override the test.
2493else
2494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495for as_dir in $PATH
2496do
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2501 ac_cv_prog_CC="${ac_tool_prefix}cc"
2502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 break 2
2504 fi
2505done
2506 done
2507IFS=$as_save_IFS
2508
2509fi
2510fi
2511CC=$ac_cv_prog_CC
2512if test -n "$CC"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2514$as_echo "$CC" >&6; }
2515else
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2517$as_echo "no" >&6; }
2518fi
2519
2520
2521 fi
2522fi
2523if test -z "$CC"; then
2524 # Extract the first word of "cc", so it can be a program name with args.
2525set dummy cc; ac_word=$2
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2527$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2528if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2529 $as_echo_n "(cached) " >&6
2530else
2531 if test -n "$CC"; then
2532 ac_cv_prog_CC="$CC" # Let the user override the test.
2533else
2534 ac_prog_rejected=no
2535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536for as_dir in $PATH
2537do
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2542 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2543 ac_prog_rejected=yes
2544 continue
2545 fi
2546 ac_cv_prog_CC="cc"
2547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 break 2
2549 fi
2550done
2551 done
2552IFS=$as_save_IFS
2553
2554if test $ac_prog_rejected = yes; then
2555 # We found a bogon in the path, so make sure we never use it.
2556 set dummy $ac_cv_prog_CC
2557 shift
2558 if test $# != 0; then
2559 # We chose a different compiler from the bogus one.
2560 # However, it has the same basename, so the bogon will be chosen
2561 # first if we set CC to just the basename; use the full file name.
2562 shift
2563 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2564 fi
2565fi
2566fi
2567fi
2568CC=$ac_cv_prog_CC
2569if test -n "$CC"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2571$as_echo "$CC" >&6; }
2572else
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2574$as_echo "no" >&6; }
2575fi
2576
2577
2578fi
2579if test -z "$CC"; then
2580 if test -n "$ac_tool_prefix"; then
2581 for ac_prog in cl.exe
2582 do
2583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2584set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2586$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2587if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2588 $as_echo_n "(cached) " >&6
2589else
2590 if test -n "$CC"; then
2591 ac_cv_prog_CC="$CC" # Let the user override the test.
2592else
2593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594for as_dir in $PATH
2595do
2596 IFS=$as_save_IFS
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2600 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 break 2
2603 fi
2604done
2605 done
2606IFS=$as_save_IFS
2607
2608fi
2609fi
2610CC=$ac_cv_prog_CC
2611if test -n "$CC"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2613$as_echo "$CC" >&6; }
2614else
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2616$as_echo "no" >&6; }
2617fi
2618
2619
2620 test -n "$CC" && break
2621 done
2622fi
2623if test -z "$CC"; then
2624 ac_ct_CC=$CC
2625 for ac_prog in cl.exe
2626do
2627 # Extract the first word of "$ac_prog", so it can be a program name with args.
2628set dummy $ac_prog; ac_word=$2
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2630$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2631if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
2632 $as_echo_n "(cached) " >&6
2633else
2634 if test -n "$ac_ct_CC"; then
2635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2636else
2637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638for as_dir in $PATH
2639do
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2644 ac_cv_prog_ac_ct_CC="$ac_prog"
2645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 break 2
2647 fi
2648done
2649 done
2650IFS=$as_save_IFS
2651
2652fi
2653fi
2654ac_ct_CC=$ac_cv_prog_ac_ct_CC
2655if test -n "$ac_ct_CC"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2657$as_echo "$ac_ct_CC" >&6; }
2658else
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660$as_echo "no" >&6; }
2661fi
2662
2663
2664 test -n "$ac_ct_CC" && break
2665done
2666
2667 if test "x$ac_ct_CC" = x; then
2668 CC=""
2669 else
2670 case $cross_compiling:$ac_tool_warned in
2671yes:)
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2674ac_tool_warned=yes ;;
2675esac
2676 CC=$ac_ct_CC
2677 fi
2678fi
2679
2680fi
2681
2682
2683test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2685as_fn_error $? "no acceptable C compiler found in \$PATH
2686See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
2687
2688# Provide some information about the compiler.
2689$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2690set X $ac_compile
2691ac_compiler=$2
2692for ac_option in --version -v -V -qversion; do
2693 { { ac_try="$ac_compiler $ac_option >&5"
2694case "(($ac_try" in
2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696 *) ac_try_echo=$ac_try;;
2697esac
2698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2699$as_echo "$ac_try_echo"; } >&5
2700 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2701 ac_status=$?
2702 if test -s conftest.err; then
2703 sed '10a\
2704... rest of stderr output deleted ...
2705 10q' conftest.err >conftest.er1
2706 cat conftest.er1 >&5
6bb11ab3 2707 fi
d0ac1c44 2708 rm -f conftest.er1 conftest.err
6bb11ab3
L
2709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2710 test $ac_status = 0; }
2711done
2712
2713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714/* end confdefs.h. */
2715
2716int
2717main ()
2718{
2719
2720 ;
2721 return 0;
2722}
2723_ACEOF
2724ac_clean_files_save=$ac_clean_files
d0ac1c44 2725ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6bb11ab3
L
2726# Try to create an executable without -o first, disregard a.out.
2727# It will help us diagnose broken compilers, and finding out an intuition
2728# of exeext.
d0ac1c44
SM
2729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2730$as_echo_n "checking whether the C compiler works... " >&6; }
6bb11ab3
L
2731ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2732
2733# The possible output files:
2734ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2735
2736ac_rmfiles=
2737for ac_file in $ac_files
2738do
2739 case $ac_file in
2740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2741 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2742 esac
2743done
2744rm -f $ac_rmfiles
2745
2746if { { ac_try="$ac_link_default"
2747case "(($ac_try" in
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2750esac
2751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2752$as_echo "$ac_try_echo"; } >&5
2753 (eval "$ac_link_default") 2>&5
2754 ac_status=$?
2755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2756 test $ac_status = 0; }; then :
2757 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2758# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2759# in a Makefile. We should not override ac_cv_exeext if it was cached,
2760# so that the user can short-circuit this test for compilers unknown to
2761# Autoconf.
2762for ac_file in $ac_files ''
2763do
2764 test -f "$ac_file" || continue
2765 case $ac_file in
2766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2767 ;;
2768 [ab].out )
2769 # We found the default executable, but exeext='' is most
2770 # certainly right.
2771 break;;
2772 *.* )
2773 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2774 then :; else
2775 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2776 fi
2777 # We set ac_cv_exeext here because the later test for it is not
2778 # safe: cross compilers may not add the suffix if given an `-o'
2779 # argument, so we may need to know it at that point already.
2780 # Even if this section looks crufty: it has the advantage of
2781 # actually working.
2782 break;;
2783 * )
2784 break;;
2785 esac
2786done
2787test "$ac_cv_exeext" = no && ac_cv_exeext=
2788
2789else
2790 ac_file=''
2791fi
6bb11ab3 2792if test -z "$ac_file"; then :
d0ac1c44
SM
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794$as_echo "no" >&6; }
2795$as_echo "$as_me: failed program was:" >&5
6bb11ab3
L
2796sed 's/^/| /' conftest.$ac_ext >&5
2797
2798{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2800as_fn_error 77 "C compiler cannot create executables
2801See \`config.log' for more details" "$LINENO" 5; }
2802else
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2804$as_echo "yes" >&6; }
6bb11ab3 2805fi
d0ac1c44
SM
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2807$as_echo_n "checking for C compiler default output file name... " >&6; }
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2809$as_echo "$ac_file" >&6; }
6bb11ab3
L
2810ac_exeext=$ac_cv_exeext
2811
d0ac1c44 2812rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6bb11ab3 2813ac_clean_files=$ac_clean_files_save
6bb11ab3
L
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2815$as_echo_n "checking for suffix of executables... " >&6; }
2816if { { ac_try="$ac_link"
2817case "(($ac_try" in
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2820esac
2821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2822$as_echo "$ac_try_echo"; } >&5
2823 (eval "$ac_link") 2>&5
2824 ac_status=$?
2825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2826 test $ac_status = 0; }; then :
2827 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2828# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2829# work properly (i.e., refer to `conftest.exe'), while it won't with
2830# `rm'.
2831for ac_file in conftest.exe conftest conftest.*; do
2832 test -f "$ac_file" || continue
2833 case $ac_file in
2834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2835 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2836 break;;
2837 * ) break;;
2838 esac
2839done
2840else
2841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2843as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2844See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3 2845fi
d0ac1c44 2846rm -f conftest conftest$ac_cv_exeext
6bb11ab3
L
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2848$as_echo "$ac_cv_exeext" >&6; }
2849
2850rm -f conftest.$ac_ext
2851EXEEXT=$ac_cv_exeext
2852ac_exeext=$EXEEXT
d0ac1c44
SM
2853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854/* end confdefs.h. */
2855#include <stdio.h>
2856int
2857main ()
2858{
2859FILE *f = fopen ("conftest.out", "w");
2860 return ferror (f) || fclose (f) != 0;
2861
2862 ;
2863 return 0;
2864}
2865_ACEOF
2866ac_clean_files="$ac_clean_files conftest.out"
2867# Check that the compiler produces executables we can run. If not, either
2868# the compiler is broken, or we cross compile.
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2870$as_echo_n "checking whether we are cross compiling... " >&6; }
2871if test "$cross_compiling" != yes; then
2872 { { ac_try="$ac_link"
2873case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876esac
2877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2878$as_echo "$ac_try_echo"; } >&5
2879 (eval "$ac_link") 2>&5
2880 ac_status=$?
2881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2882 test $ac_status = 0; }
2883 if { ac_try='./conftest$ac_cv_exeext'
2884 { { case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887esac
2888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2889$as_echo "$ac_try_echo"; } >&5
2890 (eval "$ac_try") 2>&5
2891 ac_status=$?
2892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2893 test $ac_status = 0; }; }; then
2894 cross_compiling=no
2895 else
2896 if test "$cross_compiling" = maybe; then
2897 cross_compiling=yes
2898 else
2899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2901as_fn_error $? "cannot run C compiled programs.
2902If you meant to cross compile, use \`--host'.
2903See \`config.log' for more details" "$LINENO" 5; }
2904 fi
2905 fi
2906fi
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2908$as_echo "$cross_compiling" >&6; }
2909
2910rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2911ac_clean_files=$ac_clean_files_save
6bb11ab3
L
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2913$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 2914if ${ac_cv_objext+:} false; then :
6bb11ab3
L
2915 $as_echo_n "(cached) " >&6
2916else
2917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2918/* end confdefs.h. */
2919
2920int
2921main ()
2922{
2923
2924 ;
2925 return 0;
2926}
2927_ACEOF
2928rm -f conftest.o conftest.obj
2929if { { ac_try="$ac_compile"
2930case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933esac
2934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2935$as_echo "$ac_try_echo"; } >&5
2936 (eval "$ac_compile") 2>&5
2937 ac_status=$?
2938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2939 test $ac_status = 0; }; then :
2940 for ac_file in conftest.o conftest.obj conftest.*; do
2941 test -f "$ac_file" || continue;
2942 case $ac_file in
2943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2945 break;;
2946 esac
2947done
2948else
2949 $as_echo "$as_me: failed program was:" >&5
2950sed 's/^/| /' conftest.$ac_ext >&5
2951
2952{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2954as_fn_error $? "cannot compute suffix of object files: cannot compile
2955See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
2956fi
2957rm -f conftest.$ac_cv_objext conftest.$ac_ext
2958fi
2959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2960$as_echo "$ac_cv_objext" >&6; }
2961OBJEXT=$ac_cv_objext
2962ac_objext=$OBJEXT
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2964$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 2965if ${ac_cv_c_compiler_gnu+:} false; then :
6bb11ab3
L
2966 $as_echo_n "(cached) " >&6
2967else
2968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2969/* end confdefs.h. */
2970
2971int
2972main ()
2973{
2974#ifndef __GNUC__
2975 choke me
2976#endif
2977
2978 ;
2979 return 0;
2980}
2981_ACEOF
2982if ac_fn_c_try_compile "$LINENO"; then :
2983 ac_compiler_gnu=yes
2984else
2985 ac_compiler_gnu=no
2986fi
2987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988ac_cv_c_compiler_gnu=$ac_compiler_gnu
2989
2990fi
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2992$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2993if test $ac_compiler_gnu = yes; then
2994 GCC=yes
2995else
2996 GCC=
2997fi
2998ac_test_CFLAGS=${CFLAGS+set}
2999ac_save_CFLAGS=$CFLAGS
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3001$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3002if ${ac_cv_prog_cc_g+:} false; then :
6bb11ab3
L
3003 $as_echo_n "(cached) " >&6
3004else
3005 ac_save_c_werror_flag=$ac_c_werror_flag
3006 ac_c_werror_flag=yes
3007 ac_cv_prog_cc_g=no
3008 CFLAGS="-g"
3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010/* end confdefs.h. */
3011
3012int
3013main ()
3014{
3015
3016 ;
3017 return 0;
3018}
3019_ACEOF
3020if ac_fn_c_try_compile "$LINENO"; then :
3021 ac_cv_prog_cc_g=yes
3022else
3023 CFLAGS=""
3024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3025/* end confdefs.h. */
3026
3027int
3028main ()
3029{
3030
3031 ;
3032 return 0;
3033}
3034_ACEOF
3035if ac_fn_c_try_compile "$LINENO"; then :
3036
3037else
3038 ac_c_werror_flag=$ac_save_c_werror_flag
3039 CFLAGS="-g"
3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041/* end confdefs.h. */
3042
3043int
3044main ()
3045{
3046
3047 ;
3048 return 0;
3049}
3050_ACEOF
3051if ac_fn_c_try_compile "$LINENO"; then :
3052 ac_cv_prog_cc_g=yes
3053fi
3054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055fi
3056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3057fi
3058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3059 ac_c_werror_flag=$ac_save_c_werror_flag
3060fi
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3062$as_echo "$ac_cv_prog_cc_g" >&6; }
3063if test "$ac_test_CFLAGS" = set; then
3064 CFLAGS=$ac_save_CFLAGS
3065elif test $ac_cv_prog_cc_g = yes; then
3066 if test "$GCC" = yes; then
3067 CFLAGS="-g -O2"
3068 else
3069 CFLAGS="-g"
3070 fi
3071else
3072 if test "$GCC" = yes; then
3073 CFLAGS="-O2"
3074 else
3075 CFLAGS=
3076 fi
3077fi
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3079$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3080if ${ac_cv_prog_cc_c89+:} false; then :
6bb11ab3
L
3081 $as_echo_n "(cached) " >&6
3082else
3083 ac_cv_prog_cc_c89=no
3084ac_save_CC=$CC
3085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3086/* end confdefs.h. */
3087#include <stdarg.h>
3088#include <stdio.h>
d0ac1c44 3089struct stat;
6bb11ab3
L
3090/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3091struct buf { int x; };
3092FILE * (*rcsopen) (struct buf *, struct stat *, int);
3093static char *e (p, i)
3094 char **p;
3095 int i;
3096{
3097 return p[i];
3098}
3099static char *f (char * (*g) (char **, int), char **p, ...)
3100{
3101 char *s;
3102 va_list v;
3103 va_start (v,p);
3104 s = g (p, va_arg (v,int));
3105 va_end (v);
3106 return s;
3107}
3108
3109/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3110 function prototypes and stuff, but not '\xHH' hex character constants.
3111 These don't provoke an error unfortunately, instead are silently treated
3112 as 'x'. The following induces an error, until -std is added to get
3113 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3114 array size at least. It's necessary to write '\x00'==0 to get something
3115 that's true only with -std. */
3116int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3117
3118/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3119 inside strings and character constants. */
3120#define FOO(x) 'x'
3121int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3122
3123int test (int i, double x);
3124struct s1 {int (*f) (int a);};
3125struct s2 {int (*f) (double a);};
3126int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3127int argc;
3128char **argv;
3129int
3130main ()
3131{
3132return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3133 ;
3134 return 0;
3135}
3136_ACEOF
3137for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3138 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3139do
3140 CC="$ac_save_CC $ac_arg"
3141 if ac_fn_c_try_compile "$LINENO"; then :
3142 ac_cv_prog_cc_c89=$ac_arg
3143fi
3144rm -f core conftest.err conftest.$ac_objext
3145 test "x$ac_cv_prog_cc_c89" != "xno" && break
3146done
3147rm -f conftest.$ac_ext
3148CC=$ac_save_CC
3149
3150fi
3151# AC_CACHE_VAL
3152case "x$ac_cv_prog_cc_c89" in
3153 x)
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3155$as_echo "none needed" >&6; } ;;
3156 xno)
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3158$as_echo "unsupported" >&6; } ;;
3159 *)
3160 CC="$CC $ac_cv_prog_cc_c89"
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3162$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3163esac
3164if test "x$ac_cv_prog_cc_c89" != xno; then :
3165
3166fi
3167
3168ac_ext=c
3169ac_cpp='$CPP $CPPFLAGS'
3170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3172ac_compiler_gnu=$ac_cv_c_compiler_gnu
3173
3174ac_aux_dir=
3175for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
3176 if test -f "$ac_dir/install-sh"; then
3177 ac_aux_dir=$ac_dir
3178 ac_install_sh="$ac_aux_dir/install-sh -c"
3179 break
3180 elif test -f "$ac_dir/install.sh"; then
3181 ac_aux_dir=$ac_dir
3182 ac_install_sh="$ac_aux_dir/install.sh -c"
3183 break
3184 elif test -f "$ac_dir/shtool"; then
3185 ac_aux_dir=$ac_dir
3186 ac_install_sh="$ac_aux_dir/shtool install -c"
3187 break
3188 fi
6bb11ab3
L
3189done
3190if test -z "$ac_aux_dir"; then
d0ac1c44 3191 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6bb11ab3
L
3192fi
3193
3194# These three variables are undocumented and unsupported,
3195# and are intended to be withdrawn in a future Autoconf release.
3196# They can cause serious problems if a builder's source tree is in a directory
3197# whose full name contains unusual characters.
3198ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3199ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3200ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3201
3202
3203# Make sure we can run config.sub.
3204$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 3205 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6bb11ab3
L
3206
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3208$as_echo_n "checking build system type... " >&6; }
d0ac1c44 3209if ${ac_cv_build+:} false; then :
6bb11ab3
L
3210 $as_echo_n "(cached) " >&6
3211else
3212 ac_build_alias=$build_alias
3213test "x$ac_build_alias" = x &&
3214 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3215test "x$ac_build_alias" = x &&
d0ac1c44 3216 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6bb11ab3 3217ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 3218 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6bb11ab3
L
3219
3220fi
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3222$as_echo "$ac_cv_build" >&6; }
3223case $ac_cv_build in
3224*-*-*) ;;
d0ac1c44 3225*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6bb11ab3
L
3226esac
3227build=$ac_cv_build
3228ac_save_IFS=$IFS; IFS='-'
3229set x $ac_cv_build
3230shift
3231build_cpu=$1
3232build_vendor=$2
3233shift; shift
3234# Remember, the first character of IFS is used to create $*,
3235# except with old shells:
3236build_os=$*
3237IFS=$ac_save_IFS
3238case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3239
3240
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3242$as_echo_n "checking host system type... " >&6; }
d0ac1c44 3243if ${ac_cv_host+:} false; then :
6bb11ab3
L
3244 $as_echo_n "(cached) " >&6
3245else
3246 if test "x$host_alias" = x; then
3247 ac_cv_host=$ac_cv_build
3248else
3249 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 3250 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6bb11ab3
L
3251fi
3252
3253fi
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3255$as_echo "$ac_cv_host" >&6; }
3256case $ac_cv_host in
3257*-*-*) ;;
d0ac1c44 3258*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6bb11ab3
L
3259esac
3260host=$ac_cv_host
3261ac_save_IFS=$IFS; IFS='-'
3262set x $ac_cv_host
3263shift
3264host_cpu=$1
3265host_vendor=$2
3266shift; shift
3267# Remember, the first character of IFS is used to create $*,
3268# except with old shells:
3269host_os=$*
3270IFS=$ac_save_IFS
3271case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3272
3273
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3275$as_echo_n "checking target system type... " >&6; }
d0ac1c44 3276if ${ac_cv_target+:} false; then :
6bb11ab3
L
3277 $as_echo_n "(cached) " >&6
3278else
3279 if test "x$target_alias" = x; then
3280 ac_cv_target=$ac_cv_host
3281else
3282 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 3283 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6bb11ab3
L
3284fi
3285
3286fi
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3288$as_echo "$ac_cv_target" >&6; }
3289case $ac_cv_target in
3290*-*-*) ;;
d0ac1c44 3291*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6bb11ab3
L
3292esac
3293target=$ac_cv_target
3294ac_save_IFS=$IFS; IFS='-'
3295set x $ac_cv_target
3296shift
3297target_cpu=$1
3298target_vendor=$2
3299shift; shift
3300# Remember, the first character of IFS is used to create $*,
3301# except with old shells:
3302target_os=$*
3303IFS=$ac_save_IFS
3304case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3305
3306
3307# The aliases save the names the user supplied, while $host etc.
3308# will get canonicalized.
3309test -n "$target_alias" &&
3310 test "$program_prefix$program_suffix$program_transform_name" = \
3311 NONENONEs,x,x, &&
3312 program_prefix=${target_alias}-
3313
3314ac_ext=c
3315ac_cpp='$CPP $CPPFLAGS'
3316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3320$as_echo_n "checking how to run the C preprocessor... " >&6; }
3321# On Suns, sometimes $CPP names a directory.
3322if test -n "$CPP" && test -d "$CPP"; then
3323 CPP=
3324fi
3325if test -z "$CPP"; then
d0ac1c44 3326 if ${ac_cv_prog_CPP+:} false; then :
6bb11ab3
L
3327 $as_echo_n "(cached) " >&6
3328else
3329 # Double quotes because CPP needs to be expanded
3330 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3331 do
3332 ac_preproc_ok=false
3333for ac_c_preproc_warn_flag in '' yes
3334do
3335 # Use a header file that comes with gcc, so configuring glibc
3336 # with a fresh cross-compiler works.
3337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3338 # <limits.h> exists even on freestanding compilers.
3339 # On the NeXT, cc -E runs the code through the compiler's parser,
3340 # not just through cpp. "Syntax error" is here to catch this case.
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342/* end confdefs.h. */
3343#ifdef __STDC__
3344# include <limits.h>
3345#else
3346# include <assert.h>
3347#endif
3348 Syntax error
3349_ACEOF
3350if ac_fn_c_try_cpp "$LINENO"; then :
3351
3352else
3353 # Broken: fails on valid input.
3354continue
3355fi
d0ac1c44 3356rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
3357
3358 # OK, works on sane cases. Now check whether nonexistent headers
3359 # can be detected and how.
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361/* end confdefs.h. */
3362#include <ac_nonexistent.h>
3363_ACEOF
3364if ac_fn_c_try_cpp "$LINENO"; then :
3365 # Broken: success on invalid input.
3366continue
3367else
3368 # Passes both tests.
3369ac_preproc_ok=:
3370break
3371fi
d0ac1c44 3372rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
3373
3374done
3375# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 3376rm -f conftest.i conftest.err conftest.$ac_ext
6bb11ab3
L
3377if $ac_preproc_ok; then :
3378 break
3379fi
3380
3381 done
3382 ac_cv_prog_CPP=$CPP
3383
3384fi
3385 CPP=$ac_cv_prog_CPP
3386else
3387 ac_cv_prog_CPP=$CPP
3388fi
3389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3390$as_echo "$CPP" >&6; }
3391ac_preproc_ok=false
3392for ac_c_preproc_warn_flag in '' yes
3393do
3394 # Use a header file that comes with gcc, so configuring glibc
3395 # with a fresh cross-compiler works.
3396 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3397 # <limits.h> exists even on freestanding compilers.
3398 # On the NeXT, cc -E runs the code through the compiler's parser,
3399 # not just through cpp. "Syntax error" is here to catch this case.
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401/* end confdefs.h. */
3402#ifdef __STDC__
3403# include <limits.h>
3404#else
3405# include <assert.h>
3406#endif
3407 Syntax error
3408_ACEOF
3409if ac_fn_c_try_cpp "$LINENO"; then :
3410
3411else
3412 # Broken: fails on valid input.
3413continue
3414fi
d0ac1c44 3415rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
3416
3417 # OK, works on sane cases. Now check whether nonexistent headers
3418 # can be detected and how.
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420/* end confdefs.h. */
3421#include <ac_nonexistent.h>
3422_ACEOF
3423if ac_fn_c_try_cpp "$LINENO"; then :
3424 # Broken: success on invalid input.
3425continue
3426else
3427 # Passes both tests.
3428ac_preproc_ok=:
3429break
3430fi
d0ac1c44 3431rm -f conftest.err conftest.i conftest.$ac_ext
6bb11ab3
L
3432
3433done
3434# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 3435rm -f conftest.i conftest.err conftest.$ac_ext
6bb11ab3
L
3436if $ac_preproc_ok; then :
3437
3438else
3439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3441as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3442See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
3443fi
3444
3445ac_ext=c
3446ac_cpp='$CPP $CPPFLAGS'
3447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449ac_compiler_gnu=$ac_cv_c_compiler_gnu
3450
3451
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3453$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 3454if ${ac_cv_path_GREP+:} false; then :
6bb11ab3
L
3455 $as_echo_n "(cached) " >&6
3456else
3457 if test -z "$GREP"; then
3458 ac_path_GREP_found=false
3459 # Loop through the user's path and test for each of PROGNAME-LIST
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3462do
3463 IFS=$as_save_IFS
3464 test -z "$as_dir" && as_dir=.
3465 for ac_prog in grep ggrep; do
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3468 as_fn_executable_p "$ac_path_GREP" || continue
6bb11ab3
L
3469# Check for GNU ac_path_GREP and select it if it is found.
3470 # Check for GNU $ac_path_GREP
3471case `"$ac_path_GREP" --version 2>&1` in
3472*GNU*)
3473 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3474*)
3475 ac_count=0
3476 $as_echo_n 0123456789 >"conftest.in"
3477 while :
3478 do
3479 cat "conftest.in" "conftest.in" >"conftest.tmp"
3480 mv "conftest.tmp" "conftest.in"
3481 cp "conftest.in" "conftest.nl"
3482 $as_echo 'GREP' >> "conftest.nl"
3483 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3485 as_fn_arith $ac_count + 1 && ac_count=$as_val
3486 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3487 # Best one so far, save it but keep looking for a better one
3488 ac_cv_path_GREP="$ac_path_GREP"
3489 ac_path_GREP_max=$ac_count
3490 fi
3491 # 10*(2^10) chars as input seems more than enough
3492 test $ac_count -gt 10 && break
3493 done
3494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3495esac
3496
3497 $ac_path_GREP_found && break 3
3498 done
3499 done
3500 done
3501IFS=$as_save_IFS
3502 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 3503 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
3504 fi
3505else
3506 ac_cv_path_GREP=$GREP
3507fi
3508
3509fi
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3511$as_echo "$ac_cv_path_GREP" >&6; }
3512 GREP="$ac_cv_path_GREP"
3513
3514
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3516$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 3517if ${ac_cv_path_EGREP+:} false; then :
6bb11ab3
L
3518 $as_echo_n "(cached) " >&6
3519else
3520 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3521 then ac_cv_path_EGREP="$GREP -E"
3522 else
3523 if test -z "$EGREP"; then
3524 ac_path_EGREP_found=false
3525 # Loop through the user's path and test for each of PROGNAME-LIST
3526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3528do
3529 IFS=$as_save_IFS
3530 test -z "$as_dir" && as_dir=.
3531 for ac_prog in egrep; do
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3534 as_fn_executable_p "$ac_path_EGREP" || continue
6bb11ab3
L
3535# Check for GNU ac_path_EGREP and select it if it is found.
3536 # Check for GNU $ac_path_EGREP
3537case `"$ac_path_EGREP" --version 2>&1` in
3538*GNU*)
3539 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3540*)
3541 ac_count=0
3542 $as_echo_n 0123456789 >"conftest.in"
3543 while :
3544 do
3545 cat "conftest.in" "conftest.in" >"conftest.tmp"
3546 mv "conftest.tmp" "conftest.in"
3547 cp "conftest.in" "conftest.nl"
3548 $as_echo 'EGREP' >> "conftest.nl"
3549 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3551 as_fn_arith $ac_count + 1 && ac_count=$as_val
3552 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3553 # Best one so far, save it but keep looking for a better one
3554 ac_cv_path_EGREP="$ac_path_EGREP"
3555 ac_path_EGREP_max=$ac_count
3556 fi
3557 # 10*(2^10) chars as input seems more than enough
3558 test $ac_count -gt 10 && break
3559 done
3560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3561esac
3562
3563 $ac_path_EGREP_found && break 3
3564 done
3565 done
3566 done
3567IFS=$as_save_IFS
3568 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 3569 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
3570 fi
3571else
3572 ac_cv_path_EGREP=$EGREP
3573fi
3574
3575 fi
3576fi
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3578$as_echo "$ac_cv_path_EGREP" >&6; }
3579 EGREP="$ac_cv_path_EGREP"
3580
3581
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3583$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 3584if ${ac_cv_header_stdc+:} false; then :
6bb11ab3
L
3585 $as_echo_n "(cached) " >&6
3586else
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588/* end confdefs.h. */
3589#include <stdlib.h>
3590#include <stdarg.h>
3591#include <string.h>
3592#include <float.h>
3593
3594int
3595main ()
3596{
3597
3598 ;
3599 return 0;
3600}
3601_ACEOF
3602if ac_fn_c_try_compile "$LINENO"; then :
3603 ac_cv_header_stdc=yes
3604else
3605 ac_cv_header_stdc=no
3606fi
3607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608
3609if test $ac_cv_header_stdc = yes; then
3610 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612/* end confdefs.h. */
3613#include <string.h>
3614
3615_ACEOF
3616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3617 $EGREP "memchr" >/dev/null 2>&1; then :
3618
3619else
3620 ac_cv_header_stdc=no
3621fi
3622rm -f conftest*
3623
3624fi
3625
3626if test $ac_cv_header_stdc = yes; then
3627 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629/* end confdefs.h. */
3630#include <stdlib.h>
3631
3632_ACEOF
3633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3634 $EGREP "free" >/dev/null 2>&1; then :
3635
3636else
3637 ac_cv_header_stdc=no
3638fi
3639rm -f conftest*
3640
3641fi
3642
3643if test $ac_cv_header_stdc = yes; then
3644 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3645 if test "$cross_compiling" = yes; then :
3646 :
3647else
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649/* end confdefs.h. */
3650#include <ctype.h>
3651#include <stdlib.h>
3652#if ((' ' & 0x0FF) == 0x020)
3653# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3654# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3655#else
3656# define ISLOWER(c) \
3657 (('a' <= (c) && (c) <= 'i') \
3658 || ('j' <= (c) && (c) <= 'r') \
3659 || ('s' <= (c) && (c) <= 'z'))
3660# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3661#endif
3662
3663#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3664int
3665main ()
3666{
3667 int i;
3668 for (i = 0; i < 256; i++)
3669 if (XOR (islower (i), ISLOWER (i))
3670 || toupper (i) != TOUPPER (i))
3671 return 2;
3672 return 0;
3673}
3674_ACEOF
3675if ac_fn_c_try_run "$LINENO"; then :
3676
3677else
3678 ac_cv_header_stdc=no
3679fi
3680rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3681 conftest.$ac_objext conftest.beam conftest.$ac_ext
3682fi
3683
3684fi
3685fi
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3687$as_echo "$ac_cv_header_stdc" >&6; }
3688if test $ac_cv_header_stdc = yes; then
3689
3690$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3691
3692fi
3693
3694# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3695for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3696 inttypes.h stdint.h unistd.h
3697do :
3698 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3699ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3700"
d0ac1c44 3701if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
3702 cat >>confdefs.h <<_ACEOF
3703#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3704_ACEOF
3705
3706fi
3707
3708done
3709
3710
3711
3712 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 3713if test "x$ac_cv_header_minix_config_h" = xyes; then :
6bb11ab3
L
3714 MINIX=yes
3715else
3716 MINIX=
3717fi
3718
3719
3720 if test "$MINIX" = yes; then
3721
3722$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3723
3724
3725$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3726
3727
3728$as_echo "#define _MINIX 1" >>confdefs.h
3729
3730 fi
3731
3732
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3734$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 3735if ${ac_cv_safe_to_define___extensions__+:} false; then :
6bb11ab3
L
3736 $as_echo_n "(cached) " >&6
3737else
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739/* end confdefs.h. */
3740
d0ac1c44
SM
3741# define __EXTENSIONS__ 1
3742 $ac_includes_default
6bb11ab3
L
3743int
3744main ()
3745{
3746
3747 ;
3748 return 0;
3749}
3750_ACEOF
3751if ac_fn_c_try_compile "$LINENO"; then :
3752 ac_cv_safe_to_define___extensions__=yes
3753else
3754 ac_cv_safe_to_define___extensions__=no
3755fi
3756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757fi
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3759$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3760 test $ac_cv_safe_to_define___extensions__ = yes &&
3761 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3762
3763 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3764
3765 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3766
3767 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3768
3769 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3770
3771
3772test "$program_prefix" != NONE &&
3773 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3774# Use a double $ so make ignores it.
3775test "$program_suffix" != NONE &&
3776 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3777# Double any \ or $.
3778# By default was `s,x,x', remove it if useless.
3779ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3780program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3781
3782# Find a good install program. We prefer a C program (faster),
3783# so one script is as good as another. But avoid the broken or
3784# incompatible versions:
3785# SysV /etc/install, /usr/sbin/install
3786# SunOS /usr/etc/install
3787# IRIX /sbin/install
3788# AIX /bin/install
3789# AmigaOS /C/install, which installs bootblocks on floppy discs
3790# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3791# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3792# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3793# OS/2's system install, which has a completely different semantic
3794# ./install, which can be erroneously created by make from ./install.sh.
3795# Reject install programs that cannot install multiple files.
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3797$as_echo_n "checking for a BSD-compatible install... " >&6; }
3798if test -z "$INSTALL"; then
d0ac1c44 3799if ${ac_cv_path_install+:} false; then :
6bb11ab3
L
3800 $as_echo_n "(cached) " >&6
3801else
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803for as_dir in $PATH
3804do
3805 IFS=$as_save_IFS
3806 test -z "$as_dir" && as_dir=.
3807 # Account for people who put trailing slashes in PATH elements.
3808case $as_dir/ in #((
3809 ./ | .// | /[cC]/* | \
3810 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3811 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3812 /usr/ucb/* ) ;;
3813 *)
3814 # OSF1 and SCO ODT 3.0 have their own names for install.
3815 # Don't use installbsd from OSF since it installs stuff as root
3816 # by default.
3817 for ac_prog in ginstall scoinst install; do
3818 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3819 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6bb11ab3
L
3820 if test $ac_prog = install &&
3821 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3822 # AIX install. It has an incompatible calling convention.
3823 :
3824 elif test $ac_prog = install &&
3825 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3826 # program-specific install script used by HP pwplus--don't use.
3827 :
3828 else
3829 rm -rf conftest.one conftest.two conftest.dir
3830 echo one > conftest.one
3831 echo two > conftest.two
3832 mkdir conftest.dir
3833 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3834 test -s conftest.one && test -s conftest.two &&
3835 test -s conftest.dir/conftest.one &&
3836 test -s conftest.dir/conftest.two
3837 then
3838 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3839 break 3
3840 fi
3841 fi
3842 fi
3843 done
3844 done
3845 ;;
3846esac
3847
3848 done
3849IFS=$as_save_IFS
3850
3851rm -rf conftest.one conftest.two conftest.dir
3852
3853fi
3854 if test "${ac_cv_path_install+set}" = set; then
3855 INSTALL=$ac_cv_path_install
3856 else
3857 # As a last resort, use the slow shell script. Don't cache a
3858 # value for INSTALL within a source directory, because that will
3859 # break other packages using the cache if that directory is
3860 # removed, or if the value is a relative name.
3861 INSTALL=$ac_install_sh
3862 fi
3863fi
3864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3865$as_echo "$INSTALL" >&6; }
3866
3867# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3868# It thinks the first close brace ends the variable substitution.
3869test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3870
3871test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3872
3873test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3874
3875rm -rf .tst 2>/dev/null
3876mkdir .tst 2>/dev/null
3877if test -d .tst; then
3878 am__leading_dot=.
3879else
3880 am__leading_dot=_
3881fi
3882rmdir .tst 2>/dev/null
3883
3884DEPDIR="${am__leading_dot}deps"
3885
3886case `pwd` in
3887 *\ * | *\ *)
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3889$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3890esac
3891
3892
3893
3894macro_version='2.2.7a'
3895macro_revision='1.3134'
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909ltmain="$ac_aux_dir/ltmain.sh"
3910
3911# Backslashify metacharacters that are still active within
3912# double-quoted strings.
3913sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3914
3915# Same as above, but do not quote variable references.
3916double_quote_subst='s/\(["`\\]\)/\\\1/g'
3917
3918# Sed substitution to delay expansion of an escaped shell variable in a
3919# double_quote_subst'ed string.
3920delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3921
3922# Sed substitution to delay expansion of an escaped single quote.
3923delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3924
3925# Sed substitution to avoid accidental globbing in evaled expressions
3926no_glob_subst='s/\*/\\\*/g'
3927
3928ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3929ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3930ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3931
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3933$as_echo_n "checking how to print strings... " >&6; }
3934# Test print first, because it will be a builtin if present.
3935if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3936 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3937 ECHO='print -r --'
3938elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3939 ECHO='printf %s\n'
3940else
3941 # Use this function as a fallback that always works.
3942 func_fallback_echo ()
3943 {
3944 eval 'cat <<_LTECHO_EOF
3945$1
3946_LTECHO_EOF'
3947 }
3948 ECHO='func_fallback_echo'
3949fi
3950
3951# func_echo_all arg...
3952# Invoke $ECHO with all args, space-separated.
3953func_echo_all ()
3954{
3955 $ECHO ""
3956}
3957
3958case "$ECHO" in
3959 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3960$as_echo "printf" >&6; } ;;
3961 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3962$as_echo "print -r" >&6; } ;;
3963 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3964$as_echo "cat" >&6; } ;;
3965esac
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3981$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 3982if ${ac_cv_path_SED+:} false; then :
6bb11ab3
L
3983 $as_echo_n "(cached) " >&6
3984else
3985 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3986 for ac_i in 1 2 3 4 5 6 7; do
3987 ac_script="$ac_script$as_nl$ac_script"
3988 done
3989 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3990 { ac_script=; unset ac_script;}
3991 if test -z "$SED"; then
3992 ac_path_SED_found=false
3993 # Loop through the user's path and test for each of PROGNAME-LIST
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995for as_dir in $PATH
3996do
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
3999 for ac_prog in sed gsed; do
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4002 as_fn_executable_p "$ac_path_SED" || continue
6bb11ab3
L
4003# Check for GNU ac_path_SED and select it if it is found.
4004 # Check for GNU $ac_path_SED
4005case `"$ac_path_SED" --version 2>&1` in
4006*GNU*)
4007 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4008*)
4009 ac_count=0
4010 $as_echo_n 0123456789 >"conftest.in"
4011 while :
4012 do
4013 cat "conftest.in" "conftest.in" >"conftest.tmp"
4014 mv "conftest.tmp" "conftest.in"
4015 cp "conftest.in" "conftest.nl"
4016 $as_echo '' >> "conftest.nl"
4017 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4019 as_fn_arith $ac_count + 1 && ac_count=$as_val
4020 if test $ac_count -gt ${ac_path_SED_max-0}; then
4021 # Best one so far, save it but keep looking for a better one
4022 ac_cv_path_SED="$ac_path_SED"
4023 ac_path_SED_max=$ac_count
4024 fi
4025 # 10*(2^10) chars as input seems more than enough
4026 test $ac_count -gt 10 && break
4027 done
4028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4029esac
4030
4031 $ac_path_SED_found && break 3
4032 done
4033 done
4034 done
4035IFS=$as_save_IFS
4036 if test -z "$ac_cv_path_SED"; then
d0ac1c44 4037 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6bb11ab3
L
4038 fi
4039else
4040 ac_cv_path_SED=$SED
4041fi
4042
4043fi
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4045$as_echo "$ac_cv_path_SED" >&6; }
4046 SED="$ac_cv_path_SED"
4047 rm -f conftest.sed
4048
4049test -z "$SED" && SED=sed
4050Xsed="$SED -e 1s/^X//"
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4063$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 4064if ${ac_cv_path_FGREP+:} false; then :
6bb11ab3
L
4065 $as_echo_n "(cached) " >&6
4066else
4067 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4068 then ac_cv_path_FGREP="$GREP -F"
4069 else
4070 if test -z "$FGREP"; then
4071 ac_path_FGREP_found=false
4072 # Loop through the user's path and test for each of PROGNAME-LIST
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4075do
4076 IFS=$as_save_IFS
4077 test -z "$as_dir" && as_dir=.
4078 for ac_prog in fgrep; do
4079 for ac_exec_ext in '' $ac_executable_extensions; do
4080 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4081 as_fn_executable_p "$ac_path_FGREP" || continue
6bb11ab3
L
4082# Check for GNU ac_path_FGREP and select it if it is found.
4083 # Check for GNU $ac_path_FGREP
4084case `"$ac_path_FGREP" --version 2>&1` in
4085*GNU*)
4086 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4087*)
4088 ac_count=0
4089 $as_echo_n 0123456789 >"conftest.in"
4090 while :
4091 do
4092 cat "conftest.in" "conftest.in" >"conftest.tmp"
4093 mv "conftest.tmp" "conftest.in"
4094 cp "conftest.in" "conftest.nl"
4095 $as_echo 'FGREP' >> "conftest.nl"
4096 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4097 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4098 as_fn_arith $ac_count + 1 && ac_count=$as_val
4099 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4100 # Best one so far, save it but keep looking for a better one
4101 ac_cv_path_FGREP="$ac_path_FGREP"
4102 ac_path_FGREP_max=$ac_count
4103 fi
4104 # 10*(2^10) chars as input seems more than enough
4105 test $ac_count -gt 10 && break
4106 done
4107 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4108esac
4109
4110 $ac_path_FGREP_found && break 3
4111 done
4112 done
4113 done
4114IFS=$as_save_IFS
4115 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 4116 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
4117 fi
4118else
4119 ac_cv_path_FGREP=$FGREP
4120fi
4121
4122 fi
4123fi
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4125$as_echo "$ac_cv_path_FGREP" >&6; }
4126 FGREP="$ac_cv_path_FGREP"
4127
4128
4129test -z "$GREP" && GREP=grep
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149# Check whether --with-gnu-ld was given.
4150if test "${with_gnu_ld+set}" = set; then :
4151 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4152else
4153 with_gnu_ld=no
4154fi
4155
4156ac_prog=ld
4157if test "$GCC" = yes; then
4158 # Check if gcc -print-prog-name=ld gives a path.
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4160$as_echo_n "checking for ld used by $CC... " >&6; }
4161 case $host in
4162 *-*-mingw*)
4163 # gcc leaves a trailing carriage return which upsets mingw
4164 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4165 *)
4166 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4167 esac
4168 case $ac_prog in
4169 # Accept absolute paths.
4170 [\\/]* | ?:[\\/]*)
4171 re_direlt='/[^/][^/]*/\.\./'
4172 # Canonicalize the pathname of ld
4173 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4174 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4175 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4176 done
4177 test -z "$LD" && LD="$ac_prog"
4178 ;;
4179 "")
4180 # If it fails, then pretend we aren't using GCC.
4181 ac_prog=ld
4182 ;;
4183 *)
4184 # If it is relative, then search for the first ld in PATH.
4185 with_gnu_ld=unknown
4186 ;;
4187 esac
4188elif test "$with_gnu_ld" = yes; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4190$as_echo_n "checking for GNU ld... " >&6; }
4191else
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4193$as_echo_n "checking for non-GNU ld... " >&6; }
4194fi
d0ac1c44 4195if ${lt_cv_path_LD+:} false; then :
6bb11ab3
L
4196 $as_echo_n "(cached) " >&6
4197else
4198 if test -z "$LD"; then
4199 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4200 for ac_dir in $PATH; do
4201 IFS="$lt_save_ifs"
4202 test -z "$ac_dir" && ac_dir=.
4203 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4204 lt_cv_path_LD="$ac_dir/$ac_prog"
4205 # Check to see if the program is GNU ld. I'd rather use --version,
4206 # but apparently some variants of GNU ld only accept -v.
4207 # Break only if it was the GNU/non-GNU ld that we prefer.
4208 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4209 *GNU* | *'with BFD'*)
4210 test "$with_gnu_ld" != no && break
4211 ;;
4212 *)
4213 test "$with_gnu_ld" != yes && break
4214 ;;
4215 esac
4216 fi
4217 done
4218 IFS="$lt_save_ifs"
4219else
4220 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4221fi
4222fi
4223
4224LD="$lt_cv_path_LD"
4225if test -n "$LD"; then
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4227$as_echo "$LD" >&6; }
4228else
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230$as_echo "no" >&6; }
4231fi
d0ac1c44 4232test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6bb11ab3
L
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4234$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 4235if ${lt_cv_prog_gnu_ld+:} false; then :
6bb11ab3
L
4236 $as_echo_n "(cached) " >&6
4237else
4238 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4239case `$LD -v 2>&1 </dev/null` in
4240*GNU* | *'with BFD'*)
4241 lt_cv_prog_gnu_ld=yes
4242 ;;
4243*)
4244 lt_cv_prog_gnu_ld=no
4245 ;;
4246esac
4247fi
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4249$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4250with_gnu_ld=$lt_cv_prog_gnu_ld
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4261$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 4262if ${lt_cv_path_NM+:} false; then :
6bb11ab3
L
4263 $as_echo_n "(cached) " >&6
4264else
4265 if test -n "$NM"; then
4266 # Let the user override the test.
4267 lt_cv_path_NM="$NM"
4268else
4269 lt_nm_to_check="${ac_tool_prefix}nm"
4270 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4271 lt_nm_to_check="$lt_nm_to_check nm"
4272 fi
4273 for lt_tmp_nm in $lt_nm_to_check; do
4274 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4275 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4276 IFS="$lt_save_ifs"
4277 test -z "$ac_dir" && ac_dir=.
4278 tmp_nm="$ac_dir/$lt_tmp_nm"
4279 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4280 # Check to see if the nm accepts a BSD-compat flag.
4281 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4282 # nm: unknown option "B" ignored
4283 # Tru64's nm complains that /dev/null is an invalid object file
4284 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4285 */dev/null* | *'Invalid file or object type'*)
4286 lt_cv_path_NM="$tmp_nm -B"
4287 break
4288 ;;
4289 *)
4290 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4291 */dev/null*)
4292 lt_cv_path_NM="$tmp_nm -p"
4293 break
4294 ;;
4295 *)
4296 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4297 continue # so that we can try to find one that supports BSD flags
4298 ;;
4299 esac
4300 ;;
4301 esac
4302 fi
4303 done
4304 IFS="$lt_save_ifs"
4305 done
4306 : ${lt_cv_path_NM=no}
4307fi
4308fi
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4310$as_echo "$lt_cv_path_NM" >&6; }
4311if test "$lt_cv_path_NM" != "no"; then
4312 NM="$lt_cv_path_NM"
4313else
4314 # Didn't find any BSD compatible name lister, look for dumpbin.
4315 if test -n "$DUMPBIN"; then :
4316 # Let the user override the test.
4317 else
4318 if test -n "$ac_tool_prefix"; then
4319 for ac_prog in dumpbin "link -dump"
4320 do
4321 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4322set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4325if ${ac_cv_prog_DUMPBIN+:} false; then :
6bb11ab3
L
4326 $as_echo_n "(cached) " >&6
4327else
4328 if test -n "$DUMPBIN"; then
4329 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4330else
4331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332for as_dir in $PATH
4333do
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4338 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4340 break 2
4341 fi
4342done
4343 done
4344IFS=$as_save_IFS
4345
4346fi
4347fi
4348DUMPBIN=$ac_cv_prog_DUMPBIN
4349if test -n "$DUMPBIN"; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4351$as_echo "$DUMPBIN" >&6; }
4352else
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354$as_echo "no" >&6; }
4355fi
4356
4357
4358 test -n "$DUMPBIN" && break
4359 done
4360fi
4361if test -z "$DUMPBIN"; then
4362 ac_ct_DUMPBIN=$DUMPBIN
4363 for ac_prog in dumpbin "link -dump"
4364do
4365 # Extract the first word of "$ac_prog", so it can be a program name with args.
4366set dummy $ac_prog; ac_word=$2
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4368$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4369if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6bb11ab3
L
4370 $as_echo_n "(cached) " >&6
4371else
4372 if test -n "$ac_ct_DUMPBIN"; then
4373 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4374else
4375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376for as_dir in $PATH
4377do
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
4380 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4382 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4384 break 2
4385 fi
4386done
4387 done
4388IFS=$as_save_IFS
4389
4390fi
4391fi
4392ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4393if test -n "$ac_ct_DUMPBIN"; then
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4395$as_echo "$ac_ct_DUMPBIN" >&6; }
4396else
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398$as_echo "no" >&6; }
4399fi
4400
4401
4402 test -n "$ac_ct_DUMPBIN" && break
4403done
4404
4405 if test "x$ac_ct_DUMPBIN" = x; then
4406 DUMPBIN=":"
4407 else
4408 case $cross_compiling:$ac_tool_warned in
4409yes:)
4410{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4411$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4412ac_tool_warned=yes ;;
4413esac
4414 DUMPBIN=$ac_ct_DUMPBIN
4415 fi
4416fi
4417
4418 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4419 *COFF*)
4420 DUMPBIN="$DUMPBIN -symbols"
4421 ;;
4422 *)
4423 DUMPBIN=:
4424 ;;
4425 esac
4426 fi
4427
4428 if test "$DUMPBIN" != ":"; then
4429 NM="$DUMPBIN"
4430 fi
4431fi
4432test -z "$NM" && NM=nm
4433
4434
4435
4436
4437
4438
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4440$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 4441if ${lt_cv_nm_interface+:} false; then :
6bb11ab3
L
4442 $as_echo_n "(cached) " >&6
4443else
4444 lt_cv_nm_interface="BSD nm"
4445 echo "int some_variable = 0;" > conftest.$ac_ext
4446 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4447 (eval "$ac_compile" 2>conftest.err)
4448 cat conftest.err >&5
4449 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4450 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4451 cat conftest.err >&5
4452 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4453 cat conftest.out >&5
4454 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4455 lt_cv_nm_interface="MS dumpbin"
4456 fi
4457 rm -f conftest*
4458fi
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4460$as_echo "$lt_cv_nm_interface" >&6; }
4461
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4463$as_echo_n "checking whether ln -s works... " >&6; }
4464LN_S=$as_ln_s
4465if test "$LN_S" = "ln -s"; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4467$as_echo "yes" >&6; }
4468else
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4470$as_echo "no, using $LN_S" >&6; }
4471fi
4472
4473# find the maximum length of command line arguments
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4475$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 4476if ${lt_cv_sys_max_cmd_len+:} false; then :
6bb11ab3
L
4477 $as_echo_n "(cached) " >&6
4478else
4479 i=0
4480 teststring="ABCD"
4481
4482 case $build_os in
4483 msdosdjgpp*)
4484 # On DJGPP, this test can blow up pretty badly due to problems in libc
4485 # (any single argument exceeding 2000 bytes causes a buffer overrun
4486 # during glob expansion). Even if it were fixed, the result of this
4487 # check would be larger than it should be.
4488 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4489 ;;
4490
4491 gnu*)
4492 # Under GNU Hurd, this test is not required because there is
4493 # no limit to the length of command line arguments.
4494 # Libtool will interpret -1 as no limit whatsoever
4495 lt_cv_sys_max_cmd_len=-1;
4496 ;;
4497
4498 cygwin* | mingw* | cegcc*)
4499 # On Win9x/ME, this test blows up -- it succeeds, but takes
4500 # about 5 minutes as the teststring grows exponentially.
4501 # Worse, since 9x/ME are not pre-emptively multitasking,
4502 # you end up with a "frozen" computer, even though with patience
4503 # the test eventually succeeds (with a max line length of 256k).
4504 # Instead, let's just punt: use the minimum linelength reported by
4505 # all of the supported platforms: 8192 (on NT/2K/XP).
4506 lt_cv_sys_max_cmd_len=8192;
4507 ;;
4508
4509 mint*)
4510 # On MiNT this can take a long time and run out of memory.
4511 lt_cv_sys_max_cmd_len=8192;
4512 ;;
4513
4514 amigaos*)
4515 # On AmigaOS with pdksh, this test takes hours, literally.
4516 # So we just punt and use a minimum line length of 8192.
4517 lt_cv_sys_max_cmd_len=8192;
4518 ;;
4519
4520 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4521 # This has been around since 386BSD, at least. Likely further.
4522 if test -x /sbin/sysctl; then
4523 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4524 elif test -x /usr/sbin/sysctl; then
4525 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4526 else
4527 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4528 fi
4529 # And add a safety zone
4530 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4531 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4532 ;;
4533
4534 interix*)
4535 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4536 lt_cv_sys_max_cmd_len=196608
4537 ;;
4538
4539 osf*)
4540 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4541 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4542 # nice to cause kernel panics so lets avoid the loop below.
4543 # First set a reasonable default.
4544 lt_cv_sys_max_cmd_len=16384
4545 #
4546 if test -x /sbin/sysconfig; then
4547 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4548 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4549 esac
4550 fi
4551 ;;
4552 sco3.2v5*)
4553 lt_cv_sys_max_cmd_len=102400
4554 ;;
4555 sysv5* | sco5v6* | sysv4.2uw2*)
4556 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4557 if test -n "$kargmax"; then
4558 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4559 else
4560 lt_cv_sys_max_cmd_len=32768
4561 fi
4562 ;;
4563 *)
4564 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4565 if test -n "$lt_cv_sys_max_cmd_len"; then
4566 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4567 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4568 else
4569 # Make teststring a little bigger before we do anything with it.
4570 # a 1K string should be a reasonable start.
4571 for i in 1 2 3 4 5 6 7 8 ; do
4572 teststring=$teststring$teststring
4573 done
4574 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4575 # If test is not a shell built-in, we'll probably end up computing a
4576 # maximum length that is only half of the actual maximum length, but
4577 # we can't tell.
4578 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4579 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4580 test $i != 17 # 1/2 MB should be enough
4581 do
4582 i=`expr $i + 1`
4583 teststring=$teststring$teststring
4584 done
4585 # Only check the string length outside the loop.
4586 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4587 teststring=
4588 # Add a significant safety factor because C++ compilers can tack on
4589 # massive amounts of additional arguments before passing them to the
4590 # linker. It appears as though 1/2 is a usable value.
4591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4592 fi
4593 ;;
4594 esac
4595
4596fi
4597
4598if test -n $lt_cv_sys_max_cmd_len ; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4600$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4601else
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4603$as_echo "none" >&6; }
4604fi
4605max_cmd_len=$lt_cv_sys_max_cmd_len
4606
4607
4608
4609
4610
4611
4612: ${CP="cp -f"}
4613: ${MV="mv -f"}
4614: ${RM="rm -f"}
4615
4616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4617$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4618# Try some XSI features
4619xsi_shell=no
4620( _lt_dummy="a/b/c"
4621 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4622 = c,a/b,, \
4623 && eval 'test $(( 1 + 1 )) -eq 2 \
4624 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4625 && xsi_shell=yes
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4627$as_echo "$xsi_shell" >&6; }
4628
4629
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4631$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4632lt_shell_append=no
4633( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4634 >/dev/null 2>&1 \
4635 && lt_shell_append=yes
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4637$as_echo "$lt_shell_append" >&6; }
4638
4639
4640if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4641 lt_unset=unset
4642else
4643 lt_unset=false
4644fi
4645
4646
4647
4648
4649
4650# test EBCDIC or ASCII
4651case `echo X|tr X '\101'` in
4652 A) # ASCII based system
4653 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4654 lt_SP2NL='tr \040 \012'
4655 lt_NL2SP='tr \015\012 \040\040'
4656 ;;
4657 *) # EBCDIC based system
4658 lt_SP2NL='tr \100 \n'
4659 lt_NL2SP='tr \r\n \100\100'
4660 ;;
4661esac
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4672$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 4673if ${lt_cv_ld_reload_flag+:} false; then :
6bb11ab3
L
4674 $as_echo_n "(cached) " >&6
4675else
4676 lt_cv_ld_reload_flag='-r'
4677fi
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4679$as_echo "$lt_cv_ld_reload_flag" >&6; }
4680reload_flag=$lt_cv_ld_reload_flag
4681case $reload_flag in
4682"" | " "*) ;;
4683*) reload_flag=" $reload_flag" ;;
4684esac
4685reload_cmds='$LD$reload_flag -o $output$reload_objs'
4686case $host_os in
4687 darwin*)
4688 if test "$GCC" = yes; then
4689 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4690 else
4691 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4692 fi
4693 ;;
4694esac
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704if test -n "$ac_tool_prefix"; then
4705 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4706set dummy ${ac_tool_prefix}objdump; ac_word=$2
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4709if ${ac_cv_prog_OBJDUMP+:} false; then :
6bb11ab3
L
4710 $as_echo_n "(cached) " >&6
4711else
4712 if test -n "$OBJDUMP"; then
4713 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4714else
4715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716for as_dir in $PATH
4717do
4718 IFS=$as_save_IFS
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4722 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 break 2
4725 fi
4726done
4727 done
4728IFS=$as_save_IFS
4729
4730fi
4731fi
4732OBJDUMP=$ac_cv_prog_OBJDUMP
4733if test -n "$OBJDUMP"; then
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4735$as_echo "$OBJDUMP" >&6; }
4736else
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738$as_echo "no" >&6; }
4739fi
4740
4741
4742fi
4743if test -z "$ac_cv_prog_OBJDUMP"; then
4744 ac_ct_OBJDUMP=$OBJDUMP
4745 # Extract the first word of "objdump", so it can be a program name with args.
4746set dummy objdump; ac_word=$2
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4749if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6bb11ab3
L
4750 $as_echo_n "(cached) " >&6
4751else
4752 if test -n "$ac_ct_OBJDUMP"; then
4753 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4754else
4755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756for as_dir in $PATH
4757do
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4762 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 break 2
4765 fi
4766done
4767 done
4768IFS=$as_save_IFS
4769
4770fi
4771fi
4772ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4773if test -n "$ac_ct_OBJDUMP"; then
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4775$as_echo "$ac_ct_OBJDUMP" >&6; }
4776else
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778$as_echo "no" >&6; }
4779fi
4780
4781 if test "x$ac_ct_OBJDUMP" = x; then
4782 OBJDUMP="false"
4783 else
4784 case $cross_compiling:$ac_tool_warned in
4785yes:)
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4788ac_tool_warned=yes ;;
4789esac
4790 OBJDUMP=$ac_ct_OBJDUMP
4791 fi
4792else
4793 OBJDUMP="$ac_cv_prog_OBJDUMP"
4794fi
4795
4796test -z "$OBJDUMP" && OBJDUMP=objdump
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4807$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 4808if ${lt_cv_deplibs_check_method+:} false; then :
6bb11ab3
L
4809 $as_echo_n "(cached) " >&6
4810else
4811 lt_cv_file_magic_cmd='$MAGIC_CMD'
4812lt_cv_file_magic_test_file=
4813lt_cv_deplibs_check_method='unknown'
4814# Need to set the preceding variable on all platforms that support
4815# interlibrary dependencies.
4816# 'none' -- dependencies not supported.
4817# `unknown' -- same as none, but documents that we really don't know.
4818# 'pass_all' -- all dependencies passed with no checks.
4819# 'test_compile' -- check by making test program.
4820# 'file_magic [[regex]]' -- check by looking for files in library path
4821# which responds to the $file_magic_cmd with a given extended regex.
4822# If you have `file' or equivalent on your system and you're not sure
4823# whether `pass_all' will *always* work, you probably want this one.
4824
4825case $host_os in
4826aix[4-9]*)
4827 lt_cv_deplibs_check_method=pass_all
4828 ;;
4829
4830beos*)
4831 lt_cv_deplibs_check_method=pass_all
4832 ;;
4833
4834bsdi[45]*)
4835 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4836 lt_cv_file_magic_cmd='/usr/bin/file -L'
4837 lt_cv_file_magic_test_file=/shlib/libc.so
4838 ;;
4839
4840cygwin*)
4841 # func_win32_libid is a shell function defined in ltmain.sh
4842 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4843 lt_cv_file_magic_cmd='func_win32_libid'
4844 ;;
4845
4846mingw* | pw32*)
4847 # Base MSYS/MinGW do not provide the 'file' command needed by
4848 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4849 # unless we find 'file', for example because we are cross-compiling.
4850 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4851 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4852 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4853 lt_cv_file_magic_cmd='func_win32_libid'
4854 else
4855 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4856 lt_cv_file_magic_cmd='$OBJDUMP -f'
4857 fi
4858 ;;
4859
4860cegcc*)
4861 # use the weaker test based on 'objdump'. See mingw*.
4862 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4863 lt_cv_file_magic_cmd='$OBJDUMP -f'
4864 ;;
4865
4866darwin* | rhapsody*)
4867 lt_cv_deplibs_check_method=pass_all
4868 ;;
4869
4870freebsd* | dragonfly*)
4871 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4872 case $host_cpu in
4873 i*86 )
4874 # Not sure whether the presence of OpenBSD here was a mistake.
4875 # Let's accept both of them until this is cleared up.
4876 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4877 lt_cv_file_magic_cmd=/usr/bin/file
4878 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4879 ;;
4880 esac
4881 else
4882 lt_cv_deplibs_check_method=pass_all
4883 fi
4884 ;;
4885
4886gnu*)
4887 lt_cv_deplibs_check_method=pass_all
4888 ;;
4889
4890haiku*)
4891 lt_cv_deplibs_check_method=pass_all
4892 ;;
4893
4894hpux10.20* | hpux11*)
4895 lt_cv_file_magic_cmd=/usr/bin/file
4896 case $host_cpu in
4897 ia64*)
4898 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4899 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4900 ;;
4901 hppa*64*)
4902 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]'
4903 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4904 ;;
4905 *)
4906 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4907 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4908 ;;
4909 esac
4910 ;;
4911
4912interix[3-9]*)
4913 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4914 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4915 ;;
4916
4917irix5* | irix6* | nonstopux*)
4918 case $LD in
4919 *-32|*"-32 ") libmagic=32-bit;;
4920 *-n32|*"-n32 ") libmagic=N32;;
4921 *-64|*"-64 ") libmagic=64-bit;;
4922 *) libmagic=never-match;;
4923 esac
4924 lt_cv_deplibs_check_method=pass_all
4925 ;;
4926
4927# This must be Linux ELF.
4928linux* | k*bsd*-gnu | kopensolaris*-gnu)
4929 lt_cv_deplibs_check_method=pass_all
4930 ;;
4931
4932netbsd*)
4933 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4934 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4935 else
4936 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4937 fi
4938 ;;
4939
4940newos6*)
4941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4942 lt_cv_file_magic_cmd=/usr/bin/file
4943 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4944 ;;
4945
4946*nto* | *qnx*)
4947 lt_cv_deplibs_check_method=pass_all
4948 ;;
4949
4950openbsd*)
4951 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4952 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4953 else
4954 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4955 fi
4956 ;;
4957
4958osf3* | osf4* | osf5*)
4959 lt_cv_deplibs_check_method=pass_all
4960 ;;
4961
4962rdos*)
4963 lt_cv_deplibs_check_method=pass_all
4964 ;;
4965
4966solaris*)
4967 lt_cv_deplibs_check_method=pass_all
4968 ;;
4969
4970sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4971 lt_cv_deplibs_check_method=pass_all
4972 ;;
4973
4974sysv4 | sysv4.3*)
4975 case $host_vendor in
4976 motorola)
4977 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]'
4978 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4979 ;;
4980 ncr)
4981 lt_cv_deplibs_check_method=pass_all
4982 ;;
4983 sequent)
4984 lt_cv_file_magic_cmd='/bin/file'
4985 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4986 ;;
4987 sni)
4988 lt_cv_file_magic_cmd='/bin/file'
4989 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4990 lt_cv_file_magic_test_file=/lib/libc.so
4991 ;;
4992 siemens)
4993 lt_cv_deplibs_check_method=pass_all
4994 ;;
4995 pc)
4996 lt_cv_deplibs_check_method=pass_all
4997 ;;
4998 esac
4999 ;;
5000
5001tpf*)
5002 lt_cv_deplibs_check_method=pass_all
5003 ;;
5004esac
5005
5006fi
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5008$as_echo "$lt_cv_deplibs_check_method" >&6; }
5009file_magic_cmd=$lt_cv_file_magic_cmd
5010deplibs_check_method=$lt_cv_deplibs_check_method
5011test -z "$deplibs_check_method" && deplibs_check_method=unknown
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
68ed2854
MF
5024plugin_option=
5025plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5026for plugin in $plugin_names; do
5027 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5028 if test x$plugin_so = x$plugin; then
5029 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5030 fi
5031 if test x$plugin_so != x$plugin; then
5032 plugin_option="--plugin $plugin_so"
5033 break
5034 fi
5035done
5036
6bb11ab3
L
5037if test -n "$ac_tool_prefix"; then
5038 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5039set dummy ${ac_tool_prefix}ar; ac_word=$2
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5042if ${ac_cv_prog_AR+:} false; then :
6bb11ab3
L
5043 $as_echo_n "(cached) " >&6
5044else
5045 if test -n "$AR"; then
5046 ac_cv_prog_AR="$AR" # Let the user override the test.
5047else
5048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049for as_dir in $PATH
5050do
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5053 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5055 ac_cv_prog_AR="${ac_tool_prefix}ar"
5056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 break 2
5058 fi
5059done
5060 done
5061IFS=$as_save_IFS
5062
5063fi
5064fi
5065AR=$ac_cv_prog_AR
5066if test -n "$AR"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5068$as_echo "$AR" >&6; }
5069else
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071$as_echo "no" >&6; }
5072fi
5073
5074
5075fi
5076if test -z "$ac_cv_prog_AR"; then
5077 ac_ct_AR=$AR
5078 # Extract the first word of "ar", so it can be a program name with args.
5079set dummy ar; ac_word=$2
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5082if ${ac_cv_prog_ac_ct_AR+:} false; then :
6bb11ab3
L
5083 $as_echo_n "(cached) " >&6
5084else
5085 if test -n "$ac_ct_AR"; then
5086 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5087else
5088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089for as_dir in $PATH
5090do
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5095 ac_cv_prog_ac_ct_AR="ar"
5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 break 2
5098 fi
5099done
5100 done
5101IFS=$as_save_IFS
5102
5103fi
5104fi
5105ac_ct_AR=$ac_cv_prog_ac_ct_AR
5106if test -n "$ac_ct_AR"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5108$as_echo "$ac_ct_AR" >&6; }
5109else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111$as_echo "no" >&6; }
5112fi
5113
5114 if test "x$ac_ct_AR" = x; then
5115 AR="false"
5116 else
5117 case $cross_compiling:$ac_tool_warned in
5118yes:)
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5121ac_tool_warned=yes ;;
5122esac
5123 AR=$ac_ct_AR
5124 fi
5125else
5126 AR="$ac_cv_prog_AR"
5127fi
5128
5129test -z "$AR" && AR=ar
68ed2854
MF
5130if test -n "$plugin_option"; then
5131 if $AR --help 2>&1 | grep -q "\--plugin"; then
aa09469f
MF
5132 touch conftest.c
5133 $AR $plugin_option rc conftest.a conftest.c
5134 if test "$?" != 0; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5136$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5137 else
5138 AR="$AR $plugin_option"
5139 fi
5140 rm -f conftest.*
68ed2854
MF
5141 fi
5142fi
6bb11ab3
L
5143test -z "$AR_FLAGS" && AR_FLAGS=cru
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155if test -n "$ac_tool_prefix"; then
5156 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5157set dummy ${ac_tool_prefix}strip; ac_word=$2
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5160if ${ac_cv_prog_STRIP+:} false; then :
6bb11ab3
L
5161 $as_echo_n "(cached) " >&6
5162else
5163 if test -n "$STRIP"; then
5164 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5165else
5166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167for as_dir in $PATH
5168do
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5173 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5176 fi
5177done
5178 done
5179IFS=$as_save_IFS
5180
5181fi
5182fi
5183STRIP=$ac_cv_prog_STRIP
5184if test -n "$STRIP"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5186$as_echo "$STRIP" >&6; }
5187else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189$as_echo "no" >&6; }
5190fi
5191
5192
5193fi
5194if test -z "$ac_cv_prog_STRIP"; then
5195 ac_ct_STRIP=$STRIP
5196 # Extract the first word of "strip", so it can be a program name with args.
5197set dummy strip; ac_word=$2
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5200if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6bb11ab3
L
5201 $as_echo_n "(cached) " >&6
5202else
5203 if test -n "$ac_ct_STRIP"; then
5204 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5205else
5206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207for as_dir in $PATH
5208do
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5213 ac_cv_prog_ac_ct_STRIP="strip"
5214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 break 2
5216 fi
5217done
5218 done
5219IFS=$as_save_IFS
5220
5221fi
5222fi
5223ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5224if test -n "$ac_ct_STRIP"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5226$as_echo "$ac_ct_STRIP" >&6; }
5227else
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229$as_echo "no" >&6; }
5230fi
5231
5232 if test "x$ac_ct_STRIP" = x; then
5233 STRIP=":"
5234 else
5235 case $cross_compiling:$ac_tool_warned in
5236yes:)
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5239ac_tool_warned=yes ;;
5240esac
5241 STRIP=$ac_ct_STRIP
5242 fi
5243else
5244 STRIP="$ac_cv_prog_STRIP"
5245fi
5246
5247test -z "$STRIP" && STRIP=:
5248
5249
5250
5251
5252
5253
5254if test -n "$ac_tool_prefix"; then
5255 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5256set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5259if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
5260 $as_echo_n "(cached) " >&6
5261else
5262 if test -n "$RANLIB"; then
5263 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5264else
5265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266for as_dir in $PATH
5267do
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5272 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 break 2
5275 fi
5276done
5277 done
5278IFS=$as_save_IFS
5279
5280fi
5281fi
5282RANLIB=$ac_cv_prog_RANLIB
5283if test -n "$RANLIB"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5285$as_echo "$RANLIB" >&6; }
5286else
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288$as_echo "no" >&6; }
5289fi
5290
5291
5292fi
5293if test -z "$ac_cv_prog_RANLIB"; then
5294 ac_ct_RANLIB=$RANLIB
5295 # Extract the first word of "ranlib", so it can be a program name with args.
5296set dummy ranlib; ac_word=$2
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5299if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
5300 $as_echo_n "(cached) " >&6
5301else
5302 if test -n "$ac_ct_RANLIB"; then
5303 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5304else
5305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306for as_dir in $PATH
5307do
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5312 ac_cv_prog_ac_ct_RANLIB="ranlib"
5313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 break 2
5315 fi
5316done
5317 done
5318IFS=$as_save_IFS
5319
5320fi
5321fi
5322ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5323if test -n "$ac_ct_RANLIB"; then
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5325$as_echo "$ac_ct_RANLIB" >&6; }
5326else
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328$as_echo "no" >&6; }
5329fi
5330
5331 if test "x$ac_ct_RANLIB" = x; then
5332 RANLIB=":"
5333 else
5334 case $cross_compiling:$ac_tool_warned in
5335yes:)
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5337$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5338ac_tool_warned=yes ;;
5339esac
5340 RANLIB=$ac_ct_RANLIB
5341 fi
5342else
5343 RANLIB="$ac_cv_prog_RANLIB"
5344fi
5345
5346test -z "$RANLIB" && RANLIB=:
68ed2854
MF
5347if test -n "$plugin_option" && test "$RANLIB" != ":"; then
5348 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
5349 RANLIB="$RANLIB $plugin_option"
5350 fi
5351fi
6bb11ab3
L
5352
5353
5354
5355
5356
5357
5358# Determine commands to create old-style static archives.
5359old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5360old_postinstall_cmds='chmod 644 $oldlib'
5361old_postuninstall_cmds=
5362
5363if test -n "$RANLIB"; then
5364 case $host_os in
5365 openbsd*)
5366 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5367 ;;
5368 *)
5369 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5370 ;;
5371 esac
5372 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5373fi
5374
5375case $host_os in
5376 darwin*)
5377 lock_old_archive_extraction=yes ;;
5378 *)
5379 lock_old_archive_extraction=no ;;
5380esac
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402for ac_prog in gawk mawk nawk awk
5403do
5404 # Extract the first word of "$ac_prog", so it can be a program name with args.
5405set dummy $ac_prog; ac_word=$2
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5407$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5408if ${ac_cv_prog_AWK+:} false; then :
6bb11ab3
L
5409 $as_echo_n "(cached) " >&6
5410else
5411 if test -n "$AWK"; then
5412 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5413else
5414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415for as_dir in $PATH
5416do
5417 IFS=$as_save_IFS
5418 test -z "$as_dir" && as_dir=.
5419 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5421 ac_cv_prog_AWK="$ac_prog"
5422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 break 2
5424 fi
5425done
5426 done
5427IFS=$as_save_IFS
5428
5429fi
5430fi
5431AWK=$ac_cv_prog_AWK
5432if test -n "$AWK"; then
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5434$as_echo "$AWK" >&6; }
5435else
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437$as_echo "no" >&6; }
5438fi
5439
5440
5441 test -n "$AWK" && break
5442done
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462# If no C compiler was specified, use CC.
5463LTCC=${LTCC-"$CC"}
5464
5465# If no C compiler flags were specified, use CFLAGS.
5466LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5467
5468# Allow CC to be a program name with arguments.
5469compiler=$CC
5470
5471
5472# Check for command to grab the raw symbol name followed by C symbol from nm.
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5474$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 5475if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6bb11ab3
L
5476 $as_echo_n "(cached) " >&6
5477else
5478
5479# These are sane defaults that work on at least a few old systems.
5480# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5481
5482# Character class describing NM global symbol codes.
5483symcode='[BCDEGRST]'
5484
5485# Regexp to match symbols that can be accessed directly from C.
5486sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5487
5488# Define system-specific variables.
5489case $host_os in
5490aix*)
5491 symcode='[BCDT]'
5492 ;;
5493cygwin* | mingw* | pw32* | cegcc*)
5494 symcode='[ABCDGISTW]'
5495 ;;
5496hpux*)
5497 if test "$host_cpu" = ia64; then
5498 symcode='[ABCDEGRST]'
5499 fi
5500 ;;
5501irix* | nonstopux*)
5502 symcode='[BCDEGRST]'
5503 ;;
5504osf*)
5505 symcode='[BCDEGQRST]'
5506 ;;
5507solaris*)
5508 symcode='[BDRT]'
5509 ;;
5510sco3.2v5*)
5511 symcode='[DT]'
5512 ;;
5513sysv4.2uw2*)
5514 symcode='[DT]'
5515 ;;
5516sysv5* | sco5v6* | unixware* | OpenUNIX*)
5517 symcode='[ABDT]'
5518 ;;
5519sysv4)
5520 symcode='[DFNSTU]'
5521 ;;
5522esac
5523
5524# If we're using GNU nm, then use its standard symbol codes.
5525case `$NM -V 2>&1` in
5526*GNU* | *'with BFD'*)
5527 symcode='[ABCDGIRSTW]' ;;
5528esac
5529
5530# Transform an extracted symbol line into a proper C declaration.
5531# Some systems (esp. on ia64) link data and code symbols differently,
5532# so use this general approach.
5533lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5534
5535# Transform an extracted symbol line into symbol name and symbol address
5536lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5537lt_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'"
5538
5539# Handle CRLF in mingw tool chain
5540opt_cr=
5541case $build_os in
5542mingw*)
5543 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5544 ;;
5545esac
5546
5547# Try without a prefix underscore, then with it.
5548for ac_symprfx in "" "_"; do
5549
5550 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5551 symxfrm="\\1 $ac_symprfx\\2 \\2"
5552
5553 # Write the raw and C identifiers.
5554 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5555 # Fake it for dumpbin and say T for any non-static function
5556 # and D for any global variable.
5557 # Also find C++ and __fastcall symbols from MSVC++,
5558 # which start with @ or ?.
5559 lt_cv_sys_global_symbol_pipe="$AWK '"\
5560" {last_section=section; section=\$ 3};"\
5561" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5562" \$ 0!~/External *\|/{next};"\
5563" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5564" {if(hide[section]) next};"\
5565" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5566" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5567" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5568" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5569" ' prfx=^$ac_symprfx"
5570 else
5571 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5572 fi
5573
5574 # Check to see that the pipe works correctly.
5575 pipe_works=no
5576
5577 rm -f conftest*
5578 cat > conftest.$ac_ext <<_LT_EOF
5579#ifdef __cplusplus
5580extern "C" {
5581#endif
5582char nm_test_var;
5583void nm_test_func(void);
5584void nm_test_func(void){}
5585#ifdef __cplusplus
5586}
5587#endif
5588int main(){nm_test_var='a';nm_test_func();return(0);}
5589_LT_EOF
5590
5591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5592 (eval $ac_compile) 2>&5
5593 ac_status=$?
5594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5595 test $ac_status = 0; }; then
5596 # Now try to grab the symbols.
5597 nlist=conftest.nm
5598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5599 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5600 ac_status=$?
5601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5602 test $ac_status = 0; } && test -s "$nlist"; then
5603 # Try sorting and uniquifying the output.
5604 if sort "$nlist" | uniq > "$nlist"T; then
5605 mv -f "$nlist"T "$nlist"
5606 else
5607 rm -f "$nlist"T
5608 fi
5609
5610 # Make sure that we snagged all the symbols we need.
5611 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5612 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5613 cat <<_LT_EOF > conftest.$ac_ext
5614#ifdef __cplusplus
5615extern "C" {
5616#endif
5617
5618_LT_EOF
5619 # Now generate the symbol file.
5620 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5621
5622 cat <<_LT_EOF >> conftest.$ac_ext
5623
5624/* The mapping between symbol names and symbols. */
5625const struct {
5626 const char *name;
5627 void *address;
5628}
5629lt__PROGRAM__LTX_preloaded_symbols[] =
5630{
5631 { "@PROGRAM@", (void *) 0 },
5632_LT_EOF
5633 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5634 cat <<\_LT_EOF >> conftest.$ac_ext
5635 {0, (void *) 0}
5636};
5637
5638/* This works around a problem in FreeBSD linker */
5639#ifdef FREEBSD_WORKAROUND
5640static const void *lt_preloaded_setup() {
5641 return lt__PROGRAM__LTX_preloaded_symbols;
5642}
5643#endif
5644
5645#ifdef __cplusplus
5646}
5647#endif
5648_LT_EOF
5649 # Now try linking the two files.
5650 mv conftest.$ac_objext conftstm.$ac_objext
5651 lt_save_LIBS="$LIBS"
5652 lt_save_CFLAGS="$CFLAGS"
5653 LIBS="conftstm.$ac_objext"
5654 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5656 (eval $ac_link) 2>&5
5657 ac_status=$?
5658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5659 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5660 pipe_works=yes
5661 fi
5662 LIBS="$lt_save_LIBS"
5663 CFLAGS="$lt_save_CFLAGS"
5664 else
5665 echo "cannot find nm_test_func in $nlist" >&5
5666 fi
5667 else
5668 echo "cannot find nm_test_var in $nlist" >&5
5669 fi
5670 else
5671 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5672 fi
5673 else
5674 echo "$progname: failed program was:" >&5
5675 cat conftest.$ac_ext >&5
5676 fi
5677 rm -rf conftest* conftst*
5678
5679 # Do not use the global_symbol_pipe unless it works.
5680 if test "$pipe_works" = yes; then
5681 break
5682 else
5683 lt_cv_sys_global_symbol_pipe=
5684 fi
5685done
5686
5687fi
5688
5689if test -z "$lt_cv_sys_global_symbol_pipe"; then
5690 lt_cv_sys_global_symbol_to_cdecl=
5691fi
5692if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5694$as_echo "failed" >&6; }
5695else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5697$as_echo "ok" >&6; }
5698fi
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721# Check whether --enable-libtool-lock was given.
5722if test "${enable_libtool_lock+set}" = set; then :
5723 enableval=$enable_libtool_lock;
5724fi
5725
5726test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5727
5728# Some flags need to be propagated to the compiler or linker for good
5729# libtool support.
5730case $host in
5731ia64-*-hpux*)
5732 # Find out which ABI we are using.
5733 echo 'int i;' > conftest.$ac_ext
5734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5735 (eval $ac_compile) 2>&5
5736 ac_status=$?
5737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5738 test $ac_status = 0; }; then
5739 case `/usr/bin/file conftest.$ac_objext` in
5740 *ELF-32*)
5741 HPUX_IA64_MODE="32"
5742 ;;
5743 *ELF-64*)
5744 HPUX_IA64_MODE="64"
5745 ;;
5746 esac
5747 fi
5748 rm -rf conftest*
5749 ;;
5750*-*-irix6*)
5751 # Find out which ABI we are using.
5752 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5754 (eval $ac_compile) 2>&5
5755 ac_status=$?
5756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5757 test $ac_status = 0; }; then
5758 if test "$lt_cv_prog_gnu_ld" = yes; then
5759 case `/usr/bin/file conftest.$ac_objext` in
5760 *32-bit*)
5761 LD="${LD-ld} -melf32bsmip"
5762 ;;
5763 *N32*)
5764 LD="${LD-ld} -melf32bmipn32"
5765 ;;
5766 *64-bit*)
5767 LD="${LD-ld} -melf64bmip"
5768 ;;
5769 esac
5770 else
5771 case `/usr/bin/file conftest.$ac_objext` in
5772 *32-bit*)
5773 LD="${LD-ld} -32"
5774 ;;
5775 *N32*)
5776 LD="${LD-ld} -n32"
5777 ;;
5778 *64-bit*)
5779 LD="${LD-ld} -64"
5780 ;;
5781 esac
5782 fi
5783 fi
5784 rm -rf conftest*
5785 ;;
5786
bf3d9781 5787x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6bb11ab3
L
5788s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5789 # Find out which ABI we are using.
5790 echo 'int i;' > conftest.$ac_ext
5791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5792 (eval $ac_compile) 2>&5
5793 ac_status=$?
5794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5795 test $ac_status = 0; }; then
5796 case `/usr/bin/file conftest.o` in
5797 *32-bit*)
5798 case $host in
5799 x86_64-*kfreebsd*-gnu)
5800 LD="${LD-ld} -m elf_i386_fbsd"
5801 ;;
5802 x86_64-*linux*)
5803 case `/usr/bin/file conftest.o` in
5804 *x86-64*)
5805 LD="${LD-ld} -m elf32_x86_64"
5806 ;;
5807 *)
5808 LD="${LD-ld} -m elf_i386"
5809 ;;
5810 esac
5811 ;;
bf3d9781
AM
5812 powerpc64le-*linux*)
5813 LD="${LD-ld} -m elf32lppclinux"
5814 ;;
5815 powerpc64-*linux*)
6bb11ab3
L
5816 LD="${LD-ld} -m elf32ppclinux"
5817 ;;
5818 s390x-*linux*)
5819 LD="${LD-ld} -m elf_s390"
5820 ;;
5821 sparc64-*linux*)
5822 LD="${LD-ld} -m elf32_sparc"
5823 ;;
5824 esac
5825 ;;
5826 *64-bit*)
5827 case $host in
5828 x86_64-*kfreebsd*-gnu)
5829 LD="${LD-ld} -m elf_x86_64_fbsd"
5830 ;;
5831 x86_64-*linux*)
5832 LD="${LD-ld} -m elf_x86_64"
5833 ;;
bf3d9781
AM
5834 powerpcle-*linux*)
5835 LD="${LD-ld} -m elf64lppc"
5836 ;;
5837 powerpc-*linux*)
6bb11ab3
L
5838 LD="${LD-ld} -m elf64ppc"
5839 ;;
5840 s390*-*linux*|s390*-*tpf*)
5841 LD="${LD-ld} -m elf64_s390"
5842 ;;
5843 sparc*-*linux*)
5844 LD="${LD-ld} -m elf64_sparc"
5845 ;;
5846 esac
5847 ;;
5848 esac
5849 fi
5850 rm -rf conftest*
5851 ;;
5852
5853*-*-sco3.2v5*)
5854 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5855 SAVE_CFLAGS="$CFLAGS"
5856 CFLAGS="$CFLAGS -belf"
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5858$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 5859if ${lt_cv_cc_needs_belf+:} false; then :
6bb11ab3
L
5860 $as_echo_n "(cached) " >&6
5861else
5862 ac_ext=c
5863ac_cpp='$CPP $CPPFLAGS'
5864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5866ac_compiler_gnu=$ac_cv_c_compiler_gnu
5867
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869/* end confdefs.h. */
5870
5871int
5872main ()
5873{
5874
5875 ;
5876 return 0;
5877}
5878_ACEOF
5879if ac_fn_c_try_link "$LINENO"; then :
5880 lt_cv_cc_needs_belf=yes
5881else
5882 lt_cv_cc_needs_belf=no
5883fi
5884rm -f core conftest.err conftest.$ac_objext \
5885 conftest$ac_exeext conftest.$ac_ext
5886 ac_ext=c
5887ac_cpp='$CPP $CPPFLAGS'
5888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5890ac_compiler_gnu=$ac_cv_c_compiler_gnu
5891
5892fi
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5894$as_echo "$lt_cv_cc_needs_belf" >&6; }
5895 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5896 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5897 CFLAGS="$SAVE_CFLAGS"
5898 fi
5899 ;;
5900sparc*-*solaris*)
5901 # Find out which ABI we are using.
5902 echo 'int i;' > conftest.$ac_ext
5903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5904 (eval $ac_compile) 2>&5
5905 ac_status=$?
5906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5907 test $ac_status = 0; }; then
5908 case `/usr/bin/file conftest.o` in
5909 *64-bit*)
5910 case $lt_cv_prog_gnu_ld in
5911 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5912 *)
5913 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5914 LD="${LD-ld} -64"
5915 fi
5916 ;;
5917 esac
5918 ;;
5919 esac
5920 fi
5921 rm -rf conftest*
5922 ;;
5923esac
5924
5925need_locks="$enable_libtool_lock"
5926
5927
5928 case $host_os in
5929 rhapsody* | darwin*)
5930 if test -n "$ac_tool_prefix"; then
5931 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5932set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5935if ${ac_cv_prog_DSYMUTIL+:} false; then :
6bb11ab3
L
5936 $as_echo_n "(cached) " >&6
5937else
5938 if test -n "$DSYMUTIL"; then
5939 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5940else
5941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942for as_dir in $PATH
5943do
5944 IFS=$as_save_IFS
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5948 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 break 2
5951 fi
5952done
5953 done
5954IFS=$as_save_IFS
5955
5956fi
5957fi
5958DSYMUTIL=$ac_cv_prog_DSYMUTIL
5959if test -n "$DSYMUTIL"; then
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5961$as_echo "$DSYMUTIL" >&6; }
5962else
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5964$as_echo "no" >&6; }
5965fi
5966
5967
5968fi
5969if test -z "$ac_cv_prog_DSYMUTIL"; then
5970 ac_ct_DSYMUTIL=$DSYMUTIL
5971 # Extract the first word of "dsymutil", so it can be a program name with args.
5972set dummy dsymutil; ac_word=$2
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5974$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5975if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6bb11ab3
L
5976 $as_echo_n "(cached) " >&6
5977else
5978 if test -n "$ac_ct_DSYMUTIL"; then
5979 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5980else
5981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982for as_dir in $PATH
5983do
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5988 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 break 2
5991 fi
5992done
5993 done
5994IFS=$as_save_IFS
5995
5996fi
5997fi
5998ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5999if test -n "$ac_ct_DSYMUTIL"; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6001$as_echo "$ac_ct_DSYMUTIL" >&6; }
6002else
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6004$as_echo "no" >&6; }
6005fi
6006
6007 if test "x$ac_ct_DSYMUTIL" = x; then
6008 DSYMUTIL=":"
6009 else
6010 case $cross_compiling:$ac_tool_warned in
6011yes:)
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6014ac_tool_warned=yes ;;
6015esac
6016 DSYMUTIL=$ac_ct_DSYMUTIL
6017 fi
6018else
6019 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6020fi
6021
6022 if test -n "$ac_tool_prefix"; then
6023 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6024set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6027if ${ac_cv_prog_NMEDIT+:} false; then :
6bb11ab3
L
6028 $as_echo_n "(cached) " >&6
6029else
6030 if test -n "$NMEDIT"; then
6031 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6032else
6033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034for as_dir in $PATH
6035do
6036 IFS=$as_save_IFS
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6040 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042 break 2
6043 fi
6044done
6045 done
6046IFS=$as_save_IFS
6047
6048fi
6049fi
6050NMEDIT=$ac_cv_prog_NMEDIT
6051if test -n "$NMEDIT"; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6053$as_echo "$NMEDIT" >&6; }
6054else
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056$as_echo "no" >&6; }
6057fi
6058
6059
6060fi
6061if test -z "$ac_cv_prog_NMEDIT"; then
6062 ac_ct_NMEDIT=$NMEDIT
6063 # Extract the first word of "nmedit", so it can be a program name with args.
6064set dummy nmedit; ac_word=$2
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6067if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6bb11ab3
L
6068 $as_echo_n "(cached) " >&6
6069else
6070 if test -n "$ac_ct_NMEDIT"; then
6071 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6072else
6073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074for as_dir in $PATH
6075do
6076 IFS=$as_save_IFS
6077 test -z "$as_dir" && as_dir=.
6078 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6080 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 break 2
6083 fi
6084done
6085 done
6086IFS=$as_save_IFS
6087
6088fi
6089fi
6090ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6091if test -n "$ac_ct_NMEDIT"; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6093$as_echo "$ac_ct_NMEDIT" >&6; }
6094else
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096$as_echo "no" >&6; }
6097fi
6098
6099 if test "x$ac_ct_NMEDIT" = x; then
6100 NMEDIT=":"
6101 else
6102 case $cross_compiling:$ac_tool_warned in
6103yes:)
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6106ac_tool_warned=yes ;;
6107esac
6108 NMEDIT=$ac_ct_NMEDIT
6109 fi
6110else
6111 NMEDIT="$ac_cv_prog_NMEDIT"
6112fi
6113
6114 if test -n "$ac_tool_prefix"; then
6115 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6116set dummy ${ac_tool_prefix}lipo; ac_word=$2
6117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6119if ${ac_cv_prog_LIPO+:} false; then :
6bb11ab3
L
6120 $as_echo_n "(cached) " >&6
6121else
6122 if test -n "$LIPO"; then
6123 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6124else
6125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126for as_dir in $PATH
6127do
6128 IFS=$as_save_IFS
6129 test -z "$as_dir" && as_dir=.
6130 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6132 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 break 2
6135 fi
6136done
6137 done
6138IFS=$as_save_IFS
6139
6140fi
6141fi
6142LIPO=$ac_cv_prog_LIPO
6143if test -n "$LIPO"; then
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6145$as_echo "$LIPO" >&6; }
6146else
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148$as_echo "no" >&6; }
6149fi
6150
6151
6152fi
6153if test -z "$ac_cv_prog_LIPO"; then
6154 ac_ct_LIPO=$LIPO
6155 # Extract the first word of "lipo", so it can be a program name with args.
6156set dummy lipo; ac_word=$2
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6159if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6bb11ab3
L
6160 $as_echo_n "(cached) " >&6
6161else
6162 if test -n "$ac_ct_LIPO"; then
6163 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6164else
6165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166for as_dir in $PATH
6167do
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6172 ac_cv_prog_ac_ct_LIPO="lipo"
6173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 break 2
6175 fi
6176done
6177 done
6178IFS=$as_save_IFS
6179
6180fi
6181fi
6182ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6183if test -n "$ac_ct_LIPO"; then
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6185$as_echo "$ac_ct_LIPO" >&6; }
6186else
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188$as_echo "no" >&6; }
6189fi
6190
6191 if test "x$ac_ct_LIPO" = x; then
6192 LIPO=":"
6193 else
6194 case $cross_compiling:$ac_tool_warned in
6195yes:)
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6198ac_tool_warned=yes ;;
6199esac
6200 LIPO=$ac_ct_LIPO
6201 fi
6202else
6203 LIPO="$ac_cv_prog_LIPO"
6204fi
6205
6206 if test -n "$ac_tool_prefix"; then
6207 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6208set dummy ${ac_tool_prefix}otool; ac_word=$2
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6211if ${ac_cv_prog_OTOOL+:} false; then :
6bb11ab3
L
6212 $as_echo_n "(cached) " >&6
6213else
6214 if test -n "$OTOOL"; then
6215 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6216else
6217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218for as_dir in $PATH
6219do
6220 IFS=$as_save_IFS
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6224 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226 break 2
6227 fi
6228done
6229 done
6230IFS=$as_save_IFS
6231
6232fi
6233fi
6234OTOOL=$ac_cv_prog_OTOOL
6235if test -n "$OTOOL"; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6237$as_echo "$OTOOL" >&6; }
6238else
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240$as_echo "no" >&6; }
6241fi
6242
6243
6244fi
6245if test -z "$ac_cv_prog_OTOOL"; then
6246 ac_ct_OTOOL=$OTOOL
6247 # Extract the first word of "otool", so it can be a program name with args.
6248set dummy otool; ac_word=$2
6249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6251if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6bb11ab3
L
6252 $as_echo_n "(cached) " >&6
6253else
6254 if test -n "$ac_ct_OTOOL"; then
6255 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6256else
6257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258for as_dir in $PATH
6259do
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6264 ac_cv_prog_ac_ct_OTOOL="otool"
6265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 break 2
6267 fi
6268done
6269 done
6270IFS=$as_save_IFS
6271
6272fi
6273fi
6274ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6275if test -n "$ac_ct_OTOOL"; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6277$as_echo "$ac_ct_OTOOL" >&6; }
6278else
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280$as_echo "no" >&6; }
6281fi
6282
6283 if test "x$ac_ct_OTOOL" = x; then
6284 OTOOL=":"
6285 else
6286 case $cross_compiling:$ac_tool_warned in
6287yes:)
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6290ac_tool_warned=yes ;;
6291esac
6292 OTOOL=$ac_ct_OTOOL
6293 fi
6294else
6295 OTOOL="$ac_cv_prog_OTOOL"
6296fi
6297
6298 if test -n "$ac_tool_prefix"; then
6299 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6300set dummy ${ac_tool_prefix}otool64; ac_word=$2
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6303if ${ac_cv_prog_OTOOL64+:} false; then :
6bb11ab3
L
6304 $as_echo_n "(cached) " >&6
6305else
6306 if test -n "$OTOOL64"; then
6307 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6308else
6309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310for as_dir in $PATH
6311do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6316 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6319 fi
6320done
6321 done
6322IFS=$as_save_IFS
6323
6324fi
6325fi
6326OTOOL64=$ac_cv_prog_OTOOL64
6327if test -n "$OTOOL64"; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6329$as_echo "$OTOOL64" >&6; }
6330else
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332$as_echo "no" >&6; }
6333fi
6334
6335
6336fi
6337if test -z "$ac_cv_prog_OTOOL64"; then
6338 ac_ct_OTOOL64=$OTOOL64
6339 # Extract the first word of "otool64", so it can be a program name with args.
6340set dummy otool64; ac_word=$2
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6343if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6bb11ab3
L
6344 $as_echo_n "(cached) " >&6
6345else
6346 if test -n "$ac_ct_OTOOL64"; then
6347 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6348else
6349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350for as_dir in $PATH
6351do
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6356 ac_cv_prog_ac_ct_OTOOL64="otool64"
6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6359 fi
6360done
6361 done
6362IFS=$as_save_IFS
6363
6364fi
6365fi
6366ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6367if test -n "$ac_ct_OTOOL64"; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6369$as_echo "$ac_ct_OTOOL64" >&6; }
6370else
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372$as_echo "no" >&6; }
6373fi
6374
6375 if test "x$ac_ct_OTOOL64" = x; then
6376 OTOOL64=":"
6377 else
6378 case $cross_compiling:$ac_tool_warned in
6379yes:)
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382ac_tool_warned=yes ;;
6383esac
6384 OTOOL64=$ac_ct_OTOOL64
6385 fi
6386else
6387 OTOOL64="$ac_cv_prog_OTOOL64"
6388fi
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6417$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 6418if ${lt_cv_apple_cc_single_mod+:} false; then :
6bb11ab3
L
6419 $as_echo_n "(cached) " >&6
6420else
6421 lt_cv_apple_cc_single_mod=no
6422 if test -z "${LT_MULTI_MODULE}"; then
6423 # By default we will add the -single_module flag. You can override
6424 # by either setting the environment variable LT_MULTI_MODULE
6425 # non-empty at configure time, or by adding -multi_module to the
6426 # link flags.
6427 rm -rf libconftest.dylib*
6428 echo "int foo(void){return 1;}" > conftest.c
6429 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6430-dynamiclib -Wl,-single_module conftest.c" >&5
6431 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6432 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6433 _lt_result=$?
6434 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6435 lt_cv_apple_cc_single_mod=yes
6436 else
6437 cat conftest.err >&5
6438 fi
6439 rm -rf libconftest.dylib*
6440 rm -f conftest.*
6441 fi
6442fi
6443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6444$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6446$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 6447if ${lt_cv_ld_exported_symbols_list+:} false; then :
6bb11ab3
L
6448 $as_echo_n "(cached) " >&6
6449else
6450 lt_cv_ld_exported_symbols_list=no
6451 save_LDFLAGS=$LDFLAGS
6452 echo "_main" > conftest.sym
6453 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455/* end confdefs.h. */
6456
6457int
6458main ()
6459{
6460
6461 ;
6462 return 0;
6463}
6464_ACEOF
6465if ac_fn_c_try_link "$LINENO"; then :
6466 lt_cv_ld_exported_symbols_list=yes
6467else
6468 lt_cv_ld_exported_symbols_list=no
6469fi
6470rm -f core conftest.err conftest.$ac_objext \
6471 conftest$ac_exeext conftest.$ac_ext
6472 LDFLAGS="$save_LDFLAGS"
6473
6474fi
6475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6476$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6478$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 6479if ${lt_cv_ld_force_load+:} false; then :
6bb11ab3
L
6480 $as_echo_n "(cached) " >&6
6481else
6482 lt_cv_ld_force_load=no
6483 cat > conftest.c << _LT_EOF
6484int forced_loaded() { return 2;}
6485_LT_EOF
6486 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6487 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6488 echo "$AR cru libconftest.a conftest.o" >&5
6489 $AR cru libconftest.a conftest.o 2>&5
6490 cat > conftest.c << _LT_EOF
6491int main() { return 0;}
6492_LT_EOF
6493 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6494 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6495 _lt_result=$?
6496 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6497 lt_cv_ld_force_load=yes
6498 else
6499 cat conftest.err >&5
6500 fi
6501 rm -f conftest.err libconftest.a conftest conftest.c
6502 rm -rf conftest.dSYM
6503
6504fi
6505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6506$as_echo "$lt_cv_ld_force_load" >&6; }
6507 case $host_os in
6508 rhapsody* | darwin1.[012])
6509 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6510 darwin1.*)
6511 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6512 darwin*) # darwin 5.x on
6513 # if running on 10.5 or later, the deployment target defaults
6514 # to the OS version, if on x86, and 10.4, the deployment
6515 # target defaults to 10.4. Don't you love it?
6516 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6517 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6518 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ae7d0cac 6519 10.[012][,.]*)
6bb11ab3
L
6520 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6521 10.*)
6522 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6523 esac
6524 ;;
6525 esac
6526 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6527 _lt_dar_single_mod='$single_module'
6528 fi
6529 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6530 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6531 else
6532 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6533 fi
6534 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6535 _lt_dsymutil='~$DSYMUTIL $lib || :'
6536 else
6537 _lt_dsymutil=
6538 fi
6539 ;;
6540 esac
6541
6542for ac_header in dlfcn.h
6543do :
6544 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6545"
d0ac1c44 6546if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6bb11ab3
L
6547 cat >>confdefs.h <<_ACEOF
6548#define HAVE_DLFCN_H 1
6549_ACEOF
6550
6551fi
6552
6553done
6554
6555
6556
6bb11ab3
L
6557ac_config_headers="$ac_config_headers config.h:config.in"
6558
6559
6560
0cb8d851
MF
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6562$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d0ac1c44 6563if ${ac_cv_c_bigendian+:} false; then :
0cb8d851
MF
6564 $as_echo_n "(cached) " >&6
6565else
6566 ac_cv_c_bigendian=unknown
6567 # See if we're dealing with a universal compiler.
6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569/* end confdefs.h. */
6570#ifndef __APPLE_CC__
6571 not a universal capable compiler
6572 #endif
6573 typedef int dummy;
6574
6575_ACEOF
6576if ac_fn_c_try_compile "$LINENO"; then :
6577
6578 # Check for potential -arch flags. It is not universal unless
6579 # there are at least two -arch flags with different values.
6580 ac_arch=
6581 ac_prev=
6582 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6583 if test -n "$ac_prev"; then
6584 case $ac_word in
6585 i?86 | x86_64 | ppc | ppc64)
6586 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6587 ac_arch=$ac_word
6588 else
6589 ac_cv_c_bigendian=universal
6590 break
6591 fi
6592 ;;
6593 esac
6594 ac_prev=
6595 elif test "x$ac_word" = "x-arch"; then
6596 ac_prev=arch
6597 fi
6598 done
6599fi
6600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 if test $ac_cv_c_bigendian = unknown; then
6602 # See if sys/param.h defines the BYTE_ORDER macro.
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604/* end confdefs.h. */
6605#include <sys/types.h>
6606 #include <sys/param.h>
6607
6608int
6609main ()
6610{
6611#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6612 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6613 && LITTLE_ENDIAN)
6614 bogus endian macros
6615 #endif
6616
6617 ;
6618 return 0;
6619}
6620_ACEOF
6621if ac_fn_c_try_compile "$LINENO"; then :
6622 # It does; now see whether it defined to BIG_ENDIAN or not.
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624/* end confdefs.h. */
6625#include <sys/types.h>
6626 #include <sys/param.h>
6627
6628int
6629main ()
6630{
6631#if BYTE_ORDER != BIG_ENDIAN
6632 not big endian
6633 #endif
6634
6635 ;
6636 return 0;
6637}
6638_ACEOF
6639if ac_fn_c_try_compile "$LINENO"; then :
6640 ac_cv_c_bigendian=yes
6641else
6642 ac_cv_c_bigendian=no
6643fi
6644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645fi
6646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6647 fi
6648 if test $ac_cv_c_bigendian = unknown; then
6649 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651/* end confdefs.h. */
6652#include <limits.h>
6653
6654int
6655main ()
6656{
6657#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6658 bogus endian macros
6659 #endif
6660
6661 ;
6662 return 0;
6663}
6664_ACEOF
6665if ac_fn_c_try_compile "$LINENO"; then :
6666 # It does; now see whether it defined to _BIG_ENDIAN or not.
6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668/* end confdefs.h. */
6669#include <limits.h>
6670
6671int
6672main ()
6673{
6674#ifndef _BIG_ENDIAN
6675 not big endian
6676 #endif
6677
6678 ;
6679 return 0;
6680}
6681_ACEOF
6682if ac_fn_c_try_compile "$LINENO"; then :
6683 ac_cv_c_bigendian=yes
6684else
6685 ac_cv_c_bigendian=no
6686fi
6687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688fi
6689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690 fi
6691 if test $ac_cv_c_bigendian = unknown; then
6692 # Compile a test program.
6693 if test "$cross_compiling" = yes; then :
6694 # Try to guess by grepping values from an object file.
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696/* end confdefs.h. */
6697short int ascii_mm[] =
6698 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6699 short int ascii_ii[] =
6700 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6701 int use_ascii (int i) {
6702 return ascii_mm[i] + ascii_ii[i];
6703 }
6704 short int ebcdic_ii[] =
6705 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6706 short int ebcdic_mm[] =
6707 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6708 int use_ebcdic (int i) {
6709 return ebcdic_mm[i] + ebcdic_ii[i];
6710 }
6711 extern int foo;
6712
6713int
6714main ()
6715{
6716return use_ascii (foo) == use_ebcdic (foo);
6717 ;
6718 return 0;
6719}
6720_ACEOF
6721if ac_fn_c_try_compile "$LINENO"; then :
6722 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6723 ac_cv_c_bigendian=yes
6724 fi
6725 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6726 if test "$ac_cv_c_bigendian" = unknown; then
6727 ac_cv_c_bigendian=no
6728 else
6729 # finding both strings is unlikely to happen, but who knows?
6730 ac_cv_c_bigendian=unknown
6731 fi
6732 fi
6733fi
6734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735else
6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737/* end confdefs.h. */
6738$ac_includes_default
6739int
6740main ()
6741{
6742
6743 /* Are we little or big endian? From Harbison&Steele. */
6744 union
6745 {
6746 long int l;
6747 char c[sizeof (long int)];
6748 } u;
6749 u.l = 1;
6750 return u.c[sizeof (long int) - 1] == 1;
6751
6752 ;
6753 return 0;
6754}
6755_ACEOF
6756if ac_fn_c_try_run "$LINENO"; then :
6757 ac_cv_c_bigendian=no
6758else
6759 ac_cv_c_bigendian=yes
6760fi
6761rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6762 conftest.$ac_objext conftest.beam conftest.$ac_ext
6763fi
6764
6765 fi
6766fi
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6768$as_echo "$ac_cv_c_bigendian" >&6; }
6769 case $ac_cv_c_bigendian in #(
6770 yes)
6771 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6772;; #(
6773 no)
6774 ;; #(
6775 universal)
6776
6777$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6778
6779 ;; #(
6780 *)
d0ac1c44 6781 as_fn_error $? "unknown endianness
0cb8d851
MF
6782 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6783 esac
6784
6bb11ab3
L
6785
6786
6787
6788# Put a plausible default for CC_FOR_BUILD in Makefile.
5c887dd5
JB
6789if test -z "$CC_FOR_BUILD"; then
6790 if test "x$cross_compiling" = "xno"; then
6791 CC_FOR_BUILD='$(CC)'
6792 else
6793 CC_FOR_BUILD=gcc
6794 fi
6bb11ab3
L
6795fi
6796
6797
6798
6bb11ab3
L
6799AR=${AR-ar}
6800
6801if test -n "$ac_tool_prefix"; then
6802 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6803set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6806if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
6807 $as_echo_n "(cached) " >&6
6808else
6809 if test -n "$RANLIB"; then
6810 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6811else
6812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813for as_dir in $PATH
6814do
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6819 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 break 2
6822 fi
6823done
6824 done
6825IFS=$as_save_IFS
6826
6827fi
6828fi
6829RANLIB=$ac_cv_prog_RANLIB
6830if test -n "$RANLIB"; then
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6832$as_echo "$RANLIB" >&6; }
6833else
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835$as_echo "no" >&6; }
6836fi
6837
6838
6839fi
6840if test -z "$ac_cv_prog_RANLIB"; then
6841 ac_ct_RANLIB=$RANLIB
6842 # Extract the first word of "ranlib", so it can be a program name with args.
6843set dummy ranlib; ac_word=$2
6844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6845$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6846if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
6847 $as_echo_n "(cached) " >&6
6848else
6849 if test -n "$ac_ct_RANLIB"; then
6850 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6851else
6852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853for as_dir in $PATH
6854do
6855 IFS=$as_save_IFS
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6859 ac_cv_prog_ac_ct_RANLIB="ranlib"
6860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6861 break 2
6862 fi
6863done
6864 done
6865IFS=$as_save_IFS
6866
6867fi
6868fi
6869ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6870if test -n "$ac_ct_RANLIB"; then
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6872$as_echo "$ac_ct_RANLIB" >&6; }
6873else
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875$as_echo "no" >&6; }
6876fi
6877
6878 if test "x$ac_ct_RANLIB" = x; then
6879 RANLIB=":"
6880 else
6881 case $cross_compiling:$ac_tool_warned in
6882yes:)
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6885ac_tool_warned=yes ;;
6886esac
6887 RANLIB=$ac_ct_RANLIB
6888 fi
6889else
6890 RANLIB="$ac_cv_prog_RANLIB"
6891fi
6892
6893
46f900c0
MF
6894# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
6895# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
6896# is C99. So handle it ourselves.
6897:
6898C_DIALECT=
6899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
6900$as_echo_n "checking whether C11 is supported by default... " >&6; }
6901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902/* end confdefs.h. */
6903
6904#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
6905# error "C11 support not found"
6906#endif
6907
6908_ACEOF
6909if ac_fn_c_try_compile "$LINENO"; then :
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6911$as_echo "yes" >&6; }
6912else
6913
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915$as_echo "no" >&6; }
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
6917$as_echo_n "checking for -std=c11 support... " >&6; }
6918 ac_save_CC="$CC"
6919 CC="$CC -std=c11"
6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921/* end confdefs.h. */
6922
6923#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
6924# error "C11 support not found"
6925#endif
6926
6927_ACEOF
6928if ac_fn_c_try_compile "$LINENO"; then :
6929
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6931$as_echo "yes" >&6; }
6932 CC="$ac_save_CC"
6933 C_DIALECT="-std=c11"
6934
6935else
6936 as_fn_error $? "C11 is required" "$LINENO" 5
6937fi
6938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939fi
6940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6941
6942
6bb11ab3
L
6943# Some of the common include files depend on bfd.h, and bfd.h checks
6944# that config.h is included first by testing that the PACKAGE macro
6945# is defined.
6946PACKAGE=sim
6947
6948cat >>confdefs.h <<_ACEOF
6949#define PACKAGE "$PACKAGE"
6950_ACEOF
6951
6952
6953
6954# Dependency checking.
6955ac_config_commands="$ac_config_commands depdir"
6956
6957
6958depcc="$CC" am_compiler_list=
6959
6960am_depcomp=$ac_aux_dir/depcomp
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6962$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 6963if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6bb11ab3
L
6964 $as_echo_n "(cached) " >&6
6965else
6966 if test -f "$am_depcomp"; then
6967 # We make a subdir and do the tests there. Otherwise we can end up
6968 # making bogus files that we don't know about and never remove. For
6969 # instance it was reported that on HP-UX the gcc test will end up
6970 # making a dummy file named `D' -- because `-MD' means `put the output
6971 # in D'.
6972 mkdir conftest.dir
6973 # Copy depcomp to subdir because otherwise we won't find it if we're
6974 # using a relative directory.
6975 cp "$am_depcomp" conftest.dir
6976 cd conftest.dir
6977 # We will build objects and dependencies in a subdirectory because
6978 # it helps to detect inapplicable dependency modes. For instance
6979 # both Tru64's cc and ICC support -MD to output dependencies as a
6980 # side effect of compilation, but ICC will put the dependencies in
6981 # the current directory while Tru64 will put them in the object
6982 # directory.
6983 mkdir sub
6984
6985 am_cv_CC_dependencies_compiler_type=none
6986 if test "$am_compiler_list" = ""; then
6987 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6988 fi
6989 for depmode in $am_compiler_list; do
6990 if test $depmode = none; then break; fi
6991
6992 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6993 # Setup a source with many dependencies, because some compilers
6994 # like to wrap large dependency lists on column 80 (with \), and
6995 # we should not choose a depcomp mode which is confused by this.
6996 #
6997 # We need to recreate these files for each test, as the compiler may
6998 # overwrite some of them when testing with obscure command lines.
6999 # This happens at least with the AIX C compiler.
7000 : > sub/conftest.c
7001 for i in 1 2 3 4 5 6; do
7002 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7003 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7004 # Solaris 8's {/usr,}/bin/sh.
7005 touch sub/conftst$i.h
7006 done
7007 echo "include sub/conftest.Po" > confmf
7008
7009 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7010 # mode. It turns out that the SunPro C++ compiler does not properly
7011 # handle `-M -o', and we need to detect this.
7012 depcmd="depmode=$depmode \
7013 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7014 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7015 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
7016 echo "| $depcmd" | sed -e 's/ */ /g' >&5
7017 if env $depcmd > conftest.err 2>&1 &&
7018 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
7019 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
7020 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
7021 # icc doesn't choke on unknown options, it will just issue warnings
7022 # or remarks (even with -Werror). So we grep stderr for any message
7023 # that says an option was ignored or not supported.
7024 # When given -MP, icc 7.0 and 7.1 complain thusly:
7025 # icc: Command line warning: ignoring option '-M'; no argument required
7026 # The diagnosis changed in icc 8.0:
7027 # icc: Command line remark: option '-MP' not supported
7028 if (grep 'ignoring option' conftest.err ||
7029 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7030 am_cv_CC_dependencies_compiler_type=$depmode
7031 $as_echo "$as_me:$LINENO: success" >&5
7032 break
7033 fi
7034 fi
7035 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
7036 sed -e 's/^/| /' < conftest.err >&5
7037 done
7038
7039 cd ..
7040 rm -rf conftest.dir
7041else
7042 am_cv_CC_dependencies_compiler_type=none
7043fi
7044
7045fi
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7047$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7048if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
d0ac1c44 7049then as_fn_error $? "no usable dependency style found" "$LINENO" 5
6bb11ab3
L
7050else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7051
7052fi
7053
7054
7055# Check for the 'make' the user wants to use.
7056for ac_prog in make
7057do
7058 # Extract the first word of "$ac_prog", so it can be a program name with args.
7059set dummy $ac_prog; ac_word=$2
7060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7062if ${ac_cv_prog_MAKE+:} false; then :
6bb11ab3
L
7063 $as_echo_n "(cached) " >&6
7064else
7065 if test -n "$MAKE"; then
7066 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
7067else
7068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069for as_dir in $PATH
7070do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
7075 ac_cv_prog_MAKE="$ac_prog"
7076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7078 fi
7079done
7080 done
7081IFS=$as_save_IFS
7082
7083fi
7084fi
7085MAKE=$ac_cv_prog_MAKE
7086if test -n "$MAKE"; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7088$as_echo "$MAKE" >&6; }
7089else
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091$as_echo "no" >&6; }
7092fi
7093
7094
7095 test -n "$MAKE" && break
7096done
7097
7098MAKE_IS_GNU=
7099case "`$MAKE --version 2>&1 | sed 1q`" in
7100 *GNU*)
7101 MAKE_IS_GNU=yes
7102 ;;
7103esac
7104 if test "$MAKE_IS_GNU" = yes; then
7105 GMAKE_TRUE=
7106 GMAKE_FALSE='#'
7107else
7108 GMAKE_TRUE='#'
7109 GMAKE_FALSE=
7110fi
7111
7112
7113ALL_LINGUAS=
7114# If we haven't got the data from the intl directory,
7115# assume NLS is disabled.
7116USE_NLS=no
7117LIBINTL=
7118LIBINTL_DEP=
7119INCINTL=
7120XGETTEXT=
7121GMSGFMT=
7122POSUB=
7123
7124if test -f ../../intl/config.intl; then
7125 . ../../intl/config.intl
7126fi
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7128$as_echo_n "checking whether NLS is requested... " >&6; }
7129if test x"$USE_NLS" != xyes; then
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131$as_echo "no" >&6; }
7132else
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7134$as_echo "yes" >&6; }
7135
7136$as_echo "#define ENABLE_NLS 1" >>confdefs.h
7137
7138
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7140$as_echo_n "checking for catalogs to be installed... " >&6; }
7141 # Look for .po and .gmo files in the source directory.
7142 CATALOGS=
7143 XLINGUAS=
7144 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7145 # If there aren't any .gmo files the shell will give us the
7146 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7147 # weeded out.
7148 case "$cat" in *\**)
7149 continue;;
7150 esac
7151 # The quadruple backslash is collapsed to a double backslash
7152 # by the backticks, then collapsed again by the double quotes,
7153 # leaving us with one backslash in the sed expression (right
7154 # before the dot that mustn't act as a wildcard).
7155 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7156 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7157 # The user is allowed to set LINGUAS to a list of languages to
7158 # install catalogs for. If it's empty that means "all of them."
7159 if test "x$LINGUAS" = x; then
7160 CATALOGS="$CATALOGS $cat"
7161 XLINGUAS="$XLINGUAS $lang"
7162 else
7163 case "$LINGUAS" in *$lang*)
7164 CATALOGS="$CATALOGS $cat"
7165 XLINGUAS="$XLINGUAS $lang"
7166 ;;
7167 esac
7168 fi
7169 done
7170 LINGUAS="$XLINGUAS"
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7172$as_echo "$LINGUAS" >&6; }
7173
7174
7175 DATADIRNAME=share
7176
7177 INSTOBJEXT=.mo
7178
7179 GENCAT=gencat
7180
7181 CATOBJEXT=.gmo
7182
7183fi
7184
7185# Check for common headers.
68ed2854
MF
7186# NB: You can assume C11 headers exist.
7187for ac_header in unistd.h
6bb11ab3 7188do :
68ed2854
MF
7189 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
7190if test "x$ac_cv_header_unistd_h" = xyes; then :
6bb11ab3 7191 cat >>confdefs.h <<_ACEOF
68ed2854 7192#define HAVE_UNISTD_H 1
6bb11ab3
L
7193_ACEOF
7194
7195fi
7196
7197done
7198
936df756 7199for ac_header in sys/time.h sys/times.h sys/resource.h sys/mman.h
6bb11ab3
L
7200do :
7201 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7202ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 7203if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
7204 cat >>confdefs.h <<_ACEOF
7205#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7206_ACEOF
7207
7208fi
7209
7210done
7211
7212for ac_header in fcntl.h fpu_control.h
7213do :
7214 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7215ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 7216if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
7217 cat >>confdefs.h <<_ACEOF
7218#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7219_ACEOF
7220
7221fi
7222
7223done
7224
68ed2854 7225for ac_header in dlfcn.h sys/stat.h
6bb11ab3
L
7226do :
7227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7228ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 7229if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
7230 cat >>confdefs.h <<_ACEOF
7231#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7232_ACEOF
7233
7234fi
7235
7236done
7237
7238for ac_func in getrusage time sigaction __setfpucw
7239do :
7240 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7241ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 7242if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6bb11ab3
L
7243 cat >>confdefs.h <<_ACEOF
7244#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7245_ACEOF
7246
7247fi
7248done
7249
936df756
MF
7250for ac_func in mmap munmap lstat truncate ftruncate posix_fallocate
7251do :
7252 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7253ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 7254if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
936df756
MF
7255 cat >>confdefs.h <<_ACEOF
7256#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7257_ACEOF
7258
7259fi
7260done
7261
7262ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
7263#include <sys/types.h>
7264#endif
7265#ifdef HAVE_SYS_STAT_H
7266#include <sys/stat.h>
7267#endif
7268"
d0ac1c44 7269if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
936df756
MF
7270
7271cat >>confdefs.h <<_ACEOF
7272#define HAVE_STRUCT_STAT_ST_DEV 1
7273_ACEOF
7274
7275
7276fi
7277ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
7278#include <sys/types.h>
7279#endif
7280#ifdef HAVE_SYS_STAT_H
7281#include <sys/stat.h>
7282#endif
7283"
d0ac1c44 7284if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
936df756
MF
7285
7286cat >>confdefs.h <<_ACEOF
7287#define HAVE_STRUCT_STAT_ST_INO 1
7288_ACEOF
7289
7290
7291fi
7292ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
7293#include <sys/types.h>
7294#endif
7295#ifdef HAVE_SYS_STAT_H
7296#include <sys/stat.h>
7297#endif
7298"
d0ac1c44 7299if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
936df756
MF
7300
7301cat >>confdefs.h <<_ACEOF
7302#define HAVE_STRUCT_STAT_ST_MODE 1
7303_ACEOF
7304
7305
7306fi
7307ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
7308#include <sys/types.h>
7309#endif
7310#ifdef HAVE_SYS_STAT_H
7311#include <sys/stat.h>
7312#endif
7313"
d0ac1c44 7314if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
936df756
MF
7315
7316cat >>confdefs.h <<_ACEOF
7317#define HAVE_STRUCT_STAT_ST_NLINK 1
7318_ACEOF
7319
7320
7321fi
7322ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
7323#include <sys/types.h>
7324#endif
7325#ifdef HAVE_SYS_STAT_H
7326#include <sys/stat.h>
7327#endif
7328"
d0ac1c44 7329if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
936df756
MF
7330
7331cat >>confdefs.h <<_ACEOF
7332#define HAVE_STRUCT_STAT_ST_UID 1
7333_ACEOF
7334
7335
7336fi
7337ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
7338#include <sys/types.h>
7339#endif
7340#ifdef HAVE_SYS_STAT_H
7341#include <sys/stat.h>
7342#endif
7343"
d0ac1c44 7344if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
936df756
MF
7345
7346cat >>confdefs.h <<_ACEOF
7347#define HAVE_STRUCT_STAT_ST_GID 1
7348_ACEOF
7349
7350
7351fi
7352ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
7353#include <sys/types.h>
7354#endif
7355#ifdef HAVE_SYS_STAT_H
7356#include <sys/stat.h>
7357#endif
7358"
d0ac1c44 7359if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
936df756
MF
7360
7361cat >>confdefs.h <<_ACEOF
7362#define HAVE_STRUCT_STAT_ST_RDEV 1
7363_ACEOF
7364
7365
7366fi
7367ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
7368#include <sys/types.h>
7369#endif
7370#ifdef HAVE_SYS_STAT_H
7371#include <sys/stat.h>
7372#endif
7373"
d0ac1c44 7374if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
936df756
MF
7375
7376cat >>confdefs.h <<_ACEOF
7377#define HAVE_STRUCT_STAT_ST_SIZE 1
7378_ACEOF
7379
7380
7381fi
7382ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
7383#include <sys/types.h>
7384#endif
7385#ifdef HAVE_SYS_STAT_H
7386#include <sys/stat.h>
7387#endif
7388"
d0ac1c44 7389if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
936df756
MF
7390
7391cat >>confdefs.h <<_ACEOF
7392#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7393_ACEOF
7394
7395
7396fi
7397ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
7398#include <sys/types.h>
7399#endif
7400#ifdef HAVE_SYS_STAT_H
7401#include <sys/stat.h>
7402#endif
7403"
d0ac1c44 7404if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
936df756
MF
7405
7406cat >>confdefs.h <<_ACEOF
7407#define HAVE_STRUCT_STAT_ST_BLOCKS 1
7408_ACEOF
7409
7410
7411fi
7412ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
7413#include <sys/types.h>
7414#endif
7415#ifdef HAVE_SYS_STAT_H
7416#include <sys/stat.h>
7417#endif
7418"
d0ac1c44 7419if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
936df756
MF
7420
7421cat >>confdefs.h <<_ACEOF
7422#define HAVE_STRUCT_STAT_ST_ATIME 1
7423_ACEOF
7424
7425
7426fi
7427ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
7428#include <sys/types.h>
7429#endif
7430#ifdef HAVE_SYS_STAT_H
7431#include <sys/stat.h>
7432#endif
7433"
d0ac1c44 7434if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
936df756
MF
7435
7436cat >>confdefs.h <<_ACEOF
7437#define HAVE_STRUCT_STAT_ST_MTIME 1
7438_ACEOF
7439
7440
7441fi
7442ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
7443#include <sys/types.h>
7444#endif
7445#ifdef HAVE_SYS_STAT_H
7446#include <sys/stat.h>
7447#endif
7448"
d0ac1c44 7449if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
936df756
MF
7450
7451cat >>confdefs.h <<_ACEOF
7452#define HAVE_STRUCT_STAT_ST_CTIME 1
7453_ACEOF
7454
7455
7456fi
7457
7458ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
7459#include <sys/socket.h>
7460
7461"
d0ac1c44 7462if test "x$ac_cv_type_socklen_t" = xyes; then :
936df756
MF
7463
7464cat >>confdefs.h <<_ACEOF
7465#define HAVE_SOCKLEN_T 1
7466_ACEOF
7467
7468
7469fi
7470
6bb11ab3
L
7471
7472# Check for socket libraries
7473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7474$as_echo_n "checking for bind in -lsocket... " >&6; }
d0ac1c44 7475if ${ac_cv_lib_socket_bind+:} false; then :
6bb11ab3
L
7476 $as_echo_n "(cached) " >&6
7477else
7478 ac_check_lib_save_LIBS=$LIBS
7479LIBS="-lsocket $LIBS"
7480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481/* end confdefs.h. */
7482
7483/* Override any GCC internal prototype to avoid an error.
7484 Use char because int might match the return type of a GCC
7485 builtin and then its argument prototype would still apply. */
7486#ifdef __cplusplus
7487extern "C"
7488#endif
7489char bind ();
7490int
7491main ()
7492{
7493return bind ();
7494 ;
7495 return 0;
7496}
7497_ACEOF
7498if ac_fn_c_try_link "$LINENO"; then :
7499 ac_cv_lib_socket_bind=yes
7500else
7501 ac_cv_lib_socket_bind=no
7502fi
7503rm -f core conftest.err conftest.$ac_objext \
7504 conftest$ac_exeext conftest.$ac_ext
7505LIBS=$ac_check_lib_save_LIBS
7506fi
7507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7508$as_echo "$ac_cv_lib_socket_bind" >&6; }
d0ac1c44 7509if test "x$ac_cv_lib_socket_bind" = xyes; then :
6bb11ab3
L
7510 cat >>confdefs.h <<_ACEOF
7511#define HAVE_LIBSOCKET 1
7512_ACEOF
7513
7514 LIBS="-lsocket $LIBS"
7515
7516fi
7517
7518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7519$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
d0ac1c44 7520if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6bb11ab3
L
7521 $as_echo_n "(cached) " >&6
7522else
7523 ac_check_lib_save_LIBS=$LIBS
7524LIBS="-lnsl $LIBS"
7525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526/* end confdefs.h. */
7527
7528/* Override any GCC internal prototype to avoid an error.
7529 Use char because int might match the return type of a GCC
7530 builtin and then its argument prototype would still apply. */
7531#ifdef __cplusplus
7532extern "C"
7533#endif
7534char gethostbyname ();
7535int
7536main ()
7537{
7538return gethostbyname ();
7539 ;
7540 return 0;
7541}
7542_ACEOF
7543if ac_fn_c_try_link "$LINENO"; then :
7544 ac_cv_lib_nsl_gethostbyname=yes
7545else
7546 ac_cv_lib_nsl_gethostbyname=no
7547fi
7548rm -f core conftest.err conftest.$ac_objext \
7549 conftest$ac_exeext conftest.$ac_ext
7550LIBS=$ac_check_lib_save_LIBS
7551fi
7552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7553$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
d0ac1c44 7554if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6bb11ab3
L
7555 cat >>confdefs.h <<_ACEOF
7556#define HAVE_LIBNSL 1
7557_ACEOF
7558
7559 LIBS="-lnsl $LIBS"
7560
7561fi
7562
7563
7564# BFD conditionally uses zlib, so we must link it in if libbfd does, by
7565# using the same condition.
7566
aadc9410 7567 # Use the system's zlib library.
7fed4b0b
L
7568 zlibdir="-L\$(top_builddir)/../zlib"
7569 zlibinc="-I\$(top_srcdir)/../zlib"
6bb11ab3 7570
aadc9410
MF
7571# Check whether --with-system-zlib was given.
7572if test "${with_system_zlib+set}" = set; then :
0ceaf1ec
L
7573 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7574 zlibdir=
7575 zlibinc=
7576 fi
6bb11ab3
L
7577
7578fi
7579
6bb11ab3 7580
6bb11ab3 7581
6bb11ab3
L
7582
7583
7584# BFD uses libdl when when plugins enabled.
7585
faa743bb
RM
7586 maybe_plugins=no
7587 for ac_header in dlfcn.h
7588do :
7589 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7590"
d0ac1c44 7591if test "x$ac_cv_header_dlfcn_h" = xyes; then :
faa743bb
RM
7592 cat >>confdefs.h <<_ACEOF
7593#define HAVE_DLFCN_H 1
7594_ACEOF
7595 maybe_plugins=yes
7596fi
7597
7598done
7599
7600 for ac_header in windows.h
7601do :
7602 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
7603"
d0ac1c44 7604if test "x$ac_cv_header_windows_h" = xyes; then :
faa743bb
RM
7605 cat >>confdefs.h <<_ACEOF
7606#define HAVE_WINDOWS_H 1
7607_ACEOF
7608 maybe_plugins=yes
7609fi
7610
7611done
7612
7613
7614 # Check whether --enable-plugins was given.
6bb11ab3
L
7615if test "${enable_plugins+set}" = set; then :
7616 enableval=$enable_plugins; case "${enableval}" in
faa743bb
RM
7617 no) plugins=no ;;
7618 *) plugins=yes
7619 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 7620 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
faa743bb
RM
7621 fi ;;
7622 esac
6bb11ab3 7623else
faa743bb
RM
7624 plugins=$maybe_plugins
7625
6bb11ab3
L
7626fi
7627
2974be62 7628 if test "$plugins" = "yes"; then
37f980dc
SM
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
7630$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 7631if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7632 $as_echo_n "(cached) " >&6
7633else
7634 ac_func_search_save_LIBS=$LIBS
7635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636/* end confdefs.h. */
7637
7638/* Override any GCC internal prototype to avoid an error.
7639 Use char because int might match the return type of a GCC
7640 builtin and then its argument prototype would still apply. */
7641#ifdef __cplusplus
7642extern "C"
7643#endif
37f980dc 7644char dlsym ();
2974be62
AM
7645int
7646main ()
7647{
37f980dc 7648return dlsym ();
2974be62
AM
7649 ;
7650 return 0;
7651}
7652_ACEOF
7653for ac_lib in '' dl; do
7654 if test -z "$ac_lib"; then
7655 ac_res="none required"
7656 else
7657 ac_res=-l$ac_lib
7658 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7659 fi
7660 if ac_fn_c_try_link "$LINENO"; then :
37f980dc 7661 ac_cv_search_dlsym=$ac_res
2974be62
AM
7662fi
7663rm -f core conftest.err conftest.$ac_objext \
7664 conftest$ac_exeext
d0ac1c44 7665 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7666 break
7667fi
7668done
d0ac1c44 7669if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7670
7671else
37f980dc 7672 ac_cv_search_dlsym=no
2974be62
AM
7673fi
7674rm conftest.$ac_ext
7675LIBS=$ac_func_search_save_LIBS
7676fi
37f980dc
SM
7677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
7678$as_echo "$ac_cv_search_dlsym" >&6; }
7679ac_res=$ac_cv_search_dlsym
2974be62
AM
7680if test "$ac_res" != no; then :
7681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7682
7683fi
7684
7685 fi
6bb11ab3
L
7686
7687 if test "$plugins" = yes; then
7688 PLUGINS_TRUE=
7689 PLUGINS_FALSE='#'
7690else
7691 PLUGINS_TRUE='#'
7692 PLUGINS_FALSE=
7693fi
7694
7695
7696
7697
7698
7699# Set options
7700enable_dlopen=yes
7701
7702
7703
7704
7705 enable_win32_dll=no
7706
7707
7708 # Check whether --enable-shared was given.
7709if test "${enable_shared+set}" = set; then :
7710 enableval=$enable_shared; p=${PACKAGE-default}
7711 case $enableval in
7712 yes) enable_shared=yes ;;
7713 no) enable_shared=no ;;
7714 *)
7715 enable_shared=no
7716 # Look at the argument we got. We use all the common list separators.
7717 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7718 for pkg in $enableval; do
7719 IFS="$lt_save_ifs"
7720 if test "X$pkg" = "X$p"; then
7721 enable_shared=yes
7722 fi
7723 done
7724 IFS="$lt_save_ifs"
7725 ;;
7726 esac
7727else
7728 enable_shared=yes
7729fi
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739 # Check whether --enable-static was given.
7740if test "${enable_static+set}" = set; then :
7741 enableval=$enable_static; p=${PACKAGE-default}
7742 case $enableval in
7743 yes) enable_static=yes ;;
7744 no) enable_static=no ;;
7745 *)
7746 enable_static=no
7747 # Look at the argument we got. We use all the common list separators.
7748 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7749 for pkg in $enableval; do
7750 IFS="$lt_save_ifs"
7751 if test "X$pkg" = "X$p"; then
7752 enable_static=yes
7753 fi
7754 done
7755 IFS="$lt_save_ifs"
7756 ;;
7757 esac
7758else
7759 enable_static=yes
7760fi
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771# Check whether --with-pic was given.
7772if test "${with_pic+set}" = set; then :
7773 withval=$with_pic; pic_mode="$withval"
7774else
7775 pic_mode=default
7776fi
7777
7778
7779test -z "$pic_mode" && pic_mode=default
7780
7781
7782
7783
7784
7785
7786
7787 # Check whether --enable-fast-install was given.
7788if test "${enable_fast_install+set}" = set; then :
7789 enableval=$enable_fast_install; p=${PACKAGE-default}
7790 case $enableval in
7791 yes) enable_fast_install=yes ;;
7792 no) enable_fast_install=no ;;
7793 *)
7794 enable_fast_install=no
7795 # Look at the argument we got. We use all the common list separators.
7796 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7797 for pkg in $enableval; do
7798 IFS="$lt_save_ifs"
7799 if test "X$pkg" = "X$p"; then
7800 enable_fast_install=yes
7801 fi
7802 done
7803 IFS="$lt_save_ifs"
7804 ;;
7805 esac
7806else
7807 enable_fast_install=yes
7808fi
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820# This can be used to rebuild libtool when needed
7821LIBTOOL_DEPS="$ltmain"
7822
7823# Always use our own libtool.
7824LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851test -z "$LN_S" && LN_S="ln -s"
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866if test -n "${ZSH_VERSION+set}" ; then
7867 setopt NO_GLOB_SUBST
7868fi
7869
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7871$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 7872if ${lt_cv_objdir+:} false; then :
6bb11ab3
L
7873 $as_echo_n "(cached) " >&6
7874else
7875 rm -f .libs 2>/dev/null
7876mkdir .libs 2>/dev/null
7877if test -d .libs; then
7878 lt_cv_objdir=.libs
7879else
7880 # MS-DOS does not allow filenames that begin with a dot.
7881 lt_cv_objdir=_libs
7882fi
7883rmdir .libs 2>/dev/null
7884fi
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7886$as_echo "$lt_cv_objdir" >&6; }
7887objdir=$lt_cv_objdir
7888
7889
7890
7891
7892
7893cat >>confdefs.h <<_ACEOF
7894#define LT_OBJDIR "$lt_cv_objdir/"
7895_ACEOF
7896
7897
7898
7899
7900case $host_os in
7901aix3*)
7902 # AIX sometimes has problems with the GCC collect2 program. For some
7903 # reason, if we set the COLLECT_NAMES environment variable, the problems
7904 # vanish in a puff of smoke.
7905 if test "X${COLLECT_NAMES+set}" != Xset; then
7906 COLLECT_NAMES=
7907 export COLLECT_NAMES
7908 fi
7909 ;;
7910esac
7911
7912# Global variables:
7913ofile=libtool
7914can_build_shared=yes
7915
7916# All known linkers require a `.a' archive for static linking (except MSVC,
7917# which needs '.lib').
7918libext=a
7919
7920with_gnu_ld="$lt_cv_prog_gnu_ld"
7921
7922old_CC="$CC"
7923old_CFLAGS="$CFLAGS"
7924
7925# Set sane defaults for various variables
7926test -z "$CC" && CC=cc
7927test -z "$LTCC" && LTCC=$CC
7928test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7929test -z "$LD" && LD=ld
7930test -z "$ac_objext" && ac_objext=o
7931
7932for cc_temp in $compiler""; do
7933 case $cc_temp in
7934 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7935 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7936 \-*) ;;
7937 *) break;;
7938 esac
7939done
7940cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7941
7942
7943# Only perform the check for file, if the check method requires it
7944test -z "$MAGIC_CMD" && MAGIC_CMD=file
7945case $deplibs_check_method in
7946file_magic*)
7947 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7949$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 7950if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
7951 $as_echo_n "(cached) " >&6
7952else
7953 case $MAGIC_CMD in
7954[\\/*] | ?:[\\/]*)
7955 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7956 ;;
7957*)
7958 lt_save_MAGIC_CMD="$MAGIC_CMD"
7959 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7960 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7961 for ac_dir in $ac_dummy; do
7962 IFS="$lt_save_ifs"
7963 test -z "$ac_dir" && ac_dir=.
7964 if test -f $ac_dir/${ac_tool_prefix}file; then
7965 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7966 if test -n "$file_magic_test_file"; then
7967 case $deplibs_check_method in
7968 "file_magic "*)
7969 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7970 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7971 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7972 $EGREP "$file_magic_regex" > /dev/null; then
7973 :
7974 else
7975 cat <<_LT_EOF 1>&2
7976
7977*** Warning: the command libtool uses to detect shared libraries,
7978*** $file_magic_cmd, produces output that libtool cannot recognize.
7979*** The result is that libtool may fail to recognize shared libraries
7980*** as such. This will affect the creation of libtool libraries that
7981*** depend on shared libraries, but programs linked with such libtool
7982*** libraries will work regardless of this problem. Nevertheless, you
7983*** may want to report the problem to your system manager and/or to
7984*** bug-libtool@gnu.org
7985
7986_LT_EOF
7987 fi ;;
7988 esac
7989 fi
7990 break
7991 fi
7992 done
7993 IFS="$lt_save_ifs"
7994 MAGIC_CMD="$lt_save_MAGIC_CMD"
7995 ;;
7996esac
7997fi
7998
7999MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8000if test -n "$MAGIC_CMD"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8002$as_echo "$MAGIC_CMD" >&6; }
8003else
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005$as_echo "no" >&6; }
8006fi
8007
8008
8009
8010
8011
8012if test -z "$lt_cv_path_MAGIC_CMD"; then
8013 if test -n "$ac_tool_prefix"; then
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8015$as_echo_n "checking for file... " >&6; }
d0ac1c44 8016if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
8017 $as_echo_n "(cached) " >&6
8018else
8019 case $MAGIC_CMD in
8020[\\/*] | ?:[\\/]*)
8021 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8022 ;;
8023*)
8024 lt_save_MAGIC_CMD="$MAGIC_CMD"
8025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8026 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8027 for ac_dir in $ac_dummy; do
8028 IFS="$lt_save_ifs"
8029 test -z "$ac_dir" && ac_dir=.
8030 if test -f $ac_dir/file; then
8031 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8032 if test -n "$file_magic_test_file"; then
8033 case $deplibs_check_method in
8034 "file_magic "*)
8035 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8036 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8037 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8038 $EGREP "$file_magic_regex" > /dev/null; then
8039 :
8040 else
8041 cat <<_LT_EOF 1>&2
8042
8043*** Warning: the command libtool uses to detect shared libraries,
8044*** $file_magic_cmd, produces output that libtool cannot recognize.
8045*** The result is that libtool may fail to recognize shared libraries
8046*** as such. This will affect the creation of libtool libraries that
8047*** depend on shared libraries, but programs linked with such libtool
8048*** libraries will work regardless of this problem. Nevertheless, you
8049*** may want to report the problem to your system manager and/or to
8050*** bug-libtool@gnu.org
8051
8052_LT_EOF
8053 fi ;;
8054 esac
8055 fi
8056 break
8057 fi
8058 done
8059 IFS="$lt_save_ifs"
8060 MAGIC_CMD="$lt_save_MAGIC_CMD"
8061 ;;
8062esac
8063fi
8064
8065MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8066if test -n "$MAGIC_CMD"; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8068$as_echo "$MAGIC_CMD" >&6; }
8069else
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071$as_echo "no" >&6; }
8072fi
8073
8074
8075 else
8076 MAGIC_CMD=:
8077 fi
8078fi
8079
8080 fi
8081 ;;
8082esac
8083
8084# Use C for the default configuration in the libtool script
8085
8086lt_save_CC="$CC"
8087ac_ext=c
8088ac_cpp='$CPP $CPPFLAGS'
8089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8091ac_compiler_gnu=$ac_cv_c_compiler_gnu
8092
8093
8094# Source file extension for C test sources.
8095ac_ext=c
8096
8097# Object file extension for compiled C test sources.
8098objext=o
8099objext=$objext
8100
8101# Code to be used in simple compile tests
8102lt_simple_compile_test_code="int some_variable = 0;"
8103
8104# Code to be used in simple link tests
8105lt_simple_link_test_code='int main(){return(0);}'
8106
8107
8108
8109
8110
8111
8112
8113# If no C compiler was specified, use CC.
8114LTCC=${LTCC-"$CC"}
8115
8116# If no C compiler flags were specified, use CFLAGS.
8117LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8118
8119# Allow CC to be a program name with arguments.
8120compiler=$CC
8121
8122# Save the default compiler, since it gets overwritten when the other
8123# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8124compiler_DEFAULT=$CC
8125
8126# save warnings/boilerplate of simple test code
8127ac_outfile=conftest.$ac_objext
8128echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8129eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8130_lt_compiler_boilerplate=`cat conftest.err`
8131$RM conftest*
8132
8133ac_outfile=conftest.$ac_objext
8134echo "$lt_simple_link_test_code" >conftest.$ac_ext
8135eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8136_lt_linker_boilerplate=`cat conftest.err`
8137$RM -r conftest*
8138
8139
8140## CAVEAT EMPTOR:
8141## There is no encapsulation within the following macros, do not change
8142## the running order or otherwise move them around unless you know exactly
8143## what you are doing...
8144if test -n "$compiler"; then
8145
8146lt_prog_compiler_no_builtin_flag=
8147
8148if test "$GCC" = yes; then
8149 case $cc_basename in
8150 nvcc*)
8151 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8152 *)
8153 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8154 esac
8155
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8157$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 8158if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6bb11ab3
L
8159 $as_echo_n "(cached) " >&6
8160else
8161 lt_cv_prog_compiler_rtti_exceptions=no
8162 ac_outfile=conftest.$ac_objext
8163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8164 lt_compiler_flag="-fno-rtti -fno-exceptions"
8165 # Insert the option either (1) after the last *FLAGS variable, or
8166 # (2) before a word containing "conftest.", or (3) at the end.
8167 # Note that $ac_compile itself does not contain backslashes and begins
8168 # with a dollar sign (not a hyphen), so the echo should work correctly.
8169 # The option is referenced via a variable to avoid confusing sed.
8170 lt_compile=`echo "$ac_compile" | $SED \
8171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8173 -e 's:$: $lt_compiler_flag:'`
8174 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8175 (eval "$lt_compile" 2>conftest.err)
8176 ac_status=$?
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 if (exit $ac_status) && test -s "$ac_outfile"; then
8180 # The compiler can only warn and ignore the option if not recognized
8181 # So say no if there are warnings other than the usual output.
8182 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8183 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8184 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8185 lt_cv_prog_compiler_rtti_exceptions=yes
8186 fi
8187 fi
8188 $RM conftest*
8189
8190fi
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8192$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8193
8194if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8195 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8196else
8197 :
8198fi
8199
8200fi
8201
8202
8203
8204
8205
8206
8207 lt_prog_compiler_wl=
8208lt_prog_compiler_pic=
8209lt_prog_compiler_static=
8210
8211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8212$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8213
8214 if test "$GCC" = yes; then
8215 lt_prog_compiler_wl='-Wl,'
8216 lt_prog_compiler_static='-static'
8217
8218 case $host_os in
8219 aix*)
8220 # All AIX code is PIC.
8221 if test "$host_cpu" = ia64; then
8222 # AIX 5 now supports IA64 processor
8223 lt_prog_compiler_static='-Bstatic'
8224 fi
8225 lt_prog_compiler_pic='-fPIC'
8226 ;;
8227
8228 amigaos*)
8229 case $host_cpu in
8230 powerpc)
8231 # see comment about AmigaOS4 .so support
8232 lt_prog_compiler_pic='-fPIC'
8233 ;;
8234 m68k)
8235 # FIXME: we need at least 68020 code to build shared libraries, but
8236 # adding the `-m68020' flag to GCC prevents building anything better,
8237 # like `-m68040'.
8238 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8239 ;;
8240 esac
8241 ;;
8242
8243 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8244 # PIC is the default for these OSes.
8245 ;;
8246
8247 mingw* | cygwin* | pw32* | os2* | cegcc*)
8248 # This hack is so that the source file can tell whether it is being
8249 # built for inclusion in a dll (and should export symbols for example).
8250 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8251 # (--disable-auto-import) libraries
8252 lt_prog_compiler_pic='-DDLL_EXPORT'
8253 ;;
8254
8255 darwin* | rhapsody*)
8256 # PIC is the default on this platform
8257 # Common symbols not allowed in MH_DYLIB files
8258 lt_prog_compiler_pic='-fno-common'
8259 ;;
8260
8261 haiku*)
8262 # PIC is the default for Haiku.
8263 # The "-static" flag exists, but is broken.
8264 lt_prog_compiler_static=
8265 ;;
8266
8267 hpux*)
8268 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8269 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8270 # sets the default TLS model and affects inlining.
8271 case $host_cpu in
8272 hppa*64*)
8273 # +Z the default
8274 ;;
8275 *)
8276 lt_prog_compiler_pic='-fPIC'
8277 ;;
8278 esac
8279 ;;
8280
8281 interix[3-9]*)
8282 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8283 # Instead, we relocate shared libraries at runtime.
8284 ;;
8285
8286 msdosdjgpp*)
8287 # Just because we use GCC doesn't mean we suddenly get shared libraries
8288 # on systems that don't support them.
8289 lt_prog_compiler_can_build_shared=no
8290 enable_shared=no
8291 ;;
8292
8293 *nto* | *qnx*)
8294 # QNX uses GNU C++, but need to define -shared option too, otherwise
8295 # it will coredump.
8296 lt_prog_compiler_pic='-fPIC -shared'
8297 ;;
8298
8299 sysv4*MP*)
8300 if test -d /usr/nec; then
8301 lt_prog_compiler_pic=-Kconform_pic
8302 fi
8303 ;;
8304
8305 *)
8306 lt_prog_compiler_pic='-fPIC'
8307 ;;
8308 esac
8309
8310 case $cc_basename in
8311 nvcc*) # Cuda Compiler Driver 2.2
8312 lt_prog_compiler_wl='-Xlinker '
8313 lt_prog_compiler_pic='-Xcompiler -fPIC'
8314 ;;
8315 esac
8316 else
8317 # PORTME Check for flag to pass linker flags through the system compiler.
8318 case $host_os in
8319 aix*)
8320 lt_prog_compiler_wl='-Wl,'
8321 if test "$host_cpu" = ia64; then
8322 # AIX 5 now supports IA64 processor
8323 lt_prog_compiler_static='-Bstatic'
8324 else
8325 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8326 fi
8327 ;;
8328
8329 mingw* | cygwin* | pw32* | os2* | cegcc*)
8330 # This hack is so that the source file can tell whether it is being
8331 # built for inclusion in a dll (and should export symbols for example).
8332 lt_prog_compiler_pic='-DDLL_EXPORT'
8333 ;;
8334
8335 hpux9* | hpux10* | hpux11*)
8336 lt_prog_compiler_wl='-Wl,'
8337 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8338 # not for PA HP-UX.
8339 case $host_cpu in
8340 hppa*64*|ia64*)
8341 # +Z the default
8342 ;;
8343 *)
8344 lt_prog_compiler_pic='+Z'
8345 ;;
8346 esac
8347 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8348 lt_prog_compiler_static='${wl}-a ${wl}archive'
8349 ;;
8350
8351 irix5* | irix6* | nonstopux*)
8352 lt_prog_compiler_wl='-Wl,'
8353 # PIC (with -KPIC) is the default.
8354 lt_prog_compiler_static='-non_shared'
8355 ;;
8356
8357 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8358 case $cc_basename in
8359 # old Intel for x86_64 which still supported -KPIC.
8360 ecc*)
8361 lt_prog_compiler_wl='-Wl,'
8362 lt_prog_compiler_pic='-KPIC'
8363 lt_prog_compiler_static='-static'
8364 ;;
8365 # icc used to be incompatible with GCC.
8366 # ICC 10 doesn't accept -KPIC any more.
8367 icc* | ifort*)
8368 lt_prog_compiler_wl='-Wl,'
8369 lt_prog_compiler_pic='-fPIC'
8370 lt_prog_compiler_static='-static'
8371 ;;
8372 # Lahey Fortran 8.1.
8373 lf95*)
8374 lt_prog_compiler_wl='-Wl,'
8375 lt_prog_compiler_pic='--shared'
8376 lt_prog_compiler_static='--static'
8377 ;;
8378 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8379 # Portland Group compilers (*not* the Pentium gcc compiler,
8380 # which looks to be a dead project)
8381 lt_prog_compiler_wl='-Wl,'
8382 lt_prog_compiler_pic='-fpic'
8383 lt_prog_compiler_static='-Bstatic'
8384 ;;
8385 ccc*)
8386 lt_prog_compiler_wl='-Wl,'
8387 # All Alpha code is PIC.
8388 lt_prog_compiler_static='-non_shared'
8389 ;;
8390 xl* | bgxl* | bgf* | mpixl*)
8391 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8392 lt_prog_compiler_wl='-Wl,'
8393 lt_prog_compiler_pic='-qpic'
8394 lt_prog_compiler_static='-qstaticlink'
8395 ;;
8396 *)
8397 case `$CC -V 2>&1 | sed 5q` in
8398 *Sun\ F* | *Sun*Fortran*)
8399 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8400 lt_prog_compiler_pic='-KPIC'
8401 lt_prog_compiler_static='-Bstatic'
8402 lt_prog_compiler_wl=''
8403 ;;
8404 *Sun\ C*)
8405 # Sun C 5.9
8406 lt_prog_compiler_pic='-KPIC'
8407 lt_prog_compiler_static='-Bstatic'
8408 lt_prog_compiler_wl='-Wl,'
8409 ;;
8410 esac
8411 ;;
8412 esac
8413 ;;
8414
8415 newsos6)
8416 lt_prog_compiler_pic='-KPIC'
8417 lt_prog_compiler_static='-Bstatic'
8418 ;;
8419
8420 *nto* | *qnx*)
8421 # QNX uses GNU C++, but need to define -shared option too, otherwise
8422 # it will coredump.
8423 lt_prog_compiler_pic='-fPIC -shared'
8424 ;;
8425
8426 osf3* | osf4* | osf5*)
8427 lt_prog_compiler_wl='-Wl,'
8428 # All OSF/1 code is PIC.
8429 lt_prog_compiler_static='-non_shared'
8430 ;;
8431
8432 rdos*)
8433 lt_prog_compiler_static='-non_shared'
8434 ;;
8435
8436 solaris*)
8437 lt_prog_compiler_pic='-KPIC'
8438 lt_prog_compiler_static='-Bstatic'
8439 case $cc_basename in
8440 f77* | f90* | f95*)
8441 lt_prog_compiler_wl='-Qoption ld ';;
8442 *)
8443 lt_prog_compiler_wl='-Wl,';;
8444 esac
8445 ;;
8446
8447 sunos4*)
8448 lt_prog_compiler_wl='-Qoption ld '
8449 lt_prog_compiler_pic='-PIC'
8450 lt_prog_compiler_static='-Bstatic'
8451 ;;
8452
8453 sysv4 | sysv4.2uw2* | sysv4.3*)
8454 lt_prog_compiler_wl='-Wl,'
8455 lt_prog_compiler_pic='-KPIC'
8456 lt_prog_compiler_static='-Bstatic'
8457 ;;
8458
8459 sysv4*MP*)
8460 if test -d /usr/nec ;then
8461 lt_prog_compiler_pic='-Kconform_pic'
8462 lt_prog_compiler_static='-Bstatic'
8463 fi
8464 ;;
8465
8466 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8467 lt_prog_compiler_wl='-Wl,'
8468 lt_prog_compiler_pic='-KPIC'
8469 lt_prog_compiler_static='-Bstatic'
8470 ;;
8471
8472 unicos*)
8473 lt_prog_compiler_wl='-Wl,'
8474 lt_prog_compiler_can_build_shared=no
8475 ;;
8476
8477 uts4*)
8478 lt_prog_compiler_pic='-pic'
8479 lt_prog_compiler_static='-Bstatic'
8480 ;;
8481
8482 *)
8483 lt_prog_compiler_can_build_shared=no
8484 ;;
8485 esac
8486 fi
8487
8488case $host_os in
8489 # For platforms which do not support PIC, -DPIC is meaningless:
8490 *djgpp*)
8491 lt_prog_compiler_pic=
8492 ;;
8493 *)
8494 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8495 ;;
8496esac
8497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8498$as_echo "$lt_prog_compiler_pic" >&6; }
8499
8500
8501
8502
8503
8504
8505#
8506# Check to make sure the PIC flag actually works.
8507#
8508if test -n "$lt_prog_compiler_pic"; then
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8510$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 8511if ${lt_cv_prog_compiler_pic_works+:} false; then :
6bb11ab3
L
8512 $as_echo_n "(cached) " >&6
8513else
8514 lt_cv_prog_compiler_pic_works=no
8515 ac_outfile=conftest.$ac_objext
8516 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8517 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8518 # Insert the option either (1) after the last *FLAGS variable, or
8519 # (2) before a word containing "conftest.", or (3) at the end.
8520 # Note that $ac_compile itself does not contain backslashes and begins
8521 # with a dollar sign (not a hyphen), so the echo should work correctly.
8522 # The option is referenced via a variable to avoid confusing sed.
8523 lt_compile=`echo "$ac_compile" | $SED \
8524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8526 -e 's:$: $lt_compiler_flag:'`
8527 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8528 (eval "$lt_compile" 2>conftest.err)
8529 ac_status=$?
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 if (exit $ac_status) && test -s "$ac_outfile"; then
8533 # The compiler can only warn and ignore the option if not recognized
8534 # So say no if there are warnings other than the usual output.
8535 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8536 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8537 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8538 lt_cv_prog_compiler_pic_works=yes
8539 fi
8540 fi
8541 $RM conftest*
8542
8543fi
8544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8545$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8546
8547if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8548 case $lt_prog_compiler_pic in
8549 "" | " "*) ;;
8550 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8551 esac
8552else
8553 lt_prog_compiler_pic=
8554 lt_prog_compiler_can_build_shared=no
8555fi
8556
8557fi
8558
8559
8560
8561
8562
8563
8564#
8565# Check to make sure the static flag actually works.
8566#
8567wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8569$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 8570if ${lt_cv_prog_compiler_static_works+:} false; then :
6bb11ab3
L
8571 $as_echo_n "(cached) " >&6
8572else
8573 lt_cv_prog_compiler_static_works=no
8574 save_LDFLAGS="$LDFLAGS"
8575 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8576 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8577 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8578 # The linker can only warn and ignore the option if not recognized
8579 # So say no if there are warnings
8580 if test -s conftest.err; then
8581 # Append any errors to the config.log.
8582 cat conftest.err 1>&5
8583 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8585 if diff conftest.exp conftest.er2 >/dev/null; then
8586 lt_cv_prog_compiler_static_works=yes
8587 fi
8588 else
8589 lt_cv_prog_compiler_static_works=yes
8590 fi
8591 fi
8592 $RM -r conftest*
8593 LDFLAGS="$save_LDFLAGS"
8594
8595fi
8596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8597$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8598
8599if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8600 :
8601else
8602 lt_prog_compiler_static=
8603fi
8604
8605
8606
8607
8608
8609
8610
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8612$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8613if ${lt_cv_prog_compiler_c_o+:} false; then :
6bb11ab3
L
8614 $as_echo_n "(cached) " >&6
8615else
8616 lt_cv_prog_compiler_c_o=no
8617 $RM -r conftest 2>/dev/null
8618 mkdir conftest
8619 cd conftest
8620 mkdir out
8621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8622
8623 lt_compiler_flag="-o out/conftest2.$ac_objext"
8624 # Insert the option either (1) after the last *FLAGS variable, or
8625 # (2) before a word containing "conftest.", or (3) at the end.
8626 # Note that $ac_compile itself does not contain backslashes and begins
8627 # with a dollar sign (not a hyphen), so the echo should work correctly.
8628 lt_compile=`echo "$ac_compile" | $SED \
8629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8631 -e 's:$: $lt_compiler_flag:'`
8632 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8633 (eval "$lt_compile" 2>out/conftest.err)
8634 ac_status=$?
8635 cat out/conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8638 then
8639 # The compiler can only warn and ignore the option if not recognized
8640 # So say no if there are warnings
8641 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8642 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8643 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8644 lt_cv_prog_compiler_c_o=yes
8645 fi
8646 fi
8647 chmod u+w . 2>&5
8648 $RM conftest*
8649 # SGI C++ compiler will create directory out/ii_files/ for
8650 # template instantiation
8651 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8652 $RM out/* && rmdir out
8653 cd ..
8654 $RM -r conftest
8655 $RM conftest*
8656
8657fi
8658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8659$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8660
8661
8662
8663
8664
8665
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8667$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8668if ${lt_cv_prog_compiler_c_o+:} false; then :
6bb11ab3
L
8669 $as_echo_n "(cached) " >&6
8670else
8671 lt_cv_prog_compiler_c_o=no
8672 $RM -r conftest 2>/dev/null
8673 mkdir conftest
8674 cd conftest
8675 mkdir out
8676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8677
8678 lt_compiler_flag="-o out/conftest2.$ac_objext"
8679 # Insert the option either (1) after the last *FLAGS variable, or
8680 # (2) before a word containing "conftest.", or (3) at the end.
8681 # Note that $ac_compile itself does not contain backslashes and begins
8682 # with a dollar sign (not a hyphen), so the echo should work correctly.
8683 lt_compile=`echo "$ac_compile" | $SED \
8684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8686 -e 's:$: $lt_compiler_flag:'`
8687 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8688 (eval "$lt_compile" 2>out/conftest.err)
8689 ac_status=$?
8690 cat out/conftest.err >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8693 then
8694 # The compiler can only warn and ignore the option if not recognized
8695 # So say no if there are warnings
8696 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8697 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8698 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8699 lt_cv_prog_compiler_c_o=yes
8700 fi
8701 fi
8702 chmod u+w . 2>&5
8703 $RM conftest*
8704 # SGI C++ compiler will create directory out/ii_files/ for
8705 # template instantiation
8706 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8707 $RM out/* && rmdir out
8708 cd ..
8709 $RM -r conftest
8710 $RM conftest*
8711
8712fi
8713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8714$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8715
8716
8717
8718
8719hard_links="nottested"
8720if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8721 # do not overwrite the value of need_locks provided by the user
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8723$as_echo_n "checking if we can lock with hard links... " >&6; }
8724 hard_links=yes
8725 $RM conftest*
8726 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8727 touch conftest.a
8728 ln conftest.a conftest.b 2>&5 || hard_links=no
8729 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8731$as_echo "$hard_links" >&6; }
8732 if test "$hard_links" = no; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8734$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8735 need_locks=warn
8736 fi
8737else
8738 need_locks=no
8739fi
8740
8741
8742
8743
8744
8745
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8747$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8748
8749 runpath_var=
8750 allow_undefined_flag=
8751 always_export_symbols=no
8752 archive_cmds=
8753 archive_expsym_cmds=
8754 compiler_needs_object=no
8755 enable_shared_with_static_runtimes=no
8756 export_dynamic_flag_spec=
8757 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8758 hardcode_automatic=no
8759 hardcode_direct=no
8760 hardcode_direct_absolute=no
8761 hardcode_libdir_flag_spec=
8762 hardcode_libdir_flag_spec_ld=
8763 hardcode_libdir_separator=
8764 hardcode_minus_L=no
8765 hardcode_shlibpath_var=unsupported
8766 inherit_rpath=no
8767 link_all_deplibs=unknown
8768 module_cmds=
8769 module_expsym_cmds=
8770 old_archive_from_new_cmds=
8771 old_archive_from_expsyms_cmds=
8772 thread_safe_flag_spec=
8773 whole_archive_flag_spec=
8774 # include_expsyms should be a list of space-separated symbols to be *always*
8775 # included in the symbol list
8776 include_expsyms=
8777 # exclude_expsyms can be an extended regexp of symbols to exclude
8778 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8779 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8780 # as well as any symbol that contains `d'.
8781 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8782 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8783 # platforms (ab)use it in PIC code, but their linkers get confused if
8784 # the symbol is explicitly referenced. Since portable code cannot
8785 # rely on this symbol name, it's probably fine to never include it in
8786 # preloaded symbol tables.
8787 # Exclude shared library initialization/finalization symbols.
8788 extract_expsyms_cmds=
8789
8790 case $host_os in
8791 cygwin* | mingw* | pw32* | cegcc*)
8792 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8793 # When not using gcc, we currently assume that we are using
8794 # Microsoft Visual C++.
8795 if test "$GCC" != yes; then
8796 with_gnu_ld=no
8797 fi
8798 ;;
8799 interix*)
8800 # we just hope/assume this is gcc and not c89 (= MSVC++)
8801 with_gnu_ld=yes
8802 ;;
8803 openbsd*)
8804 with_gnu_ld=no
8805 ;;
8806 esac
8807
8808 ld_shlibs=yes
8809
8810 # On some targets, GNU ld is compatible enough with the native linker
8811 # that we're better off using the native interface for both.
8812 lt_use_gnu_ld_interface=no
8813 if test "$with_gnu_ld" = yes; then
8814 case $host_os in
8815 aix*)
8816 # The AIX port of GNU ld has always aspired to compatibility
8817 # with the native linker. However, as the warning in the GNU ld
8818 # block says, versions before 2.19.5* couldn't really create working
8819 # shared libraries, regardless of the interface used.
8820 case `$LD -v 2>&1` in
8821 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8822 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8823 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8824 *)
8825 lt_use_gnu_ld_interface=yes
8826 ;;
8827 esac
8828 ;;
8829 *)
8830 lt_use_gnu_ld_interface=yes
8831 ;;
8832 esac
8833 fi
8834
8835 if test "$lt_use_gnu_ld_interface" = yes; then
8836 # If archive_cmds runs LD, not CC, wlarc should be empty
8837 wlarc='${wl}'
8838
8839 # Set some defaults for GNU ld with shared library support. These
8840 # are reset later if shared libraries are not supported. Putting them
8841 # here allows them to be overridden if necessary.
8842 runpath_var=LD_RUN_PATH
8843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8844 export_dynamic_flag_spec='${wl}--export-dynamic'
8845 # ancient GNU ld didn't support --whole-archive et. al.
8846 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8847 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8848 else
8849 whole_archive_flag_spec=
8850 fi
8851 supports_anon_versioning=no
8852 case `$LD -v 2>&1` in
8853 *GNU\ gold*) supports_anon_versioning=yes ;;
8854 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8855 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8856 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8857 *\ 2.11.*) ;; # other 2.11 versions
8858 *) supports_anon_versioning=yes ;;
8859 esac
8860
8861 # See if GNU ld supports shared libraries.
8862 case $host_os in
8863 aix[3-9]*)
8864 # On AIX/PPC, the GNU linker is very broken
8865 if test "$host_cpu" != ia64; then
8866 ld_shlibs=no
8867 cat <<_LT_EOF 1>&2
8868
8869*** Warning: the GNU linker, at least up to release 2.19, is reported
8870*** to be unable to reliably create shared libraries on AIX.
8871*** Therefore, libtool is disabling shared libraries support. If you
8872*** really care for shared libraries, you may want to install binutils
8873*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8874*** You will then need to restart the configuration process.
8875
8876_LT_EOF
8877 fi
8878 ;;
8879
8880 amigaos*)
8881 case $host_cpu in
8882 powerpc)
8883 # see comment about AmigaOS4 .so support
8884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8885 archive_expsym_cmds=''
8886 ;;
8887 m68k)
8888 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)'
8889 hardcode_libdir_flag_spec='-L$libdir'
8890 hardcode_minus_L=yes
8891 ;;
8892 esac
8893 ;;
8894
8895 beos*)
8896 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8897 allow_undefined_flag=unsupported
8898 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8899 # support --undefined. This deserves some investigation. FIXME
8900 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8901 else
8902 ld_shlibs=no
8903 fi
8904 ;;
8905
8906 cygwin* | mingw* | pw32* | cegcc*)
8907 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8908 # as there is no search path for DLLs.
8909 hardcode_libdir_flag_spec='-L$libdir'
8910 export_dynamic_flag_spec='${wl}--export-all-symbols'
8911 allow_undefined_flag=unsupported
8912 always_export_symbols=no
8913 enable_shared_with_static_runtimes=yes
8914 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8915
8916 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8917 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8918 # If the export-symbols file already is a .def file (1st line
8919 # is EXPORTS), use it as is; otherwise, prepend...
8920 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8921 cp $export_symbols $output_objdir/$soname.def;
8922 else
8923 echo EXPORTS > $output_objdir/$soname.def;
8924 cat $export_symbols >> $output_objdir/$soname.def;
8925 fi~
8926 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8927 else
8928 ld_shlibs=no
8929 fi
8930 ;;
8931
8932 haiku*)
8933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8934 link_all_deplibs=yes
8935 ;;
8936
8937 interix[3-9]*)
8938 hardcode_direct=no
8939 hardcode_shlibpath_var=no
8940 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8941 export_dynamic_flag_spec='${wl}-E'
8942 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8943 # Instead, shared libraries are loaded at an image base (0x10000000 by
8944 # default) and relocated if they conflict, which is a slow very memory
8945 # consuming and fragmenting process. To avoid this, we pick a random,
8946 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8947 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8948 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8949 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'
8950 ;;
8951
8952 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8953 tmp_diet=no
8954 if test "$host_os" = linux-dietlibc; then
8955 case $cc_basename in
8956 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8957 esac
8958 fi
8959 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8960 && test "$tmp_diet" = no
8961 then
ae7d0cac 8962 tmp_addflag=' $pic_flag'
6bb11ab3
L
8963 tmp_sharedflag='-shared'
8964 case $cc_basename,$host_cpu in
8965 pgcc*) # Portland Group C compiler
8966 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'
8967 tmp_addflag=' $pic_flag'
8968 ;;
8969 pgf77* | pgf90* | pgf95* | pgfortran*)
8970 # Portland Group f77 and f90 compilers
8971 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'
8972 tmp_addflag=' $pic_flag -Mnomain' ;;
8973 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8974 tmp_addflag=' -i_dynamic' ;;
8975 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8976 tmp_addflag=' -i_dynamic -nofor_main' ;;
8977 ifc* | ifort*) # Intel Fortran compiler
8978 tmp_addflag=' -nofor_main' ;;
8979 lf95*) # Lahey Fortran 8.1
8980 whole_archive_flag_spec=
8981 tmp_sharedflag='--shared' ;;
8982 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8983 tmp_sharedflag='-qmkshrobj'
8984 tmp_addflag= ;;
8985 nvcc*) # Cuda Compiler Driver 2.2
8986 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'
8987 compiler_needs_object=yes
8988 ;;
8989 esac
8990 case `$CC -V 2>&1 | sed 5q` in
8991 *Sun\ C*) # Sun C 5.9
8992 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'
8993 compiler_needs_object=yes
8994 tmp_sharedflag='-G' ;;
8995 *Sun\ F*) # Sun Fortran 8.3
8996 tmp_sharedflag='-G' ;;
8997 esac
8998 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8999
9000 if test "x$supports_anon_versioning" = xyes; then
9001 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9002 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9003 echo "local: *; };" >> $output_objdir/$libname.ver~
9004 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9005 fi
9006
9007 case $cc_basename in
9008 xlf* | bgf* | bgxlf* | mpixlf*)
9009 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9010 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9011 hardcode_libdir_flag_spec=
9012 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9013 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9014 if test "x$supports_anon_versioning" = xyes; then
9015 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9016 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9017 echo "local: *; };" >> $output_objdir/$libname.ver~
9018 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9019 fi
9020 ;;
9021 esac
9022 else
9023 ld_shlibs=no
9024 fi
9025 ;;
9026
9027 netbsd*)
9028 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9029 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9030 wlarc=
9031 else
9032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9033 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9034 fi
9035 ;;
9036
9037 solaris*)
9038 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9039 ld_shlibs=no
9040 cat <<_LT_EOF 1>&2
9041
9042*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9043*** create shared libraries on Solaris systems. Therefore, libtool
9044*** is disabling shared libraries support. We urge you to upgrade GNU
9045*** binutils to release 2.9.1 or newer. Another option is to modify
9046*** your PATH or compiler configuration so that the native linker is
9047*** used, and then restart.
9048
9049_LT_EOF
9050 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9052 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9053 else
9054 ld_shlibs=no
9055 fi
9056 ;;
9057
9058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9059 case `$LD -v 2>&1` in
9060 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9061 ld_shlibs=no
9062 cat <<_LT_EOF 1>&2
9063
9064*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9065*** reliably create shared libraries on SCO systems. Therefore, libtool
9066*** is disabling shared libraries support. We urge you to upgrade GNU
9067*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9068*** your PATH or compiler configuration so that the native linker is
9069*** used, and then restart.
9070
9071_LT_EOF
9072 ;;
9073 *)
9074 # For security reasons, it is highly recommended that you always
9075 # use absolute paths for naming shared libraries, and exclude the
9076 # DT_RUNPATH tag from executables and libraries. But doing so
9077 # requires that you compile everything twice, which is a pain.
9078 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9079 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9081 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9082 else
9083 ld_shlibs=no
9084 fi
9085 ;;
9086 esac
9087 ;;
9088
9089 sunos4*)
9090 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9091 wlarc=
9092 hardcode_direct=yes
9093 hardcode_shlibpath_var=no
9094 ;;
9095
9096 *)
9097 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9099 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9100 else
9101 ld_shlibs=no
9102 fi
9103 ;;
9104 esac
9105
9106 if test "$ld_shlibs" = no; then
9107 runpath_var=
9108 hardcode_libdir_flag_spec=
9109 export_dynamic_flag_spec=
9110 whole_archive_flag_spec=
9111 fi
9112 else
9113 # PORTME fill in a description of your system's linker (not GNU ld)
9114 case $host_os in
9115 aix3*)
9116 allow_undefined_flag=unsupported
9117 always_export_symbols=yes
9118 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'
9119 # Note: this linker hardcodes the directories in LIBPATH if there
9120 # are no directories specified by -L.
9121 hardcode_minus_L=yes
9122 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9123 # Neither direct hardcoding nor static linking is supported with a
9124 # broken collect2.
9125 hardcode_direct=unsupported
9126 fi
9127 ;;
9128
9129 aix[4-9]*)
9130 if test "$host_cpu" = ia64; then
9131 # On IA64, the linker does run time linking by default, so we don't
9132 # have to do anything special.
9133 aix_use_runtimelinking=no
9134 exp_sym_flag='-Bexport'
9135 no_entry_flag=""
9136 else
9137 # If we're using GNU nm, then we don't want the "-C" option.
9138 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9139 # Also, AIX nm treats weak defined symbols like other global
9140 # defined symbols, whereas GNU nm marks them as "W".
9141 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9142 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'
9143 else
5c887dd5 9144 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
9145 fi
9146 aix_use_runtimelinking=no
9147
9148 # Test if we are trying to use run time linking or normal
9149 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9150 # need to do runtime linking.
9151 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9152 for ld_flag in $LDFLAGS; do
9153 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9154 aix_use_runtimelinking=yes
9155 break
9156 fi
9157 done
9158 ;;
9159 esac
9160
9161 exp_sym_flag='-bexport'
9162 no_entry_flag='-bnoentry'
9163 fi
9164
9165 # When large executables or shared objects are built, AIX ld can
9166 # have problems creating the table of contents. If linking a library
9167 # or program results in "error TOC overflow" add -mminimal-toc to
9168 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9169 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9170
9171 archive_cmds=''
9172 hardcode_direct=yes
9173 hardcode_direct_absolute=yes
9174 hardcode_libdir_separator=':'
9175 link_all_deplibs=yes
9176 file_list_spec='${wl}-f,'
9177
9178 if test "$GCC" = yes; then
9179 case $host_os in aix4.[012]|aix4.[012].*)
9180 # We only want to do this on AIX 4.2 and lower, the check
9181 # below for broken collect2 doesn't work under 4.3+
9182 collect2name=`${CC} -print-prog-name=collect2`
9183 if test -f "$collect2name" &&
9184 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9185 then
9186 # We have reworked collect2
9187 :
9188 else
9189 # We have old collect2
9190 hardcode_direct=unsupported
9191 # It fails to find uninstalled libraries when the uninstalled
9192 # path is not listed in the libpath. Setting hardcode_minus_L
9193 # to unsupported forces relinking
9194 hardcode_minus_L=yes
9195 hardcode_libdir_flag_spec='-L$libdir'
9196 hardcode_libdir_separator=
9197 fi
9198 ;;
9199 esac
9200 shared_flag='-shared'
9201 if test "$aix_use_runtimelinking" = yes; then
9202 shared_flag="$shared_flag "'${wl}-G'
9203 fi
9204 else
9205 # not using gcc
9206 if test "$host_cpu" = ia64; then
9207 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9208 # chokes on -Wl,-G. The following line is correct:
9209 shared_flag='-G'
9210 else
9211 if test "$aix_use_runtimelinking" = yes; then
9212 shared_flag='${wl}-G'
9213 else
9214 shared_flag='${wl}-bM:SRE'
9215 fi
9216 fi
9217 fi
9218
9219 export_dynamic_flag_spec='${wl}-bexpall'
9220 # It seems that -bexpall does not export symbols beginning with
9221 # underscore (_), so it is better to generate a list of symbols to export.
9222 always_export_symbols=yes
9223 if test "$aix_use_runtimelinking" = yes; then
9224 # Warning - without using the other runtime loading flags (-brtl),
9225 # -berok will link without error, but may produce a broken library.
9226 allow_undefined_flag='-berok'
9227 # Determine the default libpath from the value encoded in an
9228 # empty executable.
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230/* end confdefs.h. */
9231
9232int
9233main ()
9234{
9235
9236 ;
9237 return 0;
ef016f83 9238}
6bb11ab3
L
9239_ACEOF
9240if ac_fn_c_try_link "$LINENO"; then :
9241
9242lt_aix_libpath_sed='
9243 /Import File Strings/,/^$/ {
9244 /^0/ {
9245 s/^0 *\(.*\)$/\1/
9246 p
9247 }
9248 }'
9249aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9250# Check for a 64-bit object if we didn't find anything.
9251if test -z "$aix_libpath"; then
9252 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9253fi
9254fi
9255rm -f core conftest.err conftest.$ac_objext \
9256 conftest$ac_exeext conftest.$ac_ext
9257if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9258
9259 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9260 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"
9261 else
9262 if test "$host_cpu" = ia64; then
9263 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9264 allow_undefined_flag="-z nodefs"
9265 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"
9266 else
9267 # Determine the default libpath from the value encoded in an
9268 # empty executable.
9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270/* end confdefs.h. */
9271
9272int
9273main ()
ef016f83 9274{
6bb11ab3
L
9275
9276 ;
9277 return 0;
ef016f83 9278}
6bb11ab3
L
9279_ACEOF
9280if ac_fn_c_try_link "$LINENO"; then :
9281
9282lt_aix_libpath_sed='
9283 /Import File Strings/,/^$/ {
9284 /^0/ {
9285 s/^0 *\(.*\)$/\1/
9286 p
9287 }
9288 }'
9289aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9290# Check for a 64-bit object if we didn't find anything.
9291if test -z "$aix_libpath"; then
9292 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9293fi
9294fi
9295rm -f core conftest.err conftest.$ac_objext \
9296 conftest$ac_exeext conftest.$ac_ext
9297if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9298
9299 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9300 # Warning - without using the other run time loading flags,
9301 # -berok will link without error, but may produce a broken library.
9302 no_undefined_flag=' ${wl}-bernotok'
9303 allow_undefined_flag=' ${wl}-berok'
9304 if test "$with_gnu_ld" = yes; then
9305 # We only use this code for GNU lds that support --whole-archive.
9306 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9307 else
9308 # Exported symbols can be pulled into shared objects from archives
9309 whole_archive_flag_spec='$convenience'
9310 fi
9311 archive_cmds_need_lc=yes
9312 # This is similar to how AIX traditionally builds its shared libraries.
9313 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'
9314 fi
9315 fi
9316 ;;
9317
9318 amigaos*)
9319 case $host_cpu in
9320 powerpc)
9321 # see comment about AmigaOS4 .so support
9322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9323 archive_expsym_cmds=''
9324 ;;
9325 m68k)
9326 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)'
9327 hardcode_libdir_flag_spec='-L$libdir'
9328 hardcode_minus_L=yes
9329 ;;
9330 esac
9331 ;;
9332
9333 bsdi[45]*)
9334 export_dynamic_flag_spec=-rdynamic
9335 ;;
9336
9337 cygwin* | mingw* | pw32* | cegcc*)
9338 # When not using gcc, we currently assume that we are using
9339 # Microsoft Visual C++.
9340 # hardcode_libdir_flag_spec is actually meaningless, as there is
9341 # no search path for DLLs.
9342 hardcode_libdir_flag_spec=' '
9343 allow_undefined_flag=unsupported
9344 # Tell ltmain to make .lib files, not .a files.
9345 libext=lib
9346 # Tell ltmain to make .dll files, not .so files.
9347 shrext_cmds=".dll"
9348 # FIXME: Setting linknames here is a bad hack.
9349 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9350 # The linker will automatically build a .lib file if we build a DLL.
9351 old_archive_from_new_cmds='true'
9352 # FIXME: Should let the user specify the lib program.
9353 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9354 fix_srcfile_path='`cygpath -w "$srcfile"`'
9355 enable_shared_with_static_runtimes=yes
9356 ;;
9357
9358 darwin* | rhapsody*)
9359
9360
9361 archive_cmds_need_lc=no
9362 hardcode_direct=no
9363 hardcode_automatic=yes
9364 hardcode_shlibpath_var=unsupported
9365 if test "$lt_cv_ld_force_load" = "yes"; then
9366 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\"`'
9367 else
9368 whole_archive_flag_spec=''
9369 fi
9370 link_all_deplibs=yes
9371 allow_undefined_flag="$_lt_dar_allow_undefined"
9372 case $cc_basename in
9373 ifort*) _lt_dar_can_shared=yes ;;
9374 *) _lt_dar_can_shared=$GCC ;;
9375 esac
9376 if test "$_lt_dar_can_shared" = "yes"; then
9377 output_verbose_link_cmd=func_echo_all
9378 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9379 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9380 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}"
9381 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}"
9382
9383 else
9384 ld_shlibs=no
9385 fi
9386
9387 ;;
9388
9389 dgux*)
9390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9391 hardcode_libdir_flag_spec='-L$libdir'
9392 hardcode_shlibpath_var=no
9393 ;;
9394
9395 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9396 # support. Future versions do this automatically, but an explicit c++rt0.o
9397 # does not break anything, and helps significantly (at the cost of a little
9398 # extra space).
9399 freebsd2.2*)
9400 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9401 hardcode_libdir_flag_spec='-R$libdir'
9402 hardcode_direct=yes
9403 hardcode_shlibpath_var=no
9404 ;;
9405
9406 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9407 freebsd2.*)
9408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9409 hardcode_direct=yes
9410 hardcode_minus_L=yes
9411 hardcode_shlibpath_var=no
9412 ;;
9413
9414 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9415 freebsd* | dragonfly*)
9416 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9417 hardcode_libdir_flag_spec='-R$libdir'
9418 hardcode_direct=yes
9419 hardcode_shlibpath_var=no
9420 ;;
9421
9422 hpux9*)
9423 if test "$GCC" = yes; then
9424 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'
9425 else
9426 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'
9427 fi
9428 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9429 hardcode_libdir_separator=:
9430 hardcode_direct=yes
9431
9432 # hardcode_minus_L: Not really in the search PATH,
9433 # but as the default location of the library.
9434 hardcode_minus_L=yes
9435 export_dynamic_flag_spec='${wl}-E'
9436 ;;
9437
9438 hpux10*)
9439 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9440 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9441 else
9442 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9443 fi
9444 if test "$with_gnu_ld" = no; then
9445 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9446 hardcode_libdir_flag_spec_ld='+b $libdir'
9447 hardcode_libdir_separator=:
9448 hardcode_direct=yes
9449 hardcode_direct_absolute=yes
9450 export_dynamic_flag_spec='${wl}-E'
9451 # hardcode_minus_L: Not really in the search PATH,
9452 # but as the default location of the library.
9453 hardcode_minus_L=yes
9454 fi
9455 ;;
9456
9457 hpux11*)
9458 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9459 case $host_cpu in
9460 hppa*64*)
9461 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9462 ;;
9463 ia64*)
9464 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9465 ;;
9466 *)
9467 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9468 ;;
9469 esac
9470 else
9471 case $host_cpu in
9472 hppa*64*)
9473 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9474 ;;
9475 ia64*)
9476 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9477 ;;
9478 *)
9479
9480 # Older versions of the 11.00 compiler do not understand -b yet
9481 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9483$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 9484if ${lt_cv_prog_compiler__b+:} false; then :
6bb11ab3
L
9485 $as_echo_n "(cached) " >&6
9486else
9487 lt_cv_prog_compiler__b=no
9488 save_LDFLAGS="$LDFLAGS"
9489 LDFLAGS="$LDFLAGS -b"
9490 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9491 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9492 # The linker can only warn and ignore the option if not recognized
9493 # So say no if there are warnings
9494 if test -s conftest.err; then
9495 # Append any errors to the config.log.
9496 cat conftest.err 1>&5
9497 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9499 if diff conftest.exp conftest.er2 >/dev/null; then
9500 lt_cv_prog_compiler__b=yes
9501 fi
9502 else
9503 lt_cv_prog_compiler__b=yes
9504 fi
9505 fi
9506 $RM -r conftest*
9507 LDFLAGS="$save_LDFLAGS"
9508
9509fi
9510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9511$as_echo "$lt_cv_prog_compiler__b" >&6; }
9512
9513if test x"$lt_cv_prog_compiler__b" = xyes; then
9514 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9515else
9516 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9517fi
9518
9519 ;;
9520 esac
9521 fi
9522 if test "$with_gnu_ld" = no; then
9523 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9524 hardcode_libdir_separator=:
9525
9526 case $host_cpu in
9527 hppa*64*|ia64*)
9528 hardcode_direct=no
9529 hardcode_shlibpath_var=no
9530 ;;
9531 *)
9532 hardcode_direct=yes
9533 hardcode_direct_absolute=yes
9534 export_dynamic_flag_spec='${wl}-E'
9535
9536 # hardcode_minus_L: Not really in the search PATH,
9537 # but as the default location of the library.
9538 hardcode_minus_L=yes
9539 ;;
9540 esac
9541 fi
9542 ;;
9543
9544 irix5* | irix6* | nonstopux*)
9545 if test "$GCC" = yes; then
9546 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'
9547 # Try to use the -exported_symbol ld option, if it does not
9548 # work, assume that -exports_file does not work either and
9549 # implicitly export all symbols.
9550 save_LDFLAGS="$LDFLAGS"
9551 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553/* end confdefs.h. */
9554int foo(void) {}
9555_ACEOF
9556if ac_fn_c_try_link "$LINENO"; then :
9557 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'
9558
9559fi
9560rm -f core conftest.err conftest.$ac_objext \
9561 conftest$ac_exeext conftest.$ac_ext
9562 LDFLAGS="$save_LDFLAGS"
9563 else
9564 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'
9565 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'
9566 fi
9567 archive_cmds_need_lc='no'
9568 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9569 hardcode_libdir_separator=:
9570 inherit_rpath=yes
9571 link_all_deplibs=yes
9572 ;;
9573
9574 netbsd*)
9575 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9576 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9577 else
9578 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9579 fi
9580 hardcode_libdir_flag_spec='-R$libdir'
9581 hardcode_direct=yes
9582 hardcode_shlibpath_var=no
9583 ;;
9584
9585 newsos6)
9586 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9587 hardcode_direct=yes
9588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9589 hardcode_libdir_separator=:
9590 hardcode_shlibpath_var=no
9591 ;;
9592
9593 *nto* | *qnx*)
9594 ;;
9595
9596 openbsd*)
9597 if test -f /usr/libexec/ld.so; then
9598 hardcode_direct=yes
9599 hardcode_shlibpath_var=no
9600 hardcode_direct_absolute=yes
9601 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9602 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9603 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9604 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9605 export_dynamic_flag_spec='${wl}-E'
9606 else
9607 case $host_os in
9608 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9609 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9610 hardcode_libdir_flag_spec='-R$libdir'
9611 ;;
9612 *)
9613 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9614 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9615 ;;
9616 esac
9617 fi
9618 else
9619 ld_shlibs=no
9620 fi
9621 ;;
9622
9623 os2*)
9624 hardcode_libdir_flag_spec='-L$libdir'
9625 hardcode_minus_L=yes
9626 allow_undefined_flag=unsupported
9627 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'
9628 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9629 ;;
9630
9631 osf3*)
9632 if test "$GCC" = yes; then
9633 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9634 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'
9635 else
9636 allow_undefined_flag=' -expect_unresolved \*'
9637 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'
9638 fi
9639 archive_cmds_need_lc='no'
9640 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9641 hardcode_libdir_separator=:
9642 ;;
9643
9644 osf4* | osf5*) # as osf3* with the addition of -msym flag
9645 if test "$GCC" = yes; then
9646 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9647 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'
9648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9649 else
9650 allow_undefined_flag=' -expect_unresolved \*'
9651 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'
9652 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~
9653 $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'
9654
9655 # Both c and cxx compiler support -rpath directly
9656 hardcode_libdir_flag_spec='-rpath $libdir'
9657 fi
9658 archive_cmds_need_lc='no'
9659 hardcode_libdir_separator=:
9660 ;;
9661
9662 solaris*)
9663 no_undefined_flag=' -z defs'
9664 if test "$GCC" = yes; then
9665 wlarc='${wl}'
9666 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9667 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9668 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9669 else
9670 case `$CC -V 2>&1` in
9671 *"Compilers 5.0"*)
9672 wlarc=''
9673 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9674 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9675 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9676 ;;
9677 *)
9678 wlarc='${wl}'
9679 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9680 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9681 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9682 ;;
9683 esac
9684 fi
9685 hardcode_libdir_flag_spec='-R$libdir'
9686 hardcode_shlibpath_var=no
9687 case $host_os in
9688 solaris2.[0-5] | solaris2.[0-5].*) ;;
9689 *)
9690 # The compiler driver will combine and reorder linker options,
9691 # but understands `-z linker_flag'. GCC discards it without `$wl',
9692 # but is careful enough not to reorder.
9693 # Supported since Solaris 2.6 (maybe 2.5.1?)
9694 if test "$GCC" = yes; then
9695 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9696 else
9697 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9698 fi
9699 ;;
9700 esac
9701 link_all_deplibs=yes
9702 ;;
9703
9704 sunos4*)
9705 if test "x$host_vendor" = xsequent; then
9706 # Use $CC to link under sequent, because it throws in some extra .o
9707 # files that make .init and .fini sections work.
9708 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9709 else
9710 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9711 fi
9712 hardcode_libdir_flag_spec='-L$libdir'
9713 hardcode_direct=yes
9714 hardcode_minus_L=yes
9715 hardcode_shlibpath_var=no
9716 ;;
9717
9718 sysv4)
9719 case $host_vendor in
9720 sni)
9721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9722 hardcode_direct=yes # is this really true???
9723 ;;
9724 siemens)
9725 ## LD is ld it makes a PLAMLIB
9726 ## CC just makes a GrossModule.
9727 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9728 reload_cmds='$CC -r -o $output$reload_objs'
9729 hardcode_direct=no
9730 ;;
9731 motorola)
9732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9733 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9734 ;;
9735 esac
9736 runpath_var='LD_RUN_PATH'
9737 hardcode_shlibpath_var=no
9738 ;;
9739
9740 sysv4.3*)
9741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9742 hardcode_shlibpath_var=no
9743 export_dynamic_flag_spec='-Bexport'
9744 ;;
9745
9746 sysv4*MP*)
9747 if test -d /usr/nec; then
9748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9749 hardcode_shlibpath_var=no
9750 runpath_var=LD_RUN_PATH
9751 hardcode_runpath_var=yes
9752 ld_shlibs=yes
9753 fi
9754 ;;
9755
9756 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9757 no_undefined_flag='${wl}-z,text'
9758 archive_cmds_need_lc=no
9759 hardcode_shlibpath_var=no
9760 runpath_var='LD_RUN_PATH'
9761
9762 if test "$GCC" = yes; then
9763 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9764 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9765 else
9766 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9767 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9768 fi
9769 ;;
9770
9771 sysv5* | sco3.2v5* | sco5v6*)
9772 # Note: We can NOT use -z defs as we might desire, because we do not
9773 # link with -lc, and that would cause any symbols used from libc to
9774 # always be unresolved, which means just about no library would
9775 # ever link correctly. If we're not using GNU ld we use -z text
9776 # though, which does catch some bad symbols but isn't as heavy-handed
9777 # as -z defs.
9778 no_undefined_flag='${wl}-z,text'
9779 allow_undefined_flag='${wl}-z,nodefs'
9780 archive_cmds_need_lc=no
9781 hardcode_shlibpath_var=no
9782 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9783 hardcode_libdir_separator=':'
9784 link_all_deplibs=yes
9785 export_dynamic_flag_spec='${wl}-Bexport'
9786 runpath_var='LD_RUN_PATH'
9787
9788 if test "$GCC" = yes; then
9789 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9790 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9791 else
9792 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9793 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9794 fi
9795 ;;
9796
9797 uts4*)
9798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9799 hardcode_libdir_flag_spec='-L$libdir'
9800 hardcode_shlibpath_var=no
9801 ;;
9802
9803 *)
9804 ld_shlibs=no
9805 ;;
9806 esac
9807
9808 if test x$host_vendor = xsni; then
9809 case $host in
9810 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9811 export_dynamic_flag_spec='${wl}-Blargedynsym'
9812 ;;
9813 esac
9814 fi
9815 fi
9816
9817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9818$as_echo "$ld_shlibs" >&6; }
9819test "$ld_shlibs" = no && can_build_shared=no
9820
9821with_gnu_ld=$with_gnu_ld
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837#
9838# Do we need to explicitly link libc?
9839#
9840case "x$archive_cmds_need_lc" in
9841x|xyes)
9842 # Assume -lc should be added
9843 archive_cmds_need_lc=yes
9844
9845 if test "$enable_shared" = yes && test "$GCC" = yes; then
9846 case $archive_cmds in
9847 *'~'*)
9848 # FIXME: we may have to deal with multi-command sequences.
9849 ;;
9850 '$CC '*)
9851 # Test whether the compiler implicitly links with -lc since on some
9852 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9853 # to ld, don't add -lc before -lgcc.
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9855$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 9856if ${lt_cv_archive_cmds_need_lc+:} false; then :
6bb11ab3
L
9857 $as_echo_n "(cached) " >&6
9858else
9859 $RM conftest*
9860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9861
9862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9863 (eval $ac_compile) 2>&5
9864 ac_status=$?
9865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9866 test $ac_status = 0; } 2>conftest.err; then
9867 soname=conftest
9868 lib=conftest
9869 libobjs=conftest.$ac_objext
9870 deplibs=
9871 wl=$lt_prog_compiler_wl
9872 pic_flag=$lt_prog_compiler_pic
9873 compiler_flags=-v
9874 linker_flags=-v
9875 verstring=
9876 output_objdir=.
9877 libname=conftest
9878 lt_save_allow_undefined_flag=$allow_undefined_flag
9879 allow_undefined_flag=
9880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9881 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9882 ac_status=$?
9883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9884 test $ac_status = 0; }
9885 then
9886 lt_cv_archive_cmds_need_lc=no
9887 else
9888 lt_cv_archive_cmds_need_lc=yes
9889 fi
9890 allow_undefined_flag=$lt_save_allow_undefined_flag
9891 else
9892 cat conftest.err 1>&5
9893 fi
9894 $RM conftest*
9895
9896fi
9897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9898$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9899 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9900 ;;
9901 esac
9902 fi
9903 ;;
9904esac
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
ef016f83 10025
ef016f83 10026
ef016f83 10027
ef016f83 10028
ef016f83 10029
ef016f83 10030
ef016f83 10031
6ffe910a 10032
6ffe910a
MF
10033
10034
6ffe910a 10035
ef016f83 10036
ef016f83
MF
10037
10038
ef016f83
MF
10039
10040
10041
6ffe910a 10042
ef016f83
MF
10043
10044
ef016f83 10045
ef016f83 10046
ef016f83 10047
ef016f83 10048
ef016f83 10049
ef016f83 10050
ef016f83 10051
ef016f83 10052
ef016f83 10053
ef016f83 10054
ef016f83 10055
ef016f83
MF
10056
10057
ef016f83 10058
ef016f83 10059
ef016f83
MF
10060
10061
6bb11ab3
L
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10063$as_echo_n "checking dynamic linker characteristics... " >&6; }
10064
10065if test "$GCC" = yes; then
10066 case $host_os in
10067 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10068 *) lt_awk_arg="/^libraries:/" ;;
10069 esac
10070 case $host_os in
10071 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10072 *) lt_sed_strip_eq="s,=/,/,g" ;;
10073 esac
10074 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10075 case $lt_search_path_spec in
10076 *\;*)
10077 # if the path contains ";" then we assume it to be the separator
10078 # otherwise default to the standard path separator (i.e. ":") - it is
10079 # assumed that no part of a normal pathname contains ";" but that should
10080 # okay in the real world where ";" in dirpaths is itself problematic.
10081 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10082 ;;
10083 *)
10084 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10085 ;;
10086 esac
10087 # Ok, now we have the path, separated by spaces, we can step through it
10088 # and add multilib dir if necessary.
10089 lt_tmp_lt_search_path_spec=
10090 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10091 for lt_sys_path in $lt_search_path_spec; do
10092 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10093 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10094 else
10095 test -d "$lt_sys_path" && \
10096 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
ef016f83 10097 fi
ef016f83 10098 done
6bb11ab3
L
10099 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10100BEGIN {RS=" "; FS="/|\n";} {
10101 lt_foo="";
10102 lt_count=0;
10103 for (lt_i = NF; lt_i > 0; lt_i--) {
10104 if ($lt_i != "" && $lt_i != ".") {
10105 if ($lt_i == "..") {
10106 lt_count++;
10107 } else {
10108 if (lt_count == 0) {
10109 lt_foo="/" $lt_i lt_foo;
10110 } else {
10111 lt_count--;
10112 }
10113 }
10114 }
10115 }
10116 if (lt_foo != "") { lt_freq[lt_foo]++; }
10117 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10118}'`
10119 # AWK program above erroneously prepends '/' to C:/dos/paths
10120 # for these hosts.
10121 case $host_os in
10122 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10123 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10124 esac
10125 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10126else
10127 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10128fi
10129library_names_spec=
10130libname_spec='lib$name'
10131soname_spec=
10132shrext_cmds=".so"
10133postinstall_cmds=
10134postuninstall_cmds=
10135finish_cmds=
10136finish_eval=
10137shlibpath_var=
10138shlibpath_overrides_runpath=unknown
10139version_type=none
10140dynamic_linker="$host_os ld.so"
10141sys_lib_dlsearch_path_spec="/lib /usr/lib"
10142need_lib_prefix=unknown
10143hardcode_into_libs=no
10144
10145# when you set need_version to no, make sure it does not cause -set_version
10146# flags to be left without arguments
10147need_version=unknown
10148
10149case $host_os in
10150aix3*)
10151 version_type=linux
10152 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10153 shlibpath_var=LIBPATH
10154
10155 # AIX 3 has no versioning support, so we append a major version to the name.
10156 soname_spec='${libname}${release}${shared_ext}$major'
10157 ;;
ef016f83 10158
6bb11ab3
L
10159aix[4-9]*)
10160 version_type=linux
10161 need_lib_prefix=no
10162 need_version=no
10163 hardcode_into_libs=yes
10164 if test "$host_cpu" = ia64; then
10165 # AIX 5 supports IA64
10166 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10167 shlibpath_var=LD_LIBRARY_PATH
10168 else
10169 # With GCC up to 2.95.x, collect2 would create an import file
10170 # for dependence libraries. The import file would start with
10171 # the line `#! .'. This would cause the generated library to
10172 # depend on `.', always an invalid library. This was fixed in
10173 # development snapshots of GCC prior to 3.0.
10174 case $host_os in
10175 aix4 | aix4.[01] | aix4.[01].*)
10176 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10177 echo ' yes '
10178 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10179 :
10180 else
10181 can_build_shared=no
10182 fi
10183 ;;
10184 esac
10185 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10186 # soname into executable. Probably we can add versioning support to
10187 # collect2, so additional links can be useful in future.
10188 if test "$aix_use_runtimelinking" = yes; then
10189 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10190 # instead of lib<name>.a to let people know that these are not
10191 # typical AIX shared libraries.
10192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10193 else
10194 # We preserve .a as extension for shared libraries through AIX4.2
10195 # and later when we are not doing run time linking.
10196 library_names_spec='${libname}${release}.a $libname.a'
10197 soname_spec='${libname}${release}${shared_ext}$major'
10198 fi
10199 shlibpath_var=LIBPATH
ef016f83 10200 fi
6bb11ab3 10201 ;;
ef016f83 10202
6bb11ab3
L
10203amigaos*)
10204 case $host_cpu in
10205 powerpc)
10206 # Since July 2007 AmigaOS4 officially supports .so libraries.
10207 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10209 ;;
10210 m68k)
10211 library_names_spec='$libname.ixlibrary $libname.a'
10212 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10213 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'
10214 ;;
10215 esac
10216 ;;
ef016f83 10217
6bb11ab3
L
10218beos*)
10219 library_names_spec='${libname}${shared_ext}'
10220 dynamic_linker="$host_os ld.so"
10221 shlibpath_var=LIBRARY_PATH
10222 ;;
ef016f83 10223
6bb11ab3
L
10224bsdi[45]*)
10225 version_type=linux
10226 need_version=no
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 soname_spec='${libname}${release}${shared_ext}$major'
10229 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10230 shlibpath_var=LD_LIBRARY_PATH
10231 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10232 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10233 # the default ld.so.conf also contains /usr/contrib/lib and
10234 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10235 # libtool to hard-code these into programs
10236 ;;
ef016f83 10237
6bb11ab3
L
10238cygwin* | mingw* | pw32* | cegcc*)
10239 version_type=windows
10240 shrext_cmds=".dll"
10241 need_version=no
10242 need_lib_prefix=no
10243
10244 case $GCC,$host_os in
10245 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10246 library_names_spec='$libname.dll.a'
10247 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10248 postinstall_cmds='base_file=`basename \${file}`~
10249 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10250 dldir=$destdir/`dirname \$dlpath`~
10251 test -d \$dldir || mkdir -p \$dldir~
10252 $install_prog $dir/$dlname \$dldir/$dlname~
10253 chmod a+x \$dldir/$dlname~
10254 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10255 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10256 fi'
10257 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10258 dlpath=$dir/\$dldll~
10259 $RM \$dlpath'
10260 shlibpath_overrides_runpath=yes
10261
10262 case $host_os in
10263 cygwin*)
10264 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10265 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10266
10267 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10268 ;;
10269 mingw* | cegcc*)
10270 # MinGW DLLs use traditional 'lib' prefix
10271 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10272 ;;
10273 pw32*)
10274 # pw32 DLLs use 'pw' prefix rather than 'lib'
10275 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10276 ;;
10277 esac
10278 ;;
ef016f83 10279
6bb11ab3
L
10280 *)
10281 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10282 ;;
10283 esac
10284 dynamic_linker='Win32 ld.exe'
10285 # FIXME: first we should search . and the directory the executable is in
10286 shlibpath_var=PATH
10287 ;;
ef016f83 10288
6bb11ab3
L
10289darwin* | rhapsody*)
10290 dynamic_linker="$host_os dyld"
10291 version_type=darwin
10292 need_lib_prefix=no
10293 need_version=no
10294 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10295 soname_spec='${libname}${release}${major}$shared_ext'
10296 shlibpath_overrides_runpath=yes
10297 shlibpath_var=DYLD_LIBRARY_PATH
10298 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10299
10300 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10301 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10302 ;;
ef016f83 10303
6bb11ab3
L
10304dgux*)
10305 version_type=linux
10306 need_lib_prefix=no
10307 need_version=no
10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10309 soname_spec='${libname}${release}${shared_ext}$major'
10310 shlibpath_var=LD_LIBRARY_PATH
10311 ;;
10312
10313freebsd* | dragonfly*)
10314 # DragonFly does not have aout. When/if they implement a new
10315 # versioning mechanism, adjust this.
10316 if test -x /usr/bin/objformat; then
10317 objformat=`/usr/bin/objformat`
10318 else
10319 case $host_os in
10320 freebsd[23].*) objformat=aout ;;
10321 *) objformat=elf ;;
10322 esac
10323 fi
10324 version_type=freebsd-$objformat
10325 case $version_type in
10326 freebsd-elf*)
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10328 need_version=no
10329 need_lib_prefix=no
10330 ;;
10331 freebsd-*)
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10333 need_version=yes
10334 ;;
10335 esac
10336 shlibpath_var=LD_LIBRARY_PATH
10337 case $host_os in
10338 freebsd2.*)
10339 shlibpath_overrides_runpath=yes
10340 ;;
10341 freebsd3.[01]* | freebsdelf3.[01]*)
10342 shlibpath_overrides_runpath=yes
10343 hardcode_into_libs=yes
10344 ;;
10345 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10346 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10347 shlibpath_overrides_runpath=no
10348 hardcode_into_libs=yes
10349 ;;
10350 *) # from 4.6 on, and DragonFly
10351 shlibpath_overrides_runpath=yes
10352 hardcode_into_libs=yes
10353 ;;
10354 esac
10355 ;;
ef016f83 10356
6bb11ab3
L
10357haiku*)
10358 version_type=linux
10359 need_lib_prefix=no
10360 need_version=no
10361 dynamic_linker="$host_os runtime_loader"
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10363 soname_spec='${libname}${release}${shared_ext}$major'
10364 shlibpath_var=LIBRARY_PATH
10365 shlibpath_overrides_runpath=yes
10366 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10367 hardcode_into_libs=yes
10368 ;;
ef016f83 10369
6bb11ab3
L
10370hpux9* | hpux10* | hpux11*)
10371 # Give a soname corresponding to the major version so that dld.sl refuses to
10372 # link against other versions.
10373 version_type=sunos
10374 need_lib_prefix=no
10375 need_version=no
10376 case $host_cpu in
10377 ia64*)
10378 shrext_cmds='.so'
10379 hardcode_into_libs=yes
10380 dynamic_linker="$host_os dld.so"
10381 shlibpath_var=LD_LIBRARY_PATH
10382 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10384 soname_spec='${libname}${release}${shared_ext}$major'
10385 if test "X$HPUX_IA64_MODE" = X32; then
10386 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10387 else
10388 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10389 fi
10390 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10391 ;;
10392 hppa*64*)
10393 shrext_cmds='.sl'
10394 hardcode_into_libs=yes
10395 dynamic_linker="$host_os dld.sl"
10396 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10397 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10399 soname_spec='${libname}${release}${shared_ext}$major'
10400 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10401 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10402 ;;
10403 *)
10404 shrext_cmds='.sl'
10405 dynamic_linker="$host_os dld.sl"
10406 shlibpath_var=SHLIB_PATH
10407 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10409 soname_spec='${libname}${release}${shared_ext}$major'
10410 ;;
10411 esac
10412 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10413 postinstall_cmds='chmod 555 $lib'
10414 # or fails outright, so override atomically:
10415 install_override_mode=555
10416 ;;
ef016f83 10417
6bb11ab3
L
10418interix[3-9]*)
10419 version_type=linux
10420 need_lib_prefix=no
10421 need_version=no
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10423 soname_spec='${libname}${release}${shared_ext}$major'
10424 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10425 shlibpath_var=LD_LIBRARY_PATH
10426 shlibpath_overrides_runpath=no
10427 hardcode_into_libs=yes
10428 ;;
ef016f83 10429
6bb11ab3
L
10430irix5* | irix6* | nonstopux*)
10431 case $host_os in
10432 nonstopux*) version_type=nonstopux ;;
10433 *)
10434 if test "$lt_cv_prog_gnu_ld" = yes; then
10435 version_type=linux
10436 else
10437 version_type=irix
10438 fi ;;
10439 esac
10440 need_lib_prefix=no
10441 need_version=no
10442 soname_spec='${libname}${release}${shared_ext}$major'
10443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10444 case $host_os in
10445 irix5* | nonstopux*)
10446 libsuff= shlibsuff=
10447 ;;
10448 *)
10449 case $LD in # libtool.m4 will add one of these switches to LD
10450 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10451 libsuff= shlibsuff= libmagic=32-bit;;
10452 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10453 libsuff=32 shlibsuff=N32 libmagic=N32;;
10454 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10455 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10456 *) libsuff= shlibsuff= libmagic=never-match;;
10457 esac
10458 ;;
10459 esac
10460 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10461 shlibpath_overrides_runpath=no
10462 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10463 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10464 hardcode_into_libs=yes
10465 ;;
ef016f83 10466
6bb11ab3
L
10467# No shared lib support for Linux oldld, aout, or coff.
10468linux*oldld* | linux*aout* | linux*coff*)
10469 dynamic_linker=no
10470 ;;
ef016f83 10471
6bb11ab3 10472# This must be Linux ELF.
46f900c0 10473linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6bb11ab3
L
10474 version_type=linux
10475 need_lib_prefix=no
10476 need_version=no
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10478 soname_spec='${libname}${release}${shared_ext}$major'
10479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10480 shlibpath_var=LD_LIBRARY_PATH
10481 shlibpath_overrides_runpath=no
10482
10483 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 10484 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
6bb11ab3 10485 $as_echo_n "(cached) " >&6
ef016f83 10486else
6bb11ab3
L
10487 lt_cv_shlibpath_overrides_runpath=no
10488 save_LDFLAGS=$LDFLAGS
10489 save_libdir=$libdir
10490 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10491 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef016f83 10493/* end confdefs.h. */
ef016f83 10494
ef016f83
MF
10495int
10496main ()
10497{
6bb11ab3
L
10498
10499 ;
ef016f83
MF
10500 return 0;
10501}
10502_ACEOF
6bb11ab3
L
10503if ac_fn_c_try_link "$LINENO"; then :
10504 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10505 lt_cv_shlibpath_overrides_runpath=yes
ef016f83 10506fi
ef016f83 10507fi
6bb11ab3
L
10508rm -f core conftest.err conftest.$ac_objext \
10509 conftest$ac_exeext conftest.$ac_ext
10510 LDFLAGS=$save_LDFLAGS
10511 libdir=$save_libdir
ef016f83
MF
10512
10513fi
ef016f83 10514
6bb11ab3 10515 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
ef016f83 10516
6bb11ab3
L
10517 # This implies no fast_install, which is unacceptable.
10518 # Some rework will be needed to allow for fast_install
10519 # before this can be enabled.
10520 hardcode_into_libs=yes
ef016f83 10521
6bb11ab3
L
10522 # Append ld.so.conf contents to the search path
10523 if test -f /etc/ld.so.conf; then
10524 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' ' '`
10525 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10526 fi
ef016f83 10527
6bb11ab3
L
10528 # We used to test for /lib/ld.so.1 and disable shared libraries on
10529 # powerpc, because MkLinux only supported shared libraries with the
10530 # GNU dynamic linker. Since this was broken with cross compilers,
10531 # most powerpc-linux boxes support dynamic linking these days and
10532 # people can always --disable-shared, the test was removed, and we
10533 # assume the GNU/Linux dynamic linker is in use.
10534 dynamic_linker='GNU/Linux ld.so'
10535 ;;
ef016f83 10536
6bb11ab3
L
10537netbsd*)
10538 version_type=sunos
10539 need_lib_prefix=no
10540 need_version=no
10541 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10544 dynamic_linker='NetBSD (a.out) ld.so'
10545 else
10546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10547 soname_spec='${libname}${release}${shared_ext}$major'
10548 dynamic_linker='NetBSD ld.elf_so'
10549 fi
10550 shlibpath_var=LD_LIBRARY_PATH
10551 shlibpath_overrides_runpath=yes
10552 hardcode_into_libs=yes
10553 ;;
ef016f83 10554
6bb11ab3
L
10555newsos6)
10556 version_type=linux
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10558 shlibpath_var=LD_LIBRARY_PATH
10559 shlibpath_overrides_runpath=yes
10560 ;;
ef016f83 10561
6bb11ab3
L
10562*nto* | *qnx*)
10563 version_type=qnx
10564 need_lib_prefix=no
10565 need_version=no
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567 soname_spec='${libname}${release}${shared_ext}$major'
10568 shlibpath_var=LD_LIBRARY_PATH
10569 shlibpath_overrides_runpath=no
10570 hardcode_into_libs=yes
10571 dynamic_linker='ldqnx.so'
10572 ;;
6ffe910a 10573
6bb11ab3
L
10574openbsd*)
10575 version_type=sunos
10576 sys_lib_dlsearch_path_spec="/usr/lib"
10577 need_lib_prefix=no
10578 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10579 case $host_os in
10580 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10581 *) need_version=no ;;
10582 esac
10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10585 shlibpath_var=LD_LIBRARY_PATH
10586 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10587 case $host_os in
10588 openbsd2.[89] | openbsd2.[89].*)
10589 shlibpath_overrides_runpath=no
10590 ;;
10591 *)
10592 shlibpath_overrides_runpath=yes
10593 ;;
10594 esac
10595 else
10596 shlibpath_overrides_runpath=yes
10597 fi
10598 ;;
2232061b 10599
6bb11ab3
L
10600os2*)
10601 libname_spec='$name'
10602 shrext_cmds=".dll"
10603 need_lib_prefix=no
10604 library_names_spec='$libname${shared_ext} $libname.a'
10605 dynamic_linker='OS/2 ld.exe'
10606 shlibpath_var=LIBPATH
10607 ;;
2232061b 10608
6bb11ab3
L
10609osf3* | osf4* | osf5*)
10610 version_type=osf
10611 need_lib_prefix=no
10612 need_version=no
10613 soname_spec='${libname}${release}${shared_ext}$major'
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615 shlibpath_var=LD_LIBRARY_PATH
10616 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10617 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10618 ;;
2232061b 10619
6bb11ab3
L
10620rdos*)
10621 dynamic_linker=no
10622 ;;
2232061b 10623
6bb11ab3
L
10624solaris*)
10625 version_type=linux
10626 need_lib_prefix=no
10627 need_version=no
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 shlibpath_var=LD_LIBRARY_PATH
10631 shlibpath_overrides_runpath=yes
10632 hardcode_into_libs=yes
10633 # ldd complains unless libraries are executable
10634 postinstall_cmds='chmod +x $lib'
10635 ;;
2232061b 10636
6bb11ab3
L
10637sunos4*)
10638 version_type=sunos
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10640 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10641 shlibpath_var=LD_LIBRARY_PATH
10642 shlibpath_overrides_runpath=yes
10643 if test "$with_gnu_ld" = yes; then
10644 need_lib_prefix=no
10645 fi
10646 need_version=yes
10647 ;;
2232061b 10648
6bb11ab3
L
10649sysv4 | sysv4.3*)
10650 version_type=linux
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652 soname_spec='${libname}${release}${shared_ext}$major'
10653 shlibpath_var=LD_LIBRARY_PATH
10654 case $host_vendor in
10655 sni)
10656 shlibpath_overrides_runpath=no
10657 need_lib_prefix=no
10658 runpath_var=LD_RUN_PATH
10659 ;;
10660 siemens)
10661 need_lib_prefix=no
10662 ;;
10663 motorola)
10664 need_lib_prefix=no
10665 need_version=no
10666 shlibpath_overrides_runpath=no
10667 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10668 ;;
10669 esac
10670 ;;
2232061b 10671
6bb11ab3
L
10672sysv4*MP*)
10673 if test -d /usr/nec ;then
10674 version_type=linux
10675 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10676 soname_spec='$libname${shared_ext}.$major'
10677 shlibpath_var=LD_LIBRARY_PATH
10678 fi
10679 ;;
2232061b 10680
6bb11ab3
L
10681sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10682 version_type=freebsd-elf
10683 need_lib_prefix=no
10684 need_version=no
10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10686 soname_spec='${libname}${release}${shared_ext}$major'
10687 shlibpath_var=LD_LIBRARY_PATH
10688 shlibpath_overrides_runpath=yes
10689 hardcode_into_libs=yes
10690 if test "$with_gnu_ld" = yes; then
10691 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10692 else
10693 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10694 case $host_os in
10695 sco3.2v5*)
10696 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10697 ;;
10698 esac
2232061b 10699 fi
6bb11ab3
L
10700 sys_lib_dlsearch_path_spec='/usr/lib'
10701 ;;
2232061b 10702
6bb11ab3
L
10703tpf*)
10704 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10705 version_type=linux
10706 need_lib_prefix=no
10707 need_version=no
10708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10709 shlibpath_var=LD_LIBRARY_PATH
10710 shlibpath_overrides_runpath=no
10711 hardcode_into_libs=yes
10712 ;;
2232061b 10713
6bb11ab3
L
10714uts4*)
10715 version_type=linux
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10717 soname_spec='${libname}${release}${shared_ext}$major'
10718 shlibpath_var=LD_LIBRARY_PATH
10719 ;;
2232061b 10720
6bb11ab3
L
10721*)
10722 dynamic_linker=no
10723 ;;
10724esac
10725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10726$as_echo "$dynamic_linker" >&6; }
10727test "$dynamic_linker" = no && can_build_shared=no
2232061b 10728
6bb11ab3
L
10729variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10730if test "$GCC" = yes; then
10731 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2232061b 10732fi
2232061b 10733
6bb11ab3
L
10734if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10735 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10736fi
10737if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10738 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10739fi
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
2232061b 10755
2232061b 10756
2232061b 10757
2232061b
MF
10758
10759
2232061b 10760
2232061b 10761
2232061b 10762
2232061b 10763
2232061b 10764
2232061b 10765
2232061b 10766
2232061b 10767
2232061b 10768
2232061b
MF
10769
10770
6ffe910a 10771
6ffe910a
MF
10772
10773
10774
10775
10776
2232061b 10777
6ffe910a
MF
10778
10779
10780
10781
6ffe910a 10782
6ffe910a 10783
6ffe910a
MF
10784
10785
6ffe910a 10786
6ffe910a 10787
6ffe910a
MF
10788
10789
5f3ef9d0 10790
5f3ef9d0
JB
10791
10792
10793
db2e4d67
MF
10794
10795
db2e4d67 10796
db2e4d67 10797
db2e4d67 10798
db2e4d67 10799
db2e4d67 10800
db2e4d67 10801
db2e4d67 10802
db2e4d67
MF
10803
10804
db2e4d67 10805
db2e4d67
MF
10806
10807
db2e4d67 10808
db2e4d67
MF
10809
10810
6ffe910a 10811
6ffe910a 10812
6ffe910a
MF
10813
10814
6ffe910a
MF
10815
10816
6ffe910a 10817
6ffe910a 10818
6ffe910a 10819
6ffe910a 10820
6ffe910a 10821
ef016f83 10822
ef016f83 10823
ef016f83 10824
ef016f83 10825
ef016f83 10826
ef016f83 10827
ef016f83 10828
6bb11ab3
L
10829
10830
10831
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10833$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10834hardcode_action=
10835if test -n "$hardcode_libdir_flag_spec" ||
10836 test -n "$runpath_var" ||
10837 test "X$hardcode_automatic" = "Xyes" ; then
10838
10839 # We can hardcode non-existent directories.
10840 if test "$hardcode_direct" != no &&
10841 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10842 # have to relink, otherwise we might link with an installed library
10843 # when we should be linking with a yet-to-be-installed one
10844 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10845 test "$hardcode_minus_L" != no; then
10846 # Linking always hardcodes the temporary library directory.
10847 hardcode_action=relink
10848 else
10849 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10850 hardcode_action=immediate
10851 fi
10852else
10853 # We cannot hardcode anything, or else we can only hardcode existing
10854 # directories.
10855 hardcode_action=unsupported
ef016f83 10856fi
6bb11ab3
L
10857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10858$as_echo "$hardcode_action" >&6; }
ef016f83 10859
6bb11ab3
L
10860if test "$hardcode_action" = relink ||
10861 test "$inherit_rpath" = yes; then
10862 # Fast installation is not supported
10863 enable_fast_install=no
10864elif test "$shlibpath_overrides_runpath" = yes ||
10865 test "$enable_shared" = no; then
10866 # Fast installation is not necessary
10867 enable_fast_install=needless
10868fi
ef016f83 10869
6bb11ab3
L
10870
10871
10872
10873
10874
10875 if test "x$enable_dlopen" != xyes; then
10876 enable_dlopen=unknown
10877 enable_dlopen_self=unknown
10878 enable_dlopen_self_static=unknown
10879else
10880 lt_cv_dlopen=no
10881 lt_cv_dlopen_libs=
10882
10883 case $host_os in
10884 beos*)
10885 lt_cv_dlopen="load_add_on"
10886 lt_cv_dlopen_libs=
10887 lt_cv_dlopen_self=yes
10888 ;;
10889
10890 mingw* | pw32* | cegcc*)
10891 lt_cv_dlopen="LoadLibrary"
10892 lt_cv_dlopen_libs=
10893 ;;
10894
10895 cygwin*)
10896 lt_cv_dlopen="dlopen"
10897 lt_cv_dlopen_libs=
10898 ;;
10899
10900 darwin*)
10901 # if libdl is installed we need to link against it
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10903$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10904if ${ac_cv_lib_dl_dlopen+:} false; then :
6bb11ab3
L
10905 $as_echo_n "(cached) " >&6
10906else
10907 ac_check_lib_save_LIBS=$LIBS
10908LIBS="-ldl $LIBS"
10909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10910/* end confdefs.h. */
10911
10912/* Override any GCC internal prototype to avoid an error.
10913 Use char because int might match the return type of a GCC
10914 builtin and then its argument prototype would still apply. */
10915#ifdef __cplusplus
10916extern "C"
10917#endif
10918char dlopen ();
10919int
10920main ()
10921{
10922return dlopen ();
10923 ;
10924 return 0;
10925}
ef016f83 10926_ACEOF
6bb11ab3
L
10927if ac_fn_c_try_link "$LINENO"; then :
10928 ac_cv_lib_dl_dlopen=yes
10929else
10930 ac_cv_lib_dl_dlopen=no
10931fi
10932rm -f core conftest.err conftest.$ac_objext \
10933 conftest$ac_exeext conftest.$ac_ext
10934LIBS=$ac_check_lib_save_LIBS
10935fi
10936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10937$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10938if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
10939 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10940else
10941
10942 lt_cv_dlopen="dyld"
10943 lt_cv_dlopen_libs=
10944 lt_cv_dlopen_self=yes
ef016f83
MF
10945
10946fi
10947
6bb11ab3 10948 ;;
ef016f83 10949
6bb11ab3
L
10950 *)
10951 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 10952if test "x$ac_cv_func_shl_load" = xyes; then :
6bb11ab3
L
10953 lt_cv_dlopen="shl_load"
10954else
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10956$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 10957if ${ac_cv_lib_dld_shl_load+:} false; then :
6bb11ab3
L
10958 $as_echo_n "(cached) " >&6
10959else
10960 ac_check_lib_save_LIBS=$LIBS
10961LIBS="-ldld $LIBS"
10962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10963/* end confdefs.h. */
10964
10965/* Override any GCC internal prototype to avoid an error.
10966 Use char because int might match the return type of a GCC
10967 builtin and then its argument prototype would still apply. */
10968#ifdef __cplusplus
10969extern "C"
10970#endif
10971char shl_load ();
10972int
10973main ()
10974{
10975return shl_load ();
10976 ;
10977 return 0;
10978}
10979_ACEOF
10980if ac_fn_c_try_link "$LINENO"; then :
10981 ac_cv_lib_dld_shl_load=yes
10982else
10983 ac_cv_lib_dld_shl_load=no
10984fi
10985rm -f core conftest.err conftest.$ac_objext \
10986 conftest$ac_exeext conftest.$ac_ext
10987LIBS=$ac_check_lib_save_LIBS
10988fi
10989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10990$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 10991if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6bb11ab3
L
10992 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10993else
10994 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 10995if test "x$ac_cv_func_dlopen" = xyes; then :
6bb11ab3
L
10996 lt_cv_dlopen="dlopen"
10997else
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10999$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 11000if ${ac_cv_lib_dl_dlopen+:} false; then :
6bb11ab3
L
11001 $as_echo_n "(cached) " >&6
11002else
11003 ac_check_lib_save_LIBS=$LIBS
11004LIBS="-ldl $LIBS"
11005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006/* end confdefs.h. */
11007
11008/* Override any GCC internal prototype to avoid an error.
11009 Use char because int might match the return type of a GCC
11010 builtin and then its argument prototype would still apply. */
11011#ifdef __cplusplus
11012extern "C"
11013#endif
11014char dlopen ();
11015int
11016main ()
11017{
11018return dlopen ();
11019 ;
11020 return 0;
11021}
ef016f83 11022_ACEOF
6bb11ab3
L
11023if ac_fn_c_try_link "$LINENO"; then :
11024 ac_cv_lib_dl_dlopen=yes
11025else
11026 ac_cv_lib_dl_dlopen=no
ef016f83 11027fi
6bb11ab3
L
11028rm -f core conftest.err conftest.$ac_objext \
11029 conftest$ac_exeext conftest.$ac_ext
11030LIBS=$ac_check_lib_save_LIBS
11031fi
11032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11033$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11034if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
11035 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11036else
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11038$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 11039if ${ac_cv_lib_svld_dlopen+:} false; then :
ef016f83
MF
11040 $as_echo_n "(cached) " >&6
11041else
11042 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 11043LIBS="-lsvld $LIBS"
ef016f83
MF
11044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045/* end confdefs.h. */
11046
11047/* Override any GCC internal prototype to avoid an error.
11048 Use char because int might match the return type of a GCC
11049 builtin and then its argument prototype would still apply. */
11050#ifdef __cplusplus
11051extern "C"
11052#endif
6bb11ab3 11053char dlopen ();
ef016f83
MF
11054int
11055main ()
11056{
6bb11ab3 11057return dlopen ();
ef016f83
MF
11058 ;
11059 return 0;
11060}
11061_ACEOF
11062if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 11063 ac_cv_lib_svld_dlopen=yes
ef016f83 11064else
6bb11ab3 11065 ac_cv_lib_svld_dlopen=no
ef016f83
MF
11066fi
11067rm -f core conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext conftest.$ac_ext
11069LIBS=$ac_check_lib_save_LIBS
11070fi
6bb11ab3
L
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11072$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 11073if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6bb11ab3
L
11074 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11075else
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11077$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 11078if ${ac_cv_lib_dld_dld_link+:} false; then :
ef016f83
MF
11079 $as_echo_n "(cached) " >&6
11080else
11081 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 11082LIBS="-ldld $LIBS"
ef016f83
MF
11083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084/* end confdefs.h. */
11085
11086/* Override any GCC internal prototype to avoid an error.
11087 Use char because int might match the return type of a GCC
11088 builtin and then its argument prototype would still apply. */
11089#ifdef __cplusplus
11090extern "C"
11091#endif
6bb11ab3 11092char dld_link ();
ef016f83
MF
11093int
11094main ()
11095{
6bb11ab3 11096return dld_link ();
ef016f83
MF
11097 ;
11098 return 0;
11099}
11100_ACEOF
11101if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 11102 ac_cv_lib_dld_dld_link=yes
ef016f83 11103else
6bb11ab3 11104 ac_cv_lib_dld_dld_link=no
ef016f83
MF
11105fi
11106rm -f core conftest.err conftest.$ac_objext \
11107 conftest$ac_exeext conftest.$ac_ext
11108LIBS=$ac_check_lib_save_LIBS
11109fi
6bb11ab3
L
11110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11111$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 11112if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6bb11ab3
L
11113 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11114fi
ef016f83 11115
ef016f83
MF
11116
11117fi
11118
11119
6bb11ab3 11120fi
ef016f83 11121
ef016f83 11122
ef016f83
MF
11123fi
11124
11125
6bb11ab3
L
11126fi
11127
11128
11129fi
11130
11131 ;;
11132 esac
11133
11134 if test "x$lt_cv_dlopen" != xno; then
11135 enable_dlopen=yes
11136 else
11137 enable_dlopen=no
11138 fi
11139
11140 case $lt_cv_dlopen in
11141 dlopen)
11142 save_CPPFLAGS="$CPPFLAGS"
11143 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11144
11145 save_LDFLAGS="$LDFLAGS"
11146 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11147
11148 save_LIBS="$LIBS"
11149 LIBS="$lt_cv_dlopen_libs $LIBS"
11150
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11152$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 11153if ${lt_cv_dlopen_self+:} false; then :
ef016f83
MF
11154 $as_echo_n "(cached) " >&6
11155else
6bb11ab3
L
11156 if test "$cross_compiling" = yes; then :
11157 lt_cv_dlopen_self=cross
11158else
11159 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11160 lt_status=$lt_dlunknown
11161 cat > conftest.$ac_ext <<_LT_EOF
136da8cd 11162#line 11162 "configure"
6bb11ab3 11163#include "confdefs.h"
ef016f83 11164
6bb11ab3
L
11165#if HAVE_DLFCN_H
11166#include <dlfcn.h>
ef016f83 11167#endif
6bb11ab3
L
11168
11169#include <stdio.h>
11170
11171#ifdef RTLD_GLOBAL
11172# define LT_DLGLOBAL RTLD_GLOBAL
11173#else
11174# ifdef DL_GLOBAL
11175# define LT_DLGLOBAL DL_GLOBAL
11176# else
11177# define LT_DLGLOBAL 0
11178# endif
11179#endif
11180
11181/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11182 find out it does not work in some platform. */
11183#ifndef LT_DLLAZY_OR_NOW
11184# ifdef RTLD_LAZY
11185# define LT_DLLAZY_OR_NOW RTLD_LAZY
11186# else
11187# ifdef DL_LAZY
11188# define LT_DLLAZY_OR_NOW DL_LAZY
11189# else
11190# ifdef RTLD_NOW
11191# define LT_DLLAZY_OR_NOW RTLD_NOW
11192# else
11193# ifdef DL_NOW
11194# define LT_DLLAZY_OR_NOW DL_NOW
11195# else
11196# define LT_DLLAZY_OR_NOW 0
11197# endif
11198# endif
11199# endif
11200# endif
11201#endif
11202
11203/* When -fvisbility=hidden is used, assume the code has been annotated
11204 correspondingly for the symbols needed. */
11205#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11206void fnord () __attribute__((visibility("default")));
11207#endif
11208
11209void fnord () { int i=42; }
11210int main ()
ef016f83 11211{
6bb11ab3
L
11212 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11213 int status = $lt_dlunknown;
11214
11215 if (self)
11216 {
11217 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11218 else
11219 {
11220 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11221 else puts (dlerror ());
11222 }
11223 /* dlclose (self); */
11224 }
11225 else
11226 puts (dlerror ());
11227
11228 return status;
ef016f83 11229}
6bb11ab3
L
11230_LT_EOF
11231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11232 (eval $ac_link) 2>&5
11233 ac_status=$?
11234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11235 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11236 (./conftest; exit; ) >&5 2>/dev/null
11237 lt_status=$?
11238 case x$lt_status in
11239 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11240 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11241 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11242 esac
11243 else :
11244 # compilation failed
11245 lt_cv_dlopen_self=no
11246 fi
11247fi
11248rm -fr conftest*
11249
11250
11251fi
11252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11253$as_echo "$lt_cv_dlopen_self" >&6; }
11254
11255 if test "x$lt_cv_dlopen_self" = xyes; then
11256 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11258$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 11259if ${lt_cv_dlopen_self_static+:} false; then :
6bb11ab3
L
11260 $as_echo_n "(cached) " >&6
11261else
11262 if test "$cross_compiling" = yes; then :
11263 lt_cv_dlopen_self_static=cross
11264else
11265 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11266 lt_status=$lt_dlunknown
11267 cat > conftest.$ac_ext <<_LT_EOF
136da8cd 11268#line 11268 "configure"
6bb11ab3
L
11269#include "confdefs.h"
11270
11271#if HAVE_DLFCN_H
11272#include <dlfcn.h>
11273#endif
11274
11275#include <stdio.h>
11276
11277#ifdef RTLD_GLOBAL
11278# define LT_DLGLOBAL RTLD_GLOBAL
11279#else
11280# ifdef DL_GLOBAL
11281# define LT_DLGLOBAL DL_GLOBAL
11282# else
11283# define LT_DLGLOBAL 0
11284# endif
11285#endif
11286
11287/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11288 find out it does not work in some platform. */
11289#ifndef LT_DLLAZY_OR_NOW
11290# ifdef RTLD_LAZY
11291# define LT_DLLAZY_OR_NOW RTLD_LAZY
11292# else
11293# ifdef DL_LAZY
11294# define LT_DLLAZY_OR_NOW DL_LAZY
11295# else
11296# ifdef RTLD_NOW
11297# define LT_DLLAZY_OR_NOW RTLD_NOW
11298# else
11299# ifdef DL_NOW
11300# define LT_DLLAZY_OR_NOW DL_NOW
11301# else
11302# define LT_DLLAZY_OR_NOW 0
11303# endif
11304# endif
11305# endif
11306# endif
11307#endif
11308
11309/* When -fvisbility=hidden is used, assume the code has been annotated
11310 correspondingly for the symbols needed. */
11311#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11312void fnord () __attribute__((visibility("default")));
11313#endif
11314
11315void fnord () { int i=42; }
11316int main ()
11317{
11318 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11319 int status = $lt_dlunknown;
11320
11321 if (self)
11322 {
11323 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11324 else
11325 {
11326 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11327 else puts (dlerror ());
11328 }
11329 /* dlclose (self); */
11330 }
ef016f83 11331 else
6bb11ab3
L
11332 puts (dlerror ());
11333
11334 return status;
11335}
11336_LT_EOF
11337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11338 (eval $ac_link) 2>&5
11339 ac_status=$?
11340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11341 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11342 (./conftest; exit; ) >&5 2>/dev/null
11343 lt_status=$?
11344 case x$lt_status in
11345 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11346 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11347 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11348 esac
11349 else :
11350 # compilation failed
11351 lt_cv_dlopen_self_static=no
ef016f83 11352 fi
ef016f83 11353fi
6bb11ab3
L
11354rm -fr conftest*
11355
11356
ef016f83 11357fi
6bb11ab3
L
11358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11359$as_echo "$lt_cv_dlopen_self_static" >&6; }
11360 fi
11361
11362 CPPFLAGS="$save_CPPFLAGS"
11363 LDFLAGS="$save_LDFLAGS"
11364 LIBS="$save_LIBS"
11365 ;;
11366 esac
11367
11368 case $lt_cv_dlopen_self in
11369 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11370 *) enable_dlopen_self=unknown ;;
11371 esac
11372
11373 case $lt_cv_dlopen_self_static in
11374 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11375 *) enable_dlopen_self_static=unknown ;;
11376 esac
11377fi
11378
11379
ef016f83 11380
6bb11ab3
L
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395striplib=
11396old_striplib=
11397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11398$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11399if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11400 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11401 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11403$as_echo "yes" >&6; }
ef016f83 11404else
6bb11ab3
L
11405# FIXME - insert some real tests, host_os isn't really good enough
11406 case $host_os in
11407 darwin*)
11408 if test -n "$STRIP" ; then
11409 striplib="$STRIP -x"
11410 old_striplib="$STRIP -S"
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11412$as_echo "yes" >&6; }
11413 else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415$as_echo "no" >&6; }
11416 fi
11417 ;;
11418 *)
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420$as_echo "no" >&6; }
11421 ;;
11422 esac
ef016f83 11423fi
6bb11ab3
L
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436 # Report which library types will actually be built
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11438$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11440$as_echo "$can_build_shared" >&6; }
11441
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11443$as_echo_n "checking whether to build shared libraries... " >&6; }
11444 test "$can_build_shared" = "no" && enable_shared=no
11445
11446 # On AIX, shared libraries and static libraries use the same namespace, and
11447 # are all built from PIC.
11448 case $host_os in
11449 aix3*)
11450 test "$enable_shared" = yes && enable_static=no
11451 if test -n "$RANLIB"; then
11452 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11453 postinstall_cmds='$RANLIB $lib'
11454 fi
11455 ;;
11456
11457 aix[4-9]*)
11458 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11459 test "$enable_shared" = yes && enable_static=no
11460 fi
11461 ;;
11462 esac
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11464$as_echo "$enable_shared" >&6; }
11465
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11467$as_echo_n "checking whether to build static libraries... " >&6; }
11468 # Make sure either enable_shared or enable_static is yes.
11469 test "$enable_shared" = yes || enable_static=yes
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11471$as_echo "$enable_static" >&6; }
11472
11473
11474
11475
ef016f83 11476fi
6bb11ab3
L
11477ac_ext=c
11478ac_cpp='$CPP $CPPFLAGS'
11479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11481ac_compiler_gnu=$ac_cv_c_compiler_gnu
11482
11483CC="$lt_save_CC"
11484
11485
11486
11487
11488
11489
11490
11491
11492
ef016f83 11493
ef016f83 11494
ef016f83 11495
ef016f83 11496
6bb11ab3
L
11497 ac_config_commands="$ac_config_commands libtool"
11498
11499
11500
11501
11502# Only expand once:
11503
11504
ef016f83
MF
11505
11506
ef016f83
MF
11507
11508
31e6ad7d
MF
11509
11510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11511$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11512 # Check whether --enable-maintainer-mode was given.
ef016f83 11513if test "${enable_maintainer_mode+set}" = set; then :
31e6ad7d
MF
11514 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11515else
11516 USE_MAINTAINER_MODE=no
ef016f83 11517fi
31e6ad7d
MF
11518
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11520$as_echo "$USE_MAINTAINER_MODE" >&6; }
11521 if test $USE_MAINTAINER_MODE = yes; then
11522 MAINTAINER_MODE_TRUE=
11523 MAINTAINER_MODE_FALSE='#'
ef016f83 11524else
31e6ad7d
MF
11525 MAINTAINER_MODE_TRUE='#'
11526 MAINTAINER_MODE_FALSE=
ef016f83
MF
11527fi
11528
31e6ad7d
MF
11529 MAINT=$MAINTAINER_MODE_TRUE
11530
11531
ef016f83
MF
11532
11533
ce39bd38
MF
11534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
11535$as_echo_n "checking for sim debug setting... " >&6; }
11536sim_debug="0"
ef016f83
MF
11537# Check whether --enable-sim-debug was given.
11538if test "${enable_sim_debug+set}" = set; then :
11539 enableval=$enable_sim_debug; case "${enableval}" in
ce39bd38
MF
11540 yes) sim_debug="7";;
11541 no) sim_debug="0";;
11542 *) sim_debug="($enableval)";;
ef016f83 11543esac
ef016f83 11544fi
ce39bd38
MF
11545if test "$sim_debug" != "0"; then
11546
11547cat >>confdefs.h <<_ACEOF
11548#define DEBUG $sim_debug
11549_ACEOF
11550
ef016f83
MF
11551fi
11552
ce39bd38
MF
11553cat >>confdefs.h <<_ACEOF
11554#define WITH_DEBUG $sim_debug
11555_ACEOF
11556
11557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
11558$as_echo "$sim_debug" >&6; }
ef016f83
MF
11559
11560
ce39bd38
MF
11561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
11562$as_echo_n "checking for sim stdio debug behavior... " >&6; }
11563sim_stdio="0"
ef016f83
MF
11564# Check whether --enable-sim-stdio was given.
11565if test "${enable_sim_stdio+set}" = set; then :
11566 enableval=$enable_sim_stdio; case "${enableval}" in
ce39bd38
MF
11567 yes) sim_stdio="DO_USE_STDIO";;
11568 no) sim_stdio="DONT_USE_STDIO";;
d0ac1c44 11569 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
ef016f83 11570esac
ef016f83
MF
11571fi
11572
ce39bd38
MF
11573cat >>confdefs.h <<_ACEOF
11574#define WITH_STDIO $sim_stdio
11575_ACEOF
11576
11577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
11578$as_echo "$sim_stdio" >&6; }
ef016f83
MF
11579
11580
ce39bd38
MF
11581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
11582$as_echo_n "checking for sim trace settings... " >&6; }
11583sim_trace="~TRACE_debug"
ef016f83
MF
11584# Check whether --enable-sim-trace was given.
11585if test "${enable_sim_trace+set}" = set; then :
11586 enableval=$enable_sim_trace; case "${enableval}" in
ce39bd38
MF
11587 yes) sim_trace="-1";;
11588 no) sim_trace="0";;
ef016f83 11589 [-0-9]*)
ce39bd38 11590 sim_trace="'(${enableval})'";;
2232061b 11591 [[:lower:]]*)
ef016f83
MF
11592 sim_trace=""
11593 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11594 if test x"$sim_trace" = x; then
ce39bd38 11595 sim_trace="(TRACE_$x"
ef016f83
MF
11596 else
11597 sim_trace="${sim_trace}|TRACE_$x"
11598 fi
11599 done
ce39bd38 11600 sim_trace="$sim_trace)" ;;
ef016f83 11601esac
ef016f83
MF
11602fi
11603
ce39bd38
MF
11604cat >>confdefs.h <<_ACEOF
11605#define WITH_TRACE $sim_trace
11606_ACEOF
11607
11608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
11609$as_echo "$sim_trace" >&6; }
ef016f83
MF
11610
11611
ce39bd38
MF
11612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
11613$as_echo_n "checking for sim profile settings... " >&6; }
11614profile="1"
11615sim_profile="-1"
ef016f83
MF
11616# Check whether --enable-sim-profile was given.
11617if test "${enable_sim_profile+set}" = set; then :
11618 enableval=$enable_sim_profile; case "${enableval}" in
ce39bd38
MF
11619 yes) profile="1" sim_profile="-1";;
11620 no) profile="0" sim_profile="0";;
ef016f83 11621 [-0-9]*)
ce39bd38 11622 profile="(${enableval})" sim_profile="(${enableval})";;
ef016f83 11623 [a-z]*)
ce39bd38 11624 profile="1"
ef016f83
MF
11625 sim_profile=""
11626 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11627 if test x"$sim_profile" = x; then
ce39bd38 11628 sim_profile="(PROFILE_$x"
ef016f83
MF
11629 else
11630 sim_profile="${sim_profile}|PROFILE_$x"
11631 fi
11632 done
ce39bd38 11633 sim_profile="$sim_profile)" ;;
ef016f83 11634esac
ef016f83
MF
11635fi
11636
ce39bd38
MF
11637cat >>confdefs.h <<_ACEOF
11638#define PROFILE $profile
11639_ACEOF
ef016f83
MF
11640
11641
ce39bd38
MF
11642cat >>confdefs.h <<_ACEOF
11643#define WITH_PROFILE $sim_profile
11644_ACEOF
11645
11646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
11647$as_echo "$sim_profile" >&6; }
11648
11649
11650
11651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
11652$as_echo_n "checking whether to enable sim asserts... " >&6; }
11653sim_assert="1"
35656e95
MF
11654# Check whether --enable-sim-assert was given.
11655if test "${enable_sim_assert+set}" = set; then :
11656 enableval=$enable_sim_assert; case "${enableval}" in
ce39bd38
MF
11657 yes) sim_assert="1";;
11658 no) sim_assert="0";;
d0ac1c44 11659 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
35656e95 11660esac
35656e95
MF
11661fi
11662
ce39bd38
MF
11663cat >>confdefs.h <<_ACEOF
11664#define WITH_ASSERT $sim_assert
11665_ACEOF
11666
11667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
11668$as_echo "$sim_assert" >&6; }
11669
35656e95 11670
ce39bd38
MF
11671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
11672$as_echo_n "checking default sim environment setting... " >&6; }
11673sim_environment="ALL_ENVIRONMENT"
16f7876d
MF
11674# Check whether --enable-sim-environment was given.
11675if test "${enable_sim_environment+set}" = set; then :
11676 enableval=$enable_sim_environment; case "${enableval}" in
ce39bd38
MF
11677 all | ALL) sim_environment="ALL_ENVIRONMENT";;
11678 user | USER) sim_environment="USER_ENVIRONMENT";;
11679 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
11680 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
d0ac1c44 11681 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
16f7876d 11682esac
16f7876d
MF
11683fi
11684
ce39bd38
MF
11685cat >>confdefs.h <<_ACEOF
11686#define WITH_ENVIRONMENT $sim_environment
11687_ACEOF
11688
11689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
11690$as_echo "$sim_environment" >&6; }
11691
16f7876d 11692
347fe5bb
MF
11693sim_inline="-DDEFAULT_INLINE=0"
11694# Check whether --enable-sim-inline was given.
11695if test "${enable_sim_inline+set}" = set; then :
11696 enableval=$enable_sim_inline; sim_inline=""
11697case "$enableval" in
11698 no) sim_inline="-DDEFAULT_INLINE=0";;
11699 0) sim_inline="-DDEFAULT_INLINE=0";;
11700 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
11701 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
11702 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11703 new_flag=""
11704 case "$x" in
11705 *_INLINE=*) new_flag="-D$x";;
11706 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
11707 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
11708 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
11709 esac
11710 if test x"$sim_inline" = x""; then
11711 sim_inline="$new_flag"
11712 else
11713 sim_inline="$sim_inline $new_flag"
11714 fi
11715 done;;
11716esac
11717if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
11718 echo "Setting inline flags = $sim_inline" 6>&1
11719fi
11720fi
11721
11722
11723
ef016f83
MF
11724
11725# Check whether --with-pkgversion was given.
11726if test "${with_pkgversion+set}" = set; then :
11727 withval=$with_pkgversion; case "$withval" in
d0ac1c44 11728 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
ef016f83
MF
11729 no) PKGVERSION= ;;
11730 *) PKGVERSION="($withval) " ;;
11731 esac
11732else
bf12d44e 11733 PKGVERSION="(SIM) "
ef016f83
MF
11734
11735fi
11736
11737
11738
11739
11740
11741# Check whether --with-bugurl was given.
11742if test "${with_bugurl+set}" = set; then :
11743 withval=$with_bugurl; case "$withval" in
d0ac1c44 11744 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
ef016f83
MF
11745 no) BUGURL=
11746 ;;
11747 *) BUGURL="$withval"
11748 ;;
11749 esac
11750else
dfb856ba 11751 BUGURL="https://www.gnu.org/software/gdb/bugs/"
ef016f83
MF
11752
11753fi
11754
11755 case ${BUGURL} in
11756 "")
11757 REPORT_BUGS_TO=
11758 REPORT_BUGS_TEXI=
11759 ;;
11760 *)
11761 REPORT_BUGS_TO="<$BUGURL>"
11762 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
11763 ;;
11764 esac;
11765
11766
11767
11768
11769cat >>confdefs.h <<_ACEOF
11770#define PKGVERSION "$PKGVERSION"
11771_ACEOF
11772
11773
11774cat >>confdefs.h <<_ACEOF
11775#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
11776_ACEOF
11777
11778
11779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11780$as_echo_n "checking return type of signal handlers... " >&6; }
d0ac1c44 11781if ${ac_cv_type_signal+:} false; then :
ef016f83
MF
11782 $as_echo_n "(cached) " >&6
11783else
11784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11785/* end confdefs.h. */
11786#include <sys/types.h>
11787#include <signal.h>
11788
11789int
11790main ()
11791{
11792return *(signal (0, 0)) (0) == 1;
11793 ;
11794 return 0;
11795}
11796_ACEOF
11797if ac_fn_c_try_compile "$LINENO"; then :
11798 ac_cv_type_signal=int
11799else
11800 ac_cv_type_signal=void
11801fi
11802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11803fi
11804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11805$as_echo "$ac_cv_type_signal" >&6; }
11806
11807cat >>confdefs.h <<_ACEOF
11808#define RETSIGTYPE $ac_cv_type_signal
11809_ACEOF
11810
11811
11812
11813
11814
ef016f83
MF
11815
11816
1ac72f06 11817wire_endian="LITTLE"
ef016f83
MF
11818default_endian=""
11819# Check whether --enable-sim-endian was given.
11820if test "${enable_sim_endian+set}" = set; then :
11821 enableval=$enable_sim_endian; case "${enableval}" in
1ac72f06
MF
11822 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_BIG";;
11823 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_LITTLE";;
ef016f83 11824 yes) if test x"$wire_endian" != x; then
1ac72f06 11825 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
ef016f83 11826 else
1ac72f06
MF
11827 if test x"$default_endian" != x; then
11828 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
ef016f83
MF
11829 else
11830 echo "No hard-wired endian for target $target" 1>&6
1ac72f06 11831 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
ef016f83
MF
11832 fi
11833 fi;;
11834 no) if test x"$default_endian" != x; then
1ac72f06 11835 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
ef016f83
MF
11836 else
11837 if test x"$wire_endian" != x; then
1ac72f06 11838 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
ef016f83
MF
11839 else
11840 echo "No default endian for target $target" 1>&6
1ac72f06 11841 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
ef016f83
MF
11842 fi
11843 fi;;
d0ac1c44 11844 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
ef016f83
MF
11845esac
11846if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
11847 echo "Setting endian flags = $sim_endian" 6>&1
11848fi
11849else
11850 if test x"$default_endian" != x; then
1ac72f06 11851 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
ef016f83
MF
11852else
11853 if test x"$wire_endian" != x; then
1ac72f06 11854 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
ef016f83
MF
11855 else
11856 sim_endian=
11857 fi
11858fi
11859fi
11860
11861wire_alignment="STRICT_ALIGNMENT"
11862default_alignment="STRICT_ALIGNMENT"
11863
11864# Check whether --enable-sim-alignment was given.
11865if test "${enable_sim_alignment+set}" = set; then :
11866 enableval=$enable_sim_alignment; case "${enableval}" in
11867 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
11868 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
11869 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
11870 yes) if test x"$wire_alignment" != x; then
11871 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
11872 else
11873 if test x"$default_alignment" != x; then
11874 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
11875 else
11876 echo "No hard-wired alignment for target $target" 1>&6
11877 sim_alignment="-DWITH_ALIGNMENT=0"
11878 fi
11879 fi;;
11880 no) if test x"$default_alignment" != x; then
11881 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
11882 else
11883 if test x"$wire_alignment" != x; then
11884 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
11885 else
11886 echo "No default alignment for target $target" 1>&6
11887 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
11888 fi
11889 fi;;
d0ac1c44 11890 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
ef016f83
MF
11891esac
11892if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
11893 echo "Setting alignment flags = $sim_alignment" 6>&1
11894fi
11895else
11896 if test x"$default_alignment" != x; then
11897 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
11898else
11899 if test x"$wire_alignment" != x; then
11900 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
11901 else
11902 sim_alignment=
11903 fi
11904fi
11905fi
11906
11907
ef016f83
MF
11908default_sim_default_model="bf537"
11909# Check whether --enable-sim-default-model was given.
11910if test "${enable_sim_default_model+set}" = set; then :
11911 enableval=$enable_sim_default_model; case "${enableval}" in
d0ac1c44 11912 yes|no) as_fn_error $? "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
ef016f83
MF
11913 *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
11914esac
11915if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
11916 echo "Setting default model = $sim_default_model" 6>&1
11917fi
11918else
11919 sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
11920fi
11921
11922
11923
2232061b
MF
11924# Check whether --enable-werror was given.
11925if test "${enable_werror+set}" = set; then :
11926 enableval=$enable_werror; case "${enableval}" in
11927 yes | y) ERROR_ON_WARNING="yes" ;;
11928 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 11929 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
2232061b
MF
11930 esac
11931fi
11932
11933
11934# Enable -Werror by default when using gcc
11935if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11936 ERROR_ON_WARNING=yes
ef016f83 11937fi
2232061b
MF
11938
11939WERROR_CFLAGS=""
bf470982
MF
11940 if test "${ERROR_ON_WARNING}" = yes ; then
11941 WERROR_CFLAGS="-Werror"
11942 fi
2232061b 11943
2232061b 11944build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
1a8a700e 11945-Wpointer-sign \
2232061b 11946-Wno-unused -Wunused-value -Wunused-function \
1a8a700e
MF
11947-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
11948-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
11949-Wold-style-declaration -Wold-style-definition"
2232061b
MF
11950
11951# Enable -Wno-format by default when using gcc on mingw since many
11952# GCC versions complain about %I64.
11953case "${host}" in
11954 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
d3685d60 11955 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
2232061b
MF
11956esac
11957
ef016f83
MF
11958# Check whether --enable-build-warnings was given.
11959if test "${enable_build_warnings+set}" = set; then :
11960 enableval=$enable_build_warnings; case "${enableval}" in
11961 yes) ;;
11962 no) build_warnings="-w";;
11963 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11964 build_warnings="${build_warnings} ${t}";;
11965 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11966 build_warnings="${t} ${build_warnings}";;
11967 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11968esac
11969if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
11970 echo "Setting compiler warning flags = $build_warnings" 6>&1
11971fi
11972fi
11973# Check whether --enable-sim-build-warnings was given.
11974if test "${enable_sim_build_warnings+set}" = set; then :
11975 enableval=$enable_sim_build_warnings; case "${enableval}" in
11976 yes) ;;
11977 no) build_warnings="-w";;
11978 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11979 build_warnings="${build_warnings} ${t}";;
11980 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11981 build_warnings="${t} ${build_warnings}";;
11982 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11983esac
11984if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
11985 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
11986fi
11987fi
11988WARN_CFLAGS=""
ef016f83
MF
11989if test "x${build_warnings}" != x -a "x$GCC" = xyes
11990then
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
11992$as_echo_n "checking compiler warning flags... " >&6; }
11993 # Separate out the -Werror flag as some files just cannot be
11994 # compiled with it enabled.
11995 for w in ${build_warnings}; do
11996 case $w in
11997 -Werr*) WERROR_CFLAGS=-Werror ;;
11998 *) # Check that GCC accepts it
11999 saved_CFLAGS="$CFLAGS"
12000 CFLAGS="$CFLAGS $w"
12001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002/* end confdefs.h. */
12003
12004int
12005main ()
12006{
12007
12008 ;
12009 return 0;
12010}
12011_ACEOF
12012if ac_fn_c_try_compile "$LINENO"; then :
12013 WARN_CFLAGS="${WARN_CFLAGS} $w"
12014fi
12015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12016 CFLAGS="$saved_CFLAGS"
12017 esac
12018 done
2232061b
MF
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
12020$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
ef016f83
MF
12021fi
12022
12023
ef016f83
MF
12024if test ""; then
12025 hardware=""
12026else
6294f8ea 12027 hardware="cfi core pal glue"
ef016f83
MF
12028fi
12029hardware="$hardware \
12030 bfin_cec \
12031 bfin_ctimer \
12032 bfin_dma \
12033 bfin_dmac \
12034 bfin_ebiu_amc \
12035 bfin_ebiu_ddrc \
12036 bfin_ebiu_sdc \
12037 bfin_emac \
12038 bfin_eppi \
12039 bfin_evt \
b5215db0 12040 bfin_gpio \
07c5891d 12041 bfin_gpio2 \
ef016f83
MF
12042 bfin_gptimer \
12043 bfin_jtag \
12044 bfin_mmu \
12045 bfin_nfc \
12046 bfin_otp \
c43aadca 12047 bfin_pfmon \
050396e5 12048 bfin_pint \
ef016f83
MF
12049 bfin_pll \
12050 bfin_ppi \
12051 bfin_rtc \
12052 bfin_sic \
12053 bfin_spi \
12054 bfin_trace \
12055 bfin_twi \
12056 bfin_uart \
12057 bfin_uart2 \
12058 bfin_wdog \
12059 bfin_wp \
12060 eth_phy \
12061"
1517bd27 12062
ef016f83
MF
12063sim_hw_cflags="-DWITH_HW=1"
12064sim_hw="$hardware"
12065sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
1517bd27 12066
ef016f83
MF
12067# Check whether --enable-sim-hardware was given.
12068if test "${enable_sim_hardware+set}" = set; then :
12069 enableval=$enable_sim_hardware;
30452bbe
MF
12070else
12071 enable_sim_hardware="yes"
1517bd27
MF
12072fi
12073
12074case ${enable_sim_hardware} in
64dd13df
MF
12075 yes|no) ;;
12076 ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
12077 *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
12078 *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
ef016f83 12079esac
1517bd27 12080
64dd13df 12081if test "$enable_sim_hardware" = no; then
ef016f83
MF
12082 sim_hw_objs=
12083 sim_hw_cflags="-DWITH_HW=0"
12084 sim_hw=
12085else
12086 sim_hw_cflags="-DWITH_HW=1"
12087 # remove duplicates
12088 sim_hw=""
12089 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
12090 for i in $hardware ; do
12091 case " $sim_hw " in
12092 *" $i "*) ;;
12093 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
12094 esac
12095 done
256139f5 12096 # mingw does not support sockser
256139f5
JS
12097 case ${host} in
12098 *mingw*) ;;
49cd1634
MF
12099 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
12100 # that you instatiate. Instead, other code will call into it directly.
12101 # At some point, we should convert it over.
12102 sim_hw_objs="$sim_hw_objs dv-sockser.o"
256139f5
JS
12103
12104cat >>confdefs.h <<_ACEOF
12105#define HAVE_DV_SOCKSER 1
12106_ACEOF
12107
12108 ;;
12109 esac
1517bd27
MF
12110 if test x"$silent" != x"yes"; then
12111 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
256139f5 12112 fi
1517bd27
MF
12113 case " $hardware " in
12114 *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
4399a56b 12115$as_echo_n "checking for log2 in -lm... " >&6; }
d0ac1c44 12116if ${ac_cv_lib_m_log2+:} false; then :
4399a56b
MF
12117 $as_echo_n "(cached) " >&6
12118else
12119 ac_check_lib_save_LIBS=$LIBS
12120LIBS="-lm $LIBS"
12121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122/* end confdefs.h. */
12123
12124/* Override any GCC internal prototype to avoid an error.
12125 Use char because int might match the return type of a GCC
12126 builtin and then its argument prototype would still apply. */
12127#ifdef __cplusplus
12128extern "C"
12129#endif
12130char log2 ();
12131int
12132main ()
12133{
12134return log2 ();
12135 ;
12136 return 0;
12137}
12138_ACEOF
12139if ac_fn_c_try_link "$LINENO"; then :
12140 ac_cv_lib_m_log2=yes
12141else
12142 ac_cv_lib_m_log2=no
12143fi
12144rm -f core conftest.err conftest.$ac_objext \
12145 conftest$ac_exeext conftest.$ac_ext
12146LIBS=$ac_check_lib_save_LIBS
12147fi
12148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
12149$as_echo "$ac_cv_lib_m_log2" >&6; }
d0ac1c44 12150if test "x$ac_cv_lib_m_log2" = xyes; then :
4399a56b
MF
12151 cat >>confdefs.h <<_ACEOF
12152#define HAVE_LIBM 1
12153_ACEOF
12154
12155 LIBS="-lm $LIBS"
12156
12157fi
12158;;
1517bd27
MF
12159 esac
12160fi
4399a56b 12161
ef016f83 12162
9e6584c9 12163for ac_func in getuid getgid geteuid getegid setuid setgid mmap munmap kill pread
ef016f83
MF
12164do :
12165 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12166ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 12167if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
ef016f83
MF
12168 cat >>confdefs.h <<_ACEOF
12169#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12170_ACEOF
12171
12172fi
12173done
12174
84de2f06
MF
12175for ac_header in \
12176 linux/if_tun.h \
12177 linux/mii.h \
12178 linux/types.h \
12179 net/if.h \
12180 sys/ioctl.h \
12181 sys/mman.h \
12182
ef016f83
MF
12183do :
12184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12185ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 12186if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ef016f83
MF
12187 cat >>confdefs.h <<_ACEOF
12188#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12189_ACEOF
12190
12191fi
12192
12193done
12194
12195
5798d69f
SM
12196
12197
12198
12199
12200
12201
12202
12203if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12204 if test -n "$ac_tool_prefix"; then
12205 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12206set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12208$as_echo_n "checking for $ac_word... " >&6; }
12209if ${ac_cv_path_PKG_CONFIG+:} false; then :
12210 $as_echo_n "(cached) " >&6
12211else
12212 case $PKG_CONFIG in
12213 [\\/]* | ?:[\\/]*)
12214 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12215 ;;
12216 *)
12217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12218for as_dir in $PATH
12219do
12220 IFS=$as_save_IFS
12221 test -z "$as_dir" && as_dir=.
12222 for ac_exec_ext in '' $ac_executable_extensions; do
12223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12224 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12226 break 2
12227 fi
12228done
12229 done
12230IFS=$as_save_IFS
12231
12232 ;;
12233esac
12234fi
12235PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12236if test -n "$PKG_CONFIG"; then
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12238$as_echo "$PKG_CONFIG" >&6; }
12239else
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12241$as_echo "no" >&6; }
12242fi
12243
12244
12245fi
12246if test -z "$ac_cv_path_PKG_CONFIG"; then
12247 ac_pt_PKG_CONFIG=$PKG_CONFIG
12248 # Extract the first word of "pkg-config", so it can be a program name with args.
12249set dummy pkg-config; ac_word=$2
12250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12251$as_echo_n "checking for $ac_word... " >&6; }
12252if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12253 $as_echo_n "(cached) " >&6
12254else
12255 case $ac_pt_PKG_CONFIG in
12256 [\\/]* | ?:[\\/]*)
12257 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12258 ;;
12259 *)
12260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12261for as_dir in $PATH
12262do
12263 IFS=$as_save_IFS
12264 test -z "$as_dir" && as_dir=.
12265 for ac_exec_ext in '' $ac_executable_extensions; do
12266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12267 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12269 break 2
12270 fi
12271done
12272 done
12273IFS=$as_save_IFS
12274
12275 ;;
12276esac
12277fi
12278ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12279if test -n "$ac_pt_PKG_CONFIG"; then
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12281$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12282else
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12284$as_echo "no" >&6; }
12285fi
12286
12287 if test "x$ac_pt_PKG_CONFIG" = x; then
12288 PKG_CONFIG=""
12289 else
12290 case $cross_compiling:$ac_tool_warned in
12291yes:)
12292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12294ac_tool_warned=yes ;;
12295esac
12296 PKG_CONFIG=$ac_pt_PKG_CONFIG
12297 fi
12298else
12299 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12300fi
12301
12302fi
12303if test -n "$PKG_CONFIG"; then
12304 _pkg_min_version=0.9.0
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12306$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12307 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12309$as_echo "yes" >&6; }
12310 else
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12312$as_echo "no" >&6; }
12313 PKG_CONFIG=""
12314 fi
12315fi
12316
12317pkg_failed=no
12318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
12319$as_echo_n "checking for sdl... " >&6; }
12320
12321if test -n "$SDL_CFLAGS"; then
12322 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12323 elif test -n "$PKG_CONFIG"; then
12324 if test -n "$PKG_CONFIG" && \
12325 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
12326 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12327 ac_status=$?
12328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12329 test $ac_status = 0; }; then
12330 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
12331 test "x$?" != "x0" && pkg_failed=yes
12332else
12333 pkg_failed=yes
12334fi
12335 else
12336 pkg_failed=untried
12337fi
12338if test -n "$SDL_LIBS"; then
12339 pkg_cv_SDL_LIBS="$SDL_LIBS"
12340 elif test -n "$PKG_CONFIG"; then
12341 if test -n "$PKG_CONFIG" && \
12342 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
12343 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12344 ac_status=$?
12345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12346 test $ac_status = 0; }; then
12347 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
12348 test "x$?" != "x0" && pkg_failed=yes
12349else
12350 pkg_failed=yes
12351fi
12352 else
12353 pkg_failed=untried
12354fi
12355
12356if test $pkg_failed = no; then
12357 pkg_save_LDFLAGS="$LDFLAGS"
12358 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360/* end confdefs.h. */
12361
12362int
12363main ()
12364{
12365
12366 ;
12367 return 0;
12368}
12369_ACEOF
12370if ac_fn_c_try_link "$LINENO"; then :
12371
12372else
12373 pkg_failed=yes
12374fi
12375rm -f core conftest.err conftest.$ac_objext \
12376 conftest$ac_exeext conftest.$ac_ext
12377 LDFLAGS=$pkg_save_LDFLAGS
12378fi
12379
12380
12381
12382if test $pkg_failed = yes; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384$as_echo "no" >&6; }
12385
12386if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12387 _pkg_short_errors_supported=yes
12388else
12389 _pkg_short_errors_supported=no
12390fi
12391 if test $_pkg_short_errors_supported = yes; then
12392 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
12393 else
12394 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
12395 fi
12396 # Put the nasty error message in config.log where it belongs
12397 echo "$SDL_PKG_ERRORS" >&5
12398
12399 :
12400elif test $pkg_failed = untried; then
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12402$as_echo "no" >&6; }
12403 :
12404else
12405 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
12406 SDL_LIBS=$pkg_cv_SDL_LIBS
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12408$as_echo "yes" >&6; }
12409
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12411$as_echo_n "checking for dlopen in -ldl... " >&6; }
12412if ${ac_cv_lib_dl_dlopen+:} false; then :
12413 $as_echo_n "(cached) " >&6
12414else
12415 ac_check_lib_save_LIBS=$LIBS
12416LIBS="-ldl $LIBS"
12417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418/* end confdefs.h. */
12419
12420/* Override any GCC internal prototype to avoid an error.
12421 Use char because int might match the return type of a GCC
12422 builtin and then its argument prototype would still apply. */
12423#ifdef __cplusplus
12424extern "C"
12425#endif
12426char dlopen ();
12427int
12428main ()
12429{
12430return dlopen ();
12431 ;
12432 return 0;
12433}
12434_ACEOF
12435if ac_fn_c_try_link "$LINENO"; then :
12436 ac_cv_lib_dl_dlopen=yes
12437else
12438 ac_cv_lib_dl_dlopen=no
12439fi
12440rm -f core conftest.err conftest.$ac_objext \
12441 conftest$ac_exeext conftest.$ac_ext
12442LIBS=$ac_check_lib_save_LIBS
12443fi
12444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12445$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12446if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12447
ef016f83
MF
12448 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL"
12449 SDL_LIBS="-ldl"
5798d69f
SM
12450
12451else
12452 SDL_CFLAGS= SDL_LIBS=
12453fi
12454
12455
12456fi
ef016f83
MF
12457
12458
12459
12460
ef016f83
MF
12461cgen_breaks=""
12462if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
12463cgen_breaks="break cgen_rtx_error";
12464fi
12465
12466ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
12467
12468ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
12469
12470ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
12471
12472ac_config_commands="$ac_config_commands Makefile"
12473
12474ac_config_commands="$ac_config_commands stamp-h"
12475
760b3e8b
MF
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
ef016f83
MF
12488cat >confcache <<\_ACEOF
12489# This file is a shell script that caches the results of configure
12490# tests run on this system so they can be shared between configure
12491# scripts and configure runs, see configure's option --config-cache.
12492# It is not useful on other systems. If it contains results you don't
12493# want to keep, you may remove or edit it.
12494#
12495# config.status only pays attention to the cache file if you give it
12496# the --recheck option to rerun configure.
12497#
12498# `ac_cv_env_foo' variables (set or unset) will be overridden when
12499# loading this file, other *unset* `ac_cv_foo' will be assigned the
12500# following values.
12501
12502_ACEOF
12503
12504# The following way of writing the cache mishandles newlines in values,
12505# but we know of no workaround that is simple, portable, and efficient.
12506# So, we kill variables containing newlines.
12507# Ultrix sh set writes to stderr and can't be redirected directly,
12508# and sets the high bit in the cache file unless we assign to the vars.
12509(
12510 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12511 eval ac_val=\$$ac_var
12512 case $ac_val in #(
12513 *${as_nl}*)
12514 case $ac_var in #(
12515 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12516$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12517 esac
12518 case $ac_var in #(
12519 _ | IFS | as_nl) ;; #(
12520 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12521 *) { eval $ac_var=; unset $ac_var;} ;;
12522 esac ;;
12523 esac
12524 done
12525
12526 (set) 2>&1 |
12527 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12528 *${as_nl}ac_space=\ *)
12529 # `set' does not quote correctly, so add quotes: double-quote
12530 # substitution turns \\\\ into \\, and sed turns \\ into \.
12531 sed -n \
12532 "s/'/'\\\\''/g;
12533 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12534 ;; #(
12535 *)
12536 # `set' quotes correctly as required by POSIX, so do not add quotes.
12537 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12538 ;;
12539 esac |
12540 sort
12541) |
12542 sed '
12543 /^ac_cv_env_/b end
12544 t clear
12545 :clear
12546 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12547 t end
12548 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12549 :end' >>confcache
12550if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12551 if test -w "$cache_file"; then
d0ac1c44 12552 if test "x$cache_file" != "x/dev/null"; then
ef016f83
MF
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12554$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
12555 if test ! -f "$cache_file" || test -h "$cache_file"; then
12556 cat confcache >"$cache_file"
12557 else
12558 case $cache_file in #(
12559 */* | ?:*)
12560 mv -f confcache "$cache_file"$$ &&
12561 mv -f "$cache_file"$$ "$cache_file" ;; #(
12562 *)
12563 mv -f confcache "$cache_file" ;;
12564 esac
12565 fi
12566 fi
ef016f83
MF
12567 else
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12569$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12570 fi
12571fi
12572rm -f confcache
12573
12574test "x$prefix" = xNONE && prefix=$ac_default_prefix
12575# Let make expand exec_prefix.
12576test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12577
12578DEFS=-DHAVE_CONFIG_H
12579
12580ac_libobjs=
12581ac_ltlibobjs=
d0ac1c44 12582U=
ef016f83
MF
12583for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12584 # 1. Remove the extension, and $U if already installed.
12585 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12586 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12587 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12588 # will be set to the directory where LIBOBJS objects are built.
12589 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12590 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12591done
12592LIBOBJS=$ac_libobjs
12593
12594LTLIBOBJS=$ac_ltlibobjs
12595
12596
0cb8d851 12597
db2e4d67 12598if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
d0ac1c44 12599 as_fn_error $? "conditional \"GMAKE\" was never defined.
db2e4d67
MF
12600Usually this means the macro was only invoked conditionally." "$LINENO" 5
12601fi
6bb11ab3 12602if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
d0ac1c44 12603 as_fn_error $? "conditional \"PLUGINS\" was never defined.
6bb11ab3
L
12604Usually this means the macro was only invoked conditionally." "$LINENO" 5
12605fi
31e6ad7d 12606if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 12607 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31e6ad7d
MF
12608Usually this means the macro was only invoked conditionally." "$LINENO" 5
12609fi
ef016f83 12610
d0ac1c44 12611: "${CONFIG_STATUS=./config.status}"
ef016f83
MF
12612ac_write_fail=0
12613ac_clean_files_save=$ac_clean_files
12614ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12615{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12616$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12617as_write_fail=0
12618cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12619#! $SHELL
12620# Generated by $as_me.
12621# Run this file to recreate the current configuration.
12622# Compiler output produced by configure, useful for debugging
12623# configure, is in config.log if it exists.
12624
12625debug=false
12626ac_cs_recheck=false
12627ac_cs_silent=false
12628
12629SHELL=\${CONFIG_SHELL-$SHELL}
12630export SHELL
12631_ASEOF
12632cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12633## -------------------- ##
12634## M4sh Initialization. ##
12635## -------------------- ##
12636
12637# Be more Bourne compatible
12638DUALCASE=1; export DUALCASE # for MKS sh
12639if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12640 emulate sh
12641 NULLCMD=:
12642 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12643 # is contrary to our usage. Disable this feature.
12644 alias -g '${1+"$@"}'='"$@"'
12645 setopt NO_GLOB_SUBST
12646else
12647 case `(set -o) 2>/dev/null` in #(
12648 *posix*) :
12649 set -o posix ;; #(
12650 *) :
12651 ;;
12652esac
12653fi
12654
12655
12656as_nl='
12657'
12658export as_nl
12659# Printing a long string crashes Solaris 7 /usr/bin/printf.
12660as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12661as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12662as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12663# Prefer a ksh shell builtin over an external printf program on Solaris,
12664# but without wasting forks for bash or zsh.
12665if test -z "$BASH_VERSION$ZSH_VERSION" \
12666 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12667 as_echo='print -r --'
12668 as_echo_n='print -rn --'
12669elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12670 as_echo='printf %s\n'
12671 as_echo_n='printf %s'
12672else
12673 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12674 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12675 as_echo_n='/usr/ucb/echo -n'
12676 else
12677 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12678 as_echo_n_body='eval
12679 arg=$1;
12680 case $arg in #(
12681 *"$as_nl"*)
12682 expr "X$arg" : "X\\(.*\\)$as_nl";
12683 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12684 esac;
12685 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12686 '
12687 export as_echo_n_body
12688 as_echo_n='sh -c $as_echo_n_body as_echo'
12689 fi
12690 export as_echo_body
12691 as_echo='sh -c $as_echo_body as_echo'
12692fi
12693
12694# The user is always right.
12695if test "${PATH_SEPARATOR+set}" != set; then
12696 PATH_SEPARATOR=:
12697 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12698 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12699 PATH_SEPARATOR=';'
12700 }
12701fi
12702
12703
12704# IFS
12705# We need space, tab and new line, in precisely that order. Quoting is
12706# there to prevent editors from complaining about space-tab.
12707# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12708# splitting by setting IFS to empty value.)
12709IFS=" "" $as_nl"
12710
12711# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 12712as_myself=
ef016f83
MF
12713case $0 in #((
12714 *[\\/]* ) as_myself=$0 ;;
12715 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12716for as_dir in $PATH
12717do
12718 IFS=$as_save_IFS
12719 test -z "$as_dir" && as_dir=.
12720 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12721 done
12722IFS=$as_save_IFS
12723
12724 ;;
12725esac
12726# We did not find ourselves, most probably we were run as `sh COMMAND'
12727# in which case we are not to be found in the path.
12728if test "x$as_myself" = x; then
12729 as_myself=$0
12730fi
12731if test ! -f "$as_myself"; then
12732 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12733 exit 1
12734fi
12735
12736# Unset variables that we do not need and which cause bugs (e.g. in
12737# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12738# suppresses any "Segmentation fault" message there. '((' could
12739# trigger a bug in pdksh 5.2.14.
12740for as_var in BASH_ENV ENV MAIL MAILPATH
12741do eval test x\${$as_var+set} = xset \
12742 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12743done
12744PS1='$ '
12745PS2='> '
12746PS4='+ '
12747
12748# NLS nuisances.
12749LC_ALL=C
12750export LC_ALL
12751LANGUAGE=C
12752export LANGUAGE
12753
12754# CDPATH.
12755(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12756
12757
d0ac1c44
SM
12758# as_fn_error STATUS ERROR [LINENO LOG_FD]
12759# ----------------------------------------
ef016f83
MF
12760# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12761# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 12762# script with STATUS, using 1 if that was 0.
ef016f83
MF
12763as_fn_error ()
12764{
d0ac1c44
SM
12765 as_status=$1; test $as_status -eq 0 && as_status=1
12766 if test "$4"; then
12767 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12768 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
ef016f83 12769 fi
d0ac1c44 12770 $as_echo "$as_me: error: $2" >&2
ef016f83
MF
12771 as_fn_exit $as_status
12772} # as_fn_error
12773
12774
12775# as_fn_set_status STATUS
12776# -----------------------
12777# Set $? to STATUS, without forking.
12778as_fn_set_status ()
12779{
12780 return $1
12781} # as_fn_set_status
12782
12783# as_fn_exit STATUS
12784# -----------------
12785# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12786as_fn_exit ()
12787{
12788 set +e
12789 as_fn_set_status $1
12790 exit $1
12791} # as_fn_exit
12792
12793# as_fn_unset VAR
12794# ---------------
12795# Portably unset VAR.
12796as_fn_unset ()
12797{
12798 { eval $1=; unset $1;}
12799}
12800as_unset=as_fn_unset
12801# as_fn_append VAR VALUE
12802# ----------------------
12803# Append the text in VALUE to the end of the definition contained in VAR. Take
12804# advantage of any shell optimizations that allow amortized linear growth over
12805# repeated appends, instead of the typical quadratic growth present in naive
12806# implementations.
12807if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12808 eval 'as_fn_append ()
12809 {
12810 eval $1+=\$2
12811 }'
12812else
12813 as_fn_append ()
12814 {
12815 eval $1=\$$1\$2
12816 }
12817fi # as_fn_append
12818
12819# as_fn_arith ARG...
12820# ------------------
12821# Perform arithmetic evaluation on the ARGs, and store the result in the
12822# global $as_val. Take advantage of shells that can avoid forks. The arguments
12823# must be portable across $(()) and expr.
12824if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12825 eval 'as_fn_arith ()
12826 {
12827 as_val=$(( $* ))
12828 }'
12829else
12830 as_fn_arith ()
12831 {
12832 as_val=`expr "$@" || test $? -eq 1`
12833 }
12834fi # as_fn_arith
12835
12836
12837if expr a : '\(a\)' >/dev/null 2>&1 &&
12838 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12839 as_expr=expr
12840else
12841 as_expr=false
12842fi
12843
12844if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12845 as_basename=basename
12846else
12847 as_basename=false
12848fi
12849
12850if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12851 as_dirname=dirname
12852else
12853 as_dirname=false
12854fi
12855
12856as_me=`$as_basename -- "$0" ||
12857$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12858 X"$0" : 'X\(//\)$' \| \
12859 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12860$as_echo X/"$0" |
12861 sed '/^.*\/\([^/][^/]*\)\/*$/{
12862 s//\1/
12863 q
12864 }
12865 /^X\/\(\/\/\)$/{
12866 s//\1/
12867 q
12868 }
12869 /^X\/\(\/\).*/{
12870 s//\1/
12871 q
12872 }
12873 s/.*/./; q'`
12874
12875# Avoid depending upon Character Ranges.
12876as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12877as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12878as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12879as_cr_digits='0123456789'
12880as_cr_alnum=$as_cr_Letters$as_cr_digits
12881
12882ECHO_C= ECHO_N= ECHO_T=
12883case `echo -n x` in #(((((
12884-n*)
12885 case `echo 'xy\c'` in
12886 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12887 xy) ECHO_C='\c';;
12888 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12889 ECHO_T=' ';;
12890 esac;;
12891*)
12892 ECHO_N='-n';;
12893esac
12894
12895rm -f conf$$ conf$$.exe conf$$.file
12896if test -d conf$$.dir; then
12897 rm -f conf$$.dir/conf$$.file
12898else
12899 rm -f conf$$.dir
12900 mkdir conf$$.dir 2>/dev/null
12901fi
12902if (echo >conf$$.file) 2>/dev/null; then
12903 if ln -s conf$$.file conf$$ 2>/dev/null; then
12904 as_ln_s='ln -s'
12905 # ... but there are two gotchas:
12906 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12907 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 12908 # In both cases, we have to default to `cp -pR'.
ef016f83 12909 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 12910 as_ln_s='cp -pR'
ef016f83
MF
12911 elif ln conf$$.file conf$$ 2>/dev/null; then
12912 as_ln_s=ln
12913 else
d0ac1c44 12914 as_ln_s='cp -pR'
ef016f83
MF
12915 fi
12916else
d0ac1c44 12917 as_ln_s='cp -pR'
ef016f83
MF
12918fi
12919rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12920rmdir conf$$.dir 2>/dev/null
12921
12922
12923# as_fn_mkdir_p
12924# -------------
12925# Create "$as_dir" as a directory, including parents if necessary.
12926as_fn_mkdir_p ()
12927{
12928
12929 case $as_dir in #(
12930 -*) as_dir=./$as_dir;;
12931 esac
12932 test -d "$as_dir" || eval $as_mkdir_p || {
12933 as_dirs=
12934 while :; do
12935 case $as_dir in #(
12936 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12937 *) as_qdir=$as_dir;;
12938 esac
12939 as_dirs="'$as_qdir' $as_dirs"
12940 as_dir=`$as_dirname -- "$as_dir" ||
12941$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12942 X"$as_dir" : 'X\(//\)[^/]' \| \
12943 X"$as_dir" : 'X\(//\)$' \| \
12944 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12945$as_echo X"$as_dir" |
12946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12947 s//\1/
12948 q
12949 }
12950 /^X\(\/\/\)[^/].*/{
12951 s//\1/
12952 q
12953 }
12954 /^X\(\/\/\)$/{
12955 s//\1/
12956 q
12957 }
12958 /^X\(\/\).*/{
12959 s//\1/
12960 q
12961 }
12962 s/.*/./; q'`
12963 test -d "$as_dir" && break
12964 done
12965 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 12966 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
ef016f83
MF
12967
12968
12969} # as_fn_mkdir_p
12970if mkdir -p . 2>/dev/null; then
12971 as_mkdir_p='mkdir -p "$as_dir"'
12972else
12973 test -d ./-p && rmdir ./-p
12974 as_mkdir_p=false
12975fi
12976
d0ac1c44
SM
12977
12978# as_fn_executable_p FILE
12979# -----------------------
12980# Test if FILE is an executable regular file.
12981as_fn_executable_p ()
12982{
12983 test -f "$1" && test -x "$1"
12984} # as_fn_executable_p
12985as_test_x='test -x'
12986as_executable_p=as_fn_executable_p
ef016f83
MF
12987
12988# Sed expression to map a string onto a valid CPP name.
12989as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12990
12991# Sed expression to map a string onto a valid variable name.
12992as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12993
12994
12995exec 6>&1
12996## ----------------------------------- ##
12997## Main body of $CONFIG_STATUS script. ##
12998## ----------------------------------- ##
12999_ASEOF
13000test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13001
13002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13003# Save the log message, to keep $0 and so on meaningful, and to
13004# report actual input values of CONFIG_FILES etc. instead of their
13005# values after options handling.
13006ac_log="
13007This file was extended by $as_me, which was
d0ac1c44 13008generated by GNU Autoconf 2.69. Invocation command line was
ef016f83
MF
13009
13010 CONFIG_FILES = $CONFIG_FILES
13011 CONFIG_HEADERS = $CONFIG_HEADERS
13012 CONFIG_LINKS = $CONFIG_LINKS
13013 CONFIG_COMMANDS = $CONFIG_COMMANDS
13014 $ $0 $@
13015
13016on `(hostname || uname -n) 2>/dev/null | sed 1q`
13017"
13018
13019_ACEOF
13020
13021case $ac_config_files in *"
13022"*) set x $ac_config_files; shift; ac_config_files=$*;;
13023esac
13024
13025case $ac_config_headers in *"
13026"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13027esac
13028
13029
13030cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13031# Files that config.status was made for.
13032config_files="$ac_config_files"
13033config_headers="$ac_config_headers"
ef016f83
MF
13034config_commands="$ac_config_commands"
13035
13036_ACEOF
13037
13038cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13039ac_cs_usage="\
13040\`$as_me' instantiates files and other configuration actions
13041from templates according to the current configuration. Unless the files
13042and actions are specified as TAGs, all are instantiated by default.
13043
13044Usage: $0 [OPTION]... [TAG]...
13045
13046 -h, --help print this help, then exit
13047 -V, --version print version number and configuration settings, then exit
d0ac1c44 13048 --config print configuration, then exit
ef016f83
MF
13049 -q, --quiet, --silent
13050 do not print progress messages
13051 -d, --debug don't remove temporary files
13052 --recheck update $as_me by reconfiguring in the same conditions
13053 --file=FILE[:TEMPLATE]
13054 instantiate the configuration file FILE
13055 --header=FILE[:TEMPLATE]
13056 instantiate the configuration header FILE
13057
13058Configuration files:
13059$config_files
13060
13061Configuration headers:
13062$config_headers
13063
ef016f83
MF
13064Configuration commands:
13065$config_commands
13066
13067Report bugs to the package provider."
13068
13069_ACEOF
13070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 13071ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ef016f83
MF
13072ac_cs_version="\\
13073config.status
d0ac1c44
SM
13074configured by $0, generated by GNU Autoconf 2.69,
13075 with options \\"\$ac_cs_config\\"
ef016f83 13076
d0ac1c44 13077Copyright (C) 2012 Free Software Foundation, Inc.
ef016f83
MF
13078This config.status script is free software; the Free Software Foundation
13079gives unlimited permission to copy, distribute and modify it."
13080
13081ac_pwd='$ac_pwd'
13082srcdir='$srcdir'
13083INSTALL='$INSTALL'
6bb11ab3 13084AWK='$AWK'
ef016f83
MF
13085test -n "\$AWK" || AWK=awk
13086_ACEOF
13087
13088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13089# The default lists apply if the user does not specify any file.
13090ac_need_defaults=:
13091while test $# != 0
13092do
13093 case $1 in
d0ac1c44 13094 --*=?*)
ef016f83
MF
13095 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13096 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13097 ac_shift=:
13098 ;;
d0ac1c44
SM
13099 --*=)
13100 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13101 ac_optarg=
13102 ac_shift=:
13103 ;;
ef016f83
MF
13104 *)
13105 ac_option=$1
13106 ac_optarg=$2
13107 ac_shift=shift
13108 ;;
13109 esac
13110
13111 case $ac_option in
13112 # Handling of the options.
13113 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13114 ac_cs_recheck=: ;;
13115 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13116 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
13117 --config | --confi | --conf | --con | --co | --c )
13118 $as_echo "$ac_cs_config"; exit ;;
ef016f83
MF
13119 --debug | --debu | --deb | --de | --d | -d )
13120 debug=: ;;
13121 --file | --fil | --fi | --f )
13122 $ac_shift
13123 case $ac_optarg in
13124 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 13125 '') as_fn_error $? "missing file argument" ;;
ef016f83
MF
13126 esac
13127 as_fn_append CONFIG_FILES " '$ac_optarg'"
13128 ac_need_defaults=false;;
13129 --header | --heade | --head | --hea )
13130 $ac_shift
13131 case $ac_optarg in
13132 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13133 esac
13134 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13135 ac_need_defaults=false;;
13136 --he | --h)
13137 # Conflict between --help and --header
d0ac1c44 13138 as_fn_error $? "ambiguous option: \`$1'
ef016f83
MF
13139Try \`$0 --help' for more information.";;
13140 --help | --hel | -h )
13141 $as_echo "$ac_cs_usage"; exit ;;
13142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13143 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13144 ac_cs_silent=: ;;
13145
13146 # This is an error.
d0ac1c44 13147 -*) as_fn_error $? "unrecognized option: \`$1'
ef016f83
MF
13148Try \`$0 --help' for more information." ;;
13149
13150 *) as_fn_append ac_config_targets " $1"
13151 ac_need_defaults=false ;;
13152
13153 esac
13154 shift
13155done
13156
13157ac_configure_extra_args=
13158
13159if $ac_cs_silent; then
13160 exec 6>/dev/null
13161 ac_configure_extra_args="$ac_configure_extra_args --silent"
13162fi
13163
13164_ACEOF
13165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13166if \$ac_cs_recheck; then
d0ac1c44 13167 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
ef016f83
MF
13168 shift
13169 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13170 CONFIG_SHELL='$SHELL'
13171 export CONFIG_SHELL
13172 exec "\$@"
13173fi
13174
13175_ACEOF
13176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13177exec 5>>config.log
13178{
13179 echo
13180 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13181## Running $as_me. ##
13182_ASBOX
13183 $as_echo "$ac_log"
13184} >&5
13185
13186_ACEOF
13187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
db2e4d67
MF
13188#
13189# INIT-COMMANDS
13190#
13191ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
13192
6bb11ab3
L
13193
13194# The HP-UX ksh and POSIX shell print the target directory to stdout
13195# if CDPATH is set.
13196(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13197
13198sed_quote_subst='$sed_quote_subst'
13199double_quote_subst='$double_quote_subst'
13200delay_variable_subst='$delay_variable_subst'
13201macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13202macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13203enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13204enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13205pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13206enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13207SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13208ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13209host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13210host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13211host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13212build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13213build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13214build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13215SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13216Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13217GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13218EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13219FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13220LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13221NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13222LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13223max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13224ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13225exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13226lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13227lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13228lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13229reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13230reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13231OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13232deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13233file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13234AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13235AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13236STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13237RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13238old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13239old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13240old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13241lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13242CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13243CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13244compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13245GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13246lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13247lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13248lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13249lt_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"`'
13250objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13251MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13252lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13253lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13254lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13255lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13256lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13257need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13258DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13259NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13260LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13261OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13262OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13263libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13264shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13265extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13266archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13267enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13268export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13269whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13270compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13271old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13272old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13273archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13274archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13275module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13276module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13277with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13278allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13279no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13280hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13281hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13282hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13283hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13284hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13285hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13286hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13287hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13288inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13289link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13290fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13291always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13292export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13293exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13294include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13295prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13296file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13297variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13298need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13299need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13300version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13301runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13302shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13303shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13304libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13305library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13306soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13307install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13308postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13309postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13310finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13311finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13312hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13313sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13314sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13315hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13316enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13317enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13318enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13319old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13320striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13321
13322LTCC='$LTCC'
13323LTCFLAGS='$LTCFLAGS'
13324compiler='$compiler_DEFAULT'
13325
13326# A function that is used when there is no print builtin or printf.
13327func_fallback_echo ()
13328{
13329 eval 'cat <<_LTECHO_EOF
13330\$1
13331_LTECHO_EOF'
13332}
13333
13334# Quote evaled strings.
13335for var in SHELL \
13336ECHO \
13337SED \
13338GREP \
13339EGREP \
13340FGREP \
13341LD \
13342NM \
13343LN_S \
13344lt_SP2NL \
13345lt_NL2SP \
13346reload_flag \
13347OBJDUMP \
13348deplibs_check_method \
13349file_magic_cmd \
13350AR \
13351AR_FLAGS \
13352STRIP \
13353RANLIB \
13354CC \
13355CFLAGS \
13356compiler \
13357lt_cv_sys_global_symbol_pipe \
13358lt_cv_sys_global_symbol_to_cdecl \
13359lt_cv_sys_global_symbol_to_c_name_address \
13360lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13361lt_prog_compiler_no_builtin_flag \
13362lt_prog_compiler_wl \
13363lt_prog_compiler_pic \
13364lt_prog_compiler_static \
13365lt_cv_prog_compiler_c_o \
13366need_locks \
13367DSYMUTIL \
13368NMEDIT \
13369LIPO \
13370OTOOL \
13371OTOOL64 \
13372shrext_cmds \
13373export_dynamic_flag_spec \
13374whole_archive_flag_spec \
13375compiler_needs_object \
13376with_gnu_ld \
13377allow_undefined_flag \
13378no_undefined_flag \
13379hardcode_libdir_flag_spec \
13380hardcode_libdir_flag_spec_ld \
13381hardcode_libdir_separator \
13382fix_srcfile_path \
13383exclude_expsyms \
13384include_expsyms \
13385file_list_spec \
13386variables_saved_for_relink \
13387libname_spec \
13388library_names_spec \
13389soname_spec \
13390install_override_mode \
13391finish_eval \
13392old_striplib \
13393striplib; do
13394 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13395 *[\\\\\\\`\\"\\\$]*)
13396 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13397 ;;
13398 *)
13399 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13400 ;;
13401 esac
13402done
13403
13404# Double-quote double-evaled strings.
13405for var in reload_cmds \
13406old_postinstall_cmds \
13407old_postuninstall_cmds \
13408old_archive_cmds \
13409extract_expsyms_cmds \
13410old_archive_from_new_cmds \
13411old_archive_from_expsyms_cmds \
13412archive_cmds \
13413archive_expsym_cmds \
13414module_cmds \
13415module_expsym_cmds \
13416export_symbols_cmds \
13417prelink_cmds \
13418postinstall_cmds \
13419postuninstall_cmds \
13420finish_cmds \
13421sys_lib_search_path_spec \
13422sys_lib_dlsearch_path_spec; do
13423 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13424 *[\\\\\\\`\\"\\\$]*)
13425 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13426 ;;
13427 *)
13428 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13429 ;;
13430 esac
13431done
13432
13433ac_aux_dir='$ac_aux_dir'
13434xsi_shell='$xsi_shell'
13435lt_shell_append='$lt_shell_append'
13436
13437# See if we are running on zsh, and set the options which allow our
13438# commands through without removal of \ escapes INIT.
13439if test -n "\${ZSH_VERSION+set}" ; then
13440 setopt NO_GLOB_SUBST
13441fi
13442
13443
13444 PACKAGE='$PACKAGE'
13445 VERSION='$VERSION'
13446 TIMESTAMP='$TIMESTAMP'
13447 RM='$RM'
13448 ofile='$ofile'
13449
13450
13451
13452
ef016f83
MF
13453_ACEOF
13454
13455cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13456
13457# Handling of arguments.
13458for ac_config_target in $ac_config_targets
13459do
13460 case $ac_config_target in
13461 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
db2e4d67 13462 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
6bb11ab3 13463 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
ef016f83
MF
13464 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
13465 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
13466 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
13467 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
13468 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
13469
d0ac1c44 13470 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
ef016f83
MF
13471 esac
13472done
13473
13474
13475# If the user did not use the arguments to specify the items to instantiate,
13476# then the envvar interface is used. Set only those that are not.
13477# We use the long form for the default assignment because of an extremely
13478# bizarre bug on SunOS 4.1.3.
13479if $ac_need_defaults; then
13480 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13481 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ef016f83
MF
13482 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13483fi
13484
13485# Have a temporary directory for convenience. Make it in the build tree
13486# simply because there is no reason against having it here, and in addition,
13487# creating and moving files from /tmp can sometimes cause problems.
13488# Hook for its removal unless debugging.
13489# Note that there is a small window in which the directory will not be cleaned:
13490# after its creation but before its name has been assigned to `$tmp'.
13491$debug ||
13492{
d0ac1c44 13493 tmp= ac_tmp=
ef016f83 13494 trap 'exit_status=$?
d0ac1c44
SM
13495 : "${ac_tmp:=$tmp}"
13496 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
ef016f83
MF
13497' 0
13498 trap 'as_fn_exit 1' 1 2 13 15
13499}
13500# Create a (secure) tmp directory for tmp files.
13501
13502{
13503 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 13504 test -d "$tmp"
ef016f83
MF
13505} ||
13506{
13507 tmp=./conf$$-$RANDOM
13508 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
13509} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13510ac_tmp=$tmp
ef016f83
MF
13511
13512# Set up the scripts for CONFIG_FILES section.
13513# No need to generate them if there are no CONFIG_FILES.
13514# This happens for instance with `./config.status config.h'.
13515if test -n "$CONFIG_FILES"; then
13516
13517
13518ac_cr=`echo X | tr X '\015'`
13519# On cygwin, bash can eat \r inside `` if the user requested igncr.
13520# But we know of no other shell where ac_cr would be empty at this
13521# point, so we can use a bashism as a fallback.
13522if test "x$ac_cr" = x; then
13523 eval ac_cr=\$\'\\r\'
13524fi
13525ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13526if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 13527 ac_cs_awk_cr='\\r'
ef016f83
MF
13528else
13529 ac_cs_awk_cr=$ac_cr
13530fi
13531
d0ac1c44 13532echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
ef016f83
MF
13533_ACEOF
13534
13535
13536{
13537 echo "cat >conf$$subs.awk <<_ACEOF" &&
13538 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13539 echo "_ACEOF"
13540} >conf$$subs.sh ||
d0ac1c44
SM
13541 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13542ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
ef016f83
MF
13543ac_delim='%!_!# '
13544for ac_last_try in false false false false false :; do
13545 . ./conf$$subs.sh ||
d0ac1c44 13546 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ef016f83
MF
13547
13548 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13549 if test $ac_delim_n = $ac_delim_num; then
13550 break
13551 elif $ac_last_try; then
d0ac1c44 13552 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ef016f83
MF
13553 else
13554 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13555 fi
13556done
13557rm -f conf$$subs.sh
13558
13559cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 13560cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
ef016f83
MF
13561_ACEOF
13562sed -n '
13563h
13564s/^/S["/; s/!.*/"]=/
13565p
13566g
13567s/^[^!]*!//
13568:repl
13569t repl
13570s/'"$ac_delim"'$//
13571t delim
13572:nl
13573h
d0ac1c44 13574s/\(.\{148\}\)..*/\1/
ef016f83
MF
13575t more1
13576s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13577p
13578n
13579b repl
13580:more1
13581s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13582p
13583g
13584s/.\{148\}//
13585t nl
13586:delim
13587h
d0ac1c44 13588s/\(.\{148\}\)..*/\1/
ef016f83
MF
13589t more2
13590s/["\\]/\\&/g; s/^/"/; s/$/"/
13591p
13592b
13593:more2
13594s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13595p
13596g
13597s/.\{148\}//
13598t delim
13599' <conf$$subs.awk | sed '
13600/^[^""]/{
13601 N
13602 s/\n//
13603}
13604' >>$CONFIG_STATUS || ac_write_fail=1
13605rm -f conf$$subs.awk
13606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13607_ACAWK
d0ac1c44 13608cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
ef016f83
MF
13609 for (key in S) S_is_set[key] = 1
13610 FS = "\a"
13611
13612}
13613{
13614 line = $ 0
13615 nfields = split(line, field, "@")
13616 substed = 0
13617 len = length(field[1])
13618 for (i = 2; i < nfields; i++) {
13619 key = field[i]
13620 keylen = length(key)
13621 if (S_is_set[key]) {
13622 value = S[key]
13623 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13624 len += length(value) + length(field[++i])
13625 substed = 1
13626 } else
13627 len += 1 + keylen
13628 }
13629
13630 print line
13631}
13632
13633_ACAWK
13634_ACEOF
13635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13636if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13637 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13638else
13639 cat
d0ac1c44
SM
13640fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13641 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
ef016f83
MF
13642_ACEOF
13643
d0ac1c44
SM
13644# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13645# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
ef016f83
MF
13646# trailing colons and then remove the whole line if VPATH becomes empty
13647# (actually we leave an empty line to preserve line numbers).
13648if test "x$srcdir" = x.; then
d0ac1c44
SM
13649 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13650h
13651s///
13652s/^/:/
13653s/[ ]*$/:/
13654s/:\$(srcdir):/:/g
13655s/:\${srcdir}:/:/g
13656s/:@srcdir@:/:/g
13657s/^:*//
ef016f83 13658s/:*$//
d0ac1c44
SM
13659x
13660s/\(=[ ]*\).*/\1/
13661G
13662s/\n//
ef016f83
MF
13663s/^[^=]*=[ ]*$//
13664}'
13665fi
13666
13667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13668fi # test -n "$CONFIG_FILES"
13669
13670# Set up the scripts for CONFIG_HEADERS section.
13671# No need to generate them if there are no CONFIG_HEADERS.
13672# This happens for instance with `./config.status Makefile'.
13673if test -n "$CONFIG_HEADERS"; then
d0ac1c44 13674cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
ef016f83
MF
13675BEGIN {
13676_ACEOF
13677
13678# Transform confdefs.h into an awk script `defines.awk', embedded as
13679# here-document in config.status, that substitutes the proper values into
13680# config.h.in to produce config.h.
13681
13682# Create a delimiter string that does not exist in confdefs.h, to ease
13683# handling of long lines.
13684ac_delim='%!_!# '
13685for ac_last_try in false false :; do
d0ac1c44
SM
13686 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13687 if test -z "$ac_tt"; then
ef016f83
MF
13688 break
13689 elif $ac_last_try; then
d0ac1c44 13690 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
ef016f83
MF
13691 else
13692 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13693 fi
13694done
13695
13696# For the awk script, D is an array of macro values keyed by name,
13697# likewise P contains macro parameters if any. Preserve backslash
13698# newline sequences.
13699
13700ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13701sed -n '
13702s/.\{148\}/&'"$ac_delim"'/g
13703t rset
13704:rset
13705s/^[ ]*#[ ]*define[ ][ ]*/ /
13706t def
13707d
13708:def
13709s/\\$//
13710t bsnl
13711s/["\\]/\\&/g
13712s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13713D["\1"]=" \3"/p
13714s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13715d
13716:bsnl
13717s/["\\]/\\&/g
13718s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13719D["\1"]=" \3\\\\\\n"\\/p
13720t cont
13721s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13722t cont
13723d
13724:cont
13725n
13726s/.\{148\}/&'"$ac_delim"'/g
13727t clear
13728:clear
13729s/\\$//
13730t bsnlc
13731s/["\\]/\\&/g; s/^/"/; s/$/"/p
13732d
13733:bsnlc
13734s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13735b cont
13736' <confdefs.h | sed '
13737s/'"$ac_delim"'/"\\\
13738"/g' >>$CONFIG_STATUS || ac_write_fail=1
13739
13740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13741 for (key in D) D_is_set[key] = 1
13742 FS = "\a"
13743}
13744/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13745 line = \$ 0
13746 split(line, arg, " ")
13747 if (arg[1] == "#") {
13748 defundef = arg[2]
13749 mac1 = arg[3]
13750 } else {
13751 defundef = substr(arg[1], 2)
13752 mac1 = arg[2]
13753 }
13754 split(mac1, mac2, "(") #)
13755 macro = mac2[1]
13756 prefix = substr(line, 1, index(line, defundef) - 1)
13757 if (D_is_set[macro]) {
13758 # Preserve the white space surrounding the "#".
13759 print prefix "define", macro P[macro] D[macro]
13760 next
13761 } else {
13762 # Replace #undef with comments. This is necessary, for example,
13763 # in the case of _POSIX_SOURCE, which is predefined and required
13764 # on some systems where configure will not decide to define it.
13765 if (defundef == "undef") {
13766 print "/*", prefix defundef, macro, "*/"
13767 next
13768 }
13769 }
13770}
13771{ print }
13772_ACAWK
13773_ACEOF
13774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 13775 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
ef016f83
MF
13776fi # test -n "$CONFIG_HEADERS"
13777
13778
99d8e879 13779eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
ef016f83
MF
13780shift
13781for ac_tag
13782do
13783 case $ac_tag in
13784 :[FHLC]) ac_mode=$ac_tag; continue;;
13785 esac
13786 case $ac_mode$ac_tag in
13787 :[FHL]*:*);;
d0ac1c44 13788 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
ef016f83
MF
13789 :[FH]-) ac_tag=-:-;;
13790 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13791 esac
13792 ac_save_IFS=$IFS
13793 IFS=:
13794 set x $ac_tag
13795 IFS=$ac_save_IFS
13796 shift
13797 ac_file=$1
13798 shift
13799
13800 case $ac_mode in
13801 :L) ac_source=$1;;
13802 :[FH])
13803 ac_file_inputs=
13804 for ac_f
13805 do
13806 case $ac_f in
d0ac1c44 13807 -) ac_f="$ac_tmp/stdin";;
ef016f83
MF
13808 *) # Look for the file first in the build tree, then in the source tree
13809 # (if the path is not absolute). The absolute path cannot be DOS-style,
13810 # because $ac_f cannot contain `:'.
13811 test -f "$ac_f" ||
13812 case $ac_f in
13813 [\\/$]*) false;;
13814 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13815 esac ||
d0ac1c44 13816 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
ef016f83
MF
13817 esac
13818 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13819 as_fn_append ac_file_inputs " '$ac_f'"
13820 done
13821
13822 # Let's still pretend it is `configure' which instantiates (i.e., don't
13823 # use $as_me), people would be surprised to read:
13824 # /* config.h. Generated by config.status. */
13825 configure_input='Generated from '`
13826 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13827 `' by configure.'
13828 if test x"$ac_file" != x-; then
13829 configure_input="$ac_file. $configure_input"
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13831$as_echo "$as_me: creating $ac_file" >&6;}
13832 fi
13833 # Neutralize special characters interpreted by sed in replacement strings.
13834 case $configure_input in #(
13835 *\&* | *\|* | *\\* )
13836 ac_sed_conf_input=`$as_echo "$configure_input" |
13837 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13838 *) ac_sed_conf_input=$configure_input;;
13839 esac
13840
13841 case $ac_tag in
d0ac1c44
SM
13842 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13843 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
ef016f83
MF
13844 esac
13845 ;;
13846 esac
13847
13848 ac_dir=`$as_dirname -- "$ac_file" ||
13849$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13850 X"$ac_file" : 'X\(//\)[^/]' \| \
13851 X"$ac_file" : 'X\(//\)$' \| \
13852 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13853$as_echo X"$ac_file" |
13854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13855 s//\1/
13856 q
13857 }
13858 /^X\(\/\/\)[^/].*/{
13859 s//\1/
13860 q
13861 }
13862 /^X\(\/\/\)$/{
13863 s//\1/
13864 q
13865 }
13866 /^X\(\/\).*/{
13867 s//\1/
13868 q
13869 }
13870 s/.*/./; q'`
13871 as_dir="$ac_dir"; as_fn_mkdir_p
13872 ac_builddir=.
13873
13874case "$ac_dir" in
13875.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13876*)
13877 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13878 # A ".." for each directory in $ac_dir_suffix.
13879 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13880 case $ac_top_builddir_sub in
13881 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13882 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13883 esac ;;
13884esac
13885ac_abs_top_builddir=$ac_pwd
13886ac_abs_builddir=$ac_pwd$ac_dir_suffix
13887# for backward compatibility:
13888ac_top_builddir=$ac_top_build_prefix
13889
13890case $srcdir in
13891 .) # We are building in place.
13892 ac_srcdir=.
13893 ac_top_srcdir=$ac_top_builddir_sub
13894 ac_abs_top_srcdir=$ac_pwd ;;
13895 [\\/]* | ?:[\\/]* ) # Absolute name.
13896 ac_srcdir=$srcdir$ac_dir_suffix;
13897 ac_top_srcdir=$srcdir
13898 ac_abs_top_srcdir=$srcdir ;;
13899 *) # Relative name.
13900 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13901 ac_top_srcdir=$ac_top_build_prefix$srcdir
13902 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13903esac
13904ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13905
13906
13907 case $ac_mode in
13908 :F)
13909 #
13910 # CONFIG_FILE
13911 #
13912
13913 case $INSTALL in
13914 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13915 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13916 esac
13917_ACEOF
13918
13919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13920# If the template does not know about datarootdir, expand it.
13921# FIXME: This hack should be removed a few years after 2.60.
13922ac_datarootdir_hack=; ac_datarootdir_seen=
13923ac_sed_dataroot='
13924/datarootdir/ {
13925 p
13926 q
13927}
13928/@datadir@/p
13929/@docdir@/p
13930/@infodir@/p
13931/@localedir@/p
13932/@mandir@/p'
13933case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13934*datarootdir*) ac_datarootdir_seen=yes;;
13935*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13937$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13938_ACEOF
13939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13940 ac_datarootdir_hack='
13941 s&@datadir@&$datadir&g
13942 s&@docdir@&$docdir&g
13943 s&@infodir@&$infodir&g
13944 s&@localedir@&$localedir&g
13945 s&@mandir@&$mandir&g
13946 s&\\\${datarootdir}&$datarootdir&g' ;;
13947esac
13948_ACEOF
13949
13950# Neutralize VPATH when `$srcdir' = `.'.
13951# Shell code in configure.ac might set extrasub.
13952# FIXME: do we really want to maintain this feature?
13953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13954ac_sed_extra="$ac_vpsub
13955$extrasub
13956_ACEOF
13957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13958:t
13959/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13960s|@configure_input@|$ac_sed_conf_input|;t t
13961s&@top_builddir@&$ac_top_builddir_sub&;t t
13962s&@top_build_prefix@&$ac_top_build_prefix&;t t
13963s&@srcdir@&$ac_srcdir&;t t
13964s&@abs_srcdir@&$ac_abs_srcdir&;t t
13965s&@top_srcdir@&$ac_top_srcdir&;t t
13966s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13967s&@builddir@&$ac_builddir&;t t
13968s&@abs_builddir@&$ac_abs_builddir&;t t
13969s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13970s&@INSTALL@&$ac_INSTALL&;t t
13971$ac_datarootdir_hack
13972"
d0ac1c44
SM
13973eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13974 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ef016f83
MF
13975
13976test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
13977 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13978 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13979 "$ac_tmp/out"`; test -z "$ac_out"; } &&
ef016f83 13980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 13981which seems to be undefined. Please make sure it is defined" >&5
ef016f83 13982$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 13983which seems to be undefined. Please make sure it is defined" >&2;}
ef016f83 13984
d0ac1c44 13985 rm -f "$ac_tmp/stdin"
ef016f83 13986 case $ac_file in
d0ac1c44
SM
13987 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13988 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
ef016f83 13989 esac \
d0ac1c44 13990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ef016f83
MF
13991 ;;
13992 :H)
13993 #
13994 # CONFIG_HEADER
13995 #
13996 if test x"$ac_file" != x-; then
13997 {
13998 $as_echo "/* $configure_input */" \
d0ac1c44
SM
13999 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14000 } >"$ac_tmp/config.h" \
14001 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14002 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
ef016f83
MF
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14004$as_echo "$as_me: $ac_file is unchanged" >&6;}
14005 else
14006 rm -f "$ac_file"
d0ac1c44
SM
14007 mv "$ac_tmp/config.h" "$ac_file" \
14008 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ef016f83
MF
14009 fi
14010 else
14011 $as_echo "/* $configure_input */" \
d0ac1c44
SM
14012 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14013 || as_fn_error $? "could not create -" "$LINENO" 5
ef016f83
MF
14014 fi
14015 ;;
ef016f83 14016
ef016f83
MF
14017 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14018$as_echo "$as_me: executing $ac_file commands" >&6;}
14019 ;;
14020 esac
14021
14022
14023 case $ac_file$ac_mode in
db2e4d67 14024 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
6bb11ab3
L
14025 "libtool":C)
14026
14027 # See if we are running on zsh, and set the options which allow our
14028 # commands through without removal of \ escapes.
14029 if test -n "${ZSH_VERSION+set}" ; then
14030 setopt NO_GLOB_SUBST
14031 fi
14032
14033 cfgfile="${ofile}T"
14034 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14035 $RM "$cfgfile"
14036
14037 cat <<_LT_EOF >> "$cfgfile"
14038#! $SHELL
14039
14040# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14041# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14042# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14043# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14044#
14045# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14046# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14047# Written by Gordon Matzigkeit, 1996
14048#
14049# This file is part of GNU Libtool.
14050#
14051# GNU Libtool is free software; you can redistribute it and/or
14052# modify it under the terms of the GNU General Public License as
14053# published by the Free Software Foundation; either version 2 of
14054# the License, or (at your option) any later version.
14055#
14056# As a special exception to the GNU General Public License,
14057# if you distribute this file as part of a program or library that
14058# is built using GNU Libtool, you may include this file under the
14059# same distribution terms that you use for the rest of that program.
14060#
14061# GNU Libtool is distributed in the hope that it will be useful,
14062# but WITHOUT ANY WARRANTY; without even the implied warranty of
14063# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14064# GNU General Public License for more details.
14065#
14066# You should have received a copy of the GNU General Public License
14067# along with GNU Libtool; see the file COPYING. If not, a copy
14068# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14069# obtained by writing to the Free Software Foundation, Inc.,
14070# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14071
14072
14073# The names of the tagged configurations supported by this script.
14074available_tags=""
14075
14076# ### BEGIN LIBTOOL CONFIG
14077
14078# Which release of libtool.m4 was used?
14079macro_version=$macro_version
14080macro_revision=$macro_revision
14081
14082# Whether or not to build shared libraries.
14083build_libtool_libs=$enable_shared
14084
14085# Whether or not to build static libraries.
14086build_old_libs=$enable_static
14087
14088# What type of objects to build.
14089pic_mode=$pic_mode
14090
14091# Whether or not to optimize for fast installation.
14092fast_install=$enable_fast_install
14093
14094# Shell to use when invoking shell scripts.
14095SHELL=$lt_SHELL
14096
14097# An echo program that protects backslashes.
14098ECHO=$lt_ECHO
14099
14100# The host system.
14101host_alias=$host_alias
14102host=$host
14103host_os=$host_os
14104
14105# The build system.
14106build_alias=$build_alias
14107build=$build
14108build_os=$build_os
14109
14110# A sed program that does not truncate output.
14111SED=$lt_SED
14112
14113# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14114Xsed="\$SED -e 1s/^X//"
14115
14116# A grep program that handles long lines.
14117GREP=$lt_GREP
14118
14119# An ERE matcher.
14120EGREP=$lt_EGREP
14121
14122# A literal string matcher.
14123FGREP=$lt_FGREP
14124
14125# A BSD- or MS-compatible name lister.
14126NM=$lt_NM
14127
14128# Whether we need soft or hard links.
14129LN_S=$lt_LN_S
14130
14131# What is the maximum length of a command?
14132max_cmd_len=$max_cmd_len
14133
14134# Object file suffix (normally "o").
14135objext=$ac_objext
14136
14137# Executable file suffix (normally "").
14138exeext=$exeext
14139
14140# whether the shell understands "unset".
14141lt_unset=$lt_unset
14142
14143# turn spaces into newlines.
14144SP2NL=$lt_lt_SP2NL
14145
14146# turn newlines into spaces.
14147NL2SP=$lt_lt_NL2SP
14148
14149# An object symbol dumper.
14150OBJDUMP=$lt_OBJDUMP
14151
14152# Method to check whether dependent libraries are shared objects.
14153deplibs_check_method=$lt_deplibs_check_method
14154
14155# Command to use when deplibs_check_method == "file_magic".
14156file_magic_cmd=$lt_file_magic_cmd
14157
14158# The archiver.
14159AR=$lt_AR
14160AR_FLAGS=$lt_AR_FLAGS
14161
14162# A symbol stripping program.
14163STRIP=$lt_STRIP
14164
14165# Commands used to install an old-style archive.
14166RANLIB=$lt_RANLIB
14167old_postinstall_cmds=$lt_old_postinstall_cmds
14168old_postuninstall_cmds=$lt_old_postuninstall_cmds
14169
14170# Whether to use a lock for old archive extraction.
14171lock_old_archive_extraction=$lock_old_archive_extraction
14172
14173# A C compiler.
14174LTCC=$lt_CC
14175
14176# LTCC compiler flags.
14177LTCFLAGS=$lt_CFLAGS
14178
14179# Take the output of nm and produce a listing of raw symbols and C names.
14180global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14181
14182# Transform the output of nm in a proper C declaration.
14183global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14184
14185# Transform the output of nm in a C name address pair.
14186global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14187
14188# Transform the output of nm in a C name address pair when lib prefix is needed.
14189global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14190
14191# The name of the directory that contains temporary libtool files.
14192objdir=$objdir
14193
14194# Used to examine libraries when file_magic_cmd begins with "file".
14195MAGIC_CMD=$MAGIC_CMD
14196
14197# Must we lock files when doing compilation?
14198need_locks=$lt_need_locks
14199
14200# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14201DSYMUTIL=$lt_DSYMUTIL
14202
14203# Tool to change global to local symbols on Mac OS X.
14204NMEDIT=$lt_NMEDIT
14205
14206# Tool to manipulate fat objects and archives on Mac OS X.
14207LIPO=$lt_LIPO
14208
14209# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14210OTOOL=$lt_OTOOL
14211
14212# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14213OTOOL64=$lt_OTOOL64
14214
14215# Old archive suffix (normally "a").
14216libext=$libext
14217
14218# Shared library suffix (normally ".so").
14219shrext_cmds=$lt_shrext_cmds
14220
14221# The commands to extract the exported symbol list from a shared archive.
14222extract_expsyms_cmds=$lt_extract_expsyms_cmds
14223
14224# Variables whose values should be saved in libtool wrapper scripts and
14225# restored at link time.
14226variables_saved_for_relink=$lt_variables_saved_for_relink
14227
14228# Do we need the "lib" prefix for modules?
14229need_lib_prefix=$need_lib_prefix
14230
14231# Do we need a version for libraries?
14232need_version=$need_version
14233
14234# Library versioning type.
14235version_type=$version_type
14236
14237# Shared library runtime path variable.
14238runpath_var=$runpath_var
14239
14240# Shared library path variable.
14241shlibpath_var=$shlibpath_var
14242
14243# Is shlibpath searched before the hard-coded library search path?
14244shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14245
14246# Format of library name prefix.
14247libname_spec=$lt_libname_spec
14248
14249# List of archive names. First name is the real one, the rest are links.
14250# The last name is the one that the linker finds with -lNAME
14251library_names_spec=$lt_library_names_spec
14252
14253# The coded name of the library, if different from the real name.
14254soname_spec=$lt_soname_spec
14255
14256# Permission mode override for installation of shared libraries.
14257install_override_mode=$lt_install_override_mode
14258
14259# Command to use after installation of a shared archive.
14260postinstall_cmds=$lt_postinstall_cmds
14261
14262# Command to use after uninstallation of a shared archive.
14263postuninstall_cmds=$lt_postuninstall_cmds
14264
14265# Commands used to finish a libtool library installation in a directory.
14266finish_cmds=$lt_finish_cmds
14267
14268# As "finish_cmds", except a single script fragment to be evaled but
14269# not shown.
14270finish_eval=$lt_finish_eval
14271
14272# Whether we should hardcode library paths into libraries.
14273hardcode_into_libs=$hardcode_into_libs
14274
14275# Compile-time system search path for libraries.
14276sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14277
14278# Run-time system search path for libraries.
14279sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14280
14281# Whether dlopen is supported.
14282dlopen_support=$enable_dlopen
14283
14284# Whether dlopen of programs is supported.
14285dlopen_self=$enable_dlopen_self
14286
14287# Whether dlopen of statically linked programs is supported.
14288dlopen_self_static=$enable_dlopen_self_static
14289
14290# Commands to strip libraries.
14291old_striplib=$lt_old_striplib
14292striplib=$lt_striplib
14293
14294
14295# The linker used to build libraries.
14296LD=$lt_LD
14297
14298# How to create reloadable object files.
14299reload_flag=$lt_reload_flag
14300reload_cmds=$lt_reload_cmds
14301
14302# Commands used to build an old-style archive.
14303old_archive_cmds=$lt_old_archive_cmds
14304
14305# A language specific compiler.
14306CC=$lt_compiler
14307
14308# Is the compiler the GNU compiler?
14309with_gcc=$GCC
14310
14311# Compiler flag to turn off builtin functions.
14312no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14313
14314# How to pass a linker flag through the compiler.
14315wl=$lt_lt_prog_compiler_wl
14316
14317# Additional compiler flags for building library objects.
14318pic_flag=$lt_lt_prog_compiler_pic
14319
14320# Compiler flag to prevent dynamic linking.
14321link_static_flag=$lt_lt_prog_compiler_static
14322
14323# Does compiler simultaneously support -c and -o options?
14324compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14325
14326# Whether or not to add -lc for building shared libraries.
14327build_libtool_need_lc=$archive_cmds_need_lc
14328
14329# Whether or not to disallow shared libs when runtime libs are static.
14330allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14331
14332# Compiler flag to allow reflexive dlopens.
14333export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14334
14335# Compiler flag to generate shared objects directly from archives.
14336whole_archive_flag_spec=$lt_whole_archive_flag_spec
14337
14338# Whether the compiler copes with passing no objects directly.
14339compiler_needs_object=$lt_compiler_needs_object
14340
14341# Create an old-style archive from a shared archive.
14342old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14343
14344# Create a temporary old-style archive to link instead of a shared archive.
14345old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14346
14347# Commands used to build a shared archive.
14348archive_cmds=$lt_archive_cmds
14349archive_expsym_cmds=$lt_archive_expsym_cmds
14350
14351# Commands used to build a loadable module if different from building
14352# a shared archive.
14353module_cmds=$lt_module_cmds
14354module_expsym_cmds=$lt_module_expsym_cmds
14355
14356# Whether we are building with GNU ld or not.
14357with_gnu_ld=$lt_with_gnu_ld
14358
14359# Flag that allows shared libraries with undefined symbols to be built.
14360allow_undefined_flag=$lt_allow_undefined_flag
14361
14362# Flag that enforces no undefined symbols.
14363no_undefined_flag=$lt_no_undefined_flag
14364
14365# Flag to hardcode \$libdir into a binary during linking.
14366# This must work even if \$libdir does not exist
14367hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14368
14369# If ld is used when linking, flag to hardcode \$libdir into a binary
14370# during linking. This must work even if \$libdir does not exist.
14371hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14372
14373# Whether we need a single "-rpath" flag with a separated argument.
14374hardcode_libdir_separator=$lt_hardcode_libdir_separator
14375
14376# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14377# DIR into the resulting binary.
14378hardcode_direct=$hardcode_direct
14379
14380# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14381# DIR into the resulting binary and the resulting library dependency is
14382# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14383# library is relocated.
14384hardcode_direct_absolute=$hardcode_direct_absolute
14385
14386# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14387# into the resulting binary.
14388hardcode_minus_L=$hardcode_minus_L
14389
14390# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14391# into the resulting binary.
14392hardcode_shlibpath_var=$hardcode_shlibpath_var
14393
14394# Set to "yes" if building a shared library automatically hardcodes DIR
14395# into the library and all subsequent libraries and executables linked
14396# against it.
14397hardcode_automatic=$hardcode_automatic
14398
14399# Set to yes if linker adds runtime paths of dependent libraries
14400# to runtime path list.
14401inherit_rpath=$inherit_rpath
14402
14403# Whether libtool must link a program against all its dependency libraries.
14404link_all_deplibs=$link_all_deplibs
14405
14406# Fix the shell variable \$srcfile for the compiler.
14407fix_srcfile_path=$lt_fix_srcfile_path
14408
14409# Set to "yes" if exported symbols are required.
14410always_export_symbols=$always_export_symbols
14411
14412# The commands to list exported symbols.
14413export_symbols_cmds=$lt_export_symbols_cmds
14414
14415# Symbols that should not be listed in the preloaded symbols.
14416exclude_expsyms=$lt_exclude_expsyms
14417
14418# Symbols that must always be exported.
14419include_expsyms=$lt_include_expsyms
14420
14421# Commands necessary for linking programs (against libraries) with templates.
14422prelink_cmds=$lt_prelink_cmds
14423
14424# Specify filename containing input files.
14425file_list_spec=$lt_file_list_spec
14426
14427# How to hardcode a shared library path into an executable.
14428hardcode_action=$hardcode_action
14429
14430# ### END LIBTOOL CONFIG
14431
14432_LT_EOF
14433
14434 case $host_os in
14435 aix3*)
14436 cat <<\_LT_EOF >> "$cfgfile"
14437# AIX sometimes has problems with the GCC collect2 program. For some
14438# reason, if we set the COLLECT_NAMES environment variable, the problems
14439# vanish in a puff of smoke.
14440if test "X${COLLECT_NAMES+set}" != Xset; then
14441 COLLECT_NAMES=
14442 export COLLECT_NAMES
14443fi
14444_LT_EOF
14445 ;;
14446 esac
14447
14448
14449ltmain="$ac_aux_dir/ltmain.sh"
14450
14451
14452 # We use sed instead of cat because bash on DJGPP gets confused if
14453 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14454 # text mode, it properly converts lines to CR/LF. This bash problem
14455 # is reportedly fixed, but why not run on old versions too?
14456 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14457 || (rm -f "$cfgfile"; exit 1)
14458
14459 case $xsi_shell in
14460 yes)
14461 cat << \_LT_EOF >> "$cfgfile"
14462
14463# func_dirname file append nondir_replacement
14464# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14465# otherwise set result to NONDIR_REPLACEMENT.
14466func_dirname ()
14467{
14468 case ${1} in
14469 */*) func_dirname_result="${1%/*}${2}" ;;
14470 * ) func_dirname_result="${3}" ;;
14471 esac
14472}
14473
14474# func_basename file
14475func_basename ()
14476{
14477 func_basename_result="${1##*/}"
14478}
14479
14480# func_dirname_and_basename file append nondir_replacement
14481# perform func_basename and func_dirname in a single function
14482# call:
14483# dirname: Compute the dirname of FILE. If nonempty,
14484# add APPEND to the result, otherwise set result
14485# to NONDIR_REPLACEMENT.
14486# value returned in "$func_dirname_result"
14487# basename: Compute filename of FILE.
14488# value retuned in "$func_basename_result"
14489# Implementation must be kept synchronized with func_dirname
14490# and func_basename. For efficiency, we do not delegate to
14491# those functions but instead duplicate the functionality here.
14492func_dirname_and_basename ()
14493{
14494 case ${1} in
14495 */*) func_dirname_result="${1%/*}${2}" ;;
14496 * ) func_dirname_result="${3}" ;;
14497 esac
14498 func_basename_result="${1##*/}"
14499}
14500
14501# func_stripname prefix suffix name
14502# strip PREFIX and SUFFIX off of NAME.
14503# PREFIX and SUFFIX must not contain globbing or regex special
14504# characters, hashes, percent signs, but SUFFIX may contain a leading
14505# dot (in which case that matches only a dot).
14506func_stripname ()
14507{
14508 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14509 # positional parameters, so assign one to ordinary parameter first.
14510 func_stripname_result=${3}
14511 func_stripname_result=${func_stripname_result#"${1}"}
14512 func_stripname_result=${func_stripname_result%"${2}"}
14513}
14514
14515# func_opt_split
14516func_opt_split ()
14517{
14518 func_opt_split_opt=${1%%=*}
14519 func_opt_split_arg=${1#*=}
14520}
14521
14522# func_lo2o object
14523func_lo2o ()
14524{
14525 case ${1} in
14526 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14527 *) func_lo2o_result=${1} ;;
14528 esac
14529}
14530
14531# func_xform libobj-or-source
14532func_xform ()
14533{
14534 func_xform_result=${1%.*}.lo
14535}
14536
14537# func_arith arithmetic-term...
14538func_arith ()
14539{
14540 func_arith_result=$(( $* ))
14541}
14542
14543# func_len string
14544# STRING may not start with a hyphen.
14545func_len ()
14546{
14547 func_len_result=${#1}
14548}
14549
14550_LT_EOF
14551 ;;
14552 *) # Bourne compatible functions.
14553 cat << \_LT_EOF >> "$cfgfile"
14554
14555# func_dirname file append nondir_replacement
14556# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14557# otherwise set result to NONDIR_REPLACEMENT.
14558func_dirname ()
14559{
14560 # Extract subdirectory from the argument.
14561 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14562 if test "X$func_dirname_result" = "X${1}"; then
14563 func_dirname_result="${3}"
14564 else
14565 func_dirname_result="$func_dirname_result${2}"
14566 fi
14567}
14568
14569# func_basename file
14570func_basename ()
14571{
14572 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14573}
14574
14575
14576# func_stripname prefix suffix name
14577# strip PREFIX and SUFFIX off of NAME.
14578# PREFIX and SUFFIX must not contain globbing or regex special
14579# characters, hashes, percent signs, but SUFFIX may contain a leading
14580# dot (in which case that matches only a dot).
14581# func_strip_suffix prefix name
14582func_stripname ()
14583{
14584 case ${2} in
14585 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14586 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14587 esac
14588}
14589
14590# sed scripts:
14591my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14592my_sed_long_arg='1s/^-[^=]*=//'
14593
14594# func_opt_split
14595func_opt_split ()
14596{
14597 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14598 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14599}
14600
14601# func_lo2o object
14602func_lo2o ()
14603{
14604 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14605}
14606
14607# func_xform libobj-or-source
14608func_xform ()
14609{
14610 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14611}
14612
14613# func_arith arithmetic-term...
14614func_arith ()
14615{
14616 func_arith_result=`expr "$@"`
14617}
14618
14619# func_len string
14620# STRING may not start with a hyphen.
14621func_len ()
14622{
14623 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14624}
14625
14626_LT_EOF
14627esac
14628
14629case $lt_shell_append in
14630 yes)
14631 cat << \_LT_EOF >> "$cfgfile"
14632
14633# func_append var value
14634# Append VALUE to the end of shell variable VAR.
14635func_append ()
14636{
14637 eval "$1+=\$2"
14638}
14639_LT_EOF
14640 ;;
14641 *)
14642 cat << \_LT_EOF >> "$cfgfile"
14643
14644# func_append var value
14645# Append VALUE to the end of shell variable VAR.
14646func_append ()
14647{
14648 eval "$1=\$$1\$2"
14649}
14650
14651_LT_EOF
14652 ;;
14653 esac
14654
14655
14656 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14657 || (rm -f "$cfgfile"; exit 1)
14658
14659 mv -f "$cfgfile" "$ofile" ||
14660 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14661 chmod +x "$ofile"
14662
14663 ;;
ef016f83
MF
14664 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
14665 rm -f Makesim1.tmp Makesim2.tmp Makefile
14666 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
14667 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
14668 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
14669 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
14670 <Makefile.sim >Makefile
14671 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
14672 ;;
14673 "stamp-h":C) echo > stamp-h ;;
14674
14675 esac
14676done # for ac_tag
14677
14678
14679as_fn_exit 0
14680_ACEOF
14681ac_clean_files=$ac_clean_files_save
14682
14683test $ac_write_fail = 0 ||
d0ac1c44 14684 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
ef016f83
MF
14685
14686
14687# configure is writing to config.log, and then calls config.status.
14688# config.status does its own redirection, appending to config.log.
14689# Unfortunately, on DOS this fails, as config.log is still kept open
14690# by configure, so config.status won't be able to write to it; its
14691# output is simply discarded. So we exec the FD to /dev/null,
14692# effectively closing config.log, so it can be properly (re)opened and
14693# appended to by config.status. When coming back to configure, we
14694# need to make the FD available again.
14695if test "$no_create" != yes; then
14696 ac_cs_success=:
14697 ac_config_status_args=
14698 test "$silent" = yes &&
14699 ac_config_status_args="$ac_config_status_args --quiet"
14700 exec 5>/dev/null
14701 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14702 exec 5>>config.log
14703 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14704 # would make configure fail if this is the last instruction.
d0ac1c44 14705 $ac_cs_success || as_fn_exit 1
ef016f83
MF
14706fi
14707if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14709$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14710fi
14711
14712