gdb/
[deliverable/binutils-gdb.git] / gas / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
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.
252b5132
RH
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
13b2be9c 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13b2be9c
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13b2be9c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
13b2be9c
DJ
31fi
32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
13b2be9c
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
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
13b2be9c
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
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
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13b2be9c 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
13b2be9c 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
13b2be9c 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
13b2be9c 372
81ecdfbb
RW
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13b2be9c
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13b2be9c
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
13b2be9c 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
13b2be9c
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
13b2be9c 410
13b2be9c
DJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
13b2be9c 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
13b2be9c 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
13b2be9c 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13b2be9c 436 t loop
81ecdfbb 437 s/-\n.*//
13b2be9c 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
13b2be9c
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
13b2be9c
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
13b2be9c
DJ
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
13b2be9c 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
13b2be9c 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
13b2be9c 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
13b2be9c 483 fi
13b2be9c
DJ
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
13b2be9c
DJ
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
13b2be9c 492else
ab509236 493 test -d ./-p && rmdir ./-p
13b2be9c
DJ
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
13b2be9c
DJ
519
520# Sed expression to map a string onto a valid CPP name.
ab509236 521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
522
523# Sed expression to map a string onto a valid variable name.
ab509236 524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
525
526
d7040cdb
SE
527
528# Check that we are running under the correct shell.
529SHELL=${CONFIG_SHELL-/bin/sh}
530
531case X$lt_ECHO in
532X*--fallback-echo)
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535 ;;
536esac
537
538ECHO=${lt_ECHO-echo}
539if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
541 shift
542elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
544 :
545elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
547 :
548else
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
551fi
552
553if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
555 shift
556 cat <<_LT_EOF
557$*
558_LT_EOF
559 exit 0
560fi
561
562# The HP-UX ksh and POSIX shell print the target directory to stdout
563# if CDPATH is set.
564(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573 then
574 break
575 fi
576 done
577 fi
578
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
582 :
583 else
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
587 #
588 # So, first we look for a working echo in the user's PATH.
589
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
592 IFS="$lt_save_ifs"
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 ECHO="$dir/echo"
598 break
599 fi
600 done
601 IFS="$lt_save_ifs"
602
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
609 ECHO='print -r'
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
616 export CONFIG_SHELL
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618 else
619 # Try using printf.
620 ECHO='printf %s\n'
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 # Cool, printf works
625 :
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631 export CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
633 export SHELL
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 else
641 # maybe with a smaller string...
642 prev=:
643
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646 then
647 break
648 fi
649 prev="$cmd"
650 done
651
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656 else
657 # Oops. We lost completely, so just stick with echo.
658 ECHO=echo
659 fi
660 fi
661 fi
662 fi
663 fi
664fi
665
666# Copy echo and quote the copy suitably for passing to libtool from
667# the Makefile, instead of quoting the original, which is used later.
668lt_ECHO=$ECHO
669if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671fi
672
673
674
675
81ecdfbb
RW
676exec 7<&0 </dev/null 6>&1
677
13b2be9c
DJ
678# Name of the host.
679# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680# so uname gets run too.
681ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 682
13b2be9c
DJ
683#
684# Initializations.
685#
252b5132 686ac_default_prefix=/usr/local
81ecdfbb 687ac_clean_files=
13b2be9c 688ac_config_libobj_dir=.
81ecdfbb 689LIBOBJS=
13b2be9c
DJ
690cross_compiling=no
691subdirs=
692MFLAGS=
693MAKEFLAGS=
13b2be9c
DJ
694
695# Identity of this package.
696PACKAGE_NAME=
697PACKAGE_TARNAME=
698PACKAGE_VERSION=
699PACKAGE_STRING=
700PACKAGE_BUGREPORT=
81ecdfbb 701PACKAGE_URL=
13b2be9c
DJ
702
703ac_unique_file="as.h"
704# Factoring default headers for most tests.
705ac_includes_default="\
706#include <stdio.h>
81ecdfbb 707#ifdef HAVE_SYS_TYPES_H
13b2be9c
DJ
708# include <sys/types.h>
709#endif
81ecdfbb 710#ifdef HAVE_SYS_STAT_H
13b2be9c
DJ
711# include <sys/stat.h>
712#endif
81ecdfbb 713#ifdef STDC_HEADERS
13b2be9c
DJ
714# include <stdlib.h>
715# include <stddef.h>
716#else
81ecdfbb 717# ifdef HAVE_STDLIB_H
13b2be9c
DJ
718# include <stdlib.h>
719# endif
720#endif
81ecdfbb
RW
721#ifdef HAVE_STRING_H
722# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
13b2be9c
DJ
723# include <memory.h>
724# endif
725# include <string.h>
726#endif
81ecdfbb 727#ifdef HAVE_STRINGS_H
13b2be9c
DJ
728# include <strings.h>
729#endif
81ecdfbb 730#ifdef HAVE_INTTYPES_H
13b2be9c 731# include <inttypes.h>
13b2be9c 732#endif
81ecdfbb
RW
733#ifdef HAVE_STDINT_H
734# include <stdint.h>
735#endif
736#ifdef HAVE_UNISTD_H
13b2be9c
DJ
737# include <unistd.h>
738#endif"
739
81ecdfbb
RW
740ac_subst_vars='am__EXEEXT_FALSE
741am__EXEEXT_TRUE
742LTLIBOBJS
743LIBOBJS
744LIBM
745ALLOCA
746GENINSRC_NEVER_FALSE
747GENINSRC_NEVER_TRUE
748MAINT
749MAINTAINER_MODE_FALSE
750MAINTAINER_MODE_TRUE
751MSGMERGE
752MSGFMT
753MKINSTALLDIRS
754CATOBJEXT
755GENCAT
756INSTOBJEXT
757DATADIRNAME
758CATALOGS
759POSUB
760GMSGFMT
761XGETTEXT
762INCINTL
763LIBINTL_DEP
764LIBINTL
765USE_NLS
766LEXLIB
767LEX_OUTPUT_ROOT
768LEX
769YFLAGS
770YACC
771OPCODES_LIB
772atof
773install_tooldir
774te_file
775obj_format
776target_cpu_type
777extra_objects
778cgen_cpu_prefix
779GDBINIT
780NO_WERROR
781WARN_CFLAGS
782OTOOL64
783OTOOL
784LIPO
785NMEDIT
786DSYMUTIL
787lt_ECHO
788RANLIB
789AR
790OBJDUMP
791LN_S
792NM
793ac_ct_DUMPBIN
794DUMPBIN
795LD
796FGREP
797SED
798LIBTOOL
799EGREP
800GREP
801CPP
802am__fastdepCC_FALSE
803am__fastdepCC_TRUE
804CCDEPMODE
805AMDEPBACKSLASH
806AMDEP_FALSE
807AMDEP_TRUE
808am__quote
809am__include
810DEPDIR
811am__untar
812am__tar
813AMTAR
814am__leading_dot
815SET_MAKE
816AWK
817mkdir_p
818MKDIR_P
819INSTALL_STRIP_PROGRAM
820STRIP
821install_sh
822MAKEINFO
823AUTOHEADER
824AUTOMAKE
825AUTOCONF
826ACLOCAL
827VERSION
828PACKAGE
829CYGPATH_W
830am__isrc
831INSTALL_DATA
832INSTALL_SCRIPT
833INSTALL_PROGRAM
834OBJEXT
835EXEEXT
836ac_ct_CC
837CPPFLAGS
838LDFLAGS
839CFLAGS
840CC
841target_os
842target_vendor
843target_cpu
844target
845host_os
846host_vendor
847host_cpu
848host
849build_os
850build_vendor
851build_cpu
852build
853target_alias
854host_alias
855build_alias
856LIBS
857ECHO_T
858ECHO_N
859ECHO_C
860DEFS
861mandir
862localedir
863libdir
864psdir
865pdfdir
866dvidir
867htmldir
868infodir
869docdir
870oldincludedir
871includedir
872localstatedir
873sharedstatedir
874sysconfdir
875datadir
876datarootdir
877libexecdir
878sbindir
879bindir
880program_transform_name
881prefix
882exec_prefix
883PACKAGE_URL
884PACKAGE_BUGREPORT
885PACKAGE_STRING
886PACKAGE_VERSION
887PACKAGE_TARNAME
888PACKAGE_NAME
889PATH_SEPARATOR
890SHELL'
13b2be9c 891ac_subst_files=''
81ecdfbb
RW
892ac_user_opts='
893enable_option_checking
894enable_dependency_tracking
da2f07f1 895enable_plugins
81ecdfbb
RW
896enable_largefile
897enable_shared
898enable_static
899with_pic
900enable_fast_install
901with_gnu_ld
902enable_libtool_lock
903enable_targets
904enable_checking
905enable_werror
906enable_build_warnings
907enable_nls
908enable_maintainer_mode
909'
910 ac_precious_vars='build_alias
911host_alias
912target_alias
913CC
914CFLAGS
915LDFLAGS
916LIBS
917CPPFLAGS
918CPP
919YACC
920YFLAGS'
921
252b5132
RH
922
923# Initialize some variables set by options.
13b2be9c
DJ
924ac_init_help=
925ac_init_version=false
81ecdfbb
RW
926ac_unrecognized_opts=
927ac_unrecognized_sep=
252b5132
RH
928# The variables have the same names as the options, with
929# dashes changed to underlines.
13b2be9c 930cache_file=/dev/null
252b5132 931exec_prefix=NONE
252b5132 932no_create=
252b5132
RH
933no_recursion=
934prefix=NONE
935program_prefix=NONE
936program_suffix=NONE
937program_transform_name=s,x,x,
938silent=
939site=
940srcdir=
252b5132
RH
941verbose=
942x_includes=NONE
943x_libraries=NONE
13b2be9c
DJ
944
945# Installation directory options.
946# These are left unexpanded so users can "make install exec_prefix=/foo"
947# and all the variables that are supposed to be based on exec_prefix
948# by default will actually change.
949# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 950# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
951bindir='${exec_prefix}/bin'
952sbindir='${exec_prefix}/sbin'
953libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
954datarootdir='${prefix}/share'
955datadir='${datarootdir}'
252b5132
RH
956sysconfdir='${prefix}/etc'
957sharedstatedir='${prefix}/com'
958localstatedir='${prefix}/var'
252b5132
RH
959includedir='${prefix}/include'
960oldincludedir='/usr/include'
81ecdfbb
RW
961docdir='${datarootdir}/doc/${PACKAGE}'
962infodir='${datarootdir}/info'
963htmldir='${docdir}'
964dvidir='${docdir}'
965pdfdir='${docdir}'
966psdir='${docdir}'
967libdir='${exec_prefix}/lib'
968localedir='${datarootdir}/locale'
969mandir='${datarootdir}/man'
252b5132 970
252b5132 971ac_prev=
81ecdfbb 972ac_dashdash=
252b5132
RH
973for ac_option
974do
252b5132
RH
975 # If the previous option needs an argument, assign it.
976 if test -n "$ac_prev"; then
81ecdfbb 977 eval $ac_prev=\$ac_option
252b5132
RH
978 ac_prev=
979 continue
980 fi
981
81ecdfbb
RW
982 case $ac_option in
983 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
984 *) ac_optarg=yes ;;
985 esac
252b5132
RH
986
987 # Accept the important Cygnus configure options, so we can diagnose typos.
988
81ecdfbb
RW
989 case $ac_dashdash$ac_option in
990 --)
991 ac_dashdash=yes ;;
252b5132
RH
992
993 -bindir | --bindir | --bindi | --bind | --bin | --bi)
994 ac_prev=bindir ;;
995 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
13b2be9c 996 bindir=$ac_optarg ;;
252b5132
RH
997
998 -build | --build | --buil | --bui | --bu)
13b2be9c 999 ac_prev=build_alias ;;
252b5132 1000 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
13b2be9c 1001 build_alias=$ac_optarg ;;
252b5132
RH
1002
1003 -cache-file | --cache-file | --cache-fil | --cache-fi \
1004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005 ac_prev=cache_file ;;
1006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13b2be9c
DJ
1008 cache_file=$ac_optarg ;;
1009
1010 --config-cache | -C)
1011 cache_file=config.cache ;;
252b5132 1012
81ecdfbb 1013 -datadir | --datadir | --datadi | --datad)
252b5132 1014 ac_prev=datadir ;;
81ecdfbb 1015 -datadir=* | --datadir=* | --datadi=* | --datad=*)
13b2be9c 1016 datadir=$ac_optarg ;;
252b5132 1017
81ecdfbb
RW
1018 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019 | --dataroo | --dataro | --datar)
1020 ac_prev=datarootdir ;;
1021 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023 datarootdir=$ac_optarg ;;
1024
252b5132 1025 -disable-* | --disable-*)
81ecdfbb 1026 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 1027 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error "invalid feature name: $ac_useropt"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1033 *"
1034"enable_$ac_useropt"
1035"*) ;;
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1038 esac
1039 eval enable_$ac_useropt=no ;;
1040
1041 -docdir | --docdir | --docdi | --doc | --do)
1042 ac_prev=docdir ;;
1043 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044 docdir=$ac_optarg ;;
1045
1046 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1047 ac_prev=dvidir ;;
1048 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049 dvidir=$ac_optarg ;;
252b5132
RH
1050
1051 -enable-* | --enable-*)
81ecdfbb 1052 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 1053 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060"enable_$ac_useropt"
1061"*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
252b5132 1064 esac
81ecdfbb 1065 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1066
1067 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069 | --exec | --exe | --ex)
1070 ac_prev=exec_prefix ;;
1071 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073 | --exec=* | --exe=* | --ex=*)
13b2be9c 1074 exec_prefix=$ac_optarg ;;
252b5132
RH
1075
1076 -gas | --gas | --ga | --g)
1077 # Obsolete; use --with-gas.
1078 with_gas=yes ;;
1079
13b2be9c
DJ
1080 -help | --help | --hel | --he | -h)
1081 ac_init_help=long ;;
1082 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083 ac_init_help=recursive ;;
1084 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085 ac_init_help=short ;;
252b5132
RH
1086
1087 -host | --host | --hos | --ho)
13b2be9c 1088 ac_prev=host_alias ;;
252b5132 1089 -host=* | --host=* | --hos=* | --ho=*)
13b2be9c 1090 host_alias=$ac_optarg ;;
252b5132 1091
81ecdfbb
RW
1092 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1093 ac_prev=htmldir ;;
1094 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1095 | --ht=*)
1096 htmldir=$ac_optarg ;;
1097
252b5132
RH
1098 -includedir | --includedir | --includedi | --included | --include \
1099 | --includ | --inclu | --incl | --inc)
1100 ac_prev=includedir ;;
1101 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102 | --includ=* | --inclu=* | --incl=* | --inc=*)
13b2be9c 1103 includedir=$ac_optarg ;;
252b5132
RH
1104
1105 -infodir | --infodir | --infodi | --infod | --info | --inf)
1106 ac_prev=infodir ;;
1107 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
13b2be9c 1108 infodir=$ac_optarg ;;
252b5132
RH
1109
1110 -libdir | --libdir | --libdi | --libd)
1111 ac_prev=libdir ;;
1112 -libdir=* | --libdir=* | --libdi=* | --libd=*)
13b2be9c 1113 libdir=$ac_optarg ;;
252b5132
RH
1114
1115 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116 | --libexe | --libex | --libe)
1117 ac_prev=libexecdir ;;
1118 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119 | --libexe=* | --libex=* | --libe=*)
13b2be9c 1120 libexecdir=$ac_optarg ;;
252b5132 1121
81ecdfbb
RW
1122 -localedir | --localedir | --localedi | --localed | --locale)
1123 ac_prev=localedir ;;
1124 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125 localedir=$ac_optarg ;;
1126
252b5132 1127 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1128 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1129 ac_prev=localstatedir ;;
1130 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1131 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
13b2be9c 1132 localstatedir=$ac_optarg ;;
252b5132
RH
1133
1134 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1135 ac_prev=mandir ;;
1136 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
13b2be9c 1137 mandir=$ac_optarg ;;
252b5132
RH
1138
1139 -nfp | --nfp | --nf)
1140 # Obsolete; use --without-fp.
1141 with_fp=no ;;
1142
1143 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
13b2be9c 1144 | --no-cr | --no-c | -n)
252b5132
RH
1145 no_create=yes ;;
1146
1147 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149 no_recursion=yes ;;
1150
1151 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153 | --oldin | --oldi | --old | --ol | --o)
1154 ac_prev=oldincludedir ;;
1155 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
13b2be9c 1158 oldincludedir=$ac_optarg ;;
252b5132
RH
1159
1160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1161 ac_prev=prefix ;;
1162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13b2be9c 1163 prefix=$ac_optarg ;;
252b5132
RH
1164
1165 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166 | --program-pre | --program-pr | --program-p)
1167 ac_prev=program_prefix ;;
1168 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
13b2be9c 1170 program_prefix=$ac_optarg ;;
252b5132
RH
1171
1172 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173 | --program-suf | --program-su | --program-s)
1174 ac_prev=program_suffix ;;
1175 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
13b2be9c 1177 program_suffix=$ac_optarg ;;
252b5132
RH
1178
1179 -program-transform-name | --program-transform-name \
1180 | --program-transform-nam | --program-transform-na \
1181 | --program-transform-n | --program-transform- \
1182 | --program-transform | --program-transfor \
1183 | --program-transfo | --program-transf \
1184 | --program-trans | --program-tran \
1185 | --progr-tra | --program-tr | --program-t)
1186 ac_prev=program_transform_name ;;
1187 -program-transform-name=* | --program-transform-name=* \
1188 | --program-transform-nam=* | --program-transform-na=* \
1189 | --program-transform-n=* | --program-transform-=* \
1190 | --program-transform=* | --program-transfor=* \
1191 | --program-transfo=* | --program-transf=* \
1192 | --program-trans=* | --program-tran=* \
1193 | --progr-tra=* | --program-tr=* | --program-t=*)
13b2be9c 1194 program_transform_name=$ac_optarg ;;
252b5132 1195
81ecdfbb
RW
1196 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1197 ac_prev=pdfdir ;;
1198 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199 pdfdir=$ac_optarg ;;
1200
1201 -psdir | --psdir | --psdi | --psd | --ps)
1202 ac_prev=psdir ;;
1203 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204 psdir=$ac_optarg ;;
1205
252b5132
RH
1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207 | -silent | --silent | --silen | --sile | --sil)
1208 silent=yes ;;
1209
1210 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1211 ac_prev=sbindir ;;
1212 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1213 | --sbi=* | --sb=*)
13b2be9c 1214 sbindir=$ac_optarg ;;
252b5132
RH
1215
1216 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1217 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218 | --sharedst | --shareds | --shared | --share | --shar \
1219 | --sha | --sh)
1220 ac_prev=sharedstatedir ;;
1221 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1224 | --sha=* | --sh=*)
13b2be9c 1225 sharedstatedir=$ac_optarg ;;
252b5132
RH
1226
1227 -site | --site | --sit)
1228 ac_prev=site ;;
1229 -site=* | --site=* | --sit=*)
13b2be9c 1230 site=$ac_optarg ;;
76bff705 1231
252b5132
RH
1232 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1233 ac_prev=srcdir ;;
1234 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13b2be9c 1235 srcdir=$ac_optarg ;;
252b5132
RH
1236
1237 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238 | --syscon | --sysco | --sysc | --sys | --sy)
1239 ac_prev=sysconfdir ;;
1240 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
13b2be9c 1242 sysconfdir=$ac_optarg ;;
252b5132
RH
1243
1244 -target | --target | --targe | --targ | --tar | --ta | --t)
13b2be9c 1245 ac_prev=target_alias ;;
252b5132 1246 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
13b2be9c 1247 target_alias=$ac_optarg ;;
252b5132
RH
1248
1249 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1250 verbose=yes ;;
1251
13b2be9c
DJ
1252 -version | --version | --versio | --versi | --vers | -V)
1253 ac_init_version=: ;;
252b5132
RH
1254
1255 -with-* | --with-*)
81ecdfbb 1256 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1257 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259 as_fn_error "invalid package name: $ac_useropt"
1260 ac_useropt_orig=$ac_useropt
1261 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1263 *"
1264"with_$ac_useropt"
1265"*) ;;
1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1267 ac_unrecognized_sep=', ';;
252b5132 1268 esac
81ecdfbb 1269 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1270
1271 -without-* | --without-*)
81ecdfbb 1272 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1273 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275 as_fn_error "invalid package name: $ac_useropt"
1276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1279 *"
1280"with_$ac_useropt"
1281"*) ;;
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1284 esac
1285 eval with_$ac_useropt=no ;;
252b5132
RH
1286
1287 --x)
1288 # Obsolete; use --with-x.
1289 with_x=yes ;;
1290
1291 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292 | --x-incl | --x-inc | --x-in | --x-i)
1293 ac_prev=x_includes ;;
1294 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
13b2be9c 1296 x_includes=$ac_optarg ;;
252b5132
RH
1297
1298 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300 ac_prev=x_libraries ;;
1301 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
13b2be9c 1303 x_libraries=$ac_optarg ;;
252b5132 1304
81ecdfbb
RW
1305 -*) as_fn_error "unrecognized option: \`$ac_option'
1306Try \`$0 --help' for more information."
252b5132
RH
1307 ;;
1308
13b2be9c
DJ
1309 *=*)
1310 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1312 case $ac_envvar in #(
1313 '' | [0-9]* | *[!_$as_cr_alnum]* )
1314 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1315 esac
1316 eval $ac_envvar=\$ac_optarg
13b2be9c
DJ
1317 export $ac_envvar ;;
1318
252b5132 1319 *)
13b2be9c 1320 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1321 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
13b2be9c 1322 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1323 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
13b2be9c 1324 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1325 ;;
1326
1327 esac
1328done
1329
1330if test -n "$ac_prev"; then
13b2be9c 1331 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1332 as_fn_error "missing argument to $ac_option"
c8615825 1333fi
c8615825 1334
81ecdfbb
RW
1335if test -n "$ac_unrecognized_opts"; then
1336 case $enable_option_checking in
1337 no) ;;
1338 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1339 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
13b2be9c 1340 esac
81ecdfbb 1341fi
252b5132 1342
81ecdfbb
RW
1343# Check all directory arguments for consistency.
1344for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345 datadir sysconfdir sharedstatedir localstatedir includedir \
1346 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347 libdir localedir mandir
252b5132 1348do
81ecdfbb
RW
1349 eval ac_val=\$$ac_var
1350 # Remove trailing slashes.
1351 case $ac_val in
1352 */ )
1353 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1354 eval $ac_var=\$ac_val;;
1355 esac
1356 # Be sure to have absolute directory names.
13b2be9c 1357 case $ac_val in
81ecdfbb
RW
1358 [\\/$]* | ?:[\\/]* ) continue;;
1359 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1360 esac
81ecdfbb 1361 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1362done
1363
13b2be9c
DJ
1364# There might be people who depend on the old broken behavior: `$host'
1365# used to hold the argument of --host etc.
1366# FIXME: To remove some day.
1367build=$build_alias
1368host=$host_alias
1369target=$target_alias
1370
1371# FIXME: To remove some day.
1372if test "x$host_alias" != x; then
1373 if test "x$build_alias" = x; then
1374 cross_compiling=maybe
81ecdfbb 1375 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
13b2be9c
DJ
1376 If a cross compiler is detected then cross compile mode will be used." >&2
1377 elif test "x$build_alias" != "x$host_alias"; then
1378 cross_compiling=yes
1379 fi
1380fi
9b2b7d69 1381
13b2be9c
DJ
1382ac_tool_prefix=
1383test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384
1385test "$silent" = yes && exec 6>/dev/null
252b5132 1386
252b5132 1387
81ecdfbb
RW
1388ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389ac_ls_di=`ls -di .` &&
1390ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391 as_fn_error "working directory cannot be determined"
1392test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393 as_fn_error "pwd does not report name of working directory"
1394
1395
252b5132
RH
1396# Find the source files, if location was not specified.
1397if test -z "$srcdir"; then
1398 ac_srcdir_defaulted=yes
81ecdfbb
RW
1399 # Try the directory containing this script, then the parent directory.
1400 ac_confdir=`$as_dirname -- "$as_myself" ||
1401$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402 X"$as_myself" : 'X\(//\)[^/]' \| \
1403 X"$as_myself" : 'X\(//\)$' \| \
1404 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1405$as_echo X"$as_myself" |
1406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\/\)[^/].*/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\/\)$/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\).*/{
1419 s//\1/
1420 q
1421 }
1422 s/.*/./; q'`
252b5132 1423 srcdir=$ac_confdir
81ecdfbb 1424 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1425 srcdir=..
1426 fi
1427else
1428 ac_srcdir_defaulted=no
1429fi
81ecdfbb
RW
1430if test ! -r "$srcdir/$ac_unique_file"; then
1431 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1432 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1433fi
1434ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435ac_abs_confdir=`(
1436 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1437 pwd)`
1438# When building in place, set srcdir=.
1439if test "$ac_abs_confdir" = "$ac_pwd"; then
1440 srcdir=.
1441fi
1442# Remove unnecessary trailing slashes from srcdir.
1443# Double slashes in file names in object file debugging info
1444# mess up M-x gdb in Emacs.
1445case $srcdir in
1446*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447esac
1448for ac_var in $ac_precious_vars; do
1449 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_env_${ac_var}_value=\$${ac_var}
1451 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1453done
d6d788bd 1454
13b2be9c
DJ
1455#
1456# Report the --help message.
1457#
1458if test "$ac_init_help" = "long"; then
1459 # Omit some internal or obsolete options to make the list less imposing.
1460 # This message is too long to be a string in the A/UX 3.1 sh.
1461 cat <<_ACEOF
1462\`configure' configures this package to adapt to many kinds of systems.
9b2b7d69 1463
13b2be9c 1464Usage: $0 [OPTION]... [VAR=VALUE]...
9b2b7d69 1465
13b2be9c
DJ
1466To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467VAR=VALUE. See below for descriptions of some of the useful variables.
9b2b7d69 1468
13b2be9c 1469Defaults for the options are specified in brackets.
9b2b7d69 1470
13b2be9c
DJ
1471Configuration:
1472 -h, --help display this help and exit
1473 --help=short display options specific to this package
1474 --help=recursive display the short help of all the included packages
1475 -V, --version display version information and exit
1476 -q, --quiet, --silent do not print \`checking...' messages
1477 --cache-file=FILE cache test results in FILE [disabled]
1478 -C, --config-cache alias for \`--cache-file=config.cache'
1479 -n, --no-create do not create output files
1480 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1481
13b2be9c
DJ
1482Installation directories:
1483 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1484 [$ac_default_prefix]
13b2be9c 1485 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1486 [PREFIX]
9b2b7d69 1487
13b2be9c
DJ
1488By default, \`make install' will install all the files in
1489\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1490an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491for instance \`--prefix=\$HOME'.
9b2b7d69 1492
13b2be9c 1493For better control, use the options below.
9b2b7d69 1494
13b2be9c 1495Fine tuning of the installation directories:
81ecdfbb
RW
1496 --bindir=DIR user executables [EPREFIX/bin]
1497 --sbindir=DIR system admin executables [EPREFIX/sbin]
1498 --libexecdir=DIR program executables [EPREFIX/libexec]
1499 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1500 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1501 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1502 --libdir=DIR object code libraries [EPREFIX/lib]
1503 --includedir=DIR C header files [PREFIX/include]
1504 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1505 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1506 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1507 --infodir=DIR info documentation [DATAROOTDIR/info]
1508 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1509 --mandir=DIR man documentation [DATAROOTDIR/man]
1510 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1511 --htmldir=DIR html documentation [DOCDIR]
1512 --dvidir=DIR dvi documentation [DOCDIR]
1513 --pdfdir=DIR pdf documentation [DOCDIR]
1514 --psdir=DIR ps documentation [DOCDIR]
13b2be9c 1515_ACEOF
9b2b7d69 1516
13b2be9c 1517 cat <<\_ACEOF
9b2b7d69 1518
13b2be9c
DJ
1519Program names:
1520 --program-prefix=PREFIX prepend PREFIX to installed program names
1521 --program-suffix=SUFFIX append SUFFIX to installed program names
1522 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
9b2b7d69 1523
13b2be9c
DJ
1524System types:
1525 --build=BUILD configure for building on BUILD [guessed]
1526 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1527 --target=TARGET configure for building compilers for TARGET [HOST]
1528_ACEOF
9b2b7d69 1529fi
9b2b7d69 1530
13b2be9c 1531if test -n "$ac_init_help"; then
9b2b7d69 1532
13b2be9c 1533 cat <<\_ACEOF
9b2b7d69 1534
13b2be9c 1535Optional Features:
81ecdfbb 1536 --disable-option-checking ignore unrecognized --enable/--with options
13b2be9c
DJ
1537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ab509236
L
1539 --disable-dependency-tracking speeds up one-time build
1540 --enable-dependency-tracking do not reject slow dependency extractors
da2f07f1 1541 --enable-plugins Enable support for plugins (defaults no)
d053aef8 1542 --disable-largefile omit support for large files
81ecdfbb
RW
1543 --enable-shared[=PKGS] build shared libraries [default=yes]
1544 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1545 --enable-fast-install[=PKGS]
1546 optimize for fast installation [default=yes]
13b2be9c 1547 --disable-libtool-lock avoid locking (might break parallel builds)
241a6c40 1548 --enable-targets alternative target configurations besides the primary
c43a438d 1549 --enable-checking enable run-time checks
241a6c40
AM
1550 --enable-werror treat compile warnings as errors
1551 --enable-build-warnings enable build-time compiler warnings
13b2be9c 1552 --disable-nls do not use Native Language Support
ab509236
L
1553 --enable-maintainer-mode enable make rules and dependencies not useful
1554 (and sometimes confusing) to the casual installer
9b2b7d69 1555
13b2be9c
DJ
1556Optional Packages:
1557 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1558 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1559 --with-pic try to use only PIC/non-PIC objects [default=use
1560 both]
1561 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
9b2b7d69 1562
13b2be9c
DJ
1563Some influential environment variables:
1564 CC C compiler command
1565 CFLAGS C compiler flags
1566 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1567 nonstandard directory <lib dir>
81ecdfbb
RW
1568 LIBS libraries to pass to the linker, e.g. -l<library>
1569 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1570 you have headers in a nonstandard directory <include dir>
13b2be9c 1571 CPP C preprocessor
81ecdfbb
RW
1572 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1573 the first program found out of: `bison -y', `byacc', `yacc'.
1574 YFLAGS The list of arguments that will be passed by default to $YACC.
1575 This script will default YFLAGS to the empty string to avoid a
1576 default value of `-d' given by some make applications.
13b2be9c
DJ
1577
1578Use these variables to override the choices made by `configure' or to help
1579it to find libraries and programs with nonstandard names/locations.
1580
81ecdfbb 1581Report bugs to the package provider.
13b2be9c 1582_ACEOF
81ecdfbb 1583ac_status=$?
9b2b7d69 1584fi
9b2b7d69 1585
13b2be9c
DJ
1586if test "$ac_init_help" = "recursive"; then
1587 # If there are subdirs, report their specific --help.
13b2be9c 1588 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1589 test -d "$ac_dir" ||
1590 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1591 continue
13b2be9c
DJ
1592 ac_builddir=.
1593
81ecdfbb
RW
1594case "$ac_dir" in
1595.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596*)
1597 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1598 # A ".." for each directory in $ac_dir_suffix.
1599 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1600 case $ac_top_builddir_sub in
1601 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1603 esac ;;
1604esac
1605ac_abs_top_builddir=$ac_pwd
1606ac_abs_builddir=$ac_pwd$ac_dir_suffix
1607# for backward compatibility:
1608ac_top_builddir=$ac_top_build_prefix
9b2b7d69 1609
13b2be9c 1610case $srcdir in
81ecdfbb 1611 .) # We are building in place.
13b2be9c 1612 ac_srcdir=.
81ecdfbb
RW
1613 ac_top_srcdir=$ac_top_builddir_sub
1614 ac_abs_top_srcdir=$ac_pwd ;;
1615 [\\/]* | ?:[\\/]* ) # Absolute name.
13b2be9c 1616 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1617 ac_top_srcdir=$srcdir
1618 ac_abs_top_srcdir=$srcdir ;;
1619 *) # Relative name.
1620 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1621 ac_top_srcdir=$ac_top_build_prefix$srcdir
1622 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ab509236 1623esac
81ecdfbb
RW
1624ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1625
1626 cd "$ac_dir" || { ac_status=$?; continue; }
1627 # Check for guested configure.
1628 if test -f "$ac_srcdir/configure.gnu"; then
1629 echo &&
1630 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1631 elif test -f "$ac_srcdir/configure"; then
1632 echo &&
1633 $SHELL "$ac_srcdir/configure" --help=recursive
13b2be9c 1634 else
81ecdfbb
RW
1635 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1636 fi || ac_status=$?
1637 cd "$ac_pwd" || { ac_status=$?; break; }
13b2be9c
DJ
1638 done
1639fi
6840198f 1640
81ecdfbb 1641test -n "$ac_init_help" && exit $ac_status
13b2be9c
DJ
1642if $ac_init_version; then
1643 cat <<\_ACEOF
81ecdfbb
RW
1644configure
1645generated by GNU Autoconf 2.64
c8615825 1646
81ecdfbb 1647Copyright (C) 2009 Free Software Foundation, Inc.
13b2be9c
DJ
1648This configure script is free software; the Free Software Foundation
1649gives unlimited permission to copy, distribute and modify it.
1650_ACEOF
81ecdfbb 1651 exit
13b2be9c 1652fi
c8615825 1653
81ecdfbb
RW
1654## ------------------------ ##
1655## Autoconf initialization. ##
1656## ------------------------ ##
c8615825 1657
81ecdfbb
RW
1658# ac_fn_c_try_compile LINENO
1659# --------------------------
1660# Try to compile conftest.$ac_ext, and return whether this succeeded.
1661ac_fn_c_try_compile ()
13b2be9c 1662{
81ecdfbb
RW
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 rm -f conftest.$ac_objext
1665 if { { ac_try="$ac_compile"
1666case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669esac
1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671$as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_compile") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && {
1681 test -z "$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 } && test -s conftest.$ac_objext; then :
1684 ac_retval=0
1685else
1686 $as_echo "$as_me: failed program was:" >&5
1687sed 's/^/| /' conftest.$ac_ext >&5
13b2be9c 1688
81ecdfbb
RW
1689 ac_retval=1
1690fi
1691 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692 return $ac_retval
13b2be9c 1693
81ecdfbb 1694} # ac_fn_c_try_compile
13b2be9c 1695
81ecdfbb
RW
1696# ac_fn_c_try_link LINENO
1697# -----------------------
1698# Try to link conftest.$ac_ext, and return whether this succeeded.
1699ac_fn_c_try_link ()
1700{
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 rm -f conftest.$ac_objext conftest$ac_exeext
1703 if { { ac_try="$ac_link"
1704case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707esac
1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709$as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_link") 2>conftest.err
1711 ac_status=$?
1712 if test -s conftest.err; then
1713 grep -v '^ *+' conftest.err >conftest.er1
1714 cat conftest.er1 >&5
1715 mv -f conftest.er1 conftest.err
1716 fi
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && {
1719 test -z "$ac_c_werror_flag" ||
1720 test ! -s conftest.err
1721 } && test -s conftest$ac_exeext && {
1722 test "$cross_compiling" = yes ||
1723 $as_test_x conftest$ac_exeext
1724 }; then :
1725 ac_retval=0
1726else
1727 $as_echo "$as_me: failed program was:" >&5
1728sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=1
1731fi
1732 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1733 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1734 # interfere with the next link command; also delete a directory that is
1735 # left behind by Apple's compiler. We do this before executing the actions.
1736 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1737 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738 return $ac_retval
1739
1740} # ac_fn_c_try_link
1741
1742# ac_fn_c_try_cpp LINENO
1743# ----------------------
1744# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1745ac_fn_c_try_cpp ()
1746{
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if { { ac_try="$ac_cpp conftest.$ac_ext"
1749case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752esac
1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754$as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1756 ac_status=$?
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1761 fi
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } >/dev/null && {
1764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1765 test ! -s conftest.err
1766 }; then :
1767 ac_retval=0
1768else
1769 $as_echo "$as_me: failed program was:" >&5
1770sed 's/^/| /' conftest.$ac_ext >&5
1771
1772 ac_retval=1
1773fi
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775 return $ac_retval
1776
1777} # ac_fn_c_try_cpp
1778
1779# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1780# -------------------------------------------------------
1781# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1782# the include files in INCLUDES and setting the cache variable VAR
1783# accordingly.
1784ac_fn_c_check_header_mongrel ()
1785{
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789$as_echo_n "checking for $2... " >&6; }
1790if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1791 $as_echo_n "(cached) " >&6
1792fi
1793eval ac_res=\$$3
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795$as_echo "$ac_res" >&6; }
1796else
1797 # Is the header compilable?
1798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1799$as_echo_n "checking $2 usability... " >&6; }
1800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801/* end confdefs.h. */
1802$4
1803#include <$2>
1804_ACEOF
1805if ac_fn_c_try_compile "$LINENO"; then :
1806 ac_header_compiler=yes
1807else
1808 ac_header_compiler=no
1809fi
1810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1812$as_echo "$ac_header_compiler" >&6; }
1813
1814# Is the header present?
1815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1816$as_echo_n "checking $2 presence... " >&6; }
1817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818/* end confdefs.h. */
1819#include <$2>
1820_ACEOF
1821if ac_fn_c_try_cpp "$LINENO"; then :
1822 ac_header_preproc=yes
1823else
1824 ac_header_preproc=no
1825fi
1826rm -f conftest.err conftest.$ac_ext
1827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1828$as_echo "$ac_header_preproc" >&6; }
1829
1830# So? What about this header?
1831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1832 yes:no: )
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1834$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1836$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1837 ;;
1838 no:yes:* )
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1840$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1842$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1844$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1846$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849 ;;
1850esac
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852$as_echo_n "checking for $2... " >&6; }
1853if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1854 $as_echo_n "(cached) " >&6
1855else
1856 eval "$3=\$ac_header_compiler"
1857fi
1858eval ac_res=\$$3
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860$as_echo "$ac_res" >&6; }
1861fi
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863
1864} # ac_fn_c_check_header_mongrel
1865
1866# ac_fn_c_try_run LINENO
1867# ----------------------
1868# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1869# that executables *can* be run.
1870ac_fn_c_try_run ()
1871{
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 if { { ac_try="$ac_link"
1874case "(($ac_try" in
1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876 *) ac_try_echo=$ac_try;;
1877esac
1878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879$as_echo "$ac_try_echo"; } >&5
1880 (eval "$ac_link") 2>&5
1881 ac_status=$?
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1884 { { case "(($ac_try" in
1885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886 *) ac_try_echo=$ac_try;;
1887esac
1888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889$as_echo "$ac_try_echo"; } >&5
1890 (eval "$ac_try") 2>&5
1891 ac_status=$?
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; }; }; then :
1894 ac_retval=0
1895else
1896 $as_echo "$as_me: program exited with status $ac_status" >&5
1897 $as_echo "$as_me: failed program was:" >&5
1898sed 's/^/| /' conftest.$ac_ext >&5
1899
1900 ac_retval=$ac_status
1901fi
1902 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904 return $ac_retval
1905
1906} # ac_fn_c_try_run
1907
1908# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1909# -------------------------------------------------------
1910# Tests whether HEADER exists and can be compiled using the include files in
1911# INCLUDES, setting the cache variable VAR accordingly.
1912ac_fn_c_check_header_compile ()
1913{
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916$as_echo_n "checking for $2... " >&6; }
1917if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1918 $as_echo_n "(cached) " >&6
1919else
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921/* end confdefs.h. */
1922$4
1923#include <$2>
1924_ACEOF
1925if ac_fn_c_try_compile "$LINENO"; then :
1926 eval "$3=yes"
1927else
1928 eval "$3=no"
1929fi
1930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931fi
1932eval ac_res=\$$3
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934$as_echo "$ac_res" >&6; }
1935 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1936
1937} # ac_fn_c_check_header_compile
1938
1939# ac_fn_c_check_func LINENO FUNC VAR
1940# ----------------------------------
1941# Tests whether FUNC exists, setting the cache variable VAR accordingly
1942ac_fn_c_check_func ()
1943{
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946$as_echo_n "checking for $2... " >&6; }
1947if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1948 $as_echo_n "(cached) " >&6
1949else
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951/* end confdefs.h. */
1952/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1954#define $2 innocuous_$2
1955
1956/* System header to define __stub macros and hopefully few prototypes,
1957 which can conflict with char $2 (); below.
1958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1959 <limits.h> exists even on freestanding compilers. */
1960
1961#ifdef __STDC__
1962# include <limits.h>
1963#else
1964# include <assert.h>
1965#endif
1966
1967#undef $2
1968
1969/* Override any GCC internal prototype to avoid an error.
1970 Use char because int might match the return type of a GCC
1971 builtin and then its argument prototype would still apply. */
1972#ifdef __cplusplus
1973extern "C"
1974#endif
1975char $2 ();
1976/* The GNU C library defines this for functions which it implements
1977 to always fail with ENOSYS. Some functions are actually named
1978 something starting with __ and the normal name is an alias. */
1979#if defined __stub_$2 || defined __stub___$2
1980choke me
1981#endif
1982
1983int
1984main ()
1985{
1986return $2 ();
1987 ;
1988 return 0;
1989}
1990_ACEOF
1991if ac_fn_c_try_link "$LINENO"; then :
1992 eval "$3=yes"
1993else
1994 eval "$3=no"
1995fi
1996rm -f core conftest.err conftest.$ac_objext \
1997 conftest$ac_exeext conftest.$ac_ext
1998fi
1999eval ac_res=\$$3
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001$as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2003
2004} # ac_fn_c_check_func
2005
2006# ac_fn_c_check_decl LINENO SYMBOL VAR
2007# ------------------------------------
2008# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2009ac_fn_c_check_decl ()
2010{
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2013$as_echo_n "checking whether $2 is declared... " >&6; }
2014if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2015 $as_echo_n "(cached) " >&6
2016else
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018/* end confdefs.h. */
2019$4
2020int
2021main ()
2022{
2023#ifndef $2
2024 (void) $2;
2025#endif
2026
2027 ;
2028 return 0;
2029}
2030_ACEOF
2031if ac_fn_c_try_compile "$LINENO"; then :
2032 eval "$3=yes"
2033else
2034 eval "$3=no"
2035fi
2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037fi
2038eval ac_res=\$$3
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040$as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2042
2043} # ac_fn_c_check_decl
2044cat >config.log <<_ACEOF
2045This file contains any messages produced by compilers while
2046running configure, to aid debugging if configure makes a mistake.
2047
2048It was created by $as_me, which was
2049generated by GNU Autoconf 2.64. Invocation command line was
2050
2051 $ $0 $@
2052
2053_ACEOF
2054exec 5>>config.log
2055{
2056cat <<_ASUNAME
2057## --------- ##
2058## Platform. ##
2059## --------- ##
2060
2061hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2062uname -m = `(uname -m) 2>/dev/null || echo unknown`
2063uname -r = `(uname -r) 2>/dev/null || echo unknown`
2064uname -s = `(uname -s) 2>/dev/null || echo unknown`
2065uname -v = `(uname -v) 2>/dev/null || echo unknown`
2066
2067/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2068/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2069
2070/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
13b2be9c
DJ
2071/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2072/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 2073/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
13b2be9c
DJ
2074/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2075/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2076/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2077
2078_ASUNAME
2079
2080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081for as_dir in $PATH
2082do
2083 IFS=$as_save_IFS
2084 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2085 $as_echo "PATH: $as_dir"
2086 done
2087IFS=$as_save_IFS
9b2b7d69 2088
13b2be9c 2089} >&5
6840198f 2090
13b2be9c 2091cat >&5 <<_ACEOF
c8615825 2092
9b2b7d69 2093
13b2be9c
DJ
2094## ----------- ##
2095## Core tests. ##
2096## ----------- ##
87ccc1b0 2097
13b2be9c 2098_ACEOF
9b2b7d69 2099
13b2be9c
DJ
2100
2101# Keep a trace of the command line.
2102# Strip out --no-create and --no-recursion so they do not pile up.
2103# Strip out --silent because we don't want to record it for future runs.
2104# Also quote any args containing shell meta-characters.
2105# Make two passes to allow for proper duplicate-argument suppression.
2106ac_configure_args=
2107ac_configure_args0=
2108ac_configure_args1=
13b2be9c
DJ
2109ac_must_keep_next=false
2110for ac_pass in 1 2
2111do
2112 for ac_arg
2113 do
2114 case $ac_arg in
2115 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2117 | -silent | --silent | --silen | --sile | --sil)
2118 continue ;;
81ecdfbb
RW
2119 *\'*)
2120 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13b2be9c
DJ
2121 esac
2122 case $ac_pass in
81ecdfbb 2123 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
13b2be9c 2124 2)
81ecdfbb 2125 as_fn_append ac_configure_args1 " '$ac_arg'"
13b2be9c 2126 if test $ac_must_keep_next = true; then
ab509236 2127 ac_must_keep_next=false # Got value, back to normal.
13b2be9c 2128 else
ab509236
L
2129 case $ac_arg in
2130 *=* | --config-cache | -C | -disable-* | --disable-* \
2131 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2132 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2133 | -with-* | --with-* | -without-* | --without-* | --x)
2134 case "$ac_configure_args0 " in
2135 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2136 esac
2137 ;;
2138 -* ) ac_must_keep_next=true ;;
2139 esac
13b2be9c 2140 fi
81ecdfbb 2141 as_fn_append ac_configure_args " '$ac_arg'"
c8615825
AM
2142 ;;
2143 esac
2144 done
13b2be9c 2145done
81ecdfbb
RW
2146{ ac_configure_args0=; unset ac_configure_args0;}
2147{ ac_configure_args1=; unset ac_configure_args1;}
13b2be9c
DJ
2148
2149# When interrupted or exit'd, cleanup temporary files, and complete
2150# config.log. We remove comments because anyway the quotes in there
2151# would cause problems or look ugly.
81ecdfbb
RW
2152# WARNING: Use '\'' to represent an apostrophe within the trap.
2153# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
13b2be9c
DJ
2154trap 'exit_status=$?
2155 # Save into config.log some information that might help in debugging.
2156 {
2157 echo
2158
2159 cat <<\_ASBOX
2160## ---------------- ##
2161## Cache variables. ##
2162## ---------------- ##
2163_ASBOX
2164 echo
2165 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2166(
2167 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2168 eval ac_val=\$$ac_var
2169 case $ac_val in #(
2170 *${as_nl}*)
2171 case $ac_var in #(
2172 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2173$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2174 esac
2175 case $ac_var in #(
2176 _ | IFS | as_nl) ;; #(
2177 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2178 *) { eval $ac_var=; unset $ac_var;} ;;
2179 esac ;;
2180 esac
2181 done
13b2be9c 2182 (set) 2>&1 |
81ecdfbb
RW
2183 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2184 *${as_nl}ac_space=\ *)
13b2be9c 2185 sed -n \
81ecdfbb
RW
2186 "s/'\''/'\''\\\\'\'''\''/g;
2187 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2188 ;; #(
13b2be9c 2189 *)
81ecdfbb 2190 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13b2be9c 2191 ;;
81ecdfbb
RW
2192 esac |
2193 sort
2194)
13b2be9c
DJ
2195 echo
2196
2197 cat <<\_ASBOX
2198## ----------------- ##
2199## Output variables. ##
2200## ----------------- ##
2201_ASBOX
2202 echo
2203 for ac_var in $ac_subst_vars
2204 do
81ecdfbb
RW
2205 eval ac_val=\$$ac_var
2206 case $ac_val in
2207 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2208 esac
2209 $as_echo "$ac_var='\''$ac_val'\''"
13b2be9c
DJ
2210 done | sort
2211 echo
2212
2213 if test -n "$ac_subst_files"; then
2214 cat <<\_ASBOX
81ecdfbb
RW
2215## ------------------- ##
2216## File substitutions. ##
2217## ------------------- ##
13b2be9c
DJ
2218_ASBOX
2219 echo
2220 for ac_var in $ac_subst_files
2221 do
81ecdfbb
RW
2222 eval ac_val=\$$ac_var
2223 case $ac_val in
2224 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2225 esac
2226 $as_echo "$ac_var='\''$ac_val'\''"
13b2be9c
DJ
2227 done | sort
2228 echo
2229 fi
2230
2231 if test -s confdefs.h; then
2232 cat <<\_ASBOX
2233## ----------- ##
2234## confdefs.h. ##
2235## ----------- ##
2236_ASBOX
2237 echo
81ecdfbb 2238 cat confdefs.h
13b2be9c
DJ
2239 echo
2240 fi
2241 test "$ac_signal" != 0 &&
81ecdfbb
RW
2242 $as_echo "$as_me: caught signal $ac_signal"
2243 $as_echo "$as_me: exit $exit_status"
13b2be9c 2244 } >&5
81ecdfbb
RW
2245 rm -f core *.core core.conftest.* &&
2246 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
13b2be9c 2247 exit $exit_status
81ecdfbb 2248' 0
13b2be9c 2249for ac_signal in 1 2 13 15; do
81ecdfbb 2250 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
13b2be9c
DJ
2251done
2252ac_signal=0
2253
2254# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2255rm -f -r conftest* confdefs.h
2256
2257$as_echo "/* confdefs.h */" > confdefs.h
13b2be9c
DJ
2258
2259# Predefined preprocessor variables.
2260
2261cat >>confdefs.h <<_ACEOF
2262#define PACKAGE_NAME "$PACKAGE_NAME"
2263_ACEOF
2264
13b2be9c
DJ
2265cat >>confdefs.h <<_ACEOF
2266#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2267_ACEOF
2268
13b2be9c
DJ
2269cat >>confdefs.h <<_ACEOF
2270#define PACKAGE_VERSION "$PACKAGE_VERSION"
2271_ACEOF
2272
13b2be9c
DJ
2273cat >>confdefs.h <<_ACEOF
2274#define PACKAGE_STRING "$PACKAGE_STRING"
2275_ACEOF
2276
13b2be9c
DJ
2277cat >>confdefs.h <<_ACEOF
2278#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2279_ACEOF
2280
81ecdfbb
RW
2281cat >>confdefs.h <<_ACEOF
2282#define PACKAGE_URL "$PACKAGE_URL"
2283_ACEOF
2284
13b2be9c
DJ
2285
2286# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2287# Prefer an explicitly selected file to automatically selected ones.
2288ac_site_file1=NONE
2289ac_site_file2=NONE
2290if test -n "$CONFIG_SITE"; then
2291 ac_site_file1=$CONFIG_SITE
2292elif test "x$prefix" != xNONE; then
2293 ac_site_file1=$prefix/share/config.site
2294 ac_site_file2=$prefix/etc/config.site
2295else
2296 ac_site_file1=$ac_default_prefix/share/config.site
2297 ac_site_file2=$ac_default_prefix/etc/config.site
2298fi
2299for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2300do
2301 test "x$ac_site_file" = xNONE && continue
13b2be9c 2302 if test -r "$ac_site_file"; then
81ecdfbb
RW
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2304$as_echo "$as_me: loading site script $ac_site_file" >&6;}
13b2be9c
DJ
2305 sed 's/^/| /' "$ac_site_file" >&5
2306 . "$ac_site_file"
2307 fi
2308done
2309
2310if test -r "$cache_file"; then
2311 # Some versions of bash will fail to source /dev/null (special
2312 # files actually), so we avoid doing that.
2313 if test -f "$cache_file"; then
81ecdfbb
RW
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2315$as_echo "$as_me: loading cache $cache_file" >&6;}
13b2be9c 2316 case $cache_file in
81ecdfbb
RW
2317 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2318 *) . "./$cache_file";;
13b2be9c
DJ
2319 esac
2320 fi
2321else
81ecdfbb
RW
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2323$as_echo "$as_me: creating cache $cache_file" >&6;}
13b2be9c
DJ
2324 >$cache_file
2325fi
2326
2327# Check that the precious variables saved in the cache have kept the same
2328# value.
2329ac_cache_corrupted=false
81ecdfbb 2330for ac_var in $ac_precious_vars; do
13b2be9c
DJ
2331 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2332 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2333 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2334 eval ac_new_val=\$ac_env_${ac_var}_value
13b2be9c
DJ
2335 case $ac_old_set,$ac_new_set in
2336 set,)
81ecdfbb
RW
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2338$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
13b2be9c
DJ
2339 ac_cache_corrupted=: ;;
2340 ,set)
81ecdfbb
RW
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2342$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
13b2be9c
DJ
2343 ac_cache_corrupted=: ;;
2344 ,);;
2345 *)
2346 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2347 # differences in whitespace do not lead to failure.
2348 ac_old_val_w=`echo x $ac_old_val`
2349 ac_new_val_w=`echo x $ac_new_val`
2350 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2352$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2353 ac_cache_corrupted=:
2354 else
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2356$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2357 eval $ac_var=\$ac_old_val
2358 fi
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2360$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2362$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
13b2be9c
DJ
2363 fi;;
2364 esac
2365 # Pass precious variables to config.status.
2366 if test "$ac_new_set" = set; then
2367 case $ac_new_val in
81ecdfbb 2368 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
13b2be9c
DJ
2369 *) ac_arg=$ac_var=$ac_new_val ;;
2370 esac
2371 case " $ac_configure_args " in
2372 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2373 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
13b2be9c
DJ
2374 esac
2375 fi
2376done
2377if $ac_cache_corrupted; then
81ecdfbb
RW
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2381$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2382 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
13b2be9c 2383fi
81ecdfbb
RW
2384## -------------------- ##
2385## Main body of script. ##
2386## -------------------- ##
13b2be9c
DJ
2387
2388ac_ext=c
2389ac_cpp='$CPP $CPPFLAGS'
2390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392ac_compiler_gnu=$ac_cv_c_compiler_gnu
2393
2394
2395
13b2be9c 2396
da594c4a 2397
13b2be9c
DJ
2398
2399
2400ac_aux_dir=
81ecdfbb
RW
2401for ac_dir in .. "$srcdir"/..; do
2402 for ac_t in install-sh install.sh shtool; do
2403 if test -f "$ac_dir/$ac_t"; then
2404 ac_aux_dir=$ac_dir
2405 ac_install_sh="$ac_aux_dir/$ac_t -c"
2406 break 2
2407 fi
2408 done
13b2be9c
DJ
2409done
2410if test -z "$ac_aux_dir"; then
81ecdfbb 2411 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
13b2be9c 2412fi
81ecdfbb
RW
2413
2414# These three variables are undocumented and unsupported,
2415# and are intended to be withdrawn in a future Autoconf release.
2416# They can cause serious problems if a builder's source tree is in a directory
2417# whose full name contains unusual characters.
2418ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2419ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2420ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2421
13b2be9c
DJ
2422
2423# Make sure we can run config.sub.
81ecdfbb
RW
2424$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2425 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2426
2427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2428$as_echo_n "checking build system type... " >&6; }
2429if test "${ac_cv_build+set}" = set; then :
2430 $as_echo_n "(cached) " >&6
2431else
2432 ac_build_alias=$build_alias
2433test "x$ac_build_alias" = x &&
2434 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2435test "x$ac_build_alias" = x &&
2436 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2437ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2438 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2439
2440fi
2441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2442$as_echo "$ac_cv_build" >&6; }
2443case $ac_cv_build in
2444*-*-*) ;;
2445*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2446esac
13b2be9c 2447build=$ac_cv_build
81ecdfbb
RW
2448ac_save_IFS=$IFS; IFS='-'
2449set x $ac_cv_build
2450shift
2451build_cpu=$1
2452build_vendor=$2
2453shift; shift
2454# Remember, the first character of IFS is used to create $*,
2455# except with old shells:
2456build_os=$*
2457IFS=$ac_save_IFS
2458case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2459
2460
81ecdfbb
RW
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2462$as_echo_n "checking host system type... " >&6; }
2463if test "${ac_cv_host+set}" = set; then :
2464 $as_echo_n "(cached) " >&6
13b2be9c 2465else
81ecdfbb
RW
2466 if test "x$host_alias" = x; then
2467 ac_cv_host=$ac_cv_build
2468else
2469 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2470 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2471fi
13b2be9c
DJ
2472
2473fi
81ecdfbb
RW
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2475$as_echo "$ac_cv_host" >&6; }
2476case $ac_cv_host in
2477*-*-*) ;;
2478*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2479esac
13b2be9c 2480host=$ac_cv_host
81ecdfbb
RW
2481ac_save_IFS=$IFS; IFS='-'
2482set x $ac_cv_host
2483shift
2484host_cpu=$1
2485host_vendor=$2
2486shift; shift
2487# Remember, the first character of IFS is used to create $*,
2488# except with old shells:
2489host_os=$*
2490IFS=$ac_save_IFS
2491case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2492
2493
81ecdfbb
RW
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2495$as_echo_n "checking target system type... " >&6; }
2496if test "${ac_cv_target+set}" = set; then :
2497 $as_echo_n "(cached) " >&6
2498else
2499 if test "x$target_alias" = x; then
2500 ac_cv_target=$ac_cv_host
13b2be9c 2501else
81ecdfbb
RW
2502 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2503 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2504fi
13b2be9c
DJ
2505
2506fi
81ecdfbb
RW
2507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2508$as_echo "$ac_cv_target" >&6; }
2509case $ac_cv_target in
2510*-*-*) ;;
2511*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2512esac
13b2be9c 2513target=$ac_cv_target
81ecdfbb
RW
2514ac_save_IFS=$IFS; IFS='-'
2515set x $ac_cv_target
2516shift
2517target_cpu=$1
2518target_vendor=$2
2519shift; shift
2520# Remember, the first character of IFS is used to create $*,
2521# except with old shells:
2522target_os=$*
2523IFS=$ac_save_IFS
2524case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2525
2526
2527# The aliases save the names the user supplied, while $host etc.
2528# will get canonicalized.
2529test -n "$target_alias" &&
2530 test "$program_prefix$program_suffix$program_transform_name" = \
2531 NONENONEs,x,x, &&
2532 program_prefix=${target_alias}-
2533ac_ext=c
2534ac_cpp='$CPP $CPPFLAGS'
2535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538if test -n "$ac_tool_prefix"; then
2539 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2540set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2542$as_echo_n "checking for $ac_word... " >&6; }
2543if test "${ac_cv_prog_CC+set}" = set; then :
2544 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2545else
2546 if test -n "$CC"; then
2547 ac_cv_prog_CC="$CC" # Let the user override the test.
2548else
2549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550for as_dir in $PATH
2551do
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2556 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2558 break 2
2559 fi
2560done
81ecdfbb
RW
2561 done
2562IFS=$as_save_IFS
13b2be9c
DJ
2563
2564fi
2565fi
2566CC=$ac_cv_prog_CC
2567if test -n "$CC"; then
81ecdfbb
RW
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2569$as_echo "$CC" >&6; }
13b2be9c 2570else
81ecdfbb
RW
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2572$as_echo "no" >&6; }
13b2be9c
DJ
2573fi
2574
81ecdfbb 2575
13b2be9c
DJ
2576fi
2577if test -z "$ac_cv_prog_CC"; then
2578 ac_ct_CC=$CC
2579 # Extract the first word of "gcc", so it can be a program name with args.
2580set dummy gcc; ac_word=$2
81ecdfbb
RW
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582$as_echo_n "checking for $ac_word... " >&6; }
2583if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2584 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2585else
2586 if test -n "$ac_ct_CC"; then
2587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2588else
2589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590for as_dir in $PATH
2591do
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2596 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2598 break 2
2599 fi
2600done
81ecdfbb
RW
2601 done
2602IFS=$as_save_IFS
13b2be9c
DJ
2603
2604fi
2605fi
2606ac_ct_CC=$ac_cv_prog_ac_ct_CC
2607if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2609$as_echo "$ac_ct_CC" >&6; }
13b2be9c 2610else
81ecdfbb
RW
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612$as_echo "no" >&6; }
13b2be9c
DJ
2613fi
2614
81ecdfbb
RW
2615 if test "x$ac_ct_CC" = x; then
2616 CC=""
2617 else
2618 case $cross_compiling:$ac_tool_warned in
2619yes:)
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2622ac_tool_warned=yes ;;
2623esac
2624 CC=$ac_ct_CC
2625 fi
13b2be9c
DJ
2626else
2627 CC="$ac_cv_prog_CC"
2628fi
2629
2630if test -z "$CC"; then
81ecdfbb
RW
2631 if test -n "$ac_tool_prefix"; then
2632 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13b2be9c 2633set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635$as_echo_n "checking for $ac_word... " >&6; }
2636if test "${ac_cv_prog_CC+set}" = set; then :
2637 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2638else
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
2641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2649 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2651 break 2
2652 fi
2653done
81ecdfbb
RW
2654 done
2655IFS=$as_save_IFS
13b2be9c
DJ
2656
2657fi
2658fi
2659CC=$ac_cv_prog_CC
2660if test -n "$CC"; then
81ecdfbb
RW
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2662$as_echo "$CC" >&6; }
13b2be9c 2663else
81ecdfbb
RW
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665$as_echo "no" >&6; }
13b2be9c
DJ
2666fi
2667
13b2be9c 2668
81ecdfbb 2669 fi
13b2be9c
DJ
2670fi
2671if test -z "$CC"; then
2672 # Extract the first word of "cc", so it can be a program name with args.
2673set dummy cc; ac_word=$2
81ecdfbb
RW
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675$as_echo_n "checking for $ac_word... " >&6; }
2676if test "${ac_cv_prog_CC+set}" = set; then :
2677 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2678else
2679 if test -n "$CC"; then
2680 ac_cv_prog_CC="$CC" # Let the user override the test.
2681else
2682 ac_prog_rejected=no
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c
DJ
2690 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2691 ac_prog_rejected=yes
2692 continue
2693 fi
2694 ac_cv_prog_CC="cc"
81ecdfbb 2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2696 break 2
2697 fi
2698done
81ecdfbb
RW
2699 done
2700IFS=$as_save_IFS
2701
13b2be9c
DJ
2702if test $ac_prog_rejected = yes; then
2703 # We found a bogon in the path, so make sure we never use it.
2704 set dummy $ac_cv_prog_CC
2705 shift
2706 if test $# != 0; then
2707 # We chose a different compiler from the bogus one.
2708 # However, it has the same basename, so the bogon will be chosen
2709 # first if we set CC to just the basename; use the full file name.
2710 shift
2711 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2712 fi
2713fi
2714fi
2715fi
2716CC=$ac_cv_prog_CC
2717if test -n "$CC"; then
81ecdfbb
RW
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2719$as_echo "$CC" >&6; }
13b2be9c 2720else
81ecdfbb
RW
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722$as_echo "no" >&6; }
13b2be9c
DJ
2723fi
2724
81ecdfbb 2725
13b2be9c
DJ
2726fi
2727if test -z "$CC"; then
2728 if test -n "$ac_tool_prefix"; then
81ecdfbb 2729 for ac_prog in cl.exe
13b2be9c
DJ
2730 do
2731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2732set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734$as_echo_n "checking for $ac_word... " >&6; }
2735if test "${ac_cv_prog_CC+set}" = set; then :
2736 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2737else
2738 if test -n "$CC"; then
2739 ac_cv_prog_CC="$CC" # Let the user override the test.
2740else
2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742for as_dir in $PATH
2743do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2748 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2750 break 2
2751 fi
2752done
81ecdfbb
RW
2753 done
2754IFS=$as_save_IFS
13b2be9c
DJ
2755
2756fi
2757fi
2758CC=$ac_cv_prog_CC
2759if test -n "$CC"; then
81ecdfbb
RW
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761$as_echo "$CC" >&6; }
13b2be9c 2762else
81ecdfbb
RW
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764$as_echo "no" >&6; }
13b2be9c
DJ
2765fi
2766
81ecdfbb 2767
13b2be9c
DJ
2768 test -n "$CC" && break
2769 done
2770fi
2771if test -z "$CC"; then
2772 ac_ct_CC=$CC
81ecdfbb 2773 for ac_prog in cl.exe
13b2be9c
DJ
2774do
2775 # Extract the first word of "$ac_prog", so it can be a program name with args.
2776set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778$as_echo_n "checking for $ac_word... " >&6; }
2779if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2780 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2781else
2782 if test -n "$ac_ct_CC"; then
2783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2784else
2785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786for as_dir in $PATH
2787do
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2792 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2794 break 2
2795 fi
2796done
81ecdfbb
RW
2797 done
2798IFS=$as_save_IFS
13b2be9c
DJ
2799
2800fi
2801fi
2802ac_ct_CC=$ac_cv_prog_ac_ct_CC
2803if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2805$as_echo "$ac_ct_CC" >&6; }
13b2be9c 2806else
81ecdfbb
RW
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808$as_echo "no" >&6; }
13b2be9c
DJ
2809fi
2810
81ecdfbb 2811
13b2be9c
DJ
2812 test -n "$ac_ct_CC" && break
2813done
2814
81ecdfbb
RW
2815 if test "x$ac_ct_CC" = x; then
2816 CC=""
2817 else
2818 case $cross_compiling:$ac_tool_warned in
2819yes:)
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2822ac_tool_warned=yes ;;
2823esac
2824 CC=$ac_ct_CC
2825 fi
13b2be9c
DJ
2826fi
2827
2828fi
2829
2830
81ecdfbb
RW
2831test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2833as_fn_error "no acceptable C compiler found in \$PATH
2834See \`config.log' for more details." "$LINENO" 5; }
13b2be9c
DJ
2835
2836# Provide some information about the compiler.
81ecdfbb
RW
2837$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2838set X $ac_compile
2839ac_compiler=$2
2840for ac_option in --version -v -V -qversion; do
2841 { { ac_try="$ac_compiler $ac_option >&5"
2842case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845esac
2846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2847$as_echo "$ac_try_echo"; } >&5
2848 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13b2be9c 2849 ac_status=$?
81ecdfbb
RW
2850 if test -s conftest.err; then
2851 sed '10a\
2852... rest of stderr output deleted ...
2853 10q' conftest.err >conftest.er1
2854 cat conftest.er1 >&5
2855 rm -f conftest.er1 conftest.err
2856 fi
2857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2858 test $ac_status = 0; }
2859done
13b2be9c 2860
81ecdfbb 2861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2862/* end confdefs.h. */
2863
2864int
2865main ()
2866{
2867
2868 ;
2869 return 0;
2870}
2871_ACEOF
2872ac_clean_files_save=$ac_clean_files
81ecdfbb 2873ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
13b2be9c
DJ
2874# Try to create an executable without -o first, disregard a.out.
2875# It will help us diagnose broken compilers, and finding out an intuition
2876# of exeext.
81ecdfbb
RW
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2878$as_echo_n "checking for C compiler default output file name... " >&6; }
2879ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2880
2881# The possible output files:
2882ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2883
2884ac_rmfiles=
2885for ac_file in $ac_files
2886do
2887 case $ac_file in
2888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2889 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2890 esac
2891done
2892rm -f $ac_rmfiles
2893
2894if { { ac_try="$ac_link_default"
2895case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898esac
2899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2900$as_echo "$ac_try_echo"; } >&5
2901 (eval "$ac_link_default") 2>&5
2902 ac_status=$?
2903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2904 test $ac_status = 0; }; then :
2905 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2906# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2907# in a Makefile. We should not override ac_cv_exeext if it was cached,
2908# so that the user can short-circuit this test for compilers unknown to
2909# Autoconf.
2910for ac_file in $ac_files ''
13b2be9c
DJ
2911do
2912 test -f "$ac_file" || continue
2913 case $ac_file in
81ecdfbb 2914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
ab509236 2915 ;;
13b2be9c 2916 [ab].out )
ab509236
L
2917 # We found the default executable, but exeext='' is most
2918 # certainly right.
2919 break;;
13b2be9c 2920 *.* )
81ecdfbb
RW
2921 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2922 then :; else
2923 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2924 fi
2925 # We set ac_cv_exeext here because the later test for it is not
2926 # safe: cross compilers may not add the suffix if given an `-o'
2927 # argument, so we may need to know it at that point already.
2928 # Even if this section looks crufty: it has the advantage of
2929 # actually working.
ab509236 2930 break;;
13b2be9c 2931 * )
ab509236 2932 break;;
13b2be9c
DJ
2933 esac
2934done
81ecdfbb
RW
2935test "$ac_cv_exeext" = no && ac_cv_exeext=
2936
13b2be9c 2937else
81ecdfbb
RW
2938 ac_file=''
2939fi
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2941$as_echo "$ac_file" >&6; }
2942if test -z "$ac_file"; then :
2943 $as_echo "$as_me: failed program was:" >&5
13b2be9c
DJ
2944sed 's/^/| /' conftest.$ac_ext >&5
2945
81ecdfbb
RW
2946{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2948{ as_fn_set_status 77
2949as_fn_error "C compiler cannot create executables
2950See \`config.log' for more details." "$LINENO" 5; }; }
13b2be9c 2951fi
13b2be9c 2952ac_exeext=$ac_cv_exeext
13b2be9c 2953
81ecdfbb 2954# Check that the compiler produces executables we can run. If not, either
13b2be9c 2955# the compiler is broken, or we cross compile.
81ecdfbb
RW
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2957$as_echo_n "checking whether the C compiler works... " >&6; }
13b2be9c
DJ
2958# If not cross compiling, check that we can run a simple program.
2959if test "$cross_compiling" != yes; then
2960 if { ac_try='./$ac_file'
81ecdfbb
RW
2961 { { case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964esac
2965eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2966$as_echo "$ac_try_echo"; } >&5
2967 (eval "$ac_try") 2>&5
13b2be9c 2968 ac_status=$?
81ecdfbb
RW
2969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970 test $ac_status = 0; }; }; then
13b2be9c
DJ
2971 cross_compiling=no
2972 else
2973 if test "$cross_compiling" = maybe; then
2974 cross_compiling=yes
2975 else
81ecdfbb
RW
2976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2978as_fn_error "cannot run C compiled programs.
13b2be9c 2979If you meant to cross compile, use \`--host'.
81ecdfbb 2980See \`config.log' for more details." "$LINENO" 5; }
13b2be9c
DJ
2981 fi
2982 fi
2983fi
81ecdfbb
RW
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2985$as_echo "yes" >&6; }
13b2be9c 2986
81ecdfbb 2987rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
13b2be9c 2988ac_clean_files=$ac_clean_files_save
81ecdfbb 2989# Check that the compiler produces executables we can run. If not, either
13b2be9c 2990# the compiler is broken, or we cross compile.
81ecdfbb
RW
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2992$as_echo_n "checking whether we are cross compiling... " >&6; }
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2994$as_echo "$cross_compiling" >&6; }
2995
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2997$as_echo_n "checking for suffix of executables... " >&6; }
2998if { { ac_try="$ac_link"
2999case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002esac
3003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3004$as_echo "$ac_try_echo"; } >&5
3005 (eval "$ac_link") 2>&5
13b2be9c 3006 ac_status=$?
81ecdfbb
RW
3007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3008 test $ac_status = 0; }; then :
13b2be9c
DJ
3009 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3010# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3011# work properly (i.e., refer to `conftest.exe'), while it won't with
3012# `rm'.
3013for ac_file in conftest.exe conftest conftest.*; do
3014 test -f "$ac_file" || continue
3015 case $ac_file in
81ecdfbb 3016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
13b2be9c 3017 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ab509236 3018 break;;
13b2be9c
DJ
3019 * ) break;;
3020 esac
3021done
3022else
81ecdfbb
RW
3023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025as_fn_error "cannot compute suffix of executables: cannot compile and link
3026See \`config.log' for more details." "$LINENO" 5; }
13b2be9c 3027fi
13b2be9c 3028rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3030$as_echo "$ac_cv_exeext" >&6; }
13b2be9c
DJ
3031
3032rm -f conftest.$ac_ext
3033EXEEXT=$ac_cv_exeext
3034ac_exeext=$EXEEXT
81ecdfbb
RW
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3036$as_echo_n "checking for suffix of object files... " >&6; }
3037if test "${ac_cv_objext+set}" = set; then :
3038 $as_echo_n "(cached) " >&6
13b2be9c 3039else
81ecdfbb 3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3041/* end confdefs.h. */
3042
3043int
3044main ()
3045{
3046
3047 ;
3048 return 0;
3049}
3050_ACEOF
3051rm -f conftest.o conftest.obj
81ecdfbb
RW
3052if { { ac_try="$ac_compile"
3053case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056esac
3057eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058$as_echo "$ac_try_echo"; } >&5
3059 (eval "$ac_compile") 2>&5
3060 ac_status=$?
3061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3062 test $ac_status = 0; }; then :
3063 for ac_file in conftest.o conftest.obj conftest.*; do
3064 test -f "$ac_file" || continue;
13b2be9c 3065 case $ac_file in
81ecdfbb 3066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
13b2be9c
DJ
3067 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3068 break;;
3069 esac
3070done
3071else
81ecdfbb 3072 $as_echo "$as_me: failed program was:" >&5
13b2be9c
DJ
3073sed 's/^/| /' conftest.$ac_ext >&5
3074
81ecdfbb
RW
3075{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077as_fn_error "cannot compute suffix of object files: cannot compile
3078See \`config.log' for more details." "$LINENO" 5; }
13b2be9c 3079fi
13b2be9c
DJ
3080rm -f conftest.$ac_cv_objext conftest.$ac_ext
3081fi
81ecdfbb
RW
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3083$as_echo "$ac_cv_objext" >&6; }
13b2be9c
DJ
3084OBJEXT=$ac_cv_objext
3085ac_objext=$OBJEXT
81ecdfbb
RW
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3087$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3088if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3089 $as_echo_n "(cached) " >&6
13b2be9c 3090else
81ecdfbb 3091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3092/* end confdefs.h. */
3093
3094int
3095main ()
3096{
3097#ifndef __GNUC__
3098 choke me
3099#endif
3100
3101 ;
3102 return 0;
3103}
3104_ACEOF
81ecdfbb 3105if ac_fn_c_try_compile "$LINENO"; then :
13b2be9c
DJ
3106 ac_compiler_gnu=yes
3107else
81ecdfbb 3108 ac_compiler_gnu=no
13b2be9c 3109fi
81ecdfbb 3110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
3111ac_cv_c_compiler_gnu=$ac_compiler_gnu
3112
3113fi
81ecdfbb
RW
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3115$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3116if test $ac_compiler_gnu = yes; then
3117 GCC=yes
3118else
3119 GCC=
3120fi
13b2be9c
DJ
3121ac_test_CFLAGS=${CFLAGS+set}
3122ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3124$as_echo_n "checking whether $CC accepts -g... " >&6; }
3125if test "${ac_cv_prog_cc_g+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
3127else
3128 ac_save_c_werror_flag=$ac_c_werror_flag
3129 ac_c_werror_flag=yes
3130 ac_cv_prog_cc_g=no
3131 CFLAGS="-g"
3132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3133/* end confdefs.h. */
3134
3135int
3136main ()
3137{
3138
3139 ;
3140 return 0;
3141}
3142_ACEOF
81ecdfbb 3143if ac_fn_c_try_compile "$LINENO"; then :
13b2be9c
DJ
3144 ac_cv_prog_cc_g=yes
3145else
81ecdfbb
RW
3146 CFLAGS=""
3147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3148/* end confdefs.h. */
13b2be9c 3149
81ecdfbb
RW
3150int
3151main ()
3152{
3153
3154 ;
3155 return 0;
3156}
3157_ACEOF
3158if ac_fn_c_try_compile "$LINENO"; then :
3159
3160else
3161 ac_c_werror_flag=$ac_save_c_werror_flag
3162 CFLAGS="-g"
3163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164/* end confdefs.h. */
3165
3166int
3167main ()
3168{
3169
3170 ;
3171 return 0;
3172}
3173_ACEOF
3174if ac_fn_c_try_compile "$LINENO"; then :
3175 ac_cv_prog_cc_g=yes
3176fi
3177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 3178fi
81ecdfbb 3179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 3180fi
81ecdfbb
RW
3181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182 ac_c_werror_flag=$ac_save_c_werror_flag
3183fi
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3185$as_echo "$ac_cv_prog_cc_g" >&6; }
13b2be9c
DJ
3186if test "$ac_test_CFLAGS" = set; then
3187 CFLAGS=$ac_save_CFLAGS
3188elif test $ac_cv_prog_cc_g = yes; then
3189 if test "$GCC" = yes; then
3190 CFLAGS="-g -O2"
3191 else
3192 CFLAGS="-g"
3193 fi
3194else
3195 if test "$GCC" = yes; then
3196 CFLAGS="-O2"
3197 else
3198 CFLAGS=
3199 fi
3200fi
81ecdfbb
RW
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3202$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3203if test "${ac_cv_prog_cc_c89+set}" = set; then :
3204 $as_echo_n "(cached) " >&6
13b2be9c 3205else
81ecdfbb 3206 ac_cv_prog_cc_c89=no
13b2be9c 3207ac_save_CC=$CC
81ecdfbb 3208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3209/* end confdefs.h. */
3210#include <stdarg.h>
3211#include <stdio.h>
3212#include <sys/types.h>
3213#include <sys/stat.h>
3214/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3215struct buf { int x; };
3216FILE * (*rcsopen) (struct buf *, struct stat *, int);
3217static char *e (p, i)
3218 char **p;
3219 int i;
3220{
3221 return p[i];
3222}
3223static char *f (char * (*g) (char **, int), char **p, ...)
3224{
3225 char *s;
3226 va_list v;
3227 va_start (v,p);
3228 s = g (p, va_arg (v,int));
3229 va_end (v);
3230 return s;
3231}
ab509236
L
3232
3233/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3234 function prototypes and stuff, but not '\xHH' hex character constants.
3235 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3236 as 'x'. The following induces an error, until -std is added to get
ab509236
L
3237 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3238 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3239 that's true only with -std. */
ab509236
L
3240int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3241
81ecdfbb
RW
3242/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3243 inside strings and character constants. */
3244#define FOO(x) 'x'
3245int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3246
13b2be9c
DJ
3247int test (int i, double x);
3248struct s1 {int (*f) (int a);};
3249struct s2 {int (*f) (double a);};
3250int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3251int argc;
3252char **argv;
3253int
3254main ()
3255{
3256return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3257 ;
3258 return 0;
3259}
3260_ACEOF
81ecdfbb
RW
3261for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3262 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13b2be9c
DJ
3263do
3264 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3265 if ac_fn_c_try_compile "$LINENO"; then :
3266 ac_cv_prog_cc_c89=$ac_arg
13b2be9c 3267fi
81ecdfbb
RW
3268rm -f core conftest.err conftest.$ac_objext
3269 test "x$ac_cv_prog_cc_c89" != "xno" && break
13b2be9c 3270done
81ecdfbb 3271rm -f conftest.$ac_ext
13b2be9c
DJ
3272CC=$ac_save_CC
3273
3274fi
81ecdfbb
RW
3275# AC_CACHE_VAL
3276case "x$ac_cv_prog_cc_c89" in
3277 x)
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3279$as_echo "none needed" >&6; } ;;
3280 xno)
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3282$as_echo "unsupported" >&6; } ;;
13b2be9c 3283 *)
81ecdfbb
RW
3284 CC="$CC $ac_cv_prog_cc_c89"
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3286$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13b2be9c 3287esac
81ecdfbb 3288if test "x$ac_cv_prog_cc_c89" != xno; then :
13b2be9c 3289
13b2be9c
DJ
3290fi
3291
13b2be9c
DJ
3292ac_ext=c
3293ac_cpp='$CPP $CPPFLAGS'
3294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297
3298
81ecdfbb
RW
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3300$as_echo_n "checking for library containing strerror... " >&6; }
3301if test "${ac_cv_search_strerror+set}" = set; then :
3302 $as_echo_n "(cached) " >&6
13b2be9c 3303else
ab509236 3304 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3306/* end confdefs.h. */
3307
81ecdfbb
RW
3308/* Override any GCC internal prototype to avoid an error.
3309 Use char because int might match the return type of a GCC
3310 builtin and then its argument prototype would still apply. */
13b2be9c
DJ
3311#ifdef __cplusplus
3312extern "C"
3313#endif
13b2be9c
DJ
3314char strerror ();
3315int
3316main ()
3317{
81ecdfbb 3318return strerror ();
13b2be9c
DJ
3319 ;
3320 return 0;
3321}
3322_ACEOF
81ecdfbb
RW
3323for ac_lib in '' cposix; do
3324 if test -z "$ac_lib"; then
3325 ac_res="none required"
3326 else
3327 ac_res=-l$ac_lib
ab509236 3328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3329 fi
3330 if ac_fn_c_try_link "$LINENO"; then :
3331 ac_cv_search_strerror=$ac_res
3332fi
3333rm -f core conftest.err conftest.$ac_objext \
3334 conftest$ac_exeext
3335 if test "${ac_cv_search_strerror+set}" = set; then :
3336 break
3337fi
3338done
3339if test "${ac_cv_search_strerror+set}" = set; then :
ab509236 3340
ab509236 3341else
81ecdfbb 3342 ac_cv_search_strerror=no
13b2be9c 3343fi
81ecdfbb 3344rm conftest.$ac_ext
ab509236
L
3345LIBS=$ac_func_search_save_LIBS
3346fi
81ecdfbb
RW
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3348$as_echo "$ac_cv_search_strerror" >&6; }
3349ac_res=$ac_cv_search_strerror
3350if test "$ac_res" != no; then :
3351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13b2be9c 3352
ab509236 3353fi
13b2be9c
DJ
3354
3355
3356BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
81ecdfbb
RW
3357am__api_version='1.11'
3358
13b2be9c
DJ
3359# Find a good install program. We prefer a C program (faster),
3360# so one script is as good as another. But avoid the broken or
3361# incompatible versions:
3362# SysV /etc/install, /usr/sbin/install
3363# SunOS /usr/etc/install
3364# IRIX /sbin/install
3365# AIX /bin/install
3366# AmigaOS /C/install, which installs bootblocks on floppy discs
3367# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3368# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3369# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ab509236 3370# OS/2's system install, which has a completely different semantic
13b2be9c 3371# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3372# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3374$as_echo_n "checking for a BSD-compatible install... " >&6; }
13b2be9c 3375if test -z "$INSTALL"; then
81ecdfbb
RW
3376if test "${ac_cv_path_install+set}" = set; then :
3377 $as_echo_n "(cached) " >&6
13b2be9c
DJ
3378else
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380for as_dir in $PATH
3381do
3382 IFS=$as_save_IFS
3383 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3384 # Account for people who put trailing slashes in PATH elements.
3385case $as_dir/ in #((
3386 ./ | .// | /[cC]/* | \
13b2be9c 3387 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3388 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13b2be9c
DJ
3389 /usr/ucb/* ) ;;
3390 *)
3391 # OSF1 and SCO ODT 3.0 have their own names for install.
3392 # Don't use installbsd from OSF since it installs stuff as root
3393 # by default.
3394 for ac_prog in ginstall scoinst install; do
3395 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3396 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
ab509236
L
3397 if test $ac_prog = install &&
3398 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3399 # AIX install. It has an incompatible calling convention.
3400 :
3401 elif test $ac_prog = install &&
3402 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3403 # program-specific install script used by HP pwplus--don't use.
3404 :
3405 else
58c85be7
RW
3406 rm -rf conftest.one conftest.two conftest.dir
3407 echo one > conftest.one
3408 echo two > conftest.two
3409 mkdir conftest.dir
3410 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3411 test -s conftest.one && test -s conftest.two &&
3412 test -s conftest.dir/conftest.one &&
3413 test -s conftest.dir/conftest.two
3414 then
3415 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3416 break 3
3417 fi
ab509236
L
3418 fi
3419 fi
13b2be9c
DJ
3420 done
3421 done
3422 ;;
3423esac
81ecdfbb
RW
3424
3425 done
3426IFS=$as_save_IFS
13b2be9c 3427
58c85be7 3428rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3429
3430fi
3431 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 3432 INSTALL=$ac_cv_path_install
252b5132 3433 else
58c85be7
RW
3434 # As a last resort, use the slow shell script. Don't cache a
3435 # value for INSTALL within a source directory, because that will
252b5132 3436 # break other packages using the cache if that directory is
58c85be7 3437 # removed, or if the value is a relative name.
13b2be9c 3438 INSTALL=$ac_install_sh
252b5132
RH
3439 fi
3440fi
81ecdfbb
RW
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3442$as_echo "$INSTALL" >&6; }
252b5132
RH
3443
3444# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3445# It thinks the first close brace ends the variable substitution.
3446test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3447
13b2be9c 3448test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3449
3450test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3451
81ecdfbb
RW
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3453$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3454# Just in case
3455sleep 1
13b2be9c 3456echo timestamp > conftest.file
81ecdfbb
RW
3457# Reject unsafe characters in $srcdir or the absolute working directory
3458# name. Accept space and tab only in the latter.
3459am_lf='
3460'
3461case `pwd` in
3462 *[\\\"\#\$\&\'\`$am_lf]*)
3463 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3464esac
3465case $srcdir in
3466 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3467 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3468esac
3469
252b5132
RH
3470# Do `set' in a subshell so we don't clobber the current shell's
3471# arguments. Must try -L first in case configure is actually a
3472# symlink; some systems play weird games with the mod time of symlinks
3473# (eg FreeBSD returns the mod time of the symlink's containing
3474# directory).
3475if (
81ecdfbb 3476 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3477 if test "$*" = "X"; then
3478 # -L didn't work.
81ecdfbb 3479 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3480 fi
13b2be9c
DJ
3481 rm -f conftest.file
3482 if test "$*" != "X $srcdir/configure conftest.file" \
3483 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3484
3485 # If neither matched, then we have a broken ls. This can happen
3486 # if, for instance, CONFIG_SHELL is bash and it inherits a
3487 # broken ls alias from the environment. This has actually
3488 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3489 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3490alias in your environment" "$LINENO" 5
252b5132
RH
3491 fi
3492
13b2be9c
DJ
3493 test "$2" = conftest.file
3494 )
3495then
3496 # Ok.
3497 :
3498else
81ecdfbb
RW
3499 as_fn_error "newly created file is older than distributed files!
3500Check your system clock" "$LINENO" 5
13b2be9c 3501fi
81ecdfbb
RW
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3503$as_echo "yes" >&6; }
13b2be9c 3504test "$program_prefix" != NONE &&
81ecdfbb 3505 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13b2be9c
DJ
3506# Use a double $ so make ignores it.
3507test "$program_suffix" != NONE &&
81ecdfbb
RW
3508 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3509# Double any \ or $.
13b2be9c 3510# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3511ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3512program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
13b2be9c 3513
13b2be9c
DJ
3514# expand $ac_aux_dir to an absolute path
3515am_aux_dir=`cd $ac_aux_dir && pwd`
3516
81ecdfbb
RW
3517if test x"${MISSING+set}" != xset; then
3518 case $am_aux_dir in
3519 *\ * | *\ *)
3520 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3521 *)
3522 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3523 esac
3524fi
13b2be9c
DJ
3525# Use eval to expand $SHELL
3526if eval "$MISSING --run true"; then
3527 am_missing_run="$MISSING --run "
3528else
3529 am_missing_run=
81ecdfbb
RW
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3531$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
ab509236
L
3532fi
3533
81ecdfbb
RW
3534if test x"${install_sh}" != xset; then
3535 case $am_aux_dir in
3536 *\ * | *\ *)
3537 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3538 *)
3539 install_sh="\${SHELL} $am_aux_dir/install-sh"
3540 esac
3541fi
3542
3543# Installed binaries are usually stripped using `strip' when the user
3544# run `make install-strip'. However `strip' might not be the right
3545# tool to use in cross-compilation environments, therefore Automake
3546# will honor the `STRIP' environment variable to overrule this program.
3547if test "$cross_compiling" != no; then
3548 if test -n "$ac_tool_prefix"; then
3549 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3550set dummy ${ac_tool_prefix}strip; ac_word=$2
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552$as_echo_n "checking for $ac_word... " >&6; }
3553if test "${ac_cv_prog_STRIP+set}" = set; then :
3554 $as_echo_n "(cached) " >&6
13b2be9c 3555else
81ecdfbb
RW
3556 if test -n "$STRIP"; then
3557 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13b2be9c
DJ
3558else
3559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560for as_dir in $PATH
3561do
3562 IFS=$as_save_IFS
3563 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3566 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
3568 break 2
3569 fi
3570done
81ecdfbb
RW
3571 done
3572IFS=$as_save_IFS
13b2be9c
DJ
3573
3574fi
3575fi
81ecdfbb
RW
3576STRIP=$ac_cv_prog_STRIP
3577if test -n "$STRIP"; then
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3579$as_echo "$STRIP" >&6; }
13b2be9c 3580else
81ecdfbb
RW
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582$as_echo "no" >&6; }
13b2be9c
DJ
3583fi
3584
13b2be9c 3585
81ecdfbb
RW
3586fi
3587if test -z "$ac_cv_prog_STRIP"; then
3588 ac_ct_STRIP=$STRIP
3589 # Extract the first word of "strip", so it can be a program name with args.
3590set dummy strip; ac_word=$2
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592$as_echo_n "checking for $ac_word... " >&6; }
3593if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3594 $as_echo_n "(cached) " >&6
13b2be9c 3595else
81ecdfbb
RW
3596 if test -n "$ac_ct_STRIP"; then
3597 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13b2be9c 3598else
81ecdfbb
RW
3599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600for as_dir in $PATH
3601do
3602 IFS=$as_save_IFS
3603 test -z "$as_dir" && as_dir=.
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3606 ac_cv_prog_ac_ct_STRIP="strip"
3607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 break 2
3609 fi
3610done
3611 done
3612IFS=$as_save_IFS
3613
3614fi
3615fi
3616ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3617if test -n "$ac_ct_STRIP"; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3619$as_echo "$ac_ct_STRIP" >&6; }
3620else
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622$as_echo "no" >&6; }
3623fi
3624
3625 if test "x$ac_ct_STRIP" = x; then
3626 STRIP=":"
3627 else
3628 case $cross_compiling:$ac_tool_warned in
3629yes:)
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3631$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3632ac_tool_warned=yes ;;
3633esac
3634 STRIP=$ac_ct_STRIP
3635 fi
3636else
3637 STRIP="$ac_cv_prog_STRIP"
3638fi
3639
3640fi
3641INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3642
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3644$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3645if test -z "$MKDIR_P"; then
3646 if test "${ac_cv_path_mkdir+set}" = set; then :
3647 $as_echo_n "(cached) " >&6
3648else
3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3651do
3652 IFS=$as_save_IFS
3653 test -z "$as_dir" && as_dir=.
3654 for ac_prog in mkdir gmkdir; do
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3657 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3658 'mkdir (GNU coreutils) '* | \
3659 'mkdir (coreutils) '* | \
3660 'mkdir (fileutils) '4.1*)
3661 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3662 break 3;;
3663 esac
3664 done
3665 done
3666 done
3667IFS=$as_save_IFS
3668
3669fi
3670
3671 if test "${ac_cv_path_mkdir+set}" = set; then
3672 MKDIR_P="$ac_cv_path_mkdir -p"
3673 else
3674 # As a last resort, use the slow shell script. Don't cache a
3675 # value for MKDIR_P within a source directory, because that will
3676 # break other packages using the cache if that directory is
3677 # removed, or if the value is a relative name.
3678 test -d ./--version && rmdir ./--version
3679 MKDIR_P="$ac_install_sh -d"
3680 fi
3681fi
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3683$as_echo "$MKDIR_P" >&6; }
3684
3685mkdir_p="$MKDIR_P"
3686case $mkdir_p in
3687 [\\/$]* | ?:[\\/]*) ;;
3688 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3689esac
3690
3691for ac_prog in gawk mawk nawk awk
3692do
3693 # Extract the first word of "$ac_prog", so it can be a program name with args.
3694set dummy $ac_prog; ac_word=$2
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696$as_echo_n "checking for $ac_word... " >&6; }
3697if test "${ac_cv_prog_AWK+set}" = set; then :
3698 $as_echo_n "(cached) " >&6
3699else
3700 if test -n "$AWK"; then
3701 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3702else
3703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704for as_dir in $PATH
3705do
3706 IFS=$as_save_IFS
3707 test -z "$as_dir" && as_dir=.
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3710 ac_cv_prog_AWK="$ac_prog"
3711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3712 break 2
3713 fi
3714done
3715 done
3716IFS=$as_save_IFS
3717
3718fi
3719fi
3720AWK=$ac_cv_prog_AWK
3721if test -n "$AWK"; then
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3723$as_echo "$AWK" >&6; }
3724else
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726$as_echo "no" >&6; }
13b2be9c 3727fi
81ecdfbb
RW
3728
3729
3730 test -n "$AWK" && break
3731done
3732
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3734$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3735set x ${MAKE-make}
3736ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3737if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3738 $as_echo_n "(cached) " >&6
3739else
3740 cat >conftest.make <<\_ACEOF
3741SHELL = /bin/sh
3742all:
3743 @echo '@@@%%%=$(MAKE)=@@@%%%'
3744_ACEOF
3745# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3746case `${MAKE-make} -f conftest.make 2>/dev/null` in
3747 *@@@%%%=?*=@@@%%%*)
3748 eval ac_cv_prog_make_${ac_make}_set=yes;;
3749 *)
3750 eval ac_cv_prog_make_${ac_make}_set=no;;
3751esac
13b2be9c
DJ
3752rm -f conftest.make
3753fi
81ecdfbb
RW
3754if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3756$as_echo "yes" >&6; }
13b2be9c
DJ
3757 SET_MAKE=
3758else
81ecdfbb
RW
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760$as_echo "no" >&6; }
13b2be9c
DJ
3761 SET_MAKE="MAKE=${MAKE-make}"
3762fi
3763
3764rm -rf .tst 2>/dev/null
3765mkdir .tst 2>/dev/null
3766if test -d .tst; then
3767 am__leading_dot=.
3768else
3769 am__leading_dot=_
3770fi
3771rmdir .tst 2>/dev/null
3772
3773DEPDIR="${am__leading_dot}deps"
3774
81ecdfbb 3775ac_config_commands="$ac_config_commands depfiles"
13b2be9c
DJ
3776
3777
3778am_make=${MAKE-make}
3779cat > confinc << 'END'
3780am__doit:
81ecdfbb 3781 @echo this is the am__doit target
13b2be9c
DJ
3782.PHONY: am__doit
3783END
3784# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3786$as_echo_n "checking for style of include used by $am_make... " >&6; }
13b2be9c
DJ
3787am__include="#"
3788am__quote=
3789_am_result=none
3790# First try GNU make style include.
3791echo "include confinc" > confmf
81ecdfbb
RW
3792# Ignore all kinds of additional output from `make'.
3793case `$am_make -s -f confmf 2> /dev/null` in #(
3794*the\ am__doit\ target*)
3795 am__include=include
3796 am__quote=
3797 _am_result=GNU
3798 ;;
3799esac
13b2be9c
DJ
3800# Now try BSD make style include.
3801if test "$am__include" = "#"; then
3802 echo '.include "confinc"' > confmf
81ecdfbb
RW
3803 case `$am_make -s -f confmf 2> /dev/null` in #(
3804 *the\ am__doit\ target*)
3805 am__include=.include
3806 am__quote="\""
3807 _am_result=BSD
3808 ;;
3809 esac
13b2be9c
DJ
3810fi
3811
3812
81ecdfbb
RW
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3814$as_echo "$_am_result" >&6; }
13b2be9c
DJ
3815rm -f confinc confmf
3816
81ecdfbb
RW
3817# Check whether --enable-dependency-tracking was given.
3818if test "${enable_dependency_tracking+set}" = set; then :
3819 enableval=$enable_dependency_tracking;
3820fi
13b2be9c 3821
13b2be9c
DJ
3822if test "x$enable_dependency_tracking" != xno; then
3823 am_depcomp="$ac_aux_dir/depcomp"
3824 AMDEPBACKSLASH='\'
3825fi
81ecdfbb 3826 if test "x$enable_dependency_tracking" != xno; then
13b2be9c
DJ
3827 AMDEP_TRUE=
3828 AMDEP_FALSE='#'
3829else
3830 AMDEP_TRUE='#'
3831 AMDEP_FALSE=
3832fi
3833
3834
81ecdfbb
RW
3835if test "`cd $srcdir && pwd`" != "`pwd`"; then
3836 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3837 # is not polluted with repeated "-I."
3838 am__isrc=' -I$(srcdir)'
3839 # test to see if srcdir already configured
3840 if test -f $srcdir/config.status; then
3841 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3842 fi
13b2be9c
DJ
3843fi
3844
3845# test whether we have cygpath
3846if test -z "$CYGPATH_W"; then
3847 if (cygpath --version) >/dev/null 2>/dev/null; then
3848 CYGPATH_W='cygpath -w'
3849 else
3850 CYGPATH_W=echo
3851 fi
3852fi
3853
3854
3855# Define the identity of the package.
3856 PACKAGE=gas
3857 VERSION=${BFD_VERSION}
3858
3859
3860cat >>confdefs.h <<_ACEOF
3861#define PACKAGE "$PACKAGE"
3862_ACEOF
3863
3864
3865cat >>confdefs.h <<_ACEOF
3866#define VERSION "$VERSION"
3867_ACEOF
3868
3869# Some tools Automake needs.
3870
3871ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3872
3873
3874AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3875
3876
3877AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3878
3879
3880AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3881
3882
3883MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3884
13b2be9c
DJ
3885# We need awk for the "check" target. The system "awk" is bad on
3886# some platforms.
8ea2b00f
AM
3887# Always define AMTAR for backward compatibility.
3888
3889AMTAR=${AMTAR-"${am_missing_run}tar"}
3890
3891am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3892
3893
252b5132 3894
d6d788bd 3895
13b2be9c 3896depcc="$CC" am_compiler_list=
d6d788bd 3897
81ecdfbb
RW
3898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3899$as_echo_n "checking dependency style of $depcc... " >&6; }
3900if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3901 $as_echo_n "(cached) " >&6
252b5132 3902else
13b2be9c
DJ
3903 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3904 # We make a subdir and do the tests there. Otherwise we can end up
3905 # making bogus files that we don't know about and never remove. For
3906 # instance it was reported that on HP-UX the gcc test will end up
3907 # making a dummy file named `D' -- because `-MD' means `put the output
3908 # in D'.
3909 mkdir conftest.dir
3910 # Copy depcomp to subdir because otherwise we won't find it if we're
3911 # using a relative directory.
3912 cp "$am_depcomp" conftest.dir
3913 cd conftest.dir
3914 # We will build objects and dependencies in a subdirectory because
3915 # it helps to detect inapplicable dependency modes. For instance
3916 # both Tru64's cc and ICC support -MD to output dependencies as a
3917 # side effect of compilation, but ICC will put the dependencies in
3918 # the current directory while Tru64 will put them in the object
3919 # directory.
3920 mkdir sub
252b5132 3921
13b2be9c
DJ
3922 am_cv_CC_dependencies_compiler_type=none
3923 if test "$am_compiler_list" = ""; then
3924 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3925 fi
81ecdfbb
RW
3926 am__universal=false
3927 case " $depcc " in #(
3928 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3929 esac
3930
13b2be9c
DJ
3931 for depmode in $am_compiler_list; do
3932 # Setup a source with many dependencies, because some compilers
3933 # like to wrap large dependency lists on column 80 (with \), and
3934 # we should not choose a depcomp mode which is confused by this.
3935 #
3936 # We need to recreate these files for each test, as the compiler may
3937 # overwrite some of them when testing with obscure command lines.
3938 # This happens at least with the AIX C compiler.
3939 : > sub/conftest.c
3940 for i in 1 2 3 4 5 6; do
3941 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4b363073
NC
3942 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3943 # Solaris 8's {/usr,}/bin/sh.
3944 touch sub/conftst$i.h
13b2be9c
DJ
3945 done
3946 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3947
81ecdfbb
RW
3948 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3949 # mode. It turns out that the SunPro C++ compiler does not properly
3950 # handle `-M -o', and we need to detect this. Also, some Intel
3951 # versions had trouble with output in subdirs
3952 am__obj=sub/conftest.${OBJEXT-o}
3953 am__minus_obj="-o $am__obj"
13b2be9c 3954 case $depmode in
81ecdfbb
RW
3955 gcc)
3956 # This depmode causes a compiler race in universal mode.
3957 test "$am__universal" = false || continue
3958 ;;
13b2be9c
DJ
3959 nosideeffect)
3960 # after this tag, mechanisms are not by side-effect, so they'll
3961 # only be used when explicitly requested
3962 if test "x$enable_dependency_tracking" = xyes; then
3963 continue
3964 else
3965 break
3966 fi
3967 ;;
81ecdfbb
RW
3968 msvisualcpp | msvcmsys)
3969 # This compiler won't grok `-c -o', but also, the minuso test has
3970 # not run yet. These depmodes are late enough in the game, and
3971 # so weak that their functioning should not be impacted.
3972 am__obj=conftest.${OBJEXT-o}
3973 am__minus_obj=
3974 ;;
13b2be9c
DJ
3975 none) break ;;
3976 esac
13b2be9c 3977 if depmode=$depmode \
81ecdfbb 3978 source=sub/conftest.c object=$am__obj \
13b2be9c 3979 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 3980 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13b2be9c 3981 >/dev/null 2>conftest.err &&
81ecdfbb 3982 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13b2be9c 3983 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 3984 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13b2be9c
DJ
3985 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3986 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
3987 # or remarks (even with -Werror). So we grep stderr for any message
3988 # that says an option was ignored or not supported.
3989 # When given -MP, icc 7.0 and 7.1 complain thusly:
3990 # icc: Command line warning: ignoring option '-M'; no argument required
3991 # The diagnosis changed in icc 8.0:
3992 # icc: Command line remark: option '-MP' not supported
3993 if (grep 'ignoring option' conftest.err ||
3994 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
3995 am_cv_CC_dependencies_compiler_type=$depmode
3996 break
3997 fi
3998 fi
3999 done
252b5132 4000
13b2be9c
DJ
4001 cd ..
4002 rm -rf conftest.dir
252b5132 4003else
13b2be9c 4004 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
4005fi
4006
252b5132 4007fi
81ecdfbb
RW
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4009$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13b2be9c 4010CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 4011
81ecdfbb 4012 if
13b2be9c
DJ
4013 test "x$enable_dependency_tracking" != xno \
4014 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4015 am__fastdepCC_TRUE=
4016 am__fastdepCC_FALSE='#'
252b5132 4017else
13b2be9c
DJ
4018 am__fastdepCC_TRUE='#'
4019 am__fastdepCC_FALSE=
252b5132
RH
4020fi
4021
d6d788bd
L
4022
4023
13b2be9c 4024
ce2cded5
L
4025ac_ext=c
4026ac_cpp='$CPP $CPPFLAGS'
4027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4029ac_compiler_gnu=$ac_cv_c_compiler_gnu
4030if test -n "$ac_tool_prefix"; then
4031 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4032set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034$as_echo_n "checking for $ac_word... " >&6; }
4035if test "${ac_cv_prog_CC+set}" = set; then :
4036 $as_echo_n "(cached) " >&6
252b5132 4037else
ce2cded5
L
4038 if test -n "$CC"; then
4039 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 4040else
ce2cded5
L
4041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042for as_dir in $PATH
4043do
4044 IFS=$as_save_IFS
4045 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4048 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4050 break 2
4051 fi
4052done
81ecdfbb
RW
4053 done
4054IFS=$as_save_IFS
d7040cdb 4055
ce2cded5
L
4056fi
4057fi
4058CC=$ac_cv_prog_CC
4059if test -n "$CC"; then
81ecdfbb
RW
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4061$as_echo "$CC" >&6; }
bedf545c 4062else
81ecdfbb
RW
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064$as_echo "no" >&6; }
ce2cded5 4065fi
d7040cdb 4066
81ecdfbb 4067
ce2cded5
L
4068fi
4069if test -z "$ac_cv_prog_CC"; then
4070 ac_ct_CC=$CC
4071 # Extract the first word of "gcc", so it can be a program name with args.
4072set dummy gcc; ac_word=$2
81ecdfbb
RW
4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074$as_echo_n "checking for $ac_word... " >&6; }
4075if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4076 $as_echo_n "(cached) " >&6
d7040cdb 4077else
ce2cded5
L
4078 if test -n "$ac_ct_CC"; then
4079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4080else
d7040cdb
SE
4081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082for as_dir in $PATH
4083do
4084 IFS=$as_save_IFS
4085 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4088 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 4090 break 2
d7040cdb 4091 fi
ce2cded5 4092done
81ecdfbb
RW
4093 done
4094IFS=$as_save_IFS
d7040cdb 4095
ce2cded5
L
4096fi
4097fi
4098ac_ct_CC=$ac_cv_prog_ac_ct_CC
4099if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4101$as_echo "$ac_ct_CC" >&6; }
ce2cded5 4102else
81ecdfbb
RW
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104$as_echo "no" >&6; }
d7040cdb
SE
4105fi
4106
81ecdfbb
RW
4107 if test "x$ac_ct_CC" = x; then
4108 CC=""
4109 else
4110 case $cross_compiling:$ac_tool_warned in
4111yes:)
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4114ac_tool_warned=yes ;;
4115esac
4116 CC=$ac_ct_CC
4117 fi
ce2cded5
L
4118else
4119 CC="$ac_cv_prog_CC"
4120fi
d7040cdb 4121
ce2cded5 4122if test -z "$CC"; then
81ecdfbb
RW
4123 if test -n "$ac_tool_prefix"; then
4124 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 4125set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127$as_echo_n "checking for $ac_word... " >&6; }
4128if test "${ac_cv_prog_CC+set}" = set; then :
4129 $as_echo_n "(cached) " >&6
d7040cdb 4130else
ce2cded5
L
4131 if test -n "$CC"; then
4132 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 4133else
ce2cded5
L
4134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135for as_dir in $PATH
4136do
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4141 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4143 break 2
4144 fi
4145done
81ecdfbb
RW
4146 done
4147IFS=$as_save_IFS
d7040cdb 4148
252b5132
RH
4149fi
4150fi
ce2cded5
L
4151CC=$ac_cv_prog_CC
4152if test -n "$CC"; then
81ecdfbb
RW
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4154$as_echo "$CC" >&6; }
ce2cded5 4155else
81ecdfbb
RW
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157$as_echo "no" >&6; }
d7040cdb 4158fi
f9c19112 4159
ce2cded5 4160
81ecdfbb 4161 fi
ce2cded5
L
4162fi
4163if test -z "$CC"; then
4164 # Extract the first word of "cc", so it can be a program name with args.
4165set dummy cc; ac_word=$2
81ecdfbb
RW
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167$as_echo_n "checking for $ac_word... " >&6; }
4168if test "${ac_cv_prog_CC+set}" = set; then :
4169 $as_echo_n "(cached) " >&6
ce2cded5
L
4170else
4171 if test -n "$CC"; then
4172 ac_cv_prog_CC="$CC" # Let the user override the test.
4173else
4174 ac_prog_rejected=no
4175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176for as_dir in $PATH
4177do
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
4182 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4183 ac_prog_rejected=yes
4184 continue
4185 fi
4186 ac_cv_prog_CC="cc"
81ecdfbb 4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4188 break 2
4189 fi
4190done
81ecdfbb
RW
4191 done
4192IFS=$as_save_IFS
ce2cded5
L
4193
4194if test $ac_prog_rejected = yes; then
4195 # We found a bogon in the path, so make sure we never use it.
4196 set dummy $ac_cv_prog_CC
4197 shift
4198 if test $# != 0; then
4199 # We chose a different compiler from the bogus one.
4200 # However, it has the same basename, so the bogon will be chosen
4201 # first if we set CC to just the basename; use the full file name.
4202 shift
4203 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4204 fi
4205fi
4206fi
4207fi
4208CC=$ac_cv_prog_CC
4209if test -n "$CC"; then
81ecdfbb
RW
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4211$as_echo "$CC" >&6; }
ce2cded5 4212else
81ecdfbb
RW
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214$as_echo "no" >&6; }
ce2cded5
L
4215fi
4216
81ecdfbb 4217
ce2cded5
L
4218fi
4219if test -z "$CC"; then
4220 if test -n "$ac_tool_prefix"; then
81ecdfbb 4221 for ac_prog in cl.exe
ce2cded5
L
4222 do
4223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4224set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226$as_echo_n "checking for $ac_word... " >&6; }
4227if test "${ac_cv_prog_CC+set}" = set; then :
4228 $as_echo_n "(cached) " >&6
ce2cded5
L
4229else
4230 if test -n "$CC"; then
4231 ac_cv_prog_CC="$CC" # Let the user override the test.
4232else
4233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234for as_dir in $PATH
4235do
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4240 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4242 break 2
4243 fi
4244done
81ecdfbb
RW
4245 done
4246IFS=$as_save_IFS
ce2cded5
L
4247
4248fi
4249fi
4250CC=$ac_cv_prog_CC
4251if test -n "$CC"; then
81ecdfbb
RW
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4253$as_echo "$CC" >&6; }
ce2cded5 4254else
81ecdfbb
RW
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256$as_echo "no" >&6; }
ce2cded5
L
4257fi
4258
81ecdfbb 4259
ce2cded5 4260 test -n "$CC" && break
d7040cdb
SE
4261 done
4262fi
ce2cded5
L
4263if test -z "$CC"; then
4264 ac_ct_CC=$CC
81ecdfbb 4265 for ac_prog in cl.exe
d7040cdb
SE
4266do
4267 # Extract the first word of "$ac_prog", so it can be a program name with args.
4268set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270$as_echo_n "checking for $ac_word... " >&6; }
4271if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4272 $as_echo_n "(cached) " >&6
d7040cdb 4273else
ce2cded5
L
4274 if test -n "$ac_ct_CC"; then
4275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
4276else
4277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH
4279do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4284 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 4286 break 2
ac48eca1 4287 fi
d7040cdb 4288done
81ecdfbb
RW
4289 done
4290IFS=$as_save_IFS
ac48eca1 4291
d7040cdb
SE
4292fi
4293fi
ce2cded5
L
4294ac_ct_CC=$ac_cv_prog_ac_ct_CC
4295if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4297$as_echo "$ac_ct_CC" >&6; }
d7040cdb 4298else
81ecdfbb
RW
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300$as_echo "no" >&6; }
d7040cdb 4301fi
ac48eca1 4302
81ecdfbb 4303
ce2cded5 4304 test -n "$ac_ct_CC" && break
d7040cdb 4305done
ac48eca1 4306
81ecdfbb
RW
4307 if test "x$ac_ct_CC" = x; then
4308 CC=""
4309 else
4310 case $cross_compiling:$ac_tool_warned in
4311yes:)
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4314ac_tool_warned=yes ;;
4315esac
4316 CC=$ac_ct_CC
4317 fi
d7040cdb 4318fi
ac48eca1 4319
d7040cdb 4320fi
ac48eca1 4321
ac48eca1 4322
81ecdfbb
RW
4323test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4325as_fn_error "no acceptable C compiler found in \$PATH
4326See \`config.log' for more details." "$LINENO" 5; }
6be7c12c 4327
ce2cded5 4328# Provide some information about the compiler.
81ecdfbb
RW
4329$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4330set X $ac_compile
4331ac_compiler=$2
4332for ac_option in --version -v -V -qversion; do
4333 { { ac_try="$ac_compiler $ac_option >&5"
4334case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4337esac
4338eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4339$as_echo "$ac_try_echo"; } >&5
4340 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4341 ac_status=$?
81ecdfbb
RW
4342 if test -s conftest.err; then
4343 sed '10a\
4344... rest of stderr output deleted ...
4345 10q' conftest.err >conftest.er1
4346 cat conftest.er1 >&5
4347 rm -f conftest.er1 conftest.err
4348 fi
4349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4350 test $ac_status = 0; }
4351done
ac48eca1 4352
81ecdfbb
RW
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4354$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4355if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4356 $as_echo_n "(cached) " >&6
d7040cdb 4357else
81ecdfbb 4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4359/* end confdefs.h. */
c8615825 4360
ce2cded5
L
4361int
4362main ()
4363{
4364#ifndef __GNUC__
4365 choke me
4366#endif
4367
4368 ;
4369 return 0;
4370}
4371_ACEOF
81ecdfbb 4372if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 4373 ac_compiler_gnu=yes
d7040cdb 4374else
81ecdfbb 4375 ac_compiler_gnu=no
d7040cdb 4376fi
81ecdfbb 4377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4378ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4379
ce2cded5 4380fi
81ecdfbb
RW
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4382$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4383if test $ac_compiler_gnu = yes; then
4384 GCC=yes
4385else
4386 GCC=
4387fi
ce2cded5
L
4388ac_test_CFLAGS=${CFLAGS+set}
4389ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4391$as_echo_n "checking whether $CC accepts -g... " >&6; }
4392if test "${ac_cv_prog_cc_g+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4394else
4395 ac_save_c_werror_flag=$ac_c_werror_flag
4396 ac_c_werror_flag=yes
4397 ac_cv_prog_cc_g=no
4398 CFLAGS="-g"
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4400/* end confdefs.h. */
d7040cdb 4401
ce2cded5
L
4402int
4403main ()
4404{
d7040cdb 4405
ce2cded5
L
4406 ;
4407 return 0;
4408}
4409_ACEOF
81ecdfbb 4410if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
4411 ac_cv_prog_cc_g=yes
4412else
81ecdfbb
RW
4413 CFLAGS=""
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415/* end confdefs.h. */
4416
4417int
4418main ()
4419{
4420
4421 ;
4422 return 0;
4423}
4424_ACEOF
4425if ac_fn_c_try_compile "$LINENO"; then :
4426
4427else
4428 ac_c_werror_flag=$ac_save_c_werror_flag
4429 CFLAGS="-g"
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431/* end confdefs.h. */
d70c5fc7 4432
81ecdfbb
RW
4433int
4434main ()
4435{
4436
4437 ;
4438 return 0;
4439}
4440_ACEOF
4441if ac_fn_c_try_compile "$LINENO"; then :
4442 ac_cv_prog_cc_g=yes
4443fi
4444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 4445fi
81ecdfbb 4446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 4447fi
81ecdfbb
RW
4448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449 ac_c_werror_flag=$ac_save_c_werror_flag
4450fi
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4452$as_echo "$ac_cv_prog_cc_g" >&6; }
ce2cded5
L
4453if test "$ac_test_CFLAGS" = set; then
4454 CFLAGS=$ac_save_CFLAGS
4455elif test $ac_cv_prog_cc_g = yes; then
4456 if test "$GCC" = yes; then
4457 CFLAGS="-g -O2"
4458 else
4459 CFLAGS="-g"
4460 fi
ac48eca1 4461else
ce2cded5
L
4462 if test "$GCC" = yes; then
4463 CFLAGS="-O2"
4464 else
4465 CFLAGS=
4466 fi
ac48eca1 4467fi
81ecdfbb
RW
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4469$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4470if test "${ac_cv_prog_cc_c89+set}" = set; then :
4471 $as_echo_n "(cached) " >&6
ac48eca1 4472else
81ecdfbb 4473 ac_cv_prog_cc_c89=no
ce2cded5 4474ac_save_CC=$CC
81ecdfbb 4475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
4476/* end confdefs.h. */
4477#include <stdarg.h>
4478#include <stdio.h>
4479#include <sys/types.h>
4480#include <sys/stat.h>
4481/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4482struct buf { int x; };
4483FILE * (*rcsopen) (struct buf *, struct stat *, int);
4484static char *e (p, i)
4485 char **p;
4486 int i;
4487{
4488 return p[i];
4489}
4490static char *f (char * (*g) (char **, int), char **p, ...)
4491{
4492 char *s;
4493 va_list v;
4494 va_start (v,p);
4495 s = g (p, va_arg (v,int));
4496 va_end (v);
4497 return s;
4498}
4499
4500/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4501 function prototypes and stuff, but not '\xHH' hex character constants.
4502 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4503 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
4504 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4505 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4506 that's true only with -std. */
ce2cded5
L
4507int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4508
81ecdfbb
RW
4509/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4510 inside strings and character constants. */
4511#define FOO(x) 'x'
4512int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4513
ce2cded5
L
4514int test (int i, double x);
4515struct s1 {int (*f) (int a);};
4516struct s2 {int (*f) (double a);};
4517int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4518int argc;
4519char **argv;
4520int
4521main ()
4522{
4523return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4524 ;
4525 return 0;
4526}
4527_ACEOF
81ecdfbb
RW
4528for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4529 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
4530do
4531 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4532 if ac_fn_c_try_compile "$LINENO"; then :
4533 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 4534fi
81ecdfbb
RW
4535rm -f core conftest.err conftest.$ac_objext
4536 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 4537done
81ecdfbb 4538rm -f conftest.$ac_ext
ce2cded5
L
4539CC=$ac_save_CC
4540
4541fi
81ecdfbb
RW
4542# AC_CACHE_VAL
4543case "x$ac_cv_prog_cc_c89" in
4544 x)
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4546$as_echo "none needed" >&6; } ;;
4547 xno)
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4549$as_echo "unsupported" >&6; } ;;
ce2cded5 4550 *)
81ecdfbb
RW
4551 CC="$CC $ac_cv_prog_cc_c89"
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4553$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d7040cdb 4554esac
81ecdfbb 4555if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 4556
ce2cded5 4557fi
d7040cdb 4558
ce2cded5
L
4559ac_ext=c
4560ac_cpp='$CPP $CPPFLAGS'
4561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4563ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4564
7357c5b6
AM
4565ac_ext=c
4566ac_cpp='$CPP $CPPFLAGS'
4567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4569ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4571$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4572# On Suns, sometimes $CPP names a directory.
4573if test -n "$CPP" && test -d "$CPP"; then
4574 CPP=
4575fi
4576if test -z "$CPP"; then
81ecdfbb
RW
4577 if test "${ac_cv_prog_CPP+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
7357c5b6
AM
4579else
4580 # Double quotes because CPP needs to be expanded
4581 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4582 do
4583 ac_preproc_ok=false
4584for ac_c_preproc_warn_flag in '' yes
4585do
4586 # Use a header file that comes with gcc, so configuring glibc
4587 # with a fresh cross-compiler works.
4588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4589 # <limits.h> exists even on freestanding compilers.
4590 # On the NeXT, cc -E runs the code through the compiler's parser,
4591 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4593/* end confdefs.h. */
4594#ifdef __STDC__
4595# include <limits.h>
4596#else
4597# include <assert.h>
4598#endif
4599 Syntax error
4600_ACEOF
81ecdfbb 4601if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4602
81ecdfbb 4603else
7357c5b6
AM
4604 # Broken: fails on valid input.
4605continue
4606fi
4607rm -f conftest.err conftest.$ac_ext
d7040cdb 4608
81ecdfbb 4609 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4610 # can be detected and how.
81ecdfbb 4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4612/* end confdefs.h. */
4613#include <ac_nonexistent.h>
4614_ACEOF
81ecdfbb 4615if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4616 # Broken: success on invalid input.
4617continue
4618else
7357c5b6
AM
4619 # Passes both tests.
4620ac_preproc_ok=:
4621break
4622fi
4623rm -f conftest.err conftest.$ac_ext
d7040cdb 4624
7357c5b6
AM
4625done
4626# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4627rm -f conftest.err conftest.$ac_ext
81ecdfbb 4628if $ac_preproc_ok; then :
7357c5b6
AM
4629 break
4630fi
d7040cdb 4631
7357c5b6
AM
4632 done
4633 ac_cv_prog_CPP=$CPP
d7040cdb 4634
7357c5b6
AM
4635fi
4636 CPP=$ac_cv_prog_CPP
4637else
4638 ac_cv_prog_CPP=$CPP
4639fi
81ecdfbb
RW
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4641$as_echo "$CPP" >&6; }
7357c5b6
AM
4642ac_preproc_ok=false
4643for ac_c_preproc_warn_flag in '' yes
4644do
4645 # Use a header file that comes with gcc, so configuring glibc
4646 # with a fresh cross-compiler works.
4647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4648 # <limits.h> exists even on freestanding compilers.
4649 # On the NeXT, cc -E runs the code through the compiler's parser,
4650 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4652/* end confdefs.h. */
4653#ifdef __STDC__
4654# include <limits.h>
4655#else
4656# include <assert.h>
4657#endif
4658 Syntax error
4659_ACEOF
81ecdfbb 4660if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4661
81ecdfbb 4662else
7357c5b6
AM
4663 # Broken: fails on valid input.
4664continue
4665fi
4666rm -f conftest.err conftest.$ac_ext
d7040cdb 4667
81ecdfbb 4668 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4669 # can be detected and how.
81ecdfbb 4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4671/* end confdefs.h. */
4672#include <ac_nonexistent.h>
4673_ACEOF
81ecdfbb 4674if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4675 # Broken: success on invalid input.
4676continue
4677else
7357c5b6
AM
4678 # Passes both tests.
4679ac_preproc_ok=:
4680break
4681fi
4682rm -f conftest.err conftest.$ac_ext
d7040cdb 4683
7357c5b6
AM
4684done
4685# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4686rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
4687if $ac_preproc_ok; then :
4688
7357c5b6 4689else
81ecdfbb
RW
4690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4692as_fn_error "C preprocessor \"$CPP\" fails sanity check
4693See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 4694fi
ac48eca1 4695
7357c5b6
AM
4696ac_ext=c
4697ac_cpp='$CPP $CPPFLAGS'
4698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4700ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4701
ac48eca1 4702
81ecdfbb
RW
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4704$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4705if test "${ac_cv_path_GREP+set}" = set; then :
4706 $as_echo_n "(cached) " >&6
7357c5b6 4707else
81ecdfbb
RW
4708 if test -z "$GREP"; then
4709 ac_path_GREP_found=false
4710 # Loop through the user's path and test for each of PROGNAME-LIST
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4713do
4714 IFS=$as_save_IFS
4715 test -z "$as_dir" && as_dir=.
4716 for ac_prog in grep ggrep; do
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4719 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4720# Check for GNU ac_path_GREP and select it if it is found.
4721 # Check for GNU $ac_path_GREP
4722case `"$ac_path_GREP" --version 2>&1` in
4723*GNU*)
4724 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4725*)
4726 ac_count=0
4727 $as_echo_n 0123456789 >"conftest.in"
4728 while :
4729 do
4730 cat "conftest.in" "conftest.in" >"conftest.tmp"
4731 mv "conftest.tmp" "conftest.in"
4732 cp "conftest.in" "conftest.nl"
4733 $as_echo 'GREP' >> "conftest.nl"
4734 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4736 as_fn_arith $ac_count + 1 && ac_count=$as_val
4737 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4738 # Best one so far, save it but keep looking for a better one
4739 ac_cv_path_GREP="$ac_path_GREP"
4740 ac_path_GREP_max=$ac_count
7357c5b6 4741 fi
81ecdfbb
RW
4742 # 10*(2^10) chars as input seems more than enough
4743 test $ac_count -gt 10 && break
4744 done
4745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4746esac
4747
4748 $ac_path_GREP_found && break 3
4749 done
4750 done
4751 done
4752IFS=$as_save_IFS
4753 if test -z "$ac_cv_path_GREP"; then
4754 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4755 fi
4756else
4757 ac_cv_path_GREP=$GREP
7357c5b6 4758fi
81ecdfbb
RW
4759
4760fi
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4762$as_echo "$ac_cv_path_GREP" >&6; }
4763 GREP="$ac_cv_path_GREP"
ac48eca1 4764
d7040cdb 4765
81ecdfbb
RW
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4767$as_echo_n "checking for egrep... " >&6; }
4768if test "${ac_cv_path_EGREP+set}" = set; then :
4769 $as_echo_n "(cached) " >&6
7357c5b6 4770else
81ecdfbb
RW
4771 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4772 then ac_cv_path_EGREP="$GREP -E"
4773 else
4774 if test -z "$EGREP"; then
4775 ac_path_EGREP_found=false
4776 # Loop through the user's path and test for each of PROGNAME-LIST
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4779do
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_prog in egrep; do
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4785 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4786# Check for GNU ac_path_EGREP and select it if it is found.
4787 # Check for GNU $ac_path_EGREP
4788case `"$ac_path_EGREP" --version 2>&1` in
4789*GNU*)
4790 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4791*)
4792 ac_count=0
4793 $as_echo_n 0123456789 >"conftest.in"
4794 while :
4795 do
4796 cat "conftest.in" "conftest.in" >"conftest.tmp"
4797 mv "conftest.tmp" "conftest.in"
4798 cp "conftest.in" "conftest.nl"
4799 $as_echo 'EGREP' >> "conftest.nl"
4800 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4801 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4802 as_fn_arith $ac_count + 1 && ac_count=$as_val
4803 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4804 # Best one so far, save it but keep looking for a better one
4805 ac_cv_path_EGREP="$ac_path_EGREP"
4806 ac_path_EGREP_max=$ac_count
4807 fi
4808 # 10*(2^10) chars as input seems more than enough
4809 test $ac_count -gt 10 && break
4810 done
4811 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4812esac
4813
4814 $ac_path_EGREP_found && break 3
4815 done
4816 done
4817 done
4818IFS=$as_save_IFS
4819 if test -z "$ac_cv_path_EGREP"; then
4820 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4821 fi
4822else
4823 ac_cv_path_EGREP=$EGREP
4824fi
4825
4826 fi
4827fi
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4829$as_echo "$ac_cv_path_EGREP" >&6; }
4830 EGREP="$ac_cv_path_EGREP"
4831
4832
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4834$as_echo_n "checking for ANSI C header files... " >&6; }
4835if test "${ac_cv_header_stdc+set}" = set; then :
4836 $as_echo_n "(cached) " >&6
4837else
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4839/* end confdefs.h. */
4840#include <stdlib.h>
4841#include <stdarg.h>
4842#include <string.h>
4843#include <float.h>
d7040cdb 4844
7357c5b6
AM
4845int
4846main ()
4847{
d7040cdb 4848
7357c5b6
AM
4849 ;
4850 return 0;
4851}
4852_ACEOF
81ecdfbb 4853if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4854 ac_cv_header_stdc=yes
4855else
81ecdfbb 4856 ac_cv_header_stdc=no
7357c5b6 4857fi
81ecdfbb 4858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4859
7357c5b6
AM
4860if test $ac_cv_header_stdc = yes; then
4861 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4863/* end confdefs.h. */
4864#include <string.h>
d7040cdb 4865
7357c5b6
AM
4866_ACEOF
4867if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4868 $EGREP "memchr" >/dev/null 2>&1; then :
4869
ce2cded5 4870else
7357c5b6
AM
4871 ac_cv_header_stdc=no
4872fi
4873rm -f conftest*
d7040cdb 4874
7357c5b6 4875fi
d7040cdb 4876
7357c5b6
AM
4877if test $ac_cv_header_stdc = yes; then
4878 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4880/* end confdefs.h. */
4881#include <stdlib.h>
ac48eca1 4882
7357c5b6
AM
4883_ACEOF
4884if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4885 $EGREP "free" >/dev/null 2>&1; then :
4886
7357c5b6
AM
4887else
4888 ac_cv_header_stdc=no
4889fi
4890rm -f conftest*
d7040cdb 4891
7357c5b6 4892fi
d7040cdb 4893
7357c5b6
AM
4894if test $ac_cv_header_stdc = yes; then
4895 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4896 if test "$cross_compiling" = yes; then :
7357c5b6
AM
4897 :
4898else
81ecdfbb 4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4900/* end confdefs.h. */
4901#include <ctype.h>
81ecdfbb 4902#include <stdlib.h>
7357c5b6
AM
4903#if ((' ' & 0x0FF) == 0x020)
4904# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4905# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4906#else
4907# define ISLOWER(c) \
4908 (('a' <= (c) && (c) <= 'i') \
4909 || ('j' <= (c) && (c) <= 'r') \
4910 || ('s' <= (c) && (c) <= 'z'))
4911# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4912#endif
d7040cdb 4913
7357c5b6
AM
4914#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4915int
4916main ()
4917{
4918 int i;
4919 for (i = 0; i < 256; i++)
4920 if (XOR (islower (i), ISLOWER (i))
4921 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4922 return 2;
4923 return 0;
7357c5b6
AM
4924}
4925_ACEOF
81ecdfbb 4926if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 4927
81ecdfbb
RW
4928else
4929 ac_cv_header_stdc=no
7357c5b6 4930fi
81ecdfbb
RW
4931rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4932 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4933fi
81ecdfbb 4934
7357c5b6
AM
4935fi
4936fi
81ecdfbb
RW
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4938$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4939if test $ac_cv_header_stdc = yes; then
d7040cdb 4940
81ecdfbb 4941$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4942
7357c5b6 4943fi
d7040cdb 4944
7357c5b6 4945# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
4946for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4947 inttypes.h stdint.h unistd.h
81ecdfbb
RW
4948do :
4949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4950ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4951"
4952eval as_val=\$$as_ac_Header
4953 if test "x$as_val" = x""yes; then :
7357c5b6 4954 cat >>confdefs.h <<_ACEOF
81ecdfbb 4955#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 4956_ACEOF
ce2cded5 4957
7357c5b6 4958fi
ce2cded5 4959
7357c5b6 4960done
ce2cded5
L
4961
4962
4963
81ecdfbb
RW
4964 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4965if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
4966 MINIX=yes
4967else
4968 MINIX=
4969fi
d7040cdb
SE
4970
4971
7357c5b6 4972 if test "$MINIX" = yes; then
d7040cdb 4973
81ecdfbb 4974$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb
SE
4975
4976
81ecdfbb 4977$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
4978
4979
81ecdfbb 4980$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4981
7357c5b6 4982 fi
d7040cdb
SE
4983
4984
81ecdfbb
RW
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4986$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4987if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4988 $as_echo_n "(cached) " >&6
ac48eca1 4989else
81ecdfbb 4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4991/* end confdefs.h. */
ac48eca1 4992
7357c5b6
AM
4993# define __EXTENSIONS__ 1
4994 $ac_includes_default
4995int
4996main ()
4997{
13b2be9c 4998
7357c5b6
AM
4999 ;
5000 return 0;
5001}
5002_ACEOF
81ecdfbb 5003if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 5004 ac_cv_safe_to_define___extensions__=yes
d6d788bd 5005else
81ecdfbb 5006 ac_cv_safe_to_define___extensions__=no
d6d788bd 5007fi
81ecdfbb 5008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 5009fi
81ecdfbb
RW
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5011$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 5012 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 5013 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d6d788bd 5014
81ecdfbb 5015 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d6d788bd 5016
81ecdfbb 5017 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
252b5132 5018
81ecdfbb 5019 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
252b5132 5020
81ecdfbb 5021 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d6d788bd 5022
a74801ba 5023
d053aef8 5024
81ecdfbb 5025
da2f07f1
JK
5026
5027# As the $enable_largefile decision depends on --enable-plugins we must set it
5028# even in directories otherwise not depending on the $plugins option.
5029
5030
5031# Check whether --enable-plugins was given.
5032if test "${enable_plugins+set}" = set; then :
5033 enableval=$enable_plugins; case "${enableval}" in
5034 yes | "") plugins=yes ;;
5035 no) plugins=no ;;
5036 *) plugins=yes ;;
5037 esac
5038else
5039 plugins=no
5040fi
5041
5042
5043
5044case "${host}" in
5045 sparc-*-solaris*|i[3-7]86-*-solaris*)
5046 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5047 # are mutually exclusive; and without procfs support, the bfd/ elf module
5048 # cannot provide certain routines such as elfcore_write_prpsinfo
5049 # or elfcore_write_prstatus. So unless the user explicitly requested
5050 # large-file support through the --enable-largefile switch, disable
5051 # large-file support in favor of procfs support.
5052 test "${target}" = "${host}" -a "x$plugins" = xno \
5053 && : ${enable_largefile="no"}
5054 ;;
5055esac
5056
81ecdfbb
RW
5057# Check whether --enable-largefile was given.
5058if test "${enable_largefile+set}" = set; then :
5059 enableval=$enable_largefile;
5060fi
5061
d053aef8
JK
5062if test "$enable_largefile" != no; then
5063
81ecdfbb
RW
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5065$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5066if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5067 $as_echo_n "(cached) " >&6
d053aef8
JK
5068else
5069 ac_cv_sys_largefile_CC=no
5070 if test "$GCC" != yes; then
5071 ac_save_CC=$CC
5072 while :; do
81ecdfbb
RW
5073 # IRIX 6.2 and later do not support large files by default,
5074 # so use the C compiler's -n32 option if that helps.
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5076/* end confdefs.h. */
5077#include <sys/types.h>
5078 /* Check that off_t can represent 2**63 - 1 correctly.
5079 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5080 since some C++ compilers masquerading as C compilers
5081 incorrectly reject 9223372036854775807. */
5082#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5083 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5084 && LARGE_OFF_T % 2147483647 == 1)
5085 ? 1 : -1];
5086int
5087main ()
5088{
5089
5090 ;
5091 return 0;
5092}
5093_ACEOF
81ecdfbb 5094 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5095 break
d053aef8 5096fi
81ecdfbb
RW
5097rm -f core conftest.err conftest.$ac_objext
5098 CC="$CC -n32"
5099 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5100 ac_cv_sys_largefile_CC=' -n32'; break
d053aef8 5101fi
81ecdfbb 5102rm -f core conftest.err conftest.$ac_objext
d053aef8
JK
5103 break
5104 done
5105 CC=$ac_save_CC
5106 rm -f conftest.$ac_ext
5107 fi
5108fi
81ecdfbb
RW
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5110$as_echo "$ac_cv_sys_largefile_CC" >&6; }
d053aef8
JK
5111 if test "$ac_cv_sys_largefile_CC" != no; then
5112 CC=$CC$ac_cv_sys_largefile_CC
5113 fi
5114
81ecdfbb
RW
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5116$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5117if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
d053aef8
JK
5119else
5120 while :; do
81ecdfbb 5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5122/* end confdefs.h. */
5123#include <sys/types.h>
5124 /* Check that off_t can represent 2**63 - 1 correctly.
5125 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5126 since some C++ compilers masquerading as C compilers
5127 incorrectly reject 9223372036854775807. */
5128#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5129 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5130 && LARGE_OFF_T % 2147483647 == 1)
5131 ? 1 : -1];
5132int
5133main ()
5134{
5135
5136 ;
5137 return 0;
5138}
5139_ACEOF
81ecdfbb
RW
5140if ac_fn_c_try_compile "$LINENO"; then :
5141 ac_cv_sys_file_offset_bits=no; break
d053aef8 5142fi
81ecdfbb
RW
5143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5145/* end confdefs.h. */
5146#define _FILE_OFFSET_BITS 64
5147#include <sys/types.h>
5148 /* Check that off_t can represent 2**63 - 1 correctly.
5149 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5150 since some C++ compilers masquerading as C compilers
5151 incorrectly reject 9223372036854775807. */
5152#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5153 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5154 && LARGE_OFF_T % 2147483647 == 1)
5155 ? 1 : -1];
5156int
5157main ()
5158{
5159
5160 ;
5161 return 0;
5162}
5163_ACEOF
81ecdfbb 5164if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5165 ac_cv_sys_file_offset_bits=64; break
d053aef8 5166fi
81ecdfbb
RW
5167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168 ac_cv_sys_file_offset_bits=unknown
d053aef8
JK
5169 break
5170done
5171fi
81ecdfbb
RW
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5173$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5174case $ac_cv_sys_file_offset_bits in #(
5175 no | unknown) ;;
5176 *)
d053aef8
JK
5177cat >>confdefs.h <<_ACEOF
5178#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5179_ACEOF
81ecdfbb
RW
5180;;
5181esac
5182rm -rf conftest*
5183 if test $ac_cv_sys_file_offset_bits = unknown; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5185$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5186if test "${ac_cv_sys_large_files+set}" = set; then :
5187 $as_echo_n "(cached) " >&6
d053aef8
JK
5188else
5189 while :; do
81ecdfbb 5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5191/* end confdefs.h. */
5192#include <sys/types.h>
5193 /* Check that off_t can represent 2**63 - 1 correctly.
5194 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5195 since some C++ compilers masquerading as C compilers
5196 incorrectly reject 9223372036854775807. */
5197#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5198 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5199 && LARGE_OFF_T % 2147483647 == 1)
5200 ? 1 : -1];
5201int
5202main ()
5203{
5204
5205 ;
5206 return 0;
5207}
5208_ACEOF
81ecdfbb
RW
5209if ac_fn_c_try_compile "$LINENO"; then :
5210 ac_cv_sys_large_files=no; break
d053aef8 5211fi
81ecdfbb
RW
5212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5214/* end confdefs.h. */
5215#define _LARGE_FILES 1
5216#include <sys/types.h>
5217 /* Check that off_t can represent 2**63 - 1 correctly.
5218 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5219 since some C++ compilers masquerading as C compilers
5220 incorrectly reject 9223372036854775807. */
5221#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5222 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5223 && LARGE_OFF_T % 2147483647 == 1)
5224 ? 1 : -1];
5225int
5226main ()
5227{
5228
5229 ;
5230 return 0;
5231}
5232_ACEOF
81ecdfbb 5233if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5234 ac_cv_sys_large_files=1; break
d053aef8 5235fi
81ecdfbb
RW
5236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5237 ac_cv_sys_large_files=unknown
d053aef8
JK
5238 break
5239done
5240fi
81ecdfbb
RW
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5242$as_echo "$ac_cv_sys_large_files" >&6; }
5243case $ac_cv_sys_large_files in #(
5244 no | unknown) ;;
5245 *)
d053aef8
JK
5246cat >>confdefs.h <<_ACEOF
5247#define _LARGE_FILES $ac_cv_sys_large_files
5248_ACEOF
81ecdfbb
RW
5249;;
5250esac
5251rm -rf conftest*
5252 fi
d053aef8
JK
5253fi
5254
a74801ba 5255
da2f07f1 5256
718a6fd8
SE
5257case `pwd` in
5258 *\ * | *\ *)
81ecdfbb
RW
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5260$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 5261esac
13b2be9c 5262
252b5132 5263
7357c5b6 5264
718a6fd8
SE
5265macro_version='2.2.6'
5266macro_revision='1.3012'
7357c5b6
AM
5267
5268
5269
5270
5271
5272
7357c5b6
AM
5273
5274
5275
5276
5277
5278
5279
718a6fd8 5280ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 5281
81ecdfbb
RW
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5283$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5284if test "${ac_cv_path_SED+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5286else
5287 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5288 for ac_i in 1 2 3 4 5 6 7; do
5289 ac_script="$ac_script$as_nl$ac_script"
5290 done
5291 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5292 { ac_script=; unset ac_script;}
5293 if test -z "$SED"; then
5294 ac_path_SED_found=false
5295 # Loop through the user's path and test for each of PROGNAME-LIST
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5297for as_dir in $PATH
5298do
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
81ecdfbb 5301 for ac_prog in sed gsed; do
7357c5b6 5302 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5303 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5304 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5305# Check for GNU ac_path_SED and select it if it is found.
5306 # Check for GNU $ac_path_SED
5307case `"$ac_path_SED" --version 2>&1` in
5308*GNU*)
5309 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5310*)
5311 ac_count=0
5312 $as_echo_n 0123456789 >"conftest.in"
5313 while :
5314 do
5315 cat "conftest.in" "conftest.in" >"conftest.tmp"
5316 mv "conftest.tmp" "conftest.in"
5317 cp "conftest.in" "conftest.nl"
5318 $as_echo '' >> "conftest.nl"
5319 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5320 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5321 as_fn_arith $ac_count + 1 && ac_count=$as_val
5322 if test $ac_count -gt ${ac_path_SED_max-0}; then
5323 # Best one so far, save it but keep looking for a better one
5324 ac_cv_path_SED="$ac_path_SED"
5325 ac_path_SED_max=$ac_count
5326 fi
5327 # 10*(2^10) chars as input seems more than enough
5328 test $ac_count -gt 10 && break
5329 done
5330 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5331esac
5332
5333 $ac_path_SED_found && break 3
7357c5b6
AM
5334 done
5335 done
81ecdfbb 5336 done
7357c5b6 5337IFS=$as_save_IFS
81ecdfbb
RW
5338 if test -z "$ac_cv_path_SED"; then
5339 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5340 fi
81ecdfbb
RW
5341else
5342 ac_cv_path_SED=$SED
7357c5b6
AM
5343fi
5344
81ecdfbb
RW
5345fi
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5347$as_echo "$ac_cv_path_SED" >&6; }
5348 SED="$ac_cv_path_SED"
5349 rm -f conftest.sed
7357c5b6
AM
5350
5351test -z "$SED" && SED=sed
5352Xsed="$SED -e 1s/^X//"
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
81ecdfbb
RW
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5365$as_echo_n "checking for fgrep... " >&6; }
5366if test "${ac_cv_path_FGREP+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
7357c5b6 5368else
81ecdfbb
RW
5369 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5370 then ac_cv_path_FGREP="$GREP -F"
5371 else
5372 if test -z "$FGREP"; then
5373 ac_path_FGREP_found=false
5374 # Loop through the user's path and test for each of PROGNAME-LIST
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5377do
5378 IFS=$as_save_IFS
5379 test -z "$as_dir" && as_dir=.
5380 for ac_prog in fgrep; do
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5383 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5384# Check for GNU ac_path_FGREP and select it if it is found.
5385 # Check for GNU $ac_path_FGREP
5386case `"$ac_path_FGREP" --version 2>&1` in
5387*GNU*)
5388 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5389*)
5390 ac_count=0
5391 $as_echo_n 0123456789 >"conftest.in"
5392 while :
5393 do
5394 cat "conftest.in" "conftest.in" >"conftest.tmp"
5395 mv "conftest.tmp" "conftest.in"
5396 cp "conftest.in" "conftest.nl"
5397 $as_echo 'FGREP' >> "conftest.nl"
5398 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5399 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5400 as_fn_arith $ac_count + 1 && ac_count=$as_val
5401 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5402 # Best one so far, save it but keep looking for a better one
5403 ac_cv_path_FGREP="$ac_path_FGREP"
5404 ac_path_FGREP_max=$ac_count
7357c5b6 5405 fi
81ecdfbb
RW
5406 # 10*(2^10) chars as input seems more than enough
5407 test $ac_count -gt 10 && break
5408 done
5409 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5410esac
5411
5412 $ac_path_FGREP_found && break 3
5413 done
5414 done
5415 done
5416IFS=$as_save_IFS
5417 if test -z "$ac_cv_path_FGREP"; then
5418 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5419 fi
5420else
5421 ac_cv_path_FGREP=$FGREP
7357c5b6 5422fi
81ecdfbb
RW
5423
5424 fi
5425fi
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5427$as_echo "$ac_cv_path_FGREP" >&6; }
5428 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5429
5430
5431test -z "$GREP" && GREP=grep
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
81ecdfbb
RW
5451# Check whether --with-gnu-ld was given.
5452if test "${with_gnu_ld+set}" = set; then :
5453 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5454else
5455 with_gnu_ld=no
81ecdfbb
RW
5456fi
5457
ce2cded5
L
5458ac_prog=ld
5459if test "$GCC" = yes; then
5460 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5462$as_echo_n "checking for ld used by $CC... " >&6; }
ce2cded5
L
5463 case $host in
5464 *-*-mingw*)
5465 # gcc leaves a trailing carriage return which upsets mingw
5466 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5467 *)
5468 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5469 esac
5470 case $ac_prog in
5471 # Accept absolute paths.
5472 [\\/]* | ?:[\\/]*)
5473 re_direlt='/[^/][^/]*/\.\./'
5474 # Canonicalize the pathname of ld
5475 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5476 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5477 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5478 done
5479 test -z "$LD" && LD="$ac_prog"
5480 ;;
5481 "")
5482 # If it fails, then pretend we aren't using GCC.
5483 ac_prog=ld
5484 ;;
5485 *)
5486 # If it is relative, then search for the first ld in PATH.
5487 with_gnu_ld=unknown
5488 ;;
5489 esac
5490elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5492$as_echo_n "checking for GNU ld... " >&6; }
ce2cded5 5493else
81ecdfbb
RW
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5495$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5496fi
81ecdfbb
RW
5497if test "${lt_cv_path_LD+set}" = set; then :
5498 $as_echo_n "(cached) " >&6
ce2cded5
L
5499else
5500 if test -z "$LD"; then
5501 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5502 for ac_dir in $PATH; do
5503 IFS="$lt_save_ifs"
5504 test -z "$ac_dir" && ac_dir=.
5505 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5506 lt_cv_path_LD="$ac_dir/$ac_prog"
5507 # Check to see if the program is GNU ld. I'd rather use --version,
5508 # but apparently some variants of GNU ld only accept -v.
5509 # Break only if it was the GNU/non-GNU ld that we prefer.
5510 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5511 *GNU* | *'with BFD'*)
5512 test "$with_gnu_ld" != no && break
5513 ;;
5514 *)
5515 test "$with_gnu_ld" != yes && break
5516 ;;
5517 esac
5518 fi
5519 done
5520 IFS="$lt_save_ifs"
5521else
5522 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5523fi
5524fi
5525
5526LD="$lt_cv_path_LD"
5527if test -n "$LD"; then
81ecdfbb
RW
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5529$as_echo "$LD" >&6; }
ce2cded5 5530else
81ecdfbb
RW
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532$as_echo "no" >&6; }
ce2cded5 5533fi
81ecdfbb
RW
5534test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5536$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5537if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5538 $as_echo_n "(cached) " >&6
ce2cded5
L
5539else
5540 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5541case `$LD -v 2>&1 </dev/null` in
5542*GNU* | *'with BFD'*)
5543 lt_cv_prog_gnu_ld=yes
5544 ;;
5545*)
5546 lt_cv_prog_gnu_ld=no
5547 ;;
5548esac
5549fi
81ecdfbb
RW
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5551$as_echo "$lt_cv_prog_gnu_ld" >&6; }
ce2cded5
L
5552with_gnu_ld=$lt_cv_prog_gnu_ld
5553
5554
5555
5556
5557
5558
5559
5560
5561
81ecdfbb
RW
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5563$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5564if test "${lt_cv_path_NM+set}" = set; then :
5565 $as_echo_n "(cached) " >&6
ce2cded5
L
5566else
5567 if test -n "$NM"; then
5568 # Let the user override the test.
5569 lt_cv_path_NM="$NM"
5570else
5571 lt_nm_to_check="${ac_tool_prefix}nm"
5572 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5573 lt_nm_to_check="$lt_nm_to_check nm"
5574 fi
5575 for lt_tmp_nm in $lt_nm_to_check; do
5576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5577 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5578 IFS="$lt_save_ifs"
5579 test -z "$ac_dir" && ac_dir=.
5580 tmp_nm="$ac_dir/$lt_tmp_nm"
5581 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5582 # Check to see if the nm accepts a BSD-compat flag.
5583 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5584 # nm: unknown option "B" ignored
5585 # Tru64's nm complains that /dev/null is an invalid object file
5586 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5587 */dev/null* | *'Invalid file or object type'*)
5588 lt_cv_path_NM="$tmp_nm -B"
5589 break
5590 ;;
5591 *)
5592 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5593 */dev/null*)
5594 lt_cv_path_NM="$tmp_nm -p"
5595 break
5596 ;;
5597 *)
5598 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5599 continue # so that we can try to find one that supports BSD flags
5600 ;;
5601 esac
5602 ;;
5603 esac
5604 fi
5605 done
5606 IFS="$lt_save_ifs"
5607 done
5608 : ${lt_cv_path_NM=no}
5609fi
5610fi
81ecdfbb
RW
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5612$as_echo "$lt_cv_path_NM" >&6; }
ce2cded5
L
5613if test "$lt_cv_path_NM" != "no"; then
5614 NM="$lt_cv_path_NM"
5615else
5616 # Didn't find any BSD compatible name lister, look for dumpbin.
5617 if test -n "$ac_tool_prefix"; then
5618 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5619 do
5620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5621set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623$as_echo_n "checking for $ac_word... " >&6; }
5624if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5625 $as_echo_n "(cached) " >&6
d7040cdb 5626else
ce2cded5
L
5627 if test -n "$DUMPBIN"; then
5628 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
d7040cdb
SE
5629else
5630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631for as_dir in $PATH
5632do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 5637 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5639 break 2
d70c5fc7 5640 fi
d7040cdb 5641done
81ecdfbb
RW
5642 done
5643IFS=$as_save_IFS
d70c5fc7 5644
d7040cdb
SE
5645fi
5646fi
ce2cded5
L
5647DUMPBIN=$ac_cv_prog_DUMPBIN
5648if test -n "$DUMPBIN"; then
81ecdfbb
RW
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5650$as_echo "$DUMPBIN" >&6; }
bedf545c 5651else
81ecdfbb
RW
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653$as_echo "no" >&6; }
d7040cdb 5654fi
13b2be9c 5655
81ecdfbb 5656
ce2cded5
L
5657 test -n "$DUMPBIN" && break
5658 done
5659fi
5660if test -z "$DUMPBIN"; then
5661 ac_ct_DUMPBIN=$DUMPBIN
5662 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5663do
5664 # Extract the first word of "$ac_prog", so it can be a program name with args.
5665set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667$as_echo_n "checking for $ac_word... " >&6; }
5668if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5669 $as_echo_n "(cached) " >&6
d7040cdb 5670else
ce2cded5
L
5671 if test -n "$ac_ct_DUMPBIN"; then
5672 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5673else
5674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675for as_dir in $PATH
5676do
5677 IFS=$as_save_IFS
5678 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5679 for ac_exec_ext in '' $ac_executable_extensions; do
5680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 5681 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5683 break 2
5684 fi
5685done
81ecdfbb
RW
5686 done
5687IFS=$as_save_IFS
ce2cded5
L
5688
5689fi
5690fi
5691ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5692if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5694$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 5695else
81ecdfbb
RW
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697$as_echo "no" >&6; }
d7040cdb
SE
5698fi
5699
81ecdfbb 5700
ce2cded5
L
5701 test -n "$ac_ct_DUMPBIN" && break
5702done
13b2be9c 5703
81ecdfbb
RW
5704 if test "x$ac_ct_DUMPBIN" = x; then
5705 DUMPBIN=":"
5706 else
5707 case $cross_compiling:$ac_tool_warned in
5708yes:)
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5711ac_tool_warned=yes ;;
5712esac
5713 DUMPBIN=$ac_ct_DUMPBIN
5714 fi
ce2cded5 5715fi
13b2be9c 5716
bedf545c 5717
ce2cded5
L
5718 if test "$DUMPBIN" != ":"; then
5719 NM="$DUMPBIN"
5720 fi
5721fi
5722test -z "$NM" && NM=nm
6840198f 5723
13b2be9c 5724
ac48eca1 5725
d7040cdb 5726
ce2cded5
L
5727
5728
81ecdfbb
RW
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5730$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5731if test "${lt_cv_nm_interface+set}" = set; then :
5732 $as_echo_n "(cached) " >&6
ce2cded5
L
5733else
5734 lt_cv_nm_interface="BSD nm"
5735 echo "int some_variable = 0;" > conftest.$ac_ext
da2f07f1 5736 (eval echo "\"\$as_me:5736: $ac_compile\"" >&5)
ce2cded5
L
5737 (eval "$ac_compile" 2>conftest.err)
5738 cat conftest.err >&5
da2f07f1 5739 (eval echo "\"\$as_me:5739: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ce2cded5
L
5740 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5741 cat conftest.err >&5
da2f07f1 5742 (eval echo "\"\$as_me:5742: output\"" >&5)
ce2cded5
L
5743 cat conftest.out >&5
5744 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5745 lt_cv_nm_interface="MS dumpbin"
5746 fi
5747 rm -f conftest*
5748fi
81ecdfbb
RW
5749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5750$as_echo "$lt_cv_nm_interface" >&6; }
ce2cded5 5751
81ecdfbb
RW
5752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5753$as_echo_n "checking whether ln -s works... " >&6; }
ce2cded5
L
5754LN_S=$as_ln_s
5755if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5757$as_echo "yes" >&6; }
ce2cded5 5758else
81ecdfbb
RW
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5760$as_echo "no, using $LN_S" >&6; }
ce2cded5
L
5761fi
5762
5763# find the maximum length of command line arguments
81ecdfbb
RW
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5765$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5766if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5767 $as_echo_n "(cached) " >&6
ce2cded5
L
5768else
5769 i=0
5770 teststring="ABCD"
5771
5772 case $build_os in
5773 msdosdjgpp*)
5774 # On DJGPP, this test can blow up pretty badly due to problems in libc
5775 # (any single argument exceeding 2000 bytes causes a buffer overrun
5776 # during glob expansion). Even if it were fixed, the result of this
5777 # check would be larger than it should be.
5778 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5779 ;;
5780
5781 gnu*)
5782 # Under GNU Hurd, this test is not required because there is
5783 # no limit to the length of command line arguments.
5784 # Libtool will interpret -1 as no limit whatsoever
5785 lt_cv_sys_max_cmd_len=-1;
5786 ;;
5787
718a6fd8 5788 cygwin* | mingw* | cegcc*)
ce2cded5
L
5789 # On Win9x/ME, this test blows up -- it succeeds, but takes
5790 # about 5 minutes as the teststring grows exponentially.
5791 # Worse, since 9x/ME are not pre-emptively multitasking,
5792 # you end up with a "frozen" computer, even though with patience
5793 # the test eventually succeeds (with a max line length of 256k).
5794 # Instead, let's just punt: use the minimum linelength reported by
5795 # all of the supported platforms: 8192 (on NT/2K/XP).
5796 lt_cv_sys_max_cmd_len=8192;
5797 ;;
5798
5799 amigaos*)
5800 # On AmigaOS with pdksh, this test takes hours, literally.
5801 # So we just punt and use a minimum line length of 8192.
5802 lt_cv_sys_max_cmd_len=8192;
5803 ;;
5804
5805 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5806 # This has been around since 386BSD, at least. Likely further.
5807 if test -x /sbin/sysctl; then
5808 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5809 elif test -x /usr/sbin/sysctl; then
5810 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5811 else
5812 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5813 fi
5814 # And add a safety zone
5815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5817 ;;
5818
5819 interix*)
5820 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5821 lt_cv_sys_max_cmd_len=196608
5822 ;;
5823
5824 osf*)
5825 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5826 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5827 # nice to cause kernel panics so lets avoid the loop below.
5828 # First set a reasonable default.
5829 lt_cv_sys_max_cmd_len=16384
5830 #
5831 if test -x /sbin/sysconfig; then
5832 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5833 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5834 esac
5835 fi
5836 ;;
5837 sco3.2v5*)
5838 lt_cv_sys_max_cmd_len=102400
5839 ;;
5840 sysv5* | sco5v6* | sysv4.2uw2*)
5841 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5842 if test -n "$kargmax"; then
5843 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5844 else
5845 lt_cv_sys_max_cmd_len=32768
5846 fi
d7040cdb
SE
5847 ;;
5848 *)
718a6fd8
SE
5849 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5850 if test -n "$lt_cv_sys_max_cmd_len"; then
ce2cded5
L
5851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5853 else
5854 # Make teststring a little bigger before we do anything with it.
5855 # a 1K string should be a reasonable start.
5856 for i in 1 2 3 4 5 6 7 8 ; do
5857 teststring=$teststring$teststring
5858 done
5859 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5860 # If test is not a shell built-in, we'll probably end up computing a
5861 # maximum length that is only half of the actual maximum length, but
5862 # we can't tell.
5863 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5864 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5865 test $i != 17 # 1/2 MB should be enough
5866 do
5867 i=`expr $i + 1`
5868 teststring=$teststring$teststring
5869 done
5870 # Only check the string length outside the loop.
5871 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5872 teststring=
5873 # Add a significant safety factor because C++ compilers can tack on
5874 # massive amounts of additional arguments before passing them to the
5875 # linker. It appears as though 1/2 is a usable value.
5876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5877 fi
d7040cdb
SE
5878 ;;
5879 esac
252b5132 5880
ce2cded5 5881fi
d6d788bd 5882
ce2cded5 5883if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5885$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
ce2cded5 5886else
81ecdfbb
RW
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5888$as_echo "none" >&6; }
ce2cded5
L
5889fi
5890max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5891
d6d788bd 5892
13b2be9c 5893
13b2be9c 5894
bedf545c 5895
252b5132 5896
ce2cded5
L
5897: ${CP="cp -f"}
5898: ${MV="mv -f"}
5899: ${RM="rm -f"}
d6d788bd 5900
81ecdfbb
RW
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5902$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
ce2cded5
L
5903# Try some XSI features
5904xsi_shell=no
5905( _lt_dummy="a/b/c"
5906 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
718a6fd8
SE
5907 = c,a/b,, \
5908 && eval 'test $(( 1 + 1 )) -eq 2 \
5909 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
ce2cded5 5910 && xsi_shell=yes
81ecdfbb
RW
5911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5912$as_echo "$xsi_shell" >&6; }
bedf545c 5913
bedf545c 5914
81ecdfbb
RW
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5916$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
ce2cded5
L
5917lt_shell_append=no
5918( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5919 >/dev/null 2>&1 \
5920 && lt_shell_append=yes
81ecdfbb
RW
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5922$as_echo "$lt_shell_append" >&6; }
252b5132 5923
d6d788bd 5924
ce2cded5
L
5925if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5926 lt_unset=unset
5927else
5928 lt_unset=false
5929fi
13b2be9c
DJ
5930
5931
5932
5933
d6d788bd 5934
ce2cded5
L
5935# test EBCDIC or ASCII
5936case `echo X|tr X '\101'` in
5937 A) # ASCII based system
5938 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5939 lt_SP2NL='tr \040 \012'
5940 lt_NL2SP='tr \015\012 \040\040'
5941 ;;
5942 *) # EBCDIC based system
5943 lt_SP2NL='tr \100 \n'
5944 lt_NL2SP='tr \r\n \100\100'
5945 ;;
5946esac
c43a438d 5947
c43a438d 5948
c43a438d 5949
252b5132 5950
ad22bfe8 5951
1ad12f97 5952
1ad12f97 5953
9e9b66a9 5954
1ad12f97 5955
81ecdfbb
RW
5956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5957$as_echo_n "checking for $LD option to reload object files... " >&6; }
5958if test "${lt_cv_ld_reload_flag+set}" = set; then :
5959 $as_echo_n "(cached) " >&6
ce2cded5
L
5960else
5961 lt_cv_ld_reload_flag='-r'
5962fi
81ecdfbb
RW
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5964$as_echo "$lt_cv_ld_reload_flag" >&6; }
ce2cded5
L
5965reload_flag=$lt_cv_ld_reload_flag
5966case $reload_flag in
5967"" | " "*) ;;
5968*) reload_flag=" $reload_flag" ;;
5969esac
5970reload_cmds='$LD$reload_flag -o $output$reload_objs'
5971case $host_os in
5972 darwin*)
5973 if test "$GCC" = yes; then
5974 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5975 else
5976 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5977 fi
5978 ;;
5979esac
a541e3ce 5980
9e9b66a9 5981
a2d91340 5982
d6d788bd 5983
9e9b66a9
AM
5984
5985
5986
d6d788bd 5987
252b5132 5988
718a6fd8
SE
5989if test -n "$ac_tool_prefix"; then
5990 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5991set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5993$as_echo_n "checking for $ac_word... " >&6; }
5994if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5995 $as_echo_n "(cached) " >&6
718a6fd8
SE
5996else
5997 if test -n "$OBJDUMP"; then
5998 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5999else
6000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001for as_dir in $PATH
6002do
6003 IFS=$as_save_IFS
6004 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6005 for ac_exec_ext in '' $ac_executable_extensions; do
6006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6007 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6009 break 2
6010 fi
6011done
81ecdfbb
RW
6012 done
6013IFS=$as_save_IFS
718a6fd8
SE
6014
6015fi
6016fi
6017OBJDUMP=$ac_cv_prog_OBJDUMP
6018if test -n "$OBJDUMP"; then
81ecdfbb
RW
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6020$as_echo "$OBJDUMP" >&6; }
718a6fd8 6021else
81ecdfbb
RW
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023$as_echo "no" >&6; }
718a6fd8
SE
6024fi
6025
81ecdfbb 6026
718a6fd8
SE
6027fi
6028if test -z "$ac_cv_prog_OBJDUMP"; then
6029 ac_ct_OBJDUMP=$OBJDUMP
6030 # Extract the first word of "objdump", so it can be a program name with args.
6031set dummy objdump; ac_word=$2
81ecdfbb
RW
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033$as_echo_n "checking for $ac_word... " >&6; }
6034if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6035 $as_echo_n "(cached) " >&6
718a6fd8
SE
6036else
6037 if test -n "$ac_ct_OBJDUMP"; then
6038 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6039else
6040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041for as_dir in $PATH
6042do
6043 IFS=$as_save_IFS
6044 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6045 for ac_exec_ext in '' $ac_executable_extensions; do
6046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6047 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6049 break 2
6050 fi
6051done
81ecdfbb
RW
6052 done
6053IFS=$as_save_IFS
718a6fd8 6054
718a6fd8
SE
6055fi
6056fi
6057ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6058if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6060$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 6061else
81ecdfbb
RW
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063$as_echo "no" >&6; }
718a6fd8
SE
6064fi
6065
81ecdfbb
RW
6066 if test "x$ac_ct_OBJDUMP" = x; then
6067 OBJDUMP="false"
6068 else
6069 case $cross_compiling:$ac_tool_warned in
6070yes:)
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6073ac_tool_warned=yes ;;
6074esac
6075 OBJDUMP=$ac_ct_OBJDUMP
6076 fi
718a6fd8
SE
6077else
6078 OBJDUMP="$ac_cv_prog_OBJDUMP"
6079fi
6080
6081test -z "$OBJDUMP" && OBJDUMP=objdump
6082
6083
6084
6085
6086
6087
6088
6089
13b2be9c 6090
81ecdfbb
RW
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6092$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6093if test "${lt_cv_deplibs_check_method+set}" = set; then :
6094 $as_echo_n "(cached) " >&6
d7040cdb 6095else
ce2cded5
L
6096 lt_cv_file_magic_cmd='$MAGIC_CMD'
6097lt_cv_file_magic_test_file=
6098lt_cv_deplibs_check_method='unknown'
6099# Need to set the preceding variable on all platforms that support
6100# interlibrary dependencies.
6101# 'none' -- dependencies not supported.
6102# `unknown' -- same as none, but documents that we really don't know.
6103# 'pass_all' -- all dependencies passed with no checks.
6104# 'test_compile' -- check by making test program.
6105# 'file_magic [[regex]]' -- check by looking for files in library path
6106# which responds to the $file_magic_cmd with a given extended regex.
6107# If you have `file' or equivalent on your system and you're not sure
6108# whether `pass_all' will *always* work, you probably want this one.
13b2be9c 6109
ce2cded5 6110case $host_os in
50e7d84b 6111aix[4-9]*)
ce2cded5
L
6112 lt_cv_deplibs_check_method=pass_all
6113 ;;
d7040cdb 6114
ce2cded5
L
6115beos*)
6116 lt_cv_deplibs_check_method=pass_all
6117 ;;
d7040cdb 6118
ce2cded5
L
6119bsdi[45]*)
6120 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6121 lt_cv_file_magic_cmd='/usr/bin/file -L'
6122 lt_cv_file_magic_test_file=/shlib/libc.so
6123 ;;
d7040cdb 6124
ce2cded5
L
6125cygwin*)
6126 # func_win32_libid is a shell function defined in ltmain.sh
6127 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6128 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 6129 ;;
ce2cded5
L
6130
6131mingw* | pw32*)
6132 # Base MSYS/MinGW do not provide the 'file' command needed by
6133 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6134 # unless we find 'file', for example because we are cross-compiling.
6135 if ( file / ) >/dev/null 2>&1; then
6136 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6137 lt_cv_file_magic_cmd='func_win32_libid'
6138 else
6139 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6140 lt_cv_file_magic_cmd='$OBJDUMP -f'
6141 fi
d7040cdb 6142 ;;
ce2cded5 6143
718a6fd8
SE
6144cegcc)
6145 # use the weaker test based on 'objdump'. See mingw*.
6146 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6147 lt_cv_file_magic_cmd='$OBJDUMP -f'
6148 ;;
6149
ce2cded5
L
6150darwin* | rhapsody*)
6151 lt_cv_deplibs_check_method=pass_all
6152 ;;
6153
6154freebsd* | dragonfly*)
6155 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6156 case $host_cpu in
6157 i*86 )
6158 # Not sure whether the presence of OpenBSD here was a mistake.
6159 # Let's accept both of them until this is cleared up.
6160 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6161 lt_cv_file_magic_cmd=/usr/bin/file
6162 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6163 ;;
6164 esac
6165 else
6166 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
6167 fi
6168 ;;
ce2cded5
L
6169
6170gnu*)
6171 lt_cv_deplibs_check_method=pass_all
d7040cdb 6172 ;;
ce2cded5
L
6173
6174hpux10.20* | hpux11*)
6175 lt_cv_file_magic_cmd=/usr/bin/file
6176 case $host_cpu in
6177 ia64*)
6178 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6179 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6180 ;;
6181 hppa*64*)
6182 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6183 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6184 ;;
6185 *)
6186 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6187 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6188 ;;
6189 esac
d7040cdb 6190 ;;
ce2cded5
L
6191
6192interix[3-9]*)
6193 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6194 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 6195 ;;
ce2cded5
L
6196
6197irix5* | irix6* | nonstopux*)
6198 case $LD in
6199 *-32|*"-32 ") libmagic=32-bit;;
6200 *-n32|*"-n32 ") libmagic=N32;;
6201 *-64|*"-64 ") libmagic=64-bit;;
6202 *) libmagic=never-match;;
6203 esac
6204 lt_cv_deplibs_check_method=pass_all
d7040cdb 6205 ;;
ce2cded5
L
6206
6207# This must be Linux ELF.
58e24671 6208linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 6209 lt_cv_deplibs_check_method=pass_all
d7040cdb 6210 ;;
ce2cded5
L
6211
6212netbsd*)
6213 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6214 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6215 else
6216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6217 fi
d7040cdb 6218 ;;
ce2cded5
L
6219
6220newos6*)
6221 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6222 lt_cv_file_magic_cmd=/usr/bin/file
6223 lt_cv_file_magic_test_file=/usr/lib/libnls.so
d7040cdb 6224 ;;
76a27922 6225
ce2cded5
L
6226*nto* | *qnx*)
6227 lt_cv_deplibs_check_method=pass_all
6228 ;;
d6d788bd 6229
ce2cded5
L
6230openbsd*)
6231 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6232 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6233 else
6234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6235 fi
6236 ;;
44f2f9d2 6237
ce2cded5
L
6238osf3* | osf4* | osf5*)
6239 lt_cv_deplibs_check_method=pass_all
6240 ;;
44f2f9d2 6241
ce2cded5
L
6242rdos*)
6243 lt_cv_deplibs_check_method=pass_all
6244 ;;
6245
6246solaris*)
6247 lt_cv_deplibs_check_method=pass_all
6248 ;;
6249
6250sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6251 lt_cv_deplibs_check_method=pass_all
6252 ;;
6253
6254sysv4 | sysv4.3*)
6255 case $host_vendor in
6256 motorola)
6257 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]'
6258 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6259 ;;
6260 ncr)
6261 lt_cv_deplibs_check_method=pass_all
6262 ;;
6263 sequent)
6264 lt_cv_file_magic_cmd='/bin/file'
6265 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6266 ;;
6267 sni)
6268 lt_cv_file_magic_cmd='/bin/file'
6269 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6270 lt_cv_file_magic_test_file=/lib/libc.so
6271 ;;
6272 siemens)
6273 lt_cv_deplibs_check_method=pass_all
6274 ;;
6275 pc)
6276 lt_cv_deplibs_check_method=pass_all
6277 ;;
6278 esac
6279 ;;
6280
6281tpf*)
6282 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
6283 ;;
6284esac
6285
ce2cded5 6286fi
81ecdfbb
RW
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6288$as_echo "$lt_cv_deplibs_check_method" >&6; }
ce2cded5
L
6289file_magic_cmd=$lt_cv_file_magic_cmd
6290deplibs_check_method=$lt_cv_deplibs_check_method
6291test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 6292
d7040cdb 6293
d7040cdb 6294
d7040cdb 6295
d7040cdb 6296
44f2f9d2 6297
d7040cdb 6298
d7040cdb 6299
d7040cdb 6300
d7040cdb 6301
44f2f9d2 6302
d7040cdb 6303
ce2cded5
L
6304if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6306set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308$as_echo_n "checking for $ac_word... " >&6; }
6309if test "${ac_cv_prog_AR+set}" = set; then :
6310 $as_echo_n "(cached) " >&6
ce2cded5
L
6311else
6312 if test -n "$AR"; then
6313 ac_cv_prog_AR="$AR" # Let the user override the test.
6314else
6315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316for as_dir in $PATH
6317do
6318 IFS=$as_save_IFS
6319 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6322 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 6324 break 2
d7040cdb
SE
6325 fi
6326done
81ecdfbb
RW
6327 done
6328IFS=$as_save_IFS
44f2f9d2 6329
ce2cded5
L
6330fi
6331fi
6332AR=$ac_cv_prog_AR
6333if test -n "$AR"; then
81ecdfbb
RW
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6335$as_echo "$AR" >&6; }
ce2cded5 6336else
81ecdfbb
RW
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338$as_echo "no" >&6; }
44f2f9d2 6339fi
d7040cdb 6340
81ecdfbb 6341
d7040cdb 6342fi
ce2cded5
L
6343if test -z "$ac_cv_prog_AR"; then
6344 ac_ct_AR=$AR
6345 # Extract the first word of "ar", so it can be a program name with args.
6346set dummy ar; ac_word=$2
81ecdfbb
RW
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348$as_echo_n "checking for $ac_word... " >&6; }
6349if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6350 $as_echo_n "(cached) " >&6
44f2f9d2 6351else
ce2cded5
L
6352 if test -n "$ac_ct_AR"; then
6353 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6354else
6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6362 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6364 break 2
6365 fi
6366done
81ecdfbb
RW
6367 done
6368IFS=$as_save_IFS
ce2cded5 6369
ce2cded5
L
6370fi
6371fi
6372ac_ct_AR=$ac_cv_prog_ac_ct_AR
6373if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6375$as_echo "$ac_ct_AR" >&6; }
ce2cded5 6376else
81ecdfbb
RW
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378$as_echo "no" >&6; }
d7040cdb 6379fi
44f2f9d2 6380
81ecdfbb
RW
6381 if test "x$ac_ct_AR" = x; then
6382 AR="false"
6383 else
6384 case $cross_compiling:$ac_tool_warned in
6385yes:)
6386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388ac_tool_warned=yes ;;
6389esac
6390 AR=$ac_ct_AR
6391 fi
ce2cded5
L
6392else
6393 AR="$ac_cv_prog_AR"
6394fi
d7040cdb 6395
ce2cded5
L
6396test -z "$AR" && AR=ar
6397test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
ce2cded5
L
6409if test -n "$ac_tool_prefix"; then
6410 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6411set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6413$as_echo_n "checking for $ac_word... " >&6; }
6414if test "${ac_cv_prog_STRIP+set}" = set; then :
6415 $as_echo_n "(cached) " >&6
ce2cded5
L
6416else
6417 if test -n "$STRIP"; then
6418 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6419else
6420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421for as_dir in $PATH
6422do
6423 IFS=$as_save_IFS
6424 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6427 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6429 break 2
6430 fi
6431done
81ecdfbb
RW
6432 done
6433IFS=$as_save_IFS
d7040cdb 6434
ce2cded5
L
6435fi
6436fi
6437STRIP=$ac_cv_prog_STRIP
6438if test -n "$STRIP"; then
81ecdfbb
RW
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6440$as_echo "$STRIP" >&6; }
ce2cded5 6441else
81ecdfbb
RW
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443$as_echo "no" >&6; }
ce2cded5 6444fi
d7040cdb 6445
81ecdfbb 6446
ce2cded5
L
6447fi
6448if test -z "$ac_cv_prog_STRIP"; then
6449 ac_ct_STRIP=$STRIP
6450 # Extract the first word of "strip", so it can be a program name with args.
6451set dummy strip; ac_word=$2
81ecdfbb
RW
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453$as_echo_n "checking for $ac_word... " >&6; }
6454if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6455 $as_echo_n "(cached) " >&6
ce2cded5
L
6456else
6457 if test -n "$ac_ct_STRIP"; then
6458 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6459else
6460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461for as_dir in $PATH
6462do
6463 IFS=$as_save_IFS
6464 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6465 for ac_exec_ext in '' $ac_executable_extensions; do
6466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6467 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6469 break 2
6470 fi
6471done
81ecdfbb
RW
6472 done
6473IFS=$as_save_IFS
d7040cdb 6474
ce2cded5
L
6475fi
6476fi
6477ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6478if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6480$as_echo "$ac_ct_STRIP" >&6; }
ce2cded5 6481else
81ecdfbb
RW
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483$as_echo "no" >&6; }
ce2cded5 6484fi
d7040cdb 6485
81ecdfbb
RW
6486 if test "x$ac_ct_STRIP" = x; then
6487 STRIP=":"
6488 else
6489 case $cross_compiling:$ac_tool_warned in
6490yes:)
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6493ac_tool_warned=yes ;;
6494esac
6495 STRIP=$ac_ct_STRIP
6496 fi
ce2cded5
L
6497else
6498 STRIP="$ac_cv_prog_STRIP"
6499fi
d7040cdb 6500
ce2cded5 6501test -z "$STRIP" && STRIP=:
d7040cdb 6502
d7040cdb 6503
d7040cdb 6504
d7040cdb 6505
d7040cdb 6506
d7040cdb 6507
ce2cded5
L
6508if test -n "$ac_tool_prefix"; then
6509 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6510set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512$as_echo_n "checking for $ac_word... " >&6; }
6513if test "${ac_cv_prog_RANLIB+set}" = set; then :
6514 $as_echo_n "(cached) " >&6
44f2f9d2 6515else
ce2cded5
L
6516 if test -n "$RANLIB"; then
6517 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6518else
6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520for as_dir in $PATH
6521do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6526 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6528 break 2
6529 fi
6530done
81ecdfbb
RW
6531 done
6532IFS=$as_save_IFS
44f2f9d2 6533
d7040cdb 6534fi
44f2f9d2 6535fi
ce2cded5
L
6536RANLIB=$ac_cv_prog_RANLIB
6537if test -n "$RANLIB"; then
81ecdfbb
RW
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6539$as_echo "$RANLIB" >&6; }
ce2cded5 6540else
81ecdfbb
RW
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542$as_echo "no" >&6; }
ce2cded5 6543fi
d7040cdb 6544
81ecdfbb 6545
d7040cdb 6546fi
ce2cded5
L
6547if test -z "$ac_cv_prog_RANLIB"; then
6548 ac_ct_RANLIB=$RANLIB
6549 # Extract the first word of "ranlib", so it can be a program name with args.
6550set dummy ranlib; ac_word=$2
81ecdfbb
RW
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552$as_echo_n "checking for $ac_word... " >&6; }
6553if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6554 $as_echo_n "(cached) " >&6
44f2f9d2 6555else
ce2cded5
L
6556 if test -n "$ac_ct_RANLIB"; then
6557 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6558else
6559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560for as_dir in $PATH
d7040cdb 6561do
ce2cded5
L
6562 IFS=$as_save_IFS
6563 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6566 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 6568 break 2
d7040cdb 6569 fi
ce2cded5 6570done
81ecdfbb
RW
6571 done
6572IFS=$as_save_IFS
ce2cded5 6573
d7040cdb 6574fi
ce2cded5
L
6575fi
6576ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6577if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6579$as_echo "$ac_ct_RANLIB" >&6; }
d7040cdb 6580else
81ecdfbb
RW
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582$as_echo "no" >&6; }
44f2f9d2 6583fi
44f2f9d2 6584
81ecdfbb
RW
6585 if test "x$ac_ct_RANLIB" = x; then
6586 RANLIB=":"
6587 else
6588 case $cross_compiling:$ac_tool_warned in
6589yes:)
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6592ac_tool_warned=yes ;;
6593esac
6594 RANLIB=$ac_ct_RANLIB
6595 fi
d7040cdb 6596else
ce2cded5 6597 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 6598fi
252b5132 6599
ce2cded5 6600test -z "$RANLIB" && RANLIB=:
252b5132 6601
252b5132 6602
ae57792d 6603
252b5132 6604
13b2be9c 6605
14ee9f48 6606
ce2cded5 6607# Determine commands to create old-style static archives.
718a6fd8 6608old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
ce2cded5
L
6609old_postinstall_cmds='chmod 644 $oldlib'
6610old_postuninstall_cmds=
14ee9f48 6611
ce2cded5
L
6612if test -n "$RANLIB"; then
6613 case $host_os in
6614 openbsd*)
6615 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6616 ;;
6617 *)
6618 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6619 ;;
6620 esac
6621 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb 6622fi
14ee9f48 6623
f8fc3443 6624
f8fc3443 6625
252b5132 6626
85fbca6a 6627
85fbca6a 6628
13b2be9c 6629
13b2be9c 6630
d7040cdb 6631
d7040cdb
SE
6632
6633
6634
252b5132 6635
93fbbb04 6636
93fbbb04 6637
d70c5fc7 6638
e0001a05 6639
252b5132 6640
252b5132 6641
252b5132 6642
252b5132 6643
252b5132 6644
3bcbcc3d 6645
252b5132 6646
252b5132 6647
252b5132 6648
15886821 6649
252b5132 6650
252b5132 6651
13b2be9c
DJ
6652
6653
252b5132 6654
252b5132 6655
d6d788bd 6656
ce2cded5
L
6657# If no C compiler was specified, use CC.
6658LTCC=${LTCC-"$CC"}
252b5132 6659
ce2cded5
L
6660# If no C compiler flags were specified, use CFLAGS.
6661LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
252b5132 6662
ce2cded5
L
6663# Allow CC to be a program name with arguments.
6664compiler=$CC
252b5132 6665
252b5132 6666
ce2cded5 6667# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6669$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6670if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6671 $as_echo_n "(cached) " >&6
ce2cded5 6672else
252b5132 6673
ce2cded5
L
6674# These are sane defaults that work on at least a few old systems.
6675# [They come from Ultrix. What could be older than Ultrix?!! ;)]
252b5132 6676
ce2cded5
L
6677# Character class describing NM global symbol codes.
6678symcode='[BCDEGRST]'
252b5132 6679
ce2cded5
L
6680# Regexp to match symbols that can be accessed directly from C.
6681sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13b2be9c 6682
ce2cded5
L
6683# Define system-specific variables.
6684case $host_os in
6685aix*)
6686 symcode='[BCDT]'
6687 ;;
718a6fd8 6688cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
6689 symcode='[ABCDGISTW]'
6690 ;;
6691hpux*)
6692 if test "$host_cpu" = ia64; then
6693 symcode='[ABCDEGRST]'
6694 fi
6695 ;;
6696irix* | nonstopux*)
6697 symcode='[BCDEGRST]'
6698 ;;
6699osf*)
6700 symcode='[BCDEGQRST]'
6701 ;;
6702solaris*)
6703 symcode='[BDRT]'
6704 ;;
6705sco3.2v5*)
6706 symcode='[DT]'
6707 ;;
6708sysv4.2uw2*)
6709 symcode='[DT]'
6710 ;;
6711sysv5* | sco5v6* | unixware* | OpenUNIX*)
6712 symcode='[ABDT]'
6713 ;;
6714sysv4)
6715 symcode='[DFNSTU]'
6716 ;;
6717esac
6718
6719# If we're using GNU nm, then use its standard symbol codes.
6720case `$NM -V 2>&1` in
6721*GNU* | *'with BFD'*)
6722 symcode='[ABCDGIRSTW]' ;;
6723esac
252b5132 6724
ce2cded5
L
6725# Transform an extracted symbol line into a proper C declaration.
6726# Some systems (esp. on ia64) link data and code symbols differently,
6727# so use this general approach.
6728lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13b2be9c 6729
ce2cded5 6730# Transform an extracted symbol line into symbol name and symbol address
7357c5b6 6731lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
718a6fd8 6732lt_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'"
d7040cdb 6733
7357c5b6
AM
6734# Handle CRLF in mingw tool chain
6735opt_cr=
6736case $build_os in
6737mingw*)
6738 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6739 ;;
6740esac
d7040cdb 6741
7357c5b6
AM
6742# Try without a prefix underscore, then with it.
6743for ac_symprfx in "" "_"; do
d7040cdb 6744
7357c5b6
AM
6745 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6746 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6747
7357c5b6
AM
6748 # Write the raw and C identifiers.
6749 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6750 # Fake it for dumpbin and say T for any non-static function
6751 # and D for any global variable.
6752 # Also find C++ and __fastcall symbols from MSVC++,
6753 # which start with @ or ?.
6754 lt_cv_sys_global_symbol_pipe="$AWK '"\
6755" {last_section=section; section=\$ 3};"\
6756" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6757" \$ 0!~/External *\|/{next};"\
6758" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6759" {if(hide[section]) next};"\
6760" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6761" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6762" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6763" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6764" ' prfx=^$ac_symprfx"
6765 else
6766 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6767 fi
d7040cdb 6768
7357c5b6
AM
6769 # Check to see that the pipe works correctly.
6770 pipe_works=no
d7040cdb 6771
7357c5b6
AM
6772 rm -f conftest*
6773 cat > conftest.$ac_ext <<_LT_EOF
6774#ifdef __cplusplus
6775extern "C" {
6776#endif
6777char nm_test_var;
6778void nm_test_func(void);
6779void nm_test_func(void){}
6780#ifdef __cplusplus
ce2cded5 6781}
7357c5b6
AM
6782#endif
6783int main(){nm_test_var='a';nm_test_func();return(0);}
6784_LT_EOF
6785
81ecdfbb 6786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6787 (eval $ac_compile) 2>&5
ce2cded5 6788 ac_status=$?
81ecdfbb
RW
6789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6790 test $ac_status = 0; }; then
7357c5b6
AM
6791 # Now try to grab the symbols.
6792 nlist=conftest.nm
81ecdfbb 6793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7357c5b6 6794 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
ce2cded5 6795 ac_status=$?
81ecdfbb
RW
6796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6798 # Try sorting and uniquifying the output.
6799 if sort "$nlist" | uniq > "$nlist"T; then
6800 mv -f "$nlist"T "$nlist"
6801 else
6802 rm -f "$nlist"T
6803 fi
13b2be9c 6804
7357c5b6
AM
6805 # Make sure that we snagged all the symbols we need.
6806 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6807 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6808 cat <<_LT_EOF > conftest.$ac_ext
6809#ifdef __cplusplus
6810extern "C" {
6811#endif
13b2be9c 6812
7357c5b6
AM
6813_LT_EOF
6814 # Now generate the symbol file.
6815 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13b2be9c 6816
7357c5b6 6817 cat <<_LT_EOF >> conftest.$ac_ext
c8615825 6818
7357c5b6
AM
6819/* The mapping between symbol names and symbols. */
6820const struct {
6821 const char *name;
6822 void *address;
6823}
6824lt__PROGRAM__LTX_preloaded_symbols[] =
6825{
6826 { "@PROGRAM@", (void *) 0 },
6827_LT_EOF
6828 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6829 cat <<\_LT_EOF >> conftest.$ac_ext
6830 {0, (void *) 0}
6831};
d7040cdb 6832
7357c5b6
AM
6833/* This works around a problem in FreeBSD linker */
6834#ifdef FREEBSD_WORKAROUND
6835static const void *lt_preloaded_setup() {
6836 return lt__PROGRAM__LTX_preloaded_symbols;
6837}
ce2cded5 6838#endif
d7040cdb 6839
7357c5b6 6840#ifdef __cplusplus
ce2cded5 6841}
7357c5b6
AM
6842#endif
6843_LT_EOF
6844 # Now try linking the two files.
6845 mv conftest.$ac_objext conftstm.$ac_objext
6846 lt_save_LIBS="$LIBS"
6847 lt_save_CFLAGS="$CFLAGS"
6848 LIBS="conftstm.$ac_objext"
6849 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
6851 (eval $ac_link) 2>&5
6852 ac_status=$?
81ecdfbb
RW
6853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6854 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6855 pipe_works=yes
6856 fi
6857 LIBS="$lt_save_LIBS"
6858 CFLAGS="$lt_save_CFLAGS"
6859 else
6860 echo "cannot find nm_test_func in $nlist" >&5
6861 fi
6862 else
6863 echo "cannot find nm_test_var in $nlist" >&5
6864 fi
6865 else
6866 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6867 fi
6868 else
6869 echo "$progname: failed program was:" >&5
6870 cat conftest.$ac_ext >&5
6871 fi
718a6fd8 6872 rm -rf conftest* conftst*
7357c5b6
AM
6873
6874 # Do not use the global_symbol_pipe unless it works.
6875 if test "$pipe_works" = yes; then
6876 break
6877 else
6878 lt_cv_sys_global_symbol_pipe=
6879 fi
6880done
d7040cdb 6881
ce2cded5 6882fi
7357c5b6
AM
6883
6884if test -z "$lt_cv_sys_global_symbol_pipe"; then
6885 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 6886fi
7357c5b6 6887if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6889$as_echo "failed" >&6; }
7357c5b6 6890else
81ecdfbb
RW
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6892$as_echo "ok" >&6; }
ce2cded5 6893fi
d7040cdb 6894
d7040cdb 6895
d7040cdb 6896
d7040cdb 6897
d7040cdb 6898
d7040cdb 6899
d7040cdb 6900
d7040cdb 6901
d7040cdb 6902
d7040cdb 6903
d7040cdb 6904
d7040cdb 6905
7357c5b6
AM
6906
6907
6908
718a6fd8
SE
6909
6910
6911
6912
6913
7357c5b6
AM
6914
6915
81ecdfbb
RW
6916# Check whether --enable-libtool-lock was given.
6917if test "${enable_libtool_lock+set}" = set; then :
6918 enableval=$enable_libtool_lock;
6919fi
7357c5b6 6920
7357c5b6
AM
6921test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6922
6923# Some flags need to be propagated to the compiler or linker for good
6924# libtool support.
6925case $host in
6926ia64-*-hpux*)
6927 # Find out which ABI we are using.
6928 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6930 (eval $ac_compile) 2>&5
6931 ac_status=$?
81ecdfbb
RW
6932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6933 test $ac_status = 0; }; then
7357c5b6
AM
6934 case `/usr/bin/file conftest.$ac_objext` in
6935 *ELF-32*)
6936 HPUX_IA64_MODE="32"
6937 ;;
6938 *ELF-64*)
6939 HPUX_IA64_MODE="64"
6940 ;;
6941 esac
6942 fi
6943 rm -rf conftest*
6944 ;;
6945*-*-irix6*)
6946 # Find out which ABI we are using.
da2f07f1 6947 echo '#line 6947 "configure"' > conftest.$ac_ext
81ecdfbb 6948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6949 (eval $ac_compile) 2>&5
6950 ac_status=$?
81ecdfbb
RW
6951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6952 test $ac_status = 0; }; then
7357c5b6
AM
6953 if test "$lt_cv_prog_gnu_ld" = yes; then
6954 case `/usr/bin/file conftest.$ac_objext` in
6955 *32-bit*)
6956 LD="${LD-ld} -melf32bsmip"
6957 ;;
6958 *N32*)
6959 LD="${LD-ld} -melf32bmipn32"
6960 ;;
6961 *64-bit*)
6962 LD="${LD-ld} -melf64bmip"
6963 ;;
6964 esac
6965 else
6966 case `/usr/bin/file conftest.$ac_objext` in
6967 *32-bit*)
6968 LD="${LD-ld} -32"
6969 ;;
6970 *N32*)
6971 LD="${LD-ld} -n32"
6972 ;;
6973 *64-bit*)
6974 LD="${LD-ld} -64"
6975 ;;
6976 esac
6977 fi
6978 fi
6979 rm -rf conftest*
6980 ;;
6981
6982x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6983s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6984 # Find out which ABI we are using.
6985 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6987 (eval $ac_compile) 2>&5
6988 ac_status=$?
81ecdfbb
RW
6989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6990 test $ac_status = 0; }; then
7357c5b6
AM
6991 case `/usr/bin/file conftest.o` in
6992 *32-bit*)
6993 case $host in
6994 x86_64-*kfreebsd*-gnu)
6995 LD="${LD-ld} -m elf_i386_fbsd"
6996 ;;
6997 x86_64-*linux*)
6998 LD="${LD-ld} -m elf_i386"
6999 ;;
7000 ppc64-*linux*|powerpc64-*linux*)
7001 LD="${LD-ld} -m elf32ppclinux"
7002 ;;
7003 s390x-*linux*)
7004 LD="${LD-ld} -m elf_s390"
7005 ;;
7006 sparc64-*linux*)
7007 LD="${LD-ld} -m elf32_sparc"
7008 ;;
7009 esac
7010 ;;
7011 *64-bit*)
7012 case $host in
7013 x86_64-*kfreebsd*-gnu)
7014 LD="${LD-ld} -m elf_x86_64_fbsd"
7015 ;;
7016 x86_64-*linux*)
7017 LD="${LD-ld} -m elf_x86_64"
7018 ;;
7019 ppc*-*linux*|powerpc*-*linux*)
7020 LD="${LD-ld} -m elf64ppc"
7021 ;;
7022 s390*-*linux*|s390*-*tpf*)
7023 LD="${LD-ld} -m elf64_s390"
7024 ;;
7025 sparc*-*linux*)
7026 LD="${LD-ld} -m elf64_sparc"
7027 ;;
7028 esac
7029 ;;
7030 esac
7031 fi
7032 rm -rf conftest*
7033 ;;
7034
7035*-*-sco3.2v5*)
7036 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7037 SAVE_CFLAGS="$CFLAGS"
7038 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7040$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7041if test "${lt_cv_cc_needs_belf+set}" = set; then :
7042 $as_echo_n "(cached) " >&6
ce2cded5 7043else
7357c5b6
AM
7044 ac_ext=c
7045ac_cpp='$CPP $CPPFLAGS'
7046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7048ac_compiler_gnu=$ac_cv_c_compiler_gnu
7049
81ecdfbb 7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 7051/* end confdefs.h. */
d7040cdb 7052
7357c5b6
AM
7053int
7054main ()
7055{
7056
7057 ;
7058 return 0;
7059}
ce2cded5 7060_ACEOF
81ecdfbb 7061if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7062 lt_cv_cc_needs_belf=yes
ce2cded5 7063else
81ecdfbb 7064 lt_cv_cc_needs_belf=no
ce2cded5 7065fi
81ecdfbb
RW
7066rm -f core conftest.err conftest.$ac_objext \
7067 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7068 ac_ext=c
7069ac_cpp='$CPP $CPPFLAGS'
7070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7072ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7073
ce2cded5 7074fi
81ecdfbb
RW
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7076$as_echo "$lt_cv_cc_needs_belf" >&6; }
7357c5b6
AM
7077 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7078 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7079 CFLAGS="$SAVE_CFLAGS"
7080 fi
7081 ;;
7082sparc*-*solaris*)
7083 # Find out which ABI we are using.
7084 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7086 (eval $ac_compile) 2>&5
7087 ac_status=$?
81ecdfbb
RW
7088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7089 test $ac_status = 0; }; then
7357c5b6
AM
7090 case `/usr/bin/file conftest.o` in
7091 *64-bit*)
7092 case $lt_cv_prog_gnu_ld in
7093 yes*) LD="${LD-ld} -m elf64_sparc" ;;
718a6fd8
SE
7094 *)
7095 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7096 LD="${LD-ld} -64"
7097 fi
7098 ;;
7357c5b6
AM
7099 esac
7100 ;;
7101 esac
7102 fi
7103 rm -rf conftest*
7104 ;;
7105esac
d7040cdb 7106
718a6fd8
SE
7107need_locks="$enable_libtool_lock"
7108
7109
7110 case $host_os in
7111 rhapsody* | darwin*)
7112 if test -n "$ac_tool_prefix"; then
7113 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7114set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7116$as_echo_n "checking for $ac_word... " >&6; }
7117if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7118 $as_echo_n "(cached) " >&6
718a6fd8
SE
7119else
7120 if test -n "$DSYMUTIL"; then
7121 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7122else
7123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124for as_dir in $PATH
7125do
7126 IFS=$as_save_IFS
7127 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7130 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7132 break 2
7133 fi
7134done
81ecdfbb
RW
7135 done
7136IFS=$as_save_IFS
718a6fd8
SE
7137
7138fi
7139fi
7140DSYMUTIL=$ac_cv_prog_DSYMUTIL
7141if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7143$as_echo "$DSYMUTIL" >&6; }
718a6fd8 7144else
81ecdfbb
RW
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146$as_echo "no" >&6; }
718a6fd8
SE
7147fi
7148
81ecdfbb 7149
718a6fd8
SE
7150fi
7151if test -z "$ac_cv_prog_DSYMUTIL"; then
7152 ac_ct_DSYMUTIL=$DSYMUTIL
7153 # Extract the first word of "dsymutil", so it can be a program name with args.
7154set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156$as_echo_n "checking for $ac_word... " >&6; }
7157if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7158 $as_echo_n "(cached) " >&6
718a6fd8
SE
7159else
7160 if test -n "$ac_ct_DSYMUTIL"; then
7161 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7162else
7163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164for as_dir in $PATH
7165do
7166 IFS=$as_save_IFS
7167 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7168 for ac_exec_ext in '' $ac_executable_extensions; do
7169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7170 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7172 break 2
7173 fi
7174done
81ecdfbb
RW
7175 done
7176IFS=$as_save_IFS
718a6fd8 7177
718a6fd8
SE
7178fi
7179fi
7180ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7181if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7183$as_echo "$ac_ct_DSYMUTIL" >&6; }
718a6fd8 7184else
81ecdfbb
RW
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186$as_echo "no" >&6; }
718a6fd8
SE
7187fi
7188
81ecdfbb
RW
7189 if test "x$ac_ct_DSYMUTIL" = x; then
7190 DSYMUTIL=":"
7191 else
7192 case $cross_compiling:$ac_tool_warned in
7193yes:)
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7196ac_tool_warned=yes ;;
7197esac
7198 DSYMUTIL=$ac_ct_DSYMUTIL
7199 fi
718a6fd8
SE
7200else
7201 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7202fi
7203
7204 if test -n "$ac_tool_prefix"; then
7205 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7206set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7208$as_echo_n "checking for $ac_word... " >&6; }
7209if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7210 $as_echo_n "(cached) " >&6
718a6fd8
SE
7211else
7212 if test -n "$NMEDIT"; then
7213 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7214else
7215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216for as_dir in $PATH
7217do
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7222 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7224 break 2
7225 fi
7226done
81ecdfbb
RW
7227 done
7228IFS=$as_save_IFS
718a6fd8
SE
7229
7230fi
7231fi
7232NMEDIT=$ac_cv_prog_NMEDIT
7233if test -n "$NMEDIT"; then
81ecdfbb
RW
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7235$as_echo "$NMEDIT" >&6; }
718a6fd8 7236else
81ecdfbb
RW
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238$as_echo "no" >&6; }
718a6fd8
SE
7239fi
7240
81ecdfbb 7241
718a6fd8
SE
7242fi
7243if test -z "$ac_cv_prog_NMEDIT"; then
7244 ac_ct_NMEDIT=$NMEDIT
7245 # Extract the first word of "nmedit", so it can be a program name with args.
7246set dummy nmedit; ac_word=$2
81ecdfbb
RW
7247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248$as_echo_n "checking for $ac_word... " >&6; }
7249if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7250 $as_echo_n "(cached) " >&6
718a6fd8
SE
7251else
7252 if test -n "$ac_ct_NMEDIT"; then
7253 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7254else
7255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256for as_dir in $PATH
7257do
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7262 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7264 break 2
7265 fi
7266done
81ecdfbb
RW
7267 done
7268IFS=$as_save_IFS
718a6fd8 7269
718a6fd8
SE
7270fi
7271fi
7272ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7273if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7275$as_echo "$ac_ct_NMEDIT" >&6; }
718a6fd8 7276else
81ecdfbb
RW
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278$as_echo "no" >&6; }
718a6fd8
SE
7279fi
7280
81ecdfbb
RW
7281 if test "x$ac_ct_NMEDIT" = x; then
7282 NMEDIT=":"
7283 else
7284 case $cross_compiling:$ac_tool_warned in
7285yes:)
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7288ac_tool_warned=yes ;;
7289esac
7290 NMEDIT=$ac_ct_NMEDIT
7291 fi
718a6fd8
SE
7292else
7293 NMEDIT="$ac_cv_prog_NMEDIT"
7294fi
7295
7296 if test -n "$ac_tool_prefix"; then
7297 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7298set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300$as_echo_n "checking for $ac_word... " >&6; }
7301if test "${ac_cv_prog_LIPO+set}" = set; then :
7302 $as_echo_n "(cached) " >&6
718a6fd8
SE
7303else
7304 if test -n "$LIPO"; then
7305 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7306else
7307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308for as_dir in $PATH
7309do
7310 IFS=$as_save_IFS
7311 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7314 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7316 break 2
7317 fi
7318done
81ecdfbb
RW
7319 done
7320IFS=$as_save_IFS
718a6fd8
SE
7321
7322fi
7323fi
7324LIPO=$ac_cv_prog_LIPO
7325if test -n "$LIPO"; then
81ecdfbb
RW
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7327$as_echo "$LIPO" >&6; }
718a6fd8 7328else
81ecdfbb
RW
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330$as_echo "no" >&6; }
718a6fd8
SE
7331fi
7332
81ecdfbb 7333
718a6fd8
SE
7334fi
7335if test -z "$ac_cv_prog_LIPO"; then
7336 ac_ct_LIPO=$LIPO
7337 # Extract the first word of "lipo", so it can be a program name with args.
7338set dummy lipo; ac_word=$2
81ecdfbb
RW
7339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340$as_echo_n "checking for $ac_word... " >&6; }
7341if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7342 $as_echo_n "(cached) " >&6
718a6fd8
SE
7343else
7344 if test -n "$ac_ct_LIPO"; then
7345 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7346else
7347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348for as_dir in $PATH
7349do
7350 IFS=$as_save_IFS
7351 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7354 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7356 break 2
7357 fi
7358done
81ecdfbb
RW
7359 done
7360IFS=$as_save_IFS
718a6fd8 7361
718a6fd8
SE
7362fi
7363fi
7364ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7365if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7367$as_echo "$ac_ct_LIPO" >&6; }
718a6fd8 7368else
81ecdfbb
RW
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370$as_echo "no" >&6; }
718a6fd8
SE
7371fi
7372
81ecdfbb
RW
7373 if test "x$ac_ct_LIPO" = x; then
7374 LIPO=":"
7375 else
7376 case $cross_compiling:$ac_tool_warned in
7377yes:)
7378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7380ac_tool_warned=yes ;;
7381esac
7382 LIPO=$ac_ct_LIPO
7383 fi
718a6fd8
SE
7384else
7385 LIPO="$ac_cv_prog_LIPO"
7386fi
7387
7388 if test -n "$ac_tool_prefix"; then
7389 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7390set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392$as_echo_n "checking for $ac_word... " >&6; }
7393if test "${ac_cv_prog_OTOOL+set}" = set; then :
7394 $as_echo_n "(cached) " >&6
718a6fd8
SE
7395else
7396 if test -n "$OTOOL"; then
7397 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7398else
7399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400for as_dir in $PATH
7401do
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7406 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7408 break 2
7409 fi
7410done
81ecdfbb
RW
7411 done
7412IFS=$as_save_IFS
718a6fd8
SE
7413
7414fi
7415fi
7416OTOOL=$ac_cv_prog_OTOOL
7417if test -n "$OTOOL"; then
81ecdfbb
RW
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7419$as_echo "$OTOOL" >&6; }
718a6fd8 7420else
81ecdfbb
RW
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422$as_echo "no" >&6; }
718a6fd8
SE
7423fi
7424
81ecdfbb 7425
718a6fd8
SE
7426fi
7427if test -z "$ac_cv_prog_OTOOL"; then
7428 ac_ct_OTOOL=$OTOOL
7429 # Extract the first word of "otool", so it can be a program name with args.
7430set dummy otool; ac_word=$2
81ecdfbb
RW
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432$as_echo_n "checking for $ac_word... " >&6; }
7433if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7434 $as_echo_n "(cached) " >&6
718a6fd8
SE
7435else
7436 if test -n "$ac_ct_OTOOL"; then
7437 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7438else
7439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440for as_dir in $PATH
7441do
7442 IFS=$as_save_IFS
7443 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7446 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7448 break 2
7449 fi
7450done
81ecdfbb
RW
7451 done
7452IFS=$as_save_IFS
718a6fd8 7453
718a6fd8
SE
7454fi
7455fi
7456ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7457if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7459$as_echo "$ac_ct_OTOOL" >&6; }
718a6fd8 7460else
81ecdfbb
RW
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462$as_echo "no" >&6; }
718a6fd8
SE
7463fi
7464
81ecdfbb
RW
7465 if test "x$ac_ct_OTOOL" = x; then
7466 OTOOL=":"
7467 else
7468 case $cross_compiling:$ac_tool_warned in
7469yes:)
7470{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7471$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7472ac_tool_warned=yes ;;
7473esac
7474 OTOOL=$ac_ct_OTOOL
7475 fi
718a6fd8
SE
7476else
7477 OTOOL="$ac_cv_prog_OTOOL"
7478fi
7479
7480 if test -n "$ac_tool_prefix"; then
7481 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7482set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484$as_echo_n "checking for $ac_word... " >&6; }
7485if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7486 $as_echo_n "(cached) " >&6
718a6fd8
SE
7487else
7488 if test -n "$OTOOL64"; then
7489 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7490else
7491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492for as_dir in $PATH
7493do
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7498 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7500 break 2
7501 fi
7502done
81ecdfbb
RW
7503 done
7504IFS=$as_save_IFS
718a6fd8
SE
7505
7506fi
7507fi
7508OTOOL64=$ac_cv_prog_OTOOL64
7509if test -n "$OTOOL64"; then
81ecdfbb
RW
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7511$as_echo "$OTOOL64" >&6; }
718a6fd8 7512else
81ecdfbb
RW
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514$as_echo "no" >&6; }
718a6fd8
SE
7515fi
7516
81ecdfbb 7517
718a6fd8
SE
7518fi
7519if test -z "$ac_cv_prog_OTOOL64"; then
7520 ac_ct_OTOOL64=$OTOOL64
7521 # Extract the first word of "otool64", so it can be a program name with args.
7522set dummy otool64; ac_word=$2
81ecdfbb
RW
7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524$as_echo_n "checking for $ac_word... " >&6; }
7525if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7526 $as_echo_n "(cached) " >&6
718a6fd8
SE
7527else
7528 if test -n "$ac_ct_OTOOL64"; then
7529 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7530else
7531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532for as_dir in $PATH
7533do
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7538 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7540 break 2
7541 fi
7542done
81ecdfbb
RW
7543 done
7544IFS=$as_save_IFS
718a6fd8 7545
718a6fd8
SE
7546fi
7547fi
7548ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7549if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7551$as_echo "$ac_ct_OTOOL64" >&6; }
718a6fd8 7552else
81ecdfbb
RW
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554$as_echo "no" >&6; }
718a6fd8
SE
7555fi
7556
81ecdfbb
RW
7557 if test "x$ac_ct_OTOOL64" = x; then
7558 OTOOL64=":"
7559 else
7560 case $cross_compiling:$ac_tool_warned in
7561yes:)
7562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7564ac_tool_warned=yes ;;
7565esac
7566 OTOOL64=$ac_ct_OTOOL64
7567 fi
718a6fd8
SE
7568else
7569 OTOOL64="$ac_cv_prog_OTOOL64"
7570fi
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
81ecdfbb
RW
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7599$as_echo_n "checking for -single_module linker flag... " >&6; }
7600if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7601 $as_echo_n "(cached) " >&6
718a6fd8
SE
7602else
7603 lt_cv_apple_cc_single_mod=no
7604 if test -z "${LT_MULTI_MODULE}"; then
7605 # By default we will add the -single_module flag. You can override
7606 # by either setting the environment variable LT_MULTI_MODULE
7607 # non-empty at configure time, or by adding -multi_module to the
7608 # link flags.
7609 rm -rf libconftest.dylib*
7610 echo "int foo(void){return 1;}" > conftest.c
7611 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7612-dynamiclib -Wl,-single_module conftest.c" >&5
7613 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7614 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7615 _lt_result=$?
7616 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7617 lt_cv_apple_cc_single_mod=yes
7618 else
7619 cat conftest.err >&5
7620 fi
7621 rm -rf libconftest.dylib*
7622 rm -f conftest.*
7623 fi
7624fi
81ecdfbb
RW
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7626$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7628$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7629if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7630 $as_echo_n "(cached) " >&6
718a6fd8
SE
7631else
7632 lt_cv_ld_exported_symbols_list=no
7633 save_LDFLAGS=$LDFLAGS
7634 echo "_main" > conftest.sym
7635 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
7637/* end confdefs.h. */
7638
7639int
7640main ()
7641{
7642
7643 ;
7644 return 0;
7645}
7646_ACEOF
81ecdfbb 7647if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
7648 lt_cv_ld_exported_symbols_list=yes
7649else
81ecdfbb 7650 lt_cv_ld_exported_symbols_list=no
718a6fd8 7651fi
81ecdfbb
RW
7652rm -f core conftest.err conftest.$ac_objext \
7653 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
7654 LDFLAGS="$save_LDFLAGS"
7655
7656fi
81ecdfbb
RW
7657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7658$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
718a6fd8
SE
7659 case $host_os in
7660 rhapsody* | darwin1.[012])
7661 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7662 darwin1.*)
7663 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7664 darwin*) # darwin 5.x on
7665 # if running on 10.5 or later, the deployment target defaults
7666 # to the OS version, if on x86, and 10.4, the deployment
7667 # target defaults to 10.4. Don't you love it?
7668 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7669 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7670 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7671 10.[012]*)
7672 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7673 10.*)
7674 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7675 esac
7676 ;;
7677 esac
7678 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7679 _lt_dar_single_mod='$single_module'
7680 fi
7681 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7682 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7683 else
7684 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7685 fi
7686 if test "$DSYMUTIL" != ":"; then
7687 _lt_dsymutil='~$DSYMUTIL $lib || :'
7688 else
7689 _lt_dsymutil=
7690 fi
7691 ;;
7692 esac
7693
718a6fd8 7694for ac_header in dlfcn.h
81ecdfbb
RW
7695do :
7696 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7697"
7698if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
718a6fd8 7699 cat >>confdefs.h <<_ACEOF
81ecdfbb 7700#define HAVE_DLFCN_H 1
718a6fd8
SE
7701_ACEOF
7702
7703fi
7704
7705done
7706
7707
7708
7709# Set options
7710
7711
7712
7713 enable_dlopen=no
7714
7715
7716 enable_win32_dll=no
7717
7718
81ecdfbb
RW
7719 # Check whether --enable-shared was given.
7720if test "${enable_shared+set}" = set; then :
7721 enableval=$enable_shared; p=${PACKAGE-default}
718a6fd8
SE
7722 case $enableval in
7723 yes) enable_shared=yes ;;
7724 no) enable_shared=no ;;
7725 *)
7726 enable_shared=no
7727 # Look at the argument we got. We use all the common list separators.
7728 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7729 for pkg in $enableval; do
7730 IFS="$lt_save_ifs"
7731 if test "X$pkg" = "X$p"; then
7732 enable_shared=yes
7733 fi
7734 done
7735 IFS="$lt_save_ifs"
7736 ;;
7737 esac
7738else
7739 enable_shared=yes
81ecdfbb
RW
7740fi
7741
718a6fd8
SE
7742
7743
7744
7745
7746
7747
7748
7749
81ecdfbb
RW
7750 # Check whether --enable-static was given.
7751if test "${enable_static+set}" = set; then :
7752 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
7753 case $enableval in
7754 yes) enable_static=yes ;;
7755 no) enable_static=no ;;
7756 *)
7757 enable_static=no
7758 # Look at the argument we got. We use all the common list separators.
7759 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7760 for pkg in $enableval; do
7761 IFS="$lt_save_ifs"
7762 if test "X$pkg" = "X$p"; then
7763 enable_static=yes
7764 fi
7765 done
7766 IFS="$lt_save_ifs"
7767 ;;
7768 esac
7769else
7770 enable_static=yes
81ecdfbb
RW
7771fi
7772
718a6fd8
SE
7773
7774
d7040cdb 7775
d7040cdb 7776
718a6fd8
SE
7777
7778
7779
7780
7781
81ecdfbb
RW
7782# Check whether --with-pic was given.
7783if test "${with_pic+set}" = set; then :
7784 withval=$with_pic; pic_mode="$withval"
ce2cded5 7785else
718a6fd8 7786 pic_mode=default
81ecdfbb
RW
7787fi
7788
d7040cdb 7789
718a6fd8
SE
7790test -z "$pic_mode" && pic_mode=default
7791
7792
7793
7794
7795
7796
7797
81ecdfbb
RW
7798 # Check whether --enable-fast-install was given.
7799if test "${enable_fast_install+set}" = set; then :
7800 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
7801 case $enableval in
7802 yes) enable_fast_install=yes ;;
7803 no) enable_fast_install=no ;;
7804 *)
7805 enable_fast_install=no
7806 # Look at the argument we got. We use all the common list separators.
7807 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7808 for pkg in $enableval; do
7809 IFS="$lt_save_ifs"
7810 if test "X$pkg" = "X$p"; then
7811 enable_fast_install=yes
7812 fi
7813 done
7814 IFS="$lt_save_ifs"
7815 ;;
7816 esac
ce2cded5 7817else
718a6fd8 7818 enable_fast_install=yes
81ecdfbb
RW
7819fi
7820
718a6fd8
SE
7821
7822
7823
7824
d7040cdb 7825
d7040cdb 7826
d7040cdb 7827
d7040cdb 7828
d7040cdb 7829
d7040cdb 7830
ce2cded5
L
7831# This can be used to rebuild libtool when needed
7832LIBTOOL_DEPS="$ltmain"
d7040cdb 7833
ce2cded5
L
7834# Always use our own libtool.
7835LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 7836
d7040cdb 7837
d7040cdb 7838
d7040cdb
SE
7839
7840
7841
7842
7843
7844
d7040cdb 7845
d7040cdb 7846
ab509236 7847
ab509236 7848
d7040cdb
SE
7849
7850
7851
7852
7853
13b2be9c 7854
13b2be9c 7855
13b2be9c 7856
13b2be9c 7857
d7040cdb
SE
7858
7859
7860
ce2cded5 7861test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7862
7863
d7040cdb 7864
d7040cdb 7865
d7040cdb
SE
7866
7867
7868
7869
7870
7871
ce2cded5
L
7872
7873
7874
7875
7876if test -n "${ZSH_VERSION+set}" ; then
7877 setopt NO_GLOB_SUBST
7878fi
7879
81ecdfbb
RW
7880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7881$as_echo_n "checking for objdir... " >&6; }
7882if test "${lt_cv_objdir+set}" = set; then :
7883 $as_echo_n "(cached) " >&6
d7040cdb 7884else
ce2cded5
L
7885 rm -f .libs 2>/dev/null
7886mkdir .libs 2>/dev/null
7887if test -d .libs; then
7888 lt_cv_objdir=.libs
7889else
7890 # MS-DOS does not allow filenames that begin with a dot.
7891 lt_cv_objdir=_libs
d7040cdb 7892fi
ce2cded5
L
7893rmdir .libs 2>/dev/null
7894fi
81ecdfbb
RW
7895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7896$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 7897objdir=$lt_cv_objdir
d7040cdb
SE
7898
7899
7900
7901
d7040cdb 7902
ce2cded5
L
7903cat >>confdefs.h <<_ACEOF
7904#define LT_OBJDIR "$lt_cv_objdir/"
7905_ACEOF
d7040cdb
SE
7906
7907
7908
7909
7910
d7040cdb 7911
d7040cdb 7912
d7040cdb 7913
d7040cdb 7914
d7040cdb 7915
d7040cdb 7916
d7040cdb 7917
d7040cdb 7918
d7040cdb 7919
d7040cdb 7920
d7040cdb 7921
d7040cdb 7922
ce2cded5
L
7923case $host_os in
7924aix3*)
7925 # AIX sometimes has problems with the GCC collect2 program. For some
7926 # reason, if we set the COLLECT_NAMES environment variable, the problems
7927 # vanish in a puff of smoke.
7928 if test "X${COLLECT_NAMES+set}" != Xset; then
7929 COLLECT_NAMES=
7930 export COLLECT_NAMES
7931 fi
7932 ;;
7933esac
d7040cdb 7934
ce2cded5
L
7935# Sed substitution that helps us do robust quoting. It backslashifies
7936# metacharacters that are still active within double-quoted strings.
7937sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 7938
ce2cded5
L
7939# Same as above, but do not quote variable references.
7940double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 7941
ce2cded5
L
7942# Sed substitution to delay expansion of an escaped shell variable in a
7943# double_quote_subst'ed string.
7944delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 7945
ce2cded5
L
7946# Sed substitution to delay expansion of an escaped single quote.
7947delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 7948
ce2cded5
L
7949# Sed substitution to avoid accidental globbing in evaled expressions
7950no_glob_subst='s/\*/\\\*/g'
d7040cdb 7951
ce2cded5
L
7952# Global variables:
7953ofile=libtool
7954can_build_shared=yes
d7040cdb 7955
ce2cded5
L
7956# All known linkers require a `.a' archive for static linking (except MSVC,
7957# which needs '.lib').
7958libext=a
d7040cdb 7959
ce2cded5 7960with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7961
ce2cded5
L
7962old_CC="$CC"
7963old_CFLAGS="$CFLAGS"
d7040cdb 7964
ce2cded5
L
7965# Set sane defaults for various variables
7966test -z "$CC" && CC=cc
7967test -z "$LTCC" && LTCC=$CC
7968test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7969test -z "$LD" && LD=ld
7970test -z "$ac_objext" && ac_objext=o
7971
7972for cc_temp in $compiler""; do
7973 case $cc_temp in
7974 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7975 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7976 \-*) ;;
7977 *) break;;
7978 esac
7979done
7980cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7981
7982
7983# Only perform the check for file, if the check method requires it
7984test -z "$MAGIC_CMD" && MAGIC_CMD=file
7985case $deplibs_check_method in
7986file_magic*)
7987 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7989$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7990if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7991 $as_echo_n "(cached) " >&6
ce2cded5
L
7992else
7993 case $MAGIC_CMD in
7994[\\/*] | ?:[\\/]*)
7995 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7996 ;;
7997*)
7998 lt_save_MAGIC_CMD="$MAGIC_CMD"
7999 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8000 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8001 for ac_dir in $ac_dummy; do
8002 IFS="$lt_save_ifs"
8003 test -z "$ac_dir" && ac_dir=.
8004 if test -f $ac_dir/${ac_tool_prefix}file; then
8005 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8006 if test -n "$file_magic_test_file"; then
8007 case $deplibs_check_method in
8008 "file_magic "*)
8009 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8010 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8011 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8012 $EGREP "$file_magic_regex" > /dev/null; then
8013 :
d7040cdb 8014 else
ce2cded5 8015 cat <<_LT_EOF 1>&2
d7040cdb 8016
ce2cded5
L
8017*** Warning: the command libtool uses to detect shared libraries,
8018*** $file_magic_cmd, produces output that libtool cannot recognize.
8019*** The result is that libtool may fail to recognize shared libraries
8020*** as such. This will affect the creation of libtool libraries that
8021*** depend on shared libraries, but programs linked with such libtool
8022*** libraries will work regardless of this problem. Nevertheless, you
8023*** may want to report the problem to your system manager and/or to
8024*** bug-libtool@gnu.org
d7040cdb 8025
ce2cded5
L
8026_LT_EOF
8027 fi ;;
8028 esac
d7040cdb 8029 fi
ce2cded5 8030 break
d7040cdb 8031 fi
ce2cded5
L
8032 done
8033 IFS="$lt_save_ifs"
8034 MAGIC_CMD="$lt_save_MAGIC_CMD"
8035 ;;
8036esac
8037fi
d7040cdb 8038
ce2cded5
L
8039MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8040if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8042$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8043else
81ecdfbb
RW
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045$as_echo "no" >&6; }
ce2cded5 8046fi
d7040cdb 8047
d7040cdb 8048
d7040cdb 8049
d7040cdb 8050
d7040cdb 8051
ce2cded5
L
8052if test -z "$lt_cv_path_MAGIC_CMD"; then
8053 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8055$as_echo_n "checking for file... " >&6; }
8056if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8057 $as_echo_n "(cached) " >&6
ce2cded5
L
8058else
8059 case $MAGIC_CMD in
8060[\\/*] | ?:[\\/]*)
8061 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8062 ;;
8063*)
8064 lt_save_MAGIC_CMD="$MAGIC_CMD"
8065 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8066 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8067 for ac_dir in $ac_dummy; do
8068 IFS="$lt_save_ifs"
8069 test -z "$ac_dir" && ac_dir=.
8070 if test -f $ac_dir/file; then
8071 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8072 if test -n "$file_magic_test_file"; then
8073 case $deplibs_check_method in
8074 "file_magic "*)
8075 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8076 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8077 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8078 $EGREP "$file_magic_regex" > /dev/null; then
8079 :
d7040cdb 8080 else
ce2cded5
L
8081 cat <<_LT_EOF 1>&2
8082
8083*** Warning: the command libtool uses to detect shared libraries,
8084*** $file_magic_cmd, produces output that libtool cannot recognize.
8085*** The result is that libtool may fail to recognize shared libraries
8086*** as such. This will affect the creation of libtool libraries that
8087*** depend on shared libraries, but programs linked with such libtool
8088*** libraries will work regardless of this problem. Nevertheless, you
8089*** may want to report the problem to your system manager and/or to
8090*** bug-libtool@gnu.org
8091
8092_LT_EOF
8093 fi ;;
d7040cdb 8094 esac
d7040cdb 8095 fi
ce2cded5
L
8096 break
8097 fi
8098 done
8099 IFS="$lt_save_ifs"
8100 MAGIC_CMD="$lt_save_MAGIC_CMD"
8101 ;;
8102esac
8103fi
d7040cdb 8104
ce2cded5
L
8105MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8106if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8108$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8109else
81ecdfbb
RW
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111$as_echo "no" >&6; }
ce2cded5 8112fi
d7040cdb 8113
d7040cdb 8114
ce2cded5
L
8115 else
8116 MAGIC_CMD=:
8117 fi
d7040cdb 8118fi
d7040cdb 8119
ce2cded5
L
8120 fi
8121 ;;
8122esac
d7040cdb 8123
ce2cded5 8124# Use C for the default configuration in the libtool script
d7040cdb 8125
ce2cded5
L
8126lt_save_CC="$CC"
8127ac_ext=c
8128ac_cpp='$CPP $CPPFLAGS'
8129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8131ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 8132
d7040cdb 8133
ce2cded5
L
8134# Source file extension for C test sources.
8135ac_ext=c
d7040cdb 8136
ce2cded5
L
8137# Object file extension for compiled C test sources.
8138objext=o
8139objext=$objext
d7040cdb 8140
ce2cded5
L
8141# Code to be used in simple compile tests
8142lt_simple_compile_test_code="int some_variable = 0;"
8143
8144# Code to be used in simple link tests
8145lt_simple_link_test_code='int main(){return(0);}'
8146
8147
8148
8149
8150
8151
8152
8153# If no C compiler was specified, use CC.
8154LTCC=${LTCC-"$CC"}
8155
8156# If no C compiler flags were specified, use CFLAGS.
8157LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8158
8159# Allow CC to be a program name with arguments.
8160compiler=$CC
8161
8162# Save the default compiler, since it gets overwritten when the other
8163# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8164compiler_DEFAULT=$CC
8165
8166# save warnings/boilerplate of simple test code
8167ac_outfile=conftest.$ac_objext
8168echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8169eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8170_lt_compiler_boilerplate=`cat conftest.err`
8171$RM conftest*
8172
8173ac_outfile=conftest.$ac_objext
8174echo "$lt_simple_link_test_code" >conftest.$ac_ext
8175eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8176_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 8177$RM -r conftest*
ce2cded5
L
8178
8179
8180## CAVEAT EMPTOR:
8181## There is no encapsulation within the following macros, do not change
8182## the running order or otherwise move them around unless you know exactly
8183## what you are doing...
8184if test -n "$compiler"; then
8185
8186lt_prog_compiler_no_builtin_flag=
8187
8188if test "$GCC" = yes; then
8189 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8190
81ecdfbb
RW
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8192$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8193if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8194 $as_echo_n "(cached) " >&6
ce2cded5
L
8195else
8196 lt_cv_prog_compiler_rtti_exceptions=no
8197 ac_outfile=conftest.$ac_objext
8198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8199 lt_compiler_flag="-fno-rtti -fno-exceptions"
8200 # Insert the option either (1) after the last *FLAGS variable, or
8201 # (2) before a word containing "conftest.", or (3) at the end.
8202 # Note that $ac_compile itself does not contain backslashes and begins
8203 # with a dollar sign (not a hyphen), so the echo should work correctly.
8204 # The option is referenced via a variable to avoid confusing sed.
8205 lt_compile=`echo "$ac_compile" | $SED \
8206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8208 -e 's:$: $lt_compiler_flag:'`
da2f07f1 8209 (eval echo "\"\$as_me:8209: $lt_compile\"" >&5)
ce2cded5
L
8210 (eval "$lt_compile" 2>conftest.err)
8211 ac_status=$?
8212 cat conftest.err >&5
da2f07f1 8213 echo "$as_me:8213: \$? = $ac_status" >&5
ce2cded5
L
8214 if (exit $ac_status) && test -s "$ac_outfile"; then
8215 # The compiler can only warn and ignore the option if not recognized
8216 # So say no if there are warnings other than the usual output.
8217 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8219 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8220 lt_cv_prog_compiler_rtti_exceptions=yes
8221 fi
8222 fi
8223 $RM conftest*
8224
8225fi
81ecdfbb
RW
8226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8227$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
ce2cded5
L
8228
8229if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8230 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8231else
8232 :
8233fi
8234
8235fi
8236
8237
8238
8239
8240
8241
8242 lt_prog_compiler_wl=
8243lt_prog_compiler_pic=
8244lt_prog_compiler_static=
8245
81ecdfbb
RW
8246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8247$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
ce2cded5
L
8248
8249 if test "$GCC" = yes; then
8250 lt_prog_compiler_wl='-Wl,'
8251 lt_prog_compiler_static='-static'
8252
8253 case $host_os in
8254 aix*)
8255 # All AIX code is PIC.
8256 if test "$host_cpu" = ia64; then
8257 # AIX 5 now supports IA64 processor
8258 lt_prog_compiler_static='-Bstatic'
8259 fi
8260 ;;
d7040cdb
SE
8261
8262 amigaos*)
718a6fd8
SE
8263 case $host_cpu in
8264 powerpc)
8265 # see comment about AmigaOS4 .so support
8266 lt_prog_compiler_pic='-fPIC'
8267 ;;
8268 m68k)
8269 # FIXME: we need at least 68020 code to build shared libraries, but
8270 # adding the `-m68020' flag to GCC prevents building anything better,
8271 # like `-m68040'.
8272 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8273 ;;
8274 esac
d7040cdb
SE
8275 ;;
8276
ce2cded5
L
8277 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8278 # PIC is the default for these OSes.
d7040cdb
SE
8279 ;;
8280
718a6fd8 8281 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8282 # This hack is so that the source file can tell whether it is being
8283 # built for inclusion in a dll (and should export symbols for example).
8284 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8285 # (--disable-auto-import) libraries
8286 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8287 ;;
8288
8289 darwin* | rhapsody*)
ce2cded5
L
8290 # PIC is the default on this platform
8291 # Common symbols not allowed in MH_DYLIB files
8292 lt_prog_compiler_pic='-fno-common'
8293 ;;
8294
8295 hpux*)
718a6fd8
SE
8296 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8297 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8298 # sets the default TLS model and affects inlining.
ce2cded5 8299 case $host_cpu in
718a6fd8 8300 hppa*64*)
ce2cded5 8301 # +Z the default
d7040cdb 8302 ;;
ce2cded5
L
8303 *)
8304 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
8305 ;;
8306 esac
ce2cded5 8307 ;;
d7040cdb 8308
ce2cded5
L
8309 interix[3-9]*)
8310 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8311 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
8312 ;;
8313
ce2cded5
L
8314 msdosdjgpp*)
8315 # Just because we use GCC doesn't mean we suddenly get shared libraries
8316 # on systems that don't support them.
8317 lt_prog_compiler_can_build_shared=no
8318 enable_shared=no
d7040cdb
SE
8319 ;;
8320
ce2cded5
L
8321 *nto* | *qnx*)
8322 # QNX uses GNU C++, but need to define -shared option too, otherwise
8323 # it will coredump.
8324 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8325 ;;
8326
ce2cded5
L
8327 sysv4*MP*)
8328 if test -d /usr/nec; then
8329 lt_prog_compiler_pic=-Kconform_pic
8330 fi
d7040cdb
SE
8331 ;;
8332
ce2cded5
L
8333 *)
8334 lt_prog_compiler_pic='-fPIC'
d7040cdb 8335 ;;
ce2cded5
L
8336 esac
8337 else
8338 # PORTME Check for flag to pass linker flags through the system compiler.
8339 case $host_os in
8340 aix*)
8341 lt_prog_compiler_wl='-Wl,'
8342 if test "$host_cpu" = ia64; then
8343 # AIX 5 now supports IA64 processor
8344 lt_prog_compiler_static='-Bstatic'
d7040cdb 8345 else
ce2cded5 8346 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 8347 fi
ce2cded5 8348 ;;
d7040cdb 8349
718a6fd8 8350 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8351 # This hack is so that the source file can tell whether it is being
8352 # built for inclusion in a dll (and should export symbols for example).
8353 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8354 ;;
8355
ce2cded5
L
8356 hpux9* | hpux10* | hpux11*)
8357 lt_prog_compiler_wl='-Wl,'
8358 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8359 # not for PA HP-UX.
8360 case $host_cpu in
8361 hppa*64*|ia64*)
8362 # +Z the default
8363 ;;
8364 *)
8365 lt_prog_compiler_pic='+Z'
8366 ;;
8367 esac
8368 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8369 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
8370 ;;
8371
ce2cded5
L
8372 irix5* | irix6* | nonstopux*)
8373 lt_prog_compiler_wl='-Wl,'
8374 # PIC (with -KPIC) is the default.
8375 lt_prog_compiler_static='-non_shared'
8376 ;;
d7040cdb 8377
58e24671 8378 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8379 case $cc_basename in
718a6fd8
SE
8380 # old Intel for x86_64 which still supported -KPIC.
8381 ecc*)
ce2cded5
L
8382 lt_prog_compiler_wl='-Wl,'
8383 lt_prog_compiler_pic='-KPIC'
8384 lt_prog_compiler_static='-static'
8385 ;;
718a6fd8
SE
8386 # icc used to be incompatible with GCC.
8387 # ICC 10 doesn't accept -KPIC any more.
8388 icc* | ifort*)
8389 lt_prog_compiler_wl='-Wl,'
8390 lt_prog_compiler_pic='-fPIC'
8391 lt_prog_compiler_static='-static'
8392 ;;
8393 # Lahey Fortran 8.1.
8394 lf95*)
8395 lt_prog_compiler_wl='-Wl,'
8396 lt_prog_compiler_pic='--shared'
8397 lt_prog_compiler_static='--static'
8398 ;;
ce2cded5
L
8399 pgcc* | pgf77* | pgf90* | pgf95*)
8400 # Portland Group compilers (*not* the Pentium gcc compiler,
8401 # which looks to be a dead project)
8402 lt_prog_compiler_wl='-Wl,'
8403 lt_prog_compiler_pic='-fpic'
8404 lt_prog_compiler_static='-Bstatic'
8405 ;;
8406 ccc*)
8407 lt_prog_compiler_wl='-Wl,'
8408 # All Alpha code is PIC.
8409 lt_prog_compiler_static='-non_shared'
8410 ;;
718a6fd8
SE
8411 xl*)
8412 # IBM XL C 8.0/Fortran 10.1 on PPC
8413 lt_prog_compiler_wl='-Wl,'
8414 lt_prog_compiler_pic='-qpic'
8415 lt_prog_compiler_static='-qstaticlink'
8416 ;;
ce2cded5
L
8417 *)
8418 case `$CC -V 2>&1 | sed 5q` in
8419 *Sun\ C*)
8420 # Sun C 5.9
8421 lt_prog_compiler_pic='-KPIC'
8422 lt_prog_compiler_static='-Bstatic'
8423 lt_prog_compiler_wl='-Wl,'
d7040cdb 8424 ;;
ce2cded5
L
8425 *Sun\ F*)
8426 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8427 lt_prog_compiler_pic='-KPIC'
8428 lt_prog_compiler_static='-Bstatic'
8429 lt_prog_compiler_wl=''
d7040cdb
SE
8430 ;;
8431 esac
ce2cded5
L
8432 ;;
8433 esac
d7040cdb
SE
8434 ;;
8435
ce2cded5
L
8436 newsos6)
8437 lt_prog_compiler_pic='-KPIC'
8438 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8439 ;;
8440
ce2cded5
L
8441 *nto* | *qnx*)
8442 # QNX uses GNU C++, but need to define -shared option too, otherwise
8443 # it will coredump.
8444 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8445 ;;
8446
ce2cded5
L
8447 osf3* | osf4* | osf5*)
8448 lt_prog_compiler_wl='-Wl,'
8449 # All OSF/1 code is PIC.
8450 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8451 ;;
8452
ce2cded5
L
8453 rdos*)
8454 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8455 ;;
8456
8457 solaris*)
ce2cded5
L
8458 lt_prog_compiler_pic='-KPIC'
8459 lt_prog_compiler_static='-Bstatic'
8460 case $cc_basename in
8461 f77* | f90* | f95*)
8462 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 8463 *)
ce2cded5 8464 lt_prog_compiler_wl='-Wl,';;
d7040cdb 8465 esac
d7040cdb
SE
8466 ;;
8467
8468 sunos4*)
ce2cded5
L
8469 lt_prog_compiler_wl='-Qoption ld '
8470 lt_prog_compiler_pic='-PIC'
8471 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8472 ;;
8473
ce2cded5
L
8474 sysv4 | sysv4.2uw2* | sysv4.3*)
8475 lt_prog_compiler_wl='-Wl,'
8476 lt_prog_compiler_pic='-KPIC'
8477 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8478 ;;
8479
8480 sysv4*MP*)
ce2cded5
L
8481 if test -d /usr/nec ;then
8482 lt_prog_compiler_pic='-Kconform_pic'
8483 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8484 fi
8485 ;;
8486
ce2cded5
L
8487 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8488 lt_prog_compiler_wl='-Wl,'
8489 lt_prog_compiler_pic='-KPIC'
8490 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8491 ;;
8492
ce2cded5
L
8493 unicos*)
8494 lt_prog_compiler_wl='-Wl,'
8495 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8496 ;;
8497
8498 uts4*)
ce2cded5
L
8499 lt_prog_compiler_pic='-pic'
8500 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8501 ;;
8502
8503 *)
ce2cded5 8504 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8505 ;;
8506 esac
d7040cdb
SE
8507 fi
8508
ce2cded5
L
8509case $host_os in
8510 # For platforms which do not support PIC, -DPIC is meaningless:
8511 *djgpp*)
8512 lt_prog_compiler_pic=
8513 ;;
8514 *)
8515 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8516 ;;
8517esac
81ecdfbb
RW
8518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8519$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8520
8521
8522
8523
8524
8525
8526#
ce2cded5 8527# Check to make sure the PIC flag actually works.
d7040cdb 8528#
ce2cded5 8529if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8531$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8532if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8533 $as_echo_n "(cached) " >&6
ce2cded5 8534else
718a6fd8 8535 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8536 ac_outfile=conftest.$ac_objext
8537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8538 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8539 # Insert the option either (1) after the last *FLAGS variable, or
8540 # (2) before a word containing "conftest.", or (3) at the end.
8541 # Note that $ac_compile itself does not contain backslashes and begins
8542 # with a dollar sign (not a hyphen), so the echo should work correctly.
8543 # The option is referenced via a variable to avoid confusing sed.
8544 lt_compile=`echo "$ac_compile" | $SED \
8545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8547 -e 's:$: $lt_compiler_flag:'`
da2f07f1 8548 (eval echo "\"\$as_me:8548: $lt_compile\"" >&5)
ce2cded5
L
8549 (eval "$lt_compile" 2>conftest.err)
8550 ac_status=$?
8551 cat conftest.err >&5
da2f07f1 8552 echo "$as_me:8552: \$? = $ac_status" >&5
ce2cded5
L
8553 if (exit $ac_status) && test -s "$ac_outfile"; then
8554 # The compiler can only warn and ignore the option if not recognized
8555 # So say no if there are warnings other than the usual output.
8556 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8558 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8559 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8560 fi
8561 fi
8562 $RM conftest*
d7040cdb 8563
ce2cded5 8564fi
81ecdfbb
RW
8565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8566$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8567
718a6fd8 8568if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8569 case $lt_prog_compiler_pic in
8570 "" | " "*) ;;
8571 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8572 esac
8573else
8574 lt_prog_compiler_pic=
8575 lt_prog_compiler_can_build_shared=no
8576fi
d7040cdb 8577
ce2cded5 8578fi
d7040cdb
SE
8579
8580
8581
8582
8583
8584
ce2cded5
L
8585#
8586# Check to make sure the static flag actually works.
8587#
8588wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8590$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8591if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8592 $as_echo_n "(cached) " >&6
ce2cded5 8593else
718a6fd8 8594 lt_cv_prog_compiler_static_works=no
ce2cded5
L
8595 save_LDFLAGS="$LDFLAGS"
8596 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8597 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8598 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8599 # The linker can only warn and ignore the option if not recognized
8600 # So say no if there are warnings
8601 if test -s conftest.err; then
8602 # Append any errors to the config.log.
8603 cat conftest.err 1>&5
8604 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8605 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8606 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8607 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8608 fi
8609 else
718a6fd8 8610 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8611 fi
8612 fi
718a6fd8 8613 $RM -r conftest*
ce2cded5 8614 LDFLAGS="$save_LDFLAGS"
d7040cdb 8615
ce2cded5 8616fi
81ecdfbb
RW
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8618$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8619
718a6fd8 8620if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
8621 :
8622else
8623 lt_prog_compiler_static=
8624fi
d7040cdb
SE
8625
8626
8627
8628
8629
8630
8631
81ecdfbb
RW
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8633$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8634if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8635 $as_echo_n "(cached) " >&6
ce2cded5
L
8636else
8637 lt_cv_prog_compiler_c_o=no
8638 $RM -r conftest 2>/dev/null
8639 mkdir conftest
8640 cd conftest
8641 mkdir out
8642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8643
ce2cded5
L
8644 lt_compiler_flag="-o out/conftest2.$ac_objext"
8645 # Insert the option either (1) after the last *FLAGS variable, or
8646 # (2) before a word containing "conftest.", or (3) at the end.
8647 # Note that $ac_compile itself does not contain backslashes and begins
8648 # with a dollar sign (not a hyphen), so the echo should work correctly.
8649 lt_compile=`echo "$ac_compile" | $SED \
8650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8652 -e 's:$: $lt_compiler_flag:'`
da2f07f1 8653 (eval echo "\"\$as_me:8653: $lt_compile\"" >&5)
ce2cded5
L
8654 (eval "$lt_compile" 2>out/conftest.err)
8655 ac_status=$?
8656 cat out/conftest.err >&5
da2f07f1 8657 echo "$as_me:8657: \$? = $ac_status" >&5
ce2cded5
L
8658 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8659 then
8660 # The compiler can only warn and ignore the option if not recognized
8661 # So say no if there are warnings
8662 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8663 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8664 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8665 lt_cv_prog_compiler_c_o=yes
8666 fi
8667 fi
8668 chmod u+w . 2>&5
8669 $RM conftest*
8670 # SGI C++ compiler will create directory out/ii_files/ for
8671 # template instantiation
8672 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8673 $RM out/* && rmdir out
8674 cd ..
8675 $RM -r conftest
8676 $RM conftest*
d7040cdb 8677
ce2cded5 8678fi
81ecdfbb
RW
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8680$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8681
8682
8683
8684
8685
8686
81ecdfbb
RW
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8688$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8689if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8690 $as_echo_n "(cached) " >&6
ce2cded5
L
8691else
8692 lt_cv_prog_compiler_c_o=no
8693 $RM -r conftest 2>/dev/null
8694 mkdir conftest
8695 cd conftest
8696 mkdir out
8697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8698
ce2cded5
L
8699 lt_compiler_flag="-o out/conftest2.$ac_objext"
8700 # Insert the option either (1) after the last *FLAGS variable, or
8701 # (2) before a word containing "conftest.", or (3) at the end.
8702 # Note that $ac_compile itself does not contain backslashes and begins
8703 # with a dollar sign (not a hyphen), so the echo should work correctly.
8704 lt_compile=`echo "$ac_compile" | $SED \
8705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8707 -e 's:$: $lt_compiler_flag:'`
da2f07f1 8708 (eval echo "\"\$as_me:8708: $lt_compile\"" >&5)
ce2cded5
L
8709 (eval "$lt_compile" 2>out/conftest.err)
8710 ac_status=$?
8711 cat out/conftest.err >&5
da2f07f1 8712 echo "$as_me:8712: \$? = $ac_status" >&5
ce2cded5
L
8713 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8714 then
8715 # The compiler can only warn and ignore the option if not recognized
8716 # So say no if there are warnings
8717 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8718 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8719 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8720 lt_cv_prog_compiler_c_o=yes
8721 fi
8722 fi
8723 chmod u+w . 2>&5
8724 $RM conftest*
8725 # SGI C++ compiler will create directory out/ii_files/ for
8726 # template instantiation
8727 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8728 $RM out/* && rmdir out
8729 cd ..
8730 $RM -r conftest
8731 $RM conftest*
d7040cdb 8732
ce2cded5 8733fi
81ecdfbb
RW
8734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8735$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8736
8737
8738
8739
ce2cded5
L
8740hard_links="nottested"
8741if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8742 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8744$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
8745 hard_links=yes
8746 $RM conftest*
8747 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8748 touch conftest.a
8749 ln conftest.a conftest.b 2>&5 || hard_links=no
8750 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8752$as_echo "$hard_links" >&6; }
ce2cded5 8753 if test "$hard_links" = no; then
81ecdfbb
RW
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8755$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5
L
8756 need_locks=warn
8757 fi
8758else
8759 need_locks=no
8760fi
d7040cdb
SE
8761
8762
8763
8764
8765
8766
81ecdfbb
RW
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8768$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 8769
ce2cded5
L
8770 runpath_var=
8771 allow_undefined_flag=
8772 always_export_symbols=no
8773 archive_cmds=
8774 archive_expsym_cmds=
8775 compiler_needs_object=no
8776 enable_shared_with_static_runtimes=no
8777 export_dynamic_flag_spec=
8778 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8779 hardcode_automatic=no
8780 hardcode_direct=no
8781 hardcode_direct_absolute=no
8782 hardcode_libdir_flag_spec=
8783 hardcode_libdir_flag_spec_ld=
8784 hardcode_libdir_separator=
8785 hardcode_minus_L=no
8786 hardcode_shlibpath_var=unsupported
8787 inherit_rpath=no
8788 link_all_deplibs=unknown
8789 module_cmds=
8790 module_expsym_cmds=
8791 old_archive_from_new_cmds=
8792 old_archive_from_expsyms_cmds=
8793 thread_safe_flag_spec=
8794 whole_archive_flag_spec=
8795 # include_expsyms should be a list of space-separated symbols to be *always*
8796 # included in the symbol list
8797 include_expsyms=
8798 # exclude_expsyms can be an extended regexp of symbols to exclude
8799 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8800 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8801 # as well as any symbol that contains `d'.
718a6fd8 8802 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
8803 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8804 # platforms (ab)use it in PIC code, but their linkers get confused if
8805 # the symbol is explicitly referenced. Since portable code cannot
8806 # rely on this symbol name, it's probably fine to never include it in
8807 # preloaded symbol tables.
718a6fd8 8808 # Exclude shared library initialization/finalization symbols.
ce2cded5 8809 extract_expsyms_cmds=
d7040cdb 8810
ce2cded5 8811 case $host_os in
718a6fd8 8812 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8813 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8814 # When not using gcc, we currently assume that we are using
8815 # Microsoft Visual C++.
8816 if test "$GCC" != yes; then
8817 with_gnu_ld=no
8818 fi
8819 ;;
8820 interix*)
8821 # we just hope/assume this is gcc and not c89 (= MSVC++)
8822 with_gnu_ld=yes
8823 ;;
8824 openbsd*)
8825 with_gnu_ld=no
8826 ;;
8827 esac
d7040cdb 8828
ce2cded5
L
8829 ld_shlibs=yes
8830 if test "$with_gnu_ld" = yes; then
8831 # If archive_cmds runs LD, not CC, wlarc should be empty
8832 wlarc='${wl}'
d7040cdb 8833
ce2cded5
L
8834 # Set some defaults for GNU ld with shared library support. These
8835 # are reset later if shared libraries are not supported. Putting them
8836 # here allows them to be overridden if necessary.
8837 runpath_var=LD_RUN_PATH
8838 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8839 export_dynamic_flag_spec='${wl}--export-dynamic'
8840 # ancient GNU ld didn't support --whole-archive et. al.
8841 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8842 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8843 else
8844 whole_archive_flag_spec=
8845 fi
8846 supports_anon_versioning=no
8847 case `$LD -v 2>&1` in
8848 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8849 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8850 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8851 *\ 2.11.*) ;; # other 2.11 versions
8852 *) supports_anon_versioning=yes ;;
8853 esac
d7040cdb 8854
ce2cded5
L
8855 # See if GNU ld supports shared libraries.
8856 case $host_os in
50e7d84b 8857 aix[3-9]*)
ce2cded5
L
8858 # On AIX/PPC, the GNU linker is very broken
8859 if test "$host_cpu" != ia64; then
8860 ld_shlibs=no
8861 cat <<_LT_EOF 1>&2
d7040cdb 8862
ce2cded5
L
8863*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8864*** to be unable to reliably create shared libraries on AIX.
8865*** Therefore, libtool is disabling shared libraries support. If you
8866*** really care for shared libraries, you may want to modify your PATH
8867*** so that a non-GNU linker is found, and then restart.
d7040cdb 8868
ce2cded5
L
8869_LT_EOF
8870 fi
8871 ;;
d7040cdb 8872
ce2cded5 8873 amigaos*)
718a6fd8
SE
8874 case $host_cpu in
8875 powerpc)
8876 # see comment about AmigaOS4 .so support
8877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8878 archive_expsym_cmds=''
8879 ;;
8880 m68k)
8881 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)'
8882 hardcode_libdir_flag_spec='-L$libdir'
8883 hardcode_minus_L=yes
8884 ;;
8885 esac
ce2cded5 8886 ;;
d7040cdb 8887
ce2cded5
L
8888 beos*)
8889 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8890 allow_undefined_flag=unsupported
8891 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8892 # support --undefined. This deserves some investigation. FIXME
8893 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8894 else
8895 ld_shlibs=no
8896 fi
8897 ;;
d7040cdb 8898
718a6fd8 8899 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8900 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8901 # as there is no search path for DLLs.
8902 hardcode_libdir_flag_spec='-L$libdir'
8903 allow_undefined_flag=unsupported
8904 always_export_symbols=no
8905 enable_shared_with_static_runtimes=yes
8906 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 8907
ce2cded5
L
8908 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8909 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8910 # If the export-symbols file already is a .def file (1st line
8911 # is EXPORTS), use it as is; otherwise, prepend...
8912 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8913 cp $export_symbols $output_objdir/$soname.def;
8914 else
8915 echo EXPORTS > $output_objdir/$soname.def;
8916 cat $export_symbols >> $output_objdir/$soname.def;
8917 fi~
8918 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8919 else
8920 ld_shlibs=no
8921 fi
8922 ;;
d7040cdb 8923
ce2cded5
L
8924 interix[3-9]*)
8925 hardcode_direct=no
8926 hardcode_shlibpath_var=no
8927 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8928 export_dynamic_flag_spec='${wl}-E'
8929 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8930 # Instead, shared libraries are loaded at an image base (0x10000000 by
8931 # default) and relocated if they conflict, which is a slow very memory
8932 # consuming and fragmenting process. To avoid this, we pick a random,
8933 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8934 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8935 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8936 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'
8937 ;;
d7040cdb 8938
58e24671 8939 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
8940 tmp_diet=no
8941 if test "$host_os" = linux-dietlibc; then
8942 case $cc_basename in
8943 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8944 esac
8945 fi
8946 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8947 && test "$tmp_diet" = no
8948 then
8949 tmp_addflag=
718a6fd8 8950 tmp_sharedflag='-shared'
ce2cded5
L
8951 case $cc_basename,$host_cpu in
8952 pgcc*) # Portland Group C compiler
8953 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8954 tmp_addflag=' $pic_flag'
8955 ;;
8956 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8957 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8958 tmp_addflag=' $pic_flag -Mnomain' ;;
8959 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8960 tmp_addflag=' -i_dynamic' ;;
8961 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8962 tmp_addflag=' -i_dynamic -nofor_main' ;;
8963 ifc* | ifort*) # Intel Fortran compiler
8964 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8965 lf95*) # Lahey Fortran 8.1
8966 whole_archive_flag_spec=
8967 tmp_sharedflag='--shared' ;;
8968 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8969 tmp_sharedflag='-qmkshrobj'
8970 tmp_addflag= ;;
ce2cded5
L
8971 esac
8972 case `$CC -V 2>&1 | sed 5q` in
8973 *Sun\ C*) # Sun C 5.9
8974 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8975 compiler_needs_object=yes
8976 tmp_sharedflag='-G' ;;
8977 *Sun\ F*) # Sun Fortran 8.3
8978 tmp_sharedflag='-G' ;;
ce2cded5
L
8979 esac
8980 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 8981
ce2cded5
L
8982 if test "x$supports_anon_versioning" = xyes; then
8983 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8984 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8985 echo "local: *; };" >> $output_objdir/$libname.ver~
8986 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8987 fi
718a6fd8
SE
8988
8989 case $cc_basename in
8990 xlf*)
8991 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8992 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8993 hardcode_libdir_flag_spec=
8994 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8995 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8996 if test "x$supports_anon_versioning" = xyes; then
8997 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8998 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8999 echo "local: *; };" >> $output_objdir/$libname.ver~
9000 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9001 fi
9002 ;;
9003 esac
ce2cded5
L
9004 else
9005 ld_shlibs=no
9006 fi
9007 ;;
d7040cdb 9008
ce2cded5
L
9009 netbsd*)
9010 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9011 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9012 wlarc=
9013 else
9014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9015 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9016 fi
9017 ;;
d7040cdb 9018
ce2cded5
L
9019 solaris*)
9020 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9021 ld_shlibs=no
9022 cat <<_LT_EOF 1>&2
d7040cdb 9023
ce2cded5
L
9024*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9025*** create shared libraries on Solaris systems. Therefore, libtool
9026*** is disabling shared libraries support. We urge you to upgrade GNU
9027*** binutils to release 2.9.1 or newer. Another option is to modify
9028*** your PATH or compiler configuration so that the native linker is
9029*** used, and then restart.
d7040cdb 9030
ce2cded5
L
9031_LT_EOF
9032 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9035 else
9036 ld_shlibs=no
9037 fi
9038 ;;
d7040cdb 9039
ce2cded5
L
9040 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9041 case `$LD -v 2>&1` in
9042 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9043 ld_shlibs=no
9044 cat <<_LT_EOF 1>&2
d7040cdb 9045
ce2cded5
L
9046*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9047*** reliably create shared libraries on SCO systems. Therefore, libtool
9048*** is disabling shared libraries support. We urge you to upgrade GNU
9049*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9050*** your PATH or compiler configuration so that the native linker is
9051*** used, and then restart.
d7040cdb 9052
ce2cded5
L
9053_LT_EOF
9054 ;;
9055 *)
9056 # For security reasons, it is highly recommended that you always
9057 # use absolute paths for naming shared libraries, and exclude the
9058 # DT_RUNPATH tag from executables and libraries. But doing so
9059 # requires that you compile everything twice, which is a pain.
9060 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9061 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9063 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9064 else
9065 ld_shlibs=no
9066 fi
9067 ;;
9068 esac
9069 ;;
d7040cdb 9070
ce2cded5
L
9071 sunos4*)
9072 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9073 wlarc=
9074 hardcode_direct=yes
9075 hardcode_shlibpath_var=no
9076 ;;
d7040cdb 9077
ce2cded5
L
9078 *)
9079 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9081 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9082 else
9083 ld_shlibs=no
9084 fi
9085 ;;
9086 esac
d7040cdb 9087
ce2cded5
L
9088 if test "$ld_shlibs" = no; then
9089 runpath_var=
9090 hardcode_libdir_flag_spec=
9091 export_dynamic_flag_spec=
9092 whole_archive_flag_spec=
9093 fi
9094 else
9095 # PORTME fill in a description of your system's linker (not GNU ld)
9096 case $host_os in
9097 aix3*)
9098 allow_undefined_flag=unsupported
9099 always_export_symbols=yes
9100 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'
9101 # Note: this linker hardcodes the directories in LIBPATH if there
9102 # are no directories specified by -L.
9103 hardcode_minus_L=yes
9104 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9105 # Neither direct hardcoding nor static linking is supported with a
9106 # broken collect2.
9107 hardcode_direct=unsupported
9108 fi
9109 ;;
d7040cdb 9110
50e7d84b 9111 aix[4-9]*)
ce2cded5
L
9112 if test "$host_cpu" = ia64; then
9113 # On IA64, the linker does run time linking by default, so we don't
9114 # have to do anything special.
9115 aix_use_runtimelinking=no
9116 exp_sym_flag='-Bexport'
9117 no_entry_flag=""
9118 else
9119 # If we're using GNU nm, then we don't want the "-C" option.
9120 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9121 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9122 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9123 else
9124 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'
9125 fi
9126 aix_use_runtimelinking=no
d7040cdb 9127
ce2cded5
L
9128 # Test if we are trying to use run time linking or normal
9129 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9130 # need to do runtime linking.
50e7d84b 9131 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9132 for ld_flag in $LDFLAGS; do
9133 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9134 aix_use_runtimelinking=yes
9135 break
9136 fi
9137 done
9138 ;;
9139 esac
d7040cdb 9140
ce2cded5
L
9141 exp_sym_flag='-bexport'
9142 no_entry_flag='-bnoentry'
9143 fi
d7040cdb 9144
ce2cded5
L
9145 # When large executables or shared objects are built, AIX ld can
9146 # have problems creating the table of contents. If linking a library
9147 # or program results in "error TOC overflow" add -mminimal-toc to
9148 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9149 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 9150
ce2cded5
L
9151 archive_cmds=''
9152 hardcode_direct=yes
9153 hardcode_direct_absolute=yes
9154 hardcode_libdir_separator=':'
9155 link_all_deplibs=yes
9156 file_list_spec='${wl}-f,'
d7040cdb 9157
ce2cded5
L
9158 if test "$GCC" = yes; then
9159 case $host_os in aix4.[012]|aix4.[012].*)
9160 # We only want to do this on AIX 4.2 and lower, the check
9161 # below for broken collect2 doesn't work under 4.3+
9162 collect2name=`${CC} -print-prog-name=collect2`
9163 if test -f "$collect2name" &&
9164 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9165 then
9166 # We have reworked collect2
9167 :
9168 else
9169 # We have old collect2
9170 hardcode_direct=unsupported
9171 # It fails to find uninstalled libraries when the uninstalled
9172 # path is not listed in the libpath. Setting hardcode_minus_L
9173 # to unsupported forces relinking
9174 hardcode_minus_L=yes
9175 hardcode_libdir_flag_spec='-L$libdir'
9176 hardcode_libdir_separator=
9177 fi
9178 ;;
9179 esac
9180 shared_flag='-shared'
9181 if test "$aix_use_runtimelinking" = yes; then
9182 shared_flag="$shared_flag "'${wl}-G'
9183 fi
9184 else
9185 # not using gcc
9186 if test "$host_cpu" = ia64; then
9187 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9188 # chokes on -Wl,-G. The following line is correct:
9189 shared_flag='-G'
9190 else
9191 if test "$aix_use_runtimelinking" = yes; then
9192 shared_flag='${wl}-G'
9193 else
9194 shared_flag='${wl}-bM:SRE'
9195 fi
9196 fi
9197 fi
d7040cdb 9198
718a6fd8 9199 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9200 # It seems that -bexpall does not export symbols beginning with
9201 # underscore (_), so it is better to generate a list of symbols to export.
9202 always_export_symbols=yes
9203 if test "$aix_use_runtimelinking" = yes; then
9204 # Warning - without using the other runtime loading flags (-brtl),
9205 # -berok will link without error, but may produce a broken library.
9206 allow_undefined_flag='-berok'
9207 # Determine the default libpath from the value encoded in an
9208 # empty executable.
81ecdfbb 9209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9210/* end confdefs.h. */
d7040cdb 9211
ce2cded5
L
9212int
9213main ()
9214{
d7040cdb 9215
ce2cded5
L
9216 ;
9217 return 0;
9218}
9219_ACEOF
81ecdfbb 9220if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9221
ce2cded5
L
9222lt_aix_libpath_sed='
9223 /Import File Strings/,/^$/ {
9224 /^0/ {
9225 s/^0 *\(.*\)$/\1/
9226 p
9227 }
9228 }'
9229aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9230# Check for a 64-bit object if we didn't find anything.
9231if test -z "$aix_libpath"; then
9232 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9233fi
ce2cded5 9234fi
81ecdfbb
RW
9235rm -f core conftest.err conftest.$ac_objext \
9236 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9237if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9238
ce2cded5
L
9239 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9240 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9241 else
9242 if test "$host_cpu" = ia64; then
9243 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9244 allow_undefined_flag="-z nodefs"
9245 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"
9246 else
9247 # Determine the default libpath from the value encoded in an
9248 # empty executable.
81ecdfbb 9249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9250/* end confdefs.h. */
d7040cdb 9251
ce2cded5
L
9252int
9253main ()
9254{
d7040cdb 9255
ce2cded5
L
9256 ;
9257 return 0;
9258}
9259_ACEOF
81ecdfbb 9260if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9261
ce2cded5
L
9262lt_aix_libpath_sed='
9263 /Import File Strings/,/^$/ {
9264 /^0/ {
9265 s/^0 *\(.*\)$/\1/
9266 p
9267 }
9268 }'
9269aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9270# Check for a 64-bit object if we didn't find anything.
9271if test -z "$aix_libpath"; then
9272 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9273fi
ce2cded5 9274fi
81ecdfbb
RW
9275rm -f core conftest.err conftest.$ac_objext \
9276 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9277if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9278
ce2cded5
L
9279 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9280 # Warning - without using the other run time loading flags,
9281 # -berok will link without error, but may produce a broken library.
9282 no_undefined_flag=' ${wl}-bernotok'
9283 allow_undefined_flag=' ${wl}-berok'
9284 # Exported symbols can be pulled into shared objects from archives
9285 whole_archive_flag_spec='$convenience'
9286 archive_cmds_need_lc=yes
9287 # This is similar to how AIX traditionally builds its shared libraries.
9288 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'
9289 fi
9290 fi
9291 ;;
d7040cdb 9292
ce2cded5 9293 amigaos*)
718a6fd8
SE
9294 case $host_cpu in
9295 powerpc)
9296 # see comment about AmigaOS4 .so support
9297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9298 archive_expsym_cmds=''
9299 ;;
9300 m68k)
9301 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)'
9302 hardcode_libdir_flag_spec='-L$libdir'
9303 hardcode_minus_L=yes
9304 ;;
9305 esac
ce2cded5 9306 ;;
d7040cdb 9307
ce2cded5
L
9308 bsdi[45]*)
9309 export_dynamic_flag_spec=-rdynamic
9310 ;;
d7040cdb 9311
718a6fd8 9312 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9313 # When not using gcc, we currently assume that we are using
9314 # Microsoft Visual C++.
9315 # hardcode_libdir_flag_spec is actually meaningless, as there is
9316 # no search path for DLLs.
9317 hardcode_libdir_flag_spec=' '
9318 allow_undefined_flag=unsupported
9319 # Tell ltmain to make .lib files, not .a files.
9320 libext=lib
9321 # Tell ltmain to make .dll files, not .so files.
9322 shrext_cmds=".dll"
9323 # FIXME: Setting linknames here is a bad hack.
9324 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9325 # The linker will automatically build a .lib file if we build a DLL.
9326 old_archive_from_new_cmds='true'
9327 # FIXME: Should let the user specify the lib program.
9328 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9329 fix_srcfile_path='`cygpath -w "$srcfile"`'
9330 enable_shared_with_static_runtimes=yes
9331 ;;
d7040cdb 9332
ce2cded5 9333 darwin* | rhapsody*)
d7040cdb 9334
718a6fd8
SE
9335
9336 archive_cmds_need_lc=no
9337 hardcode_direct=no
9338 hardcode_automatic=yes
9339 hardcode_shlibpath_var=unsupported
9340 whole_archive_flag_spec=''
9341 link_all_deplibs=yes
9342 allow_undefined_flag="$_lt_dar_allow_undefined"
9343 case $cc_basename in
9344 ifort*) _lt_dar_can_shared=yes ;;
9345 *) _lt_dar_can_shared=$GCC ;;
9346 esac
9347 if test "$_lt_dar_can_shared" = "yes"; then
9348 output_verbose_link_cmd=echo
9349 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9350 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9351 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}"
9352 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}"
9353
9354 else
9355 ld_shlibs=no
9356 fi
9357
ce2cded5 9358 ;;
d7040cdb 9359
ce2cded5
L
9360 dgux*)
9361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9362 hardcode_libdir_flag_spec='-L$libdir'
9363 hardcode_shlibpath_var=no
9364 ;;
d7040cdb 9365
ce2cded5
L
9366 freebsd1*)
9367 ld_shlibs=no
9368 ;;
d7040cdb 9369
ce2cded5
L
9370 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9371 # support. Future versions do this automatically, but an explicit c++rt0.o
9372 # does not break anything, and helps significantly (at the cost of a little
9373 # extra space).
9374 freebsd2.2*)
9375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9376 hardcode_libdir_flag_spec='-R$libdir'
9377 hardcode_direct=yes
9378 hardcode_shlibpath_var=no
9379 ;;
d7040cdb 9380
ce2cded5
L
9381 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9382 freebsd2*)
9383 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9384 hardcode_direct=yes
9385 hardcode_minus_L=yes
9386 hardcode_shlibpath_var=no
9387 ;;
d7040cdb 9388
ce2cded5
L
9389 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9390 freebsd* | dragonfly*)
9391 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9392 hardcode_libdir_flag_spec='-R$libdir'
9393 hardcode_direct=yes
9394 hardcode_shlibpath_var=no
9395 ;;
d7040cdb 9396
ce2cded5
L
9397 hpux9*)
9398 if test "$GCC" = yes; then
9399 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'
9400 else
9401 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'
9402 fi
9403 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9404 hardcode_libdir_separator=:
9405 hardcode_direct=yes
d7040cdb 9406
ce2cded5
L
9407 # hardcode_minus_L: Not really in the search PATH,
9408 # but as the default location of the library.
9409 hardcode_minus_L=yes
9410 export_dynamic_flag_spec='${wl}-E'
9411 ;;
d7040cdb 9412
ce2cded5
L
9413 hpux10*)
9414 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9415 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9416 else
9417 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9418 fi
9419 if test "$with_gnu_ld" = no; then
9420 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9421 hardcode_libdir_flag_spec_ld='+b $libdir'
9422 hardcode_libdir_separator=:
9423 hardcode_direct=yes
9424 hardcode_direct_absolute=yes
9425 export_dynamic_flag_spec='${wl}-E'
9426 # hardcode_minus_L: Not really in the search PATH,
9427 # but as the default location of the library.
9428 hardcode_minus_L=yes
9429 fi
9430 ;;
d7040cdb 9431
ce2cded5
L
9432 hpux11*)
9433 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9434 case $host_cpu in
9435 hppa*64*)
9436 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9437 ;;
9438 ia64*)
718a6fd8 9439 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9440 ;;
9441 *)
9442 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9443 ;;
9444 esac
9445 else
9446 case $host_cpu in
9447 hppa*64*)
9448 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9449 ;;
9450 ia64*)
9451 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9452 ;;
9453 *)
9454 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9455 ;;
9456 esac
9457 fi
9458 if test "$with_gnu_ld" = no; then
9459 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9460 hardcode_libdir_separator=:
d7040cdb 9461
ce2cded5
L
9462 case $host_cpu in
9463 hppa*64*|ia64*)
9464 hardcode_direct=no
9465 hardcode_shlibpath_var=no
9466 ;;
9467 *)
9468 hardcode_direct=yes
9469 hardcode_direct_absolute=yes
9470 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9471
ce2cded5
L
9472 # hardcode_minus_L: Not really in the search PATH,
9473 # but as the default location of the library.
9474 hardcode_minus_L=yes
9475 ;;
9476 esac
9477 fi
9478 ;;
9479
9480 irix5* | irix6* | nonstopux*)
9481 if test "$GCC" = yes; then
9482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9483 # Try to use the -exported_symbol ld option, if it does not
9484 # work, assume that -exports_file does not work either and
9485 # implicitly export all symbols.
9486 save_LDFLAGS="$LDFLAGS"
9487 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489/* end confdefs.h. */
ce2cded5
L
9490int foo(void) {}
9491_ACEOF
81ecdfbb 9492if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 9493 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
d7040cdb 9494
d7040cdb 9495fi
81ecdfbb
RW
9496rm -f core conftest.err conftest.$ac_objext \
9497 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
9498 LDFLAGS="$save_LDFLAGS"
9499 else
9500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9501 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9502 fi
9503 archive_cmds_need_lc='no'
9504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9505 hardcode_libdir_separator=:
9506 inherit_rpath=yes
9507 link_all_deplibs=yes
9508 ;;
d7040cdb 9509
ce2cded5
L
9510 netbsd*)
9511 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9512 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9513 else
9514 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9515 fi
9516 hardcode_libdir_flag_spec='-R$libdir'
9517 hardcode_direct=yes
9518 hardcode_shlibpath_var=no
9519 ;;
d7040cdb 9520
ce2cded5
L
9521 newsos6)
9522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9523 hardcode_direct=yes
9524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9525 hardcode_libdir_separator=:
9526 hardcode_shlibpath_var=no
9527 ;;
d7040cdb 9528
ce2cded5
L
9529 *nto* | *qnx*)
9530 ;;
d7040cdb 9531
ce2cded5 9532 openbsd*)
718a6fd8
SE
9533 if test -f /usr/libexec/ld.so; then
9534 hardcode_direct=yes
9535 hardcode_shlibpath_var=no
9536 hardcode_direct_absolute=yes
9537 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 9538 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9539 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 9540 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9541 export_dynamic_flag_spec='${wl}-E'
9542 else
9543 case $host_os in
9544 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9545 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9546 hardcode_libdir_flag_spec='-R$libdir'
9547 ;;
9548 *)
9549 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9550 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9551 ;;
9552 esac
9553 fi
9554 else
9555 ld_shlibs=no
d7040cdb
SE
9556 fi
9557 ;;
d7040cdb 9558
ce2cded5
L
9559 os2*)
9560 hardcode_libdir_flag_spec='-L$libdir'
9561 hardcode_minus_L=yes
9562 allow_undefined_flag=unsupported
9563 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'
9564 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9565 ;;
d7040cdb 9566
ce2cded5
L
9567 osf3*)
9568 if test "$GCC" = yes; then
9569 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9570 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9571 else
9572 allow_undefined_flag=' -expect_unresolved \*'
9573 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9574 fi
9575 archive_cmds_need_lc='no'
9576 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9577 hardcode_libdir_separator=:
9578 ;;
d7040cdb 9579
ce2cded5
L
9580 osf4* | osf5*) # as osf3* with the addition of -msym flag
9581 if test "$GCC" = yes; then
9582 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9583 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9584 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9585 else
9586 allow_undefined_flag=' -expect_unresolved \*'
9587 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9588 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~
9589 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
d7040cdb 9590
ce2cded5
L
9591 # Both c and cxx compiler support -rpath directly
9592 hardcode_libdir_flag_spec='-rpath $libdir'
9593 fi
9594 archive_cmds_need_lc='no'
9595 hardcode_libdir_separator=:
9596 ;;
d7040cdb 9597
ce2cded5
L
9598 solaris*)
9599 no_undefined_flag=' -z defs'
9600 if test "$GCC" = yes; then
9601 wlarc='${wl}'
9602 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9603 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9604 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9605 else
9606 case `$CC -V 2>&1` in
9607 *"Compilers 5.0"*)
9608 wlarc=''
9609 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9610 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9611 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9612 ;;
9613 *)
9614 wlarc='${wl}'
9615 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9616 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9617 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9618 ;;
9619 esac
9620 fi
9621 hardcode_libdir_flag_spec='-R$libdir'
9622 hardcode_shlibpath_var=no
9623 case $host_os in
9624 solaris2.[0-5] | solaris2.[0-5].*) ;;
9625 *)
9626 # The compiler driver will combine and reorder linker options,
9627 # but understands `-z linker_flag'. GCC discards it without `$wl',
9628 # but is careful enough not to reorder.
9629 # Supported since Solaris 2.6 (maybe 2.5.1?)
9630 if test "$GCC" = yes; then
9631 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9632 else
9633 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9634 fi
9635 ;;
9636 esac
9637 link_all_deplibs=yes
d7040cdb 9638 ;;
ce2cded5
L
9639
9640 sunos4*)
9641 if test "x$host_vendor" = xsequent; then
9642 # Use $CC to link under sequent, because it throws in some extra .o
9643 # files that make .init and .fini sections work.
9644 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9645 else
ce2cded5 9646 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 9647 fi
ce2cded5
L
9648 hardcode_libdir_flag_spec='-L$libdir'
9649 hardcode_direct=yes
9650 hardcode_minus_L=yes
9651 hardcode_shlibpath_var=no
d7040cdb 9652 ;;
ce2cded5
L
9653
9654 sysv4)
9655 case $host_vendor in
9656 sni)
9657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9658 hardcode_direct=yes # is this really true???
9659 ;;
9660 siemens)
9661 ## LD is ld it makes a PLAMLIB
9662 ## CC just makes a GrossModule.
9663 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9664 reload_cmds='$CC -r -o $output$reload_objs'
9665 hardcode_direct=no
9666 ;;
9667 motorola)
9668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9669 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9670 ;;
9671 esac
9672 runpath_var='LD_RUN_PATH'
9673 hardcode_shlibpath_var=no
d7040cdb 9674 ;;
d7040cdb 9675
ce2cded5
L
9676 sysv4.3*)
9677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9678 hardcode_shlibpath_var=no
9679 export_dynamic_flag_spec='-Bexport'
9680 ;;
d7040cdb 9681
ce2cded5
L
9682 sysv4*MP*)
9683 if test -d /usr/nec; then
9684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685 hardcode_shlibpath_var=no
9686 runpath_var=LD_RUN_PATH
9687 hardcode_runpath_var=yes
9688 ld_shlibs=yes
9689 fi
9690 ;;
d7040cdb 9691
ce2cded5
L
9692 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9693 no_undefined_flag='${wl}-z,text'
9694 archive_cmds_need_lc=no
9695 hardcode_shlibpath_var=no
9696 runpath_var='LD_RUN_PATH'
d7040cdb 9697
ce2cded5
L
9698 if test "$GCC" = yes; then
9699 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701 else
9702 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9703 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9704 fi
9705 ;;
d7040cdb 9706
ce2cded5
L
9707 sysv5* | sco3.2v5* | sco5v6*)
9708 # Note: We can NOT use -z defs as we might desire, because we do not
9709 # link with -lc, and that would cause any symbols used from libc to
9710 # always be unresolved, which means just about no library would
9711 # ever link correctly. If we're not using GNU ld we use -z text
9712 # though, which does catch some bad symbols but isn't as heavy-handed
9713 # as -z defs.
9714 no_undefined_flag='${wl}-z,text'
9715 allow_undefined_flag='${wl}-z,nodefs'
9716 archive_cmds_need_lc=no
9717 hardcode_shlibpath_var=no
9718 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9719 hardcode_libdir_separator=':'
9720 link_all_deplibs=yes
9721 export_dynamic_flag_spec='${wl}-Bexport'
9722 runpath_var='LD_RUN_PATH'
d7040cdb 9723
ce2cded5
L
9724 if test "$GCC" = yes; then
9725 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 else
9728 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9729 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9730 fi
d7040cdb 9731 ;;
d7040cdb 9732
ce2cded5
L
9733 uts4*)
9734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9735 hardcode_libdir_flag_spec='-L$libdir'
9736 hardcode_shlibpath_var=no
9737 ;;
d7040cdb 9738
ce2cded5
L
9739 *)
9740 ld_shlibs=no
9741 ;;
9742 esac
9743
9744 if test x$host_vendor = xsni; then
9745 case $host in
9746 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9747 export_dynamic_flag_spec='${wl}-Blargedynsym'
9748 ;;
9749 esac
d7040cdb 9750 fi
ce2cded5 9751 fi
d7040cdb 9752
81ecdfbb
RW
9753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9754$as_echo "$ld_shlibs" >&6; }
ce2cded5 9755test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 9756
ce2cded5 9757with_gnu_ld=$with_gnu_ld
d7040cdb 9758
d7040cdb 9759
d7040cdb 9760
d7040cdb 9761
d7040cdb 9762
d7040cdb 9763
d7040cdb 9764
d7040cdb 9765
d7040cdb 9766
d7040cdb 9767
d7040cdb 9768
d7040cdb 9769
d7040cdb 9770
d7040cdb 9771
d7040cdb 9772
ce2cded5
L
9773#
9774# Do we need to explicitly link libc?
9775#
9776case "x$archive_cmds_need_lc" in
9777x|xyes)
9778 # Assume -lc should be added
9779 archive_cmds_need_lc=yes
d7040cdb 9780
ce2cded5
L
9781 if test "$enable_shared" = yes && test "$GCC" = yes; then
9782 case $archive_cmds in
9783 *'~'*)
9784 # FIXME: we may have to deal with multi-command sequences.
9785 ;;
9786 '$CC '*)
9787 # Test whether the compiler implicitly links with -lc since on some
9788 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9789 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9791$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9792if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9793 $as_echo_n "(cached) " >&6
39144654
RW
9794else
9795 $RM conftest*
9796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9797
81ecdfbb 9798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
9799 (eval $ac_compile) 2>&5
9800 ac_status=$?
81ecdfbb
RW
9801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9802 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9803 soname=conftest
9804 lib=conftest
9805 libobjs=conftest.$ac_objext
9806 deplibs=
9807 wl=$lt_prog_compiler_wl
9808 pic_flag=$lt_prog_compiler_pic
9809 compiler_flags=-v
9810 linker_flags=-v
9811 verstring=
9812 output_objdir=.
9813 libname=conftest
9814 lt_save_allow_undefined_flag=$allow_undefined_flag
9815 allow_undefined_flag=
81ecdfbb 9816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
9817 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9818 ac_status=$?
81ecdfbb
RW
9819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9820 test $ac_status = 0; }
39144654
RW
9821 then
9822 lt_cv_archive_cmds_need_lc=no
9823 else
9824 lt_cv_archive_cmds_need_lc=yes
9825 fi
9826 allow_undefined_flag=$lt_save_allow_undefined_flag
9827 else
9828 cat conftest.err 1>&5
9829 fi
9830 $RM conftest*
9831
9832fi
81ecdfbb
RW
9833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9834$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9835 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
9836 ;;
9837 esac
d7040cdb 9838 fi
d7040cdb 9839 ;;
ce2cded5 9840esac
d7040cdb 9841
d7040cdb 9842
d7040cdb 9843
d7040cdb 9844
d7040cdb 9845
d7040cdb 9846
d7040cdb 9847
d7040cdb
SE
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
d7040cdb 9935
d7040cdb 9936
d7040cdb
SE
9937
9938
9939
9940
9941
9942
d7040cdb 9943
d7040cdb 9944
d7040cdb 9945
d7040cdb 9946
d7040cdb 9947
d7040cdb 9948
d7040cdb 9949
d7040cdb 9950
d7040cdb 9951
d7040cdb 9952
d7040cdb 9953
d7040cdb 9954
d7040cdb 9955
d7040cdb 9956
d7040cdb 9957
d7040cdb 9958
d7040cdb 9959
d7040cdb 9960
d7040cdb 9961
d7040cdb 9962
d7040cdb 9963
d7040cdb 9964
d7040cdb 9965
ce2cded5
L
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
81ecdfbb
RW
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9999$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
10000
10001if test "$GCC" = yes; then
ce2cded5
L
10002 case $host_os in
10003 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10004 *) lt_awk_arg="/^libraries:/" ;;
10005 esac
10006 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10007 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10008 # if the path contains ";" then we assume it to be the separator
10009 # otherwise default to the standard path separator (i.e. ":") - it is
10010 # assumed that no part of a normal pathname contains ";" but that should
10011 # okay in the real world where ";" in dirpaths is itself problematic.
10012 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10013 else
10014 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10015 fi
10016 # Ok, now we have the path, separated by spaces, we can step through it
10017 # and add multilib dir if necessary.
10018 lt_tmp_lt_search_path_spec=
10019 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10020 for lt_sys_path in $lt_search_path_spec; do
10021 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10022 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10023 else
10024 test -d "$lt_sys_path" && \
10025 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10026 fi
10027 done
10028 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10029BEGIN {RS=" "; FS="/|\n";} {
10030 lt_foo="";
10031 lt_count=0;
10032 for (lt_i = NF; lt_i > 0; lt_i--) {
10033 if ($lt_i != "" && $lt_i != ".") {
10034 if ($lt_i == "..") {
10035 lt_count++;
10036 } else {
10037 if (lt_count == 0) {
10038 lt_foo="/" $lt_i lt_foo;
10039 } else {
10040 lt_count--;
10041 }
10042 }
10043 }
10044 }
10045 if (lt_foo != "") { lt_freq[lt_foo]++; }
10046 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10047}'`
10048 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
d7040cdb 10049else
ce2cded5
L
10050 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10051fi
10052library_names_spec=
10053libname_spec='lib$name'
10054soname_spec=
10055shrext_cmds=".so"
10056postinstall_cmds=
10057postuninstall_cmds=
10058finish_cmds=
10059finish_eval=
10060shlibpath_var=
10061shlibpath_overrides_runpath=unknown
10062version_type=none
10063dynamic_linker="$host_os ld.so"
10064sys_lib_dlsearch_path_spec="/lib /usr/lib"
10065need_lib_prefix=unknown
10066hardcode_into_libs=no
10067
10068# when you set need_version to no, make sure it does not cause -set_version
10069# flags to be left without arguments
10070need_version=unknown
10071
10072case $host_os in
10073aix3*)
10074 version_type=linux
10075 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10076 shlibpath_var=LIBPATH
10077
10078 # AIX 3 has no versioning support, so we append a major version to the name.
10079 soname_spec='${libname}${release}${shared_ext}$major'
10080 ;;
10081
50e7d84b 10082aix[4-9]*)
ce2cded5
L
10083 version_type=linux
10084 need_lib_prefix=no
10085 need_version=no
10086 hardcode_into_libs=yes
10087 if test "$host_cpu" = ia64; then
10088 # AIX 5 supports IA64
10089 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10090 shlibpath_var=LD_LIBRARY_PATH
10091 else
10092 # With GCC up to 2.95.x, collect2 would create an import file
10093 # for dependence libraries. The import file would start with
10094 # the line `#! .'. This would cause the generated library to
10095 # depend on `.', always an invalid library. This was fixed in
10096 # development snapshots of GCC prior to 3.0.
10097 case $host_os in
10098 aix4 | aix4.[01] | aix4.[01].*)
10099 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10100 echo ' yes '
10101 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10102 :
10103 else
10104 can_build_shared=no
10105 fi
10106 ;;
10107 esac
10108 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10109 # soname into executable. Probably we can add versioning support to
10110 # collect2, so additional links can be useful in future.
10111 if test "$aix_use_runtimelinking" = yes; then
10112 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10113 # instead of lib<name>.a to let people know that these are not
10114 # typical AIX shared libraries.
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10116 else
10117 # We preserve .a as extension for shared libraries through AIX4.2
10118 # and later when we are not doing run time linking.
10119 library_names_spec='${libname}${release}.a $libname.a'
10120 soname_spec='${libname}${release}${shared_ext}$major'
10121 fi
10122 shlibpath_var=LIBPATH
10123 fi
10124 ;;
10125
10126amigaos*)
718a6fd8
SE
10127 case $host_cpu in
10128 powerpc)
10129 # Since July 2007 AmigaOS4 officially supports .so libraries.
10130 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132 ;;
10133 m68k)
ce2cded5
L
10134 library_names_spec='$libname.ixlibrary $libname.a'
10135 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10136 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
718a6fd8
SE
10137 ;;
10138 esac
ce2cded5
L
10139 ;;
10140
10141beos*)
10142 library_names_spec='${libname}${shared_ext}'
10143 dynamic_linker="$host_os ld.so"
10144 shlibpath_var=LIBRARY_PATH
10145 ;;
10146
10147bsdi[45]*)
10148 version_type=linux
10149 need_version=no
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10151 soname_spec='${libname}${release}${shared_ext}$major'
10152 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10153 shlibpath_var=LD_LIBRARY_PATH
10154 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10155 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10156 # the default ld.so.conf also contains /usr/contrib/lib and
10157 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10158 # libtool to hard-code these into programs
10159 ;;
10160
718a6fd8 10161cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10162 version_type=windows
10163 shrext_cmds=".dll"
10164 need_version=no
10165 need_lib_prefix=no
10166
718a6fd8
SE
10167 case $GCC,$host_os in
10168 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10169 library_names_spec='$libname.dll.a'
10170 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10171 postinstall_cmds='base_file=`basename \${file}`~
10172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10173 dldir=$destdir/`dirname \$dlpath`~
10174 test -d \$dldir || mkdir -p \$dldir~
10175 $install_prog $dir/$dlname \$dldir/$dlname~
10176 chmod a+x \$dldir/$dlname~
10177 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10178 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10179 fi'
10180 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10181 dlpath=$dir/\$dldll~
10182 $RM \$dlpath'
10183 shlibpath_overrides_runpath=yes
10184
10185 case $host_os in
10186 cygwin*)
10187 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10188 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10189 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10190 ;;
718a6fd8 10191 mingw* | cegcc*)
ce2cded5
L
10192 # MinGW DLLs use traditional 'lib' prefix
10193 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10194 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10195 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10196 # It is most probably a Windows format PATH printed by
10197 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10198 # path with ; separators, and with drive letters. We can handle the
10199 # drive letters (cygwin fileutils understands them), so leave them,
10200 # especially as we might pass files found there to a mingw objdump,
10201 # which wouldn't understand a cygwinified path. Ahh.
10202 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10203 else
10204 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10205 fi
10206 ;;
10207 pw32*)
10208 # pw32 DLLs use 'pw' prefix rather than 'lib'
10209 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10210 ;;
10211 esac
10212 ;;
10213
10214 *)
10215 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10216 ;;
10217 esac
10218 dynamic_linker='Win32 ld.exe'
10219 # FIXME: first we should search . and the directory the executable is in
10220 shlibpath_var=PATH
10221 ;;
10222
10223darwin* | rhapsody*)
10224 dynamic_linker="$host_os dyld"
10225 version_type=darwin
10226 need_lib_prefix=no
10227 need_version=no
10228 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10229 soname_spec='${libname}${release}${major}$shared_ext'
10230 shlibpath_overrides_runpath=yes
10231 shlibpath_var=DYLD_LIBRARY_PATH
10232 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10233
10234 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10235 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10236 ;;
10237
10238dgux*)
10239 version_type=linux
10240 need_lib_prefix=no
10241 need_version=no
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10243 soname_spec='${libname}${release}${shared_ext}$major'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 ;;
10246
10247freebsd1*)
10248 dynamic_linker=no
10249 ;;
10250
10251freebsd* | dragonfly*)
10252 # DragonFly does not have aout. When/if they implement a new
10253 # versioning mechanism, adjust this.
10254 if test -x /usr/bin/objformat; then
10255 objformat=`/usr/bin/objformat`
10256 else
10257 case $host_os in
10258 freebsd[123]*) objformat=aout ;;
10259 *) objformat=elf ;;
10260 esac
10261 fi
10262 version_type=freebsd-$objformat
10263 case $version_type in
10264 freebsd-elf*)
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10266 need_version=no
10267 need_lib_prefix=no
10268 ;;
10269 freebsd-*)
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10271 need_version=yes
10272 ;;
10273 esac
10274 shlibpath_var=LD_LIBRARY_PATH
10275 case $host_os in
10276 freebsd2*)
10277 shlibpath_overrides_runpath=yes
10278 ;;
10279 freebsd3.[01]* | freebsdelf3.[01]*)
10280 shlibpath_overrides_runpath=yes
10281 hardcode_into_libs=yes
10282 ;;
10283 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10284 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10285 shlibpath_overrides_runpath=no
10286 hardcode_into_libs=yes
10287 ;;
10288 *) # from 4.6 on, and DragonFly
10289 shlibpath_overrides_runpath=yes
10290 hardcode_into_libs=yes
10291 ;;
10292 esac
10293 ;;
10294
10295gnu*)
10296 version_type=linux
10297 need_lib_prefix=no
10298 need_version=no
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10300 soname_spec='${libname}${release}${shared_ext}$major'
10301 shlibpath_var=LD_LIBRARY_PATH
10302 hardcode_into_libs=yes
10303 ;;
10304
10305hpux9* | hpux10* | hpux11*)
10306 # Give a soname corresponding to the major version so that dld.sl refuses to
10307 # link against other versions.
10308 version_type=sunos
10309 need_lib_prefix=no
10310 need_version=no
10311 case $host_cpu in
10312 ia64*)
10313 shrext_cmds='.so'
10314 hardcode_into_libs=yes
10315 dynamic_linker="$host_os dld.so"
10316 shlibpath_var=LD_LIBRARY_PATH
10317 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10319 soname_spec='${libname}${release}${shared_ext}$major'
10320 if test "X$HPUX_IA64_MODE" = X32; then
10321 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10322 else
10323 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10324 fi
10325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10326 ;;
10327 hppa*64*)
10328 shrext_cmds='.sl'
10329 hardcode_into_libs=yes
10330 dynamic_linker="$host_os dld.sl"
10331 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10332 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10334 soname_spec='${libname}${release}${shared_ext}$major'
10335 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10337 ;;
10338 *)
10339 shrext_cmds='.sl'
10340 dynamic_linker="$host_os dld.sl"
10341 shlibpath_var=SHLIB_PATH
10342 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10344 soname_spec='${libname}${release}${shared_ext}$major'
10345 ;;
10346 esac
10347 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10348 postinstall_cmds='chmod 555 $lib'
10349 ;;
10350
10351interix[3-9]*)
10352 version_type=linux
10353 need_lib_prefix=no
10354 need_version=no
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10356 soname_spec='${libname}${release}${shared_ext}$major'
10357 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10358 shlibpath_var=LD_LIBRARY_PATH
10359 shlibpath_overrides_runpath=no
10360 hardcode_into_libs=yes
10361 ;;
10362
10363irix5* | irix6* | nonstopux*)
10364 case $host_os in
10365 nonstopux*) version_type=nonstopux ;;
10366 *)
10367 if test "$lt_cv_prog_gnu_ld" = yes; then
10368 version_type=linux
10369 else
10370 version_type=irix
10371 fi ;;
10372 esac
10373 need_lib_prefix=no
10374 need_version=no
10375 soname_spec='${libname}${release}${shared_ext}$major'
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10377 case $host_os in
10378 irix5* | nonstopux*)
10379 libsuff= shlibsuff=
10380 ;;
10381 *)
10382 case $LD in # libtool.m4 will add one of these switches to LD
10383 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10384 libsuff= shlibsuff= libmagic=32-bit;;
10385 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10386 libsuff=32 shlibsuff=N32 libmagic=N32;;
10387 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10388 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10389 *) libsuff= shlibsuff= libmagic=never-match;;
10390 esac
10391 ;;
10392 esac
10393 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10394 shlibpath_overrides_runpath=no
10395 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10396 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10397 hardcode_into_libs=yes
10398 ;;
d7040cdb 10399
ce2cded5
L
10400# No shared lib support for Linux oldld, aout, or coff.
10401linux*oldld* | linux*aout* | linux*coff*)
10402 dynamic_linker=no
10403 ;;
10404
10405# This must be Linux ELF.
58e24671 10406linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
10407 version_type=linux
10408 need_lib_prefix=no
10409 need_version=no
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10411 soname_spec='${libname}${release}${shared_ext}$major'
10412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10413 shlibpath_var=LD_LIBRARY_PATH
10414 shlibpath_overrides_runpath=no
39144654 10415
ce2cded5 10416 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10417 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10418 $as_echo_n "(cached) " >&6
39144654
RW
10419else
10420 lt_cv_shlibpath_overrides_runpath=no
10421 save_LDFLAGS=$LDFLAGS
10422 save_libdir=$libdir
10423 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10424 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10426/* end confdefs.h. */
10427
d7040cdb
SE
10428int
10429main ()
10430{
ce2cded5 10431
d7040cdb
SE
10432 ;
10433 return 0;
10434}
10435_ACEOF
81ecdfbb
RW
10436if ac_fn_c_try_link "$LINENO"; then :
10437 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10438 lt_cv_shlibpath_overrides_runpath=yes
ce2cded5 10439fi
ce2cded5 10440fi
81ecdfbb
RW
10441rm -f core conftest.err conftest.$ac_objext \
10442 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10443 LDFLAGS=$save_LDFLAGS
10444 libdir=$save_libdir
10445
10446fi
10447
10448 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
ce2cded5
L
10449
10450 # This implies no fast_install, which is unacceptable.
10451 # Some rework will be needed to allow for fast_install
10452 # before this can be enabled.
10453 hardcode_into_libs=yes
10454
10455 # Append ld.so.conf contents to the search path
10456 if test -f /etc/ld.so.conf; then
718a6fd8 10457 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;/^$/d' | tr '\n' ' '`
ce2cded5
L
10458 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10459 fi
10460
10461 # We used to test for /lib/ld.so.1 and disable shared libraries on
10462 # powerpc, because MkLinux only supported shared libraries with the
10463 # GNU dynamic linker. Since this was broken with cross compilers,
10464 # most powerpc-linux boxes support dynamic linking these days and
10465 # people can always --disable-shared, the test was removed, and we
10466 # assume the GNU/Linux dynamic linker is in use.
10467 dynamic_linker='GNU/Linux ld.so'
10468 ;;
10469
10470netbsd*)
10471 version_type=sunos
10472 need_lib_prefix=no
10473 need_version=no
10474 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10477 dynamic_linker='NetBSD (a.out) ld.so'
10478 else
10479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10480 soname_spec='${libname}${release}${shared_ext}$major'
10481 dynamic_linker='NetBSD ld.elf_so'
10482 fi
10483 shlibpath_var=LD_LIBRARY_PATH
10484 shlibpath_overrides_runpath=yes
10485 hardcode_into_libs=yes
10486 ;;
10487
10488newsos6)
10489 version_type=linux
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10491 shlibpath_var=LD_LIBRARY_PATH
10492 shlibpath_overrides_runpath=yes
10493 ;;
10494
10495*nto* | *qnx*)
10496 version_type=qnx
10497 need_lib_prefix=no
10498 need_version=no
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500 soname_spec='${libname}${release}${shared_ext}$major'
10501 shlibpath_var=LD_LIBRARY_PATH
10502 shlibpath_overrides_runpath=no
10503 hardcode_into_libs=yes
10504 dynamic_linker='ldqnx.so'
10505 ;;
10506
10507openbsd*)
10508 version_type=sunos
10509 sys_lib_dlsearch_path_spec="/usr/lib"
10510 need_lib_prefix=no
10511 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10512 case $host_os in
10513 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10514 *) need_version=no ;;
10515 esac
10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10517 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10518 shlibpath_var=LD_LIBRARY_PATH
10519 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10520 case $host_os in
10521 openbsd2.[89] | openbsd2.[89].*)
10522 shlibpath_overrides_runpath=no
10523 ;;
10524 *)
10525 shlibpath_overrides_runpath=yes
10526 ;;
10527 esac
10528 else
10529 shlibpath_overrides_runpath=yes
10530 fi
10531 ;;
10532
10533os2*)
10534 libname_spec='$name'
10535 shrext_cmds=".dll"
10536 need_lib_prefix=no
10537 library_names_spec='$libname${shared_ext} $libname.a'
10538 dynamic_linker='OS/2 ld.exe'
10539 shlibpath_var=LIBPATH
10540 ;;
10541
10542osf3* | osf4* | osf5*)
10543 version_type=osf
10544 need_lib_prefix=no
10545 need_version=no
10546 soname_spec='${libname}${release}${shared_ext}$major'
10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10548 shlibpath_var=LD_LIBRARY_PATH
10549 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10550 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10551 ;;
10552
10553rdos*)
10554 dynamic_linker=no
10555 ;;
10556
10557solaris*)
10558 version_type=linux
10559 need_lib_prefix=no
10560 need_version=no
10561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10562 soname_spec='${libname}${release}${shared_ext}$major'
10563 shlibpath_var=LD_LIBRARY_PATH
10564 shlibpath_overrides_runpath=yes
10565 hardcode_into_libs=yes
10566 # ldd complains unless libraries are executable
10567 postinstall_cmds='chmod +x $lib'
10568 ;;
10569
10570sunos4*)
10571 version_type=sunos
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10573 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10574 shlibpath_var=LD_LIBRARY_PATH
10575 shlibpath_overrides_runpath=yes
10576 if test "$with_gnu_ld" = yes; then
10577 need_lib_prefix=no
10578 fi
10579 need_version=yes
10580 ;;
10581
10582sysv4 | sysv4.3*)
10583 version_type=linux
10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10585 soname_spec='${libname}${release}${shared_ext}$major'
10586 shlibpath_var=LD_LIBRARY_PATH
10587 case $host_vendor in
10588 sni)
10589 shlibpath_overrides_runpath=no
10590 need_lib_prefix=no
10591 runpath_var=LD_RUN_PATH
10592 ;;
10593 siemens)
10594 need_lib_prefix=no
10595 ;;
10596 motorola)
10597 need_lib_prefix=no
10598 need_version=no
10599 shlibpath_overrides_runpath=no
10600 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10601 ;;
10602 esac
10603 ;;
10604
10605sysv4*MP*)
10606 if test -d /usr/nec ;then
10607 version_type=linux
10608 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10609 soname_spec='$libname${shared_ext}.$major'
10610 shlibpath_var=LD_LIBRARY_PATH
10611 fi
10612 ;;
10613
10614sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10615 version_type=freebsd-elf
10616 need_lib_prefix=no
10617 need_version=no
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10619 soname_spec='${libname}${release}${shared_ext}$major'
10620 shlibpath_var=LD_LIBRARY_PATH
10621 shlibpath_overrides_runpath=yes
10622 hardcode_into_libs=yes
10623 if test "$with_gnu_ld" = yes; then
10624 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10625 else
10626 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10627 case $host_os in
10628 sco3.2v5*)
10629 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10630 ;;
10631 esac
10632 fi
10633 sys_lib_dlsearch_path_spec='/usr/lib'
10634 ;;
10635
10636tpf*)
10637 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10638 version_type=linux
10639 need_lib_prefix=no
10640 need_version=no
718a6fd8 10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
10642 shlibpath_var=LD_LIBRARY_PATH
10643 shlibpath_overrides_runpath=no
10644 hardcode_into_libs=yes
10645 ;;
d7040cdb 10646
ce2cded5
L
10647uts4*)
10648 version_type=linux
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 shlibpath_var=LD_LIBRARY_PATH
10652 ;;
d7040cdb 10653
ce2cded5
L
10654*)
10655 dynamic_linker=no
10656 ;;
10657esac
81ecdfbb
RW
10658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10659$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
10660test "$dynamic_linker" = no && can_build_shared=no
10661
10662variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10663if test "$GCC" = yes; then
10664 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10665fi
d7040cdb 10666
718a6fd8
SE
10667if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10668 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10669fi
10670if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10671 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10672fi
10673
d7040cdb 10674
d7040cdb
SE
10675
10676
d7040cdb
SE
10677
10678
d7040cdb
SE
10679
10680
d7040cdb
SE
10681
10682
d7040cdb
SE
10683
10684
d7040cdb 10685
d7040cdb 10686
d7040cdb 10687
d7040cdb 10688
d7040cdb 10689
d7040cdb 10690
d7040cdb 10691
d7040cdb 10692
d7040cdb 10693
d7040cdb 10694
d7040cdb 10695
d7040cdb 10696
d7040cdb 10697
d7040cdb 10698
d7040cdb
SE
10699
10700
d7040cdb 10701
d7040cdb 10702
d7040cdb 10703
d7040cdb 10704
d7040cdb 10705
d7040cdb 10706
d7040cdb 10707
d7040cdb 10708
d7040cdb 10709
d7040cdb
SE
10710
10711
d7040cdb 10712
d7040cdb 10713
d7040cdb 10714
d7040cdb
SE
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
d7040cdb
SE
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
d7040cdb 10744
d7040cdb 10745
d7040cdb 10746
d7040cdb 10747
d7040cdb
SE
10748
10749
10750
10751
ce2cded5
L
10752
10753
10754
10755
10756
10757
10758
10759
81ecdfbb
RW
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10761$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
10762hardcode_action=
10763if test -n "$hardcode_libdir_flag_spec" ||
10764 test -n "$runpath_var" ||
10765 test "X$hardcode_automatic" = "Xyes" ; then
10766
10767 # We can hardcode non-existent directories.
10768 if test "$hardcode_direct" != no &&
10769 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10770 # have to relink, otherwise we might link with an installed library
10771 # when we should be linking with a yet-to-be-installed one
10772 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10773 test "$hardcode_minus_L" != no; then
10774 # Linking always hardcodes the temporary library directory.
10775 hardcode_action=relink
10776 else
10777 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10778 hardcode_action=immediate
10779 fi
10780else
10781 # We cannot hardcode anything, or else we can only hardcode existing
10782 # directories.
10783 hardcode_action=unsupported
10784fi
81ecdfbb
RW
10785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10786$as_echo "$hardcode_action" >&6; }
ce2cded5
L
10787
10788if test "$hardcode_action" = relink ||
10789 test "$inherit_rpath" = yes; then
10790 # Fast installation is not supported
10791 enable_fast_install=no
10792elif test "$shlibpath_overrides_runpath" = yes ||
10793 test "$enable_shared" = no; then
10794 # Fast installation is not necessary
10795 enable_fast_install=needless
d7040cdb 10796fi
d7040cdb 10797
d7040cdb
SE
10798
10799
10800
10801
10802
ce2cded5
L
10803 if test "x$enable_dlopen" != xyes; then
10804 enable_dlopen=unknown
10805 enable_dlopen_self=unknown
10806 enable_dlopen_self_static=unknown
10807else
10808 lt_cv_dlopen=no
10809 lt_cv_dlopen_libs=
10810
10811 case $host_os in
10812 beos*)
10813 lt_cv_dlopen="load_add_on"
10814 lt_cv_dlopen_libs=
10815 lt_cv_dlopen_self=yes
10816 ;;
d7040cdb 10817
718a6fd8 10818 mingw* | pw32* | cegcc*)
ce2cded5
L
10819 lt_cv_dlopen="LoadLibrary"
10820 lt_cv_dlopen_libs=
10821 ;;
d7040cdb 10822
ce2cded5
L
10823 cygwin*)
10824 lt_cv_dlopen="dlopen"
10825 lt_cv_dlopen_libs=
10826 ;;
d7040cdb 10827
ce2cded5
L
10828 darwin*)
10829 # if libdl is installed we need to link against it
81ecdfbb
RW
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10831$as_echo_n "checking for dlopen in -ldl... " >&6; }
10832if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10833 $as_echo_n "(cached) " >&6
ce2cded5
L
10834else
10835 ac_check_lib_save_LIBS=$LIBS
10836LIBS="-ldl $LIBS"
81ecdfbb 10837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10838/* end confdefs.h. */
d7040cdb 10839
81ecdfbb
RW
10840/* Override any GCC internal prototype to avoid an error.
10841 Use char because int might match the return type of a GCC
10842 builtin and then its argument prototype would still apply. */
ce2cded5
L
10843#ifdef __cplusplus
10844extern "C"
10845#endif
ce2cded5
L
10846char dlopen ();
10847int
10848main ()
10849{
81ecdfbb 10850return dlopen ();
ce2cded5
L
10851 ;
10852 return 0;
10853}
10854_ACEOF
81ecdfbb 10855if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10856 ac_cv_lib_dl_dlopen=yes
10857else
81ecdfbb 10858 ac_cv_lib_dl_dlopen=no
ce2cded5 10859fi
81ecdfbb
RW
10860rm -f core conftest.err conftest.$ac_objext \
10861 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10862LIBS=$ac_check_lib_save_LIBS
10863fi
81ecdfbb
RW
10864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10865$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10866if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5
L
10867 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10868else
d7040cdb 10869
ce2cded5
L
10870 lt_cv_dlopen="dyld"
10871 lt_cv_dlopen_libs=
10872 lt_cv_dlopen_self=yes
d7040cdb 10873
ce2cded5 10874fi
d7040cdb 10875
ce2cded5 10876 ;;
d7040cdb 10877
ce2cded5 10878 *)
81ecdfbb
RW
10879 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10880if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
10881 lt_cv_dlopen="shl_load"
10882else
81ecdfbb
RW
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10884$as_echo_n "checking for shl_load in -ldld... " >&6; }
10885if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10886 $as_echo_n "(cached) " >&6
ce2cded5
L
10887else
10888 ac_check_lib_save_LIBS=$LIBS
10889LIBS="-ldld $LIBS"
81ecdfbb 10890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10891/* end confdefs.h. */
d7040cdb 10892
81ecdfbb
RW
10893/* Override any GCC internal prototype to avoid an error.
10894 Use char because int might match the return type of a GCC
10895 builtin and then its argument prototype would still apply. */
ce2cded5
L
10896#ifdef __cplusplus
10897extern "C"
10898#endif
ce2cded5
L
10899char shl_load ();
10900int
10901main ()
10902{
81ecdfbb 10903return shl_load ();
ce2cded5
L
10904 ;
10905 return 0;
10906}
d7040cdb 10907_ACEOF
81ecdfbb 10908if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10909 ac_cv_lib_dld_shl_load=yes
10910else
81ecdfbb 10911 ac_cv_lib_dld_shl_load=no
d7040cdb 10912fi
81ecdfbb
RW
10913rm -f core conftest.err conftest.$ac_objext \
10914 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10915LIBS=$ac_check_lib_save_LIBS
10916fi
81ecdfbb
RW
10917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10918$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10919if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
718a6fd8 10920 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 10921else
81ecdfbb
RW
10922 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10923if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
10924 lt_cv_dlopen="dlopen"
10925else
81ecdfbb
RW
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10927$as_echo_n "checking for dlopen in -ldl... " >&6; }
10928if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10929 $as_echo_n "(cached) " >&6
d7040cdb 10930else
ce2cded5
L
10931 ac_check_lib_save_LIBS=$LIBS
10932LIBS="-ldl $LIBS"
81ecdfbb 10933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10934/* end confdefs.h. */
d7040cdb 10935
81ecdfbb
RW
10936/* Override any GCC internal prototype to avoid an error.
10937 Use char because int might match the return type of a GCC
10938 builtin and then its argument prototype would still apply. */
ce2cded5
L
10939#ifdef __cplusplus
10940extern "C"
10941#endif
ce2cded5 10942char dlopen ();
d7040cdb
SE
10943int
10944main ()
10945{
81ecdfbb 10946return dlopen ();
d7040cdb
SE
10947 ;
10948 return 0;
10949}
10950_ACEOF
81ecdfbb 10951if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10952 ac_cv_lib_dl_dlopen=yes
10953else
81ecdfbb 10954 ac_cv_lib_dl_dlopen=no
ce2cded5 10955fi
81ecdfbb
RW
10956rm -f core conftest.err conftest.$ac_objext \
10957 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10958LIBS=$ac_check_lib_save_LIBS
10959fi
81ecdfbb
RW
10960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10961$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10962if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5
L
10963 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10964else
81ecdfbb
RW
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10966$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10967if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10968 $as_echo_n "(cached) " >&6
ce2cded5
L
10969else
10970 ac_check_lib_save_LIBS=$LIBS
10971LIBS="-lsvld $LIBS"
81ecdfbb 10972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10973/* end confdefs.h. */
d7040cdb 10974
81ecdfbb
RW
10975/* Override any GCC internal prototype to avoid an error.
10976 Use char because int might match the return type of a GCC
10977 builtin and then its argument prototype would still apply. */
ce2cded5
L
10978#ifdef __cplusplus
10979extern "C"
10980#endif
ce2cded5 10981char dlopen ();
d7040cdb
SE
10982int
10983main ()
10984{
81ecdfbb 10985return dlopen ();
d7040cdb
SE
10986 ;
10987 return 0;
10988}
10989_ACEOF
81ecdfbb 10990if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 10991 ac_cv_lib_svld_dlopen=yes
d7040cdb 10992else
81ecdfbb 10993 ac_cv_lib_svld_dlopen=no
d7040cdb 10994fi
81ecdfbb
RW
10995rm -f core conftest.err conftest.$ac_objext \
10996 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10997LIBS=$ac_check_lib_save_LIBS
10998fi
81ecdfbb
RW
10999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11000$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11001if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
11002 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11003else
81ecdfbb
RW
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11005$as_echo_n "checking for dld_link in -ldld... " >&6; }
11006if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11007 $as_echo_n "(cached) " >&6
d7040cdb 11008else
ce2cded5
L
11009 ac_check_lib_save_LIBS=$LIBS
11010LIBS="-ldld $LIBS"
81ecdfbb 11011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11012/* end confdefs.h. */
ce2cded5 11013
81ecdfbb
RW
11014/* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
ce2cded5
L
11017#ifdef __cplusplus
11018extern "C"
11019#endif
ce2cded5 11020char dld_link ();
d7040cdb
SE
11021int
11022main ()
11023{
81ecdfbb 11024return dld_link ();
d7040cdb
SE
11025 ;
11026 return 0;
11027}
11028_ACEOF
81ecdfbb 11029if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11030 ac_cv_lib_dld_dld_link=yes
11031else
81ecdfbb 11032 ac_cv_lib_dld_dld_link=no
d7040cdb 11033fi
81ecdfbb
RW
11034rm -f core conftest.err conftest.$ac_objext \
11035 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11036LIBS=$ac_check_lib_save_LIBS
11037fi
81ecdfbb
RW
11038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11039$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11040if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
718a6fd8 11041 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11042fi
11043
11044
11045fi
11046
11047
11048fi
11049
11050
11051fi
11052
11053
11054fi
11055
11056
11057fi
11058
11059 ;;
11060 esac
11061
11062 if test "x$lt_cv_dlopen" != xno; then
11063 enable_dlopen=yes
d7040cdb 11064 else
ce2cded5 11065 enable_dlopen=no
d7040cdb 11066 fi
ce2cded5
L
11067
11068 case $lt_cv_dlopen in
11069 dlopen)
11070 save_CPPFLAGS="$CPPFLAGS"
11071 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11072
11073 save_LDFLAGS="$LDFLAGS"
11074 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11075
11076 save_LIBS="$LIBS"
11077 LIBS="$lt_cv_dlopen_libs $LIBS"
11078
81ecdfbb
RW
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11080$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11081if test "${lt_cv_dlopen_self+set}" = set; then :
11082 $as_echo_n "(cached) " >&6
d7040cdb 11083else
ce2cded5
L
11084 if test "$cross_compiling" = yes; then :
11085 lt_cv_dlopen_self=cross
11086else
11087 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11088 lt_status=$lt_dlunknown
11089 cat > conftest.$ac_ext <<_LT_EOF
da2f07f1 11090#line 11090 "configure"
ce2cded5
L
11091#include "confdefs.h"
11092
11093#if HAVE_DLFCN_H
11094#include <dlfcn.h>
11095#endif
11096
11097#include <stdio.h>
11098
11099#ifdef RTLD_GLOBAL
11100# define LT_DLGLOBAL RTLD_GLOBAL
11101#else
11102# ifdef DL_GLOBAL
11103# define LT_DLGLOBAL DL_GLOBAL
11104# else
11105# define LT_DLGLOBAL 0
11106# endif
11107#endif
11108
11109/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11110 find out it does not work in some platform. */
11111#ifndef LT_DLLAZY_OR_NOW
11112# ifdef RTLD_LAZY
11113# define LT_DLLAZY_OR_NOW RTLD_LAZY
11114# else
11115# ifdef DL_LAZY
11116# define LT_DLLAZY_OR_NOW DL_LAZY
11117# else
11118# ifdef RTLD_NOW
11119# define LT_DLLAZY_OR_NOW RTLD_NOW
11120# else
11121# ifdef DL_NOW
11122# define LT_DLLAZY_OR_NOW DL_NOW
11123# else
11124# define LT_DLLAZY_OR_NOW 0
11125# endif
11126# endif
11127# endif
11128# endif
11129#endif
11130
ce2cded5
L
11131void fnord() { int i=42;}
11132int main ()
11133{
11134 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11135 int status = $lt_dlunknown;
11136
11137 if (self)
11138 {
11139 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11140 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11141 /* dlclose (self); */
11142 }
11143 else
11144 puts (dlerror ());
11145
718a6fd8 11146 return status;
ce2cded5
L
11147}
11148_LT_EOF
81ecdfbb 11149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
11150 (eval $ac_link) 2>&5
11151 ac_status=$?
81ecdfbb
RW
11152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11153 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11154 (./conftest; exit; ) >&5 2>/dev/null
11155 lt_status=$?
11156 case x$lt_status in
11157 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11158 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11159 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11160 esac
11161 else :
11162 # compilation failed
11163 lt_cv_dlopen_self=no
11164 fi
11165fi
11166rm -fr conftest*
11167
d7040cdb
SE
11168
11169fi
81ecdfbb
RW
11170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11171$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11172
11173 if test "x$lt_cv_dlopen_self" = xyes; then
11174 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11176$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11177if test "${lt_cv_dlopen_self_static+set}" = set; then :
11178 $as_echo_n "(cached) " >&6
d7040cdb 11179else
ce2cded5
L
11180 if test "$cross_compiling" = yes; then :
11181 lt_cv_dlopen_self_static=cross
11182else
11183 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11184 lt_status=$lt_dlunknown
11185 cat > conftest.$ac_ext <<_LT_EOF
da2f07f1 11186#line 11186 "configure"
ce2cded5
L
11187#include "confdefs.h"
11188
11189#if HAVE_DLFCN_H
11190#include <dlfcn.h>
11191#endif
11192
11193#include <stdio.h>
11194
11195#ifdef RTLD_GLOBAL
11196# define LT_DLGLOBAL RTLD_GLOBAL
11197#else
11198# ifdef DL_GLOBAL
11199# define LT_DLGLOBAL DL_GLOBAL
11200# else
11201# define LT_DLGLOBAL 0
11202# endif
11203#endif
11204
11205/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11206 find out it does not work in some platform. */
11207#ifndef LT_DLLAZY_OR_NOW
11208# ifdef RTLD_LAZY
11209# define LT_DLLAZY_OR_NOW RTLD_LAZY
11210# else
11211# ifdef DL_LAZY
11212# define LT_DLLAZY_OR_NOW DL_LAZY
11213# else
11214# ifdef RTLD_NOW
11215# define LT_DLLAZY_OR_NOW RTLD_NOW
11216# else
11217# ifdef DL_NOW
11218# define LT_DLLAZY_OR_NOW DL_NOW
11219# else
11220# define LT_DLLAZY_OR_NOW 0
11221# endif
11222# endif
11223# endif
11224# endif
11225#endif
11226
ce2cded5
L
11227void fnord() { int i=42;}
11228int main ()
d7040cdb 11229{
ce2cded5
L
11230 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11231 int status = $lt_dlunknown;
11232
11233 if (self)
11234 {
11235 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11236 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11237 /* dlclose (self); */
11238 }
11239 else
11240 puts (dlerror ());
11241
718a6fd8 11242 return status;
d7040cdb 11243}
ce2cded5 11244_LT_EOF
81ecdfbb 11245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11246 (eval $ac_link) 2>&5
11247 ac_status=$?
81ecdfbb
RW
11248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11249 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11250 (./conftest; exit; ) >&5 2>/dev/null
11251 lt_status=$?
11252 case x$lt_status in
11253 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11254 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11255 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11256 esac
11257 else :
11258 # compilation failed
11259 lt_cv_dlopen_self_static=no
11260 fi
d7040cdb 11261fi
ce2cded5
L
11262rm -fr conftest*
11263
11264
d7040cdb 11265fi
81ecdfbb
RW
11266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11267$as_echo "$lt_cv_dlopen_self_static" >&6; }
ce2cded5
L
11268 fi
11269
11270 CPPFLAGS="$save_CPPFLAGS"
11271 LDFLAGS="$save_LDFLAGS"
11272 LIBS="$save_LIBS"
11273 ;;
11274 esac
11275
11276 case $lt_cv_dlopen_self in
11277 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11278 *) enable_dlopen_self=unknown ;;
11279 esac
11280
11281 case $lt_cv_dlopen_self_static in
11282 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11283 *) enable_dlopen_self_static=unknown ;;
11284 esac
d7040cdb 11285fi
d7040cdb 11286
d7040cdb
SE
11287
11288
d7040cdb 11289
d7040cdb 11290
ce2cded5
L
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303striplib=
11304old_striplib=
81ecdfbb
RW
11305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11306$as_echo_n "checking whether stripping libraries is possible... " >&6; }
ce2cded5
L
11307if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11308 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11309 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11311$as_echo "yes" >&6; }
ce2cded5
L
11312else
11313# FIXME - insert some real tests, host_os isn't really good enough
11314 case $host_os in
11315 darwin*)
11316 if test -n "$STRIP" ; then
11317 striplib="$STRIP -x"
11318 old_striplib="$STRIP -S"
81ecdfbb
RW
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11320$as_echo "yes" >&6; }
ce2cded5 11321 else
81ecdfbb
RW
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323$as_echo "no" >&6; }
d7040cdb 11324 fi
ce2cded5
L
11325 ;;
11326 *)
81ecdfbb
RW
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328$as_echo "no" >&6; }
ce2cded5 11329 ;;
d7040cdb 11330 esac
d7040cdb
SE
11331fi
11332
d7040cdb 11333
d7040cdb 11334
d7040cdb 11335
d7040cdb 11336
d7040cdb 11337
d7040cdb 11338
d7040cdb 11339
d7040cdb 11340
d7040cdb 11341
d7040cdb 11342
d7040cdb 11343
ce2cded5 11344 # Report which library types will actually be built
81ecdfbb
RW
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11346$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11348$as_echo "$can_build_shared" >&6; }
d7040cdb 11349
81ecdfbb
RW
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11351$as_echo_n "checking whether to build shared libraries... " >&6; }
ce2cded5 11352 test "$can_build_shared" = "no" && enable_shared=no
d7040cdb 11353
ce2cded5
L
11354 # On AIX, shared libraries and static libraries use the same namespace, and
11355 # are all built from PIC.
11356 case $host_os in
11357 aix3*)
11358 test "$enable_shared" = yes && enable_static=no
11359 if test -n "$RANLIB"; then
11360 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11361 postinstall_cmds='$RANLIB $lib'
11362 fi
11363 ;;
d7040cdb 11364
50e7d84b 11365 aix[4-9]*)
ce2cded5
L
11366 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11367 test "$enable_shared" = yes && enable_static=no
11368 fi
11369 ;;
11370 esac
81ecdfbb
RW
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11372$as_echo "$enable_shared" >&6; }
ce2cded5 11373
81ecdfbb
RW
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11375$as_echo_n "checking whether to build static libraries... " >&6; }
ce2cded5
L
11376 # Make sure either enable_shared or enable_static is yes.
11377 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11379$as_echo "$enable_static" >&6; }
d7040cdb 11380
d7040cdb 11381
d7040cdb 11382
d7040cdb 11383
ce2cded5
L
11384fi
11385ac_ext=c
11386ac_cpp='$CPP $CPPFLAGS'
11387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11389ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 11390
ce2cded5 11391CC="$lt_save_CC"
d7040cdb 11392
d7040cdb 11393
d7040cdb 11394
d7040cdb 11395
d7040cdb 11396
d7040cdb 11397
d7040cdb 11398
d7040cdb 11399
d7040cdb 11400
d7040cdb
SE
11401
11402
d7040cdb
SE
11403
11404
81ecdfbb 11405 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
11406
11407
d7040cdb 11408
d7040cdb 11409
ce2cded5 11410# Only expand once:
d7040cdb 11411
d7040cdb 11412
d7040cdb 11413
81ecdfbb
RW
11414# Check whether --enable-targets was given.
11415if test "${enable_targets+set}" = set; then :
11416 enableval=$enable_targets; case "${enableval}" in
11417 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
ce2cded5
L
11418 ;;
11419 no) enable_targets= ;;
11420 *) enable_targets=$enableval ;;
11421esac
81ecdfbb
RW
11422fi
11423
ce2cded5
L
11424ac_checking=yes
11425if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11426 ac_checking=
11427fi
81ecdfbb
RW
11428# Check whether --enable-checking was given.
11429if test "${enable_checking+set}" = set; then :
11430 enableval=$enable_checking; case "${enableval}" in
ce2cded5
L
11431 no|none) ac_checking= ;;
11432 *) ac_checking=yes ;;
11433esac
81ecdfbb
RW
11434fi
11435if test x$ac_checking != x ; then
d7040cdb 11436
81ecdfbb 11437$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
d7040cdb 11438
ce2cded5 11439fi
d7040cdb 11440
ce2cded5 11441using_cgen=no
d7040cdb 11442
d7040cdb 11443
ce2cded5 11444GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
d7040cdb 11445
81ecdfbb
RW
11446# Check whether --enable-werror was given.
11447if test "${enable_werror+set}" = set; then :
11448 enableval=$enable_werror; case "${enableval}" in
ce2cded5
L
11449 yes | y) ERROR_ON_WARNING="yes" ;;
11450 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 11451 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
ce2cded5 11452 esac
81ecdfbb
RW
11453fi
11454
d7040cdb 11455
bb8541b9
L
11456# Enable -Wno-format by default when using gcc on mingw
11457case "${host}" in
11458 *-*-mingw32*)
11459 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11460 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11461 fi
11462 ;;
11463 *) ;;
11464esac
11465
ce2cded5
L
11466# Enable -Werror by default when using gcc
11467if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11468 ERROR_ON_WARNING=yes
11469fi
11470
11471NO_WERROR=
11472if test "${ERROR_ON_WARNING}" = yes ; then
11473 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11474 NO_WERROR="-Wno-error"
11475fi
11476
11477if test "${GCC}" = yes ; then
11478 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11479fi
11480
81ecdfbb
RW
11481# Check whether --enable-build-warnings was given.
11482if test "${enable_build_warnings+set}" = set; then :
11483 enableval=$enable_build_warnings; case "${enableval}" in
ce2cded5
L
11484 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11485 no) if test "${GCC}" = yes ; then
11486 WARN_CFLAGS="-w"
11487 fi;;
11488 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11489 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11490 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11491 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11492 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11493esac
81ecdfbb
RW
11494fi
11495
d7040cdb 11496
ce2cded5
L
11497if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11498 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11499fi
d7040cdb 11500
d7040cdb 11501
d7040cdb 11502
d7040cdb 11503
d7040cdb 11504
ce2cded5 11505# Generate a header file
81ecdfbb 11506ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb 11507
d7040cdb 11508
ce2cded5
L
11509# If we are on a DOS filesystem, we must use gdb.ini rather than
11510# .gdbinit.
11511case "${host}" in
11512 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11513 GDBINIT="gdb.ini"
81ecdfbb 11514 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
d7040cdb 11515
ce2cded5
L
11516 ;;
11517 *)
11518 GDBINIT=".gdbinit"
81ecdfbb 11519 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
d7040cdb 11520
ce2cded5
L
11521 ;;
11522esac
d7040cdb 11523
d7040cdb 11524
ce2cded5 11525#We need this for the host. BOUT header is in host order.
81ecdfbb
RW
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11527$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11528if test "${ac_cv_c_bigendian+set}" = set; then :
11529 $as_echo_n "(cached) " >&6
11530else
11531 ac_cv_c_bigendian=unknown
11532 # See if we're dealing with a universal compiler.
11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534/* end confdefs.h. */
11535#ifndef __APPLE_CC__
11536 not a universal capable compiler
11537 #endif
11538 typedef int dummy;
11539
11540_ACEOF
11541if ac_fn_c_try_compile "$LINENO"; then :
11542
11543 # Check for potential -arch flags. It is not universal unless
11544 # there are at least two -arch flags with different values.
11545 ac_arch=
11546 ac_prev=
11547 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11548 if test -n "$ac_prev"; then
11549 case $ac_word in
11550 i?86 | x86_64 | ppc | ppc64)
11551 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11552 ac_arch=$ac_word
11553 else
11554 ac_cv_c_bigendian=universal
11555 break
11556 fi
11557 ;;
11558 esac
11559 ac_prev=
11560 elif test "x$ac_word" = "x-arch"; then
11561 ac_prev=arch
11562 fi
11563 done
11564fi
11565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11566 if test $ac_cv_c_bigendian = unknown; then
11567 # See if sys/param.h defines the BYTE_ORDER macro.
11568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11569/* end confdefs.h. */
11570#include <sys/types.h>
81ecdfbb 11571 #include <sys/param.h>
d7040cdb 11572
ce2cded5
L
11573int
11574main ()
11575{
81ecdfbb
RW
11576#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11577 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11578 && LITTLE_ENDIAN)
11579 bogus endian macros
11580 #endif
d7040cdb 11581
ce2cded5
L
11582 ;
11583 return 0;
11584}
11585_ACEOF
81ecdfbb 11586if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 11587 # It does; now see whether it defined to BIG_ENDIAN or not.
81ecdfbb 11588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11589/* end confdefs.h. */
11590#include <sys/types.h>
81ecdfbb 11591 #include <sys/param.h>
d7040cdb 11592
ce2cded5
L
11593int
11594main ()
11595{
11596#if BYTE_ORDER != BIG_ENDIAN
81ecdfbb
RW
11597 not big endian
11598 #endif
d7040cdb 11599
ce2cded5
L
11600 ;
11601 return 0;
11602}
11603_ACEOF
81ecdfbb 11604if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
11605 ac_cv_c_bigendian=yes
11606else
81ecdfbb 11607 ac_cv_c_bigendian=no
ce2cded5 11608fi
81ecdfbb
RW
11609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11610fi
11611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11612 fi
11613 if test $ac_cv_c_bigendian = unknown; then
11614 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616/* end confdefs.h. */
11617#include <limits.h>
d7040cdb 11618
81ecdfbb
RW
11619int
11620main ()
11621{
11622#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11623 bogus endian macros
11624 #endif
11625
11626 ;
11627 return 0;
11628}
ce2cded5 11629_ACEOF
81ecdfbb
RW
11630if ac_fn_c_try_compile "$LINENO"; then :
11631 # It does; now see whether it defined to _BIG_ENDIAN or not.
11632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11633/* end confdefs.h. */
81ecdfbb
RW
11634#include <limits.h>
11635
ce2cded5
L
11636int
11637main ()
11638{
81ecdfbb
RW
11639#ifndef _BIG_ENDIAN
11640 not big endian
11641 #endif
11642
ce2cded5
L
11643 ;
11644 return 0;
11645}
11646_ACEOF
81ecdfbb 11647if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 11648 ac_cv_c_bigendian=yes
81ecdfbb
RW
11649else
11650 ac_cv_c_bigendian=no
d7040cdb 11651fi
81ecdfbb 11652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 11653fi
81ecdfbb
RW
11654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11655 fi
11656 if test $ac_cv_c_bigendian = unknown; then
11657 # Compile a test program.
11658 if test "$cross_compiling" = yes; then :
11659 # Try to guess by grepping values from an object file.
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661/* end confdefs.h. */
11662short int ascii_mm[] =
11663 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11664 short int ascii_ii[] =
11665 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11666 int use_ascii (int i) {
11667 return ascii_mm[i] + ascii_ii[i];
11668 }
11669 short int ebcdic_ii[] =
11670 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11671 short int ebcdic_mm[] =
11672 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11673 int use_ebcdic (int i) {
11674 return ebcdic_mm[i] + ebcdic_ii[i];
11675 }
11676 extern int foo;
d7040cdb 11677
81ecdfbb
RW
11678int
11679main ()
11680{
11681return use_ascii (foo) == use_ebcdic (foo);
11682 ;
11683 return 0;
11684}
11685_ACEOF
11686if ac_fn_c_try_compile "$LINENO"; then :
11687 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11688 ac_cv_c_bigendian=yes
11689 fi
11690 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11691 if test "$ac_cv_c_bigendian" = unknown; then
11692 ac_cv_c_bigendian=no
11693 else
11694 # finding both strings is unlikely to happen, but who knows?
11695 ac_cv_c_bigendian=unknown
11696 fi
11697 fi
ce2cded5 11698fi
81ecdfbb 11699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 11700else
81ecdfbb 11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11702/* end confdefs.h. */
81ecdfbb 11703$ac_includes_default
ce2cded5
L
11704int
11705main ()
11706{
81ecdfbb
RW
11707
11708 /* Are we little or big endian? From Harbison&Steele. */
11709 union
11710 {
11711 long int l;
11712 char c[sizeof (long int)];
11713 } u;
11714 u.l = 1;
11715 return u.c[sizeof (long int) - 1] == 1;
11716
11717 ;
11718 return 0;
ce2cded5 11719}
d7040cdb 11720_ACEOF
81ecdfbb 11721if ac_fn_c_try_run "$LINENO"; then :
ce2cded5
L
11722 ac_cv_c_bigendian=no
11723else
81ecdfbb 11724 ac_cv_c_bigendian=yes
d7040cdb 11725fi
81ecdfbb
RW
11726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11727 conftest.$ac_objext conftest.beam conftest.$ac_ext
d7040cdb 11728fi
81ecdfbb
RW
11729
11730 fi
ce2cded5 11731fi
81ecdfbb
RW
11732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11733$as_echo "$ac_cv_c_bigendian" >&6; }
11734 case $ac_cv_c_bigendian in #(
11735 yes)
11736 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11737;; #(
11738 no)
11739 ;; #(
11740 universal)
d7040cdb 11741
81ecdfbb
RW
11742$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11743
11744 ;; #(
11745 *)
11746 as_fn_error "unknown endianness
11747 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11748 esac
d7040cdb 11749
d7040cdb 11750
ce2cded5 11751te_file=generic
d7040cdb 11752
ce2cded5
L
11753# Makefile target for installing gas in $(tooldir)/bin.
11754install_tooldir=install-exec-tooldir
d7040cdb 11755
ce2cded5
L
11756canon_targets=""
11757all_targets=no
11758if test -n "$enable_targets" ; then
11759 for t in `echo $enable_targets | sed 's/,/ /g'`; do
11760 if test $t = "all"; then
11761 all_targets=yes
11762 continue
11763 fi
11764 result=`$ac_config_sub $t 2>/dev/null`
11765 if test -n "$result" ; then
11766 canon_targets="$canon_targets $result"
11767# else
11768# # Permit "all", etc. We don't support it yet though.
11769# canon_targets="$canon_targets $t"
11770 fi
11771 done
11772 _gas_uniq_list="$canon_targets"
d7040cdb
SE
11773_gas_uniq_newlist=""
11774for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11775 case $_gas_uniq_i in
11776 _gas_uniq_dummy) ;;
11777 *) case " $_gas_uniq_newlist " in
11778 *" $_gas_uniq_i "*) ;;
11779 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11780 esac ;;
11781 esac
11782done
ce2cded5 11783canon_targets=$_gas_uniq_newlist
d7040cdb 11784
ce2cded5
L
11785fi
11786
11787emulations=""
11788
11789for this_target in $target $canon_targets ; do
11790
11791 targ=${this_target}
11792 . ${srcdir}/configure.tgt
11793
11794 case ${target_cpu} in
11795 crisv32)
11796
11797cat >>confdefs.h <<_ACEOF
11798#define DEFAULT_CRIS_ARCH $arch
d7040cdb 11799_ACEOF
ce2cded5
L
11800
11801 ;;
11802 esac
11803
11804 if test ${this_target} = $target ; then
11805 target_cpu_type=${cpu_type}
11806 elif test ${target_cpu_type} != ${cpu_type} ; then
11807 continue
11808 fi
11809
11810 generic_target=${cpu_type}-${target_vendor}-${target_os}
11811 case ${generic_target} in
11812 i386-*-sco3.2v5*)
11813 if test ${this_target} = $target; then
11814
81ecdfbb 11815$as_echo "#define SCO_ELF 1" >>confdefs.h
ce2cded5
L
11816
11817 fi
11818 ;;
11819
11820 i386-*-msdosdjgpp* \
11821 | i386-*-go32* \
11822 | i386-go32-rtems*)
11823
81ecdfbb 11824$as_echo "#define STRICTCOFF 1" >>confdefs.h
ce2cded5
L
11825
11826 ;;
11827
11828 i860-*-*)
81ecdfbb
RW
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
11830$as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
ce2cded5
L
11831 ;;
11832
7ba29e2a
NC
11833 microblaze*)
11834 ;;
11835
ce2cded5
L
11836 mips-sony-bsd*)
11837 ;;
11838 mips-*-bsd*)
81ecdfbb 11839 as_fn_error "Unknown vendor for mips-bsd configuration." "$LINENO" 5
ce2cded5
L
11840 ;;
11841
e5231592 11842 ppc-*-aix[5-9].*)
ce2cded5 11843
81ecdfbb 11844$as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
ce2cded5
L
11845
11846 ;;
11847 ppc-*-linux-*)
11848 case "$endian" in
11849 big) ;;
81ecdfbb 11850 *) as_fn_error "GNU/Linux must be configured big endian" "$LINENO" 5 ;;
ce2cded5
L
11851 esac
11852 ;;
11853 ppc-*-solaris*)
11854 if test ${this_target} = $target; then
11855
81ecdfbb 11856$as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
ce2cded5
L
11857
11858 fi
11859 if test x${endian} = xbig; then
81ecdfbb 11860 as_fn_error "Solaris must be configured little endian" "$LINENO" 5
ce2cded5
L
11861 fi
11862 ;;
11863
11864 sh*-*-symbianelf*)
11865
81ecdfbb 11866$as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
ce2cded5
L
11867
11868 ;;
d7040cdb 11869 esac
d7040cdb 11870
ce2cded5
L
11871 if test ${this_target} = $target ; then
11872 endian_def=
11873 if test x${endian} = xbig; then
11874 endian_def=1
11875 elif test x${endian} = xlittle; then
11876 endian_def=0
11877 fi
11878 if test x${endian_def} != x; then
11879
11880cat >>confdefs.h <<_ACEOF
11881#define TARGET_BYTES_BIG_ENDIAN $endian_def
11882_ACEOF
11883
11884 fi
11885 fi
11886
11887# Other random stuff.
11888
11889 case ${cpu_type} in
11890 mips)
11891 # Set mips_cpu to the name of the default CPU.
11892 case ${target_cpu} in
11893 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
11894 mips_cpu=from-abi
11895 ;;
11896 mipsisa32 | mipsisa32el)
11897 mips_cpu=mips32
11898 ;;
11899 mipsisa32r2 | mipsisa32r2el)
11900 mips_cpu=mips32r2
11901 ;;
11902 mipsisa64 | mipsisa64el)
11903 mips_cpu=mips64
11904 ;;
11905 mipsisa64r2 | mipsisa64r2el)
11906 mips_cpu=mips64r2
11907 ;;
11908 mipstx39 | mipstx39el)
11909 mips_cpu=r3900
11910 ;;
11911 mips64vr | mips64vrel)
11912 mips_cpu=vr4100
11913 ;;
11914 mipsisa32r2* | mipsisa64r2*)
11915 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
11916 ;;
11917 mips64* | mipsisa64* | mipsisa32*)
11918 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
11919 ;;
11920 *)
81ecdfbb 11921 as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
ce2cded5
L
11922 ;;
11923 esac
11924 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
11925 # binaries. It's a GNU extension that some OSes don't understand.
11926 # The value only matters on ELF targets.
11927 case ${target} in
11928 *-*-irix*)
11929 use_e_mips_abi_o32=0
11930 ;;
11931 *)
11932 use_e_mips_abi_o32=1
11933 ;;
11934 esac
11935 # Decide whether to generate 32-bit or 64-bit code by default.
11936 # Used to resolve -march=from-abi when an embedded ABI is selected.
11937 case ${target} in
11938 mips64*-*-* | mipsisa64*-*-*)
11939 mips_default_64bit=1
11940 ;;
11941 *)
11942 mips_default_64bit=0
11943 ;;
11944 esac
11945 # Decide which ABI to target by default.
11946 case ${target} in
11947 mips64*-linux* | mips-sgi-irix6*)
11948 mips_default_abi=N32_ABI
11949 ;;
11950 mips*-linux*)
11951 mips_default_abi=O32_ABI
11952 ;;
11953 mips64*-openbsd*)
11954 mips_default_abi=N64_ABI
11955 ;;
11956 *)
11957 mips_default_abi=NO_ABI
11958 ;;
11959 esac
11960
11961cat >>confdefs.h <<_ACEOF
11962#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
d7040cdb 11963_ACEOF
d7040cdb
SE
11964
11965
11966cat >>confdefs.h <<_ACEOF
ce2cded5 11967#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
d7040cdb
SE
11968_ACEOF
11969
11970
11971cat >>confdefs.h <<_ACEOF
ce2cded5 11972#define MIPS_DEFAULT_64BIT $mips_default_64bit
d7040cdb
SE
11973_ACEOF
11974
11975
ce2cded5
L
11976cat >>confdefs.h <<_ACEOF
11977#define MIPS_DEFAULT_ABI $mips_default_abi
11978_ACEOF
d7040cdb 11979
ce2cded5
L
11980 ;;
11981 esac
d7040cdb 11982
ce2cded5
L
11983 # Do we need the opcodes library?
11984 case ${cpu_type} in
11985 vax | tic30)
11986 ;;
d7040cdb 11987
ce2cded5
L
11988 *)
11989 need_opcodes=yes
d7040cdb 11990
ce2cded5
L
11991 case "${enable_shared}" in
11992 yes) shared_opcodes=true ;;
11993 *opcodes*) shared_opcodes=true ;;
11994 *) shared_opcodes=false ;;
11995 esac
11996 ;;
11997 esac
d7040cdb 11998
ce2cded5
L
11999 # Any other special object files needed ?
12000 case ${cpu_type} in
d7040cdb 12001
ce2cded5
L
12002 bfin)
12003 echo ${extra_objects} | grep -s "bfin-parse.o"
12004 if test $? -ne 0 ; then
12005 extra_objects="$extra_objects bfin-parse.o"
12006 fi
d7040cdb 12007
ce2cded5
L
12008 echo ${extra_objects} | grep -s "bfin-lex.o"
12009 if test $? -ne 0 ; then
12010 extra_objects="$extra_objects bfin-lex.o"
12011 fi
12012 ;;
d7040cdb 12013
84e94c90 12014 fr30 | ip2k | iq2000 | lm32 | m32r | openrisc)
ce2cded5
L
12015 using_cgen=yes
12016 ;;
d7040cdb 12017
ce2cded5
L
12018 m32c)
12019 using_cgen=yes
12020 ;;
12021 frv)
12022 using_cgen=yes
12023 ;;
12024 m68k)
12025 case ${extra_objects} in
12026 *m68k-parse.o*) ;;
12027 *) extra_objects="$extra_objects m68k-parse.o" ;;
12028 esac
12029 ;;
d7040cdb 12030
ce2cded5
L
12031 mep)
12032 using_cgen=yes
12033 ;;
d7040cdb 12034
ce2cded5
L
12035 mips)
12036 echo ${extra_objects} | grep -s "itbl-parse.o"
12037 if test $? -ne 0 ; then
12038 extra_objects="$extra_objects itbl-parse.o"
12039 fi
d7040cdb 12040
ce2cded5
L
12041 echo ${extra_objects} | grep -s "itbl-lex.o"
12042 if test $? -ne 0 ; then
12043 extra_objects="$extra_objects itbl-lex.o"
12044 fi
d7040cdb 12045
ce2cded5
L
12046 echo ${extra_objects} | grep -s "itbl-ops.o"
12047 if test $? -ne 0 ; then
12048 extra_objects="$extra_objects itbl-ops.o"
12049 fi
12050 ;;
d7040cdb 12051
ce2cded5
L
12052 mt)
12053 using_cgen=yes
12054 ;;
d7040cdb 12055
ce2cded5
L
12056 i386 | s390 | sparc)
12057 if test $this_target = $target ; then
d7040cdb
SE
12058
12059cat >>confdefs.h <<_ACEOF
ce2cded5 12060#define DEFAULT_ARCH "${arch}"
d7040cdb
SE
12061_ACEOF
12062
ce2cded5
L
12063 fi
12064 ;;
d7040cdb 12065
c7927a3c
NC
12066 rx)
12067 echo ${extra_objects} | grep -s "rx-parse.o"
12068 if test $? -ne 0 ; then
12069 extra_objects="$extra_objects rx-parse.o"
12070 fi
12071 ;;
12072
ce2cded5
L
12073 xstormy16)
12074 using_cgen=yes
12075 ;;
d7040cdb 12076
ce2cded5
L
12077 xc16x)
12078 using_cgen=yes
12079 ;;
d7040cdb 12080
ce2cded5
L
12081 xtensa)
12082 echo ${extra_objects} | grep -s "xtensa-relax.o"
12083 if test $? -ne 0 ; then
12084 extra_objects="$extra_objects xtensa-relax.o"
12085 fi
12086 ;;
d7040cdb 12087
ce2cded5
L
12088 *)
12089 ;;
12090 esac
d7040cdb 12091
ce2cded5
L
12092 if test $using_cgen = yes ; then
12093 case "x${extra_objects}" in
12094 *cgen.o*) ;;
12095 *) extra_objects="$extra_objects cgen.o" ;;
12096 esac
12097 fi
d7040cdb 12098
ce2cded5 12099# See if we really can support this configuration with the emulation code.
d7040cdb 12100
ce2cded5
L
12101 if test $this_target = $target ; then
12102 obj_format=$fmt
12103 te_file=$em
12104 fi
d7040cdb 12105
b11d79f2
TG
12106 case ${te_file} in
12107 vms) extra_objects="$extra_objects te-vms.o" ;;
12108 esac
12109
ce2cded5 12110# From target name and format, produce a list of supported emulations.
d7040cdb 12111
ce2cded5
L
12112 case ${generic_target}-${fmt} in
12113 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
12114 mips*-*-linux*-*) case "$endian" in
12115 big) emulation="mipsbelf mipslelf mipself" ;;
12116 *) emulation="mipslelf mipsbelf mipself" ;;
12117 esac ;;
12118 mips-*-lnews*-ecoff) ;;
12119 mips-*-*-ecoff) case "$endian" in
12120 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
12121 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
12122 esac ;;
12123 mips-*-*-elf) case "$endian" in
12124 big) emulation="mipsbelf mipslelf mipself" ;;
12125 *) emulation="mipslelf mipsbelf mipself" ;;
12126 esac ;;
12127 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
12128 # i386-pc-pe-coff != i386-pc-coff.
12129 i386-*-pe-coff) ;;
12130 # Uncommenting the next line will turn on support for i386 AOUT
12131 # for the default linux configuration
12132 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12133 #
12134 i386-*-aout) emulation="i386aout" ;;
12135 i386-*-coff) emulation="i386coff" ;;
12136 i386-*-elf) emulation="i386elf" ;;
d7040cdb 12137
ce2cded5
L
12138 # Always all formats. The first stated emulation becomes the default.
12139 cris-*-*aout*) emulation="crisaout criself" ;;
12140 cris-*-*) emulation="criself crisaout" ;;
12141 esac
13b2be9c 12142
ce2cded5 12143 emulations="$emulations $emulation"
13b2be9c 12144
13b2be9c 12145done
13b2be9c 12146
ce2cded5
L
12147# Turn on all targets if possible
12148if test ${all_targets} = "yes"; then
12149 case ${target_cpu_type} in
12150 i386)
12151 case ${obj_format} in
12152 aout)
12153 emulations="$emulations i386coff i386elf"
12154 ;;
12155 coff)
12156 emulations="$emulations i386aout i386elf"
12157 ;;
12158 elf)
12159 emulations="$emulations i386aout i386coff"
12160 ;;
12161 esac
12162 ;;
12163 x86_64)
12164 case ${obj_format} in
12165 aout)
12166 emulations="$emulations i386coff i386elf"
12167 ;;
12168 coff)
12169 emulations="$emulations i386aout i386elf"
12170 ;;
12171 elf)
12172 emulations="$emulations i386aout i386coff"
12173 ;;
12174 esac
12175 ;;
12176 esac
13b2be9c 12177fi
c8615825 12178
ce2cded5
L
12179# Assign floating point type. Most processors with FP support
12180# IEEE FP. On those that don't support FP at all, usually IEEE
12181# is emulated.
12182case ${target_cpu} in
12183 vax | pdp11 ) atof=vax ;;
12184 *) atof=ieee ;;
12185esac
c8615825 12186
ce2cded5 12187case "${obj_format}" in
81ecdfbb 12188 "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
ce2cded5 12189esac
13b2be9c 12190
ce2cded5
L
12191# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12192cgen_cpu_prefix=""
12193if test $using_cgen = yes ; then
12194 case ${target_cpu} in
12195 *) cgen_cpu_prefix=${target_cpu} ;;
12196 esac
c8615825 12197
c8615825 12198
81ecdfbb 12199$as_echo "#define USING_CGEN 1" >>confdefs.h
d7040cdb 12200
d7040cdb 12201fi
13b2be9c 12202
ce2cded5
L
12203
12204if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
81ecdfbb 12205 as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
13b2be9c 12206fi
ce2cded5
L
12207
12208if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
81ecdfbb 12209 as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
13b2be9c
DJ
12210fi
12211
ce2cded5
L
12212# Some COFF configurations want these random other flags set.
12213case ${obj_format} in
12214 coff)
12215 case ${target_cpu_type} in
12216 i386)
81ecdfbb 12217$as_echo "#define I386COFF 1" >>confdefs.h
ce2cded5
L
12218 ;;
12219 m68k)
81ecdfbb 12220$as_echo "#define M68KCOFF 1" >>confdefs.h
ce2cded5
L
12221 ;;
12222 m88k)
81ecdfbb 12223$as_echo "#define M88KCOFF 1" >>confdefs.h
ce2cded5
L
12224 ;;
12225 x86_64)
81ecdfbb 12226$as_echo "#define I386COFF 1" >>confdefs.h
ce2cded5
L
12227 ;;
12228 esac
12229 ;;
12230esac
12231
12232# Getting this done right is going to be a bitch. Each configuration specified
12233# with --enable-targets=... should be checked for environment, format, cpu
12234# setting.
12235#
12236# For each configuration, the necessary object file support code must be linked
12237# in. This might be only one, it might be up to four. The necessary emulation
12238# code needs to be provided, too.
12239#
12240# And then there's "--enable-targets=all"....
12241#
12242# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
12243
12244formats="${obj_format}"
12245emfiles=""
12246EMULATIONS=""
12247_gas_uniq_list="$emulations"
12248_gas_uniq_newlist=""
12249for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12250 case $_gas_uniq_i in
12251 _gas_uniq_dummy) ;;
12252 *) case " $_gas_uniq_newlist " in
12253 *" $_gas_uniq_i "*) ;;
12254 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12255 esac ;;
12256 esac
12257done
12258emulations=$_gas_uniq_newlist
12259
12260for em in . $emulations ; do
12261 case $em in
12262 .) continue ;;
12263 mipsbelf | mipslelf | mipself)
12264 fmt=elf file=mipself ;;
12265 mipsbecoff | mipslecoff | mipsecoff)
12266 fmt=ecoff file=mipsecoff ;;
12267 *coff)
12268 fmt=coff file=$em ;;
12269 *aout)
12270 fmt=aout file=$em ;;
12271 *elf)
12272 fmt=elf file=$em ;;
12273 esac
12274 formats="$formats $fmt"
12275 emfiles="$emfiles e-$file.o"
12276 EMULATIONS="$EMULATIONS &$em,"
12277done
12278_gas_uniq_list="$formats"
12279_gas_uniq_newlist=""
12280for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12281 case $_gas_uniq_i in
12282 _gas_uniq_dummy) ;;
12283 *) case " $_gas_uniq_newlist " in
12284 *" $_gas_uniq_i "*) ;;
12285 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12286 esac ;;
12287 esac
13b2be9c 12288done
ce2cded5 12289formats=$_gas_uniq_newlist
13b2be9c 12290
ce2cded5
L
12291_gas_uniq_list="$emfiles"
12292_gas_uniq_newlist=""
12293for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12294 case $_gas_uniq_i in
12295 _gas_uniq_dummy) ;;
12296 *) case " $_gas_uniq_newlist " in
12297 *" $_gas_uniq_i "*) ;;
12298 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12299 esac ;;
12300 esac
12301done
12302emfiles=$_gas_uniq_newlist
d7040cdb 12303
ce2cded5
L
12304if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12305 for fmt in $formats ; do
12306 case $fmt in
12307 aout)
81ecdfbb 12308$as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
ce2cded5
L
12309 ;;
12310 bout)
81ecdfbb 12311$as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
ce2cded5
L
12312 ;;
12313 coff)
81ecdfbb 12314$as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
ce2cded5
L
12315 ;;
12316 ecoff)
81ecdfbb 12317$as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
ce2cded5
L
12318 ;;
12319 elf)
81ecdfbb 12320$as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
ce2cded5
L
12321 ;;
12322 generic)
81ecdfbb 12323$as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
ce2cded5
L
12324 ;;
12325 som)
81ecdfbb 12326$as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
ce2cded5
L
12327 ;;
12328 esac
12329 extra_objects="$extra_objects obj-$fmt.o"
12330 done
12331 obj_format=multi
13b2be9c 12332fi
ce2cded5
L
12333if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12334 DEFAULT_EMULATION=`set . $emulations ; echo $2`
12335 # e-mips* has more than one emulation per file, e-i386* has just one at the
12336 # moment. If only one emulation is specified, then don't define
12337 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12338 case "${obj_format}${emfiles}" in
12339 multi* | *mips*)
12340 extra_objects="$extra_objects $emfiles"
d7040cdb 12341
81ecdfbb 12342$as_echo "#define USE_EMULATIONS 1" >>confdefs.h
ce2cded5
L
12343 ;;
12344 esac
12345fi
d7040cdb 12346
13b2be9c 12347
ce2cded5
L
12348cat >>confdefs.h <<_ACEOF
12349#define EMULATIONS $EMULATIONS
13b2be9c 12350_ACEOF
d7040cdb 12351
d7040cdb 12352
ce2cded5
L
12353cat >>confdefs.h <<_ACEOF
12354#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
d7040cdb 12355_ACEOF
d7040cdb 12356
d7040cdb 12357
ce2cded5 12358reject_dev_configs=yes
252b5132 12359
ce2cded5
L
12360case ${reject_dev_configs}-${dev} in
12361 yes-yes) # Oops.
81ecdfbb 12362 as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
ce2cded5 12363 ;;
d7040cdb
SE
12364esac
12365
13b2be9c 12366
ce2cded5
L
12367
12368
12369
12370
12371
12372# do we need the opcodes library?
12373case "${need_opcodes}" in
12374yes)
12375 OPCODES_LIB=../opcodes/libopcodes.la
12376 ;;
12377esac
12378
12379
12380
12381
12382cat >>confdefs.h <<_ACEOF
12383#define TARGET_ALIAS "${target_alias}"
d7040cdb 12384_ACEOF
20e95c23 12385
20e95c23 12386
ce2cded5
L
12387cat >>confdefs.h <<_ACEOF
12388#define TARGET_CANONICAL "${target}"
12389_ACEOF
20e95c23 12390
d6d788bd 12391
ce2cded5
L
12392cat >>confdefs.h <<_ACEOF
12393#define TARGET_CPU "${target_cpu}"
12394_ACEOF
20e95c23 12395
ce2cded5
L
12396
12397cat >>confdefs.h <<_ACEOF
12398#define TARGET_VENDOR "${target_vendor}"
0efedc4c
AM
12399_ACEOF
12400
12401
ce2cded5
L
12402cat >>confdefs.h <<_ACEOF
12403#define TARGET_OS "${target_os}"
12404_ACEOF
12405
0efedc4c 12406
d7040cdb
SE
12407for ac_prog in 'bison -y' byacc
12408do
12409 # Extract the first word of "$ac_prog", so it can be a program name with args.
12410set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12412$as_echo_n "checking for $ac_word... " >&6; }
12413if test "${ac_cv_prog_YACC+set}" = set; then :
12414 $as_echo_n "(cached) " >&6
20e95c23 12415else
d7040cdb
SE
12416 if test -n "$YACC"; then
12417 ac_cv_prog_YACC="$YACC" # Let the user override the test.
d6d788bd 12418else
d7040cdb
SE
12419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420for as_dir in $PATH
12421do
12422 IFS=$as_save_IFS
12423 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12424 for ac_exec_ext in '' $ac_executable_extensions; do
12425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12426 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 12427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 12428 break 2
20e95c23 12429 fi
d7040cdb 12430done
81ecdfbb
RW
12431 done
12432IFS=$as_save_IFS
20e95c23 12433
d7040cdb
SE
12434fi
12435fi
12436YACC=$ac_cv_prog_YACC
12437if test -n "$YACC"; then
81ecdfbb
RW
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12439$as_echo "$YACC" >&6; }
d7040cdb 12440else
81ecdfbb
RW
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442$as_echo "no" >&6; }
d7040cdb 12443fi
20e95c23 12444
81ecdfbb 12445
d7040cdb
SE
12446 test -n "$YACC" && break
12447done
12448test -n "$YACC" || YACC="yacc"
20e95c23 12449
d7040cdb
SE
12450for ac_prog in flex lex
12451do
12452 # Extract the first word of "$ac_prog", so it can be a program name with args.
12453set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12455$as_echo_n "checking for $ac_word... " >&6; }
12456if test "${ac_cv_prog_LEX+set}" = set; then :
12457 $as_echo_n "(cached) " >&6
d6d788bd 12458else
d7040cdb
SE
12459 if test -n "$LEX"; then
12460 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12461else
12462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12463for as_dir in $PATH
12464do
12465 IFS=$as_save_IFS
12466 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12467 for ac_exec_ext in '' $ac_executable_extensions; do
12468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12469 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 12470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12471 break 2
12472 fi
12473done
81ecdfbb
RW
12474 done
12475IFS=$as_save_IFS
20e95c23 12476
d7040cdb
SE
12477fi
12478fi
12479LEX=$ac_cv_prog_LEX
12480if test -n "$LEX"; then
81ecdfbb
RW
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12482$as_echo "$LEX" >&6; }
20e95c23 12483else
81ecdfbb
RW
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12485$as_echo "no" >&6; }
13b2be9c
DJ
12486fi
12487
81ecdfbb 12488
d7040cdb
SE
12489 test -n "$LEX" && break
12490done
12491test -n "$LEX" || LEX=":"
20e95c23 12492
81ecdfbb
RW
12493if test "x$LEX" != "x:"; then
12494 cat >conftest.l <<_ACEOF
12495%%
12496a { ECHO; }
12497b { REJECT; }
12498c { yymore (); }
12499d { yyless (1); }
12500e { yyless (input () != 0); }
12501f { unput (yytext[0]); }
12502. { BEGIN INITIAL; }
12503%%
12504#ifdef YYTEXT_POINTER
12505extern char *yytext;
d7040cdb 12506#endif
d7040cdb 12507int
81ecdfbb 12508main (void)
d7040cdb 12509{
81ecdfbb 12510 return ! yylex () + ! yywrap ();
d7040cdb
SE
12511}
12512_ACEOF
81ecdfbb
RW
12513{ { ac_try="$LEX conftest.l"
12514case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12517esac
12518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12519$as_echo "$ac_try_echo"; } >&5
12520 (eval "$LEX conftest.l") 2>&5
d7040cdb 12521 ac_status=$?
81ecdfbb
RW
12522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12523 test $ac_status = 0; }
12524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12525$as_echo_n "checking lex output file root... " >&6; }
12526if test "${ac_cv_prog_lex_root+set}" = set; then :
12527 $as_echo_n "(cached) " >&6
d7040cdb 12528else
d5fbea21 12529
81ecdfbb
RW
12530if test -f lex.yy.c; then
12531 ac_cv_prog_lex_root=lex.yy
12532elif test -f lexyy.c; then
12533 ac_cv_prog_lex_root=lexyy
12534else
12535 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
d6d788bd 12536fi
d7040cdb 12537fi
81ecdfbb
RW
12538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12539$as_echo "$ac_cv_prog_lex_root" >&6; }
12540LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
d7040cdb 12541
81ecdfbb
RW
12542if test -z "${LEXLIB+set}"; then
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12544$as_echo_n "checking lex library... " >&6; }
12545if test "${ac_cv_lib_lex+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
d7040cdb 12547else
d7040cdb 12548
81ecdfbb
RW
12549 ac_save_LIBS=$LIBS
12550 ac_cv_lib_lex='none needed'
12551 for ac_lib in '' -lfl -ll; do
12552 LIBS="$ac_lib $ac_save_LIBS"
12553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554/* end confdefs.h. */
12555`cat $LEX_OUTPUT_ROOT.c`
12556_ACEOF
12557if ac_fn_c_try_link "$LINENO"; then :
12558 ac_cv_lib_lex=$ac_lib
d7040cdb 12559fi
81ecdfbb
RW
12560rm -f core conftest.err conftest.$ac_objext \
12561 conftest$ac_exeext conftest.$ac_ext
12562 test "$ac_cv_lib_lex" != 'none needed' && break
12563 done
12564 LIBS=$ac_save_LIBS
d7040cdb
SE
12565
12566fi
81ecdfbb
RW
12567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12568$as_echo "$ac_cv_lib_lex" >&6; }
12569 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb
SE
12570fi
12571
13b2be9c 12572
81ecdfbb
RW
12573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12574$as_echo_n "checking whether yytext is a pointer... " >&6; }
12575if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12576 $as_echo_n "(cached) " >&6
d7040cdb
SE
12577else
12578 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 12579# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
12580# not all implementations provide the %pointer and %array declarations.
12581ac_cv_prog_lex_yytext_pointer=no
d7040cdb 12582ac_save_LIBS=$LIBS
81ecdfbb
RW
12583LIBS="$LEXLIB $ac_save_LIBS"
12584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585/* end confdefs.h. */
12586#define YYTEXT_POINTER 1
d7040cdb 12587`cat $LEX_OUTPUT_ROOT.c`
13b2be9c 12588_ACEOF
81ecdfbb 12589if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 12590 ac_cv_prog_lex_yytext_pointer=yes
13b2be9c 12591fi
81ecdfbb
RW
12592rm -f core conftest.err conftest.$ac_objext \
12593 conftest$ac_exeext conftest.$ac_ext
d7040cdb 12594LIBS=$ac_save_LIBS
252b5132 12595
9b2b7d69 12596fi
81ecdfbb
RW
12597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12598$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb 12599if test $ac_cv_prog_lex_yytext_pointer = yes; then
13b2be9c 12600
81ecdfbb 12601$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
9b2b7d69 12602
d6d788bd 12603fi
81ecdfbb 12604rm -f conftest.l $LEX_OUTPUT_ROOT.c
d7040cdb 12605
c8615825 12606fi
d7040cdb
SE
12607if test "$LEX" = :; then
12608 LEX=${am_missing_run}flex
12609fi
12610
8cc9115f 12611ALL_LINGUAS="fr tr es rw id"
d7040cdb
SE
12612# If we haven't got the data from the intl directory,
12613# assume NLS is disabled.
12614USE_NLS=no
12615LIBINTL=
12616LIBINTL_DEP=
12617INCINTL=
12618XGETTEXT=
12619GMSGFMT=
12620POSUB=
12621
12622if test -f ../intl/config.intl; then
12623 . ../intl/config.intl
12624fi
81ecdfbb
RW
12625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12626$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 12627if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629$as_echo "no" >&6; }
d7040cdb 12630else
81ecdfbb
RW
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12632$as_echo "yes" >&6; }
d7040cdb 12633
81ecdfbb 12634$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
12635
12636
81ecdfbb
RW
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12638$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
12639 # Look for .po and .gmo files in the source directory.
12640 CATALOGS=
12641 XLINGUAS=
12642 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12643 # If there aren't any .gmo files the shell will give us the
12644 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12645 # weeded out.
12646 case "$cat" in *\**)
12647 continue;;
12648 esac
12649 # The quadruple backslash is collapsed to a double backslash
12650 # by the backticks, then collapsed again by the double quotes,
12651 # leaving us with one backslash in the sed expression (right
12652 # before the dot that mustn't act as a wildcard).
12653 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12654 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12655 # The user is allowed to set LINGUAS to a list of languages to
12656 # install catalogs for. If it's empty that means "all of them."
12657 if test "x$LINGUAS" = x; then
12658 CATALOGS="$CATALOGS $cat"
12659 XLINGUAS="$XLINGUAS $lang"
12660 else
12661 case "$LINGUAS" in *$lang*)
12662 CATALOGS="$CATALOGS $cat"
12663 XLINGUAS="$XLINGUAS $lang"
12664 ;;
12665 esac
12666 fi
12667 done
12668 LINGUAS="$XLINGUAS"
81ecdfbb
RW
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12670$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
12671
12672
12673 DATADIRNAME=share
12674
12675 INSTOBJEXT=.mo
12676
12677 GENCAT=gencat
12678
12679 CATOBJEXT=.gmo
12680
12681fi
12682
12683 MKINSTALLDIRS=
12684 if test -n "$ac_aux_dir"; then
12685 case "$ac_aux_dir" in
12686 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12687 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12688 esac
12689 fi
12690 if test -z "$MKINSTALLDIRS"; then
12691 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12692 fi
12693
12694
12695
81ecdfbb
RW
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12697$as_echo_n "checking whether NLS is requested... " >&6; }
12698 # Check whether --enable-nls was given.
12699if test "${enable_nls+set}" = set; then :
12700 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
12701else
12702 USE_NLS=yes
81ecdfbb
RW
12703fi
12704
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12706$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
12707
12708
12709
12710
12711
12712
12713# Prepare PATH_SEPARATOR.
12714# The user is always right.
12715if test "${PATH_SEPARATOR+set}" != set; then
12716 echo "#! /bin/sh" >conf$$.sh
12717 echo "exit 0" >>conf$$.sh
12718 chmod +x conf$$.sh
12719 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12720 PATH_SEPARATOR=';'
13b2be9c 12721 else
d7040cdb 12722 PATH_SEPARATOR=:
13b2be9c 12723 fi
d7040cdb 12724 rm -f conf$$.sh
252b5132 12725fi
13b2be9c 12726
d7040cdb
SE
12727# Find out how to test for executable files. Don't use a zero-byte file,
12728# as systems may use methods other than mode bits to determine executability.
12729cat >conf$$.file <<_ASEOF
12730#! /bin/sh
12731exit 0
12732_ASEOF
12733chmod +x conf$$.file
12734if test -x conf$$.file >/dev/null 2>&1; then
12735 ac_executable_p="test -x"
12736else
12737 ac_executable_p="test -f"
13b2be9c 12738fi
d7040cdb 12739rm -f conf$$.file
13b2be9c 12740
d7040cdb
SE
12741# Extract the first word of "msgfmt", so it can be a program name with args.
12742set dummy msgfmt; ac_word=$2
81ecdfbb
RW
12743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12744$as_echo_n "checking for $ac_word... " >&6; }
12745if test "${ac_cv_path_MSGFMT+set}" = set; then :
12746 $as_echo_n "(cached) " >&6
252b5132 12747else
d7040cdb
SE
12748 case "$MSGFMT" in
12749 [\\/]* | ?:[\\/]*)
12750 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12751 ;;
12752 *)
12753 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12754 for ac_dir in $PATH; do
12755 IFS="$ac_save_IFS"
12756 test -z "$ac_dir" && ac_dir=.
12757 for ac_exec_ext in '' $ac_executable_extensions; do
12758 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12759 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12760 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12761 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12762 break 2
12763 fi
12764 fi
12765 done
12766 done
12767 IFS="$ac_save_IFS"
12768 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12769 ;;
12770esac
252b5132 12771fi
d7040cdb
SE
12772MSGFMT="$ac_cv_path_MSGFMT"
12773if test "$MSGFMT" != ":"; then
81ecdfbb
RW
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12775$as_echo "$MSGFMT" >&6; }
252b5132 12776else
81ecdfbb
RW
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12778$as_echo "no" >&6; }
252b5132 12779fi
252b5132 12780
d7040cdb
SE
12781 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12782set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
12783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12784$as_echo_n "checking for $ac_word... " >&6; }
12785if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12786 $as_echo_n "(cached) " >&6
13b2be9c 12787else
d7040cdb
SE
12788 case $GMSGFMT in
12789 [\\/]* | ?:[\\/]*)
12790 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12791 ;;
12792 *)
12793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12794for as_dir in $PATH
12795do
12796 IFS=$as_save_IFS
12797 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12798 for ac_exec_ext in '' $ac_executable_extensions; do
12799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12800 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12802 break 2
12803 fi
12804done
81ecdfbb
RW
12805 done
12806IFS=$as_save_IFS
252b5132 12807
d7040cdb
SE
12808 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12809 ;;
12810esac
12811fi
12812GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 12813if test -n "$GMSGFMT"; then
81ecdfbb
RW
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12815$as_echo "$GMSGFMT" >&6; }
ac48eca1 12816else
81ecdfbb
RW
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12818$as_echo "no" >&6; }
6840198f 12819fi
6840198f 12820
13b2be9c 12821
20e95c23 12822
81ecdfbb 12823
d7040cdb
SE
12824# Prepare PATH_SEPARATOR.
12825# The user is always right.
12826if test "${PATH_SEPARATOR+set}" != set; then
12827 echo "#! /bin/sh" >conf$$.sh
12828 echo "exit 0" >>conf$$.sh
12829 chmod +x conf$$.sh
12830 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12831 PATH_SEPARATOR=';'
12832 else
12833 PATH_SEPARATOR=:
12834 fi
12835 rm -f conf$$.sh
12836fi
20e95c23 12837
d7040cdb
SE
12838# Find out how to test for executable files. Don't use a zero-byte file,
12839# as systems may use methods other than mode bits to determine executability.
12840cat >conf$$.file <<_ASEOF
12841#! /bin/sh
12842exit 0
12843_ASEOF
12844chmod +x conf$$.file
12845if test -x conf$$.file >/dev/null 2>&1; then
12846 ac_executable_p="test -x"
13b2be9c 12847else
d7040cdb 12848 ac_executable_p="test -f"
13b2be9c 12849fi
d7040cdb 12850rm -f conf$$.file
20e95c23 12851
d7040cdb
SE
12852# Extract the first word of "xgettext", so it can be a program name with args.
12853set dummy xgettext; ac_word=$2
81ecdfbb
RW
12854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12855$as_echo_n "checking for $ac_word... " >&6; }
12856if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12857 $as_echo_n "(cached) " >&6
252b5132 12858else
d7040cdb
SE
12859 case "$XGETTEXT" in
12860 [\\/]* | ?:[\\/]*)
12861 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12862 ;;
12863 *)
12864 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12865 for ac_dir in $PATH; do
12866 IFS="$ac_save_IFS"
12867 test -z "$ac_dir" && ac_dir=.
12868 for ac_exec_ext in '' $ac_executable_extensions; do
12869 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12870 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12871 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12872 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12873 break 2
12874 fi
12875 fi
12876 done
12877 done
12878 IFS="$ac_save_IFS"
12879 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12880 ;;
12881esac
13b2be9c 12882fi
d7040cdb
SE
12883XGETTEXT="$ac_cv_path_XGETTEXT"
12884if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12886$as_echo "$XGETTEXT" >&6; }
d7040cdb 12887else
81ecdfbb
RW
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889$as_echo "no" >&6; }
13b2be9c 12890fi
13b2be9c 12891
d7040cdb 12892 rm -f messages.po
20e95c23 12893
13b2be9c 12894
d7040cdb
SE
12895# Prepare PATH_SEPARATOR.
12896# The user is always right.
12897if test "${PATH_SEPARATOR+set}" != set; then
12898 echo "#! /bin/sh" >conf$$.sh
12899 echo "exit 0" >>conf$$.sh
12900 chmod +x conf$$.sh
12901 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12902 PATH_SEPARATOR=';'
12903 else
12904 PATH_SEPARATOR=:
12905 fi
12906 rm -f conf$$.sh
252b5132 12907fi
20e95c23 12908
d7040cdb
SE
12909# Find out how to test for executable files. Don't use a zero-byte file,
12910# as systems may use methods other than mode bits to determine executability.
12911cat >conf$$.file <<_ASEOF
12912#! /bin/sh
12913exit 0
12914_ASEOF
12915chmod +x conf$$.file
12916if test -x conf$$.file >/dev/null 2>&1; then
12917 ac_executable_p="test -x"
252b5132 12918else
d7040cdb
SE
12919 ac_executable_p="test -f"
12920fi
12921rm -f conf$$.file
20e95c23 12922
d7040cdb
SE
12923# Extract the first word of "msgmerge", so it can be a program name with args.
12924set dummy msgmerge; ac_word=$2
81ecdfbb
RW
12925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12926$as_echo_n "checking for $ac_word... " >&6; }
12927if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12928 $as_echo_n "(cached) " >&6
20e95c23 12929else
d7040cdb
SE
12930 case "$MSGMERGE" in
12931 [\\/]* | ?:[\\/]*)
12932 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12933 ;;
12934 *)
12935 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12936 for ac_dir in $PATH; do
12937 IFS="$ac_save_IFS"
12938 test -z "$ac_dir" && ac_dir=.
12939 for ac_exec_ext in '' $ac_executable_extensions; do
12940 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12941 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12942 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12943 break 2
12944 fi
12945 fi
12946 done
12947 done
12948 IFS="$ac_save_IFS"
12949 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12950 ;;
12951esac
20e95c23 12952fi
d7040cdb
SE
12953MSGMERGE="$ac_cv_path_MSGMERGE"
12954if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12956$as_echo "$MSGMERGE" >&6; }
d7040cdb 12957else
81ecdfbb
RW
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12959$as_echo "no" >&6; }
20e95c23 12960fi
252b5132 12961
252b5132 12962
d7040cdb
SE
12963 if test "$GMSGFMT" != ":"; then
12964 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12965 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12966 : ;
12967 else
12968 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12970$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
12971 GMSGFMT=":"
12972 fi
12973 fi
13b2be9c 12974
d7040cdb
SE
12975 if test "$XGETTEXT" != ":"; then
12976 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12977 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12978 : ;
12979 else
81ecdfbb
RW
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12981$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
12982 XGETTEXT=":"
12983 fi
12984 rm -f messages.po
12985 fi
252b5132 12986
81ecdfbb 12987 ac_config_commands="$ac_config_commands default-1"
13b2be9c 12988
13b2be9c 12989
81ecdfbb
RW
12990
12991
12992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12993$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12994 # Check whether --enable-maintainer-mode was given.
12995if test "${enable_maintainer_mode+set}" = set; then :
12996 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9b2b7d69 12997else
81ecdfbb 12998 USE_MAINTAINER_MODE=no
13b2be9c 12999fi
13b2be9c 13000
81ecdfbb
RW
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13002$as_echo "$USE_MAINTAINER_MODE" >&6; }
13003 if test $USE_MAINTAINER_MODE = yes; then
13004 MAINTAINER_MODE_TRUE=
13005 MAINTAINER_MODE_FALSE='#'
13006else
13007 MAINTAINER_MODE_TRUE='#'
13008 MAINTAINER_MODE_FALSE=
13b2be9c 13009fi
13b2be9c 13010
81ecdfbb
RW
13011 MAINT=$MAINTAINER_MODE_TRUE
13012
13013
13014 if false; then
13015 GENINSRC_NEVER_TRUE=
13016 GENINSRC_NEVER_FALSE='#'
13b2be9c 13017else
81ecdfbb
RW
13018 GENINSRC_NEVER_TRUE='#'
13019 GENINSRC_NEVER_FALSE=
252b5132 13020fi
13b2be9c 13021
81ecdfbb
RW
13022
13023
b11d79f2 13024for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h limits.h time.h sys/stat.h
81ecdfbb
RW
13025do :
13026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13027ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13028eval as_val=\$$as_ac_Header
13029 if test "x$as_val" = x""yes; then :
13b2be9c 13030 cat >>confdefs.h <<_ACEOF
81ecdfbb 13031#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13b2be9c
DJ
13032_ACEOF
13033
252b5132 13034fi
13b2be9c 13035
252b5132
RH
13036done
13037
d6d788bd 13038
252b5132
RH
13039# Put this here so that autoconf's "cross-compiling" message doesn't confuse
13040# people who are not cross-compiling but are compiling cross-assemblers.
81ecdfbb
RW
13041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13042$as_echo_n "checking whether compiling a cross-assembler... " >&6; }
252b5132
RH
13043if test "${host}" = "${target}"; then
13044 cross_gas=no
13045else
13046 cross_gas=yes
13b2be9c 13047
81ecdfbb 13048$as_echo "#define CROSS_COMPILE 1" >>confdefs.h
252b5132
RH
13049
13050fi
81ecdfbb
RW
13051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13052$as_echo "$cross_gas" >&6; }
252b5132
RH
13053
13054# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13055# for constant arguments. Useless!
81ecdfbb
RW
13056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13057$as_echo_n "checking for working alloca.h... " >&6; }
13058if test "${ac_cv_working_alloca_h+set}" = set; then :
13059 $as_echo_n "(cached) " >&6
13b2be9c 13060else
81ecdfbb 13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13062/* end confdefs.h. */
252b5132 13063#include <alloca.h>
13b2be9c
DJ
13064int
13065main ()
13066{
13067char *p = (char *) alloca (2 * sizeof (int));
81ecdfbb 13068 if (p) return 0;
13b2be9c
DJ
13069 ;
13070 return 0;
13071}
13072_ACEOF
81ecdfbb 13073if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
13074 ac_cv_working_alloca_h=yes
13075else
81ecdfbb 13076 ac_cv_working_alloca_h=no
13b2be9c 13077fi
81ecdfbb
RW
13078rm -f core conftest.err conftest.$ac_objext \
13079 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13080fi
81ecdfbb
RW
13081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13082$as_echo "$ac_cv_working_alloca_h" >&6; }
13b2be9c
DJ
13083if test $ac_cv_working_alloca_h = yes; then
13084
81ecdfbb 13085$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
252b5132
RH
13086
13087fi
13088
81ecdfbb
RW
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13090$as_echo_n "checking for alloca... " >&6; }
13091if test "${ac_cv_func_alloca_works+set}" = set; then :
13092 $as_echo_n "(cached) " >&6
252b5132 13093else
81ecdfbb 13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13095/* end confdefs.h. */
252b5132
RH
13096#ifdef __GNUC__
13097# define alloca __builtin_alloca
13098#else
13099# ifdef _MSC_VER
13100# include <malloc.h>
13101# define alloca _alloca
13102# else
81ecdfbb 13103# ifdef HAVE_ALLOCA_H
252b5132
RH
13104# include <alloca.h>
13105# else
13106# ifdef _AIX
13107 #pragma alloca
13108# else
13109# ifndef alloca /* predefined by HP cc +Olibcalls */
13110char *alloca ();
13111# endif
13112# endif
13113# endif
13114# endif
13115#endif
13116
13b2be9c
DJ
13117int
13118main ()
13119{
13120char *p = (char *) alloca (1);
81ecdfbb 13121 if (p) return 0;
13b2be9c
DJ
13122 ;
13123 return 0;
13124}
13125_ACEOF
81ecdfbb 13126if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
13127 ac_cv_func_alloca_works=yes
13128else
81ecdfbb 13129 ac_cv_func_alloca_works=no
252b5132 13130fi
81ecdfbb
RW
13131rm -f core conftest.err conftest.$ac_objext \
13132 conftest$ac_exeext conftest.$ac_ext
252b5132 13133fi
81ecdfbb
RW
13134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13135$as_echo "$ac_cv_func_alloca_works" >&6; }
252b5132 13136
252b5132 13137if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 13138
81ecdfbb 13139$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9b2b7d69 13140
13b2be9c 13141else
c8615825 13142 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
13143# that cause trouble. Some versions do not even contain alloca or
13144# contain a buggy version. If you still want to use their alloca,
13145# use ar to extract alloca.o from them instead of compiling alloca.c.
13146
81ecdfbb 13147ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13b2be9c 13148
81ecdfbb 13149$as_echo "#define C_ALLOCA 1" >>confdefs.h
252b5132 13150
d6d788bd 13151
81ecdfbb
RW
13152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13153$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13154if test "${ac_cv_os_cray+set}" = set; then :
13155 $as_echo_n "(cached) " >&6
252b5132 13156else
81ecdfbb 13157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13158/* end confdefs.h. */
81ecdfbb 13159#if defined CRAY && ! defined CRAY2
252b5132
RH
13160webecray
13161#else
13162wenotbecray
13163#endif
13164
13b2be9c 13165_ACEOF
252b5132 13166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb 13167 $EGREP "webecray" >/dev/null 2>&1; then :
252b5132
RH
13168 ac_cv_os_cray=yes
13169else
252b5132
RH
13170 ac_cv_os_cray=no
13171fi
13172rm -f conftest*
13173
13174fi
81ecdfbb
RW
13175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13176$as_echo "$ac_cv_os_cray" >&6; }
252b5132 13177if test $ac_cv_os_cray = yes; then
13b2be9c 13178 for ac_func in _getb67 GETB67 getb67; do
81ecdfbb
RW
13179 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13180ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13181eval as_val=\$$as_ac_var
13182 if test "x$as_val" = x""yes; then :
13b2be9c
DJ
13183
13184cat >>confdefs.h <<_ACEOF
252b5132 13185#define CRAY_STACKSEG_END $ac_func
13b2be9c 13186_ACEOF
252b5132 13187
13b2be9c 13188 break
252b5132
RH
13189fi
13190
13b2be9c 13191 done
252b5132
RH
13192fi
13193
81ecdfbb
RW
13194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13195$as_echo_n "checking stack direction for C alloca... " >&6; }
13196if test "${ac_cv_c_stack_direction+set}" = set; then :
13197 $as_echo_n "(cached) " >&6
252b5132 13198else
81ecdfbb 13199 if test "$cross_compiling" = yes; then :
252b5132
RH
13200 ac_cv_c_stack_direction=0
13201else
81ecdfbb 13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13203/* end confdefs.h. */
81ecdfbb 13204$ac_includes_default
13b2be9c 13205int
252b5132
RH
13206find_stack_direction ()
13207{
13208 static char *addr = 0;
13209 auto char dummy;
13210 if (addr == 0)
13211 {
13212 addr = &dummy;
13213 return find_stack_direction ();
13214 }
13215 else
13216 return (&dummy > addr) ? 1 : -1;
13217}
13b2be9c
DJ
13218
13219int
252b5132
RH
13220main ()
13221{
81ecdfbb 13222 return find_stack_direction () < 0;
252b5132 13223}
13b2be9c 13224_ACEOF
81ecdfbb 13225if ac_fn_c_try_run "$LINENO"; then :
252b5132
RH
13226 ac_cv_c_stack_direction=1
13227else
81ecdfbb 13228 ac_cv_c_stack_direction=-1
252b5132 13229fi
81ecdfbb
RW
13230rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13231 conftest.$ac_objext conftest.beam conftest.$ac_ext
252b5132 13232fi
252b5132 13233
81ecdfbb
RW
13234fi
13235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13236$as_echo "$ac_cv_c_stack_direction" >&6; }
13b2be9c 13237cat >>confdefs.h <<_ACEOF
252b5132 13238#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
13239_ACEOF
13240
252b5132
RH
13241
13242fi
13243
81ecdfbb
RW
13244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13245$as_echo_n "checking for inline... " >&6; }
13246if test "${ac_cv_c_inline+set}" = set; then :
13247 $as_echo_n "(cached) " >&6
252b5132
RH
13248else
13249 ac_cv_c_inline=no
13250for ac_kw in inline __inline__ __inline; do
81ecdfbb 13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
13252/* end confdefs.h. */
13253#ifndef __cplusplus
13254typedef int foo_t;
13255static $ac_kw foo_t static_foo () {return 0; }
13256$ac_kw foo_t foo () {return 0; }
13257#endif
252b5132 13258
13b2be9c 13259_ACEOF
81ecdfbb
RW
13260if ac_fn_c_try_compile "$LINENO"; then :
13261 ac_cv_c_inline=$ac_kw
252b5132 13262fi
81ecdfbb
RW
13263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13264 test "$ac_cv_c_inline" != no && break
252b5132
RH
13265done
13266
13267fi
81ecdfbb
RW
13268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13269$as_echo "$ac_cv_c_inline" >&6; }
ab509236 13270
13b2be9c 13271case $ac_cv_c_inline in
252b5132 13272 inline | yes) ;;
ab509236
L
13273 *)
13274 case $ac_cv_c_inline in
13275 no) ac_val=;;
13276 *) ac_val=$ac_cv_c_inline;;
13277 esac
13278 cat >>confdefs.h <<_ACEOF
13279#ifndef __cplusplus
13280#define inline $ac_val
13281#endif
13b2be9c 13282_ACEOF
ab509236 13283 ;;
252b5132
RH
13284esac
13285
6840198f 13286
d6d788bd 13287# VMS doesn't have unlink.
252b5132 13288for ac_func in unlink remove
81ecdfbb
RW
13289do :
13290 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13291ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13292eval as_val=\$$as_ac_var
13293 if test "x$as_val" = x""yes; then :
13b2be9c 13294 cat >>confdefs.h <<_ACEOF
81ecdfbb 13295#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13b2be9c 13296_ACEOF
252b5132 13297 break
252b5132
RH
13298fi
13299done
13300
6840198f 13301
d6d788bd 13302# Some systems don't have sbrk().
252b5132 13303for ac_func in sbrk
81ecdfbb
RW
13304do :
13305 ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
13306if test "x$ac_cv_func_sbrk" = x""yes; then :
13b2be9c 13307 cat >>confdefs.h <<_ACEOF
81ecdfbb 13308#define HAVE_SBRK 1
13b2be9c 13309_ACEOF
252b5132 13310
252b5132
RH
13311fi
13312done
13313
d6d788bd 13314
39bec121
TW
13315# do we need the math library?
13316case "${need_libm}" in
13b2be9c 13317yes)
39bec121 13318 LIBM=
f9c19112 13319case $host in
d70c5fc7 13320*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
d7040cdb 13321 # These system don't have libm, or don't need it
39bec121
TW
13322 ;;
13323*-ncr-sysv4.3*)
81ecdfbb
RW
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13325$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13326if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13327 $as_echo_n "(cached) " >&6
39bec121 13328else
13b2be9c 13329 ac_check_lib_save_LIBS=$LIBS
39bec121 13330LIBS="-lmw $LIBS"
81ecdfbb 13331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
13332/* end confdefs.h. */
13333
81ecdfbb
RW
13334/* Override any GCC internal prototype to avoid an error.
13335 Use char because int might match the return type of a GCC
13336 builtin and then its argument prototype would still apply. */
13b2be9c
DJ
13337#ifdef __cplusplus
13338extern "C"
13339#endif
13b2be9c
DJ
13340char _mwvalidcheckl ();
13341int
13342main ()
13343{
81ecdfbb 13344return _mwvalidcheckl ();
13b2be9c
DJ
13345 ;
13346 return 0;
13347}
13348_ACEOF
81ecdfbb 13349if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
13350 ac_cv_lib_mw__mwvalidcheckl=yes
13351else
81ecdfbb 13352 ac_cv_lib_mw__mwvalidcheckl=no
13b2be9c 13353fi
81ecdfbb
RW
13354rm -f core conftest.err conftest.$ac_objext \
13355 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13356LIBS=$ac_check_lib_save_LIBS
13357fi
81ecdfbb
RW
13358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13359$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13360if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
39bec121 13361 LIBM="-lmw"
39bec121
TW
13362fi
13363
81ecdfbb
RW
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13365$as_echo_n "checking for cos in -lm... " >&6; }
13366if test "${ac_cv_lib_m_cos+set}" = set; then :
13367 $as_echo_n "(cached) " >&6
39bec121 13368else
13b2be9c 13369 ac_check_lib_save_LIBS=$LIBS
39bec121 13370LIBS="-lm $LIBS"
81ecdfbb 13371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13372/* end confdefs.h. */
39bec121 13373
81ecdfbb
RW
13374/* Override any GCC internal prototype to avoid an error.
13375 Use char because int might match the return type of a GCC
13376 builtin and then its argument prototype would still apply. */
d7040cdb
SE
13377#ifdef __cplusplus
13378extern "C"
13379#endif
d7040cdb 13380char cos ();
13b2be9c
DJ
13381int
13382main ()
13383{
81ecdfbb 13384return cos ();
13b2be9c
DJ
13385 ;
13386 return 0;
13387}
13388_ACEOF
81ecdfbb 13389if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 13390 ac_cv_lib_m_cos=yes
13b2be9c 13391else
81ecdfbb 13392 ac_cv_lib_m_cos=no
13b2be9c 13393fi
81ecdfbb
RW
13394rm -f core conftest.err conftest.$ac_objext \
13395 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13396LIBS=$ac_check_lib_save_LIBS
13397fi
81ecdfbb
RW
13398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13399$as_echo "$ac_cv_lib_m_cos" >&6; }
13400if test "x$ac_cv_lib_m_cos" = x""yes; then :
39bec121 13401 LIBM="$LIBM -lm"
39bec121
TW
13402fi
13403
13404 ;;
13405*)
81ecdfbb
RW
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13407$as_echo_n "checking for cos in -lm... " >&6; }
13408if test "${ac_cv_lib_m_cos+set}" = set; then :
13409 $as_echo_n "(cached) " >&6
39bec121 13410else
13b2be9c 13411 ac_check_lib_save_LIBS=$LIBS
39bec121 13412LIBS="-lm $LIBS"
81ecdfbb 13413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13414/* end confdefs.h. */
39bec121 13415
81ecdfbb
RW
13416/* Override any GCC internal prototype to avoid an error.
13417 Use char because int might match the return type of a GCC
13418 builtin and then its argument prototype would still apply. */
d7040cdb
SE
13419#ifdef __cplusplus
13420extern "C"
13421#endif
d7040cdb 13422char cos ();
13b2be9c
DJ
13423int
13424main ()
13425{
81ecdfbb 13426return cos ();
13b2be9c
DJ
13427 ;
13428 return 0;
13429}
13430_ACEOF
81ecdfbb 13431if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 13432 ac_cv_lib_m_cos=yes
13b2be9c 13433else
81ecdfbb 13434 ac_cv_lib_m_cos=no
13b2be9c 13435fi
81ecdfbb
RW
13436rm -f core conftest.err conftest.$ac_objext \
13437 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13438LIBS=$ac_check_lib_save_LIBS
13439fi
81ecdfbb
RW
13440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13441$as_echo "$ac_cv_lib_m_cos" >&6; }
13442if test "x$ac_cv_lib_m_cos" = x""yes; then :
39bec121 13443 LIBM="-lm"
39bec121
TW
13444fi
13445
13446 ;;
13447esac
13448
13b2be9c 13449
d7040cdb 13450
39bec121
TW
13451 ;;
13452esac
13453
252b5132
RH
13454# Some non-ANSI preprocessors botch requoting inside strings. That's bad
13455# enough, but on some of those systems, the assert macro relies on requoting
13456# working properly!
81ecdfbb
RW
13457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13458$as_echo_n "checking for working assert macro... " >&6; }
13459if test "${gas_cv_assert_ok+set}" = set; then :
13460 $as_echo_n "(cached) " >&6
13b2be9c 13461else
81ecdfbb 13462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13463/* end confdefs.h. */
252b5132
RH
13464#include <assert.h>
13465#include <stdio.h>
13b2be9c
DJ
13466int
13467main ()
13468{
252b5132
RH
13469
13470/* check for requoting problems */
13471static int a, b, c, d;
13472static char *s;
13473assert (!strcmp(s, "foo bar baz quux"));
13474/* check for newline handling */
13475assert (a == b
13476 || c == d);
13477
13b2be9c
DJ
13478 ;
13479 return 0;
81ecdfbb
RW
13480}
13481_ACEOF
13482if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
13483 gas_cv_assert_ok=yes
13484else
81ecdfbb 13485 gas_cv_assert_ok=no
252b5132 13486fi
81ecdfbb
RW
13487rm -f core conftest.err conftest.$ac_objext \
13488 conftest$ac_exeext conftest.$ac_ext
252b5132 13489fi
81ecdfbb
RW
13490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
13491$as_echo "$gas_cv_assert_ok" >&6; }
13b2be9c 13492test $gas_cv_assert_ok = yes ||
81ecdfbb 13493$as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
252b5132 13494
d6d788bd
L
13495
13496
252b5132
RH
13497# On some systems, the system header files may not declare malloc, realloc,
13498# and free. There are places where gas needs these functions to have been
13499# declared -- such as when taking their addresses.
13500gas_test_headers="
13501#ifdef HAVE_MEMORY_H
13502#include <memory.h>
13503#endif
13504#ifdef HAVE_STRING_H
13505#include <string.h>
13506#else
13507#ifdef HAVE_STRINGS_H
13508#include <strings.h>
13509#endif
13510#endif
13511#ifdef HAVE_STDLIB_H
13512#include <stdlib.h>
13513#endif
13514#ifdef HAVE_UNISTD_H
13515#include <unistd.h>
13516#endif
13517"
13518
e8a38df5
AL
13519# Does errno.h declare errno, or do we have to add a separate declaration
13520# for it?
13521
81ecdfbb
RW
13522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
13523$as_echo_n "checking whether declaration is required for errno... " >&6; }
13524if test "${gas_cv_decl_needed_errno+set}" = set; then :
13525 $as_echo_n "(cached) " >&6
e8a38df5 13526else
81ecdfbb 13527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a38df5
AL
13528/* end confdefs.h. */
13529
13530#ifdef HAVE_ERRNO_H
13531#include <errno.h>
13532#endif
13533
13534int
13535main ()
13536{
13537
13538typedef int f;
13539f x;
13540x = (f) errno;
13541
13542 ;
13543 return 0;
13544}
13545_ACEOF
81ecdfbb 13546if ac_fn_c_try_link "$LINENO"; then :
e8a38df5
AL
13547 gas_cv_decl_needed_errno=no
13548else
81ecdfbb 13549 gas_cv_decl_needed_errno=yes
e8a38df5 13550fi
81ecdfbb
RW
13551rm -f core conftest.err conftest.$ac_objext \
13552 conftest$ac_exeext conftest.$ac_ext
e8a38df5 13553fi
81ecdfbb
RW
13554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
13555$as_echo "$gas_cv_decl_needed_errno" >&6; }
e8a38df5
AL
13556if test $gas_cv_decl_needed_errno = yes; then
13557
81ecdfbb 13558$as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
e8a38df5
AL
13559
13560fi
13561
13562
81ecdfbb
RW
13563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13564$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13565if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
13566 $as_echo_n "(cached) " >&6
56f36663 13567else
81ecdfbb 13568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56f36663
NC
13569/* end confdefs.h. */
13570#include <unistd.h>
13571int
13572main ()
13573{
13574extern int getopt (int, char *const*, const char *);
13575 ;
13576 return 0;
13577}
13578_ACEOF
81ecdfbb 13579if ac_fn_c_try_compile "$LINENO"; then :
56f36663
NC
13580 gas_cv_decl_getopt_unistd_h=yes
13581else
81ecdfbb 13582 gas_cv_decl_getopt_unistd_h=no
56f36663 13583fi
81ecdfbb 13584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56f36663
NC
13585fi
13586
81ecdfbb
RW
13587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
13588$as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
56f36663
NC
13589if test $gas_cv_decl_getopt_unistd_h = yes; then
13590
81ecdfbb 13591$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
56f36663
NC
13592
13593fi
13594
e8a38df5 13595
81ecdfbb
RW
13596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
13597$as_echo_n "checking whether declaration is required for environ... " >&6; }
13598if test "${gas_cv_decl_needed_environ+set}" = set; then :
13599 $as_echo_n "(cached) " >&6
13b2be9c 13600else
81ecdfbb 13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13602/* end confdefs.h. */
252b5132 13603$gas_test_headers
13b2be9c
DJ
13604int
13605main ()
13606{
252b5132 13607
e8a38df5 13608typedef char **f;
252b5132 13609f x;
e8a38df5 13610x = (f) environ;
252b5132 13611
13b2be9c
DJ
13612 ;
13613 return 0;
13614}
13615_ACEOF
81ecdfbb 13616if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 13617 gas_cv_decl_needed_environ=no
252b5132 13618else
81ecdfbb 13619 gas_cv_decl_needed_environ=yes
252b5132 13620fi
81ecdfbb
RW
13621rm -f core conftest.err conftest.$ac_objext \
13622 conftest$ac_exeext conftest.$ac_ext
252b5132 13623fi
81ecdfbb
RW
13624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
13625$as_echo "$gas_cv_decl_needed_environ" >&6; }
e8a38df5 13626if test $gas_cv_decl_needed_environ = yes; then
13b2be9c 13627
81ecdfbb 13628$as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
13b2be9c
DJ
13629
13630fi
13631
13632
81ecdfbb
RW
13633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
13634$as_echo_n "checking whether declaration is required for ffs... " >&6; }
13635if test "${gas_cv_decl_needed_ffs+set}" = set; then :
13636 $as_echo_n "(cached) " >&6
13b2be9c 13637else
81ecdfbb 13638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
13639/* end confdefs.h. */
13640$gas_test_headers
13641int
13642main ()
13643{
13644
e8a38df5 13645typedef int (*f)(int);
13b2be9c 13646f x;
e8a38df5 13647x = (f) ffs;
13b2be9c
DJ
13648
13649 ;
13650 return 0;
13651}
13652_ACEOF
81ecdfbb 13653if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 13654 gas_cv_decl_needed_ffs=no
13b2be9c 13655else
81ecdfbb 13656 gas_cv_decl_needed_ffs=yes
13b2be9c 13657fi
81ecdfbb
RW
13658rm -f core conftest.err conftest.$ac_objext \
13659 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13660fi
81ecdfbb
RW
13661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
13662$as_echo "$gas_cv_decl_needed_ffs" >&6; }
e8a38df5 13663if test $gas_cv_decl_needed_ffs = yes; then
13b2be9c 13664
81ecdfbb 13665$as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
13b2be9c
DJ
13666
13667fi
13668
13669
81ecdfbb
RW
13670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
13671$as_echo_n "checking whether declaration is required for free... " >&6; }
13672if test "${gas_cv_decl_needed_free+set}" = set; then :
13673 $as_echo_n "(cached) " >&6
13b2be9c 13674else
81ecdfbb 13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
13676/* end confdefs.h. */
13677$gas_test_headers
13678int
13679main ()
13680{
13681
13682typedef void (*f)();
13683f x;
13684x = (f) free;
13685
13686 ;
13687 return 0;
13688}
13689_ACEOF
81ecdfbb 13690if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
13691 gas_cv_decl_needed_free=no
13692else
81ecdfbb 13693 gas_cv_decl_needed_free=yes
13b2be9c 13694fi
81ecdfbb
RW
13695rm -f core conftest.err conftest.$ac_objext \
13696 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13697fi
81ecdfbb
RW
13698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
13699$as_echo "$gas_cv_decl_needed_free" >&6; }
13b2be9c
DJ
13700if test $gas_cv_decl_needed_free = yes; then
13701
81ecdfbb 13702$as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
13b2be9c
DJ
13703
13704fi
13705
13706
81ecdfbb
RW
13707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
13708$as_echo_n "checking whether declaration is required for malloc... " >&6; }
13709if test "${gas_cv_decl_needed_malloc+set}" = set; then :
13710 $as_echo_n "(cached) " >&6
13b2be9c 13711else
81ecdfbb 13712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
13713/* end confdefs.h. */
13714$gas_test_headers
13715int
13716main ()
13717{
13718
13719typedef char *(*f)();
13720f x;
e8a38df5 13721x = (f) malloc;
13b2be9c
DJ
13722
13723 ;
13724 return 0;
13725}
13726_ACEOF
81ecdfbb 13727if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 13728 gas_cv_decl_needed_malloc=no
13b2be9c 13729else
81ecdfbb 13730 gas_cv_decl_needed_malloc=yes
13b2be9c 13731fi
81ecdfbb
RW
13732rm -f core conftest.err conftest.$ac_objext \
13733 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13734fi
81ecdfbb
RW
13735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
13736$as_echo "$gas_cv_decl_needed_malloc" >&6; }
e8a38df5 13737if test $gas_cv_decl_needed_malloc = yes; then
13b2be9c 13738
81ecdfbb 13739$as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
13b2be9c
DJ
13740
13741fi
13742
13743
81ecdfbb
RW
13744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
13745$as_echo_n "checking whether declaration is required for sbrk... " >&6; }
13746if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
13747 $as_echo_n "(cached) " >&6
13b2be9c 13748else
81ecdfbb 13749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
13750/* end confdefs.h. */
13751$gas_test_headers
13752int
13753main ()
13754{
13755
e8a38df5 13756typedef char *(*f)();
13b2be9c 13757f x;
e8a38df5 13758x = (f) sbrk;
13b2be9c
DJ
13759
13760 ;
13761 return 0;
13762}
13763_ACEOF
81ecdfbb 13764if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 13765 gas_cv_decl_needed_sbrk=no
13b2be9c 13766else
81ecdfbb 13767 gas_cv_decl_needed_sbrk=yes
13b2be9c 13768fi
81ecdfbb
RW
13769rm -f core conftest.err conftest.$ac_objext \
13770 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13771fi
81ecdfbb
RW
13772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
13773$as_echo "$gas_cv_decl_needed_sbrk" >&6; }
e8a38df5 13774if test $gas_cv_decl_needed_sbrk = yes; then
13b2be9c 13775
81ecdfbb 13776$as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
13b2be9c
DJ
13777
13778fi
13779
13780
81ecdfbb
RW
13781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
13782$as_echo_n "checking whether declaration is required for strstr... " >&6; }
13783if test "${gas_cv_decl_needed_strstr+set}" = set; then :
13784 $as_echo_n "(cached) " >&6
13b2be9c 13785else
81ecdfbb 13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13787/* end confdefs.h. */
e8a38df5 13788$gas_test_headers
13b2be9c
DJ
13789int
13790main ()
13791{
13792
e8a38df5 13793typedef char *(*f)();
13b2be9c 13794f x;
e8a38df5 13795x = (f) strstr;
13b2be9c
DJ
13796
13797 ;
13798 return 0;
13799}
13800_ACEOF
81ecdfbb 13801if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 13802 gas_cv_decl_needed_strstr=no
13b2be9c 13803else
81ecdfbb 13804 gas_cv_decl_needed_strstr=yes
13b2be9c 13805fi
81ecdfbb
RW
13806rm -f core conftest.err conftest.$ac_objext \
13807 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13808fi
81ecdfbb
RW
13809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
13810$as_echo "$gas_cv_decl_needed_strstr" >&6; }
e8a38df5 13811if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c 13812
81ecdfbb 13813$as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
13b2be9c
DJ
13814
13815fi
13816
13817
81ecdfbb
RW
13818ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13819if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13820 ac_have_decl=1
6d74f28b 13821else
81ecdfbb 13822 ac_have_decl=0
6d74f28b 13823fi
6d74f28b
EB
13824
13825cat >>confdefs.h <<_ACEOF
81ecdfbb 13826#define HAVE_DECL_VSNPRINTF $ac_have_decl
6d74f28b
EB
13827_ACEOF
13828
13829
13b2be9c 13830
c973bc5c
NC
13831case "${host}" in
13832*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13833
81ecdfbb 13834$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
c973bc5c
NC
13835 ;;
13836esac
13837
b11d79f2
TG
13838# Support for VMS timestamps via cross compile
13839
13840if test "$ac_cv_header_time_h" = yes; then
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
13842$as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
13843 if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
13844 $as_echo_n "(cached) " >&6
13845else
13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847/* end confdefs.h. */
13848
13849#define _BSD_SOURCE 1
13850#include <time.h>
13851int
13852main ()
13853{
13854struct tm avar; void* aref = (void*) &avar.tm_gmtoff
13855 ;
13856 return 0;
13857}
13858_ACEOF
13859if ac_fn_c_try_compile "$LINENO"; then :
13860 gas_cv_have_time_type_member_tm_gmtoff=yes
13861else
13862 gas_cv_have_time_type_member_tm_gmtoff=no
13863
13864fi
13865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13866fi
13867
13868 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
13869
13870$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
13871
13872 fi
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
13874$as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
13875
13876fi
13877
13878if test "$ac_cv_header_sys_stat_h" = yes; then
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
13880$as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
13881 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
13882 $as_echo_n "(cached) " >&6
13883else
13884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13885/* end confdefs.h. */
13886
13887#define _BSD_SOURCE 1
13888#include <sys/stat.h>
13889int
13890main ()
13891{
13892struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
13893 ;
13894 return 0;
13895}
13896_ACEOF
13897if ac_fn_c_try_compile "$LINENO"; then :
13898 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
13899else
13900 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
13901
13902fi
13903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13904fi
13905
13906 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
13907
13908$as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
13909
13910 fi
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
13912$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
13913
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
13915$as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
13916 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
13917 $as_echo_n "(cached) " >&6
13918else
13919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920/* end confdefs.h. */
13921
13922#define _BSD_SOURCE 1
13923#include <sys/stat.h>
13924int
13925main ()
13926{
13927struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
13928 ;
13929 return 0;
13930}
13931_ACEOF
13932if ac_fn_c_try_compile "$LINENO"; then :
13933 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
13934else
13935 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
13936
13937fi
13938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13939fi
13940
13941 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
13942
13943$as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
13944
13945 fi
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
13947$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
13948
13949fi
13950
13951
c973bc5c 13952
13b2be9c 13953
108a6f8e
CD
13954
13955
13956
13957
31dd3154 13958
81ecdfbb 13959ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13b2be9c 13960
81ecdfbb 13961ac_config_commands="$ac_config_commands default"
13b2be9c
DJ
13962
13963
13964cat >confcache <<\_ACEOF
13965# This file is a shell script that caches the results of configure
13966# tests run on this system so they can be shared between configure
13967# scripts and configure runs, see configure's option --config-cache.
13968# It is not useful on other systems. If it contains results you don't
13969# want to keep, you may remove or edit it.
13970#
13971# config.status only pays attention to the cache file if you give it
13972# the --recheck option to rerun configure.
13973#
13974# `ac_cv_env_foo' variables (set or unset) will be overridden when
13975# loading this file, other *unset* `ac_cv_foo' will be assigned the
13976# following values.
13977
13978_ACEOF
13979
13980# The following way of writing the cache mishandles newlines in values,
13981# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 13982# So, we kill variables containing newlines.
13b2be9c
DJ
13983# Ultrix sh set writes to stderr and can't be redirected directly,
13984# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
13985(
13986 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13987 eval ac_val=\$$ac_var
13988 case $ac_val in #(
13989 *${as_nl}*)
13990 case $ac_var in #(
13991 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13992$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13993 esac
13994 case $ac_var in #(
13995 _ | IFS | as_nl) ;; #(
13996 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13997 *) { eval $ac_var=; unset $ac_var;} ;;
13998 esac ;;
13999 esac
14000 done
14001
13b2be9c 14002 (set) 2>&1 |
81ecdfbb
RW
14003 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14004 *${as_nl}ac_space=\ *)
14005 # `set' does not quote correctly, so add quotes: double-quote
14006 # substitution turns \\\\ into \\, and sed turns \\ into \.
13b2be9c 14007 sed -n \
ab509236
L
14008 "s/'/'\\\\''/g;
14009 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14010 ;; #(
13b2be9c
DJ
14011 *)
14012 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14013 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13b2be9c 14014 ;;
81ecdfbb
RW
14015 esac |
14016 sort
14017) |
13b2be9c 14018 sed '
81ecdfbb 14019 /^ac_cv_env_/b end
13b2be9c 14020 t clear
81ecdfbb 14021 :clear
13b2be9c
DJ
14022 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14023 t end
81ecdfbb
RW
14024 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14025 :end' >>confcache
14026if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14027 if test -w "$cache_file"; then
14028 test "x$cache_file" != "x/dev/null" &&
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14030$as_echo "$as_me: updating cache $cache_file" >&6;}
13b2be9c
DJ
14031 cat confcache >$cache_file
14032 else
81ecdfbb
RW
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14034$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13b2be9c
DJ
14035 fi
14036fi
14037rm -f confcache
14038
14039test "x$prefix" = xNONE && prefix=$ac_default_prefix
14040# Let make expand exec_prefix.
14041test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14042
13b2be9c
DJ
14043DEFS=-DHAVE_CONFIG_H
14044
14045ac_libobjs=
14046ac_ltlibobjs=
14047for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14048 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14049 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14050 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14051 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14052 # will be set to the directory where LIBOBJS objects are built.
14053 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14054 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13b2be9c
DJ
14055done
14056LIBOBJS=$ac_libobjs
14057
14058LTLIBOBJS=$ac_ltlibobjs
14059
14060
14061if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
14062 as_fn_error "conditional \"AMDEP\" was never defined.
14063Usually this means the macro was only invoked conditionally." "$LINENO" 5
13b2be9c
DJ
14064fi
14065if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
14066 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14067Usually this means the macro was only invoked conditionally." "$LINENO" 5
14068fi
14069 if test -n "$EXEEXT"; then
14070 am__EXEEXT_TRUE=
14071 am__EXEEXT_FALSE='#'
14072else
14073 am__EXEEXT_TRUE='#'
14074 am__EXEEXT_FALSE=
13b2be9c 14075fi
81ecdfbb
RW
14076
14077
13b2be9c 14078if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
14079 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14080Usually this means the macro was only invoked conditionally." "$LINENO" 5
13b2be9c 14081fi
d5fbea21 14082if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
14083 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14084Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 14085fi
13b2be9c
DJ
14086
14087: ${CONFIG_STATUS=./config.status}
81ecdfbb 14088ac_write_fail=0
13b2be9c
DJ
14089ac_clean_files_save=$ac_clean_files
14090ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14091{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14092$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14093as_write_fail=0
14094cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13b2be9c
DJ
14095#! $SHELL
14096# Generated by $as_me.
14097# Run this file to recreate the current configuration.
14098# Compiler output produced by configure, useful for debugging
14099# configure, is in config.log if it exists.
14100
14101debug=false
14102ac_cs_recheck=false
14103ac_cs_silent=false
13b2be9c 14104
81ecdfbb
RW
14105SHELL=\${CONFIG_SHELL-$SHELL}
14106export SHELL
14107_ASEOF
14108cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14109## -------------------- ##
14110## M4sh Initialization. ##
14111## -------------------- ##
13b2be9c 14112
81ecdfbb
RW
14113# Be more Bourne compatible
14114DUALCASE=1; export DUALCASE # for MKS sh
14115if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13b2be9c
DJ
14116 emulate sh
14117 NULLCMD=:
81ecdfbb 14118 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13b2be9c
DJ
14119 # is contrary to our usage. Disable this feature.
14120 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14121 setopt NO_GLOB_SUBST
14122else
14123 case `(set -o) 2>/dev/null` in #(
14124 *posix*) :
14125 set -o posix ;; #(
14126 *) :
14127 ;;
14128esac
13b2be9c
DJ
14129fi
14130
81ecdfbb
RW
14131
14132as_nl='
14133'
14134export as_nl
14135# Printing a long string crashes Solaris 7 /usr/bin/printf.
14136as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14137as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14138as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14139# Prefer a ksh shell builtin over an external printf program on Solaris,
14140# but without wasting forks for bash or zsh.
14141if test -z "$BASH_VERSION$ZSH_VERSION" \
14142 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14143 as_echo='print -r --'
14144 as_echo_n='print -rn --'
14145elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14146 as_echo='printf %s\n'
14147 as_echo_n='printf %s'
14148else
14149 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14150 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14151 as_echo_n='/usr/ucb/echo -n'
14152 else
14153 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14154 as_echo_n_body='eval
14155 arg=$1;
14156 case $arg in #(
14157 *"$as_nl"*)
14158 expr "X$arg" : "X\\(.*\\)$as_nl";
14159 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14160 esac;
14161 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14162 '
14163 export as_echo_n_body
14164 as_echo_n='sh -c $as_echo_n_body as_echo'
14165 fi
14166 export as_echo_body
14167 as_echo='sh -c $as_echo_body as_echo'
13b2be9c
DJ
14168fi
14169
81ecdfbb
RW
14170# The user is always right.
14171if test "${PATH_SEPARATOR+set}" != set; then
14172 PATH_SEPARATOR=:
14173 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14174 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14175 PATH_SEPARATOR=';'
14176 }
14177fi
14178
14179
14180# IFS
14181# We need space, tab and new line, in precisely that order. Quoting is
14182# there to prevent editors from complaining about space-tab.
14183# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14184# splitting by setting IFS to empty value.)
14185IFS=" "" $as_nl"
14186
14187# Find who we are. Look in the path if we contain no directory separator.
14188case $0 in #((
14189 *[\\/]* ) as_myself=$0 ;;
14190 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191for as_dir in $PATH
14192do
14193 IFS=$as_save_IFS
14194 test -z "$as_dir" && as_dir=.
14195 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14196 done
14197IFS=$as_save_IFS
14198
14199 ;;
14200esac
14201# We did not find ourselves, most probably we were run as `sh COMMAND'
14202# in which case we are not to be found in the path.
14203if test "x$as_myself" = x; then
14204 as_myself=$0
14205fi
14206if test ! -f "$as_myself"; then
14207 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14208 exit 1
14209fi
13b2be9c 14210
81ecdfbb
RW
14211# Unset variables that we do not need and which cause bugs (e.g. in
14212# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14213# suppresses any "Segmentation fault" message there. '((' could
14214# trigger a bug in pdksh 5.2.14.
14215for as_var in BASH_ENV ENV MAIL MAILPATH
14216do eval test x\${$as_var+set} = xset \
14217 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14218done
13b2be9c
DJ
14219PS1='$ '
14220PS2='> '
14221PS4='+ '
14222
14223# NLS nuisances.
81ecdfbb
RW
14224LC_ALL=C
14225export LC_ALL
14226LANGUAGE=C
14227export LANGUAGE
14228
14229# CDPATH.
14230(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14231
14232
14233# as_fn_error ERROR [LINENO LOG_FD]
14234# ---------------------------------
14235# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14236# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14237# script with status $?, using 1 if that was 0.
14238as_fn_error ()
14239{
14240 as_status=$?; test $as_status -eq 0 && as_status=1
14241 if test "$3"; then
14242 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14243 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13b2be9c 14244 fi
81ecdfbb
RW
14245 $as_echo "$as_me: error: $1" >&2
14246 as_fn_exit $as_status
14247} # as_fn_error
14248
14249
14250# as_fn_set_status STATUS
14251# -----------------------
14252# Set $? to STATUS, without forking.
14253as_fn_set_status ()
14254{
14255 return $1
14256} # as_fn_set_status
14257
14258# as_fn_exit STATUS
14259# -----------------
14260# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14261as_fn_exit ()
14262{
14263 set +e
14264 as_fn_set_status $1
14265 exit $1
14266} # as_fn_exit
14267
14268# as_fn_unset VAR
14269# ---------------
14270# Portably unset VAR.
14271as_fn_unset ()
14272{
14273 { eval $1=; unset $1;}
14274}
14275as_unset=as_fn_unset
14276# as_fn_append VAR VALUE
14277# ----------------------
14278# Append the text in VALUE to the end of the definition contained in VAR. Take
14279# advantage of any shell optimizations that allow amortized linear growth over
14280# repeated appends, instead of the typical quadratic growth present in naive
14281# implementations.
14282if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14283 eval 'as_fn_append ()
14284 {
14285 eval $1+=\$2
14286 }'
14287else
14288 as_fn_append ()
14289 {
14290 eval $1=\$$1\$2
14291 }
14292fi # as_fn_append
14293
14294# as_fn_arith ARG...
14295# ------------------
14296# Perform arithmetic evaluation on the ARGs, and store the result in the
14297# global $as_val. Take advantage of shells that can avoid forks. The arguments
14298# must be portable across $(()) and expr.
14299if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14300 eval 'as_fn_arith ()
14301 {
14302 as_val=$(( $* ))
14303 }'
14304else
14305 as_fn_arith ()
14306 {
14307 as_val=`expr "$@" || test $? -eq 1`
14308 }
14309fi # as_fn_arith
14310
13b2be9c 14311
81ecdfbb
RW
14312if expr a : '\(a\)' >/dev/null 2>&1 &&
14313 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13b2be9c
DJ
14314 as_expr=expr
14315else
14316 as_expr=false
14317fi
14318
81ecdfbb 14319if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13b2be9c
DJ
14320 as_basename=basename
14321else
14322 as_basename=false
14323fi
14324
81ecdfbb
RW
14325if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14326 as_dirname=dirname
14327else
14328 as_dirname=false
14329fi
13b2be9c 14330
81ecdfbb 14331as_me=`$as_basename -- "$0" ||
13b2be9c
DJ
14332$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14333 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14334 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14335$as_echo X/"$0" |
14336 sed '/^.*\/\([^/][^/]*\)\/*$/{
14337 s//\1/
14338 q
14339 }
14340 /^X\/\(\/\/\)$/{
14341 s//\1/
14342 q
14343 }
14344 /^X\/\(\/\).*/{
14345 s//\1/
14346 q
14347 }
14348 s/.*/./; q'`
13b2be9c 14349
13b2be9c
DJ
14350# Avoid depending upon Character Ranges.
14351as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14352as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14353as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14354as_cr_digits='0123456789'
14355as_cr_alnum=$as_cr_Letters$as_cr_digits
14356
81ecdfbb
RW
14357ECHO_C= ECHO_N= ECHO_T=
14358case `echo -n x` in #(((((
14359-n*)
14360 case `echo 'xy\c'` in
14361 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14362 xy) ECHO_C='\c';;
14363 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14364 ECHO_T=' ';;
14365 esac;;
14366*)
14367 ECHO_N='-n';;
13b2be9c 14368esac
252b5132 14369
81ecdfbb
RW
14370rm -f conf$$ conf$$.exe conf$$.file
14371if test -d conf$$.dir; then
14372 rm -f conf$$.dir/conf$$.file
252b5132 14373else
81ecdfbb
RW
14374 rm -f conf$$.dir
14375 mkdir conf$$.dir 2>/dev/null
252b5132 14376fi
81ecdfbb
RW
14377if (echo >conf$$.file) 2>/dev/null; then
14378 if ln -s conf$$.file conf$$ 2>/dev/null; then
13b2be9c 14379 as_ln_s='ln -s'
81ecdfbb
RW
14380 # ... but there are two gotchas:
14381 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14382 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14383 # In both cases, we have to default to `cp -p'.
14384 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14385 as_ln_s='cp -p'
14386 elif ln conf$$.file conf$$ 2>/dev/null; then
14387 as_ln_s=ln
14388 else
14389 as_ln_s='cp -p'
13b2be9c 14390 fi
13b2be9c
DJ
14391else
14392 as_ln_s='cp -p'
252b5132 14393fi
81ecdfbb
RW
14394rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14395rmdir conf$$.dir 2>/dev/null
252b5132 14396
81ecdfbb
RW
14397
14398# as_fn_mkdir_p
14399# -------------
14400# Create "$as_dir" as a directory, including parents if necessary.
14401as_fn_mkdir_p ()
14402{
14403
14404 case $as_dir in #(
14405 -*) as_dir=./$as_dir;;
14406 esac
14407 test -d "$as_dir" || eval $as_mkdir_p || {
14408 as_dirs=
14409 while :; do
14410 case $as_dir in #(
14411 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14412 *) as_qdir=$as_dir;;
14413 esac
14414 as_dirs="'$as_qdir' $as_dirs"
14415 as_dir=`$as_dirname -- "$as_dir" ||
14416$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14417 X"$as_dir" : 'X\(//\)[^/]' \| \
14418 X"$as_dir" : 'X\(//\)$' \| \
14419 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14420$as_echo X"$as_dir" |
14421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14422 s//\1/
14423 q
14424 }
14425 /^X\(\/\/\)[^/].*/{
14426 s//\1/
14427 q
14428 }
14429 /^X\(\/\/\)$/{
14430 s//\1/
14431 q
14432 }
14433 /^X\(\/\).*/{
14434 s//\1/
14435 q
14436 }
14437 s/.*/./; q'`
14438 test -d "$as_dir" && break
14439 done
14440 test -z "$as_dirs" || eval "mkdir $as_dirs"
14441 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14442
14443
14444} # as_fn_mkdir_p
13b2be9c 14445if mkdir -p . 2>/dev/null; then
81ecdfbb 14446 as_mkdir_p='mkdir -p "$as_dir"'
252b5132 14447else
ab509236 14448 test -d ./-p && rmdir ./-p
13b2be9c
DJ
14449 as_mkdir_p=false
14450fi
81ecdfbb
RW
14451
14452if test -x / >/dev/null 2>&1; then
14453 as_test_x='test -x'
14454else
14455 if ls -dL / >/dev/null 2>&1; then
14456 as_ls_L_option=L
14457 else
14458 as_ls_L_option=
14459 fi
14460 as_test_x='
14461 eval sh -c '\''
14462 if test -d "$1"; then
14463 test -d "$1/.";
14464 else
14465 case $1 in #(
14466 -*)set "./$1";;
14467 esac;
14468 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14469 ???[sx]*):;;*)false;;esac;fi
14470 '\'' sh
14471 '
14472fi
14473as_executable_p=$as_test_x
252b5132 14474
13b2be9c 14475# Sed expression to map a string onto a valid CPP name.
ab509236 14476as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14477
13b2be9c 14478# Sed expression to map a string onto a valid variable name.
ab509236 14479as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14480
d6d788bd 14481
13b2be9c 14482exec 6>&1
81ecdfbb
RW
14483## ----------------------------------- ##
14484## Main body of $CONFIG_STATUS script. ##
14485## ----------------------------------- ##
14486_ASEOF
14487test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
252b5132 14488
81ecdfbb
RW
14489cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14490# Save the log message, to keep $0 and so on meaningful, and to
13b2be9c 14491# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14492# values after options handling.
14493ac_log="
13b2be9c 14494This file was extended by $as_me, which was
81ecdfbb 14495generated by GNU Autoconf 2.64. Invocation command line was
d6d788bd 14496
13b2be9c
DJ
14497 CONFIG_FILES = $CONFIG_FILES
14498 CONFIG_HEADERS = $CONFIG_HEADERS
14499 CONFIG_LINKS = $CONFIG_LINKS
14500 CONFIG_COMMANDS = $CONFIG_COMMANDS
14501 $ $0 $@
252b5132 14502
81ecdfbb
RW
14503on `(hostname || uname -n) 2>/dev/null | sed 1q`
14504"
14505
13b2be9c 14506_ACEOF
252b5132 14507
81ecdfbb
RW
14508case $ac_config_files in *"
14509"*) set x $ac_config_files; shift; ac_config_files=$*;;
14510esac
13b2be9c 14511
81ecdfbb
RW
14512case $ac_config_headers in *"
14513"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14514esac
252b5132 14515
252b5132 14516
81ecdfbb
RW
14517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14518# Files that config.status was made for.
14519config_files="$ac_config_files"
14520config_headers="$ac_config_headers"
14521config_commands="$ac_config_commands"
d6d788bd 14522
81ecdfbb 14523_ACEOF
252b5132 14524
81ecdfbb 14525cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c 14526ac_cs_usage="\
81ecdfbb
RW
14527\`$as_me' instantiates files and other configuration actions
14528from templates according to the current configuration. Unless the files
14529and actions are specified as TAGs, all are instantiated by default.
252b5132 14530
81ecdfbb 14531Usage: $0 [OPTION]... [TAG]...
252b5132 14532
13b2be9c 14533 -h, --help print this help, then exit
81ecdfbb
RW
14534 -V, --version print version number and configuration settings, then exit
14535 -q, --quiet, --silent
14536 do not print progress messages
13b2be9c
DJ
14537 -d, --debug don't remove temporary files
14538 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14539 --file=FILE[:TEMPLATE]
14540 instantiate the configuration file FILE
14541 --header=FILE[:TEMPLATE]
14542 instantiate the configuration header FILE
252b5132 14543
13b2be9c
DJ
14544Configuration files:
14545$config_files
252b5132 14546
13b2be9c
DJ
14547Configuration headers:
14548$config_headers
252b5132 14549
13b2be9c
DJ
14550Configuration commands:
14551$config_commands
252b5132 14552
81ecdfbb 14553Report bugs to the package provider."
d6d788bd 14554
81ecdfbb
RW
14555_ACEOF
14556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13b2be9c
DJ
14557ac_cs_version="\\
14558config.status
81ecdfbb
RW
14559configured by $0, generated by GNU Autoconf 2.64,
14560 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 14561
81ecdfbb 14562Copyright (C) 2009 Free Software Foundation, Inc.
13b2be9c
DJ
14563This config.status script is free software; the Free Software Foundation
14564gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14565
14566ac_pwd='$ac_pwd'
14567srcdir='$srcdir'
14568INSTALL='$INSTALL'
14569MKDIR_P='$MKDIR_P'
14570AWK='$AWK'
14571test -n "\$AWK" || AWK=awk
13b2be9c 14572_ACEOF
d6d788bd 14573
81ecdfbb
RW
14574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14575# The default lists apply if the user does not specify any file.
13b2be9c
DJ
14576ac_need_defaults=:
14577while test $# != 0
14578do
14579 case $1 in
14580 --*=*)
81ecdfbb
RW
14581 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14582 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13b2be9c 14583 ac_shift=:
c8615825 14584 ;;
81ecdfbb 14585 *)
13b2be9c
DJ
14586 ac_option=$1
14587 ac_optarg=$2
14588 ac_shift=shift
c8615825 14589 ;;
13b2be9c 14590 esac
252b5132 14591
13b2be9c
DJ
14592 case $ac_option in
14593 # Handling of the options.
13b2be9c
DJ
14594 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14595 ac_cs_recheck=: ;;
81ecdfbb
RW
14596 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14597 $as_echo "$ac_cs_version"; exit ;;
14598 --debug | --debu | --deb | --de | --d | -d )
13b2be9c
DJ
14599 debug=: ;;
14600 --file | --fil | --fi | --f )
14601 $ac_shift
81ecdfbb
RW
14602 case $ac_optarg in
14603 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14604 esac
14605 as_fn_append CONFIG_FILES " '$ac_optarg'"
13b2be9c
DJ
14606 ac_need_defaults=false;;
14607 --header | --heade | --head | --hea )
14608 $ac_shift
81ecdfbb
RW
14609 case $ac_optarg in
14610 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14611 esac
14612 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13b2be9c 14613 ac_need_defaults=false;;
81ecdfbb
RW
14614 --he | --h)
14615 # Conflict between --help and --header
14616 as_fn_error "ambiguous option: \`$1'
14617Try \`$0 --help' for more information.";;
14618 --help | --hel | -h )
14619 $as_echo "$ac_cs_usage"; exit ;;
13b2be9c
DJ
14620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14621 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14622 ac_cs_silent=: ;;
c8615825 14623
13b2be9c 14624 # This is an error.
81ecdfbb
RW
14625 -*) as_fn_error "unrecognized option: \`$1'
14626Try \`$0 --help' for more information." ;;
252b5132 14627
81ecdfbb
RW
14628 *) as_fn_append ac_config_targets " $1"
14629 ac_need_defaults=false ;;
252b5132 14630
13b2be9c
DJ
14631 esac
14632 shift
14633done
252b5132 14634
13b2be9c 14635ac_configure_extra_args=
d6d788bd 14636
13b2be9c
DJ
14637if $ac_cs_silent; then
14638 exec 6>/dev/null
14639 ac_configure_extra_args="$ac_configure_extra_args --silent"
14640fi
9b2b7d69 14641
13b2be9c 14642_ACEOF
81ecdfbb 14643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13b2be9c 14644if \$ac_cs_recheck; then
81ecdfbb
RW
14645 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14646 shift
14647 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14648 CONFIG_SHELL='$SHELL'
14649 export CONFIG_SHELL
14650 exec "\$@"
13b2be9c
DJ
14651fi
14652
14653_ACEOF
81ecdfbb
RW
14654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14655exec 5>>config.log
14656{
14657 echo
14658 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14659## Running $as_me. ##
14660_ASBOX
14661 $as_echo "$ac_log"
14662} >&5
13b2be9c 14663
81ecdfbb
RW
14664_ACEOF
14665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9b2b7d69 14666#
81ecdfbb 14667# INIT-COMMANDS
9b2b7d69 14668#
13b2be9c 14669AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
14670
14671
14672# The HP-UX ksh and POSIX shell print the target directory to stdout
14673# if CDPATH is set.
14674(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14675
14676sed_quote_subst='$sed_quote_subst'
14677double_quote_subst='$double_quote_subst'
14678delay_variable_subst='$delay_variable_subst'
14679macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14680macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14681enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14682enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14683pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14684enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14685host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14686host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14687host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14688build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14689build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14690build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14691SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14692Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14693GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14694EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14695FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14696LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14697NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14698LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14699max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14700ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14701exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14702lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14703lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14704lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14705reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14706reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8 14707OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
14708deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14709file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14710AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14711AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14712STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14713RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14714old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14715old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14716old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14717CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14718CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14719compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14720GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14721lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14722lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14723lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8 14724lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
14725objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14726SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14727ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14728MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14729lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14730lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14731lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14732lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14733lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14734need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8
SE
14735DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14736NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14737LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14738OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14739OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
14740libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14741shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14742extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14743archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14744enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14745export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14746whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14747compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14748old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14749old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14750archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14751archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14752module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14753module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14754with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14755allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14756no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14757hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14758hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14759hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14760hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14761hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14762hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14763hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14764hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14765inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14766link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14767fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14768always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14769export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14770exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14771include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14772prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14773file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14774variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14775need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14776need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14777version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14778runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14779shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14780shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14781libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14782library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14783soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14784postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14785postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14786finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14787finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14788hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14789sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14790sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14791hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14792enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14793enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14794enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14795old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14796striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14797
14798LTCC='$LTCC'
14799LTCFLAGS='$LTCFLAGS'
14800compiler='$compiler_DEFAULT'
14801
14802# Quote evaled strings.
14803for var in SED \
14804GREP \
14805EGREP \
14806FGREP \
14807LD \
14808NM \
14809LN_S \
14810lt_SP2NL \
14811lt_NL2SP \
14812reload_flag \
718a6fd8 14813OBJDUMP \
d7040cdb
SE
14814deplibs_check_method \
14815file_magic_cmd \
14816AR \
14817AR_FLAGS \
14818STRIP \
14819RANLIB \
14820CC \
14821CFLAGS \
14822compiler \
14823lt_cv_sys_global_symbol_pipe \
14824lt_cv_sys_global_symbol_to_cdecl \
14825lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 14826lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
14827SHELL \
14828ECHO \
14829lt_prog_compiler_no_builtin_flag \
14830lt_prog_compiler_wl \
14831lt_prog_compiler_pic \
14832lt_prog_compiler_static \
14833lt_cv_prog_compiler_c_o \
14834need_locks \
718a6fd8
SE
14835DSYMUTIL \
14836NMEDIT \
14837LIPO \
14838OTOOL \
14839OTOOL64 \
d7040cdb
SE
14840shrext_cmds \
14841export_dynamic_flag_spec \
14842whole_archive_flag_spec \
14843compiler_needs_object \
14844with_gnu_ld \
14845allow_undefined_flag \
14846no_undefined_flag \
14847hardcode_libdir_flag_spec \
14848hardcode_libdir_flag_spec_ld \
14849hardcode_libdir_separator \
14850fix_srcfile_path \
14851exclude_expsyms \
14852include_expsyms \
14853file_list_spec \
14854variables_saved_for_relink \
14855libname_spec \
14856library_names_spec \
14857soname_spec \
14858finish_eval \
14859old_striplib \
14860striplib; do
14861 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14862 *[\\\\\\\`\\"\\\$]*)
14863 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14864 ;;
14865 *)
14866 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14867 ;;
14868 esac
14869done
14870
14871# Double-quote double-evaled strings.
14872for var in reload_cmds \
14873old_postinstall_cmds \
14874old_postuninstall_cmds \
14875old_archive_cmds \
14876extract_expsyms_cmds \
14877old_archive_from_new_cmds \
14878old_archive_from_expsyms_cmds \
14879archive_cmds \
14880archive_expsym_cmds \
14881module_cmds \
14882module_expsym_cmds \
14883export_symbols_cmds \
14884prelink_cmds \
14885postinstall_cmds \
14886postuninstall_cmds \
14887finish_cmds \
14888sys_lib_search_path_spec \
14889sys_lib_dlsearch_path_spec; do
14890 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14891 *[\\\\\\\`\\"\\\$]*)
14892 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14893 ;;
14894 *)
14895 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14896 ;;
14897 esac
14898done
14899
14900# Fix-up fallback echo if it was mangled by the above quoting rules.
14901case \$lt_ECHO in
14902*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14903 ;;
14904esac
14905
14906ac_aux_dir='$ac_aux_dir'
14907xsi_shell='$xsi_shell'
14908lt_shell_append='$lt_shell_append'
14909
14910# See if we are running on zsh, and set the options which allow our
14911# commands through without removal of \ escapes INIT.
14912if test -n "\${ZSH_VERSION+set}" ; then
14913 setopt NO_GLOB_SUBST
14914fi
14915
14916
14917 PACKAGE='$PACKAGE'
14918 VERSION='$VERSION'
14919 TIMESTAMP='$TIMESTAMP'
14920 RM='$RM'
14921 ofile='$ofile'
14922
14923
14924
20e95c23
DJ
14925# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14926 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14927 # from automake.
14928 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14929 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14930 LINGUAS="${LINGUAS-%UNSET%}"
14931
13b2be9c
DJ
14932target_cpu_type=${target_cpu_type}
14933 cgen_cpu_prefix=${cgen_cpu_prefix}
14934 obj_format=${obj_format}
14935 te_file=${te_file}
14936
14937_ACEOF
14938
81ecdfbb 14939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c 14940
81ecdfbb 14941# Handling of arguments.
13b2be9c 14942for ac_config_target in $ac_config_targets
9b2b7d69 14943do
81ecdfbb
RW
14944 case $ac_config_target in
14945 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14946 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14947 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14948 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
14949 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14950 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14951 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14952 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14953 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14954 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14955
14956 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9b2b7d69
MM
14957 esac
14958done
14959
81ecdfbb 14960
13b2be9c
DJ
14961# If the user did not use the arguments to specify the items to instantiate,
14962# then the envvar interface is used. Set only those that are not.
14963# We use the long form for the default assignment because of an extremely
14964# bizarre bug on SunOS 4.1.3.
14965if $ac_need_defaults; then
14966 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14967 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14968 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14969fi
14970
14971# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14972# simply because there is no reason against having it here, and in addition,
13b2be9c 14973# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14974# Hook for its removal unless debugging.
14975# Note that there is a small window in which the directory will not be cleaned:
14976# after its creation but before its name has been assigned to `$tmp'.
13b2be9c
DJ
14977$debug ||
14978{
81ecdfbb
RW
14979 tmp=
14980 trap 'exit_status=$?
14981 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14982' 0
14983 trap 'as_fn_exit 1' 1 2 13 15
13b2be9c 14984}
13b2be9c 14985# Create a (secure) tmp directory for tmp files.
9b2b7d69 14986
13b2be9c 14987{
81ecdfbb 14988 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13b2be9c
DJ
14989 test -n "$tmp" && test -d "$tmp"
14990} ||
14991{
81ecdfbb
RW
14992 tmp=./conf$$-$RANDOM
14993 (umask 077 && mkdir "$tmp")
14994} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14995
14996# Set up the scripts for CONFIG_FILES section.
14997# No need to generate them if there are no CONFIG_FILES.
14998# This happens for instance with `./config.status config.h'.
14999if test -n "$CONFIG_FILES"; then
15000
15001
15002ac_cr=`echo X | tr X '\015'`
15003# On cygwin, bash can eat \r inside `` if the user requested igncr.
15004# But we know of no other shell where ac_cr would be empty at this
15005# point, so we can use a bashism as a fallback.
15006if test "x$ac_cr" = x; then
15007 eval ac_cr=\$\'\\r\'
15008fi
15009ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15010if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15011 ac_cs_awk_cr='\r'
15012else
15013 ac_cs_awk_cr=$ac_cr
15014fi
15015
15016echo 'BEGIN {' >"$tmp/subs1.awk" &&
15017_ACEOF
15018
15019
15020{
15021 echo "cat >conf$$subs.awk <<_ACEOF" &&
15022 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15023 echo "_ACEOF"
15024} >conf$$subs.sh ||
15025 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15026ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15027ac_delim='%!_!# '
15028for ac_last_try in false false false false false :; do
15029 . ./conf$$subs.sh ||
15030 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15031
15032 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15033 if test $ac_delim_n = $ac_delim_num; then
15034 break
15035 elif $ac_last_try; then
15036 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15037 else
15038 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15039 fi
15040done
15041rm -f conf$$subs.sh
15042
15043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15044cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15045_ACEOF
15046sed -n '
15047h
15048s/^/S["/; s/!.*/"]=/
15049p
15050g
15051s/^[^!]*!//
15052:repl
15053t repl
15054s/'"$ac_delim"'$//
15055t delim
15056:nl
15057h
15058s/\(.\{148\}\).*/\1/
15059t more1
15060s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15061p
15062n
15063b repl
15064:more1
15065s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15066p
15067g
15068s/.\{148\}//
15069t nl
15070:delim
15071h
15072s/\(.\{148\}\).*/\1/
15073t more2
15074s/["\\]/\\&/g; s/^/"/; s/$/"/
15075p
15076b
15077:more2
15078s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15079p
15080g
15081s/.\{148\}//
15082t delim
15083' <conf$$subs.awk | sed '
15084/^[^""]/{
15085 N
15086 s/\n//
15087}
15088' >>$CONFIG_STATUS || ac_write_fail=1
15089rm -f conf$$subs.awk
15090cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15091_ACAWK
15092cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15093 for (key in S) S_is_set[key] = 1
15094 FS = "\a"
15095
15096}
13b2be9c 15097{
81ecdfbb
RW
15098 line = $ 0
15099 nfields = split(line, field, "@")
15100 substed = 0
15101 len = length(field[1])
15102 for (i = 2; i < nfields; i++) {
15103 key = field[i]
15104 keylen = length(key)
15105 if (S_is_set[key]) {
15106 value = S[key]
15107 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15108 len += length(value) + length(field[++i])
15109 substed = 1
15110 } else
15111 len += 1 + keylen
15112 }
15113
15114 print line
13b2be9c 15115}
9b2b7d69 15116
81ecdfbb
RW
15117_ACAWK
15118_ACEOF
15119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15120if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15121 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15122else
15123 cat
15124fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15125 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13b2be9c
DJ
15126_ACEOF
15127
81ecdfbb
RW
15128# VPATH may cause trouble with some makes, so we remove $(srcdir),
15129# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15130# trailing colons and then remove the whole line if VPATH becomes empty
15131# (actually we leave an empty line to preserve line numbers).
15132if test "x$srcdir" = x.; then
15133 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15134s/:*\$(srcdir):*/:/
15135s/:*\${srcdir}:*/:/
15136s/:*@srcdir@:*/:/
15137s/^\([^=]*=[ ]*\):*/\1/
15138s/:*$//
15139s/^[^=]*=[ ]*$//
15140}'
15141fi
15142
15143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15144fi # test -n "$CONFIG_FILES"
13b2be9c 15145
81ecdfbb
RW
15146# Set up the scripts for CONFIG_HEADERS section.
15147# No need to generate them if there are no CONFIG_HEADERS.
15148# This happens for instance with `./config.status Makefile'.
15149if test -n "$CONFIG_HEADERS"; then
15150cat >"$tmp/defines.awk" <<\_ACAWK ||
15151BEGIN {
15152_ACEOF
13b2be9c 15153
81ecdfbb
RW
15154# Transform confdefs.h into an awk script `defines.awk', embedded as
15155# here-document in config.status, that substitutes the proper values into
15156# config.h.in to produce config.h.
9b2b7d69 15157
81ecdfbb
RW
15158# Create a delimiter string that does not exist in confdefs.h, to ease
15159# handling of long lines.
15160ac_delim='%!_!# '
15161for ac_last_try in false false :; do
15162 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15163 if test -z "$ac_t"; then
15164 break
15165 elif $ac_last_try; then
15166 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15167 else
15168 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15169 fi
15170done
15171
15172# For the awk script, D is an array of macro values keyed by name,
15173# likewise P contains macro parameters if any. Preserve backslash
15174# newline sequences.
15175
15176ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15177sed -n '
15178s/.\{148\}/&'"$ac_delim"'/g
15179t rset
15180:rset
15181s/^[ ]*#[ ]*define[ ][ ]*/ /
15182t def
15183d
15184:def
15185s/\\$//
15186t bsnl
15187s/["\\]/\\&/g
15188s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15189D["\1"]=" \3"/p
15190s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15191d
15192:bsnl
15193s/["\\]/\\&/g
15194s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15195D["\1"]=" \3\\\\\\n"\\/p
15196t cont
15197s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15198t cont
15199d
15200:cont
15201n
15202s/.\{148\}/&'"$ac_delim"'/g
15203t clear
15204:clear
15205s/\\$//
15206t bsnlc
15207s/["\\]/\\&/g; s/^/"/; s/$/"/p
15208d
15209:bsnlc
15210s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15211b cont
15212' <confdefs.h | sed '
15213s/'"$ac_delim"'/"\\\
15214"/g' >>$CONFIG_STATUS || ac_write_fail=1
15215
15216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15217 for (key in D) D_is_set[key] = 1
15218 FS = "\a"
15219}
15220/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15221 line = \$ 0
15222 split(line, arg, " ")
15223 if (arg[1] == "#") {
15224 defundef = arg[2]
15225 mac1 = arg[3]
15226 } else {
15227 defundef = substr(arg[1], 2)
15228 mac1 = arg[2]
15229 }
15230 split(mac1, mac2, "(") #)
15231 macro = mac2[1]
15232 prefix = substr(line, 1, index(line, defundef) - 1)
15233 if (D_is_set[macro]) {
15234 # Preserve the white space surrounding the "#".
15235 print prefix "define", macro P[macro] D[macro]
15236 next
15237 } else {
15238 # Replace #undef with comments. This is necessary, for example,
15239 # in the case of _POSIX_SOURCE, which is predefined and required
15240 # on some systems where configure will not decide to define it.
15241 if (defundef == "undef") {
15242 print "/*", prefix defundef, macro, "*/"
15243 next
15244 }
15245 }
15246}
15247{ print }
15248_ACAWK
13b2be9c 15249_ACEOF
81ecdfbb
RW
15250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15251 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15252fi # test -n "$CONFIG_HEADERS"
13b2be9c 15253
81ecdfbb
RW
15254
15255eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15256shift
15257for ac_tag
15258do
15259 case $ac_tag in
15260 :[FHLC]) ac_mode=$ac_tag; continue;;
15261 esac
15262 case $ac_mode$ac_tag in
15263 :[FHL]*:*);;
15264 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15265 :[FH]-) ac_tag=-:-;;
15266 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15267 esac
15268 ac_save_IFS=$IFS
15269 IFS=:
15270 set x $ac_tag
15271 IFS=$ac_save_IFS
15272 shift
15273 ac_file=$1
15274 shift
15275
15276 case $ac_mode in
15277 :L) ac_source=$1;;
15278 :[FH])
15279 ac_file_inputs=
15280 for ac_f
15281 do
15282 case $ac_f in
15283 -) ac_f="$tmp/stdin";;
15284 *) # Look for the file first in the build tree, then in the source tree
15285 # (if the path is not absolute). The absolute path cannot be DOS-style,
15286 # because $ac_f cannot contain `:'.
15287 test -f "$ac_f" ||
15288 case $ac_f in
15289 [\\/$]*) false;;
15290 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15291 esac ||
15292 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15293 esac
15294 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15295 as_fn_append ac_file_inputs " '$ac_f'"
15296 done
15297
15298 # Let's still pretend it is `configure' which instantiates (i.e., don't
15299 # use $as_me), people would be surprised to read:
15300 # /* config.h. Generated by config.status. */
15301 configure_input='Generated from '`
15302 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15303 `' by configure.'
15304 if test x"$ac_file" != x-; then
15305 configure_input="$ac_file. $configure_input"
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15307$as_echo "$as_me: creating $ac_file" >&6;}
9b2b7d69 15308 fi
81ecdfbb
RW
15309 # Neutralize special characters interpreted by sed in replacement strings.
15310 case $configure_input in #(
15311 *\&* | *\|* | *\\* )
15312 ac_sed_conf_input=`$as_echo "$configure_input" |
15313 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15314 *) ac_sed_conf_input=$configure_input;;
15315 esac
252b5132 15316
81ecdfbb
RW
15317 case $ac_tag in
15318 *:-:* | *:-) cat >"$tmp/stdin" \
15319 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15320 esac
15321 ;;
252b5132 15322 esac
9b2b7d69 15323
81ecdfbb 15324 ac_dir=`$as_dirname -- "$ac_file" ||
13b2be9c 15325$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15326 X"$ac_file" : 'X\(//\)[^/]' \| \
15327 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15328 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15329$as_echo X"$ac_file" |
15330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15331 s//\1/
15332 q
15333 }
15334 /^X\(\/\/\)[^/].*/{
15335 s//\1/
15336 q
15337 }
15338 /^X\(\/\/\)$/{
15339 s//\1/
15340 q
15341 }
15342 /^X\(\/\).*/{
15343 s//\1/
15344 q
15345 }
15346 s/.*/./; q'`
15347 as_dir="$ac_dir"; as_fn_mkdir_p
13b2be9c
DJ
15348 ac_builddir=.
15349
81ecdfbb
RW
15350case "$ac_dir" in
15351.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15352*)
15353 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15354 # A ".." for each directory in $ac_dir_suffix.
15355 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15356 case $ac_top_builddir_sub in
15357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15359 esac ;;
15360esac
15361ac_abs_top_builddir=$ac_pwd
15362ac_abs_builddir=$ac_pwd$ac_dir_suffix
15363# for backward compatibility:
15364ac_top_builddir=$ac_top_build_prefix
9b2b7d69 15365
13b2be9c 15366case $srcdir in
81ecdfbb 15367 .) # We are building in place.
13b2be9c 15368 ac_srcdir=.
81ecdfbb
RW
15369 ac_top_srcdir=$ac_top_builddir_sub
15370 ac_abs_top_srcdir=$ac_pwd ;;
15371 [\\/]* | ?:[\\/]* ) # Absolute name.
13b2be9c 15372 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15373 ac_top_srcdir=$srcdir
15374 ac_abs_top_srcdir=$srcdir ;;
15375 *) # Relative name.
15376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15377 ac_top_srcdir=$ac_top_build_prefix$srcdir
15378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13b2be9c 15379esac
81ecdfbb 15380ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
ab509236 15381
252b5132 15382
81ecdfbb
RW
15383 case $ac_mode in
15384 :F)
15385 #
15386 # CONFIG_FILE
15387 #
9b2b7d69 15388
13b2be9c
DJ
15389 case $INSTALL in
15390 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
15391 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15392 esac
15393 ac_MKDIR_P=$MKDIR_P
15394 case $MKDIR_P in
15395 [\\/$]* | ?:[\\/]* ) ;;
15396 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
c8615825 15397 esac
81ecdfbb 15398_ACEOF
9b2b7d69 15399
81ecdfbb
RW
15400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15401# If the template does not know about datarootdir, expand it.
15402# FIXME: This hack should be removed a few years after 2.60.
15403ac_datarootdir_hack=; ac_datarootdir_seen=
15404ac_sed_dataroot='
15405/datarootdir/ {
15406 p
15407 q
15408}
15409/@datadir@/p
15410/@docdir@/p
15411/@infodir@/p
15412/@localedir@/p
15413/@mandir@/p'
15414case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15415*datarootdir*) ac_datarootdir_seen=yes;;
15416*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15418$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15419_ACEOF
15420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15421 ac_datarootdir_hack='
15422 s&@datadir@&$datadir&g
15423 s&@docdir@&$docdir&g
15424 s&@infodir@&$infodir&g
15425 s&@localedir@&$localedir&g
15426 s&@mandir@&$mandir&g
15427 s&\\\${datarootdir}&$datarootdir&g' ;;
15428esac
13b2be9c 15429_ACEOF
81ecdfbb
RW
15430
15431# Neutralize VPATH when `$srcdir' = `.'.
15432# Shell code in configure.ac might set extrasub.
15433# FIXME: do we really want to maintain this feature?
15434cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15435ac_sed_extra="$ac_vpsub
13b2be9c
DJ
15436$extrasub
15437_ACEOF
81ecdfbb 15438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c
DJ
15439:t
15440/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15441s|@configure_input@|$ac_sed_conf_input|;t t
15442s&@top_builddir@&$ac_top_builddir_sub&;t t
15443s&@top_build_prefix@&$ac_top_build_prefix&;t t
15444s&@srcdir@&$ac_srcdir&;t t
15445s&@abs_srcdir@&$ac_abs_srcdir&;t t
15446s&@top_srcdir@&$ac_top_srcdir&;t t
15447s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15448s&@builddir@&$ac_builddir&;t t
15449s&@abs_builddir@&$ac_abs_builddir&;t t
15450s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15451s&@INSTALL@&$ac_INSTALL&;t t
15452s&@MKDIR_P@&$ac_MKDIR_P&;t t
15453$ac_datarootdir_hack
15454"
15455eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15456 || as_fn_error "could not create $ac_file" "$LINENO" 5
15457
15458test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15459 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15460 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15462which seems to be undefined. Please make sure it is defined." >&5
15463$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15464which seems to be undefined. Please make sure it is defined." >&2;}
15465
15466 rm -f "$tmp/stdin"
13b2be9c 15467 case $ac_file in
81ecdfbb
RW
15468 -) cat "$tmp/out" && rm -f "$tmp/out";;
15469 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15470 esac \
15471 || as_fn_error "could not create $ac_file" "$LINENO" 5
15472 ;;
15473 :H)
15474 #
15475 # CONFIG_HEADER
15476 #
13b2be9c 15477 if test x"$ac_file" != x-; then
81ecdfbb
RW
15478 {
15479 $as_echo "/* $configure_input */" \
15480 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15481 } >"$tmp/config.h" \
15482 || as_fn_error "could not create $ac_file" "$LINENO" 5
15483 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15485$as_echo "$as_me: $ac_file is unchanged" >&6;}
13b2be9c 15486 else
81ecdfbb
RW
15487 rm -f "$ac_file"
15488 mv "$tmp/config.h" "$ac_file" \
15489 || as_fn_error "could not create $ac_file" "$LINENO" 5
9b2b7d69 15490 fi
13b2be9c 15491 else
81ecdfbb
RW
15492 $as_echo "/* $configure_input */" \
15493 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15494 || as_fn_error "could not create -" "$LINENO" 5
9b2b7d69 15495 fi
81ecdfbb
RW
15496# Compute "$ac_file"'s index in $config_headers.
15497_am_arg="$ac_file"
13b2be9c
DJ
15498_am_stamp_count=1
15499for _am_header in $config_headers :; do
15500 case $_am_header in
81ecdfbb 15501 $_am_arg | $_am_arg:* )
13b2be9c
DJ
15502 break ;;
15503 * )
15504 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15505 esac
15506done
81ecdfbb
RW
15507echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15508$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15509 X"$_am_arg" : 'X\(//\)[^/]' \| \
15510 X"$_am_arg" : 'X\(//\)$' \| \
15511 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15512$as_echo X"$_am_arg" |
15513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15514 s//\1/
15515 q
15516 }
15517 /^X\(\/\/\)[^/].*/{
15518 s//\1/
15519 q
15520 }
15521 /^X\(\/\/\)$/{
15522 s//\1/
15523 q
15524 }
15525 /^X\(\/\).*/{
15526 s//\1/
15527 q
15528 }
15529 s/.*/./; q'`/stamp-h$_am_stamp_count
15530 ;;
ab509236 15531
81ecdfbb
RW
15532 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15533$as_echo "$as_me: executing $ac_file commands" >&6;}
15534 ;;
15535 esac
13b2be9c
DJ
15536
15537
81ecdfbb
RW
15538 case $ac_file$ac_mode in
15539 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15540 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15541 # are listed without --file. Let's play safe and only enable the eval
15542 # if we detect the quoting.
15543 case $CONFIG_FILES in
15544 *\'*) eval set x "$CONFIG_FILES" ;;
15545 *) set x $CONFIG_FILES ;;
15546 esac
15547 shift
15548 for mf
15549 do
15550 # Strip MF so we end up with the name of the file.
15551 mf=`echo "$mf" | sed -e 's/:.*$//'`
15552 # Check whether this is an Automake generated Makefile or not.
15553 # We used to match only the files named `Makefile.in', but
15554 # some people rename them; so instead we look at the file content.
15555 # Grep'ing the first line is not enough: some people post-process
15556 # each Makefile.in and add a new line on top of each file to say so.
15557 # Grep'ing the whole file is not good either: AIX grep has a line
15558 # limit of 2048, but all sed's we know have understand at least 4000.
15559 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15560 dirpart=`$as_dirname -- "$mf" ||
13b2be9c 15561$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15562 X"$mf" : 'X\(//\)[^/]' \| \
15563 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
15564 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15565$as_echo X"$mf" |
15566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15567 s//\1/
15568 q
15569 }
15570 /^X\(\/\/\)[^/].*/{
15571 s//\1/
15572 q
15573 }
15574 /^X\(\/\/\)$/{
15575 s//\1/
15576 q
15577 }
15578 /^X\(\/\).*/{
15579 s//\1/
15580 q
15581 }
15582 s/.*/./; q'`
15583 else
15584 continue
15585 fi
15586 # Extract the definition of DEPDIR, am__include, and am__quote
15587 # from the Makefile without running `make'.
15588 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15589 test -z "$DEPDIR" && continue
15590 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15591 test -z "am__include" && continue
15592 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15593 # When using ansi2knr, U may be empty or an underscore; expand it
15594 U=`sed -n 's/^U = //p' < "$mf"`
15595 # Find all dependency output files, they are included files with
15596 # $(DEPDIR) in their names. We invoke sed twice because it is the
15597 # simplest approach to changing $(DEPDIR) to its actual value in the
15598 # expansion.
15599 for file in `sed -n "
15600 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15601 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15602 # Make sure the directory exists.
15603 test -f "$dirpart/$file" && continue
15604 fdir=`$as_dirname -- "$file" ||
13b2be9c 15605$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15606 X"$file" : 'X\(//\)[^/]' \| \
15607 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
15608 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15609$as_echo X"$file" |
15610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15611 s//\1/
15612 q
15613 }
15614 /^X\(\/\/\)[^/].*/{
15615 s//\1/
15616 q
15617 }
15618 /^X\(\/\/\)$/{
15619 s//\1/
15620 q
15621 }
15622 /^X\(\/\).*/{
15623 s//\1/
15624 q
15625 }
15626 s/.*/./; q'`
15627 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15628 # echo "creating $dirpart/$file"
15629 echo '# dummy' > "$dirpart/$file"
13b2be9c 15630 done
13b2be9c 15631 done
81ecdfbb 15632}
d7040cdb 15633 ;;
81ecdfbb 15634 "libtool":C)
d7040cdb
SE
15635
15636 # See if we are running on zsh, and set the options which allow our
15637 # commands through without removal of \ escapes.
15638 if test -n "${ZSH_VERSION+set}" ; then
15639 setopt NO_GLOB_SUBST
15640 fi
15641
15642 cfgfile="${ofile}T"
15643 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15644 $RM "$cfgfile"
15645
15646 cat <<_LT_EOF >> "$cfgfile"
15647#! $SHELL
15648
15649# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 15650# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
15651# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15652# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15653#
718a6fd8
SE
15654# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15655# 2006, 2007, 2008 Free Software Foundation, Inc.
15656# Written by Gordon Matzigkeit, 1996
d7040cdb 15657#
718a6fd8 15658# This file is part of GNU Libtool.
d7040cdb 15659#
718a6fd8
SE
15660# GNU Libtool is free software; you can redistribute it and/or
15661# modify it under the terms of the GNU General Public License as
15662# published by the Free Software Foundation; either version 2 of
15663# the License, or (at your option) any later version.
d7040cdb 15664#
718a6fd8
SE
15665# As a special exception to the GNU General Public License,
15666# if you distribute this file as part of a program or library that
15667# is built using GNU Libtool, you may include this file under the
15668# same distribution terms that you use for the rest of that program.
d7040cdb 15669#
718a6fd8
SE
15670# GNU Libtool is distributed in the hope that it will be useful,
15671# but WITHOUT ANY WARRANTY; without even the implied warranty of
15672# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15673# GNU General Public License for more details.
d7040cdb 15674#
718a6fd8
SE
15675# You should have received a copy of the GNU General Public License
15676# along with GNU Libtool; see the file COPYING. If not, a copy
15677# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15678# obtained by writing to the Free Software Foundation, Inc.,
15679# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
15680
15681
15682# The names of the tagged configurations supported by this script.
15683available_tags=""
15684
15685# ### BEGIN LIBTOOL CONFIG
15686
15687# Which release of libtool.m4 was used?
15688macro_version=$macro_version
15689macro_revision=$macro_revision
15690
15691# Whether or not to build shared libraries.
15692build_libtool_libs=$enable_shared
15693
15694# Whether or not to build static libraries.
15695build_old_libs=$enable_static
15696
15697# What type of objects to build.
15698pic_mode=$pic_mode
15699
15700# Whether or not to optimize for fast installation.
15701fast_install=$enable_fast_install
15702
15703# The host system.
15704host_alias=$host_alias
15705host=$host
15706host_os=$host_os
15707
15708# The build system.
15709build_alias=$build_alias
15710build=$build
15711build_os=$build_os
15712
15713# A sed program that does not truncate output.
15714SED=$lt_SED
15715
15716# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15717Xsed="\$SED -e 1s/^X//"
15718
15719# A grep program that handles long lines.
15720GREP=$lt_GREP
15721
15722# An ERE matcher.
15723EGREP=$lt_EGREP
15724
15725# A literal string matcher.
15726FGREP=$lt_FGREP
15727
15728# A BSD- or MS-compatible name lister.
15729NM=$lt_NM
15730
15731# Whether we need soft or hard links.
15732LN_S=$lt_LN_S
15733
15734# What is the maximum length of a command?
15735max_cmd_len=$max_cmd_len
15736
15737# Object file suffix (normally "o").
15738objext=$ac_objext
15739
15740# Executable file suffix (normally "").
15741exeext=$exeext
15742
15743# whether the shell understands "unset".
15744lt_unset=$lt_unset
15745
15746# turn spaces into newlines.
15747SP2NL=$lt_lt_SP2NL
15748
15749# turn newlines into spaces.
15750NL2SP=$lt_lt_NL2SP
15751
15752# How to create reloadable object files.
15753reload_flag=$lt_reload_flag
15754reload_cmds=$lt_reload_cmds
15755
718a6fd8
SE
15756# An object symbol dumper.
15757OBJDUMP=$lt_OBJDUMP
15758
d7040cdb
SE
15759# Method to check whether dependent libraries are shared objects.
15760deplibs_check_method=$lt_deplibs_check_method
15761
15762# Command to use when deplibs_check_method == "file_magic".
15763file_magic_cmd=$lt_file_magic_cmd
15764
15765# The archiver.
15766AR=$lt_AR
15767AR_FLAGS=$lt_AR_FLAGS
15768
15769# A symbol stripping program.
15770STRIP=$lt_STRIP
15771
15772# Commands used to install an old-style archive.
15773RANLIB=$lt_RANLIB
15774old_postinstall_cmds=$lt_old_postinstall_cmds
15775old_postuninstall_cmds=$lt_old_postuninstall_cmds
15776
15777# A C compiler.
15778LTCC=$lt_CC
15779
15780# LTCC compiler flags.
15781LTCFLAGS=$lt_CFLAGS
15782
15783# Take the output of nm and produce a listing of raw symbols and C names.
15784global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15785
15786# Transform the output of nm in a proper C declaration.
15787global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15788
15789# Transform the output of nm in a C name address pair.
15790global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15791
718a6fd8
SE
15792# Transform the output of nm in a C name address pair when lib prefix is needed.
15793global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15794
d7040cdb
SE
15795# The name of the directory that contains temporary libtool files.
15796objdir=$objdir
15797
15798# Shell to use when invoking shell scripts.
15799SHELL=$lt_SHELL
15800
15801# An echo program that does not interpret backslashes.
15802ECHO=$lt_ECHO
15803
15804# Used to examine libraries when file_magic_cmd begins with "file".
15805MAGIC_CMD=$MAGIC_CMD
15806
15807# Must we lock files when doing compilation?
15808need_locks=$lt_need_locks
15809
718a6fd8
SE
15810# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15811DSYMUTIL=$lt_DSYMUTIL
15812
15813# Tool to change global to local symbols on Mac OS X.
15814NMEDIT=$lt_NMEDIT
15815
15816# Tool to manipulate fat objects and archives on Mac OS X.
15817LIPO=$lt_LIPO
15818
15819# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15820OTOOL=$lt_OTOOL
15821
15822# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15823OTOOL64=$lt_OTOOL64
15824
d7040cdb
SE
15825# Old archive suffix (normally "a").
15826libext=$libext
15827
15828# Shared library suffix (normally ".so").
15829shrext_cmds=$lt_shrext_cmds
15830
15831# The commands to extract the exported symbol list from a shared archive.
15832extract_expsyms_cmds=$lt_extract_expsyms_cmds
15833
15834# Variables whose values should be saved in libtool wrapper scripts and
15835# restored at link time.
15836variables_saved_for_relink=$lt_variables_saved_for_relink
15837
15838# Do we need the "lib" prefix for modules?
15839need_lib_prefix=$need_lib_prefix
15840
15841# Do we need a version for libraries?
15842need_version=$need_version
15843
15844# Library versioning type.
15845version_type=$version_type
15846
15847# Shared library runtime path variable.
15848runpath_var=$runpath_var
15849
15850# Shared library path variable.
15851shlibpath_var=$shlibpath_var
15852
15853# Is shlibpath searched before the hard-coded library search path?
15854shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15855
15856# Format of library name prefix.
15857libname_spec=$lt_libname_spec
15858
15859# List of archive names. First name is the real one, the rest are links.
15860# The last name is the one that the linker finds with -lNAME
15861library_names_spec=$lt_library_names_spec
15862
15863# The coded name of the library, if different from the real name.
15864soname_spec=$lt_soname_spec
15865
15866# Command to use after installation of a shared archive.
15867postinstall_cmds=$lt_postinstall_cmds
15868
15869# Command to use after uninstallation of a shared archive.
15870postuninstall_cmds=$lt_postuninstall_cmds
15871
15872# Commands used to finish a libtool library installation in a directory.
15873finish_cmds=$lt_finish_cmds
15874
15875# As "finish_cmds", except a single script fragment to be evaled but
15876# not shown.
15877finish_eval=$lt_finish_eval
15878
15879# Whether we should hardcode library paths into libraries.
15880hardcode_into_libs=$hardcode_into_libs
15881
15882# Compile-time system search path for libraries.
15883sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15884
15885# Run-time system search path for libraries.
15886sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15887
15888# Whether dlopen is supported.
15889dlopen_support=$enable_dlopen
15890
15891# Whether dlopen of programs is supported.
15892dlopen_self=$enable_dlopen_self
15893
15894# Whether dlopen of statically linked programs is supported.
15895dlopen_self_static=$enable_dlopen_self_static
15896
15897# Commands to strip libraries.
15898old_striplib=$lt_old_striplib
15899striplib=$lt_striplib
15900
15901
15902# The linker used to build libraries.
15903LD=$lt_LD
15904
15905# Commands used to build an old-style archive.
15906old_archive_cmds=$lt_old_archive_cmds
15907
15908# A language specific compiler.
15909CC=$lt_compiler
15910
15911# Is the compiler the GNU compiler?
15912with_gcc=$GCC
15913
15914# Compiler flag to turn off builtin functions.
15915no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15916
15917# How to pass a linker flag through the compiler.
15918wl=$lt_lt_prog_compiler_wl
15919
15920# Additional compiler flags for building library objects.
15921pic_flag=$lt_lt_prog_compiler_pic
15922
15923# Compiler flag to prevent dynamic linking.
15924link_static_flag=$lt_lt_prog_compiler_static
15925
15926# Does compiler simultaneously support -c and -o options?
15927compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15928
15929# Whether or not to add -lc for building shared libraries.
15930build_libtool_need_lc=$archive_cmds_need_lc
15931
15932# Whether or not to disallow shared libs when runtime libs are static.
15933allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15934
15935# Compiler flag to allow reflexive dlopens.
15936export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15937
15938# Compiler flag to generate shared objects directly from archives.
15939whole_archive_flag_spec=$lt_whole_archive_flag_spec
15940
15941# Whether the compiler copes with passing no objects directly.
15942compiler_needs_object=$lt_compiler_needs_object
15943
15944# Create an old-style archive from a shared archive.
15945old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15946
15947# Create a temporary old-style archive to link instead of a shared archive.
15948old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15949
15950# Commands used to build a shared archive.
15951archive_cmds=$lt_archive_cmds
15952archive_expsym_cmds=$lt_archive_expsym_cmds
15953
15954# Commands used to build a loadable module if different from building
15955# a shared archive.
15956module_cmds=$lt_module_cmds
15957module_expsym_cmds=$lt_module_expsym_cmds
15958
15959# Whether we are building with GNU ld or not.
15960with_gnu_ld=$lt_with_gnu_ld
15961
15962# Flag that allows shared libraries with undefined symbols to be built.
15963allow_undefined_flag=$lt_allow_undefined_flag
15964
15965# Flag that enforces no undefined symbols.
15966no_undefined_flag=$lt_no_undefined_flag
15967
15968# Flag to hardcode \$libdir into a binary during linking.
15969# This must work even if \$libdir does not exist
15970hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15971
15972# If ld is used when linking, flag to hardcode \$libdir into a binary
15973# during linking. This must work even if \$libdir does not exist.
15974hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15975
15976# Whether we need a single "-rpath" flag with a separated argument.
15977hardcode_libdir_separator=$lt_hardcode_libdir_separator
15978
15979# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15980# DIR into the resulting binary.
15981hardcode_direct=$hardcode_direct
15982
15983# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15984# DIR into the resulting binary and the resulting library dependency is
15985# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15986# library is relocated.
15987hardcode_direct_absolute=$hardcode_direct_absolute
15988
15989# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15990# into the resulting binary.
15991hardcode_minus_L=$hardcode_minus_L
15992
15993# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15994# into the resulting binary.
15995hardcode_shlibpath_var=$hardcode_shlibpath_var
15996
15997# Set to "yes" if building a shared library automatically hardcodes DIR
15998# into the library and all subsequent libraries and executables linked
15999# against it.
16000hardcode_automatic=$hardcode_automatic
16001
16002# Set to yes if linker adds runtime paths of dependent libraries
16003# to runtime path list.
16004inherit_rpath=$inherit_rpath
16005
16006# Whether libtool must link a program against all its dependency libraries.
16007link_all_deplibs=$link_all_deplibs
16008
16009# Fix the shell variable \$srcfile for the compiler.
16010fix_srcfile_path=$lt_fix_srcfile_path
16011
16012# Set to "yes" if exported symbols are required.
16013always_export_symbols=$always_export_symbols
16014
16015# The commands to list exported symbols.
16016export_symbols_cmds=$lt_export_symbols_cmds
16017
16018# Symbols that should not be listed in the preloaded symbols.
16019exclude_expsyms=$lt_exclude_expsyms
16020
16021# Symbols that must always be exported.
16022include_expsyms=$lt_include_expsyms
16023
16024# Commands necessary for linking programs (against libraries) with templates.
16025prelink_cmds=$lt_prelink_cmds
16026
16027# Specify filename containing input files.
16028file_list_spec=$lt_file_list_spec
16029
16030# How to hardcode a shared library path into an executable.
16031hardcode_action=$hardcode_action
16032
16033# ### END LIBTOOL CONFIG
16034
16035_LT_EOF
16036
16037 case $host_os in
16038 aix3*)
16039 cat <<\_LT_EOF >> "$cfgfile"
16040# AIX sometimes has problems with the GCC collect2 program. For some
16041# reason, if we set the COLLECT_NAMES environment variable, the problems
16042# vanish in a puff of smoke.
16043if test "X${COLLECT_NAMES+set}" != Xset; then
16044 COLLECT_NAMES=
16045 export COLLECT_NAMES
16046fi
16047_LT_EOF
16048 ;;
16049 esac
16050
16051
16052ltmain="$ac_aux_dir/ltmain.sh"
16053
16054
16055 # We use sed instead of cat because bash on DJGPP gets confused if
16056 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16057 # text mode, it properly converts lines to CR/LF. This bash problem
16058 # is reportedly fixed, but why not run on old versions too?
16059 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16060 || (rm -f "$cfgfile"; exit 1)
16061
16062 case $xsi_shell in
16063 yes)
16064 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 16065
d7040cdb
SE
16066# func_dirname file append nondir_replacement
16067# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16068# otherwise set result to NONDIR_REPLACEMENT.
16069func_dirname ()
16070{
16071 case ${1} in
16072 */*) func_dirname_result="${1%/*}${2}" ;;
16073 * ) func_dirname_result="${3}" ;;
16074 esac
16075}
16076
16077# func_basename file
16078func_basename ()
16079{
16080 func_basename_result="${1##*/}"
16081}
16082
718a6fd8
SE
16083# func_dirname_and_basename file append nondir_replacement
16084# perform func_basename and func_dirname in a single function
16085# call:
16086# dirname: Compute the dirname of FILE. If nonempty,
16087# add APPEND to the result, otherwise set result
16088# to NONDIR_REPLACEMENT.
16089# value returned in "$func_dirname_result"
16090# basename: Compute filename of FILE.
16091# value retuned in "$func_basename_result"
16092# Implementation must be kept synchronized with func_dirname
16093# and func_basename. For efficiency, we do not delegate to
16094# those functions but instead duplicate the functionality here.
16095func_dirname_and_basename ()
16096{
16097 case ${1} in
16098 */*) func_dirname_result="${1%/*}${2}" ;;
16099 * ) func_dirname_result="${3}" ;;
16100 esac
16101 func_basename_result="${1##*/}"
16102}
16103
d7040cdb
SE
16104# func_stripname prefix suffix name
16105# strip PREFIX and SUFFIX off of NAME.
16106# PREFIX and SUFFIX must not contain globbing or regex special
16107# characters, hashes, percent signs, but SUFFIX may contain a leading
16108# dot (in which case that matches only a dot).
16109func_stripname ()
16110{
16111 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16112 # positional parameters, so assign one to ordinary parameter first.
16113 func_stripname_result=${3}
16114 func_stripname_result=${func_stripname_result#"${1}"}
16115 func_stripname_result=${func_stripname_result%"${2}"}
16116}
16117
16118# func_opt_split
16119func_opt_split ()
16120{
16121 func_opt_split_opt=${1%%=*}
16122 func_opt_split_arg=${1#*=}
16123}
16124
16125# func_lo2o object
16126func_lo2o ()
16127{
16128 case ${1} in
16129 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16130 *) func_lo2o_result=${1} ;;
16131 esac
16132}
718a6fd8
SE
16133
16134# func_xform libobj-or-source
16135func_xform ()
16136{
16137 func_xform_result=${1%.*}.lo
16138}
16139
16140# func_arith arithmetic-term...
16141func_arith ()
16142{
16143 func_arith_result=$(( $* ))
16144}
16145
16146# func_len string
16147# STRING may not start with a hyphen.
16148func_len ()
16149{
16150 func_len_result=${#1}
16151}
16152
d7040cdb
SE
16153_LT_EOF
16154 ;;
16155 *) # Bourne compatible functions.
16156 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 16157
d7040cdb
SE
16158# func_dirname file append nondir_replacement
16159# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16160# otherwise set result to NONDIR_REPLACEMENT.
16161func_dirname ()
16162{
16163 # Extract subdirectory from the argument.
16164 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16165 if test "X$func_dirname_result" = "X${1}"; then
16166 func_dirname_result="${3}"
16167 else
16168 func_dirname_result="$func_dirname_result${2}"
16169 fi
16170}
16171
16172# func_basename file
16173func_basename ()
16174{
16175 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16176}
16177
718a6fd8 16178
d7040cdb
SE
16179# func_stripname prefix suffix name
16180# strip PREFIX and SUFFIX off of NAME.
16181# PREFIX and SUFFIX must not contain globbing or regex special
16182# characters, hashes, percent signs, but SUFFIX may contain a leading
16183# dot (in which case that matches only a dot).
16184# func_strip_suffix prefix name
16185func_stripname ()
16186{
16187 case ${2} in
16188 .*) func_stripname_result=`$ECHO "X${3}" \
16189 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16190 *) func_stripname_result=`$ECHO "X${3}" \
16191 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16192 esac
16193}
16194
16195# sed scripts:
16196my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16197my_sed_long_arg='1s/^-[^=]*=//'
16198
16199# func_opt_split
16200func_opt_split ()
16201{
16202 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16203 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16204}
16205
16206# func_lo2o object
16207func_lo2o ()
16208{
16209 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16210}
718a6fd8
SE
16211
16212# func_xform libobj-or-source
16213func_xform ()
16214{
16215 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16216}
16217
16218# func_arith arithmetic-term...
16219func_arith ()
16220{
16221 func_arith_result=`expr "$@"`
16222}
16223
16224# func_len string
16225# STRING may not start with a hyphen.
16226func_len ()
16227{
16228 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16229}
16230
d7040cdb
SE
16231_LT_EOF
16232esac
16233
16234case $lt_shell_append in
16235 yes)
16236 cat << \_LT_EOF >> "$cfgfile"
16237
16238# func_append var value
16239# Append VALUE to the end of shell variable VAR.
16240func_append ()
16241{
16242 eval "$1+=\$2"
16243}
16244_LT_EOF
16245 ;;
16246 *)
16247 cat << \_LT_EOF >> "$cfgfile"
16248
16249# func_append var value
16250# Append VALUE to the end of shell variable VAR.
16251func_append ()
16252{
16253 eval "$1=\$$1\$2"
16254}
718a6fd8 16255
d7040cdb
SE
16256_LT_EOF
16257 ;;
16258 esac
16259
16260
16261 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16262 || (rm -f "$cfgfile"; exit 1)
16263
16264 mv -f "$cfgfile" "$ofile" ||
16265 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16266 chmod +x "$ofile"
16267
13b2be9c 16268 ;;
81ecdfbb 16269 "default-1":C)
20e95c23
DJ
16270 for ac_file in $CONFIG_FILES; do
16271 # Support "outfile[:infile[:infile...]]"
16272 case "$ac_file" in
16273 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16274 esac
16275 # PO directories have a Makefile.in generated from Makefile.in.in.
16276 case "$ac_file" in */Makefile.in)
16277 # Adjust a relative srcdir.
16278 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16279 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16280 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16281 # In autoconf-2.13 it is called $ac_given_srcdir.
16282 # In autoconf-2.50 it is called $srcdir.
16283 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16284 case "$ac_given_srcdir" in
16285 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16286 /*) top_srcdir="$ac_given_srcdir" ;;
16287 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16288 esac
16289 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16290 rm -f "$ac_dir/POTFILES"
16291 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16292 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16293 POMAKEFILEDEPS="POTFILES.in"
16294 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16295 # on $ac_dir but don't depend on user-specified configuration
16296 # parameters.
16297 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16298 # The LINGUAS file contains the set of available languages.
16299 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16300 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16301 fi
16302 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16303 # Hide the ALL_LINGUAS assigment from automake.
16304 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16305 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16306 else
16307 # The set of available languages was given in configure.in.
16308 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16309 fi
16310 case "$ac_given_srcdir" in
16311 .) srcdirpre= ;;
16312 *) srcdirpre='$(srcdir)/' ;;
16313 esac
16314 POFILES=
16315 GMOFILES=
16316 UPDATEPOFILES=
16317 DUMMYPOFILES=
16318 for lang in $ALL_LINGUAS; do
16319 POFILES="$POFILES $srcdirpre$lang.po"
16320 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16321 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16322 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16323 done
16324 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16325 # environment variable.
16326 INST_LINGUAS=
16327 if test -n "$ALL_LINGUAS"; then
16328 for presentlang in $ALL_LINGUAS; do
16329 useit=no
16330 if test "%UNSET%" != "$LINGUAS"; then
16331 desiredlanguages="$LINGUAS"
16332 else
16333 desiredlanguages="$ALL_LINGUAS"
16334 fi
16335 for desiredlang in $desiredlanguages; do
16336 # Use the presentlang catalog if desiredlang is
16337 # a. equal to presentlang, or
16338 # b. a variant of presentlang (because in this case,
16339 # presentlang can be used as a fallback for messages
16340 # which are not translated in the desiredlang catalog).
16341 case "$desiredlang" in
16342 "$presentlang"*) useit=yes;;
16343 esac
16344 done
16345 if test $useit = yes; then
16346 INST_LINGUAS="$INST_LINGUAS $presentlang"
16347 fi
16348 done
16349 fi
16350 CATALOGS=
16351 if test -n "$INST_LINGUAS"; then
16352 for lang in $INST_LINGUAS; do
16353 CATALOGS="$CATALOGS $lang.gmo"
16354 done
16355 fi
16356 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16357 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16358 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16359 if test -f "$f"; then
16360 case "$f" in
16361 *.orig | *.bak | *~) ;;
16362 *) cat "$f" >> "$ac_dir/Makefile" ;;
16363 esac
16364 fi
16365 done
16366 fi
16367 ;;
16368 esac
16369 done ;;
81ecdfbb 16370 "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
252b5132
RH
16371 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16372 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16373 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16374 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16375 if test "x$cgen_cpu_prefix" != x ; then
16376 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
20e95c23 16377 fi ;;
81ecdfbb 16378
13b2be9c 16379 esac
81ecdfbb 16380done # for ac_tag
13b2be9c 16381
13b2be9c 16382
81ecdfbb 16383as_fn_exit 0
13b2be9c 16384_ACEOF
13b2be9c
DJ
16385ac_clean_files=$ac_clean_files_save
16386
81ecdfbb
RW
16387test $ac_write_fail = 0 ||
16388 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16389
13b2be9c
DJ
16390
16391# configure is writing to config.log, and then calls config.status.
16392# config.status does its own redirection, appending to config.log.
16393# Unfortunately, on DOS this fails, as config.log is still kept open
16394# by configure, so config.status won't be able to write to it; its
16395# output is simply discarded. So we exec the FD to /dev/null,
16396# effectively closing config.log, so it can be properly (re)opened and
16397# appended to by config.status. When coming back to configure, we
16398# need to make the FD available again.
16399if test "$no_create" != yes; then
16400 ac_cs_success=:
16401 ac_config_status_args=
16402 test "$silent" = yes &&
16403 ac_config_status_args="$ac_config_status_args --quiet"
16404 exec 5>/dev/null
16405 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16406 exec 5>>config.log
16407 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16408 # would make configure fail if this is the last instruction.
81ecdfbb
RW
16409 $ac_cs_success || as_fn_exit $?
16410fi
16411if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16413$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13b2be9c 16414fi
252b5132 16415
This page took 1.496721 seconds and 4 git commands to generate.