2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
[deliverable/binutils-gdb.git] / sim / bfin / configure
CommitLineData
ef016f83
MF
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
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.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
6bb11ab3
L
172test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
ef016f83
MF
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241 fi
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384else
385 as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390else
391 as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492else
493 as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
6bb11ab3
L
534SHELL=${CONFIG_SHELL-/bin/sh}
535
ef016f83
MF
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME=
558PACKAGE_TARNAME=
559PACKAGE_VERSION=
560PACKAGE_STRING=
561PACKAGE_BUGREPORT=
562PACKAGE_URL=
563
564ac_unique_file="Makefile.in"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#ifdef HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#ifdef HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#ifdef STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# ifdef HAVE_STDLIB_H
579# include <stdlib.h>
580# endif
581#endif
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
588#ifdef HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#ifdef HAVE_INTTYPES_H
592# include <inttypes.h>
593#endif
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
601ac_subst_vars='LTLIBOBJS
602LIBOBJS
603cgen_breaks
604SDL_LIBS
605SDL_CFLAGS
606PKG_CONFIG_LIBDIR
607PKG_CONFIG_PATH
608PKG_CONFIG
609BFIN_SIM_EXTRA_OBJS
610REPORT_BUGS_TEXI
611REPORT_BUGS_TO
612PKGVERSION
613sim_profile
614sim_trace
615sim_stdio
616sim_debug
617sim_cflags
618sim_bswap
619MAINT
6bb11ab3
L
620lt_cv_dlopen_libs
621OTOOL64
622OTOOL
623LIPO
624NMEDIT
625DSYMUTIL
626AWK
627STRIP
628OBJDUMP
629LN_S
630NM
631ac_ct_DUMPBIN
632DUMPBIN
633LD
634FGREP
635SED
636LIBTOOL
637PLUGINS_FALSE
638PLUGINS_TRUE
ef016f83
MF
639CATOBJEXT
640GENCAT
641INSTOBJEXT
642DATADIRNAME
643CATALOGS
644POSUB
645GMSGFMT
646XGETTEXT
647INCINTL
648LIBINTL_DEP
649LIBINTL
650USE_NLS
db2e4d67
MF
651GMAKE_FALSE
652GMAKE_TRUE
653MAKE
654CCDEPMODE
655DEPDIR
656am__leading_dot
5f3ef9d0 657PACKAGE
ef016f83
MF
658RANLIB
659AR
660HDEFINES
661CC_FOR_BUILD
662INSTALL_DATA
663INSTALL_SCRIPT
664INSTALL_PROGRAM
2232061b
MF
665EGREP
666GREP
667CPP
ef016f83
MF
668target_os
669target_vendor
670target_cpu
671target
672host_os
673host_vendor
674host_cpu
675host
676build_os
677build_vendor
678build_cpu
679build
6ffe910a
MF
680OBJEXT
681EXEEXT
682ac_ct_CC
683CPPFLAGS
684LDFLAGS
685CFLAGS
686CC
ef016f83
MF
687WERROR_CFLAGS
688WARN_CFLAGS
689sim_xor_endian
690sim_stdcall
691sim_smp
692sim_reserved_bits
693sim_regparm
694sim_packages
695sim_inline
696sim_hw
697sim_hw_objs
698sim_hw_cflags
699sim_default_model
700sim_scache
701sim_float
702sim_hostendian
703sim_endian
704sim_bitsize
705sim_assert
706sim_alignment
707sim_environment
708target_alias
709host_alias
710build_alias
711LIBS
712ECHO_T
713ECHO_N
714ECHO_C
715DEFS
716mandir
717localedir
718libdir
719psdir
720pdfdir
721dvidir
722htmldir
723infodir
724docdir
725oldincludedir
726includedir
727localstatedir
728sharedstatedir
729sysconfdir
730datadir
731datarootdir
732libexecdir
733sbindir
734bindir
735program_transform_name
736prefix
737exec_prefix
738PACKAGE_URL
739PACKAGE_BUGREPORT
740PACKAGE_STRING
741PACKAGE_VERSION
742PACKAGE_TARNAME
743PACKAGE_NAME
744PATH_SEPARATOR
745SHELL'
746ac_subst_files=''
747ac_user_opts='
748enable_option_checking
749with_zlib
6bb11ab3
L
750enable_plugins
751enable_shared
752enable_static
753with_pic
754enable_fast_install
755with_gnu_ld
756enable_libtool_lock
ef016f83
MF
757enable_maintainer_mode
758enable_sim_bswap
759enable_sim_cflags
760enable_sim_debug
761enable_sim_stdio
762enable_sim_trace
763enable_sim_profile
764with_pkgversion
765with_bugurl
766enable_sim_endian
767enable_sim_alignment
768enable_sim_hostendian
769enable_sim_default_model
770enable_sim_environment
771enable_sim_inline
2232061b 772enable_werror
ef016f83
MF
773enable_build_warnings
774enable_sim_build_warnings
775enable_sim_hardware
776'
777 ac_precious_vars='build_alias
778host_alias
779target_alias
780CC
781CFLAGS
782LDFLAGS
783LIBS
784CPPFLAGS
785CPP
786PKG_CONFIG
787PKG_CONFIG_PATH
788PKG_CONFIG_LIBDIR
789SDL_CFLAGS
790SDL_LIBS'
791
792
793# Initialize some variables set by options.
794ac_init_help=
795ac_init_version=false
796ac_unrecognized_opts=
797ac_unrecognized_sep=
798# The variables have the same names as the options, with
799# dashes changed to underlines.
800cache_file=/dev/null
801exec_prefix=NONE
802no_create=
803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
811verbose=
812x_includes=NONE
813x_libraries=NONE
814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
820# (The list follows the same order as the GNU Coding Standards.)
821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
829includedir='${prefix}/include'
830oldincludedir='/usr/include'
831docdir='${datarootdir}/doc/${PACKAGE}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
840
841ac_prev=
842ac_dashdash=
843for ac_option
844do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
850 fi
851
852 case $ac_option in
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *) ac_optarg=yes ;;
855 esac
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
867
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
882
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
887
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904"enable_$ac_useropt"
905"*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
910
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
915
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
920
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930"enable_$ac_useropt"
931"*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
936
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
945
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
949
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
956
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
961
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
967
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
974
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
979
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
984
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
991
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
996
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1003
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1008
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1012
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1016
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1020
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1029
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1034
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1041
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1048
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1065
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1070
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1075
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1079
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1085
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1096
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1101
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1106
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1113
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1118
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1121
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1124
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134"with_$ac_useropt"
1135"*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1140
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150"with_$ac_useropt"
1151"*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
1175 -*) as_fn_error "unrecognized option: \`$ac_option'
1176Try \`$0 --help' for more information."
1177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195 ;;
1196
1197 esac
1198done
1199
1200if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error "missing argument to $ac_option"
1203fi
1204
1205if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1211fi
1212
1213# Check all directory arguments for consistency.
1214for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1218do
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1232done
1233
1234# There might be people who depend on the old broken behavior: `$host'
1235# used to hold the argument of --host etc.
1236# FIXME: To remove some day.
1237build=$build_alias
1238host=$host_alias
1239target=$target_alias
1240
1241# FIXME: To remove some day.
1242if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1246 If a cross compiler is detected then cross compile mode will be used." >&2
1247 elif test "x$build_alias" != "x$host_alias"; then
1248 cross_compiling=yes
1249 fi
1250fi
1251
1252ac_tool_prefix=
1253test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255test "$silent" = yes && exec 6>/dev/null
1256
1257
1258ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259ac_ls_di=`ls -di .` &&
1260ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error "working directory cannot be determined"
1262test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error "pwd does not report name of working directory"
1264
1265
1266# Find the source files, if location was not specified.
1267if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$as_myself" ||
1271$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275$as_echo X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)[^/].*/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\/\)$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\).*/{
1289 s//\1/
1290 q
1291 }
1292 s/.*/./; q'`
1293 srcdir=$ac_confdir
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 srcdir=..
1296 fi
1297else
1298 ac_srcdir_defaulted=no
1299fi
1300if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1303fi
1304ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305ac_abs_confdir=`(
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1307 pwd)`
1308# When building in place, set srcdir=.
1309if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1311fi
1312# Remove unnecessary trailing slashes from srcdir.
1313# Double slashes in file names in object file debugging info
1314# mess up M-x gdb in Emacs.
1315case $srcdir in
1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317esac
1318for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323done
1324
1325#
1326# Report the --help message.
1327#
1328if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
1332\`configure' configures this package to adapt to many kinds of systems.
1333
1334Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337VAR=VALUE. See below for descriptions of some of the useful variables.
1338
1339Defaults for the options are specified in brackets.
1340
1341Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351
1352Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 [PREFIX]
1357
1358By default, \`make install' will install all the files in
1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361for instance \`--prefix=\$HOME'.
1362
1363For better control, use the options below.
1364
1365Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1385_ACEOF
1386
1387 cat <<\_ACEOF
1388
1389Program names:
1390 --program-prefix=PREFIX prepend PREFIX to installed program names
1391 --program-suffix=SUFFIX append SUFFIX to installed program names
1392 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1393
1394System types:
1395 --build=BUILD configure for building on BUILD [guessed]
1396 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1397 --target=TARGET configure for building compilers for TARGET [HOST]
1398_ACEOF
1399fi
1400
1401if test -n "$ac_init_help"; then
1402
1403 cat <<\_ACEOF
1404
1405Optional Features:
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
6bb11ab3
L
1409 --enable-plugins Enable support for plugins (defaults no)
1410 --enable-shared[=PKGS] build shared libraries [default=yes]
1411 --enable-static[=PKGS] build static libraries [default=yes]
1412 --enable-fast-install[=PKGS]
1413 optimize for fast installation [default=yes]
1414 --disable-libtool-lock avoid locking (might break parallel builds)
ef016f83
MF
1415 --enable-maintainer-mode Enable developer functionality.
1416 --enable-sim-bswap Use Host specific BSWAP instruction.
1417 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
1418 --enable-sim-debug=opts Enable debugging flags
1419 --enable-sim-stdio Specify whether to use stdio for console input/output.
1420 --enable-sim-trace=opts Enable tracing flags
1421 --enable-sim-profile=opts Enable profiling flags
1422 --enable-sim-endian=endian Specify target byte endian orientation.
1423 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses.
1424 --enable-sim-hostendian=end Specify host byte endian orientation.
1425 --enable-sim-default-model=model Specify default model to simulate.
1426 --enable-sim-environment=environment Specify mixed, user, virtual or operating environment.
1427 --enable-sim-inline=inlines Specify which functions should be inlined.
2232061b
MF
1428 --enable-werror treat compile warnings as errors
1429 --enable-build-warnings enable build-time compiler warnings if gcc is used
1430 --enable-sim-build-warnings
1431 enable SIM specific build-time compiler warnings if
1432 gcc is used
ef016f83
MF
1433 --enable-sim-hardware=LIST Specify the hardware to be included in the build.
1434
1435Optional Packages:
1436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1438 --with-zlib include zlib support (auto/yes/no) default=auto
6bb11ab3
L
1439 --with-pic try to use only PIC/non-PIC objects [default=use
1440 both]
1441 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
ef016f83
MF
1442 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1443 --with-bugurl=URL Direct users to URL to report a bug
1444
1445Some influential environment variables:
1446 CC C compiler command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1449 nonstandard directory <lib dir>
1450 LIBS libraries to pass to the linker, e.g. -l<library>
1451 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1452 you have headers in a nonstandard directory <include dir>
1453 CPP C preprocessor
1454 PKG_CONFIG path to pkg-config utility
1455 PKG_CONFIG_PATH
1456 directories to add to pkg-config's search path
1457 PKG_CONFIG_LIBDIR
1458 path overriding pkg-config's built-in search path
1459 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1460 SDL_LIBS linker flags for SDL, overriding pkg-config
1461
1462Use these variables to override the choices made by `configure' or to help
1463it to find libraries and programs with nonstandard names/locations.
1464
1465Report bugs to the package provider.
1466_ACEOF
1467ac_status=$?
1468fi
1469
1470if test "$ac_init_help" = "recursive"; then
1471 # If there are subdirs, report their specific --help.
1472 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1473 test -d "$ac_dir" ||
1474 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1475 continue
1476 ac_builddir=.
1477
1478case "$ac_dir" in
1479.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480*)
1481 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1482 # A ".." for each directory in $ac_dir_suffix.
1483 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1484 case $ac_top_builddir_sub in
1485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1487 esac ;;
1488esac
1489ac_abs_top_builddir=$ac_pwd
1490ac_abs_builddir=$ac_pwd$ac_dir_suffix
1491# for backward compatibility:
1492ac_top_builddir=$ac_top_build_prefix
1493
1494case $srcdir in
1495 .) # We are building in place.
1496 ac_srcdir=.
1497 ac_top_srcdir=$ac_top_builddir_sub
1498 ac_abs_top_srcdir=$ac_pwd ;;
1499 [\\/]* | ?:[\\/]* ) # Absolute name.
1500 ac_srcdir=$srcdir$ac_dir_suffix;
1501 ac_top_srcdir=$srcdir
1502 ac_abs_top_srcdir=$srcdir ;;
1503 *) # Relative name.
1504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1505 ac_top_srcdir=$ac_top_build_prefix$srcdir
1506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507esac
1508ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509
1510 cd "$ac_dir" || { ac_status=$?; continue; }
1511 # Check for guested configure.
1512 if test -f "$ac_srcdir/configure.gnu"; then
1513 echo &&
1514 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1515 elif test -f "$ac_srcdir/configure"; then
1516 echo &&
1517 $SHELL "$ac_srcdir/configure" --help=recursive
1518 else
1519 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520 fi || ac_status=$?
1521 cd "$ac_pwd" || { ac_status=$?; break; }
1522 done
1523fi
1524
1525test -n "$ac_init_help" && exit $ac_status
1526if $ac_init_version; then
1527 cat <<\_ACEOF
1528configure
1529generated by GNU Autoconf 2.64
1530
1531Copyright (C) 2009 Free Software Foundation, Inc.
1532This configure script is free software; the Free Software Foundation
1533gives unlimited permission to copy, distribute and modify it.
1534_ACEOF
1535 exit
1536fi
1537
1538## ------------------------ ##
1539## Autoconf initialization. ##
1540## ------------------------ ##
1541
1542# ac_fn_c_try_compile LINENO
1543# --------------------------
1544# Try to compile conftest.$ac_ext, and return whether this succeeded.
1545ac_fn_c_try_compile ()
1546{
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 rm -f conftest.$ac_objext
1549 if { { ac_try="$ac_compile"
1550case "(($ac_try" in
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1553esac
1554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555$as_echo "$ac_try_echo"; } >&5
1556 (eval "$ac_compile") 2>conftest.err
1557 ac_status=$?
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1562 fi
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } && {
1565 test -z "$ac_c_werror_flag" ||
1566 test ! -s conftest.err
1567 } && test -s conftest.$ac_objext; then :
1568 ac_retval=0
1569else
1570 $as_echo "$as_me: failed program was:" >&5
1571sed 's/^/| /' conftest.$ac_ext >&5
1572
1573 ac_retval=1
1574fi
1575 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1576 return $ac_retval
1577
1578} # ac_fn_c_try_compile
1579
1580# ac_fn_c_try_cpp LINENO
1581# ----------------------
1582# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1583ac_fn_c_try_cpp ()
1584{
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 if { { ac_try="$ac_cpp conftest.$ac_ext"
1587case "(($ac_try" in
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1590esac
1591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592$as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1594 ac_status=$?
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1599 fi
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } >/dev/null && {
1602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1603 test ! -s conftest.err
1604 }; then :
1605 ac_retval=0
1606else
1607 $as_echo "$as_me: failed program was:" >&5
1608sed 's/^/| /' conftest.$ac_ext >&5
1609
1610 ac_retval=1
1611fi
1612 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1613 return $ac_retval
1614
1615} # ac_fn_c_try_cpp
1616
1617# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1618# -------------------------------------------------------
1619# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1620# the include files in INCLUDES and setting the cache variable VAR
1621# accordingly.
1622ac_fn_c_check_header_mongrel ()
1623{
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1627$as_echo_n "checking for $2... " >&6; }
1628if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1629 $as_echo_n "(cached) " >&6
1630fi
1631eval ac_res=\$$3
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633$as_echo "$ac_res" >&6; }
1634else
1635 # Is the header compilable?
1636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1637$as_echo_n "checking $2 usability... " >&6; }
1638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639/* end confdefs.h. */
1640$4
1641#include <$2>
1642_ACEOF
1643if ac_fn_c_try_compile "$LINENO"; then :
1644 ac_header_compiler=yes
1645else
1646 ac_header_compiler=no
1647fi
1648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1650$as_echo "$ac_header_compiler" >&6; }
1651
1652# Is the header present?
1653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1654$as_echo_n "checking $2 presence... " >&6; }
1655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656/* end confdefs.h. */
1657#include <$2>
1658_ACEOF
1659if ac_fn_c_try_cpp "$LINENO"; then :
1660 ac_header_preproc=yes
1661else
1662 ac_header_preproc=no
1663fi
1664rm -f conftest.err conftest.$ac_ext
1665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1666$as_echo "$ac_header_preproc" >&6; }
1667
1668# So? What about this header?
1669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1670 yes:no: )
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1672$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1674$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1675 ;;
1676 no:yes:* )
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1678$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1680$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1682$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1684$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1686$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1687 ;;
1688esac
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690$as_echo_n "checking for $2... " >&6; }
1691if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1692 $as_echo_n "(cached) " >&6
1693else
1694 eval "$3=\$ac_header_compiler"
1695fi
1696eval ac_res=\$$3
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698$as_echo "$ac_res" >&6; }
1699fi
1700 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1701
1702} # ac_fn_c_check_header_mongrel
1703
1704# ac_fn_c_try_run LINENO
1705# ----------------------
1706# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1707# that executables *can* be run.
1708ac_fn_c_try_run ()
1709{
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_link"
1712case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715esac
1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717$as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_link") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1722 { { case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_try") 2>&5
1729 ac_status=$?
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; }; }; then :
1732 ac_retval=0
1733else
1734 $as_echo "$as_me: program exited with status $ac_status" >&5
1735 $as_echo "$as_me: failed program was:" >&5
1736sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 ac_retval=$ac_status
1739fi
1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1742 return $ac_retval
1743
1744} # ac_fn_c_try_run
1745
1746# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1747# -------------------------------------------------------
1748# Tests whether HEADER exists and can be compiled using the include files in
1749# INCLUDES, setting the cache variable VAR accordingly.
1750ac_fn_c_check_header_compile ()
1751{
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754$as_echo_n "checking for $2... " >&6; }
1755if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1756 $as_echo_n "(cached) " >&6
1757else
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759/* end confdefs.h. */
1760$4
1761#include <$2>
1762_ACEOF
1763if ac_fn_c_try_compile "$LINENO"; then :
1764 eval "$3=yes"
1765else
1766 eval "$3=no"
1767fi
1768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769fi
1770eval ac_res=\$$3
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772$as_echo "$ac_res" >&6; }
1773 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774
1775} # ac_fn_c_check_header_compile
1776
1777# ac_fn_c_try_link LINENO
1778# -----------------------
1779# Try to link conftest.$ac_ext, and return whether this succeeded.
1780ac_fn_c_try_link ()
1781{
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 rm -f conftest.$ac_objext conftest$ac_exeext
1784 if { { ac_try="$ac_link"
1785case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788esac
1789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790$as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_link") 2>conftest.err
1792 ac_status=$?
1793 if test -s conftest.err; then
1794 grep -v '^ *+' conftest.err >conftest.er1
1795 cat conftest.er1 >&5
1796 mv -f conftest.er1 conftest.err
1797 fi
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && {
1800 test -z "$ac_c_werror_flag" ||
1801 test ! -s conftest.err
1802 } && test -s conftest$ac_exeext && {
1803 test "$cross_compiling" = yes ||
1804 $as_test_x conftest$ac_exeext
1805 }; then :
1806 ac_retval=0
1807else
1808 $as_echo "$as_me: failed program was:" >&5
1809sed 's/^/| /' conftest.$ac_ext >&5
1810
1811 ac_retval=1
1812fi
1813 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1814 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1815 # interfere with the next link command; also delete a directory that is
1816 # left behind by Apple's compiler. We do this before executing the actions.
1817 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1818 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819 return $ac_retval
1820
1821} # ac_fn_c_try_link
1822
1823# ac_fn_c_check_func LINENO FUNC VAR
1824# ----------------------------------
1825# Tests whether FUNC exists, setting the cache variable VAR accordingly
1826ac_fn_c_check_func ()
1827{
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830$as_echo_n "checking for $2... " >&6; }
1831if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1832 $as_echo_n "(cached) " >&6
1833else
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835/* end confdefs.h. */
1836/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1838#define $2 innocuous_$2
1839
1840/* System header to define __stub macros and hopefully few prototypes,
1841 which can conflict with char $2 (); below.
1842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1843 <limits.h> exists even on freestanding compilers. */
1844
1845#ifdef __STDC__
1846# include <limits.h>
1847#else
1848# include <assert.h>
1849#endif
1850
1851#undef $2
1852
1853/* Override any GCC internal prototype to avoid an error.
1854 Use char because int might match the return type of a GCC
1855 builtin and then its argument prototype would still apply. */
1856#ifdef __cplusplus
1857extern "C"
1858#endif
1859char $2 ();
1860/* The GNU C library defines this for functions which it implements
1861 to always fail with ENOSYS. Some functions are actually named
1862 something starting with __ and the normal name is an alias. */
1863#if defined __stub_$2 || defined __stub___$2
1864choke me
1865#endif
1866
1867int
1868main ()
1869{
1870return $2 ();
1871 ;
1872 return 0;
1873}
1874_ACEOF
1875if ac_fn_c_try_link "$LINENO"; then :
1876 eval "$3=yes"
1877else
1878 eval "$3=no"
1879fi
1880rm -f core conftest.err conftest.$ac_objext \
1881 conftest$ac_exeext conftest.$ac_ext
1882fi
1883eval ac_res=\$$3
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885$as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887
1888} # ac_fn_c_check_func
1889cat >config.log <<_ACEOF
1890This file contains any messages produced by compilers while
1891running configure, to aid debugging if configure makes a mistake.
1892
1893It was created by $as_me, which was
1894generated by GNU Autoconf 2.64. Invocation command line was
1895
1896 $ $0 $@
1897
1898_ACEOF
1899exec 5>>config.log
1900{
1901cat <<_ASUNAME
1902## --------- ##
1903## Platform. ##
1904## --------- ##
1905
1906hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1907uname -m = `(uname -m) 2>/dev/null || echo unknown`
1908uname -r = `(uname -r) 2>/dev/null || echo unknown`
1909uname -s = `(uname -s) 2>/dev/null || echo unknown`
1910uname -v = `(uname -v) 2>/dev/null || echo unknown`
1911
1912/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1913/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1914
1915/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1916/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1917/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1918/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1919/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1920/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1921/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1922
1923_ASUNAME
1924
1925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926for as_dir in $PATH
1927do
1928 IFS=$as_save_IFS
1929 test -z "$as_dir" && as_dir=.
1930 $as_echo "PATH: $as_dir"
1931 done
1932IFS=$as_save_IFS
1933
1934} >&5
1935
1936cat >&5 <<_ACEOF
1937
1938
1939## ----------- ##
1940## Core tests. ##
1941## ----------- ##
1942
1943_ACEOF
1944
1945
1946# Keep a trace of the command line.
1947# Strip out --no-create and --no-recursion so they do not pile up.
1948# Strip out --silent because we don't want to record it for future runs.
1949# Also quote any args containing shell meta-characters.
1950# Make two passes to allow for proper duplicate-argument suppression.
1951ac_configure_args=
1952ac_configure_args0=
1953ac_configure_args1=
1954ac_must_keep_next=false
1955for ac_pass in 1 2
1956do
1957 for ac_arg
1958 do
1959 case $ac_arg in
1960 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1961 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1962 | -silent | --silent | --silen | --sile | --sil)
1963 continue ;;
1964 *\'*)
1965 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1966 esac
1967 case $ac_pass in
1968 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1969 2)
1970 as_fn_append ac_configure_args1 " '$ac_arg'"
1971 if test $ac_must_keep_next = true; then
1972 ac_must_keep_next=false # Got value, back to normal.
1973 else
1974 case $ac_arg in
1975 *=* | --config-cache | -C | -disable-* | --disable-* \
1976 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1977 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1978 | -with-* | --with-* | -without-* | --without-* | --x)
1979 case "$ac_configure_args0 " in
1980 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1981 esac
1982 ;;
1983 -* ) ac_must_keep_next=true ;;
1984 esac
1985 fi
1986 as_fn_append ac_configure_args " '$ac_arg'"
1987 ;;
1988 esac
1989 done
1990done
1991{ ac_configure_args0=; unset ac_configure_args0;}
1992{ ac_configure_args1=; unset ac_configure_args1;}
1993
1994# When interrupted or exit'd, cleanup temporary files, and complete
1995# config.log. We remove comments because anyway the quotes in there
1996# would cause problems or look ugly.
1997# WARNING: Use '\'' to represent an apostrophe within the trap.
1998# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1999trap 'exit_status=$?
2000 # Save into config.log some information that might help in debugging.
2001 {
2002 echo
2003
2004 cat <<\_ASBOX
2005## ---------------- ##
2006## Cache variables. ##
2007## ---------------- ##
2008_ASBOX
2009 echo
2010 # The following way of writing the cache mishandles newlines in values,
2011(
2012 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2013 eval ac_val=\$$ac_var
2014 case $ac_val in #(
2015 *${as_nl}*)
2016 case $ac_var in #(
2017 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2018$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2019 esac
2020 case $ac_var in #(
2021 _ | IFS | as_nl) ;; #(
2022 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2023 *) { eval $ac_var=; unset $ac_var;} ;;
2024 esac ;;
2025 esac
2026 done
2027 (set) 2>&1 |
2028 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2029 *${as_nl}ac_space=\ *)
2030 sed -n \
2031 "s/'\''/'\''\\\\'\'''\''/g;
2032 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2033 ;; #(
2034 *)
2035 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2036 ;;
2037 esac |
2038 sort
2039)
2040 echo
2041
2042 cat <<\_ASBOX
2043## ----------------- ##
2044## Output variables. ##
2045## ----------------- ##
2046_ASBOX
2047 echo
2048 for ac_var in $ac_subst_vars
2049 do
2050 eval ac_val=\$$ac_var
2051 case $ac_val in
2052 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2053 esac
2054 $as_echo "$ac_var='\''$ac_val'\''"
2055 done | sort
2056 echo
2057
2058 if test -n "$ac_subst_files"; then
2059 cat <<\_ASBOX
2060## ------------------- ##
2061## File substitutions. ##
2062## ------------------- ##
2063_ASBOX
2064 echo
2065 for ac_var in $ac_subst_files
2066 do
2067 eval ac_val=\$$ac_var
2068 case $ac_val in
2069 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2070 esac
2071 $as_echo "$ac_var='\''$ac_val'\''"
2072 done | sort
2073 echo
2074 fi
2075
2076 if test -s confdefs.h; then
2077 cat <<\_ASBOX
2078## ----------- ##
2079## confdefs.h. ##
2080## ----------- ##
2081_ASBOX
2082 echo
2083 cat confdefs.h
2084 echo
2085 fi
2086 test "$ac_signal" != 0 &&
2087 $as_echo "$as_me: caught signal $ac_signal"
2088 $as_echo "$as_me: exit $exit_status"
2089 } >&5
2090 rm -f core *.core core.conftest.* &&
2091 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2092 exit $exit_status
2093' 0
2094for ac_signal in 1 2 13 15; do
2095 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2096done
2097ac_signal=0
2098
2099# confdefs.h avoids OS command line length limits that DEFS can exceed.
2100rm -f -r conftest* confdefs.h
2101
2102$as_echo "/* confdefs.h */" > confdefs.h
2103
2104# Predefined preprocessor variables.
2105
2106cat >>confdefs.h <<_ACEOF
2107#define PACKAGE_NAME "$PACKAGE_NAME"
2108_ACEOF
2109
2110cat >>confdefs.h <<_ACEOF
2111#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2112_ACEOF
2113
2114cat >>confdefs.h <<_ACEOF
2115#define PACKAGE_VERSION "$PACKAGE_VERSION"
2116_ACEOF
2117
2118cat >>confdefs.h <<_ACEOF
2119#define PACKAGE_STRING "$PACKAGE_STRING"
2120_ACEOF
2121
2122cat >>confdefs.h <<_ACEOF
2123#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2124_ACEOF
2125
2126cat >>confdefs.h <<_ACEOF
2127#define PACKAGE_URL "$PACKAGE_URL"
2128_ACEOF
2129
2130
2131# Let the site file select an alternate cache file if it wants to.
2132# Prefer an explicitly selected file to automatically selected ones.
2133ac_site_file1=NONE
2134ac_site_file2=NONE
2135if test -n "$CONFIG_SITE"; then
2136 ac_site_file1=$CONFIG_SITE
2137elif test "x$prefix" != xNONE; then
2138 ac_site_file1=$prefix/share/config.site
2139 ac_site_file2=$prefix/etc/config.site
2140else
2141 ac_site_file1=$ac_default_prefix/share/config.site
2142 ac_site_file2=$ac_default_prefix/etc/config.site
2143fi
2144for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2145do
2146 test "x$ac_site_file" = xNONE && continue
2147 if test -r "$ac_site_file"; then
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2149$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2150 sed 's/^/| /' "$ac_site_file" >&5
2151 . "$ac_site_file"
2152 fi
2153done
2154
2155if test -r "$cache_file"; then
2156 # Some versions of bash will fail to source /dev/null (special
2157 # files actually), so we avoid doing that.
2158 if test -f "$cache_file"; then
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2160$as_echo "$as_me: loading cache $cache_file" >&6;}
2161 case $cache_file in
2162 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2163 *) . "./$cache_file";;
2164 esac
2165 fi
2166else
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2168$as_echo "$as_me: creating cache $cache_file" >&6;}
2169 >$cache_file
2170fi
2171
2172# Check that the precious variables saved in the cache have kept the same
2173# value.
2174ac_cache_corrupted=false
2175for ac_var in $ac_precious_vars; do
2176 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2177 eval ac_new_set=\$ac_env_${ac_var}_set
2178 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2179 eval ac_new_val=\$ac_env_${ac_var}_value
2180 case $ac_old_set,$ac_new_set in
2181 set,)
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2183$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2184 ac_cache_corrupted=: ;;
2185 ,set)
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2187$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2188 ac_cache_corrupted=: ;;
2189 ,);;
2190 *)
2191 if test "x$ac_old_val" != "x$ac_new_val"; then
2192 # differences in whitespace do not lead to failure.
2193 ac_old_val_w=`echo x $ac_old_val`
2194 ac_new_val_w=`echo x $ac_new_val`
2195 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2197$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2198 ac_cache_corrupted=:
2199 else
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2201$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2202 eval $ac_var=\$ac_old_val
2203 fi
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2205$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2207$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2208 fi;;
2209 esac
2210 # Pass precious variables to config.status.
2211 if test "$ac_new_set" = set; then
2212 case $ac_new_val in
2213 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2214 *) ac_arg=$ac_var=$ac_new_val ;;
2215 esac
2216 case " $ac_configure_args " in
2217 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2218 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2219 esac
2220 fi
2221done
2222if $ac_cache_corrupted; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2226$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2227 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2228fi
2229## -------------------- ##
2230## Main body of script. ##
2231## -------------------- ##
2232
2233ac_ext=c
2234ac_cpp='$CPP $CPPFLAGS'
2235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2237ac_compiler_gnu=$ac_cv_c_compiler_gnu
2238
2239
ef016f83
MF
2240# This file contains common code used by all simulators.
2241#
2242# SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2243# directory. It is intended to be invoked before any target specific stuff.
2244# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2245# It is intended to be invoked last.
2246#
2247# The simulator's configure.in should look like:
2248#
2249# dnl Process this file with autoconf to produce a configure script.
6ffe910a 2250# AC_PREREQ(2.64)dnl
ef016f83 2251# AC_INIT(Makefile.in)
6ffe910a 2252# sinclude(../common/aclocal.m4)
ef016f83
MF
2253#
2254# SIM_AC_COMMON
2255#
2256# ... target specific stuff ...
2257#
2258# SIM_AC_OUTPUT
2259
2260# Include global overrides and fixes for Autoconf.
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
6ffe910a
MF
2280
2281
2282
ef016f83
MF
2283
2284
2285
2286
2287# _AC_CHECK_DECL_BODY
2288# -------------------
2289# Shell function body for AC_CHECK_DECL.
2290# _AC_CHECK_DECL_BODY
2291
2292# _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
2293# INCLUDES)
2294# -------------------------------------------------------------
2295# Helper to AC_CHECK_DECLS, which generates the check for a single
2296# SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
2297# ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
db2e4d67 2308
6bb11ab3
L
2309
2310# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
db2e4d67 2311#
6bb11ab3
L
2312# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2313# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2314# Written by Gordon Matzigkeit, 1996
2315#
2316# This file is free software; the Free Software Foundation gives
2317# unlimited permission to copy and/or distribute it, with or without
2318# modifications, as long as this notice is preserved.
db2e4d67 2319
db2e4d67 2320
db2e4d67 2321
6bb11ab3 2322# serial 56 LT_INIT
db2e4d67
MF
2323
2324
6bb11ab3
L
2325# LT_PREREQ(VERSION)
2326# ------------------
2327# Complain and exit if this libtool version is less that VERSION.
db2e4d67 2328
db2e4d67
MF
2329
2330
6bb11ab3
L
2331# _LT_CHECK_BUILDDIR
2332# ------------------
2333# Complain if the absolute build directory name contains unusual characters
db2e4d67
MF
2334
2335
ef016f83 2336
6bb11ab3
L
2337# LT_INIT([OPTIONS])
2338# ------------------
2339# LT_INIT
ef016f83 2340
6bb11ab3
L
2341# Old names:
2342# This is what autoupdate's m4 run will expand. It fires
2343# the warning (with _au_warn_XXX), outputs it into the
2344# updated configure.ac (with AC_DIAGNOSE), and then outputs
2345# the replacement expansion.
ef016f83
MF
2346
2347
6bb11ab3
L
2348# This is an auxiliary macro that is also run when
2349# autoupdate runs m4. It simply calls m4_warning, but
2350# we need a wrapper so that each warning is emitted only
2351# once. We break the quoting in m4_warning's argument in
2352# order to expand this macro's arguments, not AU_DEFUN's.
ef016f83
MF
2353
2354
6bb11ab3
L
2355# Finally, this is the expansion that is picked up by
2356# autoconf. It tells the user to run autoupdate, and
2357# then outputs the replacement expansion. We do not care
2358# about autoupdate's warning because that contains
2359# information on what to do *after* running autoupdate.
ef016f83 2360
6bb11ab3
L
2361# This is what autoupdate's m4 run will expand. It fires
2362# the warning (with _au_warn_XXX), outputs it into the
2363# updated configure.ac (with AC_DIAGNOSE), and then outputs
2364# the replacement expansion.
ef016f83
MF
2365
2366
6bb11ab3
L
2367# This is an auxiliary macro that is also run when
2368# autoupdate runs m4. It simply calls m4_warning, but
2369# we need a wrapper so that each warning is emitted only
2370# once. We break the quoting in m4_warning's argument in
2371# order to expand this macro's arguments, not AU_DEFUN's.
ef016f83
MF
2372
2373
6bb11ab3
L
2374# Finally, this is the expansion that is picked up by
2375# autoconf. It tells the user to run autoupdate, and
2376# then outputs the replacement expansion. We do not care
2377# about autoupdate's warning because that contains
2378# information on what to do *after* running autoupdate.
ef016f83
MF
2379
2380
2381
6bb11ab3
L
2382# _LT_CC_BASENAME(CC)
2383# -------------------
2384# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
ef016f83
MF
2385
2386
2387
6bb11ab3
L
2388# _LT_FILEUTILS_DEFAULTS
2389# ----------------------
2390# It is okay to use these file commands and assume they have been set
2391# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2392# _LT_FILEUTILS_DEFAULTS
ef016f83
MF
2393
2394
6bb11ab3
L
2395# _LT_SETUP
2396# ---------
2397# _LT_SETUP
ef016f83
MF
2398
2399
6bb11ab3
L
2400# _LT_PREPARE_SED_QUOTE_VARS
2401# --------------------------
2402# Define a few sed substitution that help us do robust quoting.
ef016f83
MF
2403
2404
6bb11ab3
L
2405# _LT_PROG_LTMAIN
2406# ---------------
2407# Note that this code is called both from `configure', and `config.status'
2408# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2409# `config.status' has no value for ac_aux_dir unless we are using Automake,
2410# so we pass a copy along to make sure it has a sensible value anyway.
2411# _LT_PROG_LTMAIN
ef016f83
MF
2412
2413
6bb11ab3
L
2414## ------------------------------------- ##
2415## Accumulate code for creating libtool. ##
2416## ------------------------------------- ##
ef016f83 2417
6bb11ab3
L
2418# So that we can recreate a full libtool script including additional
2419# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2420# in macros and then make a single call at the end using the `libtool'
2421# label.
ef016f83
MF
2422
2423
6bb11ab3
L
2424# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2425# ----------------------------------------
2426# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
ef016f83
MF
2427
2428
6bb11ab3 2429# Initialize.
ef016f83
MF
2430
2431
2432
6bb11ab3
L
2433# _LT_CONFIG_LIBTOOL([COMMANDS])
2434# ------------------------------
2435# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
ef016f83
MF
2436
2437
6bb11ab3 2438# Initialize.
ef016f83
MF
2439
2440
2441
6bb11ab3
L
2442# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2443# -----------------------------------------------------
ef016f83
MF
2444
2445
2446
6bb11ab3
L
2447# _LT_FORMAT_COMMENT([COMMENT])
2448# -----------------------------
2449# Add leading comment marks to the start of each line, and a trailing
2450# full-stop to the whole comment if one is not present already.
ef016f83
MF
2451
2452
2453
2454
6bb11ab3
L
2455## ------------------------ ##
2456## FIXME: Eliminate VARNAME ##
2457## ------------------------ ##
ef016f83
MF
2458
2459
6bb11ab3
L
2460# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2461# -------------------------------------------------------------------
2462# CONFIGNAME is the name given to the value in the libtool script.
2463# VARNAME is the (base) name used in the configure script.
2464# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2465# VARNAME. Any other value will be used directly.
ef016f83 2466
ef016f83
MF
2467
2468
6bb11ab3
L
2469# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2470# --------------------------------------------------------
ef016f83
MF
2471
2472
2473
6bb11ab3
L
2474# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2475# ------------------------------------------------
ef016f83
MF
2476
2477
2478
6bb11ab3
L
2479# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2480# ---------------------------------------------------------
ef016f83
MF
2481
2482
2483
6bb11ab3
L
2484# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2485# --------------------------------------------------
ef016f83
MF
2486
2487
2488
6bb11ab3
L
2489# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2490# ---------------------------------------------------
ef016f83
MF
2491
2492
2493
6bb11ab3
L
2494# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2495# ---------------------------------------------------
ef016f83
MF
2496
2497
2498
2499
6bb11ab3
L
2500# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2501# ------------------------------------------------
ef016f83
MF
2502
2503
2504
2505
6bb11ab3
L
2506# _LT_CONFIG_STATUS_DECLARE([VARNAME])
2507# ------------------------------------
2508# Quote a variable value, and forward it to `config.status' so that its
2509# declaration there will have the same value as in `configure'. VARNAME
2510# must have a single quote delimited value for this to work.
ef016f83
MF
2511
2512
2513
6bb11ab3
L
2514# _LT_CONFIG_STATUS_DECLARATIONS
2515# ------------------------------
2516# We delimit libtool config variables with single quotes, so when
2517# we write them to config.status, we have to be sure to quote all
2518# embedded single quotes properly. In configure, this macro expands
2519# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2520#
2521# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
ef016f83
MF
2522
2523
2524
6bb11ab3
L
2525# _LT_LIBTOOL_TAGS
2526# ----------------
2527# Output comment and list of tags supported by the script
ef016f83
MF
2528
2529
2530
6bb11ab3
L
2531# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2532# -----------------------------------
2533# Extract the dictionary values for VARNAME (optionally with TAG) and
2534# expand to a commented shell variable setting:
2535#
2536# # Some comment about what VAR is for.
2537# visible_name=$lt_internal_name
ef016f83
MF
2538
2539
ef016f83 2540
6bb11ab3
L
2541# _LT_LIBTOOL_CONFIG_VARS
2542# -----------------------
2543# Produce commented declarations of non-tagged libtool config variables
2544# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2545# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2546# section) are produced by _LT_LIBTOOL_TAG_VARS.
ef016f83
MF
2547
2548
2549
6bb11ab3
L
2550# _LT_LIBTOOL_TAG_VARS(TAG)
2551# -------------------------
ef016f83
MF
2552
2553
2554
6bb11ab3
L
2555# _LT_TAGVAR(VARNAME, [TAGNAME])
2556# ------------------------------
ef016f83
MF
2557
2558
2559
6bb11ab3
L
2560# _LT_CONFIG_COMMANDS
2561# -------------------
2562# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2563# variables for single and double quote escaping we saved from calls
2564# to _LT_DECL, we can put quote escaped variables declarations
2565# into `config.status', and then the shell code to quote escape them in
2566# for loops in `config.status'. Finally, any additional code accumulated
2567# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2568#_LT_CONFIG_COMMANDS
2569
2570
2571# Initialize.
2572
2573
2574# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2575# ------------------------------------
2576# Generate a child script FILE with all initialization necessary to
2577# reuse the environment learned by the parent script, and make the
2578# file executable. If COMMENT is supplied, it is inserted after the
2579# `#!' sequence but before initialization text begins. After this
2580# macro, additional text can be appended to FILE to form the body of
2581# the child script. The macro ends with non-zero status if the
2582# file could not be fully written (such as if the disk is full).
2583# _LT_GENERATED_FILE_INIT
2584
2585# LT_OUTPUT
2586# ---------
2587# This macro allows early generation of the libtool script (before
2588# AC_OUTPUT is called), incase it is used in configure for compilation
2589# tests.
2590# LT_OUTPUT
2591
2592
2593# _LT_CONFIG(TAG)
2594# ---------------
2595# If TAG is the built-in tag, create an initial libtool script with a
2596# default configuration from the untagged config vars. Otherwise add code
2597# to config.status for appending the configuration named by TAG from the
2598# matching tagged config vars.
2599# _LT_CONFIG
ef016f83
MF
2600
2601
6bb11ab3
L
2602# LT_SUPPORTED_TAG(TAG)
2603# ---------------------
2604# Trace this macro to discover what tags are supported by the libtool
2605# --tag option, using:
2606# autoconf --trace 'LT_SUPPORTED_TAG:$1'
ef016f83 2607
ef016f83 2608
ef016f83 2609
6bb11ab3 2610# C support is built-in for now
ef016f83 2611
ef016f83
MF
2612
2613
2614
6bb11ab3
L
2615# LT_LANG(LANG)
2616# -------------
2617# Enable libtool support for the given language if not already enabled.
2618# LT_LANG
ef016f83
MF
2619
2620
6bb11ab3
L
2621# _LT_LANG(LANGNAME)
2622# ------------------
2623# _LT_LANG
ef016f83
MF
2624
2625
6bb11ab3
L
2626# _LT_LANG_DEFAULT_CONFIG
2627# -----------------------
2628# _LT_LANG_DEFAULT_CONFIG
ef016f83 2629
6bb11ab3
L
2630# Obsolete macros:
2631# This is what autoupdate's m4 run will expand. It fires
2632# the warning (with _au_warn_XXX), outputs it into the
2633# updated configure.ac (with AC_DIAGNOSE), and then outputs
2634# the replacement expansion.
ef016f83 2635
ef016f83 2636
6bb11ab3
L
2637# This is an auxiliary macro that is also run when
2638# autoupdate runs m4. It simply calls m4_warning, but
2639# we need a wrapper so that each warning is emitted only
2640# once. We break the quoting in m4_warning's argument in
2641# order to expand this macro's arguments, not AU_DEFUN's.
ef016f83 2642
ef016f83 2643
6bb11ab3
L
2644# Finally, this is the expansion that is picked up by
2645# autoconf. It tells the user to run autoupdate, and
2646# then outputs the replacement expansion. We do not care
2647# about autoupdate's warning because that contains
2648# information on what to do *after* running autoupdate.
ef016f83 2649
6bb11ab3
L
2650# This is what autoupdate's m4 run will expand. It fires
2651# the warning (with _au_warn_XXX), outputs it into the
2652# updated configure.ac (with AC_DIAGNOSE), and then outputs
2653# the replacement expansion.
ef016f83
MF
2654
2655
6bb11ab3
L
2656# This is an auxiliary macro that is also run when
2657# autoupdate runs m4. It simply calls m4_warning, but
2658# we need a wrapper so that each warning is emitted only
2659# once. We break the quoting in m4_warning's argument in
2660# order to expand this macro's arguments, not AU_DEFUN's.
ef016f83
MF
2661
2662
6bb11ab3
L
2663# Finally, this is the expansion that is picked up by
2664# autoconf. It tells the user to run autoupdate, and
2665# then outputs the replacement expansion. We do not care
2666# about autoupdate's warning because that contains
2667# information on what to do *after* running autoupdate.
ef016f83 2668
6bb11ab3
L
2669# This is what autoupdate's m4 run will expand. It fires
2670# the warning (with _au_warn_XXX), outputs it into the
2671# updated configure.ac (with AC_DIAGNOSE), and then outputs
2672# the replacement expansion.
ef016f83
MF
2673
2674
6bb11ab3
L
2675# This is an auxiliary macro that is also run when
2676# autoupdate runs m4. It simply calls m4_warning, but
2677# we need a wrapper so that each warning is emitted only
2678# once. We break the quoting in m4_warning's argument in
2679# order to expand this macro's arguments, not AU_DEFUN's.
ef016f83
MF
2680
2681
6bb11ab3
L
2682# Finally, this is the expansion that is picked up by
2683# autoconf. It tells the user to run autoupdate, and
2684# then outputs the replacement expansion. We do not care
2685# about autoupdate's warning because that contains
2686# information on what to do *after* running autoupdate.
ef016f83 2687
6bb11ab3
L
2688# This is what autoupdate's m4 run will expand. It fires
2689# the warning (with _au_warn_XXX), outputs it into the
2690# updated configure.ac (with AC_DIAGNOSE), and then outputs
2691# the replacement expansion.
ef016f83
MF
2692
2693
6bb11ab3
L
2694# This is an auxiliary macro that is also run when
2695# autoupdate runs m4. It simply calls m4_warning, but
2696# we need a wrapper so that each warning is emitted only
2697# once. We break the quoting in m4_warning's argument in
2698# order to expand this macro's arguments, not AU_DEFUN's.
ef016f83
MF
2699
2700
6bb11ab3
L
2701# Finally, this is the expansion that is picked up by
2702# autoconf. It tells the user to run autoupdate, and
2703# then outputs the replacement expansion. We do not care
2704# about autoupdate's warning because that contains
2705# information on what to do *after* running autoupdate.
ef016f83 2706
6bb11ab3
L
2707# This is what autoupdate's m4 run will expand. It fires
2708# the warning (with _au_warn_XXX), outputs it into the
2709# updated configure.ac (with AC_DIAGNOSE), and then outputs
2710# the replacement expansion.
ef016f83
MF
2711
2712
6bb11ab3
L
2713# This is an auxiliary macro that is also run when
2714# autoupdate runs m4. It simply calls m4_warning, but
2715# we need a wrapper so that each warning is emitted only
2716# once. We break the quoting in m4_warning's argument in
2717# order to expand this macro's arguments, not AU_DEFUN's.
ef016f83
MF
2718
2719
6bb11ab3
L
2720# Finally, this is the expansion that is picked up by
2721# autoconf. It tells the user to run autoupdate, and
2722# then outputs the replacement expansion. We do not care
2723# about autoupdate's warning because that contains
2724# information on what to do *after* running autoupdate.
ef016f83
MF
2725
2726
2727
6bb11ab3
L
2728# _LT_TAG_COMPILER
2729# ----------------
2730# _LT_TAG_COMPILER
ef016f83
MF
2731
2732
6bb11ab3
L
2733# _LT_COMPILER_BOILERPLATE
2734# ------------------------
2735# Check for compiler boilerplate output or warnings with
2736# the simple compiler test code.
2737# _LT_COMPILER_BOILERPLATE
ef016f83 2738
ef016f83 2739
6bb11ab3
L
2740# _LT_LINKER_BOILERPLATE
2741# ----------------------
2742# Check for linker boilerplate output or warnings with
2743# the simple link test code.
2744# _LT_LINKER_BOILERPLATE
ef016f83 2745
6bb11ab3
L
2746# _LT_REQUIRED_DARWIN_CHECKS
2747# -------------------------
ef016f83 2748
ef016f83 2749
ef016f83 2750
6bb11ab3
L
2751# _LT_DARWIN_LINKER_FEATURES
2752# --------------------------
2753# Checks for linker and compiler features on darwin
ef016f83 2754
ef016f83 2755
6bb11ab3
L
2756# _LT_SYS_MODULE_PATH_AIX
2757# -----------------------
2758# Links a minimal program and checks the executable
2759# for the system default hardcoded library path. In most cases,
2760# this is /usr/lib:/lib, but when the MPI compilers are used
2761# the location of the communication and MPI libs are included too.
2762# If we don't find anything, use the default library path according
2763# to the aix ld manual.
2764# _LT_SYS_MODULE_PATH_AIX
ef016f83
MF
2765
2766
6bb11ab3
L
2767# _LT_SHELL_INIT(ARG)
2768# -------------------
2769# _LT_SHELL_INIT
ef016f83 2770
ef016f83
MF
2771
2772
6bb11ab3
L
2773# _LT_PROG_ECHO_BACKSLASH
2774# -----------------------
2775# Find how we can fake an echo command that does not interpret backslash.
2776# In particular, with Autoconf 2.60 or later we add some code to the start
2777# of the generated configure script which will find a shell with a builtin
2778# printf (which we can use as an echo command).
2779# _LT_PROG_ECHO_BACKSLASH
ef016f83 2780
ef016f83 2781
6bb11ab3
L
2782# _LT_ENABLE_LOCK
2783# ---------------
2784# _LT_ENABLE_LOCK
ef016f83 2785
ef016f83 2786
6bb11ab3
L
2787# _LT_CMD_OLD_ARCHIVE
2788# -------------------
2789# _LT_CMD_OLD_ARCHIVE
ef016f83
MF
2790
2791
6bb11ab3
L
2792# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2793# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2794# ----------------------------------------------------------------
2795# Check whether the given compiler option works
2796# _LT_COMPILER_OPTION
ef016f83 2797
6bb11ab3
L
2798# Old name:
2799# This is what autoupdate's m4 run will expand. It fires
2800# the warning (with _au_warn_XXX), outputs it into the
2801# updated configure.ac (with AC_DIAGNOSE), and then outputs
2802# the replacement expansion.
ef016f83 2803
ef016f83 2804
6bb11ab3
L
2805# This is an auxiliary macro that is also run when
2806# autoupdate runs m4. It simply calls m4_warning, but
2807# we need a wrapper so that each warning is emitted only
2808# once. We break the quoting in m4_warning's argument in
2809# order to expand this macro's arguments, not AU_DEFUN's.
ef016f83 2810
ef016f83 2811
6bb11ab3
L
2812# Finally, this is the expansion that is picked up by
2813# autoconf. It tells the user to run autoupdate, and
2814# then outputs the replacement expansion. We do not care
2815# about autoupdate's warning because that contains
2816# information on what to do *after* running autoupdate.
ef016f83 2817
ef016f83 2818
ef016f83 2819
6bb11ab3
L
2820# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2821# [ACTION-SUCCESS], [ACTION-FAILURE])
2822# ----------------------------------------------------
2823# Check whether the given linker option works
2824# _LT_LINKER_OPTION
ef016f83 2825
6bb11ab3
L
2826# Old name:
2827# This is what autoupdate's m4 run will expand. It fires
2828# the warning (with _au_warn_XXX), outputs it into the
2829# updated configure.ac (with AC_DIAGNOSE), and then outputs
2830# the replacement expansion.
ef016f83 2831
ef016f83 2832
6bb11ab3
L
2833# This is an auxiliary macro that is also run when
2834# autoupdate runs m4. It simply calls m4_warning, but
2835# we need a wrapper so that each warning is emitted only
2836# once. We break the quoting in m4_warning's argument in
2837# order to expand this macro's arguments, not AU_DEFUN's.
ef016f83 2838
ef016f83 2839
6bb11ab3
L
2840# Finally, this is the expansion that is picked up by
2841# autoconf. It tells the user to run autoupdate, and
2842# then outputs the replacement expansion. We do not care
2843# about autoupdate's warning because that contains
2844# information on what to do *after* running autoupdate.
ef016f83 2845
ef016f83 2846
ef016f83 2847
6bb11ab3
L
2848# LT_CMD_MAX_LEN
2849#---------------
2850# LT_CMD_MAX_LEN
ef016f83 2851
6bb11ab3
L
2852# Old name:
2853# This is what autoupdate's m4 run will expand. It fires
2854# the warning (with _au_warn_XXX), outputs it into the
2855# updated configure.ac (with AC_DIAGNOSE), and then outputs
2856# the replacement expansion.
ef016f83 2857
ef016f83 2858
6bb11ab3
L
2859# This is an auxiliary macro that is also run when
2860# autoupdate runs m4. It simply calls m4_warning, but
2861# we need a wrapper so that each warning is emitted only
2862# once. We break the quoting in m4_warning's argument in
2863# order to expand this macro's arguments, not AU_DEFUN's.
ef016f83 2864
ef016f83 2865
6bb11ab3
L
2866# Finally, this is the expansion that is picked up by
2867# autoconf. It tells the user to run autoupdate, and
2868# then outputs the replacement expansion. We do not care
2869# about autoupdate's warning because that contains
2870# information on what to do *after* running autoupdate.
ef016f83 2871
ef016f83 2872
ef016f83 2873
6bb11ab3
L
2874# _LT_HEADER_DLFCN
2875# ----------------
2876# _LT_HEADER_DLFCN
ef016f83 2877
ef016f83 2878
6bb11ab3
L
2879# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2880# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2881# ----------------------------------------------------------------
2882# _LT_TRY_DLOPEN_SELF
ef016f83 2883
ef016f83 2884
6bb11ab3
L
2885# LT_SYS_DLOPEN_SELF
2886# ------------------
2887# LT_SYS_DLOPEN_SELF
ef016f83 2888
6bb11ab3
L
2889# Old name:
2890# This is what autoupdate's m4 run will expand. It fires
2891# the warning (with _au_warn_XXX), outputs it into the
2892# updated configure.ac (with AC_DIAGNOSE), and then outputs
2893# the replacement expansion.
ef016f83 2894
6bb11ab3
L
2895
2896# This is an auxiliary macro that is also run when
2897# autoupdate runs m4. It simply calls m4_warning, but
2898# we need a wrapper so that each warning is emitted only
2899# once. We break the quoting in m4_warning's argument in
2900# order to expand this macro's arguments, not AU_DEFUN's.
2901
2902
2903# Finally, this is the expansion that is picked up by
2904# autoconf. It tells the user to run autoupdate, and
2905# then outputs the replacement expansion. We do not care
2906# about autoupdate's warning because that contains
2907# information on what to do *after* running autoupdate.
2908
2909
2910
2911# _LT_COMPILER_C_O([TAGNAME])
2912# ---------------------------
2913# Check to see if options -c and -o are simultaneously supported by compiler.
2914# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2915# _LT_COMPILER_C_O
2916
2917
2918# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2919# ----------------------------------
2920# Check to see if we can do hard links to lock some files if needed
2921# _LT_COMPILER_FILE_LOCKS
2922
2923
2924# _LT_CHECK_OBJDIR
2925# ----------------
2926# _LT_CHECK_OBJDIR
2927
2928
2929# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2930# --------------------------------------
2931# Check hardcoding attributes.
2932# _LT_LINKER_HARDCODE_LIBPATH
2933
2934
2935# _LT_CMD_STRIPLIB
2936# ----------------
2937# _LT_CMD_STRIPLIB
2938
2939
2940# _LT_SYS_DYNAMIC_LINKER([TAG])
2941# -----------------------------
2942# PORTME Fill in your ld.so characteristics
2943# _LT_SYS_DYNAMIC_LINKER
2944
2945
2946# _LT_PATH_TOOL_PREFIX(TOOL)
2947# --------------------------
2948# find a file program which can recognize shared library
2949# _LT_PATH_TOOL_PREFIX
2950
2951# Old name:
2952# This is what autoupdate's m4 run will expand. It fires
2953# the warning (with _au_warn_XXX), outputs it into the
2954# updated configure.ac (with AC_DIAGNOSE), and then outputs
2955# the replacement expansion.
2956
2957
2958# This is an auxiliary macro that is also run when
2959# autoupdate runs m4. It simply calls m4_warning, but
2960# we need a wrapper so that each warning is emitted only
2961# once. We break the quoting in m4_warning's argument in
2962# order to expand this macro's arguments, not AU_DEFUN's.
2963
2964
2965# Finally, this is the expansion that is picked up by
2966# autoconf. It tells the user to run autoupdate, and
2967# then outputs the replacement expansion. We do not care
2968# about autoupdate's warning because that contains
2969# information on what to do *after* running autoupdate.
2970
2971
2972
2973# _LT_PATH_MAGIC
2974# --------------
2975# find a file program which can recognize a shared library
2976# _LT_PATH_MAGIC
2977
2978
2979# LT_PATH_LD
2980# ----------
2981# find the pathname to the GNU or non-GNU linker
2982# LT_PATH_LD
2983
2984# Old names:
2985# This is what autoupdate's m4 run will expand. It fires
2986# the warning (with _au_warn_XXX), outputs it into the
2987# updated configure.ac (with AC_DIAGNOSE), and then outputs
2988# the replacement expansion.
2989
2990
2991# This is an auxiliary macro that is also run when
2992# autoupdate runs m4. It simply calls m4_warning, but
2993# we need a wrapper so that each warning is emitted only
2994# once. We break the quoting in m4_warning's argument in
2995# order to expand this macro's arguments, not AU_DEFUN's.
2996
2997
2998# Finally, this is the expansion that is picked up by
2999# autoconf. It tells the user to run autoupdate, and
3000# then outputs the replacement expansion. We do not care
3001# about autoupdate's warning because that contains
3002# information on what to do *after* running autoupdate.
3003
3004# This is what autoupdate's m4 run will expand. It fires
3005# the warning (with _au_warn_XXX), outputs it into the
3006# updated configure.ac (with AC_DIAGNOSE), and then outputs
3007# the replacement expansion.
3008
3009
3010# This is an auxiliary macro that is also run when
3011# autoupdate runs m4. It simply calls m4_warning, but
3012# we need a wrapper so that each warning is emitted only
3013# once. We break the quoting in m4_warning's argument in
3014# order to expand this macro's arguments, not AU_DEFUN's.
3015
3016
3017# Finally, this is the expansion that is picked up by
3018# autoconf. It tells the user to run autoupdate, and
3019# then outputs the replacement expansion. We do not care
3020# about autoupdate's warning because that contains
3021# information on what to do *after* running autoupdate.
3022
3023
3024
3025# _LT_PATH_LD_GNU
3026#- --------------
3027# _LT_PATH_LD_GNU
3028
3029
3030# _LT_CMD_RELOAD
3031# --------------
3032# find reload flag for linker
3033# -- PORTME Some linkers may need a different reload flag.
3034# _LT_CMD_RELOAD
3035
3036
3037# _LT_CHECK_MAGIC_METHOD
3038# ----------------------
3039# how to check for library dependencies
3040# -- PORTME fill in with the dynamic library characteristics
3041# _LT_CHECK_MAGIC_METHOD
3042
3043
3044# LT_PATH_NM
3045# ----------
3046# find the pathname to a BSD- or MS-compatible name lister
3047# LT_PATH_NM
3048
3049# Old names:
3050# This is what autoupdate's m4 run will expand. It fires
3051# the warning (with _au_warn_XXX), outputs it into the
3052# updated configure.ac (with AC_DIAGNOSE), and then outputs
3053# the replacement expansion.
3054
3055
3056# This is an auxiliary macro that is also run when
3057# autoupdate runs m4. It simply calls m4_warning, but
3058# we need a wrapper so that each warning is emitted only
3059# once. We break the quoting in m4_warning's argument in
3060# order to expand this macro's arguments, not AU_DEFUN's.
3061
3062
3063# Finally, this is the expansion that is picked up by
3064# autoconf. It tells the user to run autoupdate, and
3065# then outputs the replacement expansion. We do not care
3066# about autoupdate's warning because that contains
3067# information on what to do *after* running autoupdate.
3068
3069# This is what autoupdate's m4 run will expand. It fires
3070# the warning (with _au_warn_XXX), outputs it into the
3071# updated configure.ac (with AC_DIAGNOSE), and then outputs
3072# the replacement expansion.
3073
3074
3075# This is an auxiliary macro that is also run when
3076# autoupdate runs m4. It simply calls m4_warning, but
3077# we need a wrapper so that each warning is emitted only
3078# once. We break the quoting in m4_warning's argument in
3079# order to expand this macro's arguments, not AU_DEFUN's.
3080
3081
3082# Finally, this is the expansion that is picked up by
3083# autoconf. It tells the user to run autoupdate, and
3084# then outputs the replacement expansion. We do not care
3085# about autoupdate's warning because that contains
3086# information on what to do *after* running autoupdate.
3087
3088
3089
3090# LT_LIB_M
3091# --------
3092# check for math library
3093# LT_LIB_M
3094
3095# Old name:
3096# This is what autoupdate's m4 run will expand. It fires
3097# the warning (with _au_warn_XXX), outputs it into the
3098# updated configure.ac (with AC_DIAGNOSE), and then outputs
3099# the replacement expansion.
3100
3101
3102# This is an auxiliary macro that is also run when
3103# autoupdate runs m4. It simply calls m4_warning, but
3104# we need a wrapper so that each warning is emitted only
3105# once. We break the quoting in m4_warning's argument in
3106# order to expand this macro's arguments, not AU_DEFUN's.
3107
3108
3109# Finally, this is the expansion that is picked up by
3110# autoconf. It tells the user to run autoupdate, and
3111# then outputs the replacement expansion. We do not care
3112# about autoupdate's warning because that contains
3113# information on what to do *after* running autoupdate.
3114
3115
3116
3117# _LT_COMPILER_NO_RTTI([TAGNAME])
3118# -------------------------------
3119# _LT_COMPILER_NO_RTTI
3120
3121
3122# _LT_CMD_GLOBAL_SYMBOLS
3123# ----------------------
3124 # _LT_CMD_GLOBAL_SYMBOLS
3125
3126
3127# _LT_COMPILER_PIC([TAGNAME])
3128# ---------------------------
3129# _LT_COMPILER_PIC
3130
3131
3132# _LT_LINKER_SHLIBS([TAGNAME])
3133# ----------------------------
3134# See if the linker supports building shared libraries.
3135# _LT_LINKER_SHLIBS
3136
3137
3138# _LT_LANG_C_CONFIG([TAG])
3139# ------------------------
3140# Ensure that the configuration variables for a C compiler are suitably
3141# defined. These variables are subsequently used by _LT_CONFIG to write
3142# the compiler configuration to `libtool'.
3143# _LT_LANG_C_CONFIG
3144
3145
3146# _LT_LANG_CXX_CONFIG([TAG])
3147# --------------------------
3148# Ensure that the configuration variables for a C++ compiler are suitably
3149# defined. These variables are subsequently used by _LT_CONFIG to write
3150# the compiler configuration to `libtool'.
3151# _LT_LANG_CXX_CONFIG
3152
3153
3154# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3155# ---------------------------------
3156# Figure out "hidden" library dependencies from verbose
3157# compiler output when linking a shared library.
3158# Parse the compiler output and extract the necessary
3159# objects, libraries and library flags.
3160# _LT_SYS_HIDDEN_LIBDEPS
3161
3162
3163# _LT_LANG_F77_CONFIG([TAG])
3164# --------------------------
3165# Ensure that the configuration variables for a Fortran 77 compiler are
3166# suitably defined. These variables are subsequently used by _LT_CONFIG
3167# to write the compiler configuration to `libtool'.
3168# _LT_LANG_F77_CONFIG
3169
3170
3171# _LT_LANG_FC_CONFIG([TAG])
3172# -------------------------
3173# Ensure that the configuration variables for a Fortran compiler are
3174# suitably defined. These variables are subsequently used by _LT_CONFIG
3175# to write the compiler configuration to `libtool'.
3176# _LT_LANG_FC_CONFIG
3177
3178
3179# _LT_LANG_GCJ_CONFIG([TAG])
3180# --------------------------
3181# Ensure that the configuration variables for the GNU Java Compiler compiler
3182# are suitably defined. These variables are subsequently used by _LT_CONFIG
3183# to write the compiler configuration to `libtool'.
3184# _LT_LANG_GCJ_CONFIG
3185
3186
3187# _LT_LANG_RC_CONFIG([TAG])
3188# -------------------------
3189# Ensure that the configuration variables for the Windows resource compiler
3190# are suitably defined. These variables are subsequently used by _LT_CONFIG
3191# to write the compiler configuration to `libtool'.
3192# _LT_LANG_RC_CONFIG
3193
3194
3195# LT_PROG_GCJ
3196# -----------
3197
3198
3199# Old name:
3200# This is what autoupdate's m4 run will expand. It fires
3201# the warning (with _au_warn_XXX), outputs it into the
3202# updated configure.ac (with AC_DIAGNOSE), and then outputs
3203# the replacement expansion.
3204
3205
3206# This is an auxiliary macro that is also run when
3207# autoupdate runs m4. It simply calls m4_warning, but
3208# we need a wrapper so that each warning is emitted only
3209# once. We break the quoting in m4_warning's argument in
3210# order to expand this macro's arguments, not AU_DEFUN's.
3211
3212
3213# Finally, this is the expansion that is picked up by
3214# autoconf. It tells the user to run autoupdate, and
3215# then outputs the replacement expansion. We do not care
3216# about autoupdate's warning because that contains
3217# information on what to do *after* running autoupdate.
3218
3219
3220
3221# LT_PROG_RC
3222# ----------
3223
3224
3225# Old name:
3226# This is what autoupdate's m4 run will expand. It fires
3227# the warning (with _au_warn_XXX), outputs it into the
3228# updated configure.ac (with AC_DIAGNOSE), and then outputs
3229# the replacement expansion.
3230
3231
3232# This is an auxiliary macro that is also run when
3233# autoupdate runs m4. It simply calls m4_warning, but
3234# we need a wrapper so that each warning is emitted only
3235# once. We break the quoting in m4_warning's argument in
3236# order to expand this macro's arguments, not AU_DEFUN's.
3237
3238
3239# Finally, this is the expansion that is picked up by
3240# autoconf. It tells the user to run autoupdate, and
3241# then outputs the replacement expansion. We do not care
3242# about autoupdate's warning because that contains
3243# information on what to do *after* running autoupdate.
3244
3245
3246
3247# _LT_DECL_EGREP
3248# --------------
3249# If we don't have a new enough Autoconf to choose the best grep
3250# available, choose the one first in the user's PATH.
3251
3252
3253
3254# _LT_DECL_OBJDUMP
3255# --------------
3256# If we don't have a new enough Autoconf to choose the best objdump
3257# available, choose the one first in the user's PATH.
3258
3259
3260
3261# _LT_DECL_SED
3262# ------------
3263# Check for a fully-functional sed program, that truncates
3264# as few characters as possible. Prefer GNU sed if found.
3265# _LT_DECL_SED
3266
3267#m4_ifndef
3268
3269# Old name:
3270# This is what autoupdate's m4 run will expand. It fires
3271# the warning (with _au_warn_XXX), outputs it into the
3272# updated configure.ac (with AC_DIAGNOSE), and then outputs
3273# the replacement expansion.
3274
3275
3276# This is an auxiliary macro that is also run when
3277# autoupdate runs m4. It simply calls m4_warning, but
3278# we need a wrapper so that each warning is emitted only
3279# once. We break the quoting in m4_warning's argument in
3280# order to expand this macro's arguments, not AU_DEFUN's.
3281
3282
3283# Finally, this is the expansion that is picked up by
3284# autoconf. It tells the user to run autoupdate, and
3285# then outputs the replacement expansion. We do not care
3286# about autoupdate's warning because that contains
3287# information on what to do *after* running autoupdate.
3288
3289
3290
3291# _LT_CHECK_SHELL_FEATURES
3292# ------------------------
3293# Find out whether the shell is Bourne or XSI compatible,
3294# or has some other useful features.
3295# _LT_CHECK_SHELL_FEATURES
3296
3297
3298# _LT_PROG_XSI_SHELLFNS
3299# ---------------------
3300# Bourne and XSI compatible variants of some useful shell functions.
3301
3302
3303# Helper functions for option handling. -*- Autoconf -*-
3304#
3305# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3306# Inc.
3307# Written by Gary V. Vaughan, 2004
3308#
3309# This file is free software; the Free Software Foundation gives
3310# unlimited permission to copy and/or distribute it, with or without
3311# modifications, as long as this notice is preserved.
3312
3313# serial 6 ltoptions.m4
3314
3315# This is to help aclocal find these macros, as it can't see m4_define.
3316
3317
3318
3319# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
3320# ------------------------------------------
3321
3322
3323
3324# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
3325# ---------------------------------------
3326# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
3327# matching handler defined, dispatch to it. Other OPTION-NAMEs are
3328# saved as a flag.
3329
3330
3331
3332# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3333# ------------------------------------------------------------
3334# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3335
3336
3337
3338# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
3339# -------------------------------------------------------
3340# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
3341# are set.
3342
3343
3344
3345# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
3346# ----------------------------------------
3347# OPTION-LIST is a space-separated list of Libtool options associated
3348# with MACRO-NAME. If any OPTION has a matching handler declared with
3349# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
3350# the unknown option and exit.
3351# _LT_SET_OPTIONS
3352
3353
3354## --------------------------------- ##
3355## Macros to handle LT_INIT options. ##
3356## --------------------------------- ##
3357
3358# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
3359# -----------------------------------------
3360
3361
3362
3363# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
3364# -----------------------------------------------
3365# LT_OPTION_DEFINE
3366
3367
3368# dlopen
3369# ------
3370
3371
3372# This is what autoupdate's m4 run will expand. It fires
3373# the warning (with _au_warn_XXX), outputs it into the
3374# updated configure.ac (with AC_DIAGNOSE), and then outputs
3375# the replacement expansion.
3376
3377
3378# This is an auxiliary macro that is also run when
3379# autoupdate runs m4. It simply calls m4_warning, but
3380# we need a wrapper so that each warning is emitted only
3381# once. We break the quoting in m4_warning's argument in
3382# order to expand this macro's arguments, not AU_DEFUN's.
3383
3384
3385# Finally, this is the expansion that is picked up by
3386# autoconf. It tells the user to run autoupdate, and
3387# then outputs the replacement expansion. We do not care
3388# about autoupdate's warning because that contains
3389# information on what to do *after* running autoupdate.
3390
3391
3392
3393
3394# win32-dll
3395# ---------
3396# Declare package support for building win32 dll's.
3397# win32-dll
3398
3399# This is what autoupdate's m4 run will expand. It fires
3400# the warning (with _au_warn_XXX), outputs it into the
3401# updated configure.ac (with AC_DIAGNOSE), and then outputs
3402# the replacement expansion.
3403
3404
3405# This is an auxiliary macro that is also run when
3406# autoupdate runs m4. It simply calls m4_warning, but
3407# we need a wrapper so that each warning is emitted only
3408# once. We break the quoting in m4_warning's argument in
3409# order to expand this macro's arguments, not AU_DEFUN's.
3410
3411
3412# Finally, this is the expansion that is picked up by
3413# autoconf. It tells the user to run autoupdate, and
3414# then outputs the replacement expansion. We do not care
3415# about autoupdate's warning because that contains
3416# information on what to do *after* running autoupdate.
3417
3418
3419
3420
3421# _LT_ENABLE_SHARED([DEFAULT])
3422# ----------------------------
3423# implement the --enable-shared flag, and supports the `shared' and
3424# `disable-shared' LT_INIT options.
3425# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3426# _LT_ENABLE_SHARED
3427
3428
3429
3430
3431# Old names:
3432
3433
3434
3435
3436# This is what autoupdate's m4 run will expand. It fires
3437# the warning (with _au_warn_XXX), outputs it into the
3438# updated configure.ac (with AC_DIAGNOSE), and then outputs
3439# the replacement expansion.
3440
3441
3442# This is an auxiliary macro that is also run when
3443# autoupdate runs m4. It simply calls m4_warning, but
3444# we need a wrapper so that each warning is emitted only
3445# once. We break the quoting in m4_warning's argument in
3446# order to expand this macro's arguments, not AU_DEFUN's.
3447
3448
3449# Finally, this is the expansion that is picked up by
3450# autoconf. It tells the user to run autoupdate, and
3451# then outputs the replacement expansion. We do not care
3452# about autoupdate's warning because that contains
3453# information on what to do *after* running autoupdate.
3454
3455# This is what autoupdate's m4 run will expand. It fires
3456# the warning (with _au_warn_XXX), outputs it into the
3457# updated configure.ac (with AC_DIAGNOSE), and then outputs
3458# the replacement expansion.
3459
3460
3461# This is an auxiliary macro that is also run when
3462# autoupdate runs m4. It simply calls m4_warning, but
3463# we need a wrapper so that each warning is emitted only
3464# once. We break the quoting in m4_warning's argument in
3465# order to expand this macro's arguments, not AU_DEFUN's.
3466
3467
3468# Finally, this is the expansion that is picked up by
3469# autoconf. It tells the user to run autoupdate, and
3470# then outputs the replacement expansion. We do not care
3471# about autoupdate's warning because that contains
3472# information on what to do *after* running autoupdate.
3473
3474
3475
3476
3477
3478# _LT_ENABLE_STATIC([DEFAULT])
3479# ----------------------------
3480# implement the --enable-static flag, and support the `static' and
3481# `disable-static' LT_INIT options.
3482# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3483# _LT_ENABLE_STATIC
3484
3485
3486
3487
3488# Old names:
3489
3490
3491
3492
3493# This is what autoupdate's m4 run will expand. It fires
3494# the warning (with _au_warn_XXX), outputs it into the
3495# updated configure.ac (with AC_DIAGNOSE), and then outputs
3496# the replacement expansion.
3497
3498
3499# This is an auxiliary macro that is also run when
3500# autoupdate runs m4. It simply calls m4_warning, but
3501# we need a wrapper so that each warning is emitted only
3502# once. We break the quoting in m4_warning's argument in
3503# order to expand this macro's arguments, not AU_DEFUN's.
3504
3505
3506# Finally, this is the expansion that is picked up by
3507# autoconf. It tells the user to run autoupdate, and
3508# then outputs the replacement expansion. We do not care
3509# about autoupdate's warning because that contains
3510# information on what to do *after* running autoupdate.
3511
3512# This is what autoupdate's m4 run will expand. It fires
3513# the warning (with _au_warn_XXX), outputs it into the
3514# updated configure.ac (with AC_DIAGNOSE), and then outputs
3515# the replacement expansion.
3516
3517
3518# This is an auxiliary macro that is also run when
3519# autoupdate runs m4. It simply calls m4_warning, but
3520# we need a wrapper so that each warning is emitted only
3521# once. We break the quoting in m4_warning's argument in
3522# order to expand this macro's arguments, not AU_DEFUN's.
3523
3524
3525# Finally, this is the expansion that is picked up by
3526# autoconf. It tells the user to run autoupdate, and
3527# then outputs the replacement expansion. We do not care
3528# about autoupdate's warning because that contains
3529# information on what to do *after* running autoupdate.
3530
3531
3532
3533
3534
3535# _LT_ENABLE_FAST_INSTALL([DEFAULT])
3536# ----------------------------------
3537# implement the --enable-fast-install flag, and support the `fast-install'
3538# and `disable-fast-install' LT_INIT options.
3539# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3540# _LT_ENABLE_FAST_INSTALL
3541
3542
3543
3544
3545# Old names:
3546# This is what autoupdate's m4 run will expand. It fires
3547# the warning (with _au_warn_XXX), outputs it into the
3548# updated configure.ac (with AC_DIAGNOSE), and then outputs
3549# the replacement expansion.
3550
3551
3552# This is an auxiliary macro that is also run when
3553# autoupdate runs m4. It simply calls m4_warning, but
3554# we need a wrapper so that each warning is emitted only
3555# once. We break the quoting in m4_warning's argument in
3556# order to expand this macro's arguments, not AU_DEFUN's.
3557
3558
3559# Finally, this is the expansion that is picked up by
3560# autoconf. It tells the user to run autoupdate, and
3561# then outputs the replacement expansion. We do not care
3562# about autoupdate's warning because that contains
3563# information on what to do *after* running autoupdate.
3564
3565
3566# This is what autoupdate's m4 run will expand. It fires
3567# the warning (with _au_warn_XXX), outputs it into the
3568# updated configure.ac (with AC_DIAGNOSE), and then outputs
3569# the replacement expansion.
3570
3571
3572# This is an auxiliary macro that is also run when
3573# autoupdate runs m4. It simply calls m4_warning, but
3574# we need a wrapper so that each warning is emitted only
3575# once. We break the quoting in m4_warning's argument in
3576# order to expand this macro's arguments, not AU_DEFUN's.
3577
3578
3579# Finally, this is the expansion that is picked up by
3580# autoconf. It tells the user to run autoupdate, and
3581# then outputs the replacement expansion. We do not care
3582# about autoupdate's warning because that contains
3583# information on what to do *after* running autoupdate.
3584
3585
3586
3587
3588# _LT_WITH_PIC([MODE])
3589# --------------------
3590# implement the --with-pic flag, and support the `pic-only' and `no-pic'
3591# LT_INIT options.
3592# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3593# _LT_WITH_PIC
3594
3595
3596
3597
3598# Old name:
3599# This is what autoupdate's m4 run will expand. It fires
3600# the warning (with _au_warn_XXX), outputs it into the
3601# updated configure.ac (with AC_DIAGNOSE), and then outputs
3602# the replacement expansion.
3603
3604
3605# This is an auxiliary macro that is also run when
3606# autoupdate runs m4. It simply calls m4_warning, but
3607# we need a wrapper so that each warning is emitted only
3608# once. We break the quoting in m4_warning's argument in
3609# order to expand this macro's arguments, not AU_DEFUN's.
3610
3611
3612# Finally, this is the expansion that is picked up by
3613# autoconf. It tells the user to run autoupdate, and
3614# then outputs the replacement expansion. We do not care
3615# about autoupdate's warning because that contains
3616# information on what to do *after* running autoupdate.
3617
3618
3619
3620## ----------------- ##
3621## LTDL_INIT Options ##
3622## ----------------- ##
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3634#
3635# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3636# Written by Gary V. Vaughan, 2004
3637#
3638# This file is free software; the Free Software Foundation gives
3639# unlimited permission to copy and/or distribute it, with or without
3640# modifications, as long as this notice is preserved.
3641
3642# serial 6 ltsugar.m4
3643
3644# This is to help aclocal find these macros, as it can't see m4_define.
3645
3646
3647
3648# lt_join(SEP, ARG1, [ARG2...])
3649# -----------------------------
3650# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3651# associated separator.
3652# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3653# versions in m4sugar had bugs.
3654
3655
3656
3657
3658# lt_car(LIST)
3659# lt_cdr(LIST)
3660# ------------
3661# Manipulate m4 lists.
3662# These macros are necessary as long as will still need to support
3663# Autoconf-2.59 which quotes differently.
3664
3665
3666
3667
3668
3669# lt_append(MACRO-NAME, STRING, [SEPARATOR])
3670# ------------------------------------------
3671# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3672# Note that neither SEPARATOR nor STRING are expanded; they are appended
3673# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3674# No SEPARATOR is output if MACRO-NAME was previously undefined (different
3675# than defined and empty).
3676#
3677# This macro is needed until we can rely on Autoconf 2.62, since earlier
3678# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3679
3680
3681
3682
3683# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
3684# ----------------------------------------------------------
3685# Produce a SEP delimited list of all paired combinations of elements of
3686# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
3687# has the form PREFIXmINFIXSUFFIXn.
3688# Needed until we can rely on m4_combine added in Autoconf 2.62.
3689
3690
3691
3692# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
3693# -----------------------------------------------------------------------
3694# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
3695# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
3696
3697
3698
3699# lt_dict_add(DICT, KEY, VALUE)
3700# -----------------------------
3701
3702
3703
3704# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
3705# --------------------------------------------
3706
3707
3708
3709# lt_dict_fetch(DICT, KEY, [SUBKEY])
3710# ----------------------------------
3711
3712
3713
3714# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
3715# -----------------------------------------------------------------
3716
3717
3718
3719# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
3720# --------------------------------------------------------------
3721
3722
3723# ltversion.m4 -- version numbers -*- Autoconf -*-
3724#
3725# Copyright (C) 2004 Free Software Foundation, Inc.
3726# Written by Scott James Remnant, 2004
3727#
3728# This file is free software; the Free Software Foundation gives
3729# unlimited permission to copy and/or distribute it, with or without
3730# modifications, as long as this notice is preserved.
3731
3732# Generated from ltversion.in.
3733
3734# serial 3134 ltversion.m4
3735# This file is part of GNU Libtool
3736
3737
3738
3739
3740
3741
3742# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
3743#
3744# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3745# Written by Scott James Remnant, 2004.
3746#
3747# This file is free software; the Free Software Foundation gives
3748# unlimited permission to copy and/or distribute it, with or without
3749# modifications, as long as this notice is preserved.
3750
3751# serial 4 lt~obsolete.m4
3752
3753# These exist entirely to fool aclocal when bootstrapping libtool.
3754#
3755# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
3756# which have later been changed to m4_define as they aren't part of the
3757# exported API, or moved to Autoconf or Automake where they belong.
3758#
3759# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
3760# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
3761# using a macro with the same name in our local m4/libtool.m4 it'll
3762# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
3763# and doesn't know about Autoconf macros at all.)
3764#
3765# So we provide this file, which has a silly filename so it's always
3766# included after everything else. This provides aclocal with the
3767# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
3768# because those macros already exist, or will be overwritten later.
3769# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
3770#
3771# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3772# Yes, that means every name once taken will need to remain here until
3773# we give up compatibility with versions before 1.7, at which point
3774# we need to keep only those names which we still refer to.
3775
3776# This is to help aclocal find these macros, as it can't see m4_define.
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841## -*- Autoconf -*-
3842
3843# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3844# Free Software Foundation, Inc.
3845#
3846# This file is free software; the Free Software Foundation
3847# gives unlimited permission to copy and/or distribute it,
3848# with or without modifications, as long as this notice is preserved.
3849
3850# serial 8
3851
3852# Based on depend.m4 from automake 1.9, modified for standalone use in
3853# an environment where GNU make is required.
3854
3855# ZW_PROG_COMPILER_DEPENDENCIES
3856# -----------------------------
3857# Variant of _AM_DEPENDENCIES which just does the dependency probe and
3858# sets fooDEPMODE accordingly. Cache-variable compatible with
3859# original; not side-effect compatible. As the users of this macro
3860# may require accurate dependencies for correct builds, it does *not*
3861# honor --disable-dependency-checking, and failure to detect a usable
3862# method is an error. depcomp is assumed to be located in
3863# $ac_aux_dir.
3864#
3865# FIXME: Should use the Autoconf 2.5x language-selection mechanism.
3866
3867
3868
3869# AM_SET_DEPDIR
3870# -------------
3871# Choose a directory name for dependency files.
3872
3873
3874# ZW_CREATE_DEPDIR
3875# ----------------
3876# As AM_SET_DEPDIR, but also create the directory at config.status time.
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927sim_inline="-DDEFAULT_INLINE=0"
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964# intl sister-directory configuration rules.
3965#
3966
3967# The idea behind this macro is that there's no need to repeat all the
3968# autoconf probes done by the intl directory - it's already done them
3969# for us. In fact, there's no need even to look at the cache for the
3970# answers. All we need to do is nab a few pieces of information.
3971# The intl directory is set up to make this easy, by generating a
3972# small file which can be sourced as a shell script; then we produce
3973# the necessary substitutions and definitions for this directory.
3974
3975
3976
3977# Autoconf M4 include file defining utility macros for complex Canadian
3978# cross builds.
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988####
3989# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
3990# or AC_INIT.
3991# These demand that AC_CANONICAL_SYSTEM be called beforehand.
3992
3993####
3994# NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
3995# Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
3996
3997
3998####
3999# NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4000# Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
4001
4002
4003
4004# Backported from Autoconf 2.5x; can go away when and if
4005# we switch. Put the OS path separator in $PATH_SEPARATOR.
4006
4007
4008
4009
4010# ACX_HAVE_GCC_FOR_TARGET
4011# Check if the variable GCC_FOR_TARGET really points to a GCC binary.
4012
4013
4014# ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
4015# Searching for installed target binutils. We need to take extra care,
4016# else we may find the wrong assembler, linker, etc., and lose.
4017#
4018# First try --with-build-time-tools, if specified.
4019#
4020# For build != host, we ask the installed GCC for the name of the tool it
4021# uses, and accept it if it is an absolute path. This is because the
4022# only good choice for a compiler is the same GCC version that is being
4023# installed (or we couldn't make target libraries), and we assume that
4024# on the host system we'll have not only the same GCC version, but also
4025# the same binutils version.
4026#
4027# For build == host, search the same directories that the installed
4028# compiler will search. We used to do this for the assembler, linker,
4029# and nm only; for simplicity of configuration, however, we extend this
4030# criterion to tools (such as ar and ranlib) that are never invoked by
4031# the compiler, to avoid mismatches.
4032#
4033# Also note we have to check MD_EXEC_PREFIX before checking the user's path
4034# if build == target. This makes the most sense only when bootstrapping,
4035# but we also do so when build != host. In this case, we hope that the
4036# build and host systems will have similar contents of MD_EXEC_PREFIX.
4037#
4038# If we do not find a suitable binary, then try the user's path.
4039
4040
4041###
4042# AC_PROG_CPP_WERROR
4043# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
4044# triggers warnings from the preprocessor. Will be in autoconf 2.58.
4045# For now, using this also overrides header checks to use only the
4046# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
4047# bit harder from here).
4048# Eventually autoconf will default to checking headers with the compiler
4049# instead, and we'll have to do this differently.
4050
4051# AC_PROG_CPP_WERROR
4052
4053# Test for GNAT.
4054# We require the gnatbind & gnatmake programs, as well as a compiler driver
4055# that understands Ada. We use the user's CC setting, already found, and
4056# possibly add $1 to the command-line parameters.
4057#
4058# Sets the shell variable have_gnat to yes or no as appropriate, and
4059# substitutes GNATBIND and GNATMAKE.
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085ac_ext=c
4086ac_cpp='$CPP $CPPFLAGS'
4087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090if test -n "$ac_tool_prefix"; then
4091 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4092set dummy ${ac_tool_prefix}gcc; ac_word=$2
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4094$as_echo_n "checking for $ac_word... " >&6; }
4095if test "${ac_cv_prog_CC+set}" = set; then :
4096 $as_echo_n "(cached) " >&6
4097else
4098 if test -n "$CC"; then
4099 ac_cv_prog_CC="$CC" # Let the user override the test.
4100else
4101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102for as_dir in $PATH
4103do
4104 IFS=$as_save_IFS
4105 test -z "$as_dir" && as_dir=.
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4108 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 break 2
4111 fi
4112done
4113 done
4114IFS=$as_save_IFS
4115
4116fi
4117fi
4118CC=$ac_cv_prog_CC
4119if test -n "$CC"; then
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4121$as_echo "$CC" >&6; }
4122else
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124$as_echo "no" >&6; }
4125fi
4126
4127
4128fi
4129if test -z "$ac_cv_prog_CC"; then
4130 ac_ct_CC=$CC
4131 # Extract the first word of "gcc", so it can be a program name with args.
4132set dummy gcc; ac_word=$2
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134$as_echo_n "checking for $ac_word... " >&6; }
4135if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4136 $as_echo_n "(cached) " >&6
4137else
4138 if test -n "$ac_ct_CC"; then
4139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4140else
4141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142for as_dir in $PATH
4143do
4144 IFS=$as_save_IFS
4145 test -z "$as_dir" && as_dir=.
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4148 ac_cv_prog_ac_ct_CC="gcc"
4149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4150 break 2
4151 fi
4152done
4153 done
4154IFS=$as_save_IFS
4155
4156fi
4157fi
4158ac_ct_CC=$ac_cv_prog_ac_ct_CC
4159if test -n "$ac_ct_CC"; then
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4161$as_echo "$ac_ct_CC" >&6; }
4162else
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164$as_echo "no" >&6; }
4165fi
4166
4167 if test "x$ac_ct_CC" = x; then
4168 CC=""
4169 else
4170 case $cross_compiling:$ac_tool_warned in
4171yes:)
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4174ac_tool_warned=yes ;;
4175esac
4176 CC=$ac_ct_CC
4177 fi
4178else
4179 CC="$ac_cv_prog_CC"
4180fi
4181
4182if test -z "$CC"; then
4183 if test -n "$ac_tool_prefix"; then
4184 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4185set dummy ${ac_tool_prefix}cc; ac_word=$2
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4187$as_echo_n "checking for $ac_word... " >&6; }
4188if test "${ac_cv_prog_CC+set}" = set; then :
4189 $as_echo_n "(cached) " >&6
4190else
4191 if test -n "$CC"; then
4192 ac_cv_prog_CC="$CC" # Let the user override the test.
4193else
4194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195for as_dir in $PATH
4196do
4197 IFS=$as_save_IFS
4198 test -z "$as_dir" && as_dir=.
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4201 ac_cv_prog_CC="${ac_tool_prefix}cc"
4202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 break 2
4204 fi
4205done
4206 done
4207IFS=$as_save_IFS
4208
4209fi
4210fi
4211CC=$ac_cv_prog_CC
4212if test -n "$CC"; then
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4214$as_echo "$CC" >&6; }
4215else
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217$as_echo "no" >&6; }
4218fi
4219
4220
4221 fi
4222fi
4223if test -z "$CC"; then
4224 # Extract the first word of "cc", so it can be a program name with args.
4225set dummy cc; ac_word=$2
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227$as_echo_n "checking for $ac_word... " >&6; }
4228if test "${ac_cv_prog_CC+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
4230else
4231 if test -n "$CC"; then
4232 ac_cv_prog_CC="$CC" # Let the user override the test.
4233else
4234 ac_prog_rejected=no
4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH
4237do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4243 ac_prog_rejected=yes
4244 continue
4245 fi
4246 ac_cv_prog_CC="cc"
4247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 break 2
4249 fi
4250done
4251 done
4252IFS=$as_save_IFS
4253
4254if test $ac_prog_rejected = yes; then
4255 # We found a bogon in the path, so make sure we never use it.
4256 set dummy $ac_cv_prog_CC
4257 shift
4258 if test $# != 0; then
4259 # We chose a different compiler from the bogus one.
4260 # However, it has the same basename, so the bogon will be chosen
4261 # first if we set CC to just the basename; use the full file name.
4262 shift
4263 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4264 fi
4265fi
4266fi
4267fi
4268CC=$ac_cv_prog_CC
4269if test -n "$CC"; then
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4271$as_echo "$CC" >&6; }
4272else
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274$as_echo "no" >&6; }
4275fi
4276
4277
4278fi
4279if test -z "$CC"; then
4280 if test -n "$ac_tool_prefix"; then
4281 for ac_prog in cl.exe
4282 do
4283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4284set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4286$as_echo_n "checking for $ac_word... " >&6; }
4287if test "${ac_cv_prog_CC+set}" = set; then :
4288 $as_echo_n "(cached) " >&6
4289else
4290 if test -n "$CC"; then
4291 ac_cv_prog_CC="$CC" # Let the user override the test.
4292else
4293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294for as_dir in $PATH
4295do
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4300 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 break 2
4303 fi
4304done
4305 done
4306IFS=$as_save_IFS
4307
4308fi
4309fi
4310CC=$ac_cv_prog_CC
4311if test -n "$CC"; then
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4313$as_echo "$CC" >&6; }
4314else
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316$as_echo "no" >&6; }
4317fi
4318
4319
4320 test -n "$CC" && break
4321 done
4322fi
4323if test -z "$CC"; then
4324 ac_ct_CC=$CC
4325 for ac_prog in cl.exe
4326do
4327 # Extract the first word of "$ac_prog", so it can be a program name with args.
4328set dummy $ac_prog; ac_word=$2
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4330$as_echo_n "checking for $ac_word... " >&6; }
4331if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4332 $as_echo_n "(cached) " >&6
4333else
4334 if test -n "$ac_ct_CC"; then
4335 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4336else
4337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338for as_dir in $PATH
4339do
4340 IFS=$as_save_IFS
4341 test -z "$as_dir" && as_dir=.
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4344 ac_cv_prog_ac_ct_CC="$ac_prog"
4345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4346 break 2
4347 fi
4348done
4349 done
4350IFS=$as_save_IFS
4351
4352fi
4353fi
4354ac_ct_CC=$ac_cv_prog_ac_ct_CC
4355if test -n "$ac_ct_CC"; then
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4357$as_echo "$ac_ct_CC" >&6; }
4358else
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360$as_echo "no" >&6; }
4361fi
4362
4363
4364 test -n "$ac_ct_CC" && break
4365done
4366
4367 if test "x$ac_ct_CC" = x; then
4368 CC=""
4369 else
4370 case $cross_compiling:$ac_tool_warned in
4371yes:)
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4374ac_tool_warned=yes ;;
4375esac
4376 CC=$ac_ct_CC
4377 fi
4378fi
4379
4380fi
4381
4382
4383test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4385as_fn_error "no acceptable C compiler found in \$PATH
4386See \`config.log' for more details." "$LINENO" 5; }
4387
4388# Provide some information about the compiler.
4389$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4390set X $ac_compile
4391ac_compiler=$2
4392for ac_option in --version -v -V -qversion; do
4393 { { ac_try="$ac_compiler $ac_option >&5"
4394case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397esac
4398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399$as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4401 ac_status=$?
4402 if test -s conftest.err; then
4403 sed '10a\
4404... rest of stderr output deleted ...
4405 10q' conftest.err >conftest.er1
4406 cat conftest.er1 >&5
4407 rm -f conftest.er1 conftest.err
4408 fi
4409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4410 test $ac_status = 0; }
4411done
4412
4413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414/* end confdefs.h. */
4415
4416int
4417main ()
4418{
4419
4420 ;
4421 return 0;
4422}
4423_ACEOF
4424ac_clean_files_save=$ac_clean_files
4425ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4426# Try to create an executable without -o first, disregard a.out.
4427# It will help us diagnose broken compilers, and finding out an intuition
4428# of exeext.
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4430$as_echo_n "checking for C compiler default output file name... " >&6; }
4431ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4432
4433# The possible output files:
4434ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4435
4436ac_rmfiles=
4437for ac_file in $ac_files
4438do
4439 case $ac_file in
4440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4441 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4442 esac
4443done
4444rm -f $ac_rmfiles
4445
4446if { { ac_try="$ac_link_default"
4447case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4450esac
4451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4452$as_echo "$ac_try_echo"; } >&5
4453 (eval "$ac_link_default") 2>&5
4454 ac_status=$?
4455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4456 test $ac_status = 0; }; then :
4457 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4458# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4459# in a Makefile. We should not override ac_cv_exeext if it was cached,
4460# so that the user can short-circuit this test for compilers unknown to
4461# Autoconf.
4462for ac_file in $ac_files ''
4463do
4464 test -f "$ac_file" || continue
4465 case $ac_file in
4466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4467 ;;
4468 [ab].out )
4469 # We found the default executable, but exeext='' is most
4470 # certainly right.
4471 break;;
4472 *.* )
4473 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4474 then :; else
4475 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4476 fi
4477 # We set ac_cv_exeext here because the later test for it is not
4478 # safe: cross compilers may not add the suffix if given an `-o'
4479 # argument, so we may need to know it at that point already.
4480 # Even if this section looks crufty: it has the advantage of
4481 # actually working.
4482 break;;
4483 * )
4484 break;;
4485 esac
4486done
4487test "$ac_cv_exeext" = no && ac_cv_exeext=
4488
4489else
4490 ac_file=''
4491fi
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4493$as_echo "$ac_file" >&6; }
4494if test -z "$ac_file"; then :
4495 $as_echo "$as_me: failed program was:" >&5
4496sed 's/^/| /' conftest.$ac_ext >&5
4497
4498{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4500{ as_fn_set_status 77
4501as_fn_error "C compiler cannot create executables
4502See \`config.log' for more details." "$LINENO" 5; }; }
4503fi
4504ac_exeext=$ac_cv_exeext
4505
4506# Check that the compiler produces executables we can run. If not, either
4507# the compiler is broken, or we cross compile.
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4509$as_echo_n "checking whether the C compiler works... " >&6; }
4510# If not cross compiling, check that we can run a simple program.
4511if test "$cross_compiling" != yes; then
4512 if { ac_try='./$ac_file'
4513 { { case "(($ac_try" in
4514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515 *) ac_try_echo=$ac_try;;
4516esac
4517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4518$as_echo "$ac_try_echo"; } >&5
4519 (eval "$ac_try") 2>&5
4520 ac_status=$?
4521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4522 test $ac_status = 0; }; }; then
4523 cross_compiling=no
4524 else
4525 if test "$cross_compiling" = maybe; then
4526 cross_compiling=yes
4527 else
4528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4529$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4530as_fn_error "cannot run C compiled programs.
4531If you meant to cross compile, use \`--host'.
4532See \`config.log' for more details." "$LINENO" 5; }
4533 fi
4534 fi
4535fi
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4537$as_echo "yes" >&6; }
4538
4539rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4540ac_clean_files=$ac_clean_files_save
4541# Check that the compiler produces executables we can run. If not, either
4542# the compiler is broken, or we cross compile.
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4544$as_echo_n "checking whether we are cross compiling... " >&6; }
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4546$as_echo "$cross_compiling" >&6; }
4547
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4549$as_echo_n "checking for suffix of executables... " >&6; }
4550if { { ac_try="$ac_link"
4551case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4554esac
4555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4556$as_echo "$ac_try_echo"; } >&5
4557 (eval "$ac_link") 2>&5
4558 ac_status=$?
4559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4560 test $ac_status = 0; }; then :
4561 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4562# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4563# work properly (i.e., refer to `conftest.exe'), while it won't with
4564# `rm'.
4565for ac_file in conftest.exe conftest conftest.*; do
4566 test -f "$ac_file" || continue
4567 case $ac_file in
4568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4569 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4570 break;;
4571 * ) break;;
4572 esac
4573done
4574else
4575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4577as_fn_error "cannot compute suffix of executables: cannot compile and link
4578See \`config.log' for more details." "$LINENO" 5; }
4579fi
4580rm -f conftest$ac_cv_exeext
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4582$as_echo "$ac_cv_exeext" >&6; }
4583
4584rm -f conftest.$ac_ext
4585EXEEXT=$ac_cv_exeext
4586ac_exeext=$EXEEXT
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4588$as_echo_n "checking for suffix of object files... " >&6; }
4589if test "${ac_cv_objext+set}" = set; then :
4590 $as_echo_n "(cached) " >&6
4591else
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593/* end confdefs.h. */
4594
4595int
4596main ()
4597{
4598
4599 ;
4600 return 0;
4601}
4602_ACEOF
4603rm -f conftest.o conftest.obj
4604if { { ac_try="$ac_compile"
4605case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4608esac
4609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4610$as_echo "$ac_try_echo"; } >&5
4611 (eval "$ac_compile") 2>&5
4612 ac_status=$?
4613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4614 test $ac_status = 0; }; then :
4615 for ac_file in conftest.o conftest.obj conftest.*; do
4616 test -f "$ac_file" || continue;
4617 case $ac_file in
4618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4619 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4620 break;;
4621 esac
4622done
4623else
4624 $as_echo "$as_me: failed program was:" >&5
4625sed 's/^/| /' conftest.$ac_ext >&5
4626
4627{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4629as_fn_error "cannot compute suffix of object files: cannot compile
4630See \`config.log' for more details." "$LINENO" 5; }
4631fi
4632rm -f conftest.$ac_cv_objext conftest.$ac_ext
4633fi
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4635$as_echo "$ac_cv_objext" >&6; }
4636OBJEXT=$ac_cv_objext
4637ac_objext=$OBJEXT
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4639$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4640if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4641 $as_echo_n "(cached) " >&6
4642else
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644/* end confdefs.h. */
4645
4646int
4647main ()
4648{
4649#ifndef __GNUC__
4650 choke me
4651#endif
4652
4653 ;
4654 return 0;
4655}
4656_ACEOF
4657if ac_fn_c_try_compile "$LINENO"; then :
4658 ac_compiler_gnu=yes
4659else
4660 ac_compiler_gnu=no
4661fi
4662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663ac_cv_c_compiler_gnu=$ac_compiler_gnu
4664
4665fi
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4667$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4668if test $ac_compiler_gnu = yes; then
4669 GCC=yes
4670else
4671 GCC=
4672fi
4673ac_test_CFLAGS=${CFLAGS+set}
4674ac_save_CFLAGS=$CFLAGS
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4676$as_echo_n "checking whether $CC accepts -g... " >&6; }
4677if test "${ac_cv_prog_cc_g+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4679else
4680 ac_save_c_werror_flag=$ac_c_werror_flag
4681 ac_c_werror_flag=yes
4682 ac_cv_prog_cc_g=no
4683 CFLAGS="-g"
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685/* end confdefs.h. */
4686
4687int
4688main ()
4689{
4690
4691 ;
4692 return 0;
4693}
4694_ACEOF
4695if ac_fn_c_try_compile "$LINENO"; then :
4696 ac_cv_prog_cc_g=yes
4697else
4698 CFLAGS=""
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700/* end confdefs.h. */
4701
4702int
4703main ()
4704{
4705
4706 ;
4707 return 0;
4708}
4709_ACEOF
4710if ac_fn_c_try_compile "$LINENO"; then :
4711
4712else
4713 ac_c_werror_flag=$ac_save_c_werror_flag
4714 CFLAGS="-g"
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716/* end confdefs.h. */
4717
4718int
4719main ()
4720{
4721
4722 ;
4723 return 0;
4724}
4725_ACEOF
4726if ac_fn_c_try_compile "$LINENO"; then :
4727 ac_cv_prog_cc_g=yes
4728fi
4729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730fi
4731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732fi
4733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 ac_c_werror_flag=$ac_save_c_werror_flag
4735fi
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4737$as_echo "$ac_cv_prog_cc_g" >&6; }
4738if test "$ac_test_CFLAGS" = set; then
4739 CFLAGS=$ac_save_CFLAGS
4740elif test $ac_cv_prog_cc_g = yes; then
4741 if test "$GCC" = yes; then
4742 CFLAGS="-g -O2"
4743 else
4744 CFLAGS="-g"
4745 fi
4746else
4747 if test "$GCC" = yes; then
4748 CFLAGS="-O2"
4749 else
4750 CFLAGS=
4751 fi
4752fi
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4754$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4755if test "${ac_cv_prog_cc_c89+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4757else
4758 ac_cv_prog_cc_c89=no
4759ac_save_CC=$CC
4760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761/* end confdefs.h. */
4762#include <stdarg.h>
4763#include <stdio.h>
4764#include <sys/types.h>
4765#include <sys/stat.h>
4766/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4767struct buf { int x; };
4768FILE * (*rcsopen) (struct buf *, struct stat *, int);
4769static char *e (p, i)
4770 char **p;
4771 int i;
4772{
4773 return p[i];
4774}
4775static char *f (char * (*g) (char **, int), char **p, ...)
4776{
4777 char *s;
4778 va_list v;
4779 va_start (v,p);
4780 s = g (p, va_arg (v,int));
4781 va_end (v);
4782 return s;
4783}
4784
4785/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4786 function prototypes and stuff, but not '\xHH' hex character constants.
4787 These don't provoke an error unfortunately, instead are silently treated
4788 as 'x'. The following induces an error, until -std is added to get
4789 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4790 array size at least. It's necessary to write '\x00'==0 to get something
4791 that's true only with -std. */
4792int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4793
4794/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4795 inside strings and character constants. */
4796#define FOO(x) 'x'
4797int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4798
4799int test (int i, double x);
4800struct s1 {int (*f) (int a);};
4801struct s2 {int (*f) (double a);};
4802int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4803int argc;
4804char **argv;
4805int
4806main ()
4807{
4808return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4809 ;
4810 return 0;
4811}
4812_ACEOF
4813for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4814 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4815do
4816 CC="$ac_save_CC $ac_arg"
4817 if ac_fn_c_try_compile "$LINENO"; then :
4818 ac_cv_prog_cc_c89=$ac_arg
4819fi
4820rm -f core conftest.err conftest.$ac_objext
4821 test "x$ac_cv_prog_cc_c89" != "xno" && break
4822done
4823rm -f conftest.$ac_ext
4824CC=$ac_save_CC
4825
4826fi
4827# AC_CACHE_VAL
4828case "x$ac_cv_prog_cc_c89" in
4829 x)
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4831$as_echo "none needed" >&6; } ;;
4832 xno)
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4834$as_echo "unsupported" >&6; } ;;
4835 *)
4836 CC="$CC $ac_cv_prog_cc_c89"
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4838$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4839esac
4840if test "x$ac_cv_prog_cc_c89" != xno; then :
4841
4842fi
4843
4844ac_ext=c
4845ac_cpp='$CPP $CPPFLAGS'
4846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849
4850ac_aux_dir=
4851for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4852 for ac_t in install-sh install.sh shtool; do
4853 if test -f "$ac_dir/$ac_t"; then
4854 ac_aux_dir=$ac_dir
4855 ac_install_sh="$ac_aux_dir/$ac_t -c"
4856 break 2
4857 fi
4858 done
4859done
4860if test -z "$ac_aux_dir"; then
4861 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4862fi
4863
4864# These three variables are undocumented and unsupported,
4865# and are intended to be withdrawn in a future Autoconf release.
4866# They can cause serious problems if a builder's source tree is in a directory
4867# whose full name contains unusual characters.
4868ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4869ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4870ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4871
4872
4873# Make sure we can run config.sub.
4874$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4875 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4876
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4878$as_echo_n "checking build system type... " >&6; }
4879if test "${ac_cv_build+set}" = set; then :
4880 $as_echo_n "(cached) " >&6
4881else
4882 ac_build_alias=$build_alias
4883test "x$ac_build_alias" = x &&
4884 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4885test "x$ac_build_alias" = x &&
4886 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4887ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4888 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4889
4890fi
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4892$as_echo "$ac_cv_build" >&6; }
4893case $ac_cv_build in
4894*-*-*) ;;
4895*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4896esac
4897build=$ac_cv_build
4898ac_save_IFS=$IFS; IFS='-'
4899set x $ac_cv_build
4900shift
4901build_cpu=$1
4902build_vendor=$2
4903shift; shift
4904# Remember, the first character of IFS is used to create $*,
4905# except with old shells:
4906build_os=$*
4907IFS=$ac_save_IFS
4908case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4909
4910
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4912$as_echo_n "checking host system type... " >&6; }
4913if test "${ac_cv_host+set}" = set; then :
4914 $as_echo_n "(cached) " >&6
4915else
4916 if test "x$host_alias" = x; then
4917 ac_cv_host=$ac_cv_build
4918else
4919 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4920 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4921fi
4922
4923fi
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4925$as_echo "$ac_cv_host" >&6; }
4926case $ac_cv_host in
4927*-*-*) ;;
4928*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4929esac
4930host=$ac_cv_host
4931ac_save_IFS=$IFS; IFS='-'
4932set x $ac_cv_host
4933shift
4934host_cpu=$1
4935host_vendor=$2
4936shift; shift
4937# Remember, the first character of IFS is used to create $*,
4938# except with old shells:
4939host_os=$*
4940IFS=$ac_save_IFS
4941case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4942
4943
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4945$as_echo_n "checking target system type... " >&6; }
4946if test "${ac_cv_target+set}" = set; then :
4947 $as_echo_n "(cached) " >&6
4948else
4949 if test "x$target_alias" = x; then
4950 ac_cv_target=$ac_cv_host
4951else
4952 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4953 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4954fi
4955
4956fi
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4958$as_echo "$ac_cv_target" >&6; }
4959case $ac_cv_target in
4960*-*-*) ;;
4961*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4962esac
4963target=$ac_cv_target
4964ac_save_IFS=$IFS; IFS='-'
4965set x $ac_cv_target
4966shift
4967target_cpu=$1
4968target_vendor=$2
4969shift; shift
4970# Remember, the first character of IFS is used to create $*,
4971# except with old shells:
4972target_os=$*
4973IFS=$ac_save_IFS
4974case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4975
4976
4977# The aliases save the names the user supplied, while $host etc.
4978# will get canonicalized.
4979test -n "$target_alias" &&
4980 test "$program_prefix$program_suffix$program_transform_name" = \
4981 NONENONEs,x,x, &&
4982 program_prefix=${target_alias}-
4983
4984ac_ext=c
4985ac_cpp='$CPP $CPPFLAGS'
4986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4988ac_compiler_gnu=$ac_cv_c_compiler_gnu
4989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4990$as_echo_n "checking how to run the C preprocessor... " >&6; }
4991# On Suns, sometimes $CPP names a directory.
4992if test -n "$CPP" && test -d "$CPP"; then
4993 CPP=
4994fi
4995if test -z "$CPP"; then
4996 if test "${ac_cv_prog_CPP+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4998else
4999 # Double quotes because CPP needs to be expanded
5000 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5001 do
5002 ac_preproc_ok=false
5003for ac_c_preproc_warn_flag in '' yes
5004do
5005 # Use a header file that comes with gcc, so configuring glibc
5006 # with a fresh cross-compiler works.
5007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5008 # <limits.h> exists even on freestanding compilers.
5009 # On the NeXT, cc -E runs the code through the compiler's parser,
5010 # not just through cpp. "Syntax error" is here to catch this case.
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012/* end confdefs.h. */
5013#ifdef __STDC__
5014# include <limits.h>
5015#else
5016# include <assert.h>
5017#endif
5018 Syntax error
5019_ACEOF
5020if ac_fn_c_try_cpp "$LINENO"; then :
5021
5022else
5023 # Broken: fails on valid input.
5024continue
5025fi
5026rm -f conftest.err conftest.$ac_ext
5027
5028 # OK, works on sane cases. Now check whether nonexistent headers
5029 # can be detected and how.
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031/* end confdefs.h. */
5032#include <ac_nonexistent.h>
5033_ACEOF
5034if ac_fn_c_try_cpp "$LINENO"; then :
5035 # Broken: success on invalid input.
5036continue
5037else
5038 # Passes both tests.
5039ac_preproc_ok=:
5040break
5041fi
5042rm -f conftest.err conftest.$ac_ext
5043
5044done
5045# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5046rm -f conftest.err conftest.$ac_ext
5047if $ac_preproc_ok; then :
5048 break
5049fi
5050
5051 done
5052 ac_cv_prog_CPP=$CPP
5053
5054fi
5055 CPP=$ac_cv_prog_CPP
5056else
5057 ac_cv_prog_CPP=$CPP
5058fi
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5060$as_echo "$CPP" >&6; }
5061ac_preproc_ok=false
5062for ac_c_preproc_warn_flag in '' yes
5063do
5064 # Use a header file that comes with gcc, so configuring glibc
5065 # with a fresh cross-compiler works.
5066 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5067 # <limits.h> exists even on freestanding compilers.
5068 # On the NeXT, cc -E runs the code through the compiler's parser,
5069 # not just through cpp. "Syntax error" is here to catch this case.
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071/* end confdefs.h. */
5072#ifdef __STDC__
5073# include <limits.h>
5074#else
5075# include <assert.h>
5076#endif
5077 Syntax error
5078_ACEOF
5079if ac_fn_c_try_cpp "$LINENO"; then :
5080
5081else
5082 # Broken: fails on valid input.
5083continue
5084fi
5085rm -f conftest.err conftest.$ac_ext
5086
5087 # OK, works on sane cases. Now check whether nonexistent headers
5088 # can be detected and how.
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090/* end confdefs.h. */
5091#include <ac_nonexistent.h>
5092_ACEOF
5093if ac_fn_c_try_cpp "$LINENO"; then :
5094 # Broken: success on invalid input.
5095continue
5096else
5097 # Passes both tests.
5098ac_preproc_ok=:
5099break
5100fi
5101rm -f conftest.err conftest.$ac_ext
5102
5103done
5104# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5105rm -f conftest.err conftest.$ac_ext
5106if $ac_preproc_ok; then :
5107
5108else
5109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5111as_fn_error "C preprocessor \"$CPP\" fails sanity check
5112See \`config.log' for more details." "$LINENO" 5; }
5113fi
5114
5115ac_ext=c
5116ac_cpp='$CPP $CPPFLAGS'
5117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120
5121
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5123$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5124if test "${ac_cv_path_GREP+set}" = set; then :
5125 $as_echo_n "(cached) " >&6
5126else
5127 if test -z "$GREP"; then
5128 ac_path_GREP_found=false
5129 # Loop through the user's path and test for each of PROGNAME-LIST
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5132do
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_prog in grep ggrep; do
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5138 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5139# Check for GNU ac_path_GREP and select it if it is found.
5140 # Check for GNU $ac_path_GREP
5141case `"$ac_path_GREP" --version 2>&1` in
5142*GNU*)
5143 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5144*)
5145 ac_count=0
5146 $as_echo_n 0123456789 >"conftest.in"
5147 while :
5148 do
5149 cat "conftest.in" "conftest.in" >"conftest.tmp"
5150 mv "conftest.tmp" "conftest.in"
5151 cp "conftest.in" "conftest.nl"
5152 $as_echo 'GREP' >> "conftest.nl"
5153 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5155 as_fn_arith $ac_count + 1 && ac_count=$as_val
5156 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5157 # Best one so far, save it but keep looking for a better one
5158 ac_cv_path_GREP="$ac_path_GREP"
5159 ac_path_GREP_max=$ac_count
5160 fi
5161 # 10*(2^10) chars as input seems more than enough
5162 test $ac_count -gt 10 && break
5163 done
5164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5165esac
5166
5167 $ac_path_GREP_found && break 3
5168 done
5169 done
5170 done
5171IFS=$as_save_IFS
5172 if test -z "$ac_cv_path_GREP"; then
5173 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5174 fi
5175else
5176 ac_cv_path_GREP=$GREP
5177fi
5178
5179fi
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5181$as_echo "$ac_cv_path_GREP" >&6; }
5182 GREP="$ac_cv_path_GREP"
5183
5184
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5186$as_echo_n "checking for egrep... " >&6; }
5187if test "${ac_cv_path_EGREP+set}" = set; then :
5188 $as_echo_n "(cached) " >&6
5189else
5190 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5191 then ac_cv_path_EGREP="$GREP -E"
5192 else
5193 if test -z "$EGREP"; then
5194 ac_path_EGREP_found=false
5195 # Loop through the user's path and test for each of PROGNAME-LIST
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5198do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_prog in egrep; do
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5204 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5205# Check for GNU ac_path_EGREP and select it if it is found.
5206 # Check for GNU $ac_path_EGREP
5207case `"$ac_path_EGREP" --version 2>&1` in
5208*GNU*)
5209 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5210*)
5211 ac_count=0
5212 $as_echo_n 0123456789 >"conftest.in"
5213 while :
5214 do
5215 cat "conftest.in" "conftest.in" >"conftest.tmp"
5216 mv "conftest.tmp" "conftest.in"
5217 cp "conftest.in" "conftest.nl"
5218 $as_echo 'EGREP' >> "conftest.nl"
5219 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5221 as_fn_arith $ac_count + 1 && ac_count=$as_val
5222 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5223 # Best one so far, save it but keep looking for a better one
5224 ac_cv_path_EGREP="$ac_path_EGREP"
5225 ac_path_EGREP_max=$ac_count
5226 fi
5227 # 10*(2^10) chars as input seems more than enough
5228 test $ac_count -gt 10 && break
5229 done
5230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5231esac
5232
5233 $ac_path_EGREP_found && break 3
5234 done
5235 done
5236 done
5237IFS=$as_save_IFS
5238 if test -z "$ac_cv_path_EGREP"; then
5239 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5240 fi
5241else
5242 ac_cv_path_EGREP=$EGREP
5243fi
5244
5245 fi
5246fi
5247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5248$as_echo "$ac_cv_path_EGREP" >&6; }
5249 EGREP="$ac_cv_path_EGREP"
5250
5251
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5253$as_echo_n "checking for ANSI C header files... " >&6; }
5254if test "${ac_cv_header_stdc+set}" = set; then :
5255 $as_echo_n "(cached) " >&6
5256else
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258/* end confdefs.h. */
5259#include <stdlib.h>
5260#include <stdarg.h>
5261#include <string.h>
5262#include <float.h>
5263
5264int
5265main ()
5266{
5267
5268 ;
5269 return 0;
5270}
5271_ACEOF
5272if ac_fn_c_try_compile "$LINENO"; then :
5273 ac_cv_header_stdc=yes
5274else
5275 ac_cv_header_stdc=no
5276fi
5277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278
5279if test $ac_cv_header_stdc = yes; then
5280 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282/* end confdefs.h. */
5283#include <string.h>
5284
5285_ACEOF
5286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5287 $EGREP "memchr" >/dev/null 2>&1; then :
5288
5289else
5290 ac_cv_header_stdc=no
5291fi
5292rm -f conftest*
5293
5294fi
5295
5296if test $ac_cv_header_stdc = yes; then
5297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299/* end confdefs.h. */
5300#include <stdlib.h>
5301
5302_ACEOF
5303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5304 $EGREP "free" >/dev/null 2>&1; then :
5305
5306else
5307 ac_cv_header_stdc=no
5308fi
5309rm -f conftest*
5310
5311fi
5312
5313if test $ac_cv_header_stdc = yes; then
5314 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5315 if test "$cross_compiling" = yes; then :
5316 :
5317else
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319/* end confdefs.h. */
5320#include <ctype.h>
5321#include <stdlib.h>
5322#if ((' ' & 0x0FF) == 0x020)
5323# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5324# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5325#else
5326# define ISLOWER(c) \
5327 (('a' <= (c) && (c) <= 'i') \
5328 || ('j' <= (c) && (c) <= 'r') \
5329 || ('s' <= (c) && (c) <= 'z'))
5330# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5331#endif
5332
5333#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5334int
5335main ()
5336{
5337 int i;
5338 for (i = 0; i < 256; i++)
5339 if (XOR (islower (i), ISLOWER (i))
5340 || toupper (i) != TOUPPER (i))
5341 return 2;
5342 return 0;
5343}
5344_ACEOF
5345if ac_fn_c_try_run "$LINENO"; then :
5346
5347else
5348 ac_cv_header_stdc=no
5349fi
5350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5351 conftest.$ac_objext conftest.beam conftest.$ac_ext
5352fi
5353
5354fi
5355fi
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5357$as_echo "$ac_cv_header_stdc" >&6; }
5358if test $ac_cv_header_stdc = yes; then
5359
5360$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5361
5362fi
5363
5364# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5365for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5366 inttypes.h stdint.h unistd.h
5367do :
5368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5369ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5370"
5371eval as_val=\$$as_ac_Header
5372 if test "x$as_val" = x""yes; then :
5373 cat >>confdefs.h <<_ACEOF
5374#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5375_ACEOF
5376
5377fi
5378
5379done
5380
5381
5382
5383 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5384if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5385 MINIX=yes
5386else
5387 MINIX=
5388fi
5389
5390
5391 if test "$MINIX" = yes; then
5392
5393$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5394
5395
5396$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5397
5398
5399$as_echo "#define _MINIX 1" >>confdefs.h
5400
5401 fi
5402
5403
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5405$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5406if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5407 $as_echo_n "(cached) " >&6
5408else
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410/* end confdefs.h. */
5411
5412# define __EXTENSIONS__ 1
5413 $ac_includes_default
5414int
5415main ()
5416{
5417
5418 ;
5419 return 0;
5420}
5421_ACEOF
5422if ac_fn_c_try_compile "$LINENO"; then :
5423 ac_cv_safe_to_define___extensions__=yes
5424else
5425 ac_cv_safe_to_define___extensions__=no
5426fi
5427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5428fi
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5430$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5431 test $ac_cv_safe_to_define___extensions__ = yes &&
5432 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5433
5434 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5435
5436 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5437
5438 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5439
5440 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5441
5442
5443test "$program_prefix" != NONE &&
5444 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5445# Use a double $ so make ignores it.
5446test "$program_suffix" != NONE &&
5447 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5448# Double any \ or $.
5449# By default was `s,x,x', remove it if useless.
5450ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5451program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5452
5453# Find a good install program. We prefer a C program (faster),
5454# so one script is as good as another. But avoid the broken or
5455# incompatible versions:
5456# SysV /etc/install, /usr/sbin/install
5457# SunOS /usr/etc/install
5458# IRIX /sbin/install
5459# AIX /bin/install
5460# AmigaOS /C/install, which installs bootblocks on floppy discs
5461# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5462# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5463# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464# OS/2's system install, which has a completely different semantic
5465# ./install, which can be erroneously created by make from ./install.sh.
5466# Reject install programs that cannot install multiple files.
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5468$as_echo_n "checking for a BSD-compatible install... " >&6; }
5469if test -z "$INSTALL"; then
5470if test "${ac_cv_path_install+set}" = set; then :
5471 $as_echo_n "(cached) " >&6
5472else
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474for as_dir in $PATH
5475do
5476 IFS=$as_save_IFS
5477 test -z "$as_dir" && as_dir=.
5478 # Account for people who put trailing slashes in PATH elements.
5479case $as_dir/ in #((
5480 ./ | .// | /[cC]/* | \
5481 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5482 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5483 /usr/ucb/* ) ;;
5484 *)
5485 # OSF1 and SCO ODT 3.0 have their own names for install.
5486 # Don't use installbsd from OSF since it installs stuff as root
5487 # by default.
5488 for ac_prog in ginstall scoinst install; do
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5491 if test $ac_prog = install &&
5492 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5493 # AIX install. It has an incompatible calling convention.
5494 :
5495 elif test $ac_prog = install &&
5496 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5497 # program-specific install script used by HP pwplus--don't use.
5498 :
5499 else
5500 rm -rf conftest.one conftest.two conftest.dir
5501 echo one > conftest.one
5502 echo two > conftest.two
5503 mkdir conftest.dir
5504 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5505 test -s conftest.one && test -s conftest.two &&
5506 test -s conftest.dir/conftest.one &&
5507 test -s conftest.dir/conftest.two
5508 then
5509 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5510 break 3
5511 fi
5512 fi
5513 fi
5514 done
5515 done
5516 ;;
5517esac
5518
5519 done
5520IFS=$as_save_IFS
5521
5522rm -rf conftest.one conftest.two conftest.dir
5523
5524fi
5525 if test "${ac_cv_path_install+set}" = set; then
5526 INSTALL=$ac_cv_path_install
5527 else
5528 # As a last resort, use the slow shell script. Don't cache a
5529 # value for INSTALL within a source directory, because that will
5530 # break other packages using the cache if that directory is
5531 # removed, or if the value is a relative name.
5532 INSTALL=$ac_install_sh
5533 fi
5534fi
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5536$as_echo "$INSTALL" >&6; }
5537
5538# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5539# It thinks the first close brace ends the variable substitution.
5540test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5541
5542test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5543
5544test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5545
5546rm -rf .tst 2>/dev/null
5547mkdir .tst 2>/dev/null
5548if test -d .tst; then
5549 am__leading_dot=.
5550else
5551 am__leading_dot=_
5552fi
5553rmdir .tst 2>/dev/null
5554
5555DEPDIR="${am__leading_dot}deps"
5556
5557case `pwd` in
5558 *\ * | *\ *)
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5560$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5561esac
5562
5563
5564
5565macro_version='2.2.7a'
5566macro_revision='1.3134'
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580ltmain="$ac_aux_dir/ltmain.sh"
5581
5582# Backslashify metacharacters that are still active within
5583# double-quoted strings.
5584sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5585
5586# Same as above, but do not quote variable references.
5587double_quote_subst='s/\(["`\\]\)/\\\1/g'
5588
5589# Sed substitution to delay expansion of an escaped shell variable in a
5590# double_quote_subst'ed string.
5591delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5592
5593# Sed substitution to delay expansion of an escaped single quote.
5594delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5595
5596# Sed substitution to avoid accidental globbing in evaled expressions
5597no_glob_subst='s/\*/\\\*/g'
5598
5599ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5600ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5601ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5602
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5604$as_echo_n "checking how to print strings... " >&6; }
5605# Test print first, because it will be a builtin if present.
5606if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5607 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5608 ECHO='print -r --'
5609elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5610 ECHO='printf %s\n'
5611else
5612 # Use this function as a fallback that always works.
5613 func_fallback_echo ()
5614 {
5615 eval 'cat <<_LTECHO_EOF
5616$1
5617_LTECHO_EOF'
5618 }
5619 ECHO='func_fallback_echo'
5620fi
5621
5622# func_echo_all arg...
5623# Invoke $ECHO with all args, space-separated.
5624func_echo_all ()
5625{
5626 $ECHO ""
5627}
5628
5629case "$ECHO" in
5630 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5631$as_echo "printf" >&6; } ;;
5632 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5633$as_echo "print -r" >&6; } ;;
5634 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5635$as_echo "cat" >&6; } ;;
5636esac
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5652$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5653if test "${ac_cv_path_SED+set}" = set; then :
5654 $as_echo_n "(cached) " >&6
5655else
5656 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5657 for ac_i in 1 2 3 4 5 6 7; do
5658 ac_script="$ac_script$as_nl$ac_script"
5659 done
5660 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5661 { ac_script=; unset ac_script;}
5662 if test -z "$SED"; then
5663 ac_path_SED_found=false
5664 # Loop through the user's path and test for each of PROGNAME-LIST
5665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666for as_dir in $PATH
5667do
5668 IFS=$as_save_IFS
5669 test -z "$as_dir" && as_dir=.
5670 for ac_prog in sed gsed; do
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5673 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5674# Check for GNU ac_path_SED and select it if it is found.
5675 # Check for GNU $ac_path_SED
5676case `"$ac_path_SED" --version 2>&1` in
5677*GNU*)
5678 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5679*)
5680 ac_count=0
5681 $as_echo_n 0123456789 >"conftest.in"
5682 while :
5683 do
5684 cat "conftest.in" "conftest.in" >"conftest.tmp"
5685 mv "conftest.tmp" "conftest.in"
5686 cp "conftest.in" "conftest.nl"
5687 $as_echo '' >> "conftest.nl"
5688 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5690 as_fn_arith $ac_count + 1 && ac_count=$as_val
5691 if test $ac_count -gt ${ac_path_SED_max-0}; then
5692 # Best one so far, save it but keep looking for a better one
5693 ac_cv_path_SED="$ac_path_SED"
5694 ac_path_SED_max=$ac_count
5695 fi
5696 # 10*(2^10) chars as input seems more than enough
5697 test $ac_count -gt 10 && break
5698 done
5699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5700esac
5701
5702 $ac_path_SED_found && break 3
5703 done
5704 done
5705 done
5706IFS=$as_save_IFS
5707 if test -z "$ac_cv_path_SED"; then
5708 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5709 fi
5710else
5711 ac_cv_path_SED=$SED
5712fi
5713
5714fi
5715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5716$as_echo "$ac_cv_path_SED" >&6; }
5717 SED="$ac_cv_path_SED"
5718 rm -f conftest.sed
5719
5720test -z "$SED" && SED=sed
5721Xsed="$SED -e 1s/^X//"
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5734$as_echo_n "checking for fgrep... " >&6; }
5735if test "${ac_cv_path_FGREP+set}" = set; then :
5736 $as_echo_n "(cached) " >&6
5737else
5738 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5739 then ac_cv_path_FGREP="$GREP -F"
5740 else
5741 if test -z "$FGREP"; then
5742 ac_path_FGREP_found=false
5743 # Loop through the user's path and test for each of PROGNAME-LIST
5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5746do
5747 IFS=$as_save_IFS
5748 test -z "$as_dir" && as_dir=.
5749 for ac_prog in fgrep; do
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5752 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5753# Check for GNU ac_path_FGREP and select it if it is found.
5754 # Check for GNU $ac_path_FGREP
5755case `"$ac_path_FGREP" --version 2>&1` in
5756*GNU*)
5757 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5758*)
5759 ac_count=0
5760 $as_echo_n 0123456789 >"conftest.in"
5761 while :
5762 do
5763 cat "conftest.in" "conftest.in" >"conftest.tmp"
5764 mv "conftest.tmp" "conftest.in"
5765 cp "conftest.in" "conftest.nl"
5766 $as_echo 'FGREP' >> "conftest.nl"
5767 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5769 as_fn_arith $ac_count + 1 && ac_count=$as_val
5770 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5771 # Best one so far, save it but keep looking for a better one
5772 ac_cv_path_FGREP="$ac_path_FGREP"
5773 ac_path_FGREP_max=$ac_count
5774 fi
5775 # 10*(2^10) chars as input seems more than enough
5776 test $ac_count -gt 10 && break
5777 done
5778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5779esac
5780
5781 $ac_path_FGREP_found && break 3
5782 done
5783 done
5784 done
5785IFS=$as_save_IFS
5786 if test -z "$ac_cv_path_FGREP"; then
5787 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5788 fi
5789else
5790 ac_cv_path_FGREP=$FGREP
5791fi
5792
5793 fi
5794fi
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5796$as_echo "$ac_cv_path_FGREP" >&6; }
5797 FGREP="$ac_cv_path_FGREP"
5798
5799
5800test -z "$GREP" && GREP=grep
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820# Check whether --with-gnu-ld was given.
5821if test "${with_gnu_ld+set}" = set; then :
5822 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5823else
5824 with_gnu_ld=no
5825fi
5826
5827ac_prog=ld
5828if test "$GCC" = yes; then
5829 # Check if gcc -print-prog-name=ld gives a path.
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5831$as_echo_n "checking for ld used by $CC... " >&6; }
5832 case $host in
5833 *-*-mingw*)
5834 # gcc leaves a trailing carriage return which upsets mingw
5835 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5836 *)
5837 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5838 esac
5839 case $ac_prog in
5840 # Accept absolute paths.
5841 [\\/]* | ?:[\\/]*)
5842 re_direlt='/[^/][^/]*/\.\./'
5843 # Canonicalize the pathname of ld
5844 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5845 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5846 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5847 done
5848 test -z "$LD" && LD="$ac_prog"
5849 ;;
5850 "")
5851 # If it fails, then pretend we aren't using GCC.
5852 ac_prog=ld
5853 ;;
5854 *)
5855 # If it is relative, then search for the first ld in PATH.
5856 with_gnu_ld=unknown
5857 ;;
5858 esac
5859elif test "$with_gnu_ld" = yes; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5861$as_echo_n "checking for GNU ld... " >&6; }
5862else
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5864$as_echo_n "checking for non-GNU ld... " >&6; }
5865fi
5866if test "${lt_cv_path_LD+set}" = set; then :
5867 $as_echo_n "(cached) " >&6
5868else
5869 if test -z "$LD"; then
5870 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5871 for ac_dir in $PATH; do
5872 IFS="$lt_save_ifs"
5873 test -z "$ac_dir" && ac_dir=.
5874 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5875 lt_cv_path_LD="$ac_dir/$ac_prog"
5876 # Check to see if the program is GNU ld. I'd rather use --version,
5877 # but apparently some variants of GNU ld only accept -v.
5878 # Break only if it was the GNU/non-GNU ld that we prefer.
5879 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5880 *GNU* | *'with BFD'*)
5881 test "$with_gnu_ld" != no && break
5882 ;;
5883 *)
5884 test "$with_gnu_ld" != yes && break
5885 ;;
5886 esac
5887 fi
5888 done
5889 IFS="$lt_save_ifs"
5890else
5891 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5892fi
5893fi
5894
5895LD="$lt_cv_path_LD"
5896if test -n "$LD"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5898$as_echo "$LD" >&6; }
5899else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901$as_echo "no" >&6; }
5902fi
5903test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5905$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5906if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5907 $as_echo_n "(cached) " >&6
5908else
5909 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5910case `$LD -v 2>&1 </dev/null` in
5911*GNU* | *'with BFD'*)
5912 lt_cv_prog_gnu_ld=yes
5913 ;;
5914*)
5915 lt_cv_prog_gnu_ld=no
5916 ;;
5917esac
5918fi
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5920$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5921with_gnu_ld=$lt_cv_prog_gnu_ld
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5932$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5933if test "${lt_cv_path_NM+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5935else
5936 if test -n "$NM"; then
5937 # Let the user override the test.
5938 lt_cv_path_NM="$NM"
5939else
5940 lt_nm_to_check="${ac_tool_prefix}nm"
5941 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5942 lt_nm_to_check="$lt_nm_to_check nm"
5943 fi
5944 for lt_tmp_nm in $lt_nm_to_check; do
5945 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5946 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5947 IFS="$lt_save_ifs"
5948 test -z "$ac_dir" && ac_dir=.
5949 tmp_nm="$ac_dir/$lt_tmp_nm"
5950 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5951 # Check to see if the nm accepts a BSD-compat flag.
5952 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5953 # nm: unknown option "B" ignored
5954 # Tru64's nm complains that /dev/null is an invalid object file
5955 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5956 */dev/null* | *'Invalid file or object type'*)
5957 lt_cv_path_NM="$tmp_nm -B"
5958 break
5959 ;;
5960 *)
5961 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5962 */dev/null*)
5963 lt_cv_path_NM="$tmp_nm -p"
5964 break
5965 ;;
5966 *)
5967 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5968 continue # so that we can try to find one that supports BSD flags
5969 ;;
5970 esac
5971 ;;
5972 esac
5973 fi
5974 done
5975 IFS="$lt_save_ifs"
5976 done
5977 : ${lt_cv_path_NM=no}
5978fi
5979fi
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5981$as_echo "$lt_cv_path_NM" >&6; }
5982if test "$lt_cv_path_NM" != "no"; then
5983 NM="$lt_cv_path_NM"
5984else
5985 # Didn't find any BSD compatible name lister, look for dumpbin.
5986 if test -n "$DUMPBIN"; then :
5987 # Let the user override the test.
5988 else
5989 if test -n "$ac_tool_prefix"; then
5990 for ac_prog in dumpbin "link -dump"
5991 do
5992 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5993set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995$as_echo_n "checking for $ac_word... " >&6; }
5996if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5997 $as_echo_n "(cached) " >&6
5998else
5999 if test -n "$DUMPBIN"; then
6000 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6001else
6002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003for as_dir in $PATH
6004do
6005 IFS=$as_save_IFS
6006 test -z "$as_dir" && as_dir=.
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6009 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 break 2
6012 fi
6013done
6014 done
6015IFS=$as_save_IFS
6016
6017fi
6018fi
6019DUMPBIN=$ac_cv_prog_DUMPBIN
6020if test -n "$DUMPBIN"; then
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6022$as_echo "$DUMPBIN" >&6; }
6023else
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025$as_echo "no" >&6; }
6026fi
6027
6028
6029 test -n "$DUMPBIN" && break
6030 done
6031fi
6032if test -z "$DUMPBIN"; then
6033 ac_ct_DUMPBIN=$DUMPBIN
6034 for ac_prog in dumpbin "link -dump"
6035do
6036 # Extract the first word of "$ac_prog", so it can be a program name with args.
6037set dummy $ac_prog; ac_word=$2
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6039$as_echo_n "checking for $ac_word... " >&6; }
6040if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6041 $as_echo_n "(cached) " >&6
6042else
6043 if test -n "$ac_ct_DUMPBIN"; then
6044 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6045else
6046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047for as_dir in $PATH
6048do
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6053 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 break 2
6056 fi
6057done
6058 done
6059IFS=$as_save_IFS
6060
6061fi
6062fi
6063ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6064if test -n "$ac_ct_DUMPBIN"; then
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6066$as_echo "$ac_ct_DUMPBIN" >&6; }
6067else
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069$as_echo "no" >&6; }
6070fi
6071
6072
6073 test -n "$ac_ct_DUMPBIN" && break
6074done
6075
6076 if test "x$ac_ct_DUMPBIN" = x; then
6077 DUMPBIN=":"
6078 else
6079 case $cross_compiling:$ac_tool_warned in
6080yes:)
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6083ac_tool_warned=yes ;;
6084esac
6085 DUMPBIN=$ac_ct_DUMPBIN
6086 fi
6087fi
6088
6089 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6090 *COFF*)
6091 DUMPBIN="$DUMPBIN -symbols"
6092 ;;
6093 *)
6094 DUMPBIN=:
6095 ;;
6096 esac
6097 fi
6098
6099 if test "$DUMPBIN" != ":"; then
6100 NM="$DUMPBIN"
6101 fi
6102fi
6103test -z "$NM" && NM=nm
6104
6105
6106
6107
6108
6109
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6111$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6112if test "${lt_cv_nm_interface+set}" = set; then :
6113 $as_echo_n "(cached) " >&6
6114else
6115 lt_cv_nm_interface="BSD nm"
6116 echo "int some_variable = 0;" > conftest.$ac_ext
6117 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6118 (eval "$ac_compile" 2>conftest.err)
6119 cat conftest.err >&5
6120 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6121 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6122 cat conftest.err >&5
6123 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6124 cat conftest.out >&5
6125 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6126 lt_cv_nm_interface="MS dumpbin"
6127 fi
6128 rm -f conftest*
6129fi
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6131$as_echo "$lt_cv_nm_interface" >&6; }
6132
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6134$as_echo_n "checking whether ln -s works... " >&6; }
6135LN_S=$as_ln_s
6136if test "$LN_S" = "ln -s"; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6138$as_echo "yes" >&6; }
6139else
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6141$as_echo "no, using $LN_S" >&6; }
6142fi
6143
6144# find the maximum length of command line arguments
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6146$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6147if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6149else
6150 i=0
6151 teststring="ABCD"
6152
6153 case $build_os in
6154 msdosdjgpp*)
6155 # On DJGPP, this test can blow up pretty badly due to problems in libc
6156 # (any single argument exceeding 2000 bytes causes a buffer overrun
6157 # during glob expansion). Even if it were fixed, the result of this
6158 # check would be larger than it should be.
6159 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6160 ;;
6161
6162 gnu*)
6163 # Under GNU Hurd, this test is not required because there is
6164 # no limit to the length of command line arguments.
6165 # Libtool will interpret -1 as no limit whatsoever
6166 lt_cv_sys_max_cmd_len=-1;
6167 ;;
6168
6169 cygwin* | mingw* | cegcc*)
6170 # On Win9x/ME, this test blows up -- it succeeds, but takes
6171 # about 5 minutes as the teststring grows exponentially.
6172 # Worse, since 9x/ME are not pre-emptively multitasking,
6173 # you end up with a "frozen" computer, even though with patience
6174 # the test eventually succeeds (with a max line length of 256k).
6175 # Instead, let's just punt: use the minimum linelength reported by
6176 # all of the supported platforms: 8192 (on NT/2K/XP).
6177 lt_cv_sys_max_cmd_len=8192;
6178 ;;
6179
6180 mint*)
6181 # On MiNT this can take a long time and run out of memory.
6182 lt_cv_sys_max_cmd_len=8192;
6183 ;;
6184
6185 amigaos*)
6186 # On AmigaOS with pdksh, this test takes hours, literally.
6187 # So we just punt and use a minimum line length of 8192.
6188 lt_cv_sys_max_cmd_len=8192;
6189 ;;
6190
6191 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6192 # This has been around since 386BSD, at least. Likely further.
6193 if test -x /sbin/sysctl; then
6194 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6195 elif test -x /usr/sbin/sysctl; then
6196 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6197 else
6198 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6199 fi
6200 # And add a safety zone
6201 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6202 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6203 ;;
6204
6205 interix*)
6206 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6207 lt_cv_sys_max_cmd_len=196608
6208 ;;
6209
6210 osf*)
6211 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6212 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6213 # nice to cause kernel panics so lets avoid the loop below.
6214 # First set a reasonable default.
6215 lt_cv_sys_max_cmd_len=16384
6216 #
6217 if test -x /sbin/sysconfig; then
6218 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6219 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6220 esac
6221 fi
6222 ;;
6223 sco3.2v5*)
6224 lt_cv_sys_max_cmd_len=102400
6225 ;;
6226 sysv5* | sco5v6* | sysv4.2uw2*)
6227 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6228 if test -n "$kargmax"; then
6229 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6230 else
6231 lt_cv_sys_max_cmd_len=32768
6232 fi
6233 ;;
6234 *)
6235 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6236 if test -n "$lt_cv_sys_max_cmd_len"; then
6237 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6238 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6239 else
6240 # Make teststring a little bigger before we do anything with it.
6241 # a 1K string should be a reasonable start.
6242 for i in 1 2 3 4 5 6 7 8 ; do
6243 teststring=$teststring$teststring
6244 done
6245 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6246 # If test is not a shell built-in, we'll probably end up computing a
6247 # maximum length that is only half of the actual maximum length, but
6248 # we can't tell.
6249 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6250 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6251 test $i != 17 # 1/2 MB should be enough
6252 do
6253 i=`expr $i + 1`
6254 teststring=$teststring$teststring
6255 done
6256 # Only check the string length outside the loop.
6257 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6258 teststring=
6259 # Add a significant safety factor because C++ compilers can tack on
6260 # massive amounts of additional arguments before passing them to the
6261 # linker. It appears as though 1/2 is a usable value.
6262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6263 fi
6264 ;;
6265 esac
6266
6267fi
6268
6269if test -n $lt_cv_sys_max_cmd_len ; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6271$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6272else
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6274$as_echo "none" >&6; }
6275fi
6276max_cmd_len=$lt_cv_sys_max_cmd_len
6277
6278
6279
6280
6281
6282
6283: ${CP="cp -f"}
6284: ${MV="mv -f"}
6285: ${RM="rm -f"}
6286
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6288$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6289# Try some XSI features
6290xsi_shell=no
6291( _lt_dummy="a/b/c"
6292 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6293 = c,a/b,, \
6294 && eval 'test $(( 1 + 1 )) -eq 2 \
6295 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6296 && xsi_shell=yes
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6298$as_echo "$xsi_shell" >&6; }
6299
6300
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6302$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6303lt_shell_append=no
6304( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6305 >/dev/null 2>&1 \
6306 && lt_shell_append=yes
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6308$as_echo "$lt_shell_append" >&6; }
6309
6310
6311if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6312 lt_unset=unset
6313else
6314 lt_unset=false
6315fi
6316
6317
6318
6319
6320
6321# test EBCDIC or ASCII
6322case `echo X|tr X '\101'` in
6323 A) # ASCII based system
6324 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6325 lt_SP2NL='tr \040 \012'
6326 lt_NL2SP='tr \015\012 \040\040'
6327 ;;
6328 *) # EBCDIC based system
6329 lt_SP2NL='tr \100 \n'
6330 lt_NL2SP='tr \r\n \100\100'
6331 ;;
6332esac
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6343$as_echo_n "checking for $LD option to reload object files... " >&6; }
6344if test "${lt_cv_ld_reload_flag+set}" = set; then :
6345 $as_echo_n "(cached) " >&6
6346else
6347 lt_cv_ld_reload_flag='-r'
6348fi
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6350$as_echo "$lt_cv_ld_reload_flag" >&6; }
6351reload_flag=$lt_cv_ld_reload_flag
6352case $reload_flag in
6353"" | " "*) ;;
6354*) reload_flag=" $reload_flag" ;;
6355esac
6356reload_cmds='$LD$reload_flag -o $output$reload_objs'
6357case $host_os in
6358 darwin*)
6359 if test "$GCC" = yes; then
6360 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6361 else
6362 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6363 fi
6364 ;;
6365esac
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375if test -n "$ac_tool_prefix"; then
6376 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6377set dummy ${ac_tool_prefix}objdump; ac_word=$2
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379$as_echo_n "checking for $ac_word... " >&6; }
6380if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6381 $as_echo_n "(cached) " >&6
6382else
6383 if test -n "$OBJDUMP"; then
6384 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6385else
6386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387for as_dir in $PATH
6388do
6389 IFS=$as_save_IFS
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6393 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 break 2
6396 fi
6397done
6398 done
6399IFS=$as_save_IFS
6400
6401fi
6402fi
6403OBJDUMP=$ac_cv_prog_OBJDUMP
6404if test -n "$OBJDUMP"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6406$as_echo "$OBJDUMP" >&6; }
6407else
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409$as_echo "no" >&6; }
6410fi
6411
6412
6413fi
6414if test -z "$ac_cv_prog_OBJDUMP"; then
6415 ac_ct_OBJDUMP=$OBJDUMP
6416 # Extract the first word of "objdump", so it can be a program name with args.
6417set dummy objdump; ac_word=$2
6418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419$as_echo_n "checking for $ac_word... " >&6; }
6420if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6421 $as_echo_n "(cached) " >&6
6422else
6423 if test -n "$ac_ct_OBJDUMP"; then
6424 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6425else
6426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427for as_dir in $PATH
6428do
6429 IFS=$as_save_IFS
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6433 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 break 2
6436 fi
6437done
6438 done
6439IFS=$as_save_IFS
6440
6441fi
6442fi
6443ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6444if test -n "$ac_ct_OBJDUMP"; then
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6446$as_echo "$ac_ct_OBJDUMP" >&6; }
6447else
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449$as_echo "no" >&6; }
6450fi
6451
6452 if test "x$ac_ct_OBJDUMP" = x; then
6453 OBJDUMP="false"
6454 else
6455 case $cross_compiling:$ac_tool_warned in
6456yes:)
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6459ac_tool_warned=yes ;;
6460esac
6461 OBJDUMP=$ac_ct_OBJDUMP
6462 fi
6463else
6464 OBJDUMP="$ac_cv_prog_OBJDUMP"
6465fi
6466
6467test -z "$OBJDUMP" && OBJDUMP=objdump
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6478$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6479if test "${lt_cv_deplibs_check_method+set}" = set; then :
6480 $as_echo_n "(cached) " >&6
6481else
6482 lt_cv_file_magic_cmd='$MAGIC_CMD'
6483lt_cv_file_magic_test_file=
6484lt_cv_deplibs_check_method='unknown'
6485# Need to set the preceding variable on all platforms that support
6486# interlibrary dependencies.
6487# 'none' -- dependencies not supported.
6488# `unknown' -- same as none, but documents that we really don't know.
6489# 'pass_all' -- all dependencies passed with no checks.
6490# 'test_compile' -- check by making test program.
6491# 'file_magic [[regex]]' -- check by looking for files in library path
6492# which responds to the $file_magic_cmd with a given extended regex.
6493# If you have `file' or equivalent on your system and you're not sure
6494# whether `pass_all' will *always* work, you probably want this one.
6495
6496case $host_os in
6497aix[4-9]*)
6498 lt_cv_deplibs_check_method=pass_all
6499 ;;
6500
6501beos*)
6502 lt_cv_deplibs_check_method=pass_all
6503 ;;
6504
6505bsdi[45]*)
6506 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6507 lt_cv_file_magic_cmd='/usr/bin/file -L'
6508 lt_cv_file_magic_test_file=/shlib/libc.so
6509 ;;
6510
6511cygwin*)
6512 # func_win32_libid is a shell function defined in ltmain.sh
6513 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6514 lt_cv_file_magic_cmd='func_win32_libid'
6515 ;;
6516
6517mingw* | pw32*)
6518 # Base MSYS/MinGW do not provide the 'file' command needed by
6519 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6520 # unless we find 'file', for example because we are cross-compiling.
6521 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6522 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6523 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6524 lt_cv_file_magic_cmd='func_win32_libid'
6525 else
6526 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6527 lt_cv_file_magic_cmd='$OBJDUMP -f'
6528 fi
6529 ;;
6530
6531cegcc*)
6532 # use the weaker test based on 'objdump'. See mingw*.
6533 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6534 lt_cv_file_magic_cmd='$OBJDUMP -f'
6535 ;;
6536
6537darwin* | rhapsody*)
6538 lt_cv_deplibs_check_method=pass_all
6539 ;;
6540
6541freebsd* | dragonfly*)
6542 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6543 case $host_cpu in
6544 i*86 )
6545 # Not sure whether the presence of OpenBSD here was a mistake.
6546 # Let's accept both of them until this is cleared up.
6547 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6548 lt_cv_file_magic_cmd=/usr/bin/file
6549 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6550 ;;
6551 esac
6552 else
6553 lt_cv_deplibs_check_method=pass_all
6554 fi
6555 ;;
6556
6557gnu*)
6558 lt_cv_deplibs_check_method=pass_all
6559 ;;
6560
6561haiku*)
6562 lt_cv_deplibs_check_method=pass_all
6563 ;;
6564
6565hpux10.20* | hpux11*)
6566 lt_cv_file_magic_cmd=/usr/bin/file
6567 case $host_cpu in
6568 ia64*)
6569 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6570 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6571 ;;
6572 hppa*64*)
6573 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]'
6574 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6575 ;;
6576 *)
6577 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6578 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6579 ;;
6580 esac
6581 ;;
6582
6583interix[3-9]*)
6584 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6585 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6586 ;;
6587
6588irix5* | irix6* | nonstopux*)
6589 case $LD in
6590 *-32|*"-32 ") libmagic=32-bit;;
6591 *-n32|*"-n32 ") libmagic=N32;;
6592 *-64|*"-64 ") libmagic=64-bit;;
6593 *) libmagic=never-match;;
6594 esac
6595 lt_cv_deplibs_check_method=pass_all
6596 ;;
6597
6598# This must be Linux ELF.
6599linux* | k*bsd*-gnu | kopensolaris*-gnu)
6600 lt_cv_deplibs_check_method=pass_all
6601 ;;
6602
6603netbsd*)
6604 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6606 else
6607 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6608 fi
6609 ;;
6610
6611newos6*)
6612 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6613 lt_cv_file_magic_cmd=/usr/bin/file
6614 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6615 ;;
6616
6617*nto* | *qnx*)
6618 lt_cv_deplibs_check_method=pass_all
6619 ;;
6620
6621openbsd*)
6622 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6624 else
6625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6626 fi
6627 ;;
6628
6629osf3* | osf4* | osf5*)
6630 lt_cv_deplibs_check_method=pass_all
6631 ;;
6632
6633rdos*)
6634 lt_cv_deplibs_check_method=pass_all
6635 ;;
6636
6637solaris*)
6638 lt_cv_deplibs_check_method=pass_all
6639 ;;
6640
6641sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6642 lt_cv_deplibs_check_method=pass_all
6643 ;;
6644
6645sysv4 | sysv4.3*)
6646 case $host_vendor in
6647 motorola)
6648 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]'
6649 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6650 ;;
6651 ncr)
6652 lt_cv_deplibs_check_method=pass_all
6653 ;;
6654 sequent)
6655 lt_cv_file_magic_cmd='/bin/file'
6656 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6657 ;;
6658 sni)
6659 lt_cv_file_magic_cmd='/bin/file'
6660 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6661 lt_cv_file_magic_test_file=/lib/libc.so
6662 ;;
6663 siemens)
6664 lt_cv_deplibs_check_method=pass_all
6665 ;;
6666 pc)
6667 lt_cv_deplibs_check_method=pass_all
6668 ;;
6669 esac
6670 ;;
6671
6672tpf*)
6673 lt_cv_deplibs_check_method=pass_all
6674 ;;
6675esac
6676
6677fi
6678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6679$as_echo "$lt_cv_deplibs_check_method" >&6; }
6680file_magic_cmd=$lt_cv_file_magic_cmd
6681deplibs_check_method=$lt_cv_deplibs_check_method
6682test -z "$deplibs_check_method" && deplibs_check_method=unknown
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695if test -n "$ac_tool_prefix"; then
6696 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6697set dummy ${ac_tool_prefix}ar; ac_word=$2
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699$as_echo_n "checking for $ac_word... " >&6; }
6700if test "${ac_cv_prog_AR+set}" = set; then :
6701 $as_echo_n "(cached) " >&6
6702else
6703 if test -n "$AR"; then
6704 ac_cv_prog_AR="$AR" # Let the user override the test.
6705else
6706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707for as_dir in $PATH
6708do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713 ac_cv_prog_AR="${ac_tool_prefix}ar"
6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6716 fi
6717done
6718 done
6719IFS=$as_save_IFS
6720
6721fi
6722fi
6723AR=$ac_cv_prog_AR
6724if test -n "$AR"; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6726$as_echo "$AR" >&6; }
6727else
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729$as_echo "no" >&6; }
6730fi
6731
6732
6733fi
6734if test -z "$ac_cv_prog_AR"; then
6735 ac_ct_AR=$AR
6736 # Extract the first word of "ar", so it can be a program name with args.
6737set dummy ar; ac_word=$2
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6739$as_echo_n "checking for $ac_word... " >&6; }
6740if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6741 $as_echo_n "(cached) " >&6
6742else
6743 if test -n "$ac_ct_AR"; then
6744 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6745else
6746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747for as_dir in $PATH
6748do
6749 IFS=$as_save_IFS
6750 test -z "$as_dir" && as_dir=.
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6753 ac_cv_prog_ac_ct_AR="ar"
6754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 break 2
6756 fi
6757done
6758 done
6759IFS=$as_save_IFS
6760
6761fi
6762fi
6763ac_ct_AR=$ac_cv_prog_ac_ct_AR
6764if test -n "$ac_ct_AR"; then
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6766$as_echo "$ac_ct_AR" >&6; }
6767else
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769$as_echo "no" >&6; }
6770fi
6771
6772 if test "x$ac_ct_AR" = x; then
6773 AR="false"
6774 else
6775 case $cross_compiling:$ac_tool_warned in
6776yes:)
6777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6779ac_tool_warned=yes ;;
6780esac
6781 AR=$ac_ct_AR
6782 fi
6783else
6784 AR="$ac_cv_prog_AR"
6785fi
6786
6787test -z "$AR" && AR=ar
6788test -z "$AR_FLAGS" && AR_FLAGS=cru
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800if test -n "$ac_tool_prefix"; then
6801 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6802set dummy ${ac_tool_prefix}strip; ac_word=$2
6803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804$as_echo_n "checking for $ac_word... " >&6; }
6805if test "${ac_cv_prog_STRIP+set}" = set; then :
6806 $as_echo_n "(cached) " >&6
6807else
6808 if test -n "$STRIP"; then
6809 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6810else
6811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812for as_dir in $PATH
6813do
6814 IFS=$as_save_IFS
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6818 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 break 2
6821 fi
6822done
6823 done
6824IFS=$as_save_IFS
6825
6826fi
6827fi
6828STRIP=$ac_cv_prog_STRIP
6829if test -n "$STRIP"; then
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6831$as_echo "$STRIP" >&6; }
6832else
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834$as_echo "no" >&6; }
6835fi
6836
6837
6838fi
6839if test -z "$ac_cv_prog_STRIP"; then
6840 ac_ct_STRIP=$STRIP
6841 # Extract the first word of "strip", so it can be a program name with args.
6842set dummy strip; ac_word=$2
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844$as_echo_n "checking for $ac_word... " >&6; }
6845if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6846 $as_echo_n "(cached) " >&6
6847else
6848 if test -n "$ac_ct_STRIP"; then
6849 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6850else
6851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH
6853do
6854 IFS=$as_save_IFS
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6858 ac_cv_prog_ac_ct_STRIP="strip"
6859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 break 2
6861 fi
6862done
6863 done
6864IFS=$as_save_IFS
6865
6866fi
6867fi
6868ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6869if test -n "$ac_ct_STRIP"; then
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6871$as_echo "$ac_ct_STRIP" >&6; }
6872else
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874$as_echo "no" >&6; }
6875fi
6876
6877 if test "x$ac_ct_STRIP" = x; then
6878 STRIP=":"
6879 else
6880 case $cross_compiling:$ac_tool_warned in
6881yes:)
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6884ac_tool_warned=yes ;;
6885esac
6886 STRIP=$ac_ct_STRIP
6887 fi
6888else
6889 STRIP="$ac_cv_prog_STRIP"
6890fi
6891
6892test -z "$STRIP" && STRIP=:
6893
6894
6895
6896
6897
6898
6899if test -n "$ac_tool_prefix"; then
6900 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6901set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903$as_echo_n "checking for $ac_word... " >&6; }
6904if test "${ac_cv_prog_RANLIB+set}" = set; then :
6905 $as_echo_n "(cached) " >&6
6906else
6907 if test -n "$RANLIB"; then
6908 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6909else
6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6920 fi
6921done
6922 done
6923IFS=$as_save_IFS
6924
6925fi
6926fi
6927RANLIB=$ac_cv_prog_RANLIB
6928if test -n "$RANLIB"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6930$as_echo "$RANLIB" >&6; }
6931else
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933$as_echo "no" >&6; }
6934fi
6935
6936
6937fi
6938if test -z "$ac_cv_prog_RANLIB"; then
6939 ac_ct_RANLIB=$RANLIB
6940 # Extract the first word of "ranlib", so it can be a program name with args.
6941set dummy ranlib; ac_word=$2
6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943$as_echo_n "checking for $ac_word... " >&6; }
6944if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6945 $as_echo_n "(cached) " >&6
6946else
6947 if test -n "$ac_ct_RANLIB"; then
6948 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6949else
6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6957 ac_cv_prog_ac_ct_RANLIB="ranlib"
6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 break 2
6960 fi
6961done
6962 done
6963IFS=$as_save_IFS
6964
6965fi
6966fi
6967ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6968if test -n "$ac_ct_RANLIB"; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6970$as_echo "$ac_ct_RANLIB" >&6; }
6971else
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973$as_echo "no" >&6; }
6974fi
6975
6976 if test "x$ac_ct_RANLIB" = x; then
6977 RANLIB=":"
6978 else
6979 case $cross_compiling:$ac_tool_warned in
6980yes:)
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6983ac_tool_warned=yes ;;
6984esac
6985 RANLIB=$ac_ct_RANLIB
6986 fi
6987else
6988 RANLIB="$ac_cv_prog_RANLIB"
6989fi
6990
6991test -z "$RANLIB" && RANLIB=:
6992
6993
6994
6995
6996
6997
6998# Determine commands to create old-style static archives.
6999old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7000old_postinstall_cmds='chmod 644 $oldlib'
7001old_postuninstall_cmds=
7002
7003if test -n "$RANLIB"; then
7004 case $host_os in
7005 openbsd*)
7006 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7007 ;;
7008 *)
7009 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7010 ;;
7011 esac
7012 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7013fi
7014
7015case $host_os in
7016 darwin*)
7017 lock_old_archive_extraction=yes ;;
7018 *)
7019 lock_old_archive_extraction=no ;;
7020esac
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042for ac_prog in gawk mawk nawk awk
7043do
7044 # Extract the first word of "$ac_prog", so it can be a program name with args.
7045set dummy $ac_prog; ac_word=$2
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7047$as_echo_n "checking for $ac_word... " >&6; }
7048if test "${ac_cv_prog_AWK+set}" = set; then :
7049 $as_echo_n "(cached) " >&6
7050else
7051 if test -n "$AWK"; then
7052 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7053else
7054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055for as_dir in $PATH
7056do
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_prog_AWK="$ac_prog"
7062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7064 fi
7065done
7066 done
7067IFS=$as_save_IFS
7068
7069fi
7070fi
7071AWK=$ac_cv_prog_AWK
7072if test -n "$AWK"; then
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7074$as_echo "$AWK" >&6; }
7075else
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077$as_echo "no" >&6; }
7078fi
7079
7080
7081 test -n "$AWK" && break
7082done
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102# If no C compiler was specified, use CC.
7103LTCC=${LTCC-"$CC"}
7104
7105# If no C compiler flags were specified, use CFLAGS.
7106LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7107
7108# Allow CC to be a program name with arguments.
7109compiler=$CC
7110
7111
7112# Check for command to grab the raw symbol name followed by C symbol from nm.
7113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7114$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7115if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7116 $as_echo_n "(cached) " >&6
7117else
7118
7119# These are sane defaults that work on at least a few old systems.
7120# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7121
7122# Character class describing NM global symbol codes.
7123symcode='[BCDEGRST]'
7124
7125# Regexp to match symbols that can be accessed directly from C.
7126sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7127
7128# Define system-specific variables.
7129case $host_os in
7130aix*)
7131 symcode='[BCDT]'
7132 ;;
7133cygwin* | mingw* | pw32* | cegcc*)
7134 symcode='[ABCDGISTW]'
7135 ;;
7136hpux*)
7137 if test "$host_cpu" = ia64; then
7138 symcode='[ABCDEGRST]'
7139 fi
7140 ;;
7141irix* | nonstopux*)
7142 symcode='[BCDEGRST]'
7143 ;;
7144osf*)
7145 symcode='[BCDEGQRST]'
7146 ;;
7147solaris*)
7148 symcode='[BDRT]'
7149 ;;
7150sco3.2v5*)
7151 symcode='[DT]'
7152 ;;
7153sysv4.2uw2*)
7154 symcode='[DT]'
7155 ;;
7156sysv5* | sco5v6* | unixware* | OpenUNIX*)
7157 symcode='[ABDT]'
7158 ;;
7159sysv4)
7160 symcode='[DFNSTU]'
7161 ;;
7162esac
7163
7164# If we're using GNU nm, then use its standard symbol codes.
7165case `$NM -V 2>&1` in
7166*GNU* | *'with BFD'*)
7167 symcode='[ABCDGIRSTW]' ;;
7168esac
7169
7170# Transform an extracted symbol line into a proper C declaration.
7171# Some systems (esp. on ia64) link data and code symbols differently,
7172# so use this general approach.
7173lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7174
7175# Transform an extracted symbol line into symbol name and symbol address
7176lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7177lt_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'"
7178
7179# Handle CRLF in mingw tool chain
7180opt_cr=
7181case $build_os in
7182mingw*)
7183 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7184 ;;
7185esac
7186
7187# Try without a prefix underscore, then with it.
7188for ac_symprfx in "" "_"; do
7189
7190 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7191 symxfrm="\\1 $ac_symprfx\\2 \\2"
7192
7193 # Write the raw and C identifiers.
7194 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7195 # Fake it for dumpbin and say T for any non-static function
7196 # and D for any global variable.
7197 # Also find C++ and __fastcall symbols from MSVC++,
7198 # which start with @ or ?.
7199 lt_cv_sys_global_symbol_pipe="$AWK '"\
7200" {last_section=section; section=\$ 3};"\
7201" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7202" \$ 0!~/External *\|/{next};"\
7203" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7204" {if(hide[section]) next};"\
7205" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7206" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7207" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7208" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7209" ' prfx=^$ac_symprfx"
7210 else
7211 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7212 fi
7213
7214 # Check to see that the pipe works correctly.
7215 pipe_works=no
7216
7217 rm -f conftest*
7218 cat > conftest.$ac_ext <<_LT_EOF
7219#ifdef __cplusplus
7220extern "C" {
7221#endif
7222char nm_test_var;
7223void nm_test_func(void);
7224void nm_test_func(void){}
7225#ifdef __cplusplus
7226}
7227#endif
7228int main(){nm_test_var='a';nm_test_func();return(0);}
7229_LT_EOF
7230
7231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7232 (eval $ac_compile) 2>&5
7233 ac_status=$?
7234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7235 test $ac_status = 0; }; then
7236 # Now try to grab the symbols.
7237 nlist=conftest.nm
7238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7239 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7240 ac_status=$?
7241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7242 test $ac_status = 0; } && test -s "$nlist"; then
7243 # Try sorting and uniquifying the output.
7244 if sort "$nlist" | uniq > "$nlist"T; then
7245 mv -f "$nlist"T "$nlist"
7246 else
7247 rm -f "$nlist"T
7248 fi
7249
7250 # Make sure that we snagged all the symbols we need.
7251 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7252 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7253 cat <<_LT_EOF > conftest.$ac_ext
7254#ifdef __cplusplus
7255extern "C" {
7256#endif
7257
7258_LT_EOF
7259 # Now generate the symbol file.
7260 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7261
7262 cat <<_LT_EOF >> conftest.$ac_ext
7263
7264/* The mapping between symbol names and symbols. */
7265const struct {
7266 const char *name;
7267 void *address;
7268}
7269lt__PROGRAM__LTX_preloaded_symbols[] =
7270{
7271 { "@PROGRAM@", (void *) 0 },
7272_LT_EOF
7273 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7274 cat <<\_LT_EOF >> conftest.$ac_ext
7275 {0, (void *) 0}
7276};
7277
7278/* This works around a problem in FreeBSD linker */
7279#ifdef FREEBSD_WORKAROUND
7280static const void *lt_preloaded_setup() {
7281 return lt__PROGRAM__LTX_preloaded_symbols;
7282}
7283#endif
7284
7285#ifdef __cplusplus
7286}
7287#endif
7288_LT_EOF
7289 # Now try linking the two files.
7290 mv conftest.$ac_objext conftstm.$ac_objext
7291 lt_save_LIBS="$LIBS"
7292 lt_save_CFLAGS="$CFLAGS"
7293 LIBS="conftstm.$ac_objext"
7294 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7296 (eval $ac_link) 2>&5
7297 ac_status=$?
7298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7299 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7300 pipe_works=yes
7301 fi
7302 LIBS="$lt_save_LIBS"
7303 CFLAGS="$lt_save_CFLAGS"
7304 else
7305 echo "cannot find nm_test_func in $nlist" >&5
7306 fi
7307 else
7308 echo "cannot find nm_test_var in $nlist" >&5
7309 fi
7310 else
7311 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7312 fi
7313 else
7314 echo "$progname: failed program was:" >&5
7315 cat conftest.$ac_ext >&5
7316 fi
7317 rm -rf conftest* conftst*
7318
7319 # Do not use the global_symbol_pipe unless it works.
7320 if test "$pipe_works" = yes; then
7321 break
7322 else
7323 lt_cv_sys_global_symbol_pipe=
7324 fi
7325done
7326
7327fi
7328
7329if test -z "$lt_cv_sys_global_symbol_pipe"; then
7330 lt_cv_sys_global_symbol_to_cdecl=
7331fi
7332if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7334$as_echo "failed" >&6; }
7335else
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7337$as_echo "ok" >&6; }
7338fi
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361# Check whether --enable-libtool-lock was given.
7362if test "${enable_libtool_lock+set}" = set; then :
7363 enableval=$enable_libtool_lock;
7364fi
7365
7366test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7367
7368# Some flags need to be propagated to the compiler or linker for good
7369# libtool support.
7370case $host in
7371ia64-*-hpux*)
7372 # Find out which ABI we are using.
7373 echo 'int i;' > conftest.$ac_ext
7374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7375 (eval $ac_compile) 2>&5
7376 ac_status=$?
7377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7378 test $ac_status = 0; }; then
7379 case `/usr/bin/file conftest.$ac_objext` in
7380 *ELF-32*)
7381 HPUX_IA64_MODE="32"
7382 ;;
7383 *ELF-64*)
7384 HPUX_IA64_MODE="64"
7385 ;;
7386 esac
7387 fi
7388 rm -rf conftest*
7389 ;;
7390*-*-irix6*)
7391 # Find out which ABI we are using.
7392 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7394 (eval $ac_compile) 2>&5
7395 ac_status=$?
7396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7397 test $ac_status = 0; }; then
7398 if test "$lt_cv_prog_gnu_ld" = yes; then
7399 case `/usr/bin/file conftest.$ac_objext` in
7400 *32-bit*)
7401 LD="${LD-ld} -melf32bsmip"
7402 ;;
7403 *N32*)
7404 LD="${LD-ld} -melf32bmipn32"
7405 ;;
7406 *64-bit*)
7407 LD="${LD-ld} -melf64bmip"
7408 ;;
7409 esac
7410 else
7411 case `/usr/bin/file conftest.$ac_objext` in
7412 *32-bit*)
7413 LD="${LD-ld} -32"
7414 ;;
7415 *N32*)
7416 LD="${LD-ld} -n32"
7417 ;;
7418 *64-bit*)
7419 LD="${LD-ld} -64"
7420 ;;
7421 esac
7422 fi
7423 fi
7424 rm -rf conftest*
7425 ;;
7426
7427x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7428s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7429 # Find out which ABI we are using.
7430 echo 'int i;' > conftest.$ac_ext
7431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7432 (eval $ac_compile) 2>&5
7433 ac_status=$?
7434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7435 test $ac_status = 0; }; then
7436 case `/usr/bin/file conftest.o` in
7437 *32-bit*)
7438 case $host in
7439 x86_64-*kfreebsd*-gnu)
7440 LD="${LD-ld} -m elf_i386_fbsd"
7441 ;;
7442 x86_64-*linux*)
7443 case `/usr/bin/file conftest.o` in
7444 *x86-64*)
7445 LD="${LD-ld} -m elf32_x86_64"
7446 ;;
7447 *)
7448 LD="${LD-ld} -m elf_i386"
7449 ;;
7450 esac
7451 ;;
7452 ppc64-*linux*|powerpc64-*linux*)
7453 LD="${LD-ld} -m elf32ppclinux"
7454 ;;
7455 s390x-*linux*)
7456 LD="${LD-ld} -m elf_s390"
7457 ;;
7458 sparc64-*linux*)
7459 LD="${LD-ld} -m elf32_sparc"
7460 ;;
7461 esac
7462 ;;
7463 *64-bit*)
7464 case $host in
7465 x86_64-*kfreebsd*-gnu)
7466 LD="${LD-ld} -m elf_x86_64_fbsd"
7467 ;;
7468 x86_64-*linux*)
7469 LD="${LD-ld} -m elf_x86_64"
7470 ;;
7471 ppc*-*linux*|powerpc*-*linux*)
7472 LD="${LD-ld} -m elf64ppc"
7473 ;;
7474 s390*-*linux*|s390*-*tpf*)
7475 LD="${LD-ld} -m elf64_s390"
7476 ;;
7477 sparc*-*linux*)
7478 LD="${LD-ld} -m elf64_sparc"
7479 ;;
7480 esac
7481 ;;
7482 esac
7483 fi
7484 rm -rf conftest*
7485 ;;
7486
7487*-*-sco3.2v5*)
7488 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7489 SAVE_CFLAGS="$CFLAGS"
7490 CFLAGS="$CFLAGS -belf"
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7492$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7493if test "${lt_cv_cc_needs_belf+set}" = set; then :
7494 $as_echo_n "(cached) " >&6
7495else
7496 ac_ext=c
7497ac_cpp='$CPP $CPPFLAGS'
7498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7500ac_compiler_gnu=$ac_cv_c_compiler_gnu
7501
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503/* end confdefs.h. */
7504
7505int
7506main ()
7507{
7508
7509 ;
7510 return 0;
7511}
7512_ACEOF
7513if ac_fn_c_try_link "$LINENO"; then :
7514 lt_cv_cc_needs_belf=yes
7515else
7516 lt_cv_cc_needs_belf=no
7517fi
7518rm -f core conftest.err conftest.$ac_objext \
7519 conftest$ac_exeext conftest.$ac_ext
7520 ac_ext=c
7521ac_cpp='$CPP $CPPFLAGS'
7522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7524ac_compiler_gnu=$ac_cv_c_compiler_gnu
7525
7526fi
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7528$as_echo "$lt_cv_cc_needs_belf" >&6; }
7529 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7530 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7531 CFLAGS="$SAVE_CFLAGS"
7532 fi
7533 ;;
7534sparc*-*solaris*)
7535 # Find out which ABI we are using.
7536 echo 'int i;' > conftest.$ac_ext
7537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7538 (eval $ac_compile) 2>&5
7539 ac_status=$?
7540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7541 test $ac_status = 0; }; then
7542 case `/usr/bin/file conftest.o` in
7543 *64-bit*)
7544 case $lt_cv_prog_gnu_ld in
7545 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7546 *)
7547 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7548 LD="${LD-ld} -64"
7549 fi
7550 ;;
7551 esac
7552 ;;
7553 esac
7554 fi
7555 rm -rf conftest*
7556 ;;
7557esac
7558
7559need_locks="$enable_libtool_lock"
7560
7561
7562 case $host_os in
7563 rhapsody* | darwin*)
7564 if test -n "$ac_tool_prefix"; then
7565 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7566set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568$as_echo_n "checking for $ac_word... " >&6; }
7569if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7570 $as_echo_n "(cached) " >&6
7571else
7572 if test -n "$DSYMUTIL"; then
7573 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7574else
7575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576for as_dir in $PATH
7577do
7578 IFS=$as_save_IFS
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7582 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 break 2
7585 fi
7586done
7587 done
7588IFS=$as_save_IFS
7589
7590fi
7591fi
7592DSYMUTIL=$ac_cv_prog_DSYMUTIL
7593if test -n "$DSYMUTIL"; then
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7595$as_echo "$DSYMUTIL" >&6; }
7596else
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598$as_echo "no" >&6; }
7599fi
7600
7601
7602fi
7603if test -z "$ac_cv_prog_DSYMUTIL"; then
7604 ac_ct_DSYMUTIL=$DSYMUTIL
7605 # Extract the first word of "dsymutil", so it can be a program name with args.
7606set dummy dsymutil; ac_word=$2
7607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7608$as_echo_n "checking for $ac_word... " >&6; }
7609if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7610 $as_echo_n "(cached) " >&6
7611else
7612 if test -n "$ac_ct_DSYMUTIL"; then
7613 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7614else
7615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616for as_dir in $PATH
7617do
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7622 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 break 2
7625 fi
7626done
7627 done
7628IFS=$as_save_IFS
7629
7630fi
7631fi
7632ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7633if test -n "$ac_ct_DSYMUTIL"; then
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7635$as_echo "$ac_ct_DSYMUTIL" >&6; }
7636else
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638$as_echo "no" >&6; }
7639fi
7640
7641 if test "x$ac_ct_DSYMUTIL" = x; then
7642 DSYMUTIL=":"
7643 else
7644 case $cross_compiling:$ac_tool_warned in
7645yes:)
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7648ac_tool_warned=yes ;;
7649esac
7650 DSYMUTIL=$ac_ct_DSYMUTIL
7651 fi
7652else
7653 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7654fi
7655
7656 if test -n "$ac_tool_prefix"; then
7657 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7658set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660$as_echo_n "checking for $ac_word... " >&6; }
7661if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7662 $as_echo_n "(cached) " >&6
7663else
7664 if test -n "$NMEDIT"; then
7665 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7666else
7667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668for as_dir in $PATH
7669do
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7674 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 break 2
7677 fi
7678done
7679 done
7680IFS=$as_save_IFS
7681
7682fi
7683fi
7684NMEDIT=$ac_cv_prog_NMEDIT
7685if test -n "$NMEDIT"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7687$as_echo "$NMEDIT" >&6; }
7688else
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690$as_echo "no" >&6; }
7691fi
7692
7693
7694fi
7695if test -z "$ac_cv_prog_NMEDIT"; then
7696 ac_ct_NMEDIT=$NMEDIT
7697 # Extract the first word of "nmedit", so it can be a program name with args.
7698set dummy nmedit; ac_word=$2
7699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700$as_echo_n "checking for $ac_word... " >&6; }
7701if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7702 $as_echo_n "(cached) " >&6
7703else
7704 if test -n "$ac_ct_NMEDIT"; then
7705 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7706else
7707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708for as_dir in $PATH
7709do
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7714 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 break 2
7717 fi
7718done
7719 done
7720IFS=$as_save_IFS
7721
7722fi
7723fi
7724ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7725if test -n "$ac_ct_NMEDIT"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7727$as_echo "$ac_ct_NMEDIT" >&6; }
7728else
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730$as_echo "no" >&6; }
7731fi
7732
7733 if test "x$ac_ct_NMEDIT" = x; then
7734 NMEDIT=":"
7735 else
7736 case $cross_compiling:$ac_tool_warned in
7737yes:)
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7740ac_tool_warned=yes ;;
7741esac
7742 NMEDIT=$ac_ct_NMEDIT
7743 fi
7744else
7745 NMEDIT="$ac_cv_prog_NMEDIT"
7746fi
7747
7748 if test -n "$ac_tool_prefix"; then
7749 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7750set dummy ${ac_tool_prefix}lipo; ac_word=$2
7751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752$as_echo_n "checking for $ac_word... " >&6; }
7753if test "${ac_cv_prog_LIPO+set}" = set; then :
7754 $as_echo_n "(cached) " >&6
7755else
7756 if test -n "$LIPO"; then
7757 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7758else
7759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760for as_dir in $PATH
7761do
7762 IFS=$as_save_IFS
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7766 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 break 2
7769 fi
7770done
7771 done
7772IFS=$as_save_IFS
7773
7774fi
7775fi
7776LIPO=$ac_cv_prog_LIPO
7777if test -n "$LIPO"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7779$as_echo "$LIPO" >&6; }
7780else
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782$as_echo "no" >&6; }
7783fi
7784
7785
7786fi
7787if test -z "$ac_cv_prog_LIPO"; then
7788 ac_ct_LIPO=$LIPO
7789 # Extract the first word of "lipo", so it can be a program name with args.
7790set dummy lipo; ac_word=$2
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792$as_echo_n "checking for $ac_word... " >&6; }
7793if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7794 $as_echo_n "(cached) " >&6
7795else
7796 if test -n "$ac_ct_LIPO"; then
7797 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7798else
7799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800for as_dir in $PATH
7801do
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7806 ac_cv_prog_ac_ct_LIPO="lipo"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7809 fi
7810done
7811 done
7812IFS=$as_save_IFS
7813
7814fi
7815fi
7816ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7817if test -n "$ac_ct_LIPO"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7819$as_echo "$ac_ct_LIPO" >&6; }
7820else
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822$as_echo "no" >&6; }
7823fi
7824
7825 if test "x$ac_ct_LIPO" = x; then
7826 LIPO=":"
7827 else
7828 case $cross_compiling:$ac_tool_warned in
7829yes:)
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7832ac_tool_warned=yes ;;
7833esac
7834 LIPO=$ac_ct_LIPO
7835 fi
7836else
7837 LIPO="$ac_cv_prog_LIPO"
7838fi
7839
7840 if test -n "$ac_tool_prefix"; then
7841 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7842set dummy ${ac_tool_prefix}otool; ac_word=$2
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844$as_echo_n "checking for $ac_word... " >&6; }
7845if test "${ac_cv_prog_OTOOL+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
7847else
7848 if test -n "$OTOOL"; then
7849 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7850else
7851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852for as_dir in $PATH
7853do
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7858 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7861 fi
7862done
7863 done
7864IFS=$as_save_IFS
7865
7866fi
7867fi
7868OTOOL=$ac_cv_prog_OTOOL
7869if test -n "$OTOOL"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7871$as_echo "$OTOOL" >&6; }
7872else
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874$as_echo "no" >&6; }
7875fi
7876
7877
7878fi
7879if test -z "$ac_cv_prog_OTOOL"; then
7880 ac_ct_OTOOL=$OTOOL
7881 # Extract the first word of "otool", so it can be a program name with args.
7882set dummy otool; ac_word=$2
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884$as_echo_n "checking for $ac_word... " >&6; }
7885if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7886 $as_echo_n "(cached) " >&6
7887else
7888 if test -n "$ac_ct_OTOOL"; then
7889 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7890else
7891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892for as_dir in $PATH
7893do
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7898 ac_cv_prog_ac_ct_OTOOL="otool"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 break 2
7901 fi
7902done
7903 done
7904IFS=$as_save_IFS
7905
7906fi
7907fi
7908ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7909if test -n "$ac_ct_OTOOL"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7911$as_echo "$ac_ct_OTOOL" >&6; }
7912else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914$as_echo "no" >&6; }
7915fi
7916
7917 if test "x$ac_ct_OTOOL" = x; then
7918 OTOOL=":"
7919 else
7920 case $cross_compiling:$ac_tool_warned in
7921yes:)
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7924ac_tool_warned=yes ;;
7925esac
7926 OTOOL=$ac_ct_OTOOL
7927 fi
7928else
7929 OTOOL="$ac_cv_prog_OTOOL"
7930fi
7931
7932 if test -n "$ac_tool_prefix"; then
7933 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7934set dummy ${ac_tool_prefix}otool64; ac_word=$2
7935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936$as_echo_n "checking for $ac_word... " >&6; }
7937if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7938 $as_echo_n "(cached) " >&6
7939else
7940 if test -n "$OTOOL64"; then
7941 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7942else
7943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944for as_dir in $PATH
7945do
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7950 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7953 fi
7954done
7955 done
7956IFS=$as_save_IFS
7957
7958fi
7959fi
7960OTOOL64=$ac_cv_prog_OTOOL64
7961if test -n "$OTOOL64"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7963$as_echo "$OTOOL64" >&6; }
7964else
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966$as_echo "no" >&6; }
7967fi
7968
7969
7970fi
7971if test -z "$ac_cv_prog_OTOOL64"; then
7972 ac_ct_OTOOL64=$OTOOL64
7973 # Extract the first word of "otool64", so it can be a program name with args.
7974set dummy otool64; ac_word=$2
7975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976$as_echo_n "checking for $ac_word... " >&6; }
7977if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7978 $as_echo_n "(cached) " >&6
7979else
7980 if test -n "$ac_ct_OTOOL64"; then
7981 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7982else
7983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984for as_dir in $PATH
7985do
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7990 ac_cv_prog_ac_ct_OTOOL64="otool64"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 break 2
7993 fi
7994done
7995 done
7996IFS=$as_save_IFS
7997
7998fi
7999fi
8000ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8001if test -n "$ac_ct_OTOOL64"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8003$as_echo "$ac_ct_OTOOL64" >&6; }
8004else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006$as_echo "no" >&6; }
8007fi
8008
8009 if test "x$ac_ct_OTOOL64" = x; then
8010 OTOOL64=":"
8011 else
8012 case $cross_compiling:$ac_tool_warned in
8013yes:)
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8016ac_tool_warned=yes ;;
8017esac
8018 OTOOL64=$ac_ct_OTOOL64
8019 fi
8020else
8021 OTOOL64="$ac_cv_prog_OTOOL64"
8022fi
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8051$as_echo_n "checking for -single_module linker flag... " >&6; }
8052if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8053 $as_echo_n "(cached) " >&6
8054else
8055 lt_cv_apple_cc_single_mod=no
8056 if test -z "${LT_MULTI_MODULE}"; then
8057 # By default we will add the -single_module flag. You can override
8058 # by either setting the environment variable LT_MULTI_MODULE
8059 # non-empty at configure time, or by adding -multi_module to the
8060 # link flags.
8061 rm -rf libconftest.dylib*
8062 echo "int foo(void){return 1;}" > conftest.c
8063 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8064-dynamiclib -Wl,-single_module conftest.c" >&5
8065 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8066 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8067 _lt_result=$?
8068 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8069 lt_cv_apple_cc_single_mod=yes
8070 else
8071 cat conftest.err >&5
8072 fi
8073 rm -rf libconftest.dylib*
8074 rm -f conftest.*
8075 fi
8076fi
8077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8078$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8080$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8081if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8082 $as_echo_n "(cached) " >&6
8083else
8084 lt_cv_ld_exported_symbols_list=no
8085 save_LDFLAGS=$LDFLAGS
8086 echo "_main" > conftest.sym
8087 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089/* end confdefs.h. */
8090
8091int
8092main ()
8093{
8094
8095 ;
8096 return 0;
8097}
8098_ACEOF
8099if ac_fn_c_try_link "$LINENO"; then :
8100 lt_cv_ld_exported_symbols_list=yes
8101else
8102 lt_cv_ld_exported_symbols_list=no
8103fi
8104rm -f core conftest.err conftest.$ac_objext \
8105 conftest$ac_exeext conftest.$ac_ext
8106 LDFLAGS="$save_LDFLAGS"
8107
8108fi
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8110$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8112$as_echo_n "checking for -force_load linker flag... " >&6; }
8113if test "${lt_cv_ld_force_load+set}" = set; then :
8114 $as_echo_n "(cached) " >&6
8115else
8116 lt_cv_ld_force_load=no
8117 cat > conftest.c << _LT_EOF
8118int forced_loaded() { return 2;}
8119_LT_EOF
8120 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8121 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8122 echo "$AR cru libconftest.a conftest.o" >&5
8123 $AR cru libconftest.a conftest.o 2>&5
8124 cat > conftest.c << _LT_EOF
8125int main() { return 0;}
8126_LT_EOF
8127 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8128 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8129 _lt_result=$?
8130 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8131 lt_cv_ld_force_load=yes
8132 else
8133 cat conftest.err >&5
8134 fi
8135 rm -f conftest.err libconftest.a conftest conftest.c
8136 rm -rf conftest.dSYM
8137
8138fi
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8140$as_echo "$lt_cv_ld_force_load" >&6; }
8141 case $host_os in
8142 rhapsody* | darwin1.[012])
8143 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8144 darwin1.*)
8145 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8146 darwin*) # darwin 5.x on
8147 # if running on 10.5 or later, the deployment target defaults
8148 # to the OS version, if on x86, and 10.4, the deployment
8149 # target defaults to 10.4. Don't you love it?
8150 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8151 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8152 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8153 10.[012]*)
8154 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8155 10.*)
8156 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8157 esac
8158 ;;
8159 esac
8160 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8161 _lt_dar_single_mod='$single_module'
8162 fi
8163 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8164 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8165 else
8166 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8167 fi
8168 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8169 _lt_dsymutil='~$DSYMUTIL $lib || :'
8170 else
8171 _lt_dsymutil=
8172 fi
8173 ;;
8174 esac
8175
8176for ac_header in dlfcn.h
8177do :
8178 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8179"
8180if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8181 cat >>confdefs.h <<_ACEOF
8182#define HAVE_DLFCN_H 1
8183_ACEOF
8184
8185fi
8186
8187done
8188
8189
8190
8191# autoconf.info says this should be called right after AC_INIT.
8192ac_config_headers="$ac_config_headers config.h:config.in"
8193
8194
8195
8196
8197
8198
8199# Put a plausible default for CC_FOR_BUILD in Makefile.
8200if test "x$cross_compiling" = "xno"; then
8201 CC_FOR_BUILD='$(CC)'
8202else
8203 CC_FOR_BUILD=gcc
8204fi
8205
8206
8207
8208
8209AR=${AR-ar}
8210
8211if test -n "$ac_tool_prefix"; then
8212 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8213set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8215$as_echo_n "checking for $ac_word... " >&6; }
8216if test "${ac_cv_prog_RANLIB+set}" = set; then :
8217 $as_echo_n "(cached) " >&6
8218else
8219 if test -n "$RANLIB"; then
8220 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8221else
8222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223for as_dir in $PATH
8224do
8225 IFS=$as_save_IFS
8226 test -z "$as_dir" && as_dir=.
8227 for ac_exec_ext in '' $ac_executable_extensions; do
8228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8229 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 break 2
8232 fi
8233done
8234 done
8235IFS=$as_save_IFS
8236
8237fi
8238fi
8239RANLIB=$ac_cv_prog_RANLIB
8240if test -n "$RANLIB"; then
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8242$as_echo "$RANLIB" >&6; }
8243else
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8245$as_echo "no" >&6; }
8246fi
8247
8248
8249fi
8250if test -z "$ac_cv_prog_RANLIB"; then
8251 ac_ct_RANLIB=$RANLIB
8252 # Extract the first word of "ranlib", so it can be a program name with args.
8253set dummy ranlib; ac_word=$2
8254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255$as_echo_n "checking for $ac_word... " >&6; }
8256if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8257 $as_echo_n "(cached) " >&6
8258else
8259 if test -n "$ac_ct_RANLIB"; then
8260 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8261else
8262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263for as_dir in $PATH
8264do
8265 IFS=$as_save_IFS
8266 test -z "$as_dir" && as_dir=.
8267 for ac_exec_ext in '' $ac_executable_extensions; do
8268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8269 ac_cv_prog_ac_ct_RANLIB="ranlib"
8270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 break 2
8272 fi
8273done
8274 done
8275IFS=$as_save_IFS
8276
8277fi
8278fi
8279ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8280if test -n "$ac_ct_RANLIB"; then
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8282$as_echo "$ac_ct_RANLIB" >&6; }
8283else
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285$as_echo "no" >&6; }
8286fi
8287
8288 if test "x$ac_ct_RANLIB" = x; then
8289 RANLIB=":"
8290 else
8291 case $cross_compiling:$ac_tool_warned in
8292yes:)
8293{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8294$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8295ac_tool_warned=yes ;;
8296esac
8297 RANLIB=$ac_ct_RANLIB
8298 fi
8299else
8300 RANLIB="$ac_cv_prog_RANLIB"
8301fi
8302
8303
8304# Some of the common include files depend on bfd.h, and bfd.h checks
8305# that config.h is included first by testing that the PACKAGE macro
8306# is defined.
8307PACKAGE=sim
8308
8309cat >>confdefs.h <<_ACEOF
8310#define PACKAGE "$PACKAGE"
8311_ACEOF
8312
8313
8314
8315# Dependency checking.
8316ac_config_commands="$ac_config_commands depdir"
8317
8318
8319depcc="$CC" am_compiler_list=
8320
8321am_depcomp=$ac_aux_dir/depcomp
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8323$as_echo_n "checking dependency style of $depcc... " >&6; }
8324if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
8325 $as_echo_n "(cached) " >&6
8326else
8327 if test -f "$am_depcomp"; then
8328 # We make a subdir and do the tests there. Otherwise we can end up
8329 # making bogus files that we don't know about and never remove. For
8330 # instance it was reported that on HP-UX the gcc test will end up
8331 # making a dummy file named `D' -- because `-MD' means `put the output
8332 # in D'.
8333 mkdir conftest.dir
8334 # Copy depcomp to subdir because otherwise we won't find it if we're
8335 # using a relative directory.
8336 cp "$am_depcomp" conftest.dir
8337 cd conftest.dir
8338 # We will build objects and dependencies in a subdirectory because
8339 # it helps to detect inapplicable dependency modes. For instance
8340 # both Tru64's cc and ICC support -MD to output dependencies as a
8341 # side effect of compilation, but ICC will put the dependencies in
8342 # the current directory while Tru64 will put them in the object
8343 # directory.
8344 mkdir sub
8345
8346 am_cv_CC_dependencies_compiler_type=none
8347 if test "$am_compiler_list" = ""; then
8348 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8349 fi
8350 for depmode in $am_compiler_list; do
8351 if test $depmode = none; then break; fi
8352
8353 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8354 # Setup a source with many dependencies, because some compilers
8355 # like to wrap large dependency lists on column 80 (with \), and
8356 # we should not choose a depcomp mode which is confused by this.
8357 #
8358 # We need to recreate these files for each test, as the compiler may
8359 # overwrite some of them when testing with obscure command lines.
8360 # This happens at least with the AIX C compiler.
8361 : > sub/conftest.c
8362 for i in 1 2 3 4 5 6; do
8363 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8364 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8365 # Solaris 8's {/usr,}/bin/sh.
8366 touch sub/conftst$i.h
8367 done
8368 echo "include sub/conftest.Po" > confmf
8369
8370 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8371 # mode. It turns out that the SunPro C++ compiler does not properly
8372 # handle `-M -o', and we need to detect this.
8373 depcmd="depmode=$depmode \
8374 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8375 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8376 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8377 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8378 if env $depcmd > conftest.err 2>&1 &&
8379 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8380 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8381 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8382 # icc doesn't choke on unknown options, it will just issue warnings
8383 # or remarks (even with -Werror). So we grep stderr for any message
8384 # that says an option was ignored or not supported.
8385 # When given -MP, icc 7.0 and 7.1 complain thusly:
8386 # icc: Command line warning: ignoring option '-M'; no argument required
8387 # The diagnosis changed in icc 8.0:
8388 # icc: Command line remark: option '-MP' not supported
8389 if (grep 'ignoring option' conftest.err ||
8390 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8391 am_cv_CC_dependencies_compiler_type=$depmode
8392 $as_echo "$as_me:$LINENO: success" >&5
8393 break
8394 fi
8395 fi
8396 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8397 sed -e 's/^/| /' < conftest.err >&5
8398 done
8399
8400 cd ..
8401 rm -rf conftest.dir
8402else
8403 am_cv_CC_dependencies_compiler_type=none
8404fi
8405
8406fi
8407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8408$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
8409if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
8410then as_fn_error "no usable dependency style found" "$LINENO" 5
8411else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8412
8413fi
8414
8415
8416# Check for the 'make' the user wants to use.
8417for ac_prog in make
8418do
8419 # Extract the first word of "$ac_prog", so it can be a program name with args.
8420set dummy $ac_prog; ac_word=$2
8421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8422$as_echo_n "checking for $ac_word... " >&6; }
8423if test "${ac_cv_prog_MAKE+set}" = set; then :
8424 $as_echo_n "(cached) " >&6
8425else
8426 if test -n "$MAKE"; then
8427 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
8428else
8429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430for as_dir in $PATH
8431do
8432 IFS=$as_save_IFS
8433 test -z "$as_dir" && as_dir=.
8434 for ac_exec_ext in '' $ac_executable_extensions; do
8435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8436 ac_cv_prog_MAKE="$ac_prog"
8437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8438 break 2
8439 fi
8440done
8441 done
8442IFS=$as_save_IFS
8443
8444fi
8445fi
8446MAKE=$ac_cv_prog_MAKE
8447if test -n "$MAKE"; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
8449$as_echo "$MAKE" >&6; }
8450else
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452$as_echo "no" >&6; }
8453fi
8454
8455
8456 test -n "$MAKE" && break
8457done
8458
8459MAKE_IS_GNU=
8460case "`$MAKE --version 2>&1 | sed 1q`" in
8461 *GNU*)
8462 MAKE_IS_GNU=yes
8463 ;;
8464esac
8465 if test "$MAKE_IS_GNU" = yes; then
8466 GMAKE_TRUE=
8467 GMAKE_FALSE='#'
8468else
8469 GMAKE_TRUE='#'
8470 GMAKE_FALSE=
8471fi
8472
8473
8474ALL_LINGUAS=
8475# If we haven't got the data from the intl directory,
8476# assume NLS is disabled.
8477USE_NLS=no
8478LIBINTL=
8479LIBINTL_DEP=
8480INCINTL=
8481XGETTEXT=
8482GMSGFMT=
8483POSUB=
8484
8485if test -f ../../intl/config.intl; then
8486 . ../../intl/config.intl
8487fi
8488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8489$as_echo_n "checking whether NLS is requested... " >&6; }
8490if test x"$USE_NLS" != xyes; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8492$as_echo "no" >&6; }
8493else
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8495$as_echo "yes" >&6; }
8496
8497$as_echo "#define ENABLE_NLS 1" >>confdefs.h
8498
8499
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8501$as_echo_n "checking for catalogs to be installed... " >&6; }
8502 # Look for .po and .gmo files in the source directory.
8503 CATALOGS=
8504 XLINGUAS=
8505 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8506 # If there aren't any .gmo files the shell will give us the
8507 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8508 # weeded out.
8509 case "$cat" in *\**)
8510 continue;;
8511 esac
8512 # The quadruple backslash is collapsed to a double backslash
8513 # by the backticks, then collapsed again by the double quotes,
8514 # leaving us with one backslash in the sed expression (right
8515 # before the dot that mustn't act as a wildcard).
8516 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8517 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8518 # The user is allowed to set LINGUAS to a list of languages to
8519 # install catalogs for. If it's empty that means "all of them."
8520 if test "x$LINGUAS" = x; then
8521 CATALOGS="$CATALOGS $cat"
8522 XLINGUAS="$XLINGUAS $lang"
8523 else
8524 case "$LINGUAS" in *$lang*)
8525 CATALOGS="$CATALOGS $cat"
8526 XLINGUAS="$XLINGUAS $lang"
8527 ;;
8528 esac
8529 fi
8530 done
8531 LINGUAS="$XLINGUAS"
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8533$as_echo "$LINGUAS" >&6; }
8534
8535
8536 DATADIRNAME=share
8537
8538 INSTOBJEXT=.mo
8539
8540 GENCAT=gencat
8541
8542 CATOBJEXT=.gmo
8543
8544fi
8545
8546# Check for common headers.
8547# FIXME: Seems to me this can cause problems for i386-windows hosts.
8548# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
8549for ac_header in stdlib.h string.h strings.h unistd.h time.h
8550do :
8551 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8552ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8553eval as_val=\$$as_ac_Header
8554 if test "x$as_val" = x""yes; then :
8555 cat >>confdefs.h <<_ACEOF
8556#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8557_ACEOF
8558
8559fi
8560
8561done
8562
8563for ac_header in sys/time.h sys/resource.h
8564do :
8565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8566ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8567eval as_val=\$$as_ac_Header
8568 if test "x$as_val" = x""yes; then :
8569 cat >>confdefs.h <<_ACEOF
8570#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8571_ACEOF
8572
8573fi
8574
8575done
8576
8577for ac_header in fcntl.h fpu_control.h
8578do :
8579 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8580ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8581eval as_val=\$$as_ac_Header
8582 if test "x$as_val" = x""yes; then :
8583 cat >>confdefs.h <<_ACEOF
8584#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8585_ACEOF
8586
8587fi
8588
8589done
8590
8591for ac_header in dlfcn.h errno.h sys/stat.h
8592do :
8593 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8594ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8595eval as_val=\$$as_ac_Header
8596 if test "x$as_val" = x""yes; then :
8597 cat >>confdefs.h <<_ACEOF
8598#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8599_ACEOF
8600
8601fi
8602
8603done
8604
8605for ac_func in getrusage time sigaction __setfpucw
8606do :
8607 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8608ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8609eval as_val=\$$as_ac_var
8610 if test "x$as_val" = x""yes; then :
8611 cat >>confdefs.h <<_ACEOF
8612#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8613_ACEOF
8614
8615fi
8616done
8617
8618
8619# Check for socket libraries
8620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
8621$as_echo_n "checking for bind in -lsocket... " >&6; }
8622if test "${ac_cv_lib_socket_bind+set}" = set; then :
8623 $as_echo_n "(cached) " >&6
8624else
8625 ac_check_lib_save_LIBS=$LIBS
8626LIBS="-lsocket $LIBS"
8627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8628/* end confdefs.h. */
8629
8630/* Override any GCC internal prototype to avoid an error.
8631 Use char because int might match the return type of a GCC
8632 builtin and then its argument prototype would still apply. */
8633#ifdef __cplusplus
8634extern "C"
8635#endif
8636char bind ();
8637int
8638main ()
8639{
8640return bind ();
8641 ;
8642 return 0;
8643}
8644_ACEOF
8645if ac_fn_c_try_link "$LINENO"; then :
8646 ac_cv_lib_socket_bind=yes
8647else
8648 ac_cv_lib_socket_bind=no
8649fi
8650rm -f core conftest.err conftest.$ac_objext \
8651 conftest$ac_exeext conftest.$ac_ext
8652LIBS=$ac_check_lib_save_LIBS
8653fi
8654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
8655$as_echo "$ac_cv_lib_socket_bind" >&6; }
8656if test "x$ac_cv_lib_socket_bind" = x""yes; then :
8657 cat >>confdefs.h <<_ACEOF
8658#define HAVE_LIBSOCKET 1
8659_ACEOF
8660
8661 LIBS="-lsocket $LIBS"
8662
8663fi
8664
8665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8666$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8667if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
8668 $as_echo_n "(cached) " >&6
8669else
8670 ac_check_lib_save_LIBS=$LIBS
8671LIBS="-lnsl $LIBS"
8672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8673/* end confdefs.h. */
8674
8675/* Override any GCC internal prototype to avoid an error.
8676 Use char because int might match the return type of a GCC
8677 builtin and then its argument prototype would still apply. */
8678#ifdef __cplusplus
8679extern "C"
8680#endif
8681char gethostbyname ();
8682int
8683main ()
8684{
8685return gethostbyname ();
8686 ;
8687 return 0;
8688}
8689_ACEOF
8690if ac_fn_c_try_link "$LINENO"; then :
8691 ac_cv_lib_nsl_gethostbyname=yes
8692else
8693 ac_cv_lib_nsl_gethostbyname=no
8694fi
8695rm -f core conftest.err conftest.$ac_objext \
8696 conftest$ac_exeext conftest.$ac_ext
8697LIBS=$ac_check_lib_save_LIBS
8698fi
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8700$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8701if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
8702 cat >>confdefs.h <<_ACEOF
8703#define HAVE_LIBNSL 1
8704_ACEOF
8705
8706 LIBS="-lnsl $LIBS"
8707
8708fi
8709
8710
8711# BFD conditionally uses zlib, so we must link it in if libbfd does, by
8712# using the same condition.
8713
8714 # See if the user specified whether he wants zlib support or not.
8715
8716# Check whether --with-zlib was given.
8717if test "${with_zlib+set}" = set; then :
8718 withval=$with_zlib;
8719else
8720 with_zlib=auto
8721fi
8722
8723
8724 if test "$with_zlib" != "no"; then
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
8726$as_echo_n "checking for library containing zlibVersion... " >&6; }
8727if test "${ac_cv_search_zlibVersion+set}" = set; then :
8728 $as_echo_n "(cached) " >&6
8729else
8730 ac_func_search_save_LIBS=$LIBS
8731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732/* end confdefs.h. */
8733
8734/* Override any GCC internal prototype to avoid an error.
8735 Use char because int might match the return type of a GCC
8736 builtin and then its argument prototype would still apply. */
8737#ifdef __cplusplus
8738extern "C"
8739#endif
8740char zlibVersion ();
8741int
8742main ()
8743{
8744return zlibVersion ();
8745 ;
8746 return 0;
8747}
8748_ACEOF
8749for ac_lib in '' z; do
8750 if test -z "$ac_lib"; then
8751 ac_res="none required"
8752 else
8753 ac_res=-l$ac_lib
8754 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8755 fi
8756 if ac_fn_c_try_link "$LINENO"; then :
8757 ac_cv_search_zlibVersion=$ac_res
8758fi
8759rm -f core conftest.err conftest.$ac_objext \
8760 conftest$ac_exeext
8761 if test "${ac_cv_search_zlibVersion+set}" = set; then :
8762 break
8763fi
8764done
8765if test "${ac_cv_search_zlibVersion+set}" = set; then :
8766
8767else
8768 ac_cv_search_zlibVersion=no
8769fi
8770rm conftest.$ac_ext
8771LIBS=$ac_func_search_save_LIBS
8772fi
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
8774$as_echo "$ac_cv_search_zlibVersion" >&6; }
8775ac_res=$ac_cv_search_zlibVersion
8776if test "$ac_res" != no; then :
8777 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8778 for ac_header in zlib.h
8779do :
8780 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8781if test "x$ac_cv_header_zlib_h" = x""yes; then :
8782 cat >>confdefs.h <<_ACEOF
8783#define HAVE_ZLIB_H 1
8784_ACEOF
8785
8786fi
8787
8788done
8789
8790fi
8791
8792 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
8793 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
8794 fi
8795 fi
8796
8797
8798# BFD uses libdl when when plugins enabled.
8799
8800# Check whether --enable-plugins was given.
8801if test "${enable_plugins+set}" = set; then :
8802 enableval=$enable_plugins; case "${enableval}" in
8803 yes | "") plugins=yes ;;
8804 no) plugins=no ;;
8805 *) plugins=yes ;;
8806 esac
8807else
8808 plugins=no
8809fi
8810
8811
8812 if test "$plugins" = yes; then
8813 PLUGINS_TRUE=
8814 PLUGINS_FALSE='#'
8815else
8816 PLUGINS_TRUE='#'
8817 PLUGINS_FALSE=
8818fi
8819
8820
8821
8822
8823
8824# Set options
8825enable_dlopen=yes
8826
8827
8828
8829
8830 enable_win32_dll=no
8831
8832
8833 # Check whether --enable-shared was given.
8834if test "${enable_shared+set}" = set; then :
8835 enableval=$enable_shared; p=${PACKAGE-default}
8836 case $enableval in
8837 yes) enable_shared=yes ;;
8838 no) enable_shared=no ;;
8839 *)
8840 enable_shared=no
8841 # Look at the argument we got. We use all the common list separators.
8842 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8843 for pkg in $enableval; do
8844 IFS="$lt_save_ifs"
8845 if test "X$pkg" = "X$p"; then
8846 enable_shared=yes
8847 fi
8848 done
8849 IFS="$lt_save_ifs"
8850 ;;
8851 esac
8852else
8853 enable_shared=yes
8854fi
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864 # Check whether --enable-static was given.
8865if test "${enable_static+set}" = set; then :
8866 enableval=$enable_static; p=${PACKAGE-default}
8867 case $enableval in
8868 yes) enable_static=yes ;;
8869 no) enable_static=no ;;
8870 *)
8871 enable_static=no
8872 # Look at the argument we got. We use all the common list separators.
8873 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8874 for pkg in $enableval; do
8875 IFS="$lt_save_ifs"
8876 if test "X$pkg" = "X$p"; then
8877 enable_static=yes
8878 fi
8879 done
8880 IFS="$lt_save_ifs"
8881 ;;
8882 esac
8883else
8884 enable_static=yes
8885fi
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896# Check whether --with-pic was given.
8897if test "${with_pic+set}" = set; then :
8898 withval=$with_pic; pic_mode="$withval"
8899else
8900 pic_mode=default
8901fi
8902
8903
8904test -z "$pic_mode" && pic_mode=default
8905
8906
8907
8908
8909
8910
8911
8912 # Check whether --enable-fast-install was given.
8913if test "${enable_fast_install+set}" = set; then :
8914 enableval=$enable_fast_install; p=${PACKAGE-default}
8915 case $enableval in
8916 yes) enable_fast_install=yes ;;
8917 no) enable_fast_install=no ;;
8918 *)
8919 enable_fast_install=no
8920 # Look at the argument we got. We use all the common list separators.
8921 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8922 for pkg in $enableval; do
8923 IFS="$lt_save_ifs"
8924 if test "X$pkg" = "X$p"; then
8925 enable_fast_install=yes
8926 fi
8927 done
8928 IFS="$lt_save_ifs"
8929 ;;
8930 esac
8931else
8932 enable_fast_install=yes
8933fi
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945# This can be used to rebuild libtool when needed
8946LIBTOOL_DEPS="$ltmain"
8947
8948# Always use our own libtool.
8949LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976test -z "$LN_S" && LN_S="ln -s"
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991if test -n "${ZSH_VERSION+set}" ; then
8992 setopt NO_GLOB_SUBST
8993fi
8994
8995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8996$as_echo_n "checking for objdir... " >&6; }
8997if test "${lt_cv_objdir+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
8999else
9000 rm -f .libs 2>/dev/null
9001mkdir .libs 2>/dev/null
9002if test -d .libs; then
9003 lt_cv_objdir=.libs
9004else
9005 # MS-DOS does not allow filenames that begin with a dot.
9006 lt_cv_objdir=_libs
9007fi
9008rmdir .libs 2>/dev/null
9009fi
9010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9011$as_echo "$lt_cv_objdir" >&6; }
9012objdir=$lt_cv_objdir
9013
9014
9015
9016
9017
9018cat >>confdefs.h <<_ACEOF
9019#define LT_OBJDIR "$lt_cv_objdir/"
9020_ACEOF
9021
9022
9023
9024
9025case $host_os in
9026aix3*)
9027 # AIX sometimes has problems with the GCC collect2 program. For some
9028 # reason, if we set the COLLECT_NAMES environment variable, the problems
9029 # vanish in a puff of smoke.
9030 if test "X${COLLECT_NAMES+set}" != Xset; then
9031 COLLECT_NAMES=
9032 export COLLECT_NAMES
9033 fi
9034 ;;
9035esac
9036
9037# Global variables:
9038ofile=libtool
9039can_build_shared=yes
9040
9041# All known linkers require a `.a' archive for static linking (except MSVC,
9042# which needs '.lib').
9043libext=a
9044
9045with_gnu_ld="$lt_cv_prog_gnu_ld"
9046
9047old_CC="$CC"
9048old_CFLAGS="$CFLAGS"
9049
9050# Set sane defaults for various variables
9051test -z "$CC" && CC=cc
9052test -z "$LTCC" && LTCC=$CC
9053test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9054test -z "$LD" && LD=ld
9055test -z "$ac_objext" && ac_objext=o
9056
9057for cc_temp in $compiler""; do
9058 case $cc_temp in
9059 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9060 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9061 \-*) ;;
9062 *) break;;
9063 esac
9064done
9065cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9066
9067
9068# Only perform the check for file, if the check method requires it
9069test -z "$MAGIC_CMD" && MAGIC_CMD=file
9070case $deplibs_check_method in
9071file_magic*)
9072 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9074$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9075if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9076 $as_echo_n "(cached) " >&6
9077else
9078 case $MAGIC_CMD in
9079[\\/*] | ?:[\\/]*)
9080 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9081 ;;
9082*)
9083 lt_save_MAGIC_CMD="$MAGIC_CMD"
9084 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9085 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9086 for ac_dir in $ac_dummy; do
9087 IFS="$lt_save_ifs"
9088 test -z "$ac_dir" && ac_dir=.
9089 if test -f $ac_dir/${ac_tool_prefix}file; then
9090 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9091 if test -n "$file_magic_test_file"; then
9092 case $deplibs_check_method in
9093 "file_magic "*)
9094 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9095 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9096 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9097 $EGREP "$file_magic_regex" > /dev/null; then
9098 :
9099 else
9100 cat <<_LT_EOF 1>&2
9101
9102*** Warning: the command libtool uses to detect shared libraries,
9103*** $file_magic_cmd, produces output that libtool cannot recognize.
9104*** The result is that libtool may fail to recognize shared libraries
9105*** as such. This will affect the creation of libtool libraries that
9106*** depend on shared libraries, but programs linked with such libtool
9107*** libraries will work regardless of this problem. Nevertheless, you
9108*** may want to report the problem to your system manager and/or to
9109*** bug-libtool@gnu.org
9110
9111_LT_EOF
9112 fi ;;
9113 esac
9114 fi
9115 break
9116 fi
9117 done
9118 IFS="$lt_save_ifs"
9119 MAGIC_CMD="$lt_save_MAGIC_CMD"
9120 ;;
9121esac
9122fi
9123
9124MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9125if test -n "$MAGIC_CMD"; then
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9127$as_echo "$MAGIC_CMD" >&6; }
9128else
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130$as_echo "no" >&6; }
9131fi
9132
9133
9134
9135
9136
9137if test -z "$lt_cv_path_MAGIC_CMD"; then
9138 if test -n "$ac_tool_prefix"; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9140$as_echo_n "checking for file... " >&6; }
9141if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9142 $as_echo_n "(cached) " >&6
9143else
9144 case $MAGIC_CMD in
9145[\\/*] | ?:[\\/]*)
9146 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9147 ;;
9148*)
9149 lt_save_MAGIC_CMD="$MAGIC_CMD"
9150 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9151 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9152 for ac_dir in $ac_dummy; do
9153 IFS="$lt_save_ifs"
9154 test -z "$ac_dir" && ac_dir=.
9155 if test -f $ac_dir/file; then
9156 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9157 if test -n "$file_magic_test_file"; then
9158 case $deplibs_check_method in
9159 "file_magic "*)
9160 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9161 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9162 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9163 $EGREP "$file_magic_regex" > /dev/null; then
9164 :
9165 else
9166 cat <<_LT_EOF 1>&2
9167
9168*** Warning: the command libtool uses to detect shared libraries,
9169*** $file_magic_cmd, produces output that libtool cannot recognize.
9170*** The result is that libtool may fail to recognize shared libraries
9171*** as such. This will affect the creation of libtool libraries that
9172*** depend on shared libraries, but programs linked with such libtool
9173*** libraries will work regardless of this problem. Nevertheless, you
9174*** may want to report the problem to your system manager and/or to
9175*** bug-libtool@gnu.org
9176
9177_LT_EOF
9178 fi ;;
9179 esac
9180 fi
9181 break
9182 fi
9183 done
9184 IFS="$lt_save_ifs"
9185 MAGIC_CMD="$lt_save_MAGIC_CMD"
9186 ;;
9187esac
9188fi
9189
9190MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9191if test -n "$MAGIC_CMD"; then
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9193$as_echo "$MAGIC_CMD" >&6; }
9194else
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9196$as_echo "no" >&6; }
9197fi
9198
9199
9200 else
9201 MAGIC_CMD=:
9202 fi
9203fi
9204
9205 fi
9206 ;;
9207esac
9208
9209# Use C for the default configuration in the libtool script
9210
9211lt_save_CC="$CC"
9212ac_ext=c
9213ac_cpp='$CPP $CPPFLAGS'
9214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9216ac_compiler_gnu=$ac_cv_c_compiler_gnu
9217
9218
9219# Source file extension for C test sources.
9220ac_ext=c
9221
9222# Object file extension for compiled C test sources.
9223objext=o
9224objext=$objext
9225
9226# Code to be used in simple compile tests
9227lt_simple_compile_test_code="int some_variable = 0;"
9228
9229# Code to be used in simple link tests
9230lt_simple_link_test_code='int main(){return(0);}'
9231
9232
9233
9234
9235
9236
9237
9238# If no C compiler was specified, use CC.
9239LTCC=${LTCC-"$CC"}
9240
9241# If no C compiler flags were specified, use CFLAGS.
9242LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9243
9244# Allow CC to be a program name with arguments.
9245compiler=$CC
9246
9247# Save the default compiler, since it gets overwritten when the other
9248# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9249compiler_DEFAULT=$CC
9250
9251# save warnings/boilerplate of simple test code
9252ac_outfile=conftest.$ac_objext
9253echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9254eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9255_lt_compiler_boilerplate=`cat conftest.err`
9256$RM conftest*
9257
9258ac_outfile=conftest.$ac_objext
9259echo "$lt_simple_link_test_code" >conftest.$ac_ext
9260eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9261_lt_linker_boilerplate=`cat conftest.err`
9262$RM -r conftest*
9263
9264
9265## CAVEAT EMPTOR:
9266## There is no encapsulation within the following macros, do not change
9267## the running order or otherwise move them around unless you know exactly
9268## what you are doing...
9269if test -n "$compiler"; then
9270
9271lt_prog_compiler_no_builtin_flag=
9272
9273if test "$GCC" = yes; then
9274 case $cc_basename in
9275 nvcc*)
9276 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9277 *)
9278 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9279 esac
9280
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9282$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9283if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9284 $as_echo_n "(cached) " >&6
9285else
9286 lt_cv_prog_compiler_rtti_exceptions=no
9287 ac_outfile=conftest.$ac_objext
9288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9289 lt_compiler_flag="-fno-rtti -fno-exceptions"
9290 # Insert the option either (1) after the last *FLAGS variable, or
9291 # (2) before a word containing "conftest.", or (3) at the end.
9292 # Note that $ac_compile itself does not contain backslashes and begins
9293 # with a dollar sign (not a hyphen), so the echo should work correctly.
9294 # The option is referenced via a variable to avoid confusing sed.
9295 lt_compile=`echo "$ac_compile" | $SED \
9296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9298 -e 's:$: $lt_compiler_flag:'`
9299 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9300 (eval "$lt_compile" 2>conftest.err)
9301 ac_status=$?
9302 cat conftest.err >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 if (exit $ac_status) && test -s "$ac_outfile"; then
9305 # The compiler can only warn and ignore the option if not recognized
9306 # So say no if there are warnings other than the usual output.
9307 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9309 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9310 lt_cv_prog_compiler_rtti_exceptions=yes
9311 fi
9312 fi
9313 $RM conftest*
9314
9315fi
9316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9317$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9318
9319if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9320 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9321else
9322 :
9323fi
9324
9325fi
9326
9327
9328
9329
9330
9331
9332 lt_prog_compiler_wl=
9333lt_prog_compiler_pic=
9334lt_prog_compiler_static=
9335
9336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9337$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9338
9339 if test "$GCC" = yes; then
9340 lt_prog_compiler_wl='-Wl,'
9341 lt_prog_compiler_static='-static'
9342
9343 case $host_os in
9344 aix*)
9345 # All AIX code is PIC.
9346 if test "$host_cpu" = ia64; then
9347 # AIX 5 now supports IA64 processor
9348 lt_prog_compiler_static='-Bstatic'
9349 fi
9350 lt_prog_compiler_pic='-fPIC'
9351 ;;
9352
9353 amigaos*)
9354 case $host_cpu in
9355 powerpc)
9356 # see comment about AmigaOS4 .so support
9357 lt_prog_compiler_pic='-fPIC'
9358 ;;
9359 m68k)
9360 # FIXME: we need at least 68020 code to build shared libraries, but
9361 # adding the `-m68020' flag to GCC prevents building anything better,
9362 # like `-m68040'.
9363 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9364 ;;
9365 esac
9366 ;;
9367
9368 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9369 # PIC is the default for these OSes.
9370 ;;
9371
9372 mingw* | cygwin* | pw32* | os2* | cegcc*)
9373 # This hack is so that the source file can tell whether it is being
9374 # built for inclusion in a dll (and should export symbols for example).
9375 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9376 # (--disable-auto-import) libraries
9377 lt_prog_compiler_pic='-DDLL_EXPORT'
9378 ;;
9379
9380 darwin* | rhapsody*)
9381 # PIC is the default on this platform
9382 # Common symbols not allowed in MH_DYLIB files
9383 lt_prog_compiler_pic='-fno-common'
9384 ;;
9385
9386 haiku*)
9387 # PIC is the default for Haiku.
9388 # The "-static" flag exists, but is broken.
9389 lt_prog_compiler_static=
9390 ;;
9391
9392 hpux*)
9393 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9394 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9395 # sets the default TLS model and affects inlining.
9396 case $host_cpu in
9397 hppa*64*)
9398 # +Z the default
9399 ;;
9400 *)
9401 lt_prog_compiler_pic='-fPIC'
9402 ;;
9403 esac
9404 ;;
9405
9406 interix[3-9]*)
9407 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9408 # Instead, we relocate shared libraries at runtime.
9409 ;;
9410
9411 msdosdjgpp*)
9412 # Just because we use GCC doesn't mean we suddenly get shared libraries
9413 # on systems that don't support them.
9414 lt_prog_compiler_can_build_shared=no
9415 enable_shared=no
9416 ;;
9417
9418 *nto* | *qnx*)
9419 # QNX uses GNU C++, but need to define -shared option too, otherwise
9420 # it will coredump.
9421 lt_prog_compiler_pic='-fPIC -shared'
9422 ;;
9423
9424 sysv4*MP*)
9425 if test -d /usr/nec; then
9426 lt_prog_compiler_pic=-Kconform_pic
9427 fi
9428 ;;
9429
9430 *)
9431 lt_prog_compiler_pic='-fPIC'
9432 ;;
9433 esac
9434
9435 case $cc_basename in
9436 nvcc*) # Cuda Compiler Driver 2.2
9437 lt_prog_compiler_wl='-Xlinker '
9438 lt_prog_compiler_pic='-Xcompiler -fPIC'
9439 ;;
9440 esac
9441 else
9442 # PORTME Check for flag to pass linker flags through the system compiler.
9443 case $host_os in
9444 aix*)
9445 lt_prog_compiler_wl='-Wl,'
9446 if test "$host_cpu" = ia64; then
9447 # AIX 5 now supports IA64 processor
9448 lt_prog_compiler_static='-Bstatic'
9449 else
9450 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9451 fi
9452 ;;
9453
9454 mingw* | cygwin* | pw32* | os2* | cegcc*)
9455 # This hack is so that the source file can tell whether it is being
9456 # built for inclusion in a dll (and should export symbols for example).
9457 lt_prog_compiler_pic='-DDLL_EXPORT'
9458 ;;
9459
9460 hpux9* | hpux10* | hpux11*)
9461 lt_prog_compiler_wl='-Wl,'
9462 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9463 # not for PA HP-UX.
9464 case $host_cpu in
9465 hppa*64*|ia64*)
9466 # +Z the default
9467 ;;
9468 *)
9469 lt_prog_compiler_pic='+Z'
9470 ;;
9471 esac
9472 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9473 lt_prog_compiler_static='${wl}-a ${wl}archive'
9474 ;;
9475
9476 irix5* | irix6* | nonstopux*)
9477 lt_prog_compiler_wl='-Wl,'
9478 # PIC (with -KPIC) is the default.
9479 lt_prog_compiler_static='-non_shared'
9480 ;;
9481
9482 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9483 case $cc_basename in
9484 # old Intel for x86_64 which still supported -KPIC.
9485 ecc*)
9486 lt_prog_compiler_wl='-Wl,'
9487 lt_prog_compiler_pic='-KPIC'
9488 lt_prog_compiler_static='-static'
9489 ;;
9490 # icc used to be incompatible with GCC.
9491 # ICC 10 doesn't accept -KPIC any more.
9492 icc* | ifort*)
9493 lt_prog_compiler_wl='-Wl,'
9494 lt_prog_compiler_pic='-fPIC'
9495 lt_prog_compiler_static='-static'
9496 ;;
9497 # Lahey Fortran 8.1.
9498 lf95*)
9499 lt_prog_compiler_wl='-Wl,'
9500 lt_prog_compiler_pic='--shared'
9501 lt_prog_compiler_static='--static'
9502 ;;
9503 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9504 # Portland Group compilers (*not* the Pentium gcc compiler,
9505 # which looks to be a dead project)
9506 lt_prog_compiler_wl='-Wl,'
9507 lt_prog_compiler_pic='-fpic'
9508 lt_prog_compiler_static='-Bstatic'
9509 ;;
9510 ccc*)
9511 lt_prog_compiler_wl='-Wl,'
9512 # All Alpha code is PIC.
9513 lt_prog_compiler_static='-non_shared'
9514 ;;
9515 xl* | bgxl* | bgf* | mpixl*)
9516 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9517 lt_prog_compiler_wl='-Wl,'
9518 lt_prog_compiler_pic='-qpic'
9519 lt_prog_compiler_static='-qstaticlink'
9520 ;;
9521 *)
9522 case `$CC -V 2>&1 | sed 5q` in
9523 *Sun\ F* | *Sun*Fortran*)
9524 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9525 lt_prog_compiler_pic='-KPIC'
9526 lt_prog_compiler_static='-Bstatic'
9527 lt_prog_compiler_wl=''
9528 ;;
9529 *Sun\ C*)
9530 # Sun C 5.9
9531 lt_prog_compiler_pic='-KPIC'
9532 lt_prog_compiler_static='-Bstatic'
9533 lt_prog_compiler_wl='-Wl,'
9534 ;;
9535 esac
9536 ;;
9537 esac
9538 ;;
9539
9540 newsos6)
9541 lt_prog_compiler_pic='-KPIC'
9542 lt_prog_compiler_static='-Bstatic'
9543 ;;
9544
9545 *nto* | *qnx*)
9546 # QNX uses GNU C++, but need to define -shared option too, otherwise
9547 # it will coredump.
9548 lt_prog_compiler_pic='-fPIC -shared'
9549 ;;
9550
9551 osf3* | osf4* | osf5*)
9552 lt_prog_compiler_wl='-Wl,'
9553 # All OSF/1 code is PIC.
9554 lt_prog_compiler_static='-non_shared'
9555 ;;
9556
9557 rdos*)
9558 lt_prog_compiler_static='-non_shared'
9559 ;;
9560
9561 solaris*)
9562 lt_prog_compiler_pic='-KPIC'
9563 lt_prog_compiler_static='-Bstatic'
9564 case $cc_basename in
9565 f77* | f90* | f95*)
9566 lt_prog_compiler_wl='-Qoption ld ';;
9567 *)
9568 lt_prog_compiler_wl='-Wl,';;
9569 esac
9570 ;;
9571
9572 sunos4*)
9573 lt_prog_compiler_wl='-Qoption ld '
9574 lt_prog_compiler_pic='-PIC'
9575 lt_prog_compiler_static='-Bstatic'
9576 ;;
9577
9578 sysv4 | sysv4.2uw2* | sysv4.3*)
9579 lt_prog_compiler_wl='-Wl,'
9580 lt_prog_compiler_pic='-KPIC'
9581 lt_prog_compiler_static='-Bstatic'
9582 ;;
9583
9584 sysv4*MP*)
9585 if test -d /usr/nec ;then
9586 lt_prog_compiler_pic='-Kconform_pic'
9587 lt_prog_compiler_static='-Bstatic'
9588 fi
9589 ;;
9590
9591 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9592 lt_prog_compiler_wl='-Wl,'
9593 lt_prog_compiler_pic='-KPIC'
9594 lt_prog_compiler_static='-Bstatic'
9595 ;;
9596
9597 unicos*)
9598 lt_prog_compiler_wl='-Wl,'
9599 lt_prog_compiler_can_build_shared=no
9600 ;;
9601
9602 uts4*)
9603 lt_prog_compiler_pic='-pic'
9604 lt_prog_compiler_static='-Bstatic'
9605 ;;
9606
9607 *)
9608 lt_prog_compiler_can_build_shared=no
9609 ;;
9610 esac
9611 fi
9612
9613case $host_os in
9614 # For platforms which do not support PIC, -DPIC is meaningless:
9615 *djgpp*)
9616 lt_prog_compiler_pic=
9617 ;;
9618 *)
9619 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9620 ;;
9621esac
9622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9623$as_echo "$lt_prog_compiler_pic" >&6; }
9624
9625
9626
9627
9628
9629
9630#
9631# Check to make sure the PIC flag actually works.
9632#
9633if test -n "$lt_prog_compiler_pic"; then
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9635$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9636if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9637 $as_echo_n "(cached) " >&6
9638else
9639 lt_cv_prog_compiler_pic_works=no
9640 ac_outfile=conftest.$ac_objext
9641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9642 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9643 # Insert the option either (1) after the last *FLAGS variable, or
9644 # (2) before a word containing "conftest.", or (3) at the end.
9645 # Note that $ac_compile itself does not contain backslashes and begins
9646 # with a dollar sign (not a hyphen), so the echo should work correctly.
9647 # The option is referenced via a variable to avoid confusing sed.
9648 lt_compile=`echo "$ac_compile" | $SED \
9649 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9651 -e 's:$: $lt_compiler_flag:'`
9652 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9653 (eval "$lt_compile" 2>conftest.err)
9654 ac_status=$?
9655 cat conftest.err >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 if (exit $ac_status) && test -s "$ac_outfile"; then
9658 # The compiler can only warn and ignore the option if not recognized
9659 # So say no if there are warnings other than the usual output.
9660 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9662 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9663 lt_cv_prog_compiler_pic_works=yes
9664 fi
9665 fi
9666 $RM conftest*
9667
9668fi
9669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9670$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9671
9672if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9673 case $lt_prog_compiler_pic in
9674 "" | " "*) ;;
9675 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9676 esac
9677else
9678 lt_prog_compiler_pic=
9679 lt_prog_compiler_can_build_shared=no
9680fi
9681
9682fi
9683
9684
9685
9686
9687
9688
9689#
9690# Check to make sure the static flag actually works.
9691#
9692wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9694$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9695if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9696 $as_echo_n "(cached) " >&6
9697else
9698 lt_cv_prog_compiler_static_works=no
9699 save_LDFLAGS="$LDFLAGS"
9700 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9701 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9702 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9703 # The linker can only warn and ignore the option if not recognized
9704 # So say no if there are warnings
9705 if test -s conftest.err; then
9706 # Append any errors to the config.log.
9707 cat conftest.err 1>&5
9708 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9710 if diff conftest.exp conftest.er2 >/dev/null; then
9711 lt_cv_prog_compiler_static_works=yes
9712 fi
9713 else
9714 lt_cv_prog_compiler_static_works=yes
9715 fi
9716 fi
9717 $RM -r conftest*
9718 LDFLAGS="$save_LDFLAGS"
9719
9720fi
9721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9722$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9723
9724if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9725 :
9726else
9727 lt_prog_compiler_static=
9728fi
9729
9730
9731
9732
9733
9734
9735
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9737$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9738if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9739 $as_echo_n "(cached) " >&6
9740else
9741 lt_cv_prog_compiler_c_o=no
9742 $RM -r conftest 2>/dev/null
9743 mkdir conftest
9744 cd conftest
9745 mkdir out
9746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9747
9748 lt_compiler_flag="-o out/conftest2.$ac_objext"
9749 # Insert the option either (1) after the last *FLAGS variable, or
9750 # (2) before a word containing "conftest.", or (3) at the end.
9751 # Note that $ac_compile itself does not contain backslashes and begins
9752 # with a dollar sign (not a hyphen), so the echo should work correctly.
9753 lt_compile=`echo "$ac_compile" | $SED \
9754 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9755 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9756 -e 's:$: $lt_compiler_flag:'`
9757 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9758 (eval "$lt_compile" 2>out/conftest.err)
9759 ac_status=$?
9760 cat out/conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9763 then
9764 # The compiler can only warn and ignore the option if not recognized
9765 # So say no if there are warnings
9766 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9767 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9768 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9769 lt_cv_prog_compiler_c_o=yes
9770 fi
9771 fi
9772 chmod u+w . 2>&5
9773 $RM conftest*
9774 # SGI C++ compiler will create directory out/ii_files/ for
9775 # template instantiation
9776 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9777 $RM out/* && rmdir out
9778 cd ..
9779 $RM -r conftest
9780 $RM conftest*
9781
9782fi
9783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9784$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9785
9786
9787
9788
9789
9790
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9792$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9793if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9794 $as_echo_n "(cached) " >&6
9795else
9796 lt_cv_prog_compiler_c_o=no
9797 $RM -r conftest 2>/dev/null
9798 mkdir conftest
9799 cd conftest
9800 mkdir out
9801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9802
9803 lt_compiler_flag="-o out/conftest2.$ac_objext"
9804 # Insert the option either (1) after the last *FLAGS variable, or
9805 # (2) before a word containing "conftest.", or (3) at the end.
9806 # Note that $ac_compile itself does not contain backslashes and begins
9807 # with a dollar sign (not a hyphen), so the echo should work correctly.
9808 lt_compile=`echo "$ac_compile" | $SED \
9809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9811 -e 's:$: $lt_compiler_flag:'`
9812 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9813 (eval "$lt_compile" 2>out/conftest.err)
9814 ac_status=$?
9815 cat out/conftest.err >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9818 then
9819 # The compiler can only warn and ignore the option if not recognized
9820 # So say no if there are warnings
9821 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9822 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9823 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9824 lt_cv_prog_compiler_c_o=yes
9825 fi
9826 fi
9827 chmod u+w . 2>&5
9828 $RM conftest*
9829 # SGI C++ compiler will create directory out/ii_files/ for
9830 # template instantiation
9831 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9832 $RM out/* && rmdir out
9833 cd ..
9834 $RM -r conftest
9835 $RM conftest*
9836
9837fi
9838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9839$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9840
9841
9842
9843
9844hard_links="nottested"
9845if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9846 # do not overwrite the value of need_locks provided by the user
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9848$as_echo_n "checking if we can lock with hard links... " >&6; }
9849 hard_links=yes
9850 $RM conftest*
9851 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9852 touch conftest.a
9853 ln conftest.a conftest.b 2>&5 || hard_links=no
9854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9856$as_echo "$hard_links" >&6; }
9857 if test "$hard_links" = no; then
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9859$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9860 need_locks=warn
9861 fi
9862else
9863 need_locks=no
9864fi
9865
9866
9867
9868
9869
9870
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9872$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9873
9874 runpath_var=
9875 allow_undefined_flag=
9876 always_export_symbols=no
9877 archive_cmds=
9878 archive_expsym_cmds=
9879 compiler_needs_object=no
9880 enable_shared_with_static_runtimes=no
9881 export_dynamic_flag_spec=
9882 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9883 hardcode_automatic=no
9884 hardcode_direct=no
9885 hardcode_direct_absolute=no
9886 hardcode_libdir_flag_spec=
9887 hardcode_libdir_flag_spec_ld=
9888 hardcode_libdir_separator=
9889 hardcode_minus_L=no
9890 hardcode_shlibpath_var=unsupported
9891 inherit_rpath=no
9892 link_all_deplibs=unknown
9893 module_cmds=
9894 module_expsym_cmds=
9895 old_archive_from_new_cmds=
9896 old_archive_from_expsyms_cmds=
9897 thread_safe_flag_spec=
9898 whole_archive_flag_spec=
9899 # include_expsyms should be a list of space-separated symbols to be *always*
9900 # included in the symbol list
9901 include_expsyms=
9902 # exclude_expsyms can be an extended regexp of symbols to exclude
9903 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9904 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9905 # as well as any symbol that contains `d'.
9906 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9907 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9908 # platforms (ab)use it in PIC code, but their linkers get confused if
9909 # the symbol is explicitly referenced. Since portable code cannot
9910 # rely on this symbol name, it's probably fine to never include it in
9911 # preloaded symbol tables.
9912 # Exclude shared library initialization/finalization symbols.
9913 extract_expsyms_cmds=
9914
9915 case $host_os in
9916 cygwin* | mingw* | pw32* | cegcc*)
9917 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9918 # When not using gcc, we currently assume that we are using
9919 # Microsoft Visual C++.
9920 if test "$GCC" != yes; then
9921 with_gnu_ld=no
9922 fi
9923 ;;
9924 interix*)
9925 # we just hope/assume this is gcc and not c89 (= MSVC++)
9926 with_gnu_ld=yes
9927 ;;
9928 openbsd*)
9929 with_gnu_ld=no
9930 ;;
9931 esac
9932
9933 ld_shlibs=yes
9934
9935 # On some targets, GNU ld is compatible enough with the native linker
9936 # that we're better off using the native interface for both.
9937 lt_use_gnu_ld_interface=no
9938 if test "$with_gnu_ld" = yes; then
9939 case $host_os in
9940 aix*)
9941 # The AIX port of GNU ld has always aspired to compatibility
9942 # with the native linker. However, as the warning in the GNU ld
9943 # block says, versions before 2.19.5* couldn't really create working
9944 # shared libraries, regardless of the interface used.
9945 case `$LD -v 2>&1` in
9946 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9947 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9948 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9949 *)
9950 lt_use_gnu_ld_interface=yes
9951 ;;
9952 esac
9953 ;;
9954 *)
9955 lt_use_gnu_ld_interface=yes
9956 ;;
9957 esac
9958 fi
9959
9960 if test "$lt_use_gnu_ld_interface" = yes; then
9961 # If archive_cmds runs LD, not CC, wlarc should be empty
9962 wlarc='${wl}'
9963
9964 # Set some defaults for GNU ld with shared library support. These
9965 # are reset later if shared libraries are not supported. Putting them
9966 # here allows them to be overridden if necessary.
9967 runpath_var=LD_RUN_PATH
9968 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9969 export_dynamic_flag_spec='${wl}--export-dynamic'
9970 # ancient GNU ld didn't support --whole-archive et. al.
9971 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9972 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9973 else
9974 whole_archive_flag_spec=
9975 fi
9976 supports_anon_versioning=no
9977 case `$LD -v 2>&1` in
9978 *GNU\ gold*) supports_anon_versioning=yes ;;
9979 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9980 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9981 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9982 *\ 2.11.*) ;; # other 2.11 versions
9983 *) supports_anon_versioning=yes ;;
9984 esac
9985
9986 # See if GNU ld supports shared libraries.
9987 case $host_os in
9988 aix[3-9]*)
9989 # On AIX/PPC, the GNU linker is very broken
9990 if test "$host_cpu" != ia64; then
9991 ld_shlibs=no
9992 cat <<_LT_EOF 1>&2
9993
9994*** Warning: the GNU linker, at least up to release 2.19, is reported
9995*** to be unable to reliably create shared libraries on AIX.
9996*** Therefore, libtool is disabling shared libraries support. If you
9997*** really care for shared libraries, you may want to install binutils
9998*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9999*** You will then need to restart the configuration process.
10000
10001_LT_EOF
10002 fi
10003 ;;
10004
10005 amigaos*)
10006 case $host_cpu in
10007 powerpc)
10008 # see comment about AmigaOS4 .so support
10009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10010 archive_expsym_cmds=''
10011 ;;
10012 m68k)
10013 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)'
10014 hardcode_libdir_flag_spec='-L$libdir'
10015 hardcode_minus_L=yes
10016 ;;
10017 esac
10018 ;;
10019
10020 beos*)
10021 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10022 allow_undefined_flag=unsupported
10023 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10024 # support --undefined. This deserves some investigation. FIXME
10025 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10026 else
10027 ld_shlibs=no
10028 fi
10029 ;;
10030
10031 cygwin* | mingw* | pw32* | cegcc*)
10032 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10033 # as there is no search path for DLLs.
10034 hardcode_libdir_flag_spec='-L$libdir'
10035 export_dynamic_flag_spec='${wl}--export-all-symbols'
10036 allow_undefined_flag=unsupported
10037 always_export_symbols=no
10038 enable_shared_with_static_runtimes=yes
10039 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10040
10041 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10043 # If the export-symbols file already is a .def file (1st line
10044 # is EXPORTS), use it as is; otherwise, prepend...
10045 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10046 cp $export_symbols $output_objdir/$soname.def;
10047 else
10048 echo EXPORTS > $output_objdir/$soname.def;
10049 cat $export_symbols >> $output_objdir/$soname.def;
10050 fi~
10051 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10052 else
10053 ld_shlibs=no
10054 fi
10055 ;;
10056
10057 haiku*)
10058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10059 link_all_deplibs=yes
10060 ;;
10061
10062 interix[3-9]*)
10063 hardcode_direct=no
10064 hardcode_shlibpath_var=no
10065 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10066 export_dynamic_flag_spec='${wl}-E'
10067 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10068 # Instead, shared libraries are loaded at an image base (0x10000000 by
10069 # default) and relocated if they conflict, which is a slow very memory
10070 # consuming and fragmenting process. To avoid this, we pick a random,
10071 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10072 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10073 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10074 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'
10075 ;;
10076
10077 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10078 tmp_diet=no
10079 if test "$host_os" = linux-dietlibc; then
10080 case $cc_basename in
10081 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10082 esac
10083 fi
10084 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10085 && test "$tmp_diet" = no
10086 then
10087 tmp_addflag=
10088 tmp_sharedflag='-shared'
10089 case $cc_basename,$host_cpu in
10090 pgcc*) # Portland Group C compiler
10091 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'
10092 tmp_addflag=' $pic_flag'
10093 ;;
10094 pgf77* | pgf90* | pgf95* | pgfortran*)
10095 # Portland Group f77 and f90 compilers
10096 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'
10097 tmp_addflag=' $pic_flag -Mnomain' ;;
10098 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10099 tmp_addflag=' -i_dynamic' ;;
10100 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10101 tmp_addflag=' -i_dynamic -nofor_main' ;;
10102 ifc* | ifort*) # Intel Fortran compiler
10103 tmp_addflag=' -nofor_main' ;;
10104 lf95*) # Lahey Fortran 8.1
10105 whole_archive_flag_spec=
10106 tmp_sharedflag='--shared' ;;
10107 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10108 tmp_sharedflag='-qmkshrobj'
10109 tmp_addflag= ;;
10110 nvcc*) # Cuda Compiler Driver 2.2
10111 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'
10112 compiler_needs_object=yes
10113 ;;
10114 esac
10115 case `$CC -V 2>&1 | sed 5q` in
10116 *Sun\ C*) # Sun C 5.9
10117 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'
10118 compiler_needs_object=yes
10119 tmp_sharedflag='-G' ;;
10120 *Sun\ F*) # Sun Fortran 8.3
10121 tmp_sharedflag='-G' ;;
10122 esac
10123 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10124
10125 if test "x$supports_anon_versioning" = xyes; then
10126 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10127 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10128 echo "local: *; };" >> $output_objdir/$libname.ver~
10129 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10130 fi
10131
10132 case $cc_basename in
10133 xlf* | bgf* | bgxlf* | mpixlf*)
10134 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10135 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10136 hardcode_libdir_flag_spec=
10137 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10138 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10139 if test "x$supports_anon_versioning" = xyes; then
10140 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10141 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10142 echo "local: *; };" >> $output_objdir/$libname.ver~
10143 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10144 fi
10145 ;;
10146 esac
10147 else
10148 ld_shlibs=no
10149 fi
10150 ;;
10151
10152 netbsd*)
10153 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10154 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10155 wlarc=
10156 else
10157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10158 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10159 fi
10160 ;;
10161
10162 solaris*)
10163 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10164 ld_shlibs=no
10165 cat <<_LT_EOF 1>&2
10166
10167*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10168*** create shared libraries on Solaris systems. Therefore, libtool
10169*** is disabling shared libraries support. We urge you to upgrade GNU
10170*** binutils to release 2.9.1 or newer. Another option is to modify
10171*** your PATH or compiler configuration so that the native linker is
10172*** used, and then restart.
10173
10174_LT_EOF
10175 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10177 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10178 else
10179 ld_shlibs=no
10180 fi
10181 ;;
10182
10183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10184 case `$LD -v 2>&1` in
10185 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10186 ld_shlibs=no
10187 cat <<_LT_EOF 1>&2
10188
10189*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10190*** reliably create shared libraries on SCO systems. Therefore, libtool
10191*** is disabling shared libraries support. We urge you to upgrade GNU
10192*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10193*** your PATH or compiler configuration so that the native linker is
10194*** used, and then restart.
10195
10196_LT_EOF
10197 ;;
10198 *)
10199 # For security reasons, it is highly recommended that you always
10200 # use absolute paths for naming shared libraries, and exclude the
10201 # DT_RUNPATH tag from executables and libraries. But doing so
10202 # requires that you compile everything twice, which is a pain.
10203 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10204 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10206 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10207 else
10208 ld_shlibs=no
10209 fi
10210 ;;
10211 esac
10212 ;;
10213
10214 sunos4*)
10215 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10216 wlarc=
10217 hardcode_direct=yes
10218 hardcode_shlibpath_var=no
10219 ;;
10220
10221 *)
10222 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10224 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10225 else
10226 ld_shlibs=no
10227 fi
10228 ;;
10229 esac
10230
10231 if test "$ld_shlibs" = no; then
10232 runpath_var=
10233 hardcode_libdir_flag_spec=
10234 export_dynamic_flag_spec=
10235 whole_archive_flag_spec=
10236 fi
10237 else
10238 # PORTME fill in a description of your system's linker (not GNU ld)
10239 case $host_os in
10240 aix3*)
10241 allow_undefined_flag=unsupported
10242 always_export_symbols=yes
10243 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'
10244 # Note: this linker hardcodes the directories in LIBPATH if there
10245 # are no directories specified by -L.
10246 hardcode_minus_L=yes
10247 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10248 # Neither direct hardcoding nor static linking is supported with a
10249 # broken collect2.
10250 hardcode_direct=unsupported
10251 fi
10252 ;;
10253
10254 aix[4-9]*)
10255 if test "$host_cpu" = ia64; then
10256 # On IA64, the linker does run time linking by default, so we don't
10257 # have to do anything special.
10258 aix_use_runtimelinking=no
10259 exp_sym_flag='-Bexport'
10260 no_entry_flag=""
10261 else
10262 # If we're using GNU nm, then we don't want the "-C" option.
10263 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10264 # Also, AIX nm treats weak defined symbols like other global
10265 # defined symbols, whereas GNU nm marks them as "W".
10266 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10267 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'
10268 else
10269 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10270 fi
10271 aix_use_runtimelinking=no
10272
10273 # Test if we are trying to use run time linking or normal
10274 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10275 # need to do runtime linking.
10276 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10277 for ld_flag in $LDFLAGS; do
10278 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10279 aix_use_runtimelinking=yes
10280 break
10281 fi
10282 done
10283 ;;
10284 esac
10285
10286 exp_sym_flag='-bexport'
10287 no_entry_flag='-bnoentry'
10288 fi
10289
10290 # When large executables or shared objects are built, AIX ld can
10291 # have problems creating the table of contents. If linking a library
10292 # or program results in "error TOC overflow" add -mminimal-toc to
10293 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10294 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10295
10296 archive_cmds=''
10297 hardcode_direct=yes
10298 hardcode_direct_absolute=yes
10299 hardcode_libdir_separator=':'
10300 link_all_deplibs=yes
10301 file_list_spec='${wl}-f,'
10302
10303 if test "$GCC" = yes; then
10304 case $host_os in aix4.[012]|aix4.[012].*)
10305 # We only want to do this on AIX 4.2 and lower, the check
10306 # below for broken collect2 doesn't work under 4.3+
10307 collect2name=`${CC} -print-prog-name=collect2`
10308 if test -f "$collect2name" &&
10309 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10310 then
10311 # We have reworked collect2
10312 :
10313 else
10314 # We have old collect2
10315 hardcode_direct=unsupported
10316 # It fails to find uninstalled libraries when the uninstalled
10317 # path is not listed in the libpath. Setting hardcode_minus_L
10318 # to unsupported forces relinking
10319 hardcode_minus_L=yes
10320 hardcode_libdir_flag_spec='-L$libdir'
10321 hardcode_libdir_separator=
10322 fi
10323 ;;
10324 esac
10325 shared_flag='-shared'
10326 if test "$aix_use_runtimelinking" = yes; then
10327 shared_flag="$shared_flag "'${wl}-G'
10328 fi
10329 else
10330 # not using gcc
10331 if test "$host_cpu" = ia64; then
10332 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10333 # chokes on -Wl,-G. The following line is correct:
10334 shared_flag='-G'
10335 else
10336 if test "$aix_use_runtimelinking" = yes; then
10337 shared_flag='${wl}-G'
10338 else
10339 shared_flag='${wl}-bM:SRE'
10340 fi
10341 fi
10342 fi
10343
10344 export_dynamic_flag_spec='${wl}-bexpall'
10345 # It seems that -bexpall does not export symbols beginning with
10346 # underscore (_), so it is better to generate a list of symbols to export.
10347 always_export_symbols=yes
10348 if test "$aix_use_runtimelinking" = yes; then
10349 # Warning - without using the other runtime loading flags (-brtl),
10350 # -berok will link without error, but may produce a broken library.
10351 allow_undefined_flag='-berok'
10352 # Determine the default libpath from the value encoded in an
10353 # empty executable.
10354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355/* end confdefs.h. */
10356
10357int
10358main ()
10359{
10360
10361 ;
10362 return 0;
ef016f83 10363}
6bb11ab3
L
10364_ACEOF
10365if ac_fn_c_try_link "$LINENO"; then :
10366
10367lt_aix_libpath_sed='
10368 /Import File Strings/,/^$/ {
10369 /^0/ {
10370 s/^0 *\(.*\)$/\1/
10371 p
10372 }
10373 }'
10374aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10375# Check for a 64-bit object if we didn't find anything.
10376if test -z "$aix_libpath"; then
10377 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10378fi
10379fi
10380rm -f core conftest.err conftest.$ac_objext \
10381 conftest$ac_exeext conftest.$ac_ext
10382if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10383
10384 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10385 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"
10386 else
10387 if test "$host_cpu" = ia64; then
10388 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10389 allow_undefined_flag="-z nodefs"
10390 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"
10391 else
10392 # Determine the default libpath from the value encoded in an
10393 # empty executable.
10394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395/* end confdefs.h. */
10396
10397int
10398main ()
ef016f83 10399{
6bb11ab3
L
10400
10401 ;
10402 return 0;
ef016f83 10403}
6bb11ab3
L
10404_ACEOF
10405if ac_fn_c_try_link "$LINENO"; then :
10406
10407lt_aix_libpath_sed='
10408 /Import File Strings/,/^$/ {
10409 /^0/ {
10410 s/^0 *\(.*\)$/\1/
10411 p
10412 }
10413 }'
10414aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10415# Check for a 64-bit object if we didn't find anything.
10416if test -z "$aix_libpath"; then
10417 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10418fi
10419fi
10420rm -f core conftest.err conftest.$ac_objext \
10421 conftest$ac_exeext conftest.$ac_ext
10422if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10423
10424 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10425 # Warning - without using the other run time loading flags,
10426 # -berok will link without error, but may produce a broken library.
10427 no_undefined_flag=' ${wl}-bernotok'
10428 allow_undefined_flag=' ${wl}-berok'
10429 if test "$with_gnu_ld" = yes; then
10430 # We only use this code for GNU lds that support --whole-archive.
10431 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10432 else
10433 # Exported symbols can be pulled into shared objects from archives
10434 whole_archive_flag_spec='$convenience'
10435 fi
10436 archive_cmds_need_lc=yes
10437 # This is similar to how AIX traditionally builds its shared libraries.
10438 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'
10439 fi
10440 fi
10441 ;;
10442
10443 amigaos*)
10444 case $host_cpu in
10445 powerpc)
10446 # see comment about AmigaOS4 .so support
10447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10448 archive_expsym_cmds=''
10449 ;;
10450 m68k)
10451 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)'
10452 hardcode_libdir_flag_spec='-L$libdir'
10453 hardcode_minus_L=yes
10454 ;;
10455 esac
10456 ;;
10457
10458 bsdi[45]*)
10459 export_dynamic_flag_spec=-rdynamic
10460 ;;
10461
10462 cygwin* | mingw* | pw32* | cegcc*)
10463 # When not using gcc, we currently assume that we are using
10464 # Microsoft Visual C++.
10465 # hardcode_libdir_flag_spec is actually meaningless, as there is
10466 # no search path for DLLs.
10467 hardcode_libdir_flag_spec=' '
10468 allow_undefined_flag=unsupported
10469 # Tell ltmain to make .lib files, not .a files.
10470 libext=lib
10471 # Tell ltmain to make .dll files, not .so files.
10472 shrext_cmds=".dll"
10473 # FIXME: Setting linknames here is a bad hack.
10474 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10475 # The linker will automatically build a .lib file if we build a DLL.
10476 old_archive_from_new_cmds='true'
10477 # FIXME: Should let the user specify the lib program.
10478 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10479 fix_srcfile_path='`cygpath -w "$srcfile"`'
10480 enable_shared_with_static_runtimes=yes
10481 ;;
10482
10483 darwin* | rhapsody*)
10484
10485
10486 archive_cmds_need_lc=no
10487 hardcode_direct=no
10488 hardcode_automatic=yes
10489 hardcode_shlibpath_var=unsupported
10490 if test "$lt_cv_ld_force_load" = "yes"; then
10491 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\"`'
10492 else
10493 whole_archive_flag_spec=''
10494 fi
10495 link_all_deplibs=yes
10496 allow_undefined_flag="$_lt_dar_allow_undefined"
10497 case $cc_basename in
10498 ifort*) _lt_dar_can_shared=yes ;;
10499 *) _lt_dar_can_shared=$GCC ;;
10500 esac
10501 if test "$_lt_dar_can_shared" = "yes"; then
10502 output_verbose_link_cmd=func_echo_all
10503 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10504 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10505 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}"
10506 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}"
10507
10508 else
10509 ld_shlibs=no
10510 fi
10511
10512 ;;
10513
10514 dgux*)
10515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10516 hardcode_libdir_flag_spec='-L$libdir'
10517 hardcode_shlibpath_var=no
10518 ;;
10519
10520 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10521 # support. Future versions do this automatically, but an explicit c++rt0.o
10522 # does not break anything, and helps significantly (at the cost of a little
10523 # extra space).
10524 freebsd2.2*)
10525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10526 hardcode_libdir_flag_spec='-R$libdir'
10527 hardcode_direct=yes
10528 hardcode_shlibpath_var=no
10529 ;;
10530
10531 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10532 freebsd2.*)
10533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10534 hardcode_direct=yes
10535 hardcode_minus_L=yes
10536 hardcode_shlibpath_var=no
10537 ;;
10538
10539 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10540 freebsd* | dragonfly*)
10541 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10542 hardcode_libdir_flag_spec='-R$libdir'
10543 hardcode_direct=yes
10544 hardcode_shlibpath_var=no
10545 ;;
10546
10547 hpux9*)
10548 if test "$GCC" = yes; then
10549 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'
10550 else
10551 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'
10552 fi
10553 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10554 hardcode_libdir_separator=:
10555 hardcode_direct=yes
10556
10557 # hardcode_minus_L: Not really in the search PATH,
10558 # but as the default location of the library.
10559 hardcode_minus_L=yes
10560 export_dynamic_flag_spec='${wl}-E'
10561 ;;
10562
10563 hpux10*)
10564 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10565 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10566 else
10567 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10568 fi
10569 if test "$with_gnu_ld" = no; then
10570 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10571 hardcode_libdir_flag_spec_ld='+b $libdir'
10572 hardcode_libdir_separator=:
10573 hardcode_direct=yes
10574 hardcode_direct_absolute=yes
10575 export_dynamic_flag_spec='${wl}-E'
10576 # hardcode_minus_L: Not really in the search PATH,
10577 # but as the default location of the library.
10578 hardcode_minus_L=yes
10579 fi
10580 ;;
10581
10582 hpux11*)
10583 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10584 case $host_cpu in
10585 hppa*64*)
10586 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10587 ;;
10588 ia64*)
10589 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10590 ;;
10591 *)
10592 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10593 ;;
10594 esac
10595 else
10596 case $host_cpu in
10597 hppa*64*)
10598 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10599 ;;
10600 ia64*)
10601 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10602 ;;
10603 *)
10604
10605 # Older versions of the 11.00 compiler do not understand -b yet
10606 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10608$as_echo_n "checking if $CC understands -b... " >&6; }
10609if test "${lt_cv_prog_compiler__b+set}" = set; then :
10610 $as_echo_n "(cached) " >&6
10611else
10612 lt_cv_prog_compiler__b=no
10613 save_LDFLAGS="$LDFLAGS"
10614 LDFLAGS="$LDFLAGS -b"
10615 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10616 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10617 # The linker can only warn and ignore the option if not recognized
10618 # So say no if there are warnings
10619 if test -s conftest.err; then
10620 # Append any errors to the config.log.
10621 cat conftest.err 1>&5
10622 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10623 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10624 if diff conftest.exp conftest.er2 >/dev/null; then
10625 lt_cv_prog_compiler__b=yes
10626 fi
10627 else
10628 lt_cv_prog_compiler__b=yes
10629 fi
10630 fi
10631 $RM -r conftest*
10632 LDFLAGS="$save_LDFLAGS"
10633
10634fi
10635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10636$as_echo "$lt_cv_prog_compiler__b" >&6; }
10637
10638if test x"$lt_cv_prog_compiler__b" = xyes; then
10639 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10640else
10641 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10642fi
10643
10644 ;;
10645 esac
10646 fi
10647 if test "$with_gnu_ld" = no; then
10648 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10649 hardcode_libdir_separator=:
10650
10651 case $host_cpu in
10652 hppa*64*|ia64*)
10653 hardcode_direct=no
10654 hardcode_shlibpath_var=no
10655 ;;
10656 *)
10657 hardcode_direct=yes
10658 hardcode_direct_absolute=yes
10659 export_dynamic_flag_spec='${wl}-E'
10660
10661 # hardcode_minus_L: Not really in the search PATH,
10662 # but as the default location of the library.
10663 hardcode_minus_L=yes
10664 ;;
10665 esac
10666 fi
10667 ;;
10668
10669 irix5* | irix6* | nonstopux*)
10670 if test "$GCC" = yes; then
10671 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'
10672 # Try to use the -exported_symbol ld option, if it does not
10673 # work, assume that -exports_file does not work either and
10674 # implicitly export all symbols.
10675 save_LDFLAGS="$LDFLAGS"
10676 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678/* end confdefs.h. */
10679int foo(void) {}
10680_ACEOF
10681if ac_fn_c_try_link "$LINENO"; then :
10682 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'
10683
10684fi
10685rm -f core conftest.err conftest.$ac_objext \
10686 conftest$ac_exeext conftest.$ac_ext
10687 LDFLAGS="$save_LDFLAGS"
10688 else
10689 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'
10690 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'
10691 fi
10692 archive_cmds_need_lc='no'
10693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10694 hardcode_libdir_separator=:
10695 inherit_rpath=yes
10696 link_all_deplibs=yes
10697 ;;
10698
10699 netbsd*)
10700 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10702 else
10703 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10704 fi
10705 hardcode_libdir_flag_spec='-R$libdir'
10706 hardcode_direct=yes
10707 hardcode_shlibpath_var=no
10708 ;;
10709
10710 newsos6)
10711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10712 hardcode_direct=yes
10713 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10714 hardcode_libdir_separator=:
10715 hardcode_shlibpath_var=no
10716 ;;
10717
10718 *nto* | *qnx*)
10719 ;;
10720
10721 openbsd*)
10722 if test -f /usr/libexec/ld.so; then
10723 hardcode_direct=yes
10724 hardcode_shlibpath_var=no
10725 hardcode_direct_absolute=yes
10726 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10727 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10728 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10729 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10730 export_dynamic_flag_spec='${wl}-E'
10731 else
10732 case $host_os in
10733 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10734 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10735 hardcode_libdir_flag_spec='-R$libdir'
10736 ;;
10737 *)
10738 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10739 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10740 ;;
10741 esac
10742 fi
10743 else
10744 ld_shlibs=no
10745 fi
10746 ;;
10747
10748 os2*)
10749 hardcode_libdir_flag_spec='-L$libdir'
10750 hardcode_minus_L=yes
10751 allow_undefined_flag=unsupported
10752 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'
10753 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10754 ;;
10755
10756 osf3*)
10757 if test "$GCC" = yes; then
10758 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10759 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'
10760 else
10761 allow_undefined_flag=' -expect_unresolved \*'
10762 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'
10763 fi
10764 archive_cmds_need_lc='no'
10765 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10766 hardcode_libdir_separator=:
10767 ;;
10768
10769 osf4* | osf5*) # as osf3* with the addition of -msym flag
10770 if test "$GCC" = yes; then
10771 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10772 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'
10773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10774 else
10775 allow_undefined_flag=' -expect_unresolved \*'
10776 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'
10777 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~
10778 $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'
10779
10780 # Both c and cxx compiler support -rpath directly
10781 hardcode_libdir_flag_spec='-rpath $libdir'
10782 fi
10783 archive_cmds_need_lc='no'
10784 hardcode_libdir_separator=:
10785 ;;
10786
10787 solaris*)
10788 no_undefined_flag=' -z defs'
10789 if test "$GCC" = yes; then
10790 wlarc='${wl}'
10791 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10792 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10793 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10794 else
10795 case `$CC -V 2>&1` in
10796 *"Compilers 5.0"*)
10797 wlarc=''
10798 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10799 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10800 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10801 ;;
10802 *)
10803 wlarc='${wl}'
10804 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10805 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10806 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10807 ;;
10808 esac
10809 fi
10810 hardcode_libdir_flag_spec='-R$libdir'
10811 hardcode_shlibpath_var=no
10812 case $host_os in
10813 solaris2.[0-5] | solaris2.[0-5].*) ;;
10814 *)
10815 # The compiler driver will combine and reorder linker options,
10816 # but understands `-z linker_flag'. GCC discards it without `$wl',
10817 # but is careful enough not to reorder.
10818 # Supported since Solaris 2.6 (maybe 2.5.1?)
10819 if test "$GCC" = yes; then
10820 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10821 else
10822 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10823 fi
10824 ;;
10825 esac
10826 link_all_deplibs=yes
10827 ;;
10828
10829 sunos4*)
10830 if test "x$host_vendor" = xsequent; then
10831 # Use $CC to link under sequent, because it throws in some extra .o
10832 # files that make .init and .fini sections work.
10833 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10834 else
10835 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10836 fi
10837 hardcode_libdir_flag_spec='-L$libdir'
10838 hardcode_direct=yes
10839 hardcode_minus_L=yes
10840 hardcode_shlibpath_var=no
10841 ;;
10842
10843 sysv4)
10844 case $host_vendor in
10845 sni)
10846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10847 hardcode_direct=yes # is this really true???
10848 ;;
10849 siemens)
10850 ## LD is ld it makes a PLAMLIB
10851 ## CC just makes a GrossModule.
10852 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10853 reload_cmds='$CC -r -o $output$reload_objs'
10854 hardcode_direct=no
10855 ;;
10856 motorola)
10857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10858 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10859 ;;
10860 esac
10861 runpath_var='LD_RUN_PATH'
10862 hardcode_shlibpath_var=no
10863 ;;
10864
10865 sysv4.3*)
10866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10867 hardcode_shlibpath_var=no
10868 export_dynamic_flag_spec='-Bexport'
10869 ;;
10870
10871 sysv4*MP*)
10872 if test -d /usr/nec; then
10873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10874 hardcode_shlibpath_var=no
10875 runpath_var=LD_RUN_PATH
10876 hardcode_runpath_var=yes
10877 ld_shlibs=yes
10878 fi
10879 ;;
10880
10881 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10882 no_undefined_flag='${wl}-z,text'
10883 archive_cmds_need_lc=no
10884 hardcode_shlibpath_var=no
10885 runpath_var='LD_RUN_PATH'
10886
10887 if test "$GCC" = yes; then
10888 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10889 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10890 else
10891 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10892 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10893 fi
10894 ;;
10895
10896 sysv5* | sco3.2v5* | sco5v6*)
10897 # Note: We can NOT use -z defs as we might desire, because we do not
10898 # link with -lc, and that would cause any symbols used from libc to
10899 # always be unresolved, which means just about no library would
10900 # ever link correctly. If we're not using GNU ld we use -z text
10901 # though, which does catch some bad symbols but isn't as heavy-handed
10902 # as -z defs.
10903 no_undefined_flag='${wl}-z,text'
10904 allow_undefined_flag='${wl}-z,nodefs'
10905 archive_cmds_need_lc=no
10906 hardcode_shlibpath_var=no
10907 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10908 hardcode_libdir_separator=':'
10909 link_all_deplibs=yes
10910 export_dynamic_flag_spec='${wl}-Bexport'
10911 runpath_var='LD_RUN_PATH'
10912
10913 if test "$GCC" = yes; then
10914 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10915 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10916 else
10917 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10918 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10919 fi
10920 ;;
10921
10922 uts4*)
10923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10924 hardcode_libdir_flag_spec='-L$libdir'
10925 hardcode_shlibpath_var=no
10926 ;;
10927
10928 *)
10929 ld_shlibs=no
10930 ;;
10931 esac
10932
10933 if test x$host_vendor = xsni; then
10934 case $host in
10935 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10936 export_dynamic_flag_spec='${wl}-Blargedynsym'
10937 ;;
10938 esac
10939 fi
10940 fi
10941
10942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10943$as_echo "$ld_shlibs" >&6; }
10944test "$ld_shlibs" = no && can_build_shared=no
10945
10946with_gnu_ld=$with_gnu_ld
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962#
10963# Do we need to explicitly link libc?
10964#
10965case "x$archive_cmds_need_lc" in
10966x|xyes)
10967 # Assume -lc should be added
10968 archive_cmds_need_lc=yes
10969
10970 if test "$enable_shared" = yes && test "$GCC" = yes; then
10971 case $archive_cmds in
10972 *'~'*)
10973 # FIXME: we may have to deal with multi-command sequences.
10974 ;;
10975 '$CC '*)
10976 # Test whether the compiler implicitly links with -lc since on some
10977 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10978 # to ld, don't add -lc before -lgcc.
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10980$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10981if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10982 $as_echo_n "(cached) " >&6
10983else
10984 $RM conftest*
10985 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10986
10987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10988 (eval $ac_compile) 2>&5
10989 ac_status=$?
10990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10991 test $ac_status = 0; } 2>conftest.err; then
10992 soname=conftest
10993 lib=conftest
10994 libobjs=conftest.$ac_objext
10995 deplibs=
10996 wl=$lt_prog_compiler_wl
10997 pic_flag=$lt_prog_compiler_pic
10998 compiler_flags=-v
10999 linker_flags=-v
11000 verstring=
11001 output_objdir=.
11002 libname=conftest
11003 lt_save_allow_undefined_flag=$allow_undefined_flag
11004 allow_undefined_flag=
11005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11006 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11007 ac_status=$?
11008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11009 test $ac_status = 0; }
11010 then
11011 lt_cv_archive_cmds_need_lc=no
11012 else
11013 lt_cv_archive_cmds_need_lc=yes
11014 fi
11015 allow_undefined_flag=$lt_save_allow_undefined_flag
11016 else
11017 cat conftest.err 1>&5
11018 fi
11019 $RM conftest*
11020
11021fi
11022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11023$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11024 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11025 ;;
11026 esac
11027 fi
11028 ;;
11029esac
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
ef016f83 11150
ef016f83 11151
ef016f83 11152
ef016f83 11153
ef016f83 11154
ef016f83 11155
ef016f83 11156
6ffe910a 11157
6ffe910a
MF
11158
11159
6ffe910a 11160
ef016f83 11161
ef016f83
MF
11162
11163
ef016f83
MF
11164
11165
11166
6ffe910a 11167
ef016f83
MF
11168
11169
ef016f83 11170
ef016f83 11171
ef016f83 11172
ef016f83 11173
ef016f83 11174
ef016f83 11175
ef016f83 11176
ef016f83 11177
ef016f83 11178
ef016f83 11179
ef016f83 11180
ef016f83
MF
11181
11182
ef016f83 11183
ef016f83 11184
ef016f83
MF
11185
11186
6bb11ab3
L
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11188$as_echo_n "checking dynamic linker characteristics... " >&6; }
11189
11190if test "$GCC" = yes; then
11191 case $host_os in
11192 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11193 *) lt_awk_arg="/^libraries:/" ;;
11194 esac
11195 case $host_os in
11196 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11197 *) lt_sed_strip_eq="s,=/,/,g" ;;
11198 esac
11199 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11200 case $lt_search_path_spec in
11201 *\;*)
11202 # if the path contains ";" then we assume it to be the separator
11203 # otherwise default to the standard path separator (i.e. ":") - it is
11204 # assumed that no part of a normal pathname contains ";" but that should
11205 # okay in the real world where ";" in dirpaths is itself problematic.
11206 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11207 ;;
11208 *)
11209 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11210 ;;
11211 esac
11212 # Ok, now we have the path, separated by spaces, we can step through it
11213 # and add multilib dir if necessary.
11214 lt_tmp_lt_search_path_spec=
11215 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11216 for lt_sys_path in $lt_search_path_spec; do
11217 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11218 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11219 else
11220 test -d "$lt_sys_path" && \
11221 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
ef016f83 11222 fi
ef016f83 11223 done
6bb11ab3
L
11224 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11225BEGIN {RS=" "; FS="/|\n";} {
11226 lt_foo="";
11227 lt_count=0;
11228 for (lt_i = NF; lt_i > 0; lt_i--) {
11229 if ($lt_i != "" && $lt_i != ".") {
11230 if ($lt_i == "..") {
11231 lt_count++;
11232 } else {
11233 if (lt_count == 0) {
11234 lt_foo="/" $lt_i lt_foo;
11235 } else {
11236 lt_count--;
11237 }
11238 }
11239 }
11240 }
11241 if (lt_foo != "") { lt_freq[lt_foo]++; }
11242 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11243}'`
11244 # AWK program above erroneously prepends '/' to C:/dos/paths
11245 # for these hosts.
11246 case $host_os in
11247 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11248 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11249 esac
11250 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11251else
11252 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11253fi
11254library_names_spec=
11255libname_spec='lib$name'
11256soname_spec=
11257shrext_cmds=".so"
11258postinstall_cmds=
11259postuninstall_cmds=
11260finish_cmds=
11261finish_eval=
11262shlibpath_var=
11263shlibpath_overrides_runpath=unknown
11264version_type=none
11265dynamic_linker="$host_os ld.so"
11266sys_lib_dlsearch_path_spec="/lib /usr/lib"
11267need_lib_prefix=unknown
11268hardcode_into_libs=no
11269
11270# when you set need_version to no, make sure it does not cause -set_version
11271# flags to be left without arguments
11272need_version=unknown
11273
11274case $host_os in
11275aix3*)
11276 version_type=linux
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11278 shlibpath_var=LIBPATH
11279
11280 # AIX 3 has no versioning support, so we append a major version to the name.
11281 soname_spec='${libname}${release}${shared_ext}$major'
11282 ;;
ef016f83 11283
6bb11ab3
L
11284aix[4-9]*)
11285 version_type=linux
11286 need_lib_prefix=no
11287 need_version=no
11288 hardcode_into_libs=yes
11289 if test "$host_cpu" = ia64; then
11290 # AIX 5 supports IA64
11291 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11292 shlibpath_var=LD_LIBRARY_PATH
11293 else
11294 # With GCC up to 2.95.x, collect2 would create an import file
11295 # for dependence libraries. The import file would start with
11296 # the line `#! .'. This would cause the generated library to
11297 # depend on `.', always an invalid library. This was fixed in
11298 # development snapshots of GCC prior to 3.0.
11299 case $host_os in
11300 aix4 | aix4.[01] | aix4.[01].*)
11301 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11302 echo ' yes '
11303 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11304 :
11305 else
11306 can_build_shared=no
11307 fi
11308 ;;
11309 esac
11310 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11311 # soname into executable. Probably we can add versioning support to
11312 # collect2, so additional links can be useful in future.
11313 if test "$aix_use_runtimelinking" = yes; then
11314 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11315 # instead of lib<name>.a to let people know that these are not
11316 # typical AIX shared libraries.
11317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11318 else
11319 # We preserve .a as extension for shared libraries through AIX4.2
11320 # and later when we are not doing run time linking.
11321 library_names_spec='${libname}${release}.a $libname.a'
11322 soname_spec='${libname}${release}${shared_ext}$major'
11323 fi
11324 shlibpath_var=LIBPATH
ef016f83 11325 fi
6bb11ab3 11326 ;;
ef016f83 11327
6bb11ab3
L
11328amigaos*)
11329 case $host_cpu in
11330 powerpc)
11331 # Since July 2007 AmigaOS4 officially supports .so libraries.
11332 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11334 ;;
11335 m68k)
11336 library_names_spec='$libname.ixlibrary $libname.a'
11337 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11338 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'
11339 ;;
11340 esac
11341 ;;
ef016f83 11342
6bb11ab3
L
11343beos*)
11344 library_names_spec='${libname}${shared_ext}'
11345 dynamic_linker="$host_os ld.so"
11346 shlibpath_var=LIBRARY_PATH
11347 ;;
ef016f83 11348
6bb11ab3
L
11349bsdi[45]*)
11350 version_type=linux
11351 need_version=no
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353 soname_spec='${libname}${release}${shared_ext}$major'
11354 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11355 shlibpath_var=LD_LIBRARY_PATH
11356 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11357 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11358 # the default ld.so.conf also contains /usr/contrib/lib and
11359 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11360 # libtool to hard-code these into programs
11361 ;;
ef016f83 11362
6bb11ab3
L
11363cygwin* | mingw* | pw32* | cegcc*)
11364 version_type=windows
11365 shrext_cmds=".dll"
11366 need_version=no
11367 need_lib_prefix=no
11368
11369 case $GCC,$host_os in
11370 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11371 library_names_spec='$libname.dll.a'
11372 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11373 postinstall_cmds='base_file=`basename \${file}`~
11374 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11375 dldir=$destdir/`dirname \$dlpath`~
11376 test -d \$dldir || mkdir -p \$dldir~
11377 $install_prog $dir/$dlname \$dldir/$dlname~
11378 chmod a+x \$dldir/$dlname~
11379 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11380 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11381 fi'
11382 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11383 dlpath=$dir/\$dldll~
11384 $RM \$dlpath'
11385 shlibpath_overrides_runpath=yes
11386
11387 case $host_os in
11388 cygwin*)
11389 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11390 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11391
11392 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11393 ;;
11394 mingw* | cegcc*)
11395 # MinGW DLLs use traditional 'lib' prefix
11396 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11397 ;;
11398 pw32*)
11399 # pw32 DLLs use 'pw' prefix rather than 'lib'
11400 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11401 ;;
11402 esac
11403 ;;
ef016f83 11404
6bb11ab3
L
11405 *)
11406 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11407 ;;
11408 esac
11409 dynamic_linker='Win32 ld.exe'
11410 # FIXME: first we should search . and the directory the executable is in
11411 shlibpath_var=PATH
11412 ;;
ef016f83 11413
6bb11ab3
L
11414darwin* | rhapsody*)
11415 dynamic_linker="$host_os dyld"
11416 version_type=darwin
11417 need_lib_prefix=no
11418 need_version=no
11419 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11420 soname_spec='${libname}${release}${major}$shared_ext'
11421 shlibpath_overrides_runpath=yes
11422 shlibpath_var=DYLD_LIBRARY_PATH
11423 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11424
11425 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11426 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11427 ;;
ef016f83 11428
6bb11ab3
L
11429dgux*)
11430 version_type=linux
11431 need_lib_prefix=no
11432 need_version=no
11433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11434 soname_spec='${libname}${release}${shared_ext}$major'
11435 shlibpath_var=LD_LIBRARY_PATH
11436 ;;
11437
11438freebsd* | dragonfly*)
11439 # DragonFly does not have aout. When/if they implement a new
11440 # versioning mechanism, adjust this.
11441 if test -x /usr/bin/objformat; then
11442 objformat=`/usr/bin/objformat`
11443 else
11444 case $host_os in
11445 freebsd[23].*) objformat=aout ;;
11446 *) objformat=elf ;;
11447 esac
11448 fi
11449 version_type=freebsd-$objformat
11450 case $version_type in
11451 freebsd-elf*)
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11453 need_version=no
11454 need_lib_prefix=no
11455 ;;
11456 freebsd-*)
11457 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11458 need_version=yes
11459 ;;
11460 esac
11461 shlibpath_var=LD_LIBRARY_PATH
11462 case $host_os in
11463 freebsd2.*)
11464 shlibpath_overrides_runpath=yes
11465 ;;
11466 freebsd3.[01]* | freebsdelf3.[01]*)
11467 shlibpath_overrides_runpath=yes
11468 hardcode_into_libs=yes
11469 ;;
11470 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11471 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11472 shlibpath_overrides_runpath=no
11473 hardcode_into_libs=yes
11474 ;;
11475 *) # from 4.6 on, and DragonFly
11476 shlibpath_overrides_runpath=yes
11477 hardcode_into_libs=yes
11478 ;;
11479 esac
11480 ;;
ef016f83 11481
6bb11ab3
L
11482gnu*)
11483 version_type=linux
11484 need_lib_prefix=no
11485 need_version=no
11486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11487 soname_spec='${libname}${release}${shared_ext}$major'
11488 shlibpath_var=LD_LIBRARY_PATH
11489 hardcode_into_libs=yes
11490 ;;
ef016f83 11491
6bb11ab3
L
11492haiku*)
11493 version_type=linux
11494 need_lib_prefix=no
11495 need_version=no
11496 dynamic_linker="$host_os runtime_loader"
11497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11498 soname_spec='${libname}${release}${shared_ext}$major'
11499 shlibpath_var=LIBRARY_PATH
11500 shlibpath_overrides_runpath=yes
11501 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11502 hardcode_into_libs=yes
11503 ;;
ef016f83 11504
6bb11ab3
L
11505hpux9* | hpux10* | hpux11*)
11506 # Give a soname corresponding to the major version so that dld.sl refuses to
11507 # link against other versions.
11508 version_type=sunos
11509 need_lib_prefix=no
11510 need_version=no
11511 case $host_cpu in
11512 ia64*)
11513 shrext_cmds='.so'
11514 hardcode_into_libs=yes
11515 dynamic_linker="$host_os dld.so"
11516 shlibpath_var=LD_LIBRARY_PATH
11517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11519 soname_spec='${libname}${release}${shared_ext}$major'
11520 if test "X$HPUX_IA64_MODE" = X32; then
11521 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11522 else
11523 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11524 fi
11525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11526 ;;
11527 hppa*64*)
11528 shrext_cmds='.sl'
11529 hardcode_into_libs=yes
11530 dynamic_linker="$host_os dld.sl"
11531 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11532 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11534 soname_spec='${libname}${release}${shared_ext}$major'
11535 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11536 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11537 ;;
11538 *)
11539 shrext_cmds='.sl'
11540 dynamic_linker="$host_os dld.sl"
11541 shlibpath_var=SHLIB_PATH
11542 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11544 soname_spec='${libname}${release}${shared_ext}$major'
11545 ;;
11546 esac
11547 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11548 postinstall_cmds='chmod 555 $lib'
11549 # or fails outright, so override atomically:
11550 install_override_mode=555
11551 ;;
ef016f83 11552
6bb11ab3
L
11553interix[3-9]*)
11554 version_type=linux
11555 need_lib_prefix=no
11556 need_version=no
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11558 soname_spec='${libname}${release}${shared_ext}$major'
11559 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11560 shlibpath_var=LD_LIBRARY_PATH
11561 shlibpath_overrides_runpath=no
11562 hardcode_into_libs=yes
11563 ;;
ef016f83 11564
6bb11ab3
L
11565irix5* | irix6* | nonstopux*)
11566 case $host_os in
11567 nonstopux*) version_type=nonstopux ;;
11568 *)
11569 if test "$lt_cv_prog_gnu_ld" = yes; then
11570 version_type=linux
11571 else
11572 version_type=irix
11573 fi ;;
11574 esac
11575 need_lib_prefix=no
11576 need_version=no
11577 soname_spec='${libname}${release}${shared_ext}$major'
11578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11579 case $host_os in
11580 irix5* | nonstopux*)
11581 libsuff= shlibsuff=
11582 ;;
11583 *)
11584 case $LD in # libtool.m4 will add one of these switches to LD
11585 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11586 libsuff= shlibsuff= libmagic=32-bit;;
11587 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11588 libsuff=32 shlibsuff=N32 libmagic=N32;;
11589 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11590 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11591 *) libsuff= shlibsuff= libmagic=never-match;;
11592 esac
11593 ;;
11594 esac
11595 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11596 shlibpath_overrides_runpath=no
11597 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11598 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11599 hardcode_into_libs=yes
11600 ;;
ef016f83 11601
6bb11ab3
L
11602# No shared lib support for Linux oldld, aout, or coff.
11603linux*oldld* | linux*aout* | linux*coff*)
11604 dynamic_linker=no
11605 ;;
ef016f83 11606
6bb11ab3
L
11607# This must be Linux ELF.
11608linux* | k*bsd*-gnu | kopensolaris*-gnu)
11609 version_type=linux
11610 need_lib_prefix=no
11611 need_version=no
11612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613 soname_spec='${libname}${release}${shared_ext}$major'
11614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11615 shlibpath_var=LD_LIBRARY_PATH
11616 shlibpath_overrides_runpath=no
11617
11618 # Some binutils ld are patched to set DT_RUNPATH
11619 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11620 $as_echo_n "(cached) " >&6
ef016f83 11621else
6bb11ab3
L
11622 lt_cv_shlibpath_overrides_runpath=no
11623 save_LDFLAGS=$LDFLAGS
11624 save_libdir=$libdir
11625 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11626 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ef016f83 11628/* end confdefs.h. */
ef016f83 11629
ef016f83
MF
11630int
11631main ()
11632{
6bb11ab3
L
11633
11634 ;
ef016f83
MF
11635 return 0;
11636}
11637_ACEOF
6bb11ab3
L
11638if ac_fn_c_try_link "$LINENO"; then :
11639 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11640 lt_cv_shlibpath_overrides_runpath=yes
ef016f83 11641fi
ef016f83 11642fi
6bb11ab3
L
11643rm -f core conftest.err conftest.$ac_objext \
11644 conftest$ac_exeext conftest.$ac_ext
11645 LDFLAGS=$save_LDFLAGS
11646 libdir=$save_libdir
ef016f83
MF
11647
11648fi
ef016f83 11649
6bb11ab3 11650 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
ef016f83 11651
6bb11ab3
L
11652 # This implies no fast_install, which is unacceptable.
11653 # Some rework will be needed to allow for fast_install
11654 # before this can be enabled.
11655 hardcode_into_libs=yes
ef016f83 11656
6bb11ab3
L
11657 # Append ld.so.conf contents to the search path
11658 if test -f /etc/ld.so.conf; then
11659 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' ' '`
11660 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11661 fi
ef016f83 11662
6bb11ab3
L
11663 # We used to test for /lib/ld.so.1 and disable shared libraries on
11664 # powerpc, because MkLinux only supported shared libraries with the
11665 # GNU dynamic linker. Since this was broken with cross compilers,
11666 # most powerpc-linux boxes support dynamic linking these days and
11667 # people can always --disable-shared, the test was removed, and we
11668 # assume the GNU/Linux dynamic linker is in use.
11669 dynamic_linker='GNU/Linux ld.so'
11670 ;;
ef016f83 11671
6bb11ab3
L
11672netbsd*)
11673 version_type=sunos
11674 need_lib_prefix=no
11675 need_version=no
11676 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11679 dynamic_linker='NetBSD (a.out) ld.so'
11680 else
11681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11682 soname_spec='${libname}${release}${shared_ext}$major'
11683 dynamic_linker='NetBSD ld.elf_so'
11684 fi
11685 shlibpath_var=LD_LIBRARY_PATH
11686 shlibpath_overrides_runpath=yes
11687 hardcode_into_libs=yes
11688 ;;
ef016f83 11689
6bb11ab3
L
11690newsos6)
11691 version_type=linux
11692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11693 shlibpath_var=LD_LIBRARY_PATH
11694 shlibpath_overrides_runpath=yes
11695 ;;
ef016f83 11696
6bb11ab3
L
11697*nto* | *qnx*)
11698 version_type=qnx
11699 need_lib_prefix=no
11700 need_version=no
11701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11702 soname_spec='${libname}${release}${shared_ext}$major'
11703 shlibpath_var=LD_LIBRARY_PATH
11704 shlibpath_overrides_runpath=no
11705 hardcode_into_libs=yes
11706 dynamic_linker='ldqnx.so'
11707 ;;
6ffe910a 11708
6bb11ab3
L
11709openbsd*)
11710 version_type=sunos
11711 sys_lib_dlsearch_path_spec="/usr/lib"
11712 need_lib_prefix=no
11713 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11714 case $host_os in
11715 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11716 *) need_version=no ;;
11717 esac
11718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11719 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11720 shlibpath_var=LD_LIBRARY_PATH
11721 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11722 case $host_os in
11723 openbsd2.[89] | openbsd2.[89].*)
11724 shlibpath_overrides_runpath=no
11725 ;;
11726 *)
11727 shlibpath_overrides_runpath=yes
11728 ;;
11729 esac
11730 else
11731 shlibpath_overrides_runpath=yes
11732 fi
11733 ;;
2232061b 11734
6bb11ab3
L
11735os2*)
11736 libname_spec='$name'
11737 shrext_cmds=".dll"
11738 need_lib_prefix=no
11739 library_names_spec='$libname${shared_ext} $libname.a'
11740 dynamic_linker='OS/2 ld.exe'
11741 shlibpath_var=LIBPATH
11742 ;;
2232061b 11743
6bb11ab3
L
11744osf3* | osf4* | osf5*)
11745 version_type=osf
11746 need_lib_prefix=no
11747 need_version=no
11748 soname_spec='${libname}${release}${shared_ext}$major'
11749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11750 shlibpath_var=LD_LIBRARY_PATH
11751 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11752 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11753 ;;
2232061b 11754
6bb11ab3
L
11755rdos*)
11756 dynamic_linker=no
11757 ;;
2232061b 11758
6bb11ab3
L
11759solaris*)
11760 version_type=linux
11761 need_lib_prefix=no
11762 need_version=no
11763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11764 soname_spec='${libname}${release}${shared_ext}$major'
11765 shlibpath_var=LD_LIBRARY_PATH
11766 shlibpath_overrides_runpath=yes
11767 hardcode_into_libs=yes
11768 # ldd complains unless libraries are executable
11769 postinstall_cmds='chmod +x $lib'
11770 ;;
2232061b 11771
6bb11ab3
L
11772sunos4*)
11773 version_type=sunos
11774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11775 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11776 shlibpath_var=LD_LIBRARY_PATH
11777 shlibpath_overrides_runpath=yes
11778 if test "$with_gnu_ld" = yes; then
11779 need_lib_prefix=no
11780 fi
11781 need_version=yes
11782 ;;
2232061b 11783
6bb11ab3
L
11784sysv4 | sysv4.3*)
11785 version_type=linux
11786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11787 soname_spec='${libname}${release}${shared_ext}$major'
11788 shlibpath_var=LD_LIBRARY_PATH
11789 case $host_vendor in
11790 sni)
11791 shlibpath_overrides_runpath=no
11792 need_lib_prefix=no
11793 runpath_var=LD_RUN_PATH
11794 ;;
11795 siemens)
11796 need_lib_prefix=no
11797 ;;
11798 motorola)
11799 need_lib_prefix=no
11800 need_version=no
11801 shlibpath_overrides_runpath=no
11802 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11803 ;;
11804 esac
11805 ;;
2232061b 11806
6bb11ab3
L
11807sysv4*MP*)
11808 if test -d /usr/nec ;then
11809 version_type=linux
11810 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11811 soname_spec='$libname${shared_ext}.$major'
11812 shlibpath_var=LD_LIBRARY_PATH
11813 fi
11814 ;;
2232061b 11815
6bb11ab3
L
11816sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11817 version_type=freebsd-elf
11818 need_lib_prefix=no
11819 need_version=no
11820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11821 soname_spec='${libname}${release}${shared_ext}$major'
11822 shlibpath_var=LD_LIBRARY_PATH
11823 shlibpath_overrides_runpath=yes
11824 hardcode_into_libs=yes
11825 if test "$with_gnu_ld" = yes; then
11826 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11827 else
11828 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11829 case $host_os in
11830 sco3.2v5*)
11831 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11832 ;;
11833 esac
2232061b 11834 fi
6bb11ab3
L
11835 sys_lib_dlsearch_path_spec='/usr/lib'
11836 ;;
2232061b 11837
6bb11ab3
L
11838tpf*)
11839 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11840 version_type=linux
11841 need_lib_prefix=no
11842 need_version=no
11843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11844 shlibpath_var=LD_LIBRARY_PATH
11845 shlibpath_overrides_runpath=no
11846 hardcode_into_libs=yes
11847 ;;
2232061b 11848
6bb11ab3
L
11849uts4*)
11850 version_type=linux
11851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11852 soname_spec='${libname}${release}${shared_ext}$major'
11853 shlibpath_var=LD_LIBRARY_PATH
11854 ;;
2232061b 11855
6bb11ab3
L
11856*)
11857 dynamic_linker=no
11858 ;;
11859esac
11860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11861$as_echo "$dynamic_linker" >&6; }
11862test "$dynamic_linker" = no && can_build_shared=no
2232061b 11863
6bb11ab3
L
11864variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11865if test "$GCC" = yes; then
11866 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2232061b 11867fi
2232061b 11868
6bb11ab3
L
11869if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11870 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11871fi
11872if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11873 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11874fi
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
2232061b 11890
2232061b 11891
2232061b 11892
2232061b
MF
11893
11894
2232061b 11895
2232061b 11896
2232061b 11897
2232061b 11898
2232061b 11899
2232061b 11900
2232061b 11901
2232061b 11902
2232061b 11903
2232061b
MF
11904
11905
6ffe910a 11906
6ffe910a
MF
11907
11908
11909
11910
11911
2232061b 11912
6ffe910a
MF
11913
11914
11915
11916
6ffe910a 11917
6ffe910a 11918
6ffe910a
MF
11919
11920
6ffe910a 11921
6ffe910a 11922
6ffe910a
MF
11923
11924
5f3ef9d0 11925
5f3ef9d0
JB
11926
11927
11928
db2e4d67
MF
11929
11930
db2e4d67 11931
db2e4d67 11932
db2e4d67 11933
db2e4d67 11934
db2e4d67 11935
db2e4d67 11936
db2e4d67 11937
db2e4d67
MF
11938
11939
db2e4d67 11940
db2e4d67
MF
11941
11942
db2e4d67 11943
db2e4d67
MF
11944
11945
6ffe910a 11946
6ffe910a 11947
6ffe910a
MF
11948
11949
6ffe910a
MF
11950
11951
6ffe910a 11952
6ffe910a 11953
6ffe910a 11954
6ffe910a 11955
6ffe910a 11956
ef016f83 11957
ef016f83 11958
ef016f83 11959
ef016f83 11960
ef016f83 11961
ef016f83 11962
ef016f83 11963
6bb11ab3
L
11964
11965
11966
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11968$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11969hardcode_action=
11970if test -n "$hardcode_libdir_flag_spec" ||
11971 test -n "$runpath_var" ||
11972 test "X$hardcode_automatic" = "Xyes" ; then
11973
11974 # We can hardcode non-existent directories.
11975 if test "$hardcode_direct" != no &&
11976 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11977 # have to relink, otherwise we might link with an installed library
11978 # when we should be linking with a yet-to-be-installed one
11979 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11980 test "$hardcode_minus_L" != no; then
11981 # Linking always hardcodes the temporary library directory.
11982 hardcode_action=relink
11983 else
11984 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11985 hardcode_action=immediate
11986 fi
11987else
11988 # We cannot hardcode anything, or else we can only hardcode existing
11989 # directories.
11990 hardcode_action=unsupported
ef016f83 11991fi
6bb11ab3
L
11992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11993$as_echo "$hardcode_action" >&6; }
ef016f83 11994
6bb11ab3
L
11995if test "$hardcode_action" = relink ||
11996 test "$inherit_rpath" = yes; then
11997 # Fast installation is not supported
11998 enable_fast_install=no
11999elif test "$shlibpath_overrides_runpath" = yes ||
12000 test "$enable_shared" = no; then
12001 # Fast installation is not necessary
12002 enable_fast_install=needless
12003fi
ef016f83 12004
6bb11ab3
L
12005
12006
12007
12008
12009
12010 if test "x$enable_dlopen" != xyes; then
12011 enable_dlopen=unknown
12012 enable_dlopen_self=unknown
12013 enable_dlopen_self_static=unknown
12014else
12015 lt_cv_dlopen=no
12016 lt_cv_dlopen_libs=
12017
12018 case $host_os in
12019 beos*)
12020 lt_cv_dlopen="load_add_on"
12021 lt_cv_dlopen_libs=
12022 lt_cv_dlopen_self=yes
12023 ;;
12024
12025 mingw* | pw32* | cegcc*)
12026 lt_cv_dlopen="LoadLibrary"
12027 lt_cv_dlopen_libs=
12028 ;;
12029
12030 cygwin*)
12031 lt_cv_dlopen="dlopen"
12032 lt_cv_dlopen_libs=
12033 ;;
12034
12035 darwin*)
12036 # if libdl is installed we need to link against it
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12038$as_echo_n "checking for dlopen in -ldl... " >&6; }
12039if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12040 $as_echo_n "(cached) " >&6
12041else
12042 ac_check_lib_save_LIBS=$LIBS
12043LIBS="-ldl $LIBS"
12044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045/* end confdefs.h. */
12046
12047/* Override any GCC internal prototype to avoid an error.
12048 Use char because int might match the return type of a GCC
12049 builtin and then its argument prototype would still apply. */
12050#ifdef __cplusplus
12051extern "C"
12052#endif
12053char dlopen ();
12054int
12055main ()
12056{
12057return dlopen ();
12058 ;
12059 return 0;
12060}
ef016f83 12061_ACEOF
6bb11ab3
L
12062if ac_fn_c_try_link "$LINENO"; then :
12063 ac_cv_lib_dl_dlopen=yes
12064else
12065 ac_cv_lib_dl_dlopen=no
12066fi
12067rm -f core conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext conftest.$ac_ext
12069LIBS=$ac_check_lib_save_LIBS
12070fi
12071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12072$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12073if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12074 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12075else
12076
12077 lt_cv_dlopen="dyld"
12078 lt_cv_dlopen_libs=
12079 lt_cv_dlopen_self=yes
ef016f83
MF
12080
12081fi
12082
6bb11ab3 12083 ;;
ef016f83 12084
6bb11ab3
L
12085 *)
12086 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12087if test "x$ac_cv_func_shl_load" = x""yes; then :
12088 lt_cv_dlopen="shl_load"
12089else
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12091$as_echo_n "checking for shl_load in -ldld... " >&6; }
12092if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12093 $as_echo_n "(cached) " >&6
12094else
12095 ac_check_lib_save_LIBS=$LIBS
12096LIBS="-ldld $LIBS"
12097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098/* end confdefs.h. */
12099
12100/* Override any GCC internal prototype to avoid an error.
12101 Use char because int might match the return type of a GCC
12102 builtin and then its argument prototype would still apply. */
12103#ifdef __cplusplus
12104extern "C"
12105#endif
12106char shl_load ();
12107int
12108main ()
12109{
12110return shl_load ();
12111 ;
12112 return 0;
12113}
12114_ACEOF
12115if ac_fn_c_try_link "$LINENO"; then :
12116 ac_cv_lib_dld_shl_load=yes
12117else
12118 ac_cv_lib_dld_shl_load=no
12119fi
12120rm -f core conftest.err conftest.$ac_objext \
12121 conftest$ac_exeext conftest.$ac_ext
12122LIBS=$ac_check_lib_save_LIBS
12123fi
12124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12125$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12126if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12127 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12128else
12129 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12130if test "x$ac_cv_func_dlopen" = x""yes; then :
12131 lt_cv_dlopen="dlopen"
12132else
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12134$as_echo_n "checking for dlopen in -ldl... " >&6; }
12135if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12136 $as_echo_n "(cached) " >&6
12137else
12138 ac_check_lib_save_LIBS=$LIBS
12139LIBS="-ldl $LIBS"
12140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141/* end confdefs.h. */
12142
12143/* Override any GCC internal prototype to avoid an error.
12144 Use char because int might match the return type of a GCC
12145 builtin and then its argument prototype would still apply. */
12146#ifdef __cplusplus
12147extern "C"
12148#endif
12149char dlopen ();
12150int
12151main ()
12152{
12153return dlopen ();
12154 ;
12155 return 0;
12156}
ef016f83 12157_ACEOF
6bb11ab3
L
12158if ac_fn_c_try_link "$LINENO"; then :
12159 ac_cv_lib_dl_dlopen=yes
12160else
12161 ac_cv_lib_dl_dlopen=no
ef016f83 12162fi
6bb11ab3
L
12163rm -f core conftest.err conftest.$ac_objext \
12164 conftest$ac_exeext conftest.$ac_ext
12165LIBS=$ac_check_lib_save_LIBS
12166fi
12167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12168$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12169if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12170 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12171else
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12173$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12174if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
ef016f83
MF
12175 $as_echo_n "(cached) " >&6
12176else
12177 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 12178LIBS="-lsvld $LIBS"
ef016f83
MF
12179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12180/* end confdefs.h. */
12181
12182/* Override any GCC internal prototype to avoid an error.
12183 Use char because int might match the return type of a GCC
12184 builtin and then its argument prototype would still apply. */
12185#ifdef __cplusplus
12186extern "C"
12187#endif
6bb11ab3 12188char dlopen ();
ef016f83
MF
12189int
12190main ()
12191{
6bb11ab3 12192return dlopen ();
ef016f83
MF
12193 ;
12194 return 0;
12195}
12196_ACEOF
12197if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 12198 ac_cv_lib_svld_dlopen=yes
ef016f83 12199else
6bb11ab3 12200 ac_cv_lib_svld_dlopen=no
ef016f83
MF
12201fi
12202rm -f core conftest.err conftest.$ac_objext \
12203 conftest$ac_exeext conftest.$ac_ext
12204LIBS=$ac_check_lib_save_LIBS
12205fi
6bb11ab3
L
12206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12207$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12208if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12209 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12210else
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12212$as_echo_n "checking for dld_link in -ldld... " >&6; }
12213if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
ef016f83
MF
12214 $as_echo_n "(cached) " >&6
12215else
12216 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 12217LIBS="-ldld $LIBS"
ef016f83
MF
12218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12219/* end confdefs.h. */
12220
12221/* Override any GCC internal prototype to avoid an error.
12222 Use char because int might match the return type of a GCC
12223 builtin and then its argument prototype would still apply. */
12224#ifdef __cplusplus
12225extern "C"
12226#endif
6bb11ab3 12227char dld_link ();
ef016f83
MF
12228int
12229main ()
12230{
6bb11ab3 12231return dld_link ();
ef016f83
MF
12232 ;
12233 return 0;
12234}
12235_ACEOF
12236if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 12237 ac_cv_lib_dld_dld_link=yes
ef016f83 12238else
6bb11ab3 12239 ac_cv_lib_dld_dld_link=no
ef016f83
MF
12240fi
12241rm -f core conftest.err conftest.$ac_objext \
12242 conftest$ac_exeext conftest.$ac_ext
12243LIBS=$ac_check_lib_save_LIBS
12244fi
6bb11ab3
L
12245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12246$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12247if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12248 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12249fi
ef016f83 12250
ef016f83
MF
12251
12252fi
12253
12254
6bb11ab3 12255fi
ef016f83 12256
ef016f83 12257
ef016f83
MF
12258fi
12259
12260
6bb11ab3
L
12261fi
12262
12263
12264fi
12265
12266 ;;
12267 esac
12268
12269 if test "x$lt_cv_dlopen" != xno; then
12270 enable_dlopen=yes
12271 else
12272 enable_dlopen=no
12273 fi
12274
12275 case $lt_cv_dlopen in
12276 dlopen)
12277 save_CPPFLAGS="$CPPFLAGS"
12278 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12279
12280 save_LDFLAGS="$LDFLAGS"
12281 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12282
12283 save_LIBS="$LIBS"
12284 LIBS="$lt_cv_dlopen_libs $LIBS"
12285
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12287$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12288if test "${lt_cv_dlopen_self+set}" = set; then :
ef016f83
MF
12289 $as_echo_n "(cached) " >&6
12290else
6bb11ab3
L
12291 if test "$cross_compiling" = yes; then :
12292 lt_cv_dlopen_self=cross
12293else
12294 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12295 lt_status=$lt_dlunknown
12296 cat > conftest.$ac_ext <<_LT_EOF
12297#line 12297 "configure"
12298#include "confdefs.h"
ef016f83 12299
6bb11ab3
L
12300#if HAVE_DLFCN_H
12301#include <dlfcn.h>
ef016f83 12302#endif
6bb11ab3
L
12303
12304#include <stdio.h>
12305
12306#ifdef RTLD_GLOBAL
12307# define LT_DLGLOBAL RTLD_GLOBAL
12308#else
12309# ifdef DL_GLOBAL
12310# define LT_DLGLOBAL DL_GLOBAL
12311# else
12312# define LT_DLGLOBAL 0
12313# endif
12314#endif
12315
12316/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12317 find out it does not work in some platform. */
12318#ifndef LT_DLLAZY_OR_NOW
12319# ifdef RTLD_LAZY
12320# define LT_DLLAZY_OR_NOW RTLD_LAZY
12321# else
12322# ifdef DL_LAZY
12323# define LT_DLLAZY_OR_NOW DL_LAZY
12324# else
12325# ifdef RTLD_NOW
12326# define LT_DLLAZY_OR_NOW RTLD_NOW
12327# else
12328# ifdef DL_NOW
12329# define LT_DLLAZY_OR_NOW DL_NOW
12330# else
12331# define LT_DLLAZY_OR_NOW 0
12332# endif
12333# endif
12334# endif
12335# endif
12336#endif
12337
12338/* When -fvisbility=hidden is used, assume the code has been annotated
12339 correspondingly for the symbols needed. */
12340#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12341void fnord () __attribute__((visibility("default")));
12342#endif
12343
12344void fnord () { int i=42; }
12345int main ()
ef016f83 12346{
6bb11ab3
L
12347 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12348 int status = $lt_dlunknown;
12349
12350 if (self)
12351 {
12352 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12353 else
12354 {
12355 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12356 else puts (dlerror ());
12357 }
12358 /* dlclose (self); */
12359 }
12360 else
12361 puts (dlerror ());
12362
12363 return status;
ef016f83 12364}
6bb11ab3
L
12365_LT_EOF
12366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12367 (eval $ac_link) 2>&5
12368 ac_status=$?
12369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12370 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12371 (./conftest; exit; ) >&5 2>/dev/null
12372 lt_status=$?
12373 case x$lt_status in
12374 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12375 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12376 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12377 esac
12378 else :
12379 # compilation failed
12380 lt_cv_dlopen_self=no
12381 fi
12382fi
12383rm -fr conftest*
12384
12385
12386fi
12387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12388$as_echo "$lt_cv_dlopen_self" >&6; }
12389
12390 if test "x$lt_cv_dlopen_self" = xyes; then
12391 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12393$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12394if test "${lt_cv_dlopen_self_static+set}" = set; then :
12395 $as_echo_n "(cached) " >&6
12396else
12397 if test "$cross_compiling" = yes; then :
12398 lt_cv_dlopen_self_static=cross
12399else
12400 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12401 lt_status=$lt_dlunknown
12402 cat > conftest.$ac_ext <<_LT_EOF
12403#line 12403 "configure"
12404#include "confdefs.h"
12405
12406#if HAVE_DLFCN_H
12407#include <dlfcn.h>
12408#endif
12409
12410#include <stdio.h>
12411
12412#ifdef RTLD_GLOBAL
12413# define LT_DLGLOBAL RTLD_GLOBAL
12414#else
12415# ifdef DL_GLOBAL
12416# define LT_DLGLOBAL DL_GLOBAL
12417# else
12418# define LT_DLGLOBAL 0
12419# endif
12420#endif
12421
12422/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12423 find out it does not work in some platform. */
12424#ifndef LT_DLLAZY_OR_NOW
12425# ifdef RTLD_LAZY
12426# define LT_DLLAZY_OR_NOW RTLD_LAZY
12427# else
12428# ifdef DL_LAZY
12429# define LT_DLLAZY_OR_NOW DL_LAZY
12430# else
12431# ifdef RTLD_NOW
12432# define LT_DLLAZY_OR_NOW RTLD_NOW
12433# else
12434# ifdef DL_NOW
12435# define LT_DLLAZY_OR_NOW DL_NOW
12436# else
12437# define LT_DLLAZY_OR_NOW 0
12438# endif
12439# endif
12440# endif
12441# endif
12442#endif
12443
12444/* When -fvisbility=hidden is used, assume the code has been annotated
12445 correspondingly for the symbols needed. */
12446#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12447void fnord () __attribute__((visibility("default")));
12448#endif
12449
12450void fnord () { int i=42; }
12451int main ()
12452{
12453 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12454 int status = $lt_dlunknown;
12455
12456 if (self)
12457 {
12458 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12459 else
12460 {
12461 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12462 else puts (dlerror ());
12463 }
12464 /* dlclose (self); */
12465 }
ef016f83 12466 else
6bb11ab3
L
12467 puts (dlerror ());
12468
12469 return status;
12470}
12471_LT_EOF
12472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12473 (eval $ac_link) 2>&5
12474 ac_status=$?
12475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12476 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12477 (./conftest; exit; ) >&5 2>/dev/null
12478 lt_status=$?
12479 case x$lt_status in
12480 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12481 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12482 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12483 esac
12484 else :
12485 # compilation failed
12486 lt_cv_dlopen_self_static=no
ef016f83 12487 fi
ef016f83 12488fi
6bb11ab3
L
12489rm -fr conftest*
12490
12491
ef016f83 12492fi
6bb11ab3
L
12493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12494$as_echo "$lt_cv_dlopen_self_static" >&6; }
12495 fi
12496
12497 CPPFLAGS="$save_CPPFLAGS"
12498 LDFLAGS="$save_LDFLAGS"
12499 LIBS="$save_LIBS"
12500 ;;
12501 esac
12502
12503 case $lt_cv_dlopen_self in
12504 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12505 *) enable_dlopen_self=unknown ;;
12506 esac
12507
12508 case $lt_cv_dlopen_self_static in
12509 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12510 *) enable_dlopen_self_static=unknown ;;
12511 esac
12512fi
12513
12514
ef016f83 12515
6bb11ab3
L
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530striplib=
12531old_striplib=
12532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12533$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12534if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12535 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12536 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12538$as_echo "yes" >&6; }
ef016f83 12539else
6bb11ab3
L
12540# FIXME - insert some real tests, host_os isn't really good enough
12541 case $host_os in
12542 darwin*)
12543 if test -n "$STRIP" ; then
12544 striplib="$STRIP -x"
12545 old_striplib="$STRIP -S"
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12547$as_echo "yes" >&6; }
12548 else
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550$as_echo "no" >&6; }
12551 fi
12552 ;;
12553 *)
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12555$as_echo "no" >&6; }
12556 ;;
12557 esac
ef016f83 12558fi
6bb11ab3
L
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571 # Report which library types will actually be built
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12573$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12575$as_echo "$can_build_shared" >&6; }
12576
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12578$as_echo_n "checking whether to build shared libraries... " >&6; }
12579 test "$can_build_shared" = "no" && enable_shared=no
12580
12581 # On AIX, shared libraries and static libraries use the same namespace, and
12582 # are all built from PIC.
12583 case $host_os in
12584 aix3*)
12585 test "$enable_shared" = yes && enable_static=no
12586 if test -n "$RANLIB"; then
12587 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12588 postinstall_cmds='$RANLIB $lib'
12589 fi
12590 ;;
12591
12592 aix[4-9]*)
12593 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12594 test "$enable_shared" = yes && enable_static=no
12595 fi
12596 ;;
12597 esac
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12599$as_echo "$enable_shared" >&6; }
12600
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12602$as_echo_n "checking whether to build static libraries... " >&6; }
12603 # Make sure either enable_shared or enable_static is yes.
12604 test "$enable_shared" = yes || enable_static=yes
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12606$as_echo "$enable_static" >&6; }
12607
12608
12609
12610
ef016f83 12611fi
6bb11ab3
L
12612ac_ext=c
12613ac_cpp='$CPP $CPPFLAGS'
12614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12616ac_compiler_gnu=$ac_cv_c_compiler_gnu
12617
12618CC="$lt_save_CC"
12619
12620
12621
12622
12623
12624
12625
12626
12627
ef016f83 12628
ef016f83 12629
ef016f83 12630
ef016f83 12631
6bb11ab3
L
12632 ac_config_commands="$ac_config_commands libtool"
12633
12634
12635
12636
12637# Only expand once:
12638
12639
ef016f83
MF
12640
12641
12642. ${srcdir}/../../bfd/configure.host
12643
12644
12645
12646USE_MAINTAINER_MODE=no
12647# Check whether --enable-maintainer-mode was given.
12648if test "${enable_maintainer_mode+set}" = set; then :
12649 enableval=$enable_maintainer_mode; case "${enableval}" in
12650 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
12651 no) MAINT="#" ;;
12652 *) as_fn_error "\"--enable-maintainer-mode does not take a value\"" "$LINENO" 5; MAINT="#" ;;
12653esac
12654if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
12655 echo "Setting maintainer mode" 6>&1
12656fi
12657else
12658 MAINT="#"
12659fi
12660
12661
12662
12663# Check whether --enable-sim-bswap was given.
12664if test "${enable_sim_bswap+set}" = set; then :
12665 enableval=$enable_sim_bswap; case "${enableval}" in
12666 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
12667 no) sim_bswap="-DWITH_BSWAP=0";;
12668 *) as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
12669esac
12670if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
12671 echo "Setting bswap flags = $sim_bswap" 6>&1
12672fi
12673else
12674 sim_bswap=""
12675fi
12676
12677
12678
12679# Check whether --enable-sim-cflags was given.
12680if test "${enable_sim_cflags+set}" = set; then :
12681 enableval=$enable_sim_cflags; case "${enableval}" in
12682 yes) sim_cflags="-O2 -fomit-frame-pointer";;
12683 trace) as_fn_error "\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags="";;
12684 no) sim_cflags="";;
12685 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12686esac
12687if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
12688 echo "Setting sim cflags = $sim_cflags" 6>&1
12689fi
12690else
12691 sim_cflags=""
12692fi
12693
12694
12695
12696# Check whether --enable-sim-debug was given.
12697if test "${enable_sim_debug+set}" = set; then :
12698 enableval=$enable_sim_debug; case "${enableval}" in
12699 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
12700 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
12701 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
12702esac
12703if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
12704 echo "Setting sim debug = $sim_debug" 6>&1
12705fi
12706else
12707 sim_debug=""
12708fi
12709
12710
12711
12712# Check whether --enable-sim-stdio was given.
12713if test "${enable_sim_stdio+set}" = set; then :
12714 enableval=$enable_sim_stdio; case "${enableval}" in
12715 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
12716 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
12717 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";;
12718esac
12719if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
12720 echo "Setting stdio flags = $sim_stdio" 6>&1
12721fi
12722else
12723 sim_stdio=""
12724fi
12725
12726
12727
12728# Check whether --enable-sim-trace was given.
12729if test "${enable_sim_trace+set}" = set; then :
12730 enableval=$enable_sim_trace; case "${enableval}" in
12731 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
12732 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
12733 [-0-9]*)
12734 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
2232061b 12735 [[:lower:]]*)
ef016f83
MF
12736 sim_trace=""
12737 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
12738 if test x"$sim_trace" = x; then
12739 sim_trace="-DWITH_TRACE='(TRACE_$x"
12740 else
12741 sim_trace="${sim_trace}|TRACE_$x"
12742 fi
12743 done
12744 sim_trace="$sim_trace)'" ;;
12745esac
12746if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
12747 echo "Setting sim trace = $sim_trace" 6>&1
12748fi
12749else
12750 sim_trace=""
12751fi
12752
12753
12754
12755# Check whether --enable-sim-profile was given.
12756if test "${enable_sim_profile+set}" = set; then :
12757 enableval=$enable_sim_profile; case "${enableval}" in
12758 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
12759 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
12760 [-0-9]*)
12761 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
12762 [a-z]*)
12763 sim_profile=""
12764 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
12765 if test x"$sim_profile" = x; then
12766 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
12767 else
12768 sim_profile="${sim_profile}|PROFILE_$x"
12769 fi
12770 done
12771 sim_profile="$sim_profile)'" ;;
12772esac
12773if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
12774 echo "Setting sim profile = $sim_profile" 6>&1
12775fi
12776else
12777 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
12778fi
12779
12780
12781
12782
12783# Check whether --with-pkgversion was given.
12784if test "${with_pkgversion+set}" = set; then :
12785 withval=$with_pkgversion; case "$withval" in
12786 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
12787 no) PKGVERSION= ;;
12788 *) PKGVERSION="($withval) " ;;
12789 esac
12790else
12791 PKGVERSION="(GDB) "
12792
12793fi
12794
12795
12796
12797
12798
12799# Check whether --with-bugurl was given.
12800if test "${with_bugurl+set}" = set; then :
12801 withval=$with_bugurl; case "$withval" in
12802 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
12803 no) BUGURL=
12804 ;;
12805 *) BUGURL="$withval"
12806 ;;
12807 esac
12808else
12809 BUGURL="http://www.gnu.org/software/gdb/bugs/"
12810
12811fi
12812
12813 case ${BUGURL} in
12814 "")
12815 REPORT_BUGS_TO=
12816 REPORT_BUGS_TEXI=
12817 ;;
12818 *)
12819 REPORT_BUGS_TO="<$BUGURL>"
12820 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
12821 ;;
12822 esac;
12823
12824
12825
12826
12827cat >>confdefs.h <<_ACEOF
12828#define PKGVERSION "$PKGVERSION"
12829_ACEOF
12830
12831
12832cat >>confdefs.h <<_ACEOF
12833#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
12834_ACEOF
12835
12836
12837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12838$as_echo_n "checking return type of signal handlers... " >&6; }
12839if test "${ac_cv_type_signal+set}" = set; then :
12840 $as_echo_n "(cached) " >&6
12841else
12842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12843/* end confdefs.h. */
12844#include <sys/types.h>
12845#include <signal.h>
12846
12847int
12848main ()
12849{
12850return *(signal (0, 0)) (0) == 1;
12851 ;
12852 return 0;
12853}
12854_ACEOF
12855if ac_fn_c_try_compile "$LINENO"; then :
12856 ac_cv_type_signal=int
12857else
12858 ac_cv_type_signal=void
12859fi
12860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12861fi
12862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12863$as_echo "$ac_cv_type_signal" >&6; }
12864
12865cat >>confdefs.h <<_ACEOF
12866#define RETSIGTYPE $ac_cv_type_signal
12867_ACEOF
12868
12869
12870
12871
12872
12873sim_link_files=
12874sim_link_links=
12875
12876sim_link_links=tconfig.h
12877if test -f ${srcdir}/tconfig.in
12878then
12879 sim_link_files=tconfig.in
12880else
12881 sim_link_files=../common/tconfig.in
12882fi
12883
12884# targ-vals.def points to the libc macro description file.
12885case "${target}" in
12886*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
12887esac
12888sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
12889sim_link_links="${sim_link_links} targ-vals.def"
12890
12891
12892
6ffe910a 12893
ef016f83
MF
12894wire_endian="LITTLE_ENDIAN"
12895default_endian=""
12896# Check whether --enable-sim-endian was given.
12897if test "${enable_sim_endian+set}" = set; then :
12898 enableval=$enable_sim_endian; case "${enableval}" in
12899 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
12900 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
12901 yes) if test x"$wire_endian" != x; then
12902 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
12903 else
12904 if test x"$default_endian" != x; then
12905 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
12906 else
12907 echo "No hard-wired endian for target $target" 1>&6
12908 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
12909 fi
12910 fi;;
12911 no) if test x"$default_endian" != x; then
12912 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
12913 else
12914 if test x"$wire_endian" != x; then
12915 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
12916 else
12917 echo "No default endian for target $target" 1>&6
12918 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
12919 fi
12920 fi;;
12921 *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
12922esac
12923if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
12924 echo "Setting endian flags = $sim_endian" 6>&1
12925fi
12926else
12927 if test x"$default_endian" != x; then
12928 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
12929else
12930 if test x"$wire_endian" != x; then
12931 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
12932 else
12933 sim_endian=
12934 fi
12935fi
12936fi
12937
12938wire_alignment="STRICT_ALIGNMENT"
12939default_alignment="STRICT_ALIGNMENT"
12940
12941# Check whether --enable-sim-alignment was given.
12942if test "${enable_sim_alignment+set}" = set; then :
12943 enableval=$enable_sim_alignment; case "${enableval}" in
12944 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
12945 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
12946 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
12947 yes) if test x"$wire_alignment" != x; then
12948 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
12949 else
12950 if test x"$default_alignment" != x; then
12951 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
12952 else
12953 echo "No hard-wired alignment for target $target" 1>&6
12954 sim_alignment="-DWITH_ALIGNMENT=0"
12955 fi
12956 fi;;
12957 no) if test x"$default_alignment" != x; then
12958 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
12959 else
12960 if test x"$wire_alignment" != x; then
12961 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
12962 else
12963 echo "No default alignment for target $target" 1>&6
12964 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
12965 fi
12966 fi;;
12967 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
12968esac
12969if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
12970 echo "Setting alignment flags = $sim_alignment" 6>&1
12971fi
12972else
12973 if test x"$default_alignment" != x; then
12974 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
12975else
12976 if test x"$wire_alignment" != x; then
12977 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
12978 else
12979 sim_alignment=
12980 fi
12981fi
12982fi
12983
12984
12985# Check whether --enable-sim-hostendian was given.
12986if test "${enable_sim_hostendian+set}" = set; then :
12987 enableval=$enable_sim_hostendian; case "${enableval}" in
12988 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
12989 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
12990 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
12991 *) as_fn_error "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";;
12992esac
12993if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
12994 echo "Setting hostendian flags = $sim_hostendian" 6>&1
12995fi
12996else
12997
12998if test "x$cross_compiling" = "xno"; then
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13000$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13001if test "${ac_cv_c_bigendian+set}" = set; then :
13002 $as_echo_n "(cached) " >&6
13003else
13004 ac_cv_c_bigendian=unknown
13005 # See if we're dealing with a universal compiler.
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007/* end confdefs.h. */
13008#ifndef __APPLE_CC__
13009 not a universal capable compiler
13010 #endif
13011 typedef int dummy;
13012
13013_ACEOF
13014if ac_fn_c_try_compile "$LINENO"; then :
13015
13016 # Check for potential -arch flags. It is not universal unless
13017 # there are at least two -arch flags with different values.
13018 ac_arch=
13019 ac_prev=
13020 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13021 if test -n "$ac_prev"; then
13022 case $ac_word in
13023 i?86 | x86_64 | ppc | ppc64)
13024 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13025 ac_arch=$ac_word
13026 else
13027 ac_cv_c_bigendian=universal
13028 break
13029 fi
13030 ;;
13031 esac
13032 ac_prev=
13033 elif test "x$ac_word" = "x-arch"; then
13034 ac_prev=arch
13035 fi
13036 done
13037fi
13038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13039 if test $ac_cv_c_bigendian = unknown; then
13040 # See if sys/param.h defines the BYTE_ORDER macro.
13041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13042/* end confdefs.h. */
13043#include <sys/types.h>
13044 #include <sys/param.h>
13045
13046int
13047main ()
13048{
13049#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13050 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13051 && LITTLE_ENDIAN)
13052 bogus endian macros
13053 #endif
13054
13055 ;
13056 return 0;
13057}
13058_ACEOF
13059if ac_fn_c_try_compile "$LINENO"; then :
13060 # It does; now see whether it defined to BIG_ENDIAN or not.
13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062/* end confdefs.h. */
13063#include <sys/types.h>
13064 #include <sys/param.h>
13065
13066int
13067main ()
13068{
13069#if BYTE_ORDER != BIG_ENDIAN
13070 not big endian
13071 #endif
13072
13073 ;
13074 return 0;
13075}
13076_ACEOF
13077if ac_fn_c_try_compile "$LINENO"; then :
13078 ac_cv_c_bigendian=yes
13079else
13080 ac_cv_c_bigendian=no
13081fi
13082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13083fi
13084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13085 fi
13086 if test $ac_cv_c_bigendian = unknown; then
13087 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089/* end confdefs.h. */
13090#include <limits.h>
13091
13092int
13093main ()
13094{
13095#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13096 bogus endian macros
13097 #endif
13098
13099 ;
13100 return 0;
13101}
13102_ACEOF
13103if ac_fn_c_try_compile "$LINENO"; then :
13104 # It does; now see whether it defined to _BIG_ENDIAN or not.
13105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13106/* end confdefs.h. */
13107#include <limits.h>
13108
13109int
13110main ()
13111{
13112#ifndef _BIG_ENDIAN
13113 not big endian
13114 #endif
13115
13116 ;
13117 return 0;
13118}
13119_ACEOF
13120if ac_fn_c_try_compile "$LINENO"; then :
13121 ac_cv_c_bigendian=yes
13122else
13123 ac_cv_c_bigendian=no
13124fi
13125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13126fi
13127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13128 fi
13129 if test $ac_cv_c_bigendian = unknown; then
13130 # Compile a test program.
13131 if test "$cross_compiling" = yes; then :
13132 # Try to guess by grepping values from an object file.
13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134/* end confdefs.h. */
13135short int ascii_mm[] =
13136 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13137 short int ascii_ii[] =
13138 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13139 int use_ascii (int i) {
13140 return ascii_mm[i] + ascii_ii[i];
13141 }
13142 short int ebcdic_ii[] =
13143 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13144 short int ebcdic_mm[] =
13145 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13146 int use_ebcdic (int i) {
13147 return ebcdic_mm[i] + ebcdic_ii[i];
13148 }
13149 extern int foo;
13150
13151int
13152main ()
13153{
13154return use_ascii (foo) == use_ebcdic (foo);
13155 ;
13156 return 0;
13157}
13158_ACEOF
13159if ac_fn_c_try_compile "$LINENO"; then :
13160 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13161 ac_cv_c_bigendian=yes
13162 fi
13163 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13164 if test "$ac_cv_c_bigendian" = unknown; then
13165 ac_cv_c_bigendian=no
13166 else
13167 # finding both strings is unlikely to happen, but who knows?
13168 ac_cv_c_bigendian=unknown
13169 fi
13170 fi
13171fi
13172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13173else
13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175/* end confdefs.h. */
13176$ac_includes_default
13177int
13178main ()
13179{
13180
13181 /* Are we little or big endian? From Harbison&Steele. */
13182 union
13183 {
13184 long int l;
13185 char c[sizeof (long int)];
13186 } u;
13187 u.l = 1;
13188 return u.c[sizeof (long int) - 1] == 1;
13189
13190 ;
13191 return 0;
13192}
13193_ACEOF
13194if ac_fn_c_try_run "$LINENO"; then :
13195 ac_cv_c_bigendian=no
13196else
13197 ac_cv_c_bigendian=yes
13198fi
13199rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13200 conftest.$ac_objext conftest.beam conftest.$ac_ext
13201fi
13202
13203 fi
13204fi
13205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13206$as_echo "$ac_cv_c_bigendian" >&6; }
13207 case $ac_cv_c_bigendian in #(
13208 yes)
13209 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13210;; #(
13211 no)
13212 ;; #(
13213 universal)
13214
13215$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13216
13217 ;; #(
13218 *)
13219 as_fn_error "unknown endianness
13220 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13221 esac
13222
13223 if test $ac_cv_c_bigendian = yes; then
13224 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
13225 else
13226 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
13227 fi
13228else
13229 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
13230fi
13231fi
13232
13233
13234default_sim_default_model="bf537"
13235# Check whether --enable-sim-default-model was given.
13236if test "${enable_sim_default_model+set}" = set; then :
13237 enableval=$enable_sim_default_model; case "${enableval}" in
13238 yes|no) as_fn_error "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
13239 *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
13240esac
13241if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
13242 echo "Setting default model = $sim_default_model" 6>&1
13243fi
13244else
13245 sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
13246fi
13247
13248
13249
13250# Check whether --enable-sim-environment was given.
13251if test "${enable_sim_environment+set}" = set; then :
13252 enableval=$enable_sim_environment; case "${enableval}" in
13253 all | ALL) sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
13254 user | USER) sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
13255 virtual | VIRTUAL) sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
13256 operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
13257 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-environment\"" "$LINENO" 5;
13258 sim_environment="";;
13259esac
13260if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then
13261 echo "Setting sim environment = $sim_environment" 6>&1
13262fi
13263else
13264 sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
13265fi
13266
13267
13268default_sim_inline=""
13269# Check whether --enable-sim-inline was given.
13270if test "${enable_sim_inline+set}" = set; then :
13271 enableval=$enable_sim_inline; sim_inline=""
13272case "$enableval" in
13273 no) sim_inline="-DDEFAULT_INLINE=0";;
13274 0) sim_inline="-DDEFAULT_INLINE=0";;
13275 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
13276 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
13277 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
13278 new_flag=""
13279 case "$x" in
13280 *_INLINE=*) new_flag="-D$x";;
13281 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
13282 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
13283 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
13284 esac
13285 if test x"$sim_inline" = x""; then
13286 sim_inline="$new_flag"
13287 else
13288 sim_inline="$sim_inline $new_flag"
13289 fi
13290 done;;
13291esac
13292if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
13293 echo "Setting inline flags = $sim_inline" 6>&1
13294fi
13295else
13296
13297if test "x$cross_compiling" = "xno"; then
13298 if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
13299 sim_inline="${default_sim_inline}"
13300 if test x"$silent" != x"yes"; then
13301 echo "Setting inline flags = $sim_inline" 6>&1
13302 fi
13303 else
13304 sim_inline=""
13305 fi
13306else
13307 sim_inline="-DDEFAULT_INLINE=0"
13308fi
13309fi
13310
13311
2232061b
MF
13312# Check whether --enable-werror was given.
13313if test "${enable_werror+set}" = set; then :
13314 enableval=$enable_werror; case "${enableval}" in
13315 yes | y) ERROR_ON_WARNING="yes" ;;
13316 no | n) ERROR_ON_WARNING="no" ;;
13317 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13318 esac
13319fi
13320
13321
13322# Enable -Werror by default when using gcc
13323if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
13324 ERROR_ON_WARNING=yes
ef016f83 13325fi
2232061b
MF
13326
13327WERROR_CFLAGS=""
13328if test "${ERROR_ON_WARNING}" = yes ; then
13329# NOTE: Disabled in the sim dir due to most sims generating warnings.
13330# WERROR_CFLAGS="-Werror"
13331 true
13332fi
13333
13334# The entries after -Wno-pointer-sign are disabled warnings which may
13335# be enabled in the future, which can not currently be used to build
13336# GDB.
13337# NOTE: If you change this list, remember to update
13338# gdb/doc/gdbint.texinfo.
13339build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
13340-Wformat-nonliteral -Wno-pointer-sign \
13341-Wno-unused -Wunused-value -Wunused-function \
13342-Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
13343
13344# Enable -Wno-format by default when using gcc on mingw since many
13345# GCC versions complain about %I64.
13346case "${host}" in
13347 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
13348esac
13349
ef016f83
MF
13350# Check whether --enable-build-warnings was given.
13351if test "${enable_build_warnings+set}" = set; then :
13352 enableval=$enable_build_warnings; case "${enableval}" in
13353 yes) ;;
13354 no) build_warnings="-w";;
13355 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13356 build_warnings="${build_warnings} ${t}";;
13357 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13358 build_warnings="${t} ${build_warnings}";;
13359 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13360esac
13361if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13362 echo "Setting compiler warning flags = $build_warnings" 6>&1
13363fi
13364fi
13365# Check whether --enable-sim-build-warnings was given.
13366if test "${enable_sim_build_warnings+set}" = set; then :
13367 enableval=$enable_sim_build_warnings; case "${enableval}" in
13368 yes) ;;
13369 no) build_warnings="-w";;
13370 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13371 build_warnings="${build_warnings} ${t}";;
13372 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13373 build_warnings="${t} ${build_warnings}";;
13374 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13375esac
13376if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13377 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13378fi
13379fi
13380WARN_CFLAGS=""
ef016f83
MF
13381if test "x${build_warnings}" != x -a "x$GCC" = xyes
13382then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13384$as_echo_n "checking compiler warning flags... " >&6; }
13385 # Separate out the -Werror flag as some files just cannot be
13386 # compiled with it enabled.
13387 for w in ${build_warnings}; do
13388 case $w in
13389 -Werr*) WERROR_CFLAGS=-Werror ;;
13390 *) # Check that GCC accepts it
13391 saved_CFLAGS="$CFLAGS"
13392 CFLAGS="$CFLAGS $w"
13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394/* end confdefs.h. */
13395
13396int
13397main ()
13398{
13399
13400 ;
13401 return 0;
13402}
13403_ACEOF
13404if ac_fn_c_try_compile "$LINENO"; then :
13405 WARN_CFLAGS="${WARN_CFLAGS} $w"
13406fi
13407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13408 CFLAGS="$saved_CFLAGS"
13409 esac
13410 done
2232061b
MF
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13412$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
ef016f83
MF
13413fi
13414
13415
13416if test x"yes" = x"yes"; then
13417 sim_hw_p=yes
13418else
13419 sim_hw_p=no
13420fi
13421if test ""; then
13422 hardware=""
13423else
6294f8ea 13424 hardware="cfi core pal glue"
ef016f83
MF
13425fi
13426hardware="$hardware \
13427 bfin_cec \
13428 bfin_ctimer \
13429 bfin_dma \
13430 bfin_dmac \
13431 bfin_ebiu_amc \
13432 bfin_ebiu_ddrc \
13433 bfin_ebiu_sdc \
13434 bfin_emac \
13435 bfin_eppi \
13436 bfin_evt \
b5215db0 13437 bfin_gpio \
07c5891d 13438 bfin_gpio2 \
ef016f83
MF
13439 bfin_gptimer \
13440 bfin_jtag \
13441 bfin_mmu \
13442 bfin_nfc \
13443 bfin_otp \
c43aadca 13444 bfin_pfmon \
050396e5 13445 bfin_pint \
ef016f83
MF
13446 bfin_pll \
13447 bfin_ppi \
13448 bfin_rtc \
13449 bfin_sic \
13450 bfin_spi \
13451 bfin_trace \
13452 bfin_twi \
13453 bfin_uart \
13454 bfin_uart2 \
13455 bfin_wdog \
13456 bfin_wp \
13457 eth_phy \
13458"
13459sim_hw_cflags="-DWITH_HW=1"
13460sim_hw="$hardware"
13461sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
13462# Check whether --enable-sim-hardware was given.
13463if test "${enable_sim_hardware+set}" = set; then :
13464 enableval=$enable_sim_hardware;
13465case "${enableval}" in
13466 yes) sim_hw_p=yes;;
13467 no) sim_hw_p=no;;
13468 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
13469 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
13470 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
13471esac
13472if test "$sim_hw_p" != yes; then
13473 sim_hw_objs=
13474 sim_hw_cflags="-DWITH_HW=0"
13475 sim_hw=
13476else
13477 sim_hw_cflags="-DWITH_HW=1"
13478 # remove duplicates
13479 sim_hw=""
13480 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
13481 for i in $hardware ; do
13482 case " $sim_hw " in
13483 *" $i "*) ;;
13484 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
13485 esac
13486 done
13487fi
13488if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
13489 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
13490fi
13491else
13492
13493if test "$sim_hw_p" != yes; then
13494 sim_hw_objs=
13495 sim_hw_cflags="-DWITH_HW=0"
13496 sim_hw=
13497fi
13498if test x"$silent" != x"yes"; then
13499 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
13500fi
13501fi
13502
4399a56b
MF
13503case " $hardware " in
13504 *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
13505$as_echo_n "checking for log2 in -lm... " >&6; }
13506if test "${ac_cv_lib_m_log2+set}" = set; then :
13507 $as_echo_n "(cached) " >&6
13508else
13509 ac_check_lib_save_LIBS=$LIBS
13510LIBS="-lm $LIBS"
13511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512/* end confdefs.h. */
13513
13514/* Override any GCC internal prototype to avoid an error.
13515 Use char because int might match the return type of a GCC
13516 builtin and then its argument prototype would still apply. */
13517#ifdef __cplusplus
13518extern "C"
13519#endif
13520char log2 ();
13521int
13522main ()
13523{
13524return log2 ();
13525 ;
13526 return 0;
13527}
13528_ACEOF
13529if ac_fn_c_try_link "$LINENO"; then :
13530 ac_cv_lib_m_log2=yes
13531else
13532 ac_cv_lib_m_log2=no
13533fi
13534rm -f core conftest.err conftest.$ac_objext \
13535 conftest$ac_exeext conftest.$ac_ext
13536LIBS=$ac_check_lib_save_LIBS
13537fi
13538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
13539$as_echo "$ac_cv_lib_m_log2" >&6; }
13540if test "x$ac_cv_lib_m_log2" = x""yes; then :
13541 cat >>confdefs.h <<_ACEOF
13542#define HAVE_LIBM 1
13543_ACEOF
13544
13545 LIBS="-lm $LIBS"
13546
13547fi
13548;;
13549esac
13550
ef016f83 13551
9e6584c9 13552for ac_func in getuid getgid geteuid getegid setuid setgid mmap munmap kill pread
ef016f83
MF
13553do :
13554 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13555ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13556eval as_val=\$$as_ac_var
13557 if test "x$as_val" = x""yes; then :
13558 cat >>confdefs.h <<_ACEOF
13559#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13560_ACEOF
13561
13562fi
13563done
13564
84de2f06
MF
13565for ac_header in \
13566 linux/if_tun.h \
13567 linux/mii.h \
13568 linux/types.h \
13569 net/if.h \
13570 sys/ioctl.h \
13571 sys/mman.h \
13572
ef016f83
MF
13573do :
13574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13575ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13576eval as_val=\$$as_ac_Header
13577 if test "x$as_val" = x""yes; then :
13578 cat >>confdefs.h <<_ACEOF
13579#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13580_ACEOF
13581
13582fi
13583
13584done
13585
13586
13587BFIN_SIM_EXTRA_OBJS=
13588
13589case ${host} in
13590 *mingw32*) ;;
13591 *)
13592
13593cat >>confdefs.h <<_ACEOF
13594#define HAVE_DV_SOCKSER 1
13595_ACEOF
13596
13597 BFIN_SIM_EXTRA_OBJS="${BFIN_SIM_EXTRA_OBJS} dv-sockser.o"
13598 ;;
13599esac
13600
13601BFIN_SIM_EXTRA_OBJS=${BFIN_SIM_EXTRA_OBJS}
13602
13603
13604
13605
13606
13607
13608
13609
9c082ca8 13610
ef016f83
MF
13611if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13612 if test -n "$ac_tool_prefix"; then
13613 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13614set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13616$as_echo_n "checking for $ac_word... " >&6; }
13617if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13618 $as_echo_n "(cached) " >&6
13619else
13620 case $PKG_CONFIG in
13621 [\\/]* | ?:[\\/]*)
13622 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13623 ;;
13624 *)
13625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13626for as_dir in $PATH
13627do
13628 IFS=$as_save_IFS
13629 test -z "$as_dir" && as_dir=.
13630 for ac_exec_ext in '' $ac_executable_extensions; do
13631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13632 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13634 break 2
13635 fi
13636done
13637 done
13638IFS=$as_save_IFS
13639
13640 ;;
13641esac
13642fi
13643PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13644if test -n "$PKG_CONFIG"; then
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13646$as_echo "$PKG_CONFIG" >&6; }
13647else
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13649$as_echo "no" >&6; }
13650fi
13651
13652
13653fi
13654if test -z "$ac_cv_path_PKG_CONFIG"; then
13655 ac_pt_PKG_CONFIG=$PKG_CONFIG
13656 # Extract the first word of "pkg-config", so it can be a program name with args.
13657set dummy pkg-config; ac_word=$2
13658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13659$as_echo_n "checking for $ac_word... " >&6; }
13660if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
13661 $as_echo_n "(cached) " >&6
13662else
13663 case $ac_pt_PKG_CONFIG in
13664 [\\/]* | ?:[\\/]*)
13665 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13666 ;;
13667 *)
13668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13669for as_dir in $PATH
13670do
13671 IFS=$as_save_IFS
13672 test -z "$as_dir" && as_dir=.
13673 for ac_exec_ext in '' $ac_executable_extensions; do
13674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13675 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13677 break 2
13678 fi
13679done
13680 done
13681IFS=$as_save_IFS
13682
13683 ;;
13684esac
13685fi
13686ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13687if test -n "$ac_pt_PKG_CONFIG"; then
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13689$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13690else
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13692$as_echo "no" >&6; }
13693fi
13694
13695 if test "x$ac_pt_PKG_CONFIG" = x; then
13696 PKG_CONFIG=""
13697 else
13698 case $cross_compiling:$ac_tool_warned in
13699yes:)
13700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13702ac_tool_warned=yes ;;
13703esac
13704 PKG_CONFIG=$ac_pt_PKG_CONFIG
13705 fi
13706else
13707 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13708fi
13709
13710fi
13711if test -n "$PKG_CONFIG"; then
13712 _pkg_min_version=0.9.0
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13714$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13715 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13717$as_echo "yes" >&6; }
13718 else
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13720$as_echo "no" >&6; }
13721 PKG_CONFIG=""
13722 fi
13723fi
13724
13725pkg_failed=no
13726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
13727$as_echo_n "checking for SDL... " >&6; }
13728
13729if test -n "$SDL_CFLAGS"; then
13730 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13731 elif test -n "$PKG_CONFIG"; then
13732 if test -n "$PKG_CONFIG" && \
13733 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13734 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13735 ac_status=$?
13736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13737 test $ac_status = 0; }; then
13738 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
9c082ca8 13739 test "x$?" != "x0" && pkg_failed=yes
ef016f83
MF
13740else
13741 pkg_failed=yes
13742fi
13743 else
13744 pkg_failed=untried
13745fi
13746if test -n "$SDL_LIBS"; then
13747 pkg_cv_SDL_LIBS="$SDL_LIBS"
13748 elif test -n "$PKG_CONFIG"; then
13749 if test -n "$PKG_CONFIG" && \
13750 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13751 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13752 ac_status=$?
13753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13754 test $ac_status = 0; }; then
13755 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
9c082ca8 13756 test "x$?" != "x0" && pkg_failed=yes
ef016f83
MF
13757else
13758 pkg_failed=yes
13759fi
13760 else
13761 pkg_failed=untried
13762fi
13763
13764
13765
13766if test $pkg_failed = yes; then
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13768$as_echo "no" >&6; }
13769
13770if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13771 _pkg_short_errors_supported=yes
13772else
13773 _pkg_short_errors_supported=no
13774fi
13775 if test $_pkg_short_errors_supported = yes; then
9c082ca8 13776 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
ef016f83 13777 else
9c082ca8 13778 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
ef016f83
MF
13779 fi
13780 # Put the nasty error message in config.log where it belongs
13781 echo "$SDL_PKG_ERRORS" >&5
13782
13783 :
13784elif test $pkg_failed = untried; then
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13786$as_echo "no" >&6; }
13787 :
13788else
13789 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13790 SDL_LIBS=$pkg_cv_SDL_LIBS
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13792$as_echo "yes" >&6; }
13793
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13795$as_echo_n "checking for dlopen in -ldl... " >&6; }
13796if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13797 $as_echo_n "(cached) " >&6
13798else
13799 ac_check_lib_save_LIBS=$LIBS
13800LIBS="-ldl $LIBS"
13801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802/* end confdefs.h. */
13803
13804/* Override any GCC internal prototype to avoid an error.
13805 Use char because int might match the return type of a GCC
13806 builtin and then its argument prototype would still apply. */
13807#ifdef __cplusplus
13808extern "C"
13809#endif
13810char dlopen ();
13811int
13812main ()
13813{
13814return dlopen ();
13815 ;
13816 return 0;
13817}
13818_ACEOF
13819if ac_fn_c_try_link "$LINENO"; then :
13820 ac_cv_lib_dl_dlopen=yes
13821else
13822 ac_cv_lib_dl_dlopen=no
13823fi
13824rm -f core conftest.err conftest.$ac_objext \
13825 conftest$ac_exeext conftest.$ac_ext
13826LIBS=$ac_check_lib_save_LIBS
13827fi
13828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13829$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13830if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13831
13832 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL"
13833 SDL_LIBS="-ldl"
13834
13835else
13836 SDL_CFLAGS= SDL_LIBS=
13837fi
13838
13839
13840fi
13841
13842
13843
13844
13845ac_sources="$sim_link_files"
13846ac_dests="$sim_link_links"
13847while test -n "$ac_sources"; do
13848 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
13849 set $ac_sources; ac_source=$1; shift; ac_sources=$*
13850 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
13851done
13852ac_config_links="$ac_config_links $ac_config_links_1"
13853
13854cgen_breaks=""
13855if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
13856cgen_breaks="break cgen_rtx_error";
13857fi
13858
13859ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
13860
13861ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
13862
13863ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
13864
13865ac_config_commands="$ac_config_commands Makefile"
13866
13867ac_config_commands="$ac_config_commands stamp-h"
13868
13869cat >confcache <<\_ACEOF
13870# This file is a shell script that caches the results of configure
13871# tests run on this system so they can be shared between configure
13872# scripts and configure runs, see configure's option --config-cache.
13873# It is not useful on other systems. If it contains results you don't
13874# want to keep, you may remove or edit it.
13875#
13876# config.status only pays attention to the cache file if you give it
13877# the --recheck option to rerun configure.
13878#
13879# `ac_cv_env_foo' variables (set or unset) will be overridden when
13880# loading this file, other *unset* `ac_cv_foo' will be assigned the
13881# following values.
13882
13883_ACEOF
13884
13885# The following way of writing the cache mishandles newlines in values,
13886# but we know of no workaround that is simple, portable, and efficient.
13887# So, we kill variables containing newlines.
13888# Ultrix sh set writes to stderr and can't be redirected directly,
13889# and sets the high bit in the cache file unless we assign to the vars.
13890(
13891 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13892 eval ac_val=\$$ac_var
13893 case $ac_val in #(
13894 *${as_nl}*)
13895 case $ac_var in #(
13896 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13897$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13898 esac
13899 case $ac_var in #(
13900 _ | IFS | as_nl) ;; #(
13901 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13902 *) { eval $ac_var=; unset $ac_var;} ;;
13903 esac ;;
13904 esac
13905 done
13906
13907 (set) 2>&1 |
13908 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13909 *${as_nl}ac_space=\ *)
13910 # `set' does not quote correctly, so add quotes: double-quote
13911 # substitution turns \\\\ into \\, and sed turns \\ into \.
13912 sed -n \
13913 "s/'/'\\\\''/g;
13914 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13915 ;; #(
13916 *)
13917 # `set' quotes correctly as required by POSIX, so do not add quotes.
13918 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13919 ;;
13920 esac |
13921 sort
13922) |
13923 sed '
13924 /^ac_cv_env_/b end
13925 t clear
13926 :clear
13927 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13928 t end
13929 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13930 :end' >>confcache
13931if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13932 if test -w "$cache_file"; then
13933 test "x$cache_file" != "x/dev/null" &&
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13935$as_echo "$as_me: updating cache $cache_file" >&6;}
13936 cat confcache >$cache_file
13937 else
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13939$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13940 fi
13941fi
13942rm -f confcache
13943
13944test "x$prefix" = xNONE && prefix=$ac_default_prefix
13945# Let make expand exec_prefix.
13946test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13947
13948DEFS=-DHAVE_CONFIG_H
13949
13950ac_libobjs=
13951ac_ltlibobjs=
13952for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13953 # 1. Remove the extension, and $U if already installed.
13954 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13955 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13956 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13957 # will be set to the directory where LIBOBJS objects are built.
13958 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13959 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13960done
13961LIBOBJS=$ac_libobjs
13962
13963LTLIBOBJS=$ac_ltlibobjs
13964
13965
db2e4d67
MF
13966if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
13967 as_fn_error "conditional \"GMAKE\" was never defined.
13968Usually this means the macro was only invoked conditionally." "$LINENO" 5
13969fi
6bb11ab3
L
13970if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
13971 as_fn_error "conditional \"PLUGINS\" was never defined.
13972Usually this means the macro was only invoked conditionally." "$LINENO" 5
13973fi
ef016f83
MF
13974
13975
13976: ${CONFIG_STATUS=./config.status}
13977ac_write_fail=0
13978ac_clean_files_save=$ac_clean_files
13979ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13980{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13981$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13982as_write_fail=0
13983cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13984#! $SHELL
13985# Generated by $as_me.
13986# Run this file to recreate the current configuration.
13987# Compiler output produced by configure, useful for debugging
13988# configure, is in config.log if it exists.
13989
13990debug=false
13991ac_cs_recheck=false
13992ac_cs_silent=false
13993
13994SHELL=\${CONFIG_SHELL-$SHELL}
13995export SHELL
13996_ASEOF
13997cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13998## -------------------- ##
13999## M4sh Initialization. ##
14000## -------------------- ##
14001
14002# Be more Bourne compatible
14003DUALCASE=1; export DUALCASE # for MKS sh
14004if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14005 emulate sh
14006 NULLCMD=:
14007 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14008 # is contrary to our usage. Disable this feature.
14009 alias -g '${1+"$@"}'='"$@"'
14010 setopt NO_GLOB_SUBST
14011else
14012 case `(set -o) 2>/dev/null` in #(
14013 *posix*) :
14014 set -o posix ;; #(
14015 *) :
14016 ;;
14017esac
14018fi
14019
14020
14021as_nl='
14022'
14023export as_nl
14024# Printing a long string crashes Solaris 7 /usr/bin/printf.
14025as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14026as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14027as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14028# Prefer a ksh shell builtin over an external printf program on Solaris,
14029# but without wasting forks for bash or zsh.
14030if test -z "$BASH_VERSION$ZSH_VERSION" \
14031 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14032 as_echo='print -r --'
14033 as_echo_n='print -rn --'
14034elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14035 as_echo='printf %s\n'
14036 as_echo_n='printf %s'
14037else
14038 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14039 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14040 as_echo_n='/usr/ucb/echo -n'
14041 else
14042 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14043 as_echo_n_body='eval
14044 arg=$1;
14045 case $arg in #(
14046 *"$as_nl"*)
14047 expr "X$arg" : "X\\(.*\\)$as_nl";
14048 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14049 esac;
14050 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14051 '
14052 export as_echo_n_body
14053 as_echo_n='sh -c $as_echo_n_body as_echo'
14054 fi
14055 export as_echo_body
14056 as_echo='sh -c $as_echo_body as_echo'
14057fi
14058
14059# The user is always right.
14060if test "${PATH_SEPARATOR+set}" != set; then
14061 PATH_SEPARATOR=:
14062 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14063 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14064 PATH_SEPARATOR=';'
14065 }
14066fi
14067
14068
14069# IFS
14070# We need space, tab and new line, in precisely that order. Quoting is
14071# there to prevent editors from complaining about space-tab.
14072# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14073# splitting by setting IFS to empty value.)
14074IFS=" "" $as_nl"
14075
14076# Find who we are. Look in the path if we contain no directory separator.
14077case $0 in #((
14078 *[\\/]* ) as_myself=$0 ;;
14079 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14080for as_dir in $PATH
14081do
14082 IFS=$as_save_IFS
14083 test -z "$as_dir" && as_dir=.
14084 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14085 done
14086IFS=$as_save_IFS
14087
14088 ;;
14089esac
14090# We did not find ourselves, most probably we were run as `sh COMMAND'
14091# in which case we are not to be found in the path.
14092if test "x$as_myself" = x; then
14093 as_myself=$0
14094fi
14095if test ! -f "$as_myself"; then
14096 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14097 exit 1
14098fi
14099
14100# Unset variables that we do not need and which cause bugs (e.g. in
14101# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14102# suppresses any "Segmentation fault" message there. '((' could
14103# trigger a bug in pdksh 5.2.14.
14104for as_var in BASH_ENV ENV MAIL MAILPATH
14105do eval test x\${$as_var+set} = xset \
14106 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14107done
14108PS1='$ '
14109PS2='> '
14110PS4='+ '
14111
14112# NLS nuisances.
14113LC_ALL=C
14114export LC_ALL
14115LANGUAGE=C
14116export LANGUAGE
14117
14118# CDPATH.
14119(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14120
14121
14122# as_fn_error ERROR [LINENO LOG_FD]
14123# ---------------------------------
14124# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14125# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14126# script with status $?, using 1 if that was 0.
14127as_fn_error ()
14128{
14129 as_status=$?; test $as_status -eq 0 && as_status=1
14130 if test "$3"; then
14131 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14132 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14133 fi
14134 $as_echo "$as_me: error: $1" >&2
14135 as_fn_exit $as_status
14136} # as_fn_error
14137
14138
14139# as_fn_set_status STATUS
14140# -----------------------
14141# Set $? to STATUS, without forking.
14142as_fn_set_status ()
14143{
14144 return $1
14145} # as_fn_set_status
14146
14147# as_fn_exit STATUS
14148# -----------------
14149# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14150as_fn_exit ()
14151{
14152 set +e
14153 as_fn_set_status $1
14154 exit $1
14155} # as_fn_exit
14156
14157# as_fn_unset VAR
14158# ---------------
14159# Portably unset VAR.
14160as_fn_unset ()
14161{
14162 { eval $1=; unset $1;}
14163}
14164as_unset=as_fn_unset
14165# as_fn_append VAR VALUE
14166# ----------------------
14167# Append the text in VALUE to the end of the definition contained in VAR. Take
14168# advantage of any shell optimizations that allow amortized linear growth over
14169# repeated appends, instead of the typical quadratic growth present in naive
14170# implementations.
14171if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14172 eval 'as_fn_append ()
14173 {
14174 eval $1+=\$2
14175 }'
14176else
14177 as_fn_append ()
14178 {
14179 eval $1=\$$1\$2
14180 }
14181fi # as_fn_append
14182
14183# as_fn_arith ARG...
14184# ------------------
14185# Perform arithmetic evaluation on the ARGs, and store the result in the
14186# global $as_val. Take advantage of shells that can avoid forks. The arguments
14187# must be portable across $(()) and expr.
14188if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14189 eval 'as_fn_arith ()
14190 {
14191 as_val=$(( $* ))
14192 }'
14193else
14194 as_fn_arith ()
14195 {
14196 as_val=`expr "$@" || test $? -eq 1`
14197 }
14198fi # as_fn_arith
14199
14200
14201if expr a : '\(a\)' >/dev/null 2>&1 &&
14202 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14203 as_expr=expr
14204else
14205 as_expr=false
14206fi
14207
14208if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14209 as_basename=basename
14210else
14211 as_basename=false
14212fi
14213
14214if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14215 as_dirname=dirname
14216else
14217 as_dirname=false
14218fi
14219
14220as_me=`$as_basename -- "$0" ||
14221$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14222 X"$0" : 'X\(//\)$' \| \
14223 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14224$as_echo X/"$0" |
14225 sed '/^.*\/\([^/][^/]*\)\/*$/{
14226 s//\1/
14227 q
14228 }
14229 /^X\/\(\/\/\)$/{
14230 s//\1/
14231 q
14232 }
14233 /^X\/\(\/\).*/{
14234 s//\1/
14235 q
14236 }
14237 s/.*/./; q'`
14238
14239# Avoid depending upon Character Ranges.
14240as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14241as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14242as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14243as_cr_digits='0123456789'
14244as_cr_alnum=$as_cr_Letters$as_cr_digits
14245
14246ECHO_C= ECHO_N= ECHO_T=
14247case `echo -n x` in #(((((
14248-n*)
14249 case `echo 'xy\c'` in
14250 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14251 xy) ECHO_C='\c';;
14252 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14253 ECHO_T=' ';;
14254 esac;;
14255*)
14256 ECHO_N='-n';;
14257esac
14258
14259rm -f conf$$ conf$$.exe conf$$.file
14260if test -d conf$$.dir; then
14261 rm -f conf$$.dir/conf$$.file
14262else
14263 rm -f conf$$.dir
14264 mkdir conf$$.dir 2>/dev/null
14265fi
14266if (echo >conf$$.file) 2>/dev/null; then
14267 if ln -s conf$$.file conf$$ 2>/dev/null; then
14268 as_ln_s='ln -s'
14269 # ... but there are two gotchas:
14270 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14271 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14272 # In both cases, we have to default to `cp -p'.
14273 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14274 as_ln_s='cp -p'
14275 elif ln conf$$.file conf$$ 2>/dev/null; then
14276 as_ln_s=ln
14277 else
14278 as_ln_s='cp -p'
14279 fi
14280else
14281 as_ln_s='cp -p'
14282fi
14283rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14284rmdir conf$$.dir 2>/dev/null
14285
14286
14287# as_fn_mkdir_p
14288# -------------
14289# Create "$as_dir" as a directory, including parents if necessary.
14290as_fn_mkdir_p ()
14291{
14292
14293 case $as_dir in #(
14294 -*) as_dir=./$as_dir;;
14295 esac
14296 test -d "$as_dir" || eval $as_mkdir_p || {
14297 as_dirs=
14298 while :; do
14299 case $as_dir in #(
14300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14301 *) as_qdir=$as_dir;;
14302 esac
14303 as_dirs="'$as_qdir' $as_dirs"
14304 as_dir=`$as_dirname -- "$as_dir" ||
14305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14306 X"$as_dir" : 'X\(//\)[^/]' \| \
14307 X"$as_dir" : 'X\(//\)$' \| \
14308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14309$as_echo X"$as_dir" |
14310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14311 s//\1/
14312 q
14313 }
14314 /^X\(\/\/\)[^/].*/{
14315 s//\1/
14316 q
14317 }
14318 /^X\(\/\/\)$/{
14319 s//\1/
14320 q
14321 }
14322 /^X\(\/\).*/{
14323 s//\1/
14324 q
14325 }
14326 s/.*/./; q'`
14327 test -d "$as_dir" && break
14328 done
14329 test -z "$as_dirs" || eval "mkdir $as_dirs"
14330 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14331
14332
14333} # as_fn_mkdir_p
14334if mkdir -p . 2>/dev/null; then
14335 as_mkdir_p='mkdir -p "$as_dir"'
14336else
14337 test -d ./-p && rmdir ./-p
14338 as_mkdir_p=false
14339fi
14340
14341if test -x / >/dev/null 2>&1; then
14342 as_test_x='test -x'
14343else
14344 if ls -dL / >/dev/null 2>&1; then
14345 as_ls_L_option=L
14346 else
14347 as_ls_L_option=
14348 fi
14349 as_test_x='
14350 eval sh -c '\''
14351 if test -d "$1"; then
14352 test -d "$1/.";
14353 else
14354 case $1 in #(
14355 -*)set "./$1";;
14356 esac;
14357 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14358 ???[sx]*):;;*)false;;esac;fi
14359 '\'' sh
14360 '
14361fi
14362as_executable_p=$as_test_x
14363
14364# Sed expression to map a string onto a valid CPP name.
14365as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14366
14367# Sed expression to map a string onto a valid variable name.
14368as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14369
14370
14371exec 6>&1
14372## ----------------------------------- ##
14373## Main body of $CONFIG_STATUS script. ##
14374## ----------------------------------- ##
14375_ASEOF
14376test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14377
14378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14379# Save the log message, to keep $0 and so on meaningful, and to
14380# report actual input values of CONFIG_FILES etc. instead of their
14381# values after options handling.
14382ac_log="
14383This file was extended by $as_me, which was
14384generated by GNU Autoconf 2.64. Invocation command line was
14385
14386 CONFIG_FILES = $CONFIG_FILES
14387 CONFIG_HEADERS = $CONFIG_HEADERS
14388 CONFIG_LINKS = $CONFIG_LINKS
14389 CONFIG_COMMANDS = $CONFIG_COMMANDS
14390 $ $0 $@
14391
14392on `(hostname || uname -n) 2>/dev/null | sed 1q`
14393"
14394
14395_ACEOF
14396
14397case $ac_config_files in *"
14398"*) set x $ac_config_files; shift; ac_config_files=$*;;
14399esac
14400
14401case $ac_config_headers in *"
14402"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14403esac
14404
14405
14406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14407# Files that config.status was made for.
14408config_files="$ac_config_files"
14409config_headers="$ac_config_headers"
14410config_links="$ac_config_links"
14411config_commands="$ac_config_commands"
14412
14413_ACEOF
14414
14415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14416ac_cs_usage="\
14417\`$as_me' instantiates files and other configuration actions
14418from templates according to the current configuration. Unless the files
14419and actions are specified as TAGs, all are instantiated by default.
14420
14421Usage: $0 [OPTION]... [TAG]...
14422
14423 -h, --help print this help, then exit
14424 -V, --version print version number and configuration settings, then exit
14425 -q, --quiet, --silent
14426 do not print progress messages
14427 -d, --debug don't remove temporary files
14428 --recheck update $as_me by reconfiguring in the same conditions
14429 --file=FILE[:TEMPLATE]
14430 instantiate the configuration file FILE
14431 --header=FILE[:TEMPLATE]
14432 instantiate the configuration header FILE
14433
14434Configuration files:
14435$config_files
14436
14437Configuration headers:
14438$config_headers
14439
14440Configuration links:
14441$config_links
14442
14443Configuration commands:
14444$config_commands
14445
14446Report bugs to the package provider."
14447
14448_ACEOF
14449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14450ac_cs_version="\\
14451config.status
14452configured by $0, generated by GNU Autoconf 2.64,
14453 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14454
14455Copyright (C) 2009 Free Software Foundation, Inc.
14456This config.status script is free software; the Free Software Foundation
14457gives unlimited permission to copy, distribute and modify it."
14458
14459ac_pwd='$ac_pwd'
14460srcdir='$srcdir'
14461INSTALL='$INSTALL'
6bb11ab3 14462AWK='$AWK'
ef016f83
MF
14463test -n "\$AWK" || AWK=awk
14464_ACEOF
14465
14466cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14467# The default lists apply if the user does not specify any file.
14468ac_need_defaults=:
14469while test $# != 0
14470do
14471 case $1 in
14472 --*=*)
14473 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14474 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14475 ac_shift=:
14476 ;;
14477 *)
14478 ac_option=$1
14479 ac_optarg=$2
14480 ac_shift=shift
14481 ;;
14482 esac
14483
14484 case $ac_option in
14485 # Handling of the options.
14486 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14487 ac_cs_recheck=: ;;
14488 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14489 $as_echo "$ac_cs_version"; exit ;;
14490 --debug | --debu | --deb | --de | --d | -d )
14491 debug=: ;;
14492 --file | --fil | --fi | --f )
14493 $ac_shift
14494 case $ac_optarg in
14495 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14496 esac
14497 as_fn_append CONFIG_FILES " '$ac_optarg'"
14498 ac_need_defaults=false;;
14499 --header | --heade | --head | --hea )
14500 $ac_shift
14501 case $ac_optarg in
14502 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14503 esac
14504 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14505 ac_need_defaults=false;;
14506 --he | --h)
14507 # Conflict between --help and --header
14508 as_fn_error "ambiguous option: \`$1'
14509Try \`$0 --help' for more information.";;
14510 --help | --hel | -h )
14511 $as_echo "$ac_cs_usage"; exit ;;
14512 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14513 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14514 ac_cs_silent=: ;;
14515
14516 # This is an error.
14517 -*) as_fn_error "unrecognized option: \`$1'
14518Try \`$0 --help' for more information." ;;
14519
14520 *) as_fn_append ac_config_targets " $1"
14521 ac_need_defaults=false ;;
14522
14523 esac
14524 shift
14525done
14526
14527ac_configure_extra_args=
14528
14529if $ac_cs_silent; then
14530 exec 6>/dev/null
14531 ac_configure_extra_args="$ac_configure_extra_args --silent"
14532fi
14533
14534_ACEOF
14535cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14536if \$ac_cs_recheck; then
14537 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14538 shift
14539 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14540 CONFIG_SHELL='$SHELL'
14541 export CONFIG_SHELL
14542 exec "\$@"
14543fi
14544
14545_ACEOF
14546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14547exec 5>>config.log
14548{
14549 echo
14550 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14551## Running $as_me. ##
14552_ASBOX
14553 $as_echo "$ac_log"
14554} >&5
14555
14556_ACEOF
14557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
db2e4d67
MF
14558#
14559# INIT-COMMANDS
14560#
14561ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14562
6bb11ab3
L
14563
14564# The HP-UX ksh and POSIX shell print the target directory to stdout
14565# if CDPATH is set.
14566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14567
14568sed_quote_subst='$sed_quote_subst'
14569double_quote_subst='$double_quote_subst'
14570delay_variable_subst='$delay_variable_subst'
14571macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14572macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14573enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14574enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14575pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14576enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14577SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14578ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14579host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14580host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14581host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14582build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14583build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14584build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14585SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14586Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14587GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14588EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14589FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14590LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14591NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14592LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14593max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14594ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14595exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14596lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14597lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14598lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14599reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14600reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14601OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14602deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14603file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14604AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14605AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14606STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14607RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14608old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14609old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14610old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14611lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14612CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14613CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14614compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14615GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14616lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14617lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14618lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14619lt_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"`'
14620objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14621MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14622lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14623lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14624lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14625lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14626lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14627need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14628DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14629NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14630LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14631OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14632OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14633libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14634shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14635extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14636archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14637enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14638export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14639whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14640compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14641old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14642old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14643archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14644archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14645module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14646module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14647with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14648allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14649no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14650hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14651hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14652hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14653hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14654hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14655hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14656hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14657hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14658inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14659link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14660fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14661always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14662export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14663exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14664include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14665prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14666file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14667variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14668need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14669need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14670version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14671runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14672shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14673shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14674libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14675library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14676soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14677install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14678postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14679postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14680finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14681finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14682hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14683sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14684sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14685hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14686enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14687enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14688enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14689old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14690striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14691
14692LTCC='$LTCC'
14693LTCFLAGS='$LTCFLAGS'
14694compiler='$compiler_DEFAULT'
14695
14696# A function that is used when there is no print builtin or printf.
14697func_fallback_echo ()
14698{
14699 eval 'cat <<_LTECHO_EOF
14700\$1
14701_LTECHO_EOF'
14702}
14703
14704# Quote evaled strings.
14705for var in SHELL \
14706ECHO \
14707SED \
14708GREP \
14709EGREP \
14710FGREP \
14711LD \
14712NM \
14713LN_S \
14714lt_SP2NL \
14715lt_NL2SP \
14716reload_flag \
14717OBJDUMP \
14718deplibs_check_method \
14719file_magic_cmd \
14720AR \
14721AR_FLAGS \
14722STRIP \
14723RANLIB \
14724CC \
14725CFLAGS \
14726compiler \
14727lt_cv_sys_global_symbol_pipe \
14728lt_cv_sys_global_symbol_to_cdecl \
14729lt_cv_sys_global_symbol_to_c_name_address \
14730lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14731lt_prog_compiler_no_builtin_flag \
14732lt_prog_compiler_wl \
14733lt_prog_compiler_pic \
14734lt_prog_compiler_static \
14735lt_cv_prog_compiler_c_o \
14736need_locks \
14737DSYMUTIL \
14738NMEDIT \
14739LIPO \
14740OTOOL \
14741OTOOL64 \
14742shrext_cmds \
14743export_dynamic_flag_spec \
14744whole_archive_flag_spec \
14745compiler_needs_object \
14746with_gnu_ld \
14747allow_undefined_flag \
14748no_undefined_flag \
14749hardcode_libdir_flag_spec \
14750hardcode_libdir_flag_spec_ld \
14751hardcode_libdir_separator \
14752fix_srcfile_path \
14753exclude_expsyms \
14754include_expsyms \
14755file_list_spec \
14756variables_saved_for_relink \
14757libname_spec \
14758library_names_spec \
14759soname_spec \
14760install_override_mode \
14761finish_eval \
14762old_striplib \
14763striplib; do
14764 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14765 *[\\\\\\\`\\"\\\$]*)
14766 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14767 ;;
14768 *)
14769 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14770 ;;
14771 esac
14772done
14773
14774# Double-quote double-evaled strings.
14775for var in reload_cmds \
14776old_postinstall_cmds \
14777old_postuninstall_cmds \
14778old_archive_cmds \
14779extract_expsyms_cmds \
14780old_archive_from_new_cmds \
14781old_archive_from_expsyms_cmds \
14782archive_cmds \
14783archive_expsym_cmds \
14784module_cmds \
14785module_expsym_cmds \
14786export_symbols_cmds \
14787prelink_cmds \
14788postinstall_cmds \
14789postuninstall_cmds \
14790finish_cmds \
14791sys_lib_search_path_spec \
14792sys_lib_dlsearch_path_spec; do
14793 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14794 *[\\\\\\\`\\"\\\$]*)
14795 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14796 ;;
14797 *)
14798 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14799 ;;
14800 esac
14801done
14802
14803ac_aux_dir='$ac_aux_dir'
14804xsi_shell='$xsi_shell'
14805lt_shell_append='$lt_shell_append'
14806
14807# See if we are running on zsh, and set the options which allow our
14808# commands through without removal of \ escapes INIT.
14809if test -n "\${ZSH_VERSION+set}" ; then
14810 setopt NO_GLOB_SUBST
14811fi
14812
14813
14814 PACKAGE='$PACKAGE'
14815 VERSION='$VERSION'
14816 TIMESTAMP='$TIMESTAMP'
14817 RM='$RM'
14818 ofile='$ofile'
14819
14820
14821
14822
ef016f83
MF
14823_ACEOF
14824
14825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14826
14827# Handling of arguments.
14828for ac_config_target in $ac_config_targets
14829do
14830 case $ac_config_target in
14831 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
db2e4d67 14832 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
6bb11ab3 14833 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
ef016f83
MF
14834 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
14835 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
14836 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
14837 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
14838 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
14839 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
14840
14841 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14842 esac
14843done
14844
14845
14846# If the user did not use the arguments to specify the items to instantiate,
14847# then the envvar interface is used. Set only those that are not.
14848# We use the long form for the default assignment because of an extremely
14849# bizarre bug on SunOS 4.1.3.
14850if $ac_need_defaults; then
14851 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14852 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14853 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14854 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14855fi
14856
14857# Have a temporary directory for convenience. Make it in the build tree
14858# simply because there is no reason against having it here, and in addition,
14859# creating and moving files from /tmp can sometimes cause problems.
14860# Hook for its removal unless debugging.
14861# Note that there is a small window in which the directory will not be cleaned:
14862# after its creation but before its name has been assigned to `$tmp'.
14863$debug ||
14864{
14865 tmp=
14866 trap 'exit_status=$?
14867 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14868' 0
14869 trap 'as_fn_exit 1' 1 2 13 15
14870}
14871# Create a (secure) tmp directory for tmp files.
14872
14873{
14874 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14875 test -n "$tmp" && test -d "$tmp"
14876} ||
14877{
14878 tmp=./conf$$-$RANDOM
14879 (umask 077 && mkdir "$tmp")
14880} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14881
14882# Set up the scripts for CONFIG_FILES section.
14883# No need to generate them if there are no CONFIG_FILES.
14884# This happens for instance with `./config.status config.h'.
14885if test -n "$CONFIG_FILES"; then
14886
14887
14888ac_cr=`echo X | tr X '\015'`
14889# On cygwin, bash can eat \r inside `` if the user requested igncr.
14890# But we know of no other shell where ac_cr would be empty at this
14891# point, so we can use a bashism as a fallback.
14892if test "x$ac_cr" = x; then
14893 eval ac_cr=\$\'\\r\'
14894fi
14895ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14896if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14897 ac_cs_awk_cr='\r'
14898else
14899 ac_cs_awk_cr=$ac_cr
14900fi
14901
14902echo 'BEGIN {' >"$tmp/subs1.awk" &&
14903_ACEOF
14904
14905
14906{
14907 echo "cat >conf$$subs.awk <<_ACEOF" &&
14908 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14909 echo "_ACEOF"
14910} >conf$$subs.sh ||
14911 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14912ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14913ac_delim='%!_!# '
14914for ac_last_try in false false false false false :; do
14915 . ./conf$$subs.sh ||
14916 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14917
14918 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14919 if test $ac_delim_n = $ac_delim_num; then
14920 break
14921 elif $ac_last_try; then
14922 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14923 else
14924 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14925 fi
14926done
14927rm -f conf$$subs.sh
14928
14929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14930cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14931_ACEOF
14932sed -n '
14933h
14934s/^/S["/; s/!.*/"]=/
14935p
14936g
14937s/^[^!]*!//
14938:repl
14939t repl
14940s/'"$ac_delim"'$//
14941t delim
14942:nl
14943h
14944s/\(.\{148\}\).*/\1/
14945t more1
14946s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14947p
14948n
14949b repl
14950:more1
14951s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14952p
14953g
14954s/.\{148\}//
14955t nl
14956:delim
14957h
14958s/\(.\{148\}\).*/\1/
14959t more2
14960s/["\\]/\\&/g; s/^/"/; s/$/"/
14961p
14962b
14963:more2
14964s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14965p
14966g
14967s/.\{148\}//
14968t delim
14969' <conf$$subs.awk | sed '
14970/^[^""]/{
14971 N
14972 s/\n//
14973}
14974' >>$CONFIG_STATUS || ac_write_fail=1
14975rm -f conf$$subs.awk
14976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14977_ACAWK
14978cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14979 for (key in S) S_is_set[key] = 1
14980 FS = "\a"
14981
14982}
14983{
14984 line = $ 0
14985 nfields = split(line, field, "@")
14986 substed = 0
14987 len = length(field[1])
14988 for (i = 2; i < nfields; i++) {
14989 key = field[i]
14990 keylen = length(key)
14991 if (S_is_set[key]) {
14992 value = S[key]
14993 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14994 len += length(value) + length(field[++i])
14995 substed = 1
14996 } else
14997 len += 1 + keylen
14998 }
14999
15000 print line
15001}
15002
15003_ACAWK
15004_ACEOF
15005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15006if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15007 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15008else
15009 cat
15010fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15011 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15012_ACEOF
15013
15014# VPATH may cause trouble with some makes, so we remove $(srcdir),
15015# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15016# trailing colons and then remove the whole line if VPATH becomes empty
15017# (actually we leave an empty line to preserve line numbers).
15018if test "x$srcdir" = x.; then
15019 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15020s/:*\$(srcdir):*/:/
15021s/:*\${srcdir}:*/:/
15022s/:*@srcdir@:*/:/
15023s/^\([^=]*=[ ]*\):*/\1/
15024s/:*$//
15025s/^[^=]*=[ ]*$//
15026}'
15027fi
15028
15029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15030fi # test -n "$CONFIG_FILES"
15031
15032# Set up the scripts for CONFIG_HEADERS section.
15033# No need to generate them if there are no CONFIG_HEADERS.
15034# This happens for instance with `./config.status Makefile'.
15035if test -n "$CONFIG_HEADERS"; then
15036cat >"$tmp/defines.awk" <<\_ACAWK ||
15037BEGIN {
15038_ACEOF
15039
15040# Transform confdefs.h into an awk script `defines.awk', embedded as
15041# here-document in config.status, that substitutes the proper values into
15042# config.h.in to produce config.h.
15043
15044# Create a delimiter string that does not exist in confdefs.h, to ease
15045# handling of long lines.
15046ac_delim='%!_!# '
15047for ac_last_try in false false :; do
15048 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15049 if test -z "$ac_t"; then
15050 break
15051 elif $ac_last_try; then
15052 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15053 else
15054 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15055 fi
15056done
15057
15058# For the awk script, D is an array of macro values keyed by name,
15059# likewise P contains macro parameters if any. Preserve backslash
15060# newline sequences.
15061
15062ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15063sed -n '
15064s/.\{148\}/&'"$ac_delim"'/g
15065t rset
15066:rset
15067s/^[ ]*#[ ]*define[ ][ ]*/ /
15068t def
15069d
15070:def
15071s/\\$//
15072t bsnl
15073s/["\\]/\\&/g
15074s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15075D["\1"]=" \3"/p
15076s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15077d
15078:bsnl
15079s/["\\]/\\&/g
15080s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15081D["\1"]=" \3\\\\\\n"\\/p
15082t cont
15083s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15084t cont
15085d
15086:cont
15087n
15088s/.\{148\}/&'"$ac_delim"'/g
15089t clear
15090:clear
15091s/\\$//
15092t bsnlc
15093s/["\\]/\\&/g; s/^/"/; s/$/"/p
15094d
15095:bsnlc
15096s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15097b cont
15098' <confdefs.h | sed '
15099s/'"$ac_delim"'/"\\\
15100"/g' >>$CONFIG_STATUS || ac_write_fail=1
15101
15102cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15103 for (key in D) D_is_set[key] = 1
15104 FS = "\a"
15105}
15106/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15107 line = \$ 0
15108 split(line, arg, " ")
15109 if (arg[1] == "#") {
15110 defundef = arg[2]
15111 mac1 = arg[3]
15112 } else {
15113 defundef = substr(arg[1], 2)
15114 mac1 = arg[2]
15115 }
15116 split(mac1, mac2, "(") #)
15117 macro = mac2[1]
15118 prefix = substr(line, 1, index(line, defundef) - 1)
15119 if (D_is_set[macro]) {
15120 # Preserve the white space surrounding the "#".
15121 print prefix "define", macro P[macro] D[macro]
15122 next
15123 } else {
15124 # Replace #undef with comments. This is necessary, for example,
15125 # in the case of _POSIX_SOURCE, which is predefined and required
15126 # on some systems where configure will not decide to define it.
15127 if (defundef == "undef") {
15128 print "/*", prefix defundef, macro, "*/"
15129 next
15130 }
15131 }
15132}
15133{ print }
15134_ACAWK
15135_ACEOF
15136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15137 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15138fi # test -n "$CONFIG_HEADERS"
15139
15140
15141eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
15142shift
15143for ac_tag
15144do
15145 case $ac_tag in
15146 :[FHLC]) ac_mode=$ac_tag; continue;;
15147 esac
15148 case $ac_mode$ac_tag in
15149 :[FHL]*:*);;
15150 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15151 :[FH]-) ac_tag=-:-;;
15152 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15153 esac
15154 ac_save_IFS=$IFS
15155 IFS=:
15156 set x $ac_tag
15157 IFS=$ac_save_IFS
15158 shift
15159 ac_file=$1
15160 shift
15161
15162 case $ac_mode in
15163 :L) ac_source=$1;;
15164 :[FH])
15165 ac_file_inputs=
15166 for ac_f
15167 do
15168 case $ac_f in
15169 -) ac_f="$tmp/stdin";;
15170 *) # Look for the file first in the build tree, then in the source tree
15171 # (if the path is not absolute). The absolute path cannot be DOS-style,
15172 # because $ac_f cannot contain `:'.
15173 test -f "$ac_f" ||
15174 case $ac_f in
15175 [\\/$]*) false;;
15176 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15177 esac ||
15178 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15179 esac
15180 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15181 as_fn_append ac_file_inputs " '$ac_f'"
15182 done
15183
15184 # Let's still pretend it is `configure' which instantiates (i.e., don't
15185 # use $as_me), people would be surprised to read:
15186 # /* config.h. Generated by config.status. */
15187 configure_input='Generated from '`
15188 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15189 `' by configure.'
15190 if test x"$ac_file" != x-; then
15191 configure_input="$ac_file. $configure_input"
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15193$as_echo "$as_me: creating $ac_file" >&6;}
15194 fi
15195 # Neutralize special characters interpreted by sed in replacement strings.
15196 case $configure_input in #(
15197 *\&* | *\|* | *\\* )
15198 ac_sed_conf_input=`$as_echo "$configure_input" |
15199 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15200 *) ac_sed_conf_input=$configure_input;;
15201 esac
15202
15203 case $ac_tag in
15204 *:-:* | *:-) cat >"$tmp/stdin" \
15205 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15206 esac
15207 ;;
15208 esac
15209
15210 ac_dir=`$as_dirname -- "$ac_file" ||
15211$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15212 X"$ac_file" : 'X\(//\)[^/]' \| \
15213 X"$ac_file" : 'X\(//\)$' \| \
15214 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15215$as_echo X"$ac_file" |
15216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15217 s//\1/
15218 q
15219 }
15220 /^X\(\/\/\)[^/].*/{
15221 s//\1/
15222 q
15223 }
15224 /^X\(\/\/\)$/{
15225 s//\1/
15226 q
15227 }
15228 /^X\(\/\).*/{
15229 s//\1/
15230 q
15231 }
15232 s/.*/./; q'`
15233 as_dir="$ac_dir"; as_fn_mkdir_p
15234 ac_builddir=.
15235
15236case "$ac_dir" in
15237.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15238*)
15239 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15240 # A ".." for each directory in $ac_dir_suffix.
15241 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15242 case $ac_top_builddir_sub in
15243 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15244 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15245 esac ;;
15246esac
15247ac_abs_top_builddir=$ac_pwd
15248ac_abs_builddir=$ac_pwd$ac_dir_suffix
15249# for backward compatibility:
15250ac_top_builddir=$ac_top_build_prefix
15251
15252case $srcdir in
15253 .) # We are building in place.
15254 ac_srcdir=.
15255 ac_top_srcdir=$ac_top_builddir_sub
15256 ac_abs_top_srcdir=$ac_pwd ;;
15257 [\\/]* | ?:[\\/]* ) # Absolute name.
15258 ac_srcdir=$srcdir$ac_dir_suffix;
15259 ac_top_srcdir=$srcdir
15260 ac_abs_top_srcdir=$srcdir ;;
15261 *) # Relative name.
15262 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15263 ac_top_srcdir=$ac_top_build_prefix$srcdir
15264 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15265esac
15266ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15267
15268
15269 case $ac_mode in
15270 :F)
15271 #
15272 # CONFIG_FILE
15273 #
15274
15275 case $INSTALL in
15276 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15277 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15278 esac
15279_ACEOF
15280
15281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15282# If the template does not know about datarootdir, expand it.
15283# FIXME: This hack should be removed a few years after 2.60.
15284ac_datarootdir_hack=; ac_datarootdir_seen=
15285ac_sed_dataroot='
15286/datarootdir/ {
15287 p
15288 q
15289}
15290/@datadir@/p
15291/@docdir@/p
15292/@infodir@/p
15293/@localedir@/p
15294/@mandir@/p'
15295case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15296*datarootdir*) ac_datarootdir_seen=yes;;
15297*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15299$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15300_ACEOF
15301cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15302 ac_datarootdir_hack='
15303 s&@datadir@&$datadir&g
15304 s&@docdir@&$docdir&g
15305 s&@infodir@&$infodir&g
15306 s&@localedir@&$localedir&g
15307 s&@mandir@&$mandir&g
15308 s&\\\${datarootdir}&$datarootdir&g' ;;
15309esac
15310_ACEOF
15311
15312# Neutralize VPATH when `$srcdir' = `.'.
15313# Shell code in configure.ac might set extrasub.
15314# FIXME: do we really want to maintain this feature?
15315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15316ac_sed_extra="$ac_vpsub
15317$extrasub
15318_ACEOF
15319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15320:t
15321/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15322s|@configure_input@|$ac_sed_conf_input|;t t
15323s&@top_builddir@&$ac_top_builddir_sub&;t t
15324s&@top_build_prefix@&$ac_top_build_prefix&;t t
15325s&@srcdir@&$ac_srcdir&;t t
15326s&@abs_srcdir@&$ac_abs_srcdir&;t t
15327s&@top_srcdir@&$ac_top_srcdir&;t t
15328s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15329s&@builddir@&$ac_builddir&;t t
15330s&@abs_builddir@&$ac_abs_builddir&;t t
15331s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15332s&@INSTALL@&$ac_INSTALL&;t t
15333$ac_datarootdir_hack
15334"
15335eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15336 || as_fn_error "could not create $ac_file" "$LINENO" 5
15337
15338test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15339 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15340 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15342which seems to be undefined. Please make sure it is defined." >&5
15343$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15344which seems to be undefined. Please make sure it is defined." >&2;}
15345
15346 rm -f "$tmp/stdin"
15347 case $ac_file in
15348 -) cat "$tmp/out" && rm -f "$tmp/out";;
15349 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15350 esac \
15351 || as_fn_error "could not create $ac_file" "$LINENO" 5
15352 ;;
15353 :H)
15354 #
15355 # CONFIG_HEADER
15356 #
15357 if test x"$ac_file" != x-; then
15358 {
15359 $as_echo "/* $configure_input */" \
15360 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15361 } >"$tmp/config.h" \
15362 || as_fn_error "could not create $ac_file" "$LINENO" 5
15363 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15365$as_echo "$as_me: $ac_file is unchanged" >&6;}
15366 else
15367 rm -f "$ac_file"
15368 mv "$tmp/config.h" "$ac_file" \
15369 || as_fn_error "could not create $ac_file" "$LINENO" 5
15370 fi
15371 else
15372 $as_echo "/* $configure_input */" \
15373 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15374 || as_fn_error "could not create -" "$LINENO" 5
15375 fi
15376 ;;
15377 :L)
15378 #
15379 # CONFIG_LINK
15380 #
15381
15382 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15383 :
15384 else
15385 # Prefer the file from the source tree if names are identical.
15386 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
15387 ac_source=$srcdir/$ac_source
15388 fi
15389
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15391$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15392
15393 if test ! -r "$ac_source"; then
15394 as_fn_error "$ac_source: file not found" "$LINENO" 5
15395 fi
15396 rm -f "$ac_file"
15397
15398 # Try a relative symlink, then a hard link, then a copy.
15399 case $srcdir in
15400 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
15401 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
15402 esac
15403 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
15404 ln "$ac_source" "$ac_file" 2>/dev/null ||
15405 cp -p "$ac_source" "$ac_file" ||
15406 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15407 fi
15408 ;;
15409 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15410$as_echo "$as_me: executing $ac_file commands" >&6;}
15411 ;;
15412 esac
15413
15414
15415 case $ac_file$ac_mode in
db2e4d67 15416 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
6bb11ab3
L
15417 "libtool":C)
15418
15419 # See if we are running on zsh, and set the options which allow our
15420 # commands through without removal of \ escapes.
15421 if test -n "${ZSH_VERSION+set}" ; then
15422 setopt NO_GLOB_SUBST
15423 fi
15424
15425 cfgfile="${ofile}T"
15426 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15427 $RM "$cfgfile"
15428
15429 cat <<_LT_EOF >> "$cfgfile"
15430#! $SHELL
15431
15432# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15433# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15434# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15435# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15436#
15437# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15438# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15439# Written by Gordon Matzigkeit, 1996
15440#
15441# This file is part of GNU Libtool.
15442#
15443# GNU Libtool is free software; you can redistribute it and/or
15444# modify it under the terms of the GNU General Public License as
15445# published by the Free Software Foundation; either version 2 of
15446# the License, or (at your option) any later version.
15447#
15448# As a special exception to the GNU General Public License,
15449# if you distribute this file as part of a program or library that
15450# is built using GNU Libtool, you may include this file under the
15451# same distribution terms that you use for the rest of that program.
15452#
15453# GNU Libtool is distributed in the hope that it will be useful,
15454# but WITHOUT ANY WARRANTY; without even the implied warranty of
15455# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15456# GNU General Public License for more details.
15457#
15458# You should have received a copy of the GNU General Public License
15459# along with GNU Libtool; see the file COPYING. If not, a copy
15460# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15461# obtained by writing to the Free Software Foundation, Inc.,
15462# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15463
15464
15465# The names of the tagged configurations supported by this script.
15466available_tags=""
15467
15468# ### BEGIN LIBTOOL CONFIG
15469
15470# Which release of libtool.m4 was used?
15471macro_version=$macro_version
15472macro_revision=$macro_revision
15473
15474# Whether or not to build shared libraries.
15475build_libtool_libs=$enable_shared
15476
15477# Whether or not to build static libraries.
15478build_old_libs=$enable_static
15479
15480# What type of objects to build.
15481pic_mode=$pic_mode
15482
15483# Whether or not to optimize for fast installation.
15484fast_install=$enable_fast_install
15485
15486# Shell to use when invoking shell scripts.
15487SHELL=$lt_SHELL
15488
15489# An echo program that protects backslashes.
15490ECHO=$lt_ECHO
15491
15492# The host system.
15493host_alias=$host_alias
15494host=$host
15495host_os=$host_os
15496
15497# The build system.
15498build_alias=$build_alias
15499build=$build
15500build_os=$build_os
15501
15502# A sed program that does not truncate output.
15503SED=$lt_SED
15504
15505# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15506Xsed="\$SED -e 1s/^X//"
15507
15508# A grep program that handles long lines.
15509GREP=$lt_GREP
15510
15511# An ERE matcher.
15512EGREP=$lt_EGREP
15513
15514# A literal string matcher.
15515FGREP=$lt_FGREP
15516
15517# A BSD- or MS-compatible name lister.
15518NM=$lt_NM
15519
15520# Whether we need soft or hard links.
15521LN_S=$lt_LN_S
15522
15523# What is the maximum length of a command?
15524max_cmd_len=$max_cmd_len
15525
15526# Object file suffix (normally "o").
15527objext=$ac_objext
15528
15529# Executable file suffix (normally "").
15530exeext=$exeext
15531
15532# whether the shell understands "unset".
15533lt_unset=$lt_unset
15534
15535# turn spaces into newlines.
15536SP2NL=$lt_lt_SP2NL
15537
15538# turn newlines into spaces.
15539NL2SP=$lt_lt_NL2SP
15540
15541# An object symbol dumper.
15542OBJDUMP=$lt_OBJDUMP
15543
15544# Method to check whether dependent libraries are shared objects.
15545deplibs_check_method=$lt_deplibs_check_method
15546
15547# Command to use when deplibs_check_method == "file_magic".
15548file_magic_cmd=$lt_file_magic_cmd
15549
15550# The archiver.
15551AR=$lt_AR
15552AR_FLAGS=$lt_AR_FLAGS
15553
15554# A symbol stripping program.
15555STRIP=$lt_STRIP
15556
15557# Commands used to install an old-style archive.
15558RANLIB=$lt_RANLIB
15559old_postinstall_cmds=$lt_old_postinstall_cmds
15560old_postuninstall_cmds=$lt_old_postuninstall_cmds
15561
15562# Whether to use a lock for old archive extraction.
15563lock_old_archive_extraction=$lock_old_archive_extraction
15564
15565# A C compiler.
15566LTCC=$lt_CC
15567
15568# LTCC compiler flags.
15569LTCFLAGS=$lt_CFLAGS
15570
15571# Take the output of nm and produce a listing of raw symbols and C names.
15572global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15573
15574# Transform the output of nm in a proper C declaration.
15575global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15576
15577# Transform the output of nm in a C name address pair.
15578global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15579
15580# Transform the output of nm in a C name address pair when lib prefix is needed.
15581global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15582
15583# The name of the directory that contains temporary libtool files.
15584objdir=$objdir
15585
15586# Used to examine libraries when file_magic_cmd begins with "file".
15587MAGIC_CMD=$MAGIC_CMD
15588
15589# Must we lock files when doing compilation?
15590need_locks=$lt_need_locks
15591
15592# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15593DSYMUTIL=$lt_DSYMUTIL
15594
15595# Tool to change global to local symbols on Mac OS X.
15596NMEDIT=$lt_NMEDIT
15597
15598# Tool to manipulate fat objects and archives on Mac OS X.
15599LIPO=$lt_LIPO
15600
15601# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15602OTOOL=$lt_OTOOL
15603
15604# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15605OTOOL64=$lt_OTOOL64
15606
15607# Old archive suffix (normally "a").
15608libext=$libext
15609
15610# Shared library suffix (normally ".so").
15611shrext_cmds=$lt_shrext_cmds
15612
15613# The commands to extract the exported symbol list from a shared archive.
15614extract_expsyms_cmds=$lt_extract_expsyms_cmds
15615
15616# Variables whose values should be saved in libtool wrapper scripts and
15617# restored at link time.
15618variables_saved_for_relink=$lt_variables_saved_for_relink
15619
15620# Do we need the "lib" prefix for modules?
15621need_lib_prefix=$need_lib_prefix
15622
15623# Do we need a version for libraries?
15624need_version=$need_version
15625
15626# Library versioning type.
15627version_type=$version_type
15628
15629# Shared library runtime path variable.
15630runpath_var=$runpath_var
15631
15632# Shared library path variable.
15633shlibpath_var=$shlibpath_var
15634
15635# Is shlibpath searched before the hard-coded library search path?
15636shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15637
15638# Format of library name prefix.
15639libname_spec=$lt_libname_spec
15640
15641# List of archive names. First name is the real one, the rest are links.
15642# The last name is the one that the linker finds with -lNAME
15643library_names_spec=$lt_library_names_spec
15644
15645# The coded name of the library, if different from the real name.
15646soname_spec=$lt_soname_spec
15647
15648# Permission mode override for installation of shared libraries.
15649install_override_mode=$lt_install_override_mode
15650
15651# Command to use after installation of a shared archive.
15652postinstall_cmds=$lt_postinstall_cmds
15653
15654# Command to use after uninstallation of a shared archive.
15655postuninstall_cmds=$lt_postuninstall_cmds
15656
15657# Commands used to finish a libtool library installation in a directory.
15658finish_cmds=$lt_finish_cmds
15659
15660# As "finish_cmds", except a single script fragment to be evaled but
15661# not shown.
15662finish_eval=$lt_finish_eval
15663
15664# Whether we should hardcode library paths into libraries.
15665hardcode_into_libs=$hardcode_into_libs
15666
15667# Compile-time system search path for libraries.
15668sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15669
15670# Run-time system search path for libraries.
15671sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15672
15673# Whether dlopen is supported.
15674dlopen_support=$enable_dlopen
15675
15676# Whether dlopen of programs is supported.
15677dlopen_self=$enable_dlopen_self
15678
15679# Whether dlopen of statically linked programs is supported.
15680dlopen_self_static=$enable_dlopen_self_static
15681
15682# Commands to strip libraries.
15683old_striplib=$lt_old_striplib
15684striplib=$lt_striplib
15685
15686
15687# The linker used to build libraries.
15688LD=$lt_LD
15689
15690# How to create reloadable object files.
15691reload_flag=$lt_reload_flag
15692reload_cmds=$lt_reload_cmds
15693
15694# Commands used to build an old-style archive.
15695old_archive_cmds=$lt_old_archive_cmds
15696
15697# A language specific compiler.
15698CC=$lt_compiler
15699
15700# Is the compiler the GNU compiler?
15701with_gcc=$GCC
15702
15703# Compiler flag to turn off builtin functions.
15704no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15705
15706# How to pass a linker flag through the compiler.
15707wl=$lt_lt_prog_compiler_wl
15708
15709# Additional compiler flags for building library objects.
15710pic_flag=$lt_lt_prog_compiler_pic
15711
15712# Compiler flag to prevent dynamic linking.
15713link_static_flag=$lt_lt_prog_compiler_static
15714
15715# Does compiler simultaneously support -c and -o options?
15716compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15717
15718# Whether or not to add -lc for building shared libraries.
15719build_libtool_need_lc=$archive_cmds_need_lc
15720
15721# Whether or not to disallow shared libs when runtime libs are static.
15722allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15723
15724# Compiler flag to allow reflexive dlopens.
15725export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15726
15727# Compiler flag to generate shared objects directly from archives.
15728whole_archive_flag_spec=$lt_whole_archive_flag_spec
15729
15730# Whether the compiler copes with passing no objects directly.
15731compiler_needs_object=$lt_compiler_needs_object
15732
15733# Create an old-style archive from a shared archive.
15734old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15735
15736# Create a temporary old-style archive to link instead of a shared archive.
15737old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15738
15739# Commands used to build a shared archive.
15740archive_cmds=$lt_archive_cmds
15741archive_expsym_cmds=$lt_archive_expsym_cmds
15742
15743# Commands used to build a loadable module if different from building
15744# a shared archive.
15745module_cmds=$lt_module_cmds
15746module_expsym_cmds=$lt_module_expsym_cmds
15747
15748# Whether we are building with GNU ld or not.
15749with_gnu_ld=$lt_with_gnu_ld
15750
15751# Flag that allows shared libraries with undefined symbols to be built.
15752allow_undefined_flag=$lt_allow_undefined_flag
15753
15754# Flag that enforces no undefined symbols.
15755no_undefined_flag=$lt_no_undefined_flag
15756
15757# Flag to hardcode \$libdir into a binary during linking.
15758# This must work even if \$libdir does not exist
15759hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15760
15761# If ld is used when linking, flag to hardcode \$libdir into a binary
15762# during linking. This must work even if \$libdir does not exist.
15763hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15764
15765# Whether we need a single "-rpath" flag with a separated argument.
15766hardcode_libdir_separator=$lt_hardcode_libdir_separator
15767
15768# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15769# DIR into the resulting binary.
15770hardcode_direct=$hardcode_direct
15771
15772# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15773# DIR into the resulting binary and the resulting library dependency is
15774# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15775# library is relocated.
15776hardcode_direct_absolute=$hardcode_direct_absolute
15777
15778# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15779# into the resulting binary.
15780hardcode_minus_L=$hardcode_minus_L
15781
15782# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15783# into the resulting binary.
15784hardcode_shlibpath_var=$hardcode_shlibpath_var
15785
15786# Set to "yes" if building a shared library automatically hardcodes DIR
15787# into the library and all subsequent libraries and executables linked
15788# against it.
15789hardcode_automatic=$hardcode_automatic
15790
15791# Set to yes if linker adds runtime paths of dependent libraries
15792# to runtime path list.
15793inherit_rpath=$inherit_rpath
15794
15795# Whether libtool must link a program against all its dependency libraries.
15796link_all_deplibs=$link_all_deplibs
15797
15798# Fix the shell variable \$srcfile for the compiler.
15799fix_srcfile_path=$lt_fix_srcfile_path
15800
15801# Set to "yes" if exported symbols are required.
15802always_export_symbols=$always_export_symbols
15803
15804# The commands to list exported symbols.
15805export_symbols_cmds=$lt_export_symbols_cmds
15806
15807# Symbols that should not be listed in the preloaded symbols.
15808exclude_expsyms=$lt_exclude_expsyms
15809
15810# Symbols that must always be exported.
15811include_expsyms=$lt_include_expsyms
15812
15813# Commands necessary for linking programs (against libraries) with templates.
15814prelink_cmds=$lt_prelink_cmds
15815
15816# Specify filename containing input files.
15817file_list_spec=$lt_file_list_spec
15818
15819# How to hardcode a shared library path into an executable.
15820hardcode_action=$hardcode_action
15821
15822# ### END LIBTOOL CONFIG
15823
15824_LT_EOF
15825
15826 case $host_os in
15827 aix3*)
15828 cat <<\_LT_EOF >> "$cfgfile"
15829# AIX sometimes has problems with the GCC collect2 program. For some
15830# reason, if we set the COLLECT_NAMES environment variable, the problems
15831# vanish in a puff of smoke.
15832if test "X${COLLECT_NAMES+set}" != Xset; then
15833 COLLECT_NAMES=
15834 export COLLECT_NAMES
15835fi
15836_LT_EOF
15837 ;;
15838 esac
15839
15840
15841ltmain="$ac_aux_dir/ltmain.sh"
15842
15843
15844 # We use sed instead of cat because bash on DJGPP gets confused if
15845 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15846 # text mode, it properly converts lines to CR/LF. This bash problem
15847 # is reportedly fixed, but why not run on old versions too?
15848 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15849 || (rm -f "$cfgfile"; exit 1)
15850
15851 case $xsi_shell in
15852 yes)
15853 cat << \_LT_EOF >> "$cfgfile"
15854
15855# func_dirname file append nondir_replacement
15856# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15857# otherwise set result to NONDIR_REPLACEMENT.
15858func_dirname ()
15859{
15860 case ${1} in
15861 */*) func_dirname_result="${1%/*}${2}" ;;
15862 * ) func_dirname_result="${3}" ;;
15863 esac
15864}
15865
15866# func_basename file
15867func_basename ()
15868{
15869 func_basename_result="${1##*/}"
15870}
15871
15872# func_dirname_and_basename file append nondir_replacement
15873# perform func_basename and func_dirname in a single function
15874# call:
15875# dirname: Compute the dirname of FILE. If nonempty,
15876# add APPEND to the result, otherwise set result
15877# to NONDIR_REPLACEMENT.
15878# value returned in "$func_dirname_result"
15879# basename: Compute filename of FILE.
15880# value retuned in "$func_basename_result"
15881# Implementation must be kept synchronized with func_dirname
15882# and func_basename. For efficiency, we do not delegate to
15883# those functions but instead duplicate the functionality here.
15884func_dirname_and_basename ()
15885{
15886 case ${1} in
15887 */*) func_dirname_result="${1%/*}${2}" ;;
15888 * ) func_dirname_result="${3}" ;;
15889 esac
15890 func_basename_result="${1##*/}"
15891}
15892
15893# func_stripname prefix suffix name
15894# strip PREFIX and SUFFIX off of NAME.
15895# PREFIX and SUFFIX must not contain globbing or regex special
15896# characters, hashes, percent signs, but SUFFIX may contain a leading
15897# dot (in which case that matches only a dot).
15898func_stripname ()
15899{
15900 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15901 # positional parameters, so assign one to ordinary parameter first.
15902 func_stripname_result=${3}
15903 func_stripname_result=${func_stripname_result#"${1}"}
15904 func_stripname_result=${func_stripname_result%"${2}"}
15905}
15906
15907# func_opt_split
15908func_opt_split ()
15909{
15910 func_opt_split_opt=${1%%=*}
15911 func_opt_split_arg=${1#*=}
15912}
15913
15914# func_lo2o object
15915func_lo2o ()
15916{
15917 case ${1} in
15918 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15919 *) func_lo2o_result=${1} ;;
15920 esac
15921}
15922
15923# func_xform libobj-or-source
15924func_xform ()
15925{
15926 func_xform_result=${1%.*}.lo
15927}
15928
15929# func_arith arithmetic-term...
15930func_arith ()
15931{
15932 func_arith_result=$(( $* ))
15933}
15934
15935# func_len string
15936# STRING may not start with a hyphen.
15937func_len ()
15938{
15939 func_len_result=${#1}
15940}
15941
15942_LT_EOF
15943 ;;
15944 *) # Bourne compatible functions.
15945 cat << \_LT_EOF >> "$cfgfile"
15946
15947# func_dirname file append nondir_replacement
15948# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15949# otherwise set result to NONDIR_REPLACEMENT.
15950func_dirname ()
15951{
15952 # Extract subdirectory from the argument.
15953 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15954 if test "X$func_dirname_result" = "X${1}"; then
15955 func_dirname_result="${3}"
15956 else
15957 func_dirname_result="$func_dirname_result${2}"
15958 fi
15959}
15960
15961# func_basename file
15962func_basename ()
15963{
15964 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15965}
15966
15967
15968# func_stripname prefix suffix name
15969# strip PREFIX and SUFFIX off of NAME.
15970# PREFIX and SUFFIX must not contain globbing or regex special
15971# characters, hashes, percent signs, but SUFFIX may contain a leading
15972# dot (in which case that matches only a dot).
15973# func_strip_suffix prefix name
15974func_stripname ()
15975{
15976 case ${2} in
15977 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15978 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15979 esac
15980}
15981
15982# sed scripts:
15983my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15984my_sed_long_arg='1s/^-[^=]*=//'
15985
15986# func_opt_split
15987func_opt_split ()
15988{
15989 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15990 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15991}
15992
15993# func_lo2o object
15994func_lo2o ()
15995{
15996 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15997}
15998
15999# func_xform libobj-or-source
16000func_xform ()
16001{
16002 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16003}
16004
16005# func_arith arithmetic-term...
16006func_arith ()
16007{
16008 func_arith_result=`expr "$@"`
16009}
16010
16011# func_len string
16012# STRING may not start with a hyphen.
16013func_len ()
16014{
16015 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16016}
16017
16018_LT_EOF
16019esac
16020
16021case $lt_shell_append in
16022 yes)
16023 cat << \_LT_EOF >> "$cfgfile"
16024
16025# func_append var value
16026# Append VALUE to the end of shell variable VAR.
16027func_append ()
16028{
16029 eval "$1+=\$2"
16030}
16031_LT_EOF
16032 ;;
16033 *)
16034 cat << \_LT_EOF >> "$cfgfile"
16035
16036# func_append var value
16037# Append VALUE to the end of shell variable VAR.
16038func_append ()
16039{
16040 eval "$1=\$$1\$2"
16041}
16042
16043_LT_EOF
16044 ;;
16045 esac
16046
16047
16048 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16049 || (rm -f "$cfgfile"; exit 1)
16050
16051 mv -f "$cfgfile" "$ofile" ||
16052 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16053 chmod +x "$ofile"
16054
16055 ;;
ef016f83
MF
16056 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
16057 rm -f Makesim1.tmp Makesim2.tmp Makefile
16058 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
16059 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
16060 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
16061 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
16062 <Makefile.sim >Makefile
16063 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
16064 ;;
16065 "stamp-h":C) echo > stamp-h ;;
16066
16067 esac
16068done # for ac_tag
16069
16070
16071as_fn_exit 0
16072_ACEOF
16073ac_clean_files=$ac_clean_files_save
16074
16075test $ac_write_fail = 0 ||
16076 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16077
16078
16079# configure is writing to config.log, and then calls config.status.
16080# config.status does its own redirection, appending to config.log.
16081# Unfortunately, on DOS this fails, as config.log is still kept open
16082# by configure, so config.status won't be able to write to it; its
16083# output is simply discarded. So we exec the FD to /dev/null,
16084# effectively closing config.log, so it can be properly (re)opened and
16085# appended to by config.status. When coming back to configure, we
16086# need to make the FD available again.
16087if test "$no_create" != yes; then
16088 ac_cs_success=:
16089 ac_config_status_args=
16090 test "$silent" = yes &&
16091 ac_config_status_args="$ac_config_status_args --quiet"
16092 exec 5>/dev/null
16093 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16094 exec 5>>config.log
16095 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16096 # would make configure fail if this is the last instruction.
16097 $ac_cs_success || as_fn_exit $?
16098fi
16099if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16101$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16102fi
16103
16104
This page took 0.765712 seconds and 4 git commands to generate.