Add -Wshadow to the gcc command line options used when compiling the binutils.
[deliverable/binutils-gdb.git] / ld / 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## -------------------- ##
42ecbf5e 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 :
42ecbf5e
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
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
42ecbf5e 31fi
42ecbf5e 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 }
42ecbf5e
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
42ecbf5e
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
42ecbf5e 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."
42ecbf5e 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."
42ecbf5e 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
42ecbf5e 372
81ecdfbb
RW
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
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
42ecbf5e
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
42ecbf5e 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
42ecbf5e
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'`
42ecbf5e 410
42ecbf5e
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
42ecbf5e 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 |
42ecbf5e 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
42ecbf5e 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42ecbf5e 436 t loop
81ecdfbb 437 s/-\n.*//
42ecbf5e 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; }
42ecbf5e
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"
42ecbf5e
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';;
42ecbf5e
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
42ecbf5e 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
42ecbf5e 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 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'
42ecbf5e 483 fi
42ecbf5e
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
42ecbf5e
DJ
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
492else
493 test -d ./-p && rmdir ./-p
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
42ecbf5e
DJ
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
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
42ecbf5e
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
42ecbf5e
DJ
683#
684# Initializations.
685#
252b5132 686ac_default_prefix=/usr/local
81ecdfbb 687ac_clean_files=
42ecbf5e 688ac_config_libobj_dir=.
81ecdfbb 689LIBOBJS=
42ecbf5e
DJ
690cross_compiling=no
691subdirs=
692MFLAGS=
693MAKEFLAGS=
42ecbf5e
DJ
694
695# Identity of this package.
696PACKAGE_NAME=
697PACKAGE_TARNAME=
698PACKAGE_VERSION=
699PACKAGE_STRING=
700PACKAGE_BUGREPORT=
81ecdfbb 701PACKAGE_URL=
42ecbf5e
DJ
702
703ac_unique_file="ldmain.c"
704# Factoring default headers for most tests.
705ac_includes_default="\
706#include <stdio.h>
81ecdfbb 707#ifdef HAVE_SYS_TYPES_H
42ecbf5e
DJ
708# include <sys/types.h>
709#endif
81ecdfbb 710#ifdef HAVE_SYS_STAT_H
42ecbf5e
DJ
711# include <sys/stat.h>
712#endif
81ecdfbb 713#ifdef STDC_HEADERS
42ecbf5e
DJ
714# include <stdlib.h>
715# include <stddef.h>
716#else
81ecdfbb 717# ifdef HAVE_STDLIB_H
42ecbf5e
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
42ecbf5e
DJ
723# include <memory.h>
724# endif
725# include <string.h>
726#endif
81ecdfbb 727#ifdef HAVE_STRINGS_H
42ecbf5e
DJ
728# include <strings.h>
729#endif
81ecdfbb 730#ifdef HAVE_INTTYPES_H
42ecbf5e 731# include <inttypes.h>
42ecbf5e 732#endif
81ecdfbb
RW
733#ifdef HAVE_STDINT_H
734# include <stdint.h>
735#endif
736#ifdef HAVE_UNISTD_H
42ecbf5e
DJ
737# include <unistd.h>
738#endif"
739
81ecdfbb
RW
740ac_subst_vars='am__EXEEXT_FALSE
741am__EXEEXT_TRUE
742LTLIBOBJS
743LIBOBJS
744TESTBFDLIB
745EMULATION_LIBPATH
746LIB_PATH
747EMUL_EXTRA_OFILES
748EMULATION_OFILES
749EMUL
750STRINGIFY
751NATIVE_LIB_DIRS
752HOSTING_LIBS
753HOSTING_CRT0
754HDEFINES
755do_compare
756GENINSRC_NEVER_FALSE
757GENINSRC_NEVER_TRUE
81ecdfbb
RW
758LEXLIB
759LEX_OUTPUT_ROOT
760LEX
761YFLAGS
762YACC
763MSGMERGE
764MSGFMT
765MKINSTALLDIRS
766CATOBJEXT
767GENCAT
768INSTOBJEXT
769DATADIRNAME
770CATALOGS
771POSUB
772GMSGFMT
773XGETTEXT
774INCINTL
775LIBINTL_DEP
776LIBINTL
777USE_NLS
778OTOOL64
779OTOOL
780LIPO
781NMEDIT
782DSYMUTIL
783lt_ECHO
784RANLIB
785AR
786OBJDUMP
787LN_S
788NM
789ac_ct_DUMPBIN
790DUMPBIN
791LD
792FGREP
793SED
794LIBTOOL
795EGREP
796GREP
797CPP
798NO_WERROR
799WARN_CFLAGS
800TARGET_SYSTEM_ROOT_DEFINE
801TARGET_SYSTEM_ROOT
802use_sysroot
64ac50ac
RW
803MAINT
804MAINTAINER_MODE_FALSE
805MAINTAINER_MODE_TRUE
81ecdfbb
RW
806am__fastdepCC_FALSE
807am__fastdepCC_TRUE
808CCDEPMODE
809AMDEPBACKSLASH
810AMDEP_FALSE
811AMDEP_TRUE
812am__quote
813am__include
814DEPDIR
815am__untar
816am__tar
817AMTAR
818am__leading_dot
819SET_MAKE
820AWK
821mkdir_p
822MKDIR_P
823INSTALL_STRIP_PROGRAM
824STRIP
825install_sh
826MAKEINFO
827AUTOHEADER
828AUTOMAKE
829AUTOCONF
830ACLOCAL
831VERSION
832PACKAGE
833CYGPATH_W
834am__isrc
835INSTALL_DATA
836INSTALL_SCRIPT
837INSTALL_PROGRAM
838OBJEXT
839EXEEXT
840ac_ct_CC
841CPPFLAGS
842LDFLAGS
843CFLAGS
844CC
845target_os
846target_vendor
847target_cpu
848target
849host_os
850host_vendor
851host_cpu
852host
853build_os
854build_vendor
855build_cpu
856build
857target_alias
858host_alias
859build_alias
860LIBS
861ECHO_T
862ECHO_N
863ECHO_C
864DEFS
865mandir
866localedir
867libdir
868psdir
869pdfdir
870dvidir
871htmldir
872infodir
873docdir
874oldincludedir
875includedir
876localstatedir
877sharedstatedir
878sysconfdir
879datadir
880datarootdir
881libexecdir
882sbindir
883bindir
884program_transform_name
885prefix
886exec_prefix
887PACKAGE_URL
888PACKAGE_BUGREPORT
889PACKAGE_STRING
890PACKAGE_VERSION
891PACKAGE_TARNAME
892PACKAGE_NAME
893PATH_SEPARATOR
894SHELL'
42ecbf5e 895ac_subst_files='TDIRS'
81ecdfbb
RW
896ac_user_opts='
897enable_option_checking
898enable_dependency_tracking
64ac50ac 899enable_maintainer_mode
81ecdfbb
RW
900with_lib_path
901enable_targets
902enable_64_bit_bfd
903with_sysroot
904enable_got
905enable_werror
906enable_build_warnings
da2f07f1 907enable_plugins
81ecdfbb
RW
908enable_largefile
909enable_shared
910enable_static
911with_pic
912enable_fast_install
913with_gnu_ld
914enable_libtool_lock
915enable_nls
81ecdfbb
RW
916'
917 ac_precious_vars='build_alias
918host_alias
919target_alias
920CC
921CFLAGS
922LDFLAGS
923LIBS
924CPPFLAGS
925CPP
926YACC
927YFLAGS'
928
252b5132
RH
929
930# Initialize some variables set by options.
42ecbf5e
DJ
931ac_init_help=
932ac_init_version=false
81ecdfbb
RW
933ac_unrecognized_opts=
934ac_unrecognized_sep=
252b5132
RH
935# The variables have the same names as the options, with
936# dashes changed to underlines.
42ecbf5e 937cache_file=/dev/null
252b5132 938exec_prefix=NONE
252b5132 939no_create=
252b5132
RH
940no_recursion=
941prefix=NONE
942program_prefix=NONE
943program_suffix=NONE
944program_transform_name=s,x,x,
945silent=
946site=
947srcdir=
252b5132
RH
948verbose=
949x_includes=NONE
950x_libraries=NONE
42ecbf5e
DJ
951
952# Installation directory options.
953# These are left unexpanded so users can "make install exec_prefix=/foo"
954# and all the variables that are supposed to be based on exec_prefix
955# by default will actually change.
956# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 957# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
958bindir='${exec_prefix}/bin'
959sbindir='${exec_prefix}/sbin'
960libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
961datarootdir='${prefix}/share'
962datadir='${datarootdir}'
252b5132
RH
963sysconfdir='${prefix}/etc'
964sharedstatedir='${prefix}/com'
965localstatedir='${prefix}/var'
252b5132
RH
966includedir='${prefix}/include'
967oldincludedir='/usr/include'
81ecdfbb
RW
968docdir='${datarootdir}/doc/${PACKAGE}'
969infodir='${datarootdir}/info'
970htmldir='${docdir}'
971dvidir='${docdir}'
972pdfdir='${docdir}'
973psdir='${docdir}'
974libdir='${exec_prefix}/lib'
975localedir='${datarootdir}/locale'
976mandir='${datarootdir}/man'
252b5132 977
252b5132 978ac_prev=
81ecdfbb 979ac_dashdash=
252b5132
RH
980for ac_option
981do
252b5132
RH
982 # If the previous option needs an argument, assign it.
983 if test -n "$ac_prev"; then
81ecdfbb 984 eval $ac_prev=\$ac_option
252b5132
RH
985 ac_prev=
986 continue
987 fi
988
81ecdfbb
RW
989 case $ac_option in
990 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
991 *) ac_optarg=yes ;;
992 esac
252b5132
RH
993
994 # Accept the important Cygnus configure options, so we can diagnose typos.
995
81ecdfbb
RW
996 case $ac_dashdash$ac_option in
997 --)
998 ac_dashdash=yes ;;
252b5132
RH
999
1000 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1001 ac_prev=bindir ;;
1002 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 1003 bindir=$ac_optarg ;;
252b5132
RH
1004
1005 -build | --build | --buil | --bui | --bu)
42ecbf5e 1006 ac_prev=build_alias ;;
252b5132 1007 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 1008 build_alias=$ac_optarg ;;
252b5132
RH
1009
1010 -cache-file | --cache-file | --cache-fil | --cache-fi \
1011 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1012 ac_prev=cache_file ;;
1013 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1014 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
1015 cache_file=$ac_optarg ;;
1016
1017 --config-cache | -C)
1018 cache_file=config.cache ;;
252b5132 1019
81ecdfbb 1020 -datadir | --datadir | --datadi | --datad)
252b5132 1021 ac_prev=datadir ;;
81ecdfbb 1022 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 1023 datadir=$ac_optarg ;;
252b5132 1024
81ecdfbb
RW
1025 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1026 | --dataroo | --dataro | --datar)
1027 ac_prev=datarootdir ;;
1028 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1029 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1030 datarootdir=$ac_optarg ;;
1031
252b5132 1032 -disable-* | --disable-*)
81ecdfbb 1033 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 1034 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036 as_fn_error "invalid feature name: $ac_useropt"
1037 ac_useropt_orig=$ac_useropt
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1040 *"
1041"enable_$ac_useropt"
1042"*) ;;
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1044 ac_unrecognized_sep=', ';;
1045 esac
1046 eval enable_$ac_useropt=no ;;
1047
1048 -docdir | --docdir | --docdi | --doc | --do)
1049 ac_prev=docdir ;;
1050 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1051 docdir=$ac_optarg ;;
1052
1053 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1054 ac_prev=dvidir ;;
1055 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1056 dvidir=$ac_optarg ;;
252b5132
RH
1057
1058 -enable-* | --enable-*)
81ecdfbb 1059 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 1060 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062 as_fn_error "invalid feature name: $ac_useropt"
1063 ac_useropt_orig=$ac_useropt
1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1066 *"
1067"enable_$ac_useropt"
1068"*) ;;
1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1070 ac_unrecognized_sep=', ';;
252b5132 1071 esac
81ecdfbb 1072 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1073
1074 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1075 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1076 | --exec | --exe | --ex)
1077 ac_prev=exec_prefix ;;
1078 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1079 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1080 | --exec=* | --exe=* | --ex=*)
42ecbf5e 1081 exec_prefix=$ac_optarg ;;
252b5132
RH
1082
1083 -gas | --gas | --ga | --g)
1084 # Obsolete; use --with-gas.
1085 with_gas=yes ;;
1086
42ecbf5e
DJ
1087 -help | --help | --hel | --he | -h)
1088 ac_init_help=long ;;
1089 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1090 ac_init_help=recursive ;;
1091 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1092 ac_init_help=short ;;
252b5132
RH
1093
1094 -host | --host | --hos | --ho)
42ecbf5e 1095 ac_prev=host_alias ;;
252b5132 1096 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 1097 host_alias=$ac_optarg ;;
252b5132 1098
81ecdfbb
RW
1099 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1100 ac_prev=htmldir ;;
1101 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1102 | --ht=*)
1103 htmldir=$ac_optarg ;;
1104
252b5132
RH
1105 -includedir | --includedir | --includedi | --included | --include \
1106 | --includ | --inclu | --incl | --inc)
1107 ac_prev=includedir ;;
1108 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1109 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 1110 includedir=$ac_optarg ;;
252b5132
RH
1111
1112 -infodir | --infodir | --infodi | --infod | --info | --inf)
1113 ac_prev=infodir ;;
1114 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 1115 infodir=$ac_optarg ;;
252b5132
RH
1116
1117 -libdir | --libdir | --libdi | --libd)
1118 ac_prev=libdir ;;
1119 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 1120 libdir=$ac_optarg ;;
252b5132
RH
1121
1122 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1123 | --libexe | --libex | --libe)
1124 ac_prev=libexecdir ;;
1125 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1126 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 1127 libexecdir=$ac_optarg ;;
252b5132 1128
81ecdfbb
RW
1129 -localedir | --localedir | --localedi | --localed | --locale)
1130 ac_prev=localedir ;;
1131 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1132 localedir=$ac_optarg ;;
1133
252b5132 1134 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1135 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1136 ac_prev=localstatedir ;;
1137 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1138 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1139 localstatedir=$ac_optarg ;;
252b5132
RH
1140
1141 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1142 ac_prev=mandir ;;
1143 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1144 mandir=$ac_optarg ;;
252b5132
RH
1145
1146 -nfp | --nfp | --nf)
1147 # Obsolete; use --without-fp.
1148 with_fp=no ;;
1149
1150 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1151 | --no-cr | --no-c | -n)
252b5132
RH
1152 no_create=yes ;;
1153
1154 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1155 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1156 no_recursion=yes ;;
1157
1158 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1159 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1160 | --oldin | --oldi | --old | --ol | --o)
1161 ac_prev=oldincludedir ;;
1162 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1163 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1164 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1165 oldincludedir=$ac_optarg ;;
252b5132
RH
1166
1167 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1168 ac_prev=prefix ;;
1169 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1170 prefix=$ac_optarg ;;
252b5132
RH
1171
1172 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1173 | --program-pre | --program-pr | --program-p)
1174 ac_prev=program_prefix ;;
1175 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1176 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1177 program_prefix=$ac_optarg ;;
252b5132
RH
1178
1179 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1180 | --program-suf | --program-su | --program-s)
1181 ac_prev=program_suffix ;;
1182 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1183 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1184 program_suffix=$ac_optarg ;;
252b5132
RH
1185
1186 -program-transform-name | --program-transform-name \
1187 | --program-transform-nam | --program-transform-na \
1188 | --program-transform-n | --program-transform- \
1189 | --program-transform | --program-transfor \
1190 | --program-transfo | --program-transf \
1191 | --program-trans | --program-tran \
1192 | --progr-tra | --program-tr | --program-t)
1193 ac_prev=program_transform_name ;;
1194 -program-transform-name=* | --program-transform-name=* \
1195 | --program-transform-nam=* | --program-transform-na=* \
1196 | --program-transform-n=* | --program-transform-=* \
1197 | --program-transform=* | --program-transfor=* \
1198 | --program-transfo=* | --program-transf=* \
1199 | --program-trans=* | --program-tran=* \
1200 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1201 program_transform_name=$ac_optarg ;;
252b5132 1202
81ecdfbb
RW
1203 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1204 ac_prev=pdfdir ;;
1205 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1206 pdfdir=$ac_optarg ;;
1207
1208 -psdir | --psdir | --psdi | --psd | --ps)
1209 ac_prev=psdir ;;
1210 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1211 psdir=$ac_optarg ;;
1212
252b5132
RH
1213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1214 | -silent | --silent | --silen | --sile | --sil)
1215 silent=yes ;;
1216
1217 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218 ac_prev=sbindir ;;
1219 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220 | --sbi=* | --sb=*)
42ecbf5e 1221 sbindir=$ac_optarg ;;
252b5132
RH
1222
1223 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1224 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1225 | --sharedst | --shareds | --shared | --share | --shar \
1226 | --sha | --sh)
1227 ac_prev=sharedstatedir ;;
1228 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1229 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1230 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231 | --sha=* | --sh=*)
42ecbf5e 1232 sharedstatedir=$ac_optarg ;;
252b5132
RH
1233
1234 -site | --site | --sit)
1235 ac_prev=site ;;
1236 -site=* | --site=* | --sit=*)
42ecbf5e 1237 site=$ac_optarg ;;
85fbca6a 1238
252b5132
RH
1239 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240 ac_prev=srcdir ;;
1241 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1242 srcdir=$ac_optarg ;;
252b5132
RH
1243
1244 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1245 | --syscon | --sysco | --sysc | --sys | --sy)
1246 ac_prev=sysconfdir ;;
1247 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1248 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1249 sysconfdir=$ac_optarg ;;
252b5132
RH
1250
1251 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1252 ac_prev=target_alias ;;
252b5132 1253 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1254 target_alias=$ac_optarg ;;
252b5132
RH
1255
1256 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1257 verbose=yes ;;
1258
42ecbf5e
DJ
1259 -version | --version | --versio | --versi | --vers | -V)
1260 ac_init_version=: ;;
252b5132
RH
1261
1262 -with-* | --with-*)
81ecdfbb 1263 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1264 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1265 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1266 as_fn_error "invalid package name: $ac_useropt"
1267 ac_useropt_orig=$ac_useropt
1268 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269 case $ac_user_opts in
1270 *"
1271"with_$ac_useropt"
1272"*) ;;
1273 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1274 ac_unrecognized_sep=', ';;
252b5132 1275 esac
81ecdfbb 1276 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1277
1278 -without-* | --without-*)
81ecdfbb 1279 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1280 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282 as_fn_error "invalid package name: $ac_useropt"
1283 ac_useropt_orig=$ac_useropt
1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1286 *"
1287"with_$ac_useropt"
1288"*) ;;
1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1290 ac_unrecognized_sep=', ';;
1291 esac
1292 eval with_$ac_useropt=no ;;
252b5132
RH
1293
1294 --x)
1295 # Obsolete; use --with-x.
1296 with_x=yes ;;
1297
1298 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299 | --x-incl | --x-inc | --x-in | --x-i)
1300 ac_prev=x_includes ;;
1301 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1303 x_includes=$ac_optarg ;;
252b5132
RH
1304
1305 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307 ac_prev=x_libraries ;;
1308 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1310 x_libraries=$ac_optarg ;;
252b5132 1311
81ecdfbb
RW
1312 -*) as_fn_error "unrecognized option: \`$ac_option'
1313Try \`$0 --help' for more information."
252b5132
RH
1314 ;;
1315
42ecbf5e
DJ
1316 *=*)
1317 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1318 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1319 case $ac_envvar in #(
1320 '' | [0-9]* | *[!_$as_cr_alnum]* )
1321 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1322 esac
1323 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1324 export $ac_envvar ;;
1325
252b5132 1326 *)
42ecbf5e 1327 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1328 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1329 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1330 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
42ecbf5e 1331 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1332 ;;
1333
1334 esac
1335done
1336
1337if test -n "$ac_prev"; then
42ecbf5e 1338 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1339 as_fn_error "missing argument to $ac_option"
252b5132 1340fi
252b5132 1341
81ecdfbb
RW
1342if test -n "$ac_unrecognized_opts"; then
1343 case $enable_option_checking in
1344 no) ;;
1345 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1346 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1347 esac
81ecdfbb 1348fi
252b5132 1349
81ecdfbb
RW
1350# Check all directory arguments for consistency.
1351for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352 datadir sysconfdir sharedstatedir localstatedir includedir \
1353 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354 libdir localedir mandir
252b5132 1355do
81ecdfbb
RW
1356 eval ac_val=\$$ac_var
1357 # Remove trailing slashes.
1358 case $ac_val in
1359 */ )
1360 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1361 eval $ac_var=\$ac_val;;
1362 esac
1363 # Be sure to have absolute directory names.
42ecbf5e 1364 case $ac_val in
81ecdfbb
RW
1365 [\\/$]* | ?:[\\/]* ) continue;;
1366 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1367 esac
81ecdfbb 1368 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1369done
1370
42ecbf5e
DJ
1371# There might be people who depend on the old broken behavior: `$host'
1372# used to hold the argument of --host etc.
1373# FIXME: To remove some day.
1374build=$build_alias
1375host=$host_alias
1376target=$target_alias
1377
1378# FIXME: To remove some day.
1379if test "x$host_alias" != x; then
1380 if test "x$build_alias" = x; then
1381 cross_compiling=maybe
81ecdfbb 1382 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
42ecbf5e
DJ
1383 If a cross compiler is detected then cross compile mode will be used." >&2
1384 elif test "x$build_alias" != "x$host_alias"; then
1385 cross_compiling=yes
1386 fi
1387fi
e5a52504 1388
42ecbf5e
DJ
1389ac_tool_prefix=
1390test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391
1392test "$silent" = yes && exec 6>/dev/null
252b5132 1393
252b5132 1394
81ecdfbb
RW
1395ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396ac_ls_di=`ls -di .` &&
1397ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398 as_fn_error "working directory cannot be determined"
1399test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 as_fn_error "pwd does not report name of working directory"
1401
1402
252b5132
RH
1403# Find the source files, if location was not specified.
1404if test -z "$srcdir"; then
1405 ac_srcdir_defaulted=yes
81ecdfbb
RW
1406 # Try the directory containing this script, then the parent directory.
1407 ac_confdir=`$as_dirname -- "$as_myself" ||
1408$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409 X"$as_myself" : 'X\(//\)[^/]' \| \
1410 X"$as_myself" : 'X\(//\)$' \| \
1411 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1412$as_echo X"$as_myself" |
1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\/\)[^/].*/{
1418 s//\1/
1419 q
1420 }
1421 /^X\(\/\/\)$/{
1422 s//\1/
1423 q
1424 }
1425 /^X\(\/\).*/{
1426 s//\1/
1427 q
1428 }
1429 s/.*/./; q'`
252b5132 1430 srcdir=$ac_confdir
81ecdfbb 1431 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1432 srcdir=..
1433 fi
1434else
1435 ac_srcdir_defaulted=no
1436fi
81ecdfbb
RW
1437if test ! -r "$srcdir/$ac_unique_file"; then
1438 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1439 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1440fi
1441ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1442ac_abs_confdir=`(
1443 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1444 pwd)`
1445# When building in place, set srcdir=.
1446if test "$ac_abs_confdir" = "$ac_pwd"; then
1447 srcdir=.
1448fi
1449# Remove unnecessary trailing slashes from srcdir.
1450# Double slashes in file names in object file debugging info
1451# mess up M-x gdb in Emacs.
1452case $srcdir in
1453*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1454esac
1455for ac_var in $ac_precious_vars; do
1456 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_env_${ac_var}_value=\$${ac_var}
1458 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1460done
252b5132 1461
42ecbf5e
DJ
1462#
1463# Report the --help message.
1464#
1465if test "$ac_init_help" = "long"; then
1466 # Omit some internal or obsolete options to make the list less imposing.
1467 # This message is too long to be a string in the A/UX 3.1 sh.
1468 cat <<_ACEOF
1469\`configure' configures this package to adapt to many kinds of systems.
252b5132 1470
42ecbf5e 1471Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1472
42ecbf5e
DJ
1473To assign environment variables (e.g., CC, CFLAGS...), specify them as
1474VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1475
42ecbf5e 1476Defaults for the options are specified in brackets.
ac48eca1 1477
42ecbf5e
DJ
1478Configuration:
1479 -h, --help display this help and exit
1480 --help=short display options specific to this package
1481 --help=recursive display the short help of all the included packages
1482 -V, --version display version information and exit
1483 -q, --quiet, --silent do not print \`checking...' messages
1484 --cache-file=FILE cache test results in FILE [disabled]
1485 -C, --config-cache alias for \`--cache-file=config.cache'
1486 -n, --no-create do not create output files
1487 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1488
42ecbf5e
DJ
1489Installation directories:
1490 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1491 [$ac_default_prefix]
42ecbf5e 1492 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1493 [PREFIX]
ac48eca1 1494
42ecbf5e
DJ
1495By default, \`make install' will install all the files in
1496\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1497an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1498for instance \`--prefix=\$HOME'.
ac48eca1 1499
42ecbf5e 1500For better control, use the options below.
ac48eca1 1501
42ecbf5e 1502Fine tuning of the installation directories:
81ecdfbb
RW
1503 --bindir=DIR user executables [EPREFIX/bin]
1504 --sbindir=DIR system admin executables [EPREFIX/sbin]
1505 --libexecdir=DIR program executables [EPREFIX/libexec]
1506 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1507 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1508 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1509 --libdir=DIR object code libraries [EPREFIX/lib]
1510 --includedir=DIR C header files [PREFIX/include]
1511 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1512 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1513 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1514 --infodir=DIR info documentation [DATAROOTDIR/info]
1515 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1516 --mandir=DIR man documentation [DATAROOTDIR/man]
1517 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1518 --htmldir=DIR html documentation [DOCDIR]
1519 --dvidir=DIR dvi documentation [DOCDIR]
1520 --pdfdir=DIR pdf documentation [DOCDIR]
1521 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1522_ACEOF
ac48eca1 1523
42ecbf5e 1524 cat <<\_ACEOF
252b5132 1525
42ecbf5e
DJ
1526Program names:
1527 --program-prefix=PREFIX prepend PREFIX to installed program names
1528 --program-suffix=SUFFIX append SUFFIX to installed program names
1529 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1530
42ecbf5e
DJ
1531System types:
1532 --build=BUILD configure for building on BUILD [guessed]
1533 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1534 --target=TARGET configure for building compilers for TARGET [HOST]
1535_ACEOF
252b5132 1536fi
252b5132 1537
42ecbf5e 1538if test -n "$ac_init_help"; then
252b5132 1539
42ecbf5e 1540 cat <<\_ACEOF
e5a52504 1541
42ecbf5e 1542Optional Features:
81ecdfbb 1543 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1544 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1545 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1546 --disable-dependency-tracking speeds up one-time build
1547 --enable-dependency-tracking do not reject slow dependency extractors
64ac50ac
RW
1548 --enable-maintainer-mode enable make rules and dependencies not useful
1549 (and sometimes confusing) to the casual installer
ce2cded5
L
1550 --enable-targets alternative target configurations
1551 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
7fb9f789
NC
1552 --enable-got=<type> GOT handling scheme (target, single, negative,
1553 multigot)
ce2cded5
L
1554 --enable-werror treat compile warnings as errors
1555 --enable-build-warnings enable build-time compiler warnings
da2f07f1 1556 --enable-plugins Enable support for plugins (defaults no)
d053aef8 1557 --disable-largefile omit support for large files
81ecdfbb
RW
1558 --enable-shared[=PKGS] build shared libraries [default=yes]
1559 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1560 --enable-fast-install[=PKGS]
1561 optimize for fast installation [default=yes]
42ecbf5e 1562 --disable-libtool-lock avoid locking (might break parallel builds)
42ecbf5e 1563 --disable-nls do not use Native Language Support
42ecbf5e
DJ
1564
1565Optional Packages:
1566 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1567 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
ce2cded5
L
1568 --with-lib-path=dir1:dir2... set default LIB_PATH
1569 --with-sysroot=DIR Search for usr/lib et al within DIR.
d7040cdb
SE
1570 --with-pic try to use only PIC/non-PIC objects [default=use
1571 both]
1572 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
42ecbf5e
DJ
1573
1574Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
81ecdfbb
RW
1579 LIBS libraries to pass to the linker, e.g. -l<library>
1580 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
42ecbf5e 1582 CPP C preprocessor
81ecdfbb
RW
1583 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1584 the first program found out of: `bison -y', `byacc', `yacc'.
1585 YFLAGS The list of arguments that will be passed by default to $YACC.
1586 This script will default YFLAGS to the empty string to avoid a
1587 default value of `-d' given by some make applications.
42ecbf5e
DJ
1588
1589Use these variables to override the choices made by `configure' or to help
1590it to find libraries and programs with nonstandard names/locations.
1591
81ecdfbb 1592Report bugs to the package provider.
42ecbf5e 1593_ACEOF
81ecdfbb 1594ac_status=$?
42ecbf5e
DJ
1595fi
1596
1597if test "$ac_init_help" = "recursive"; then
1598 # If there are subdirs, report their specific --help.
42ecbf5e 1599 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1600 test -d "$ac_dir" ||
1601 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1602 continue
42ecbf5e
DJ
1603 ac_builddir=.
1604
81ecdfbb
RW
1605case "$ac_dir" in
1606.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607*)
1608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614 esac ;;
1615esac
1616ac_abs_top_builddir=$ac_pwd
1617ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618# for backward compatibility:
1619ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
1620
1621case $srcdir in
81ecdfbb 1622 .) # We are building in place.
42ecbf5e 1623 ac_srcdir=.
81ecdfbb
RW
1624 ac_top_srcdir=$ac_top_builddir_sub
1625 ac_abs_top_srcdir=$ac_pwd ;;
1626 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1627 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1628 ac_top_srcdir=$srcdir
1629 ac_abs_top_srcdir=$srcdir ;;
1630 *) # Relative name.
1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 1634esac
81ecdfbb
RW
1635ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636
1637 cd "$ac_dir" || { ac_status=$?; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1645 else
81ecdfbb
RW
1646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 fi || ac_status=$?
1648 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e 1649 done
a2d91340
AC
1650fi
1651
81ecdfbb 1652test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1653if $ac_init_version; then
1654 cat <<\_ACEOF
81ecdfbb
RW
1655configure
1656generated by GNU Autoconf 2.64
a2d91340 1657
81ecdfbb 1658Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
1659This configure script is free software; the Free Software Foundation
1660gives unlimited permission to copy, distribute and modify it.
1661_ACEOF
81ecdfbb 1662 exit
42ecbf5e 1663fi
a2d91340 1664
81ecdfbb
RW
1665## ------------------------ ##
1666## Autoconf initialization. ##
1667## ------------------------ ##
a2d91340 1668
81ecdfbb
RW
1669# ac_fn_c_try_compile LINENO
1670# --------------------------
1671# Try to compile conftest.$ac_ext, and return whether this succeeded.
1672ac_fn_c_try_compile ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext
1676 if { { ac_try="$ac_compile"
1677case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_compile") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest.$ac_objext; then :
1695 ac_retval=0
1696else
1697 $as_echo "$as_me: failed program was:" >&5
1698sed 's/^/| /' conftest.$ac_ext >&5
a2d91340 1699
81ecdfbb
RW
1700 ac_retval=1
1701fi
1702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1703 return $ac_retval
1704
1705} # ac_fn_c_try_compile
1706
1707# ac_fn_c_try_link LINENO
1708# -----------------------
1709# Try to link conftest.$ac_ext, and return whether this succeeded.
1710ac_fn_c_try_link ()
42ecbf5e 1711{
81ecdfbb
RW
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext conftest$ac_exeext
1714 if { { ac_try="$ac_link"
1715case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718esac
1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720$as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1727 fi
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest$ac_exeext && {
1733 test "$cross_compiling" = yes ||
1734 $as_test_x conftest$ac_exeext
1735 }; then :
1736 ac_retval=0
1737else
1738 $as_echo "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1740
81ecdfbb
RW
1741 ac_retval=1
1742fi
1743 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1744 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1745 # interfere with the next link command; also delete a directory that is
1746 # left behind by Apple's compiler. We do this before executing the actions.
1747 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1748 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1749 return $ac_retval
42ecbf5e 1750
81ecdfbb 1751} # ac_fn_c_try_link
42ecbf5e 1752
81ecdfbb
RW
1753# ac_fn_c_try_cpp LINENO
1754# ----------------------
1755# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1756ac_fn_c_try_cpp ()
1757{
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if { { ac_try="$ac_cpp conftest.$ac_ext"
1760case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1767 ac_status=$?
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1772 fi
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } >/dev/null && {
1775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1776 test ! -s conftest.err
1777 }; then :
1778 ac_retval=0
1779else
1780 $as_echo "$as_me: failed program was:" >&5
1781sed 's/^/| /' conftest.$ac_ext >&5
1782
1783 ac_retval=1
1784fi
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786 return $ac_retval
1787
1788} # ac_fn_c_try_cpp
1789
1790# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1791# -------------------------------------------------------
1792# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1793# the include files in INCLUDES and setting the cache variable VAR
1794# accordingly.
1795ac_fn_c_check_header_mongrel ()
1796{
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800$as_echo_n "checking for $2... " >&6; }
1801if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1802 $as_echo_n "(cached) " >&6
1803fi
1804eval ac_res=\$$3
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807else
1808 # Is the header compilable?
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1810$as_echo_n "checking $2 usability... " >&6; }
1811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h. */
1813$4
1814#include <$2>
1815_ACEOF
1816if ac_fn_c_try_compile "$LINENO"; then :
1817 ac_header_compiler=yes
1818else
1819 ac_header_compiler=no
1820fi
1821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1823$as_echo "$ac_header_compiler" >&6; }
1824
1825# Is the header present?
1826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1827$as_echo_n "checking $2 presence... " >&6; }
1828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h. */
1830#include <$2>
1831_ACEOF
1832if ac_fn_c_try_cpp "$LINENO"; then :
1833 ac_header_preproc=yes
1834else
1835 ac_header_preproc=no
1836fi
1837rm -f conftest.err conftest.$ac_ext
1838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1839$as_echo "$ac_header_preproc" >&6; }
1840
1841# So? What about this header?
1842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1843 yes:no: )
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1845$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1847$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1848 ;;
1849 no:yes:* )
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1851$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1853$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1855$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1857$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1859$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1860 ;;
1861esac
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863$as_echo_n "checking for $2... " >&6; }
1864if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1865 $as_echo_n "(cached) " >&6
1866else
1867 eval "$3=\$ac_header_compiler"
1868fi
1869eval ac_res=\$$3
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871$as_echo "$ac_res" >&6; }
1872fi
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874
1875} # ac_fn_c_check_header_mongrel
1876
1877# ac_fn_c_try_run LINENO
1878# ----------------------
1879# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1880# that executables *can* be run.
1881ac_fn_c_try_run ()
1882{
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if { { ac_try="$ac_link"
1885case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888esac
1889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890$as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_link") 2>&5
1892 ac_status=$?
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1895 { { case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898esac
1899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900$as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_try") 2>&5
1902 ac_status=$?
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; }; }; then :
1905 ac_retval=0
1906else
1907 $as_echo "$as_me: program exited with status $ac_status" >&5
1908 $as_echo "$as_me: failed program was:" >&5
1909sed 's/^/| /' conftest.$ac_ext >&5
1910
1911 ac_retval=$ac_status
1912fi
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915 return $ac_retval
1916
1917} # ac_fn_c_try_run
1918
1919# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1920# -------------------------------------------------------
1921# Tests whether HEADER exists and can be compiled using the include files in
1922# INCLUDES, setting the cache variable VAR accordingly.
1923ac_fn_c_check_header_compile ()
1924{
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927$as_echo_n "checking for $2... " >&6; }
1928if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1929 $as_echo_n "(cached) " >&6
1930else
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932/* end confdefs.h. */
1933$4
1934#include <$2>
1935_ACEOF
1936if ac_fn_c_try_compile "$LINENO"; then :
1937 eval "$3=yes"
1938else
1939 eval "$3=no"
1940fi
1941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942fi
1943eval ac_res=\$$3
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945$as_echo "$ac_res" >&6; }
1946 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1947
1948} # ac_fn_c_check_header_compile
1949
1950# ac_fn_c_check_func LINENO FUNC VAR
1951# ----------------------------------
1952# Tests whether FUNC exists, setting the cache variable VAR accordingly
1953ac_fn_c_check_func ()
1954{
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957$as_echo_n "checking for $2... " >&6; }
1958if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1959 $as_echo_n "(cached) " >&6
1960else
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962/* end confdefs.h. */
1963/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1965#define $2 innocuous_$2
1966
1967/* System header to define __stub macros and hopefully few prototypes,
1968 which can conflict with char $2 (); below.
1969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1970 <limits.h> exists even on freestanding compilers. */
1971
1972#ifdef __STDC__
1973# include <limits.h>
1974#else
1975# include <assert.h>
1976#endif
1977
1978#undef $2
1979
1980/* Override any GCC internal prototype to avoid an error.
1981 Use char because int might match the return type of a GCC
1982 builtin and then its argument prototype would still apply. */
1983#ifdef __cplusplus
1984extern "C"
1985#endif
1986char $2 ();
1987/* The GNU C library defines this for functions which it implements
1988 to always fail with ENOSYS. Some functions are actually named
1989 something starting with __ and the normal name is an alias. */
1990#if defined __stub_$2 || defined __stub___$2
1991choke me
1992#endif
1993
1994int
1995main ()
1996{
1997return $2 ();
1998 ;
1999 return 0;
2000}
2001_ACEOF
2002if ac_fn_c_try_link "$LINENO"; then :
2003 eval "$3=yes"
2004else
2005 eval "$3=no"
2006fi
2007rm -f core conftest.err conftest.$ac_objext \
2008 conftest$ac_exeext conftest.$ac_ext
2009fi
2010eval ac_res=\$$3
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012$as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2014
2015} # ac_fn_c_check_func
2016
2017# ac_fn_c_check_decl LINENO SYMBOL VAR
2018# ------------------------------------
2019# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2020ac_fn_c_check_decl ()
2021{
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2024$as_echo_n "checking whether $2 is declared... " >&6; }
2025if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2026 $as_echo_n "(cached) " >&6
2027else
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029/* end confdefs.h. */
2030$4
2031int
2032main ()
2033{
2034#ifndef $2
2035 (void) $2;
2036#endif
2037
2038 ;
2039 return 0;
2040}
2041_ACEOF
2042if ac_fn_c_try_compile "$LINENO"; then :
2043 eval "$3=yes"
2044else
2045 eval "$3=no"
2046fi
2047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048fi
2049eval ac_res=\$$3
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051$as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2053
2054} # ac_fn_c_check_decl
2055
2056# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2057# --------------------------------------------
2058# Tries to find the compile-time value of EXPR in a program that includes
2059# INCLUDES, setting VAR accordingly. Returns whether the value could be
2060# computed
2061ac_fn_c_compute_int ()
2062{
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 if test "$cross_compiling" = yes; then
2065 # Depending upon the size, compute the lo and hi bounds.
2066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067/* end confdefs.h. */
2068$4
2069int
2070main ()
2071{
2072static int test_array [1 - 2 * !(($2) >= 0)];
2073test_array [0] = 0
2074
2075 ;
2076 return 0;
2077}
2078_ACEOF
2079if ac_fn_c_try_compile "$LINENO"; then :
2080 ac_lo=0 ac_mid=0
2081 while :; do
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083/* end confdefs.h. */
2084$4
2085int
2086main ()
2087{
2088static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2089test_array [0] = 0
2090
2091 ;
2092 return 0;
2093}
2094_ACEOF
2095if ac_fn_c_try_compile "$LINENO"; then :
2096 ac_hi=$ac_mid; break
2097else
2098 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2099 if test $ac_lo -le $ac_mid; then
2100 ac_lo= ac_hi=
2101 break
2102 fi
2103 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2104fi
2105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 done
2107else
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109/* end confdefs.h. */
2110$4
2111int
2112main ()
2113{
2114static int test_array [1 - 2 * !(($2) < 0)];
2115test_array [0] = 0
2116
2117 ;
2118 return 0;
2119}
2120_ACEOF
2121if ac_fn_c_try_compile "$LINENO"; then :
2122 ac_hi=-1 ac_mid=-1
2123 while :; do
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125/* end confdefs.h. */
2126$4
2127int
2128main ()
2129{
2130static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2131test_array [0] = 0
2132
2133 ;
2134 return 0;
2135}
2136_ACEOF
2137if ac_fn_c_try_compile "$LINENO"; then :
2138 ac_lo=$ac_mid; break
2139else
2140 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2141 if test $ac_mid -le $ac_hi; then
2142 ac_lo= ac_hi=
2143 break
2144 fi
2145 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2146fi
2147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 done
2149else
2150 ac_lo= ac_hi=
2151fi
2152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153fi
2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155# Binary search between lo and hi bounds.
2156while test "x$ac_lo" != "x$ac_hi"; do
2157 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159/* end confdefs.h. */
2160$4
2161int
2162main ()
2163{
2164static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2165test_array [0] = 0
2166
2167 ;
2168 return 0;
2169}
2170_ACEOF
2171if ac_fn_c_try_compile "$LINENO"; then :
2172 ac_hi=$ac_mid
2173else
2174 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2175fi
2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177done
2178case $ac_lo in #((
2179?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2180'') ac_retval=1 ;;
2181esac
2182 else
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184/* end confdefs.h. */
2185$4
2186static long int longval () { return $2; }
2187static unsigned long int ulongval () { return $2; }
2188#include <stdio.h>
2189#include <stdlib.h>
2190int
2191main ()
2192{
2193
2194 FILE *f = fopen ("conftest.val", "w");
2195 if (! f)
2196 return 1;
2197 if (($2) < 0)
2198 {
2199 long int i = longval ();
2200 if (i != ($2))
2201 return 1;
2202 fprintf (f, "%ld", i);
2203 }
2204 else
2205 {
2206 unsigned long int i = ulongval ();
2207 if (i != ($2))
2208 return 1;
2209 fprintf (f, "%lu", i);
2210 }
2211 /* Do not output a trailing newline, as this causes \r\n confusion
2212 on some platforms. */
2213 return ferror (f) || fclose (f) != 0;
2214
2215 ;
2216 return 0;
2217}
2218_ACEOF
2219if ac_fn_c_try_run "$LINENO"; then :
2220 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2221else
2222 ac_retval=1
2223fi
2224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2225 conftest.$ac_objext conftest.beam conftest.$ac_ext
2226rm -f conftest.val
2227
2228 fi
2229 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2230 return $ac_retval
2231
2232} # ac_fn_c_compute_int
2233cat >config.log <<_ACEOF
2234This file contains any messages produced by compilers while
2235running configure, to aid debugging if configure makes a mistake.
2236
2237It was created by $as_me, which was
2238generated by GNU Autoconf 2.64. Invocation command line was
2239
2240 $ $0 $@
2241
2242_ACEOF
2243exec 5>>config.log
2244{
2245cat <<_ASUNAME
2246## --------- ##
2247## Platform. ##
2248## --------- ##
2249
2250hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2251uname -m = `(uname -m) 2>/dev/null || echo unknown`
2252uname -r = `(uname -r) 2>/dev/null || echo unknown`
2253uname -s = `(uname -s) 2>/dev/null || echo unknown`
2254uname -v = `(uname -v) 2>/dev/null || echo unknown`
2255
2256/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2257/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2258
2259/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2260/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2261/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2262/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2263/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2264/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2265/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2266
2267_ASUNAME
2268
2269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270for as_dir in $PATH
2271do
2272 IFS=$as_save_IFS
2273 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2274 $as_echo "PATH: $as_dir"
2275 done
2276IFS=$as_save_IFS
252b5132 2277
42ecbf5e 2278} >&5
5d64ca4e 2279
42ecbf5e 2280cat >&5 <<_ACEOF
5d64ca4e 2281
5d64ca4e 2282
42ecbf5e
DJ
2283## ----------- ##
2284## Core tests. ##
2285## ----------- ##
5d64ca4e 2286
42ecbf5e 2287_ACEOF
2469cfa2 2288
42ecbf5e
DJ
2289
2290# Keep a trace of the command line.
2291# Strip out --no-create and --no-recursion so they do not pile up.
2292# Strip out --silent because we don't want to record it for future runs.
2293# Also quote any args containing shell meta-characters.
2294# Make two passes to allow for proper duplicate-argument suppression.
2295ac_configure_args=
2296ac_configure_args0=
2297ac_configure_args1=
42ecbf5e
DJ
2298ac_must_keep_next=false
2299for ac_pass in 1 2
2300do
2301 for ac_arg
2302 do
2303 case $ac_arg in
2304 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2306 | -silent | --silent | --silen | --sile | --sil)
2307 continue ;;
81ecdfbb
RW
2308 *\'*)
2309 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2310 esac
2311 case $ac_pass in
81ecdfbb 2312 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2313 2)
81ecdfbb 2314 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2315 if test $ac_must_keep_next = true; then
2316 ac_must_keep_next=false # Got value, back to normal.
2317 else
2318 case $ac_arg in
2319 *=* | --config-cache | -C | -disable-* | --disable-* \
2320 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2321 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2322 | -with-* | --with-* | -without-* | --without-* | --x)
2323 case "$ac_configure_args0 " in
2324 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2325 esac
2326 ;;
2327 -* ) ac_must_keep_next=true ;;
2328 esac
2329 fi
81ecdfbb 2330 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2331 ;;
2332 esac
2333 done
2334done
81ecdfbb
RW
2335{ ac_configure_args0=; unset ac_configure_args0;}
2336{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2337
2338# When interrupted or exit'd, cleanup temporary files, and complete
2339# config.log. We remove comments because anyway the quotes in there
2340# would cause problems or look ugly.
81ecdfbb
RW
2341# WARNING: Use '\'' to represent an apostrophe within the trap.
2342# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2343trap 'exit_status=$?
2344 # Save into config.log some information that might help in debugging.
2345 {
2346 echo
2347
2348 cat <<\_ASBOX
2349## ---------------- ##
2350## Cache variables. ##
2351## ---------------- ##
2352_ASBOX
2353 echo
2354 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2355(
2356 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2357 eval ac_val=\$$ac_var
2358 case $ac_val in #(
2359 *${as_nl}*)
2360 case $ac_var in #(
2361 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2362$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2363 esac
2364 case $ac_var in #(
2365 _ | IFS | as_nl) ;; #(
2366 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2367 *) { eval $ac_var=; unset $ac_var;} ;;
2368 esac ;;
2369 esac
2370 done
42ecbf5e 2371 (set) 2>&1 |
81ecdfbb
RW
2372 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2373 *${as_nl}ac_space=\ *)
42ecbf5e 2374 sed -n \
81ecdfbb
RW
2375 "s/'\''/'\''\\\\'\'''\''/g;
2376 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2377 ;; #(
42ecbf5e 2378 *)
81ecdfbb 2379 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2380 ;;
81ecdfbb
RW
2381 esac |
2382 sort
2383)
42ecbf5e
DJ
2384 echo
2385
2386 cat <<\_ASBOX
2387## ----------------- ##
2388## Output variables. ##
2389## ----------------- ##
2390_ASBOX
2391 echo
2392 for ac_var in $ac_subst_vars
2393 do
81ecdfbb
RW
2394 eval ac_val=\$$ac_var
2395 case $ac_val in
2396 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2397 esac
2398 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2399 done | sort
2400 echo
2401
2402 if test -n "$ac_subst_files"; then
2403 cat <<\_ASBOX
81ecdfbb
RW
2404## ------------------- ##
2405## File substitutions. ##
2406## ------------------- ##
42ecbf5e
DJ
2407_ASBOX
2408 echo
2409 for ac_var in $ac_subst_files
2410 do
81ecdfbb
RW
2411 eval ac_val=\$$ac_var
2412 case $ac_val in
2413 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2414 esac
2415 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2416 done | sort
2417 echo
2418 fi
2419
2420 if test -s confdefs.h; then
2421 cat <<\_ASBOX
2422## ----------- ##
2423## confdefs.h. ##
2424## ----------- ##
2425_ASBOX
2426 echo
81ecdfbb 2427 cat confdefs.h
42ecbf5e
DJ
2428 echo
2429 fi
2430 test "$ac_signal" != 0 &&
81ecdfbb
RW
2431 $as_echo "$as_me: caught signal $ac_signal"
2432 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2433 } >&5
81ecdfbb
RW
2434 rm -f core *.core core.conftest.* &&
2435 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2436 exit $exit_status
81ecdfbb 2437' 0
42ecbf5e 2438for ac_signal in 1 2 13 15; do
81ecdfbb 2439 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2440done
2441ac_signal=0
2442
2443# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2444rm -f -r conftest* confdefs.h
2445
2446$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2447
2448# Predefined preprocessor variables.
2449
2450cat >>confdefs.h <<_ACEOF
2451#define PACKAGE_NAME "$PACKAGE_NAME"
2452_ACEOF
2453
42ecbf5e
DJ
2454cat >>confdefs.h <<_ACEOF
2455#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2456_ACEOF
2457
42ecbf5e
DJ
2458cat >>confdefs.h <<_ACEOF
2459#define PACKAGE_VERSION "$PACKAGE_VERSION"
2460_ACEOF
2461
42ecbf5e
DJ
2462cat >>confdefs.h <<_ACEOF
2463#define PACKAGE_STRING "$PACKAGE_STRING"
2464_ACEOF
2465
42ecbf5e
DJ
2466cat >>confdefs.h <<_ACEOF
2467#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2468_ACEOF
2469
81ecdfbb
RW
2470cat >>confdefs.h <<_ACEOF
2471#define PACKAGE_URL "$PACKAGE_URL"
2472_ACEOF
2473
42ecbf5e
DJ
2474
2475# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2476# Prefer an explicitly selected file to automatically selected ones.
2477ac_site_file1=NONE
2478ac_site_file2=NONE
2479if test -n "$CONFIG_SITE"; then
2480 ac_site_file1=$CONFIG_SITE
2481elif test "x$prefix" != xNONE; then
2482 ac_site_file1=$prefix/share/config.site
2483 ac_site_file2=$prefix/etc/config.site
2484else
2485 ac_site_file1=$ac_default_prefix/share/config.site
2486 ac_site_file2=$ac_default_prefix/etc/config.site
2487fi
2488for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2489do
2490 test "x$ac_site_file" = xNONE && continue
42ecbf5e 2491 if test -r "$ac_site_file"; then
81ecdfbb
RW
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2493$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e
DJ
2494 sed 's/^/| /' "$ac_site_file" >&5
2495 . "$ac_site_file"
2496 fi
2497done
2498
2499if test -r "$cache_file"; then
2500 # Some versions of bash will fail to source /dev/null (special
2501 # files actually), so we avoid doing that.
2502 if test -f "$cache_file"; then
81ecdfbb
RW
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2504$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2505 case $cache_file in
81ecdfbb
RW
2506 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2507 *) . "./$cache_file";;
42ecbf5e
DJ
2508 esac
2509 fi
2510else
81ecdfbb
RW
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2512$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2513 >$cache_file
2514fi
2515
2516# Check that the precious variables saved in the cache have kept the same
2517# value.
2518ac_cache_corrupted=false
81ecdfbb 2519for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2520 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2521 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2522 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2523 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2524 case $ac_old_set,$ac_new_set in
2525 set,)
81ecdfbb
RW
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2527$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2528 ac_cache_corrupted=: ;;
2529 ,set)
81ecdfbb
RW
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2531$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2532 ac_cache_corrupted=: ;;
2533 ,);;
2534 *)
2535 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2536 # differences in whitespace do not lead to failure.
2537 ac_old_val_w=`echo x $ac_old_val`
2538 ac_new_val_w=`echo x $ac_new_val`
2539 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2541$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2542 ac_cache_corrupted=:
2543 else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2545$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2546 eval $ac_var=\$ac_old_val
2547 fi
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2549$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2551$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2552 fi;;
2553 esac
2554 # Pass precious variables to config.status.
2555 if test "$ac_new_set" = set; then
2556 case $ac_new_val in
81ecdfbb 2557 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2558 *) ac_arg=$ac_var=$ac_new_val ;;
2559 esac
2560 case " $ac_configure_args " in
2561 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2562 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2563 esac
2564 fi
2565done
2566if $ac_cache_corrupted; then
81ecdfbb
RW
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2570$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2571 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2572fi
81ecdfbb
RW
2573## -------------------- ##
2574## Main body of script. ##
2575## -------------------- ##
42ecbf5e
DJ
2576
2577ac_ext=c
2578ac_cpp='$CPP $CPPFLAGS'
2579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582
2583
2584
42ecbf5e 2585
da594c4a 2586
42ecbf5e
DJ
2587
2588
2589ac_aux_dir=
81ecdfbb
RW
2590for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2591 for ac_t in install-sh install.sh shtool; do
2592 if test -f "$ac_dir/$ac_t"; then
2593 ac_aux_dir=$ac_dir
2594 ac_install_sh="$ac_aux_dir/$ac_t -c"
2595 break 2
2596 fi
2597 done
42ecbf5e
DJ
2598done
2599if test -z "$ac_aux_dir"; then
81ecdfbb 2600 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2601fi
81ecdfbb
RW
2602
2603# These three variables are undocumented and unsupported,
2604# and are intended to be withdrawn in a future Autoconf release.
2605# They can cause serious problems if a builder's source tree is in a directory
2606# whose full name contains unusual characters.
2607ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2608ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2609ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2610
42ecbf5e
DJ
2611
2612# Make sure we can run config.sub.
81ecdfbb
RW
2613$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2614 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2615
2616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2617$as_echo_n "checking build system type... " >&6; }
2618if test "${ac_cv_build+set}" = set; then :
2619 $as_echo_n "(cached) " >&6
2620else
2621 ac_build_alias=$build_alias
2622test "x$ac_build_alias" = x &&
2623 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2624test "x$ac_build_alias" = x &&
2625 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2626ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2627 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2628
2629fi
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2631$as_echo "$ac_cv_build" >&6; }
2632case $ac_cv_build in
2633*-*-*) ;;
2634*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2635esac
42ecbf5e 2636build=$ac_cv_build
81ecdfbb
RW
2637ac_save_IFS=$IFS; IFS='-'
2638set x $ac_cv_build
2639shift
2640build_cpu=$1
2641build_vendor=$2
2642shift; shift
2643# Remember, the first character of IFS is used to create $*,
2644# except with old shells:
2645build_os=$*
2646IFS=$ac_save_IFS
2647case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2648
2649
81ecdfbb
RW
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2651$as_echo_n "checking host system type... " >&6; }
2652if test "${ac_cv_host+set}" = set; then :
2653 $as_echo_n "(cached) " >&6
2654else
2655 if test "x$host_alias" = x; then
2656 ac_cv_host=$ac_cv_build
42ecbf5e 2657else
81ecdfbb
RW
2658 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2659 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2660fi
42ecbf5e
DJ
2661
2662fi
81ecdfbb
RW
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2664$as_echo "$ac_cv_host" >&6; }
2665case $ac_cv_host in
2666*-*-*) ;;
2667*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2668esac
42ecbf5e 2669host=$ac_cv_host
81ecdfbb
RW
2670ac_save_IFS=$IFS; IFS='-'
2671set x $ac_cv_host
2672shift
2673host_cpu=$1
2674host_vendor=$2
2675shift; shift
2676# Remember, the first character of IFS is used to create $*,
2677# except with old shells:
2678host_os=$*
2679IFS=$ac_save_IFS
2680case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2681
2682
81ecdfbb
RW
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2684$as_echo_n "checking target system type... " >&6; }
2685if test "${ac_cv_target+set}" = set; then :
2686 $as_echo_n "(cached) " >&6
42ecbf5e 2687else
81ecdfbb
RW
2688 if test "x$target_alias" = x; then
2689 ac_cv_target=$ac_cv_host
2690else
2691 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2692 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2693fi
42ecbf5e
DJ
2694
2695fi
81ecdfbb
RW
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2697$as_echo "$ac_cv_target" >&6; }
2698case $ac_cv_target in
2699*-*-*) ;;
2700*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2701esac
42ecbf5e 2702target=$ac_cv_target
81ecdfbb
RW
2703ac_save_IFS=$IFS; IFS='-'
2704set x $ac_cv_target
2705shift
2706target_cpu=$1
2707target_vendor=$2
2708shift; shift
2709# Remember, the first character of IFS is used to create $*,
2710# except with old shells:
2711target_os=$*
2712IFS=$ac_save_IFS
2713case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2714
2715
2716# The aliases save the names the user supplied, while $host etc.
2717# will get canonicalized.
2718test -n "$target_alias" &&
2719 test "$program_prefix$program_suffix$program_transform_name" = \
2720 NONENONEs,x,x, &&
2721 program_prefix=${target_alias}-
2722ac_ext=c
2723ac_cpp='$CPP $CPPFLAGS'
2724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726ac_compiler_gnu=$ac_cv_c_compiler_gnu
2727if test -n "$ac_tool_prefix"; then
2728 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2729set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731$as_echo_n "checking for $ac_word... " >&6; }
2732if test "${ac_cv_prog_CC+set}" = set; then :
2733 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2734else
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC="$CC" # Let the user override the test.
2737else
2738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739for as_dir in $PATH
2740do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2745 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2747 break 2
2748 fi
2749done
81ecdfbb
RW
2750 done
2751IFS=$as_save_IFS
42ecbf5e
DJ
2752
2753fi
2754fi
2755CC=$ac_cv_prog_CC
2756if test -n "$CC"; then
81ecdfbb
RW
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2758$as_echo "$CC" >&6; }
42ecbf5e 2759else
81ecdfbb
RW
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761$as_echo "no" >&6; }
42ecbf5e
DJ
2762fi
2763
81ecdfbb 2764
42ecbf5e
DJ
2765fi
2766if test -z "$ac_cv_prog_CC"; then
2767 ac_ct_CC=$CC
2768 # Extract the first word of "gcc", so it can be a program name with args.
2769set dummy gcc; ac_word=$2
81ecdfbb
RW
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771$as_echo_n "checking for $ac_word... " >&6; }
2772if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2773 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2774else
2775 if test -n "$ac_ct_CC"; then
2776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2777else
2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH
2780do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2785 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2787 break 2
2788 fi
2789done
81ecdfbb
RW
2790 done
2791IFS=$as_save_IFS
42ecbf5e
DJ
2792
2793fi
2794fi
2795ac_ct_CC=$ac_cv_prog_ac_ct_CC
2796if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2798$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2799else
81ecdfbb
RW
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801$as_echo "no" >&6; }
42ecbf5e
DJ
2802fi
2803
81ecdfbb
RW
2804 if test "x$ac_ct_CC" = x; then
2805 CC=""
2806 else
2807 case $cross_compiling:$ac_tool_warned in
2808yes:)
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2811ac_tool_warned=yes ;;
2812esac
2813 CC=$ac_ct_CC
2814 fi
42ecbf5e
DJ
2815else
2816 CC="$ac_cv_prog_CC"
2817fi
2818
2819if test -z "$CC"; then
81ecdfbb
RW
2820 if test -n "$ac_tool_prefix"; then
2821 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
42ecbf5e 2822set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824$as_echo_n "checking for $ac_word... " >&6; }
2825if test "${ac_cv_prog_CC+set}" = set; then :
2826 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2827else
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2830else
2831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832for as_dir in $PATH
2833do
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2838 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2840 break 2
2841 fi
2842done
81ecdfbb
RW
2843 done
2844IFS=$as_save_IFS
42ecbf5e
DJ
2845
2846fi
2847fi
2848CC=$ac_cv_prog_CC
2849if test -n "$CC"; then
81ecdfbb
RW
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2851$as_echo "$CC" >&6; }
42ecbf5e 2852else
81ecdfbb
RW
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854$as_echo "no" >&6; }
42ecbf5e
DJ
2855fi
2856
42ecbf5e 2857
81ecdfbb 2858 fi
42ecbf5e
DJ
2859fi
2860if test -z "$CC"; then
2861 # Extract the first word of "cc", so it can be a program name with args.
2862set dummy cc; ac_word=$2
81ecdfbb
RW
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864$as_echo_n "checking for $ac_word... " >&6; }
2865if test "${ac_cv_prog_CC+set}" = set; then :
2866 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2867else
2868 if test -n "$CC"; then
2869 ac_cv_prog_CC="$CC" # Let the user override the test.
2870else
2871 ac_prog_rejected=no
2872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873for as_dir in $PATH
2874do
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e
DJ
2879 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2880 ac_prog_rejected=yes
2881 continue
2882 fi
2883 ac_cv_prog_CC="cc"
81ecdfbb 2884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2885 break 2
2886 fi
2887done
81ecdfbb
RW
2888 done
2889IFS=$as_save_IFS
42ecbf5e
DJ
2890
2891if test $ac_prog_rejected = yes; then
2892 # We found a bogon in the path, so make sure we never use it.
2893 set dummy $ac_cv_prog_CC
2894 shift
2895 if test $# != 0; then
2896 # We chose a different compiler from the bogus one.
2897 # However, it has the same basename, so the bogon will be chosen
2898 # first if we set CC to just the basename; use the full file name.
2899 shift
2900 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2901 fi
2902fi
2903fi
2904fi
2905CC=$ac_cv_prog_CC
2906if test -n "$CC"; then
81ecdfbb
RW
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2908$as_echo "$CC" >&6; }
42ecbf5e 2909else
81ecdfbb
RW
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911$as_echo "no" >&6; }
42ecbf5e
DJ
2912fi
2913
81ecdfbb 2914
42ecbf5e
DJ
2915fi
2916if test -z "$CC"; then
2917 if test -n "$ac_tool_prefix"; then
81ecdfbb 2918 for ac_prog in cl.exe
42ecbf5e
DJ
2919 do
2920 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2921set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923$as_echo_n "checking for $ac_word... " >&6; }
2924if test "${ac_cv_prog_CC+set}" = set; then :
2925 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2926else
2927 if test -n "$CC"; then
2928 ac_cv_prog_CC="$CC" # Let the user override the test.
2929else
2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931for as_dir in $PATH
2932do
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2937 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2939 break 2
2940 fi
2941done
81ecdfbb
RW
2942 done
2943IFS=$as_save_IFS
42ecbf5e
DJ
2944
2945fi
2946fi
2947CC=$ac_cv_prog_CC
2948if test -n "$CC"; then
81ecdfbb
RW
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2950$as_echo "$CC" >&6; }
42ecbf5e 2951else
81ecdfbb
RW
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953$as_echo "no" >&6; }
42ecbf5e
DJ
2954fi
2955
81ecdfbb 2956
42ecbf5e
DJ
2957 test -n "$CC" && break
2958 done
2959fi
2960if test -z "$CC"; then
2961 ac_ct_CC=$CC
81ecdfbb 2962 for ac_prog in cl.exe
42ecbf5e
DJ
2963do
2964 # Extract the first word of "$ac_prog", so it can be a program name with args.
2965set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2967$as_echo_n "checking for $ac_word... " >&6; }
2968if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2969 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2970else
2971 if test -n "$ac_ct_CC"; then
2972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2973else
2974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975for as_dir in $PATH
2976do
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2981 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2983 break 2
2984 fi
2985done
81ecdfbb
RW
2986 done
2987IFS=$as_save_IFS
42ecbf5e
DJ
2988
2989fi
2990fi
2991ac_ct_CC=$ac_cv_prog_ac_ct_CC
2992if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2994$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2995else
81ecdfbb
RW
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997$as_echo "no" >&6; }
42ecbf5e
DJ
2998fi
2999
81ecdfbb 3000
42ecbf5e
DJ
3001 test -n "$ac_ct_CC" && break
3002done
3003
81ecdfbb
RW
3004 if test "x$ac_ct_CC" = x; then
3005 CC=""
3006 else
3007 case $cross_compiling:$ac_tool_warned in
3008yes:)
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3011ac_tool_warned=yes ;;
3012esac
3013 CC=$ac_ct_CC
3014 fi
42ecbf5e
DJ
3015fi
3016
3017fi
3018
3019
81ecdfbb
RW
3020test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022as_fn_error "no acceptable C compiler found in \$PATH
3023See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3024
3025# Provide some information about the compiler.
81ecdfbb
RW
3026$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3027set X $ac_compile
3028ac_compiler=$2
3029for ac_option in --version -v -V -qversion; do
3030 { { ac_try="$ac_compiler $ac_option >&5"
3031case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034esac
3035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3036$as_echo "$ac_try_echo"; } >&5
3037 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
42ecbf5e 3038 ac_status=$?
81ecdfbb
RW
3039 if test -s conftest.err; then
3040 sed '10a\
3041... rest of stderr output deleted ...
3042 10q' conftest.err >conftest.er1
3043 cat conftest.er1 >&5
3044 rm -f conftest.er1 conftest.err
3045 fi
3046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3047 test $ac_status = 0; }
3048done
42ecbf5e 3049
81ecdfbb 3050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3051/* end confdefs.h. */
3052
3053int
3054main ()
3055{
3056
3057 ;
3058 return 0;
3059}
3060_ACEOF
3061ac_clean_files_save=$ac_clean_files
81ecdfbb 3062ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
42ecbf5e
DJ
3063# Try to create an executable without -o first, disregard a.out.
3064# It will help us diagnose broken compilers, and finding out an intuition
3065# of exeext.
81ecdfbb
RW
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3067$as_echo_n "checking for C compiler default output file name... " >&6; }
3068ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3069
3070# The possible output files:
3071ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3072
3073ac_rmfiles=
3074for ac_file in $ac_files
3075do
3076 case $ac_file in
3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3078 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3079 esac
3080done
3081rm -f $ac_rmfiles
3082
3083if { { ac_try="$ac_link_default"
3084case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087esac
3088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3089$as_echo "$ac_try_echo"; } >&5
3090 (eval "$ac_link_default") 2>&5
3091 ac_status=$?
3092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3093 test $ac_status = 0; }; then :
3094 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3095# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3096# in a Makefile. We should not override ac_cv_exeext if it was cached,
3097# so that the user can short-circuit this test for compilers unknown to
3098# Autoconf.
3099for ac_file in $ac_files ''
42ecbf5e
DJ
3100do
3101 test -f "$ac_file" || continue
3102 case $ac_file in
81ecdfbb 3103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
42ecbf5e
DJ
3104 ;;
3105 [ab].out )
3106 # We found the default executable, but exeext='' is most
3107 # certainly right.
3108 break;;
3109 *.* )
81ecdfbb
RW
3110 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3111 then :; else
3112 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3113 fi
3114 # We set ac_cv_exeext here because the later test for it is not
3115 # safe: cross compilers may not add the suffix if given an `-o'
3116 # argument, so we may need to know it at that point already.
3117 # Even if this section looks crufty: it has the advantage of
3118 # actually working.
42ecbf5e
DJ
3119 break;;
3120 * )
3121 break;;
3122 esac
3123done
81ecdfbb
RW
3124test "$ac_cv_exeext" = no && ac_cv_exeext=
3125
42ecbf5e 3126else
81ecdfbb
RW
3127 ac_file=''
3128fi
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3130$as_echo "$ac_file" >&6; }
3131if test -z "$ac_file"; then :
3132 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3133sed 's/^/| /' conftest.$ac_ext >&5
3134
81ecdfbb
RW
3135{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137{ as_fn_set_status 77
3138as_fn_error "C compiler cannot create executables
3139See \`config.log' for more details." "$LINENO" 5; }; }
42ecbf5e 3140fi
42ecbf5e 3141ac_exeext=$ac_cv_exeext
42ecbf5e 3142
81ecdfbb 3143# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3144# the compiler is broken, or we cross compile.
81ecdfbb
RW
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3146$as_echo_n "checking whether the C compiler works... " >&6; }
42ecbf5e
DJ
3147# If not cross compiling, check that we can run a simple program.
3148if test "$cross_compiling" != yes; then
3149 if { ac_try='./$ac_file'
81ecdfbb
RW
3150 { { case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
3154eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3155$as_echo "$ac_try_echo"; } >&5
3156 (eval "$ac_try") 2>&5
42ecbf5e 3157 ac_status=$?
81ecdfbb
RW
3158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3159 test $ac_status = 0; }; }; then
42ecbf5e
DJ
3160 cross_compiling=no
3161 else
3162 if test "$cross_compiling" = maybe; then
3163 cross_compiling=yes
3164 else
81ecdfbb
RW
3165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3167as_fn_error "cannot run C compiled programs.
42ecbf5e 3168If you meant to cross compile, use \`--host'.
81ecdfbb 3169See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3170 fi
3171 fi
3172fi
81ecdfbb
RW
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3174$as_echo "yes" >&6; }
42ecbf5e 3175
81ecdfbb 3176rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
42ecbf5e 3177ac_clean_files=$ac_clean_files_save
81ecdfbb 3178# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3179# the compiler is broken, or we cross compile.
81ecdfbb
RW
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3181$as_echo_n "checking whether we are cross compiling... " >&6; }
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3183$as_echo "$cross_compiling" >&6; }
3184
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3186$as_echo_n "checking for suffix of executables... " >&6; }
3187if { { ac_try="$ac_link"
3188case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191esac
3192eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193$as_echo "$ac_try_echo"; } >&5
3194 (eval "$ac_link") 2>&5
42ecbf5e 3195 ac_status=$?
81ecdfbb
RW
3196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3197 test $ac_status = 0; }; then :
42ecbf5e
DJ
3198 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3199# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3200# work properly (i.e., refer to `conftest.exe'), while it won't with
3201# `rm'.
3202for ac_file in conftest.exe conftest conftest.*; do
3203 test -f "$ac_file" || continue
3204 case $ac_file in
81ecdfbb 3205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
42ecbf5e 3206 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
42ecbf5e
DJ
3207 break;;
3208 * ) break;;
3209 esac
3210done
3211else
81ecdfbb
RW
3212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214as_fn_error "cannot compute suffix of executables: cannot compile and link
3215See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3216fi
42ecbf5e 3217rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3219$as_echo "$ac_cv_exeext" >&6; }
42ecbf5e
DJ
3220
3221rm -f conftest.$ac_ext
3222EXEEXT=$ac_cv_exeext
3223ac_exeext=$EXEEXT
81ecdfbb
RW
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3225$as_echo_n "checking for suffix of object files... " >&6; }
3226if test "${ac_cv_objext+set}" = set; then :
3227 $as_echo_n "(cached) " >&6
42ecbf5e 3228else
81ecdfbb 3229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3230/* end confdefs.h. */
3231
3232int
3233main ()
3234{
3235
3236 ;
3237 return 0;
3238}
3239_ACEOF
3240rm -f conftest.o conftest.obj
81ecdfbb
RW
3241if { { ac_try="$ac_compile"
3242case "(($ac_try" in
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3245esac
3246eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247$as_echo "$ac_try_echo"; } >&5
3248 (eval "$ac_compile") 2>&5
3249 ac_status=$?
3250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3251 test $ac_status = 0; }; then :
3252 for ac_file in conftest.o conftest.obj conftest.*; do
3253 test -f "$ac_file" || continue;
42ecbf5e 3254 case $ac_file in
81ecdfbb 3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
42ecbf5e
DJ
3256 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3257 break;;
3258 esac
3259done
3260else
81ecdfbb 3261 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3262sed 's/^/| /' conftest.$ac_ext >&5
3263
81ecdfbb
RW
3264{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266as_fn_error "cannot compute suffix of object files: cannot compile
3267See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3268fi
42ecbf5e
DJ
3269rm -f conftest.$ac_cv_objext conftest.$ac_ext
3270fi
81ecdfbb
RW
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3272$as_echo "$ac_cv_objext" >&6; }
42ecbf5e
DJ
3273OBJEXT=$ac_cv_objext
3274ac_objext=$OBJEXT
81ecdfbb
RW
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3276$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3277if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3278 $as_echo_n "(cached) " >&6
42ecbf5e 3279else
81ecdfbb 3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3281/* end confdefs.h. */
3282
3283int
3284main ()
3285{
3286#ifndef __GNUC__
3287 choke me
3288#endif
3289
3290 ;
3291 return 0;
3292}
3293_ACEOF
81ecdfbb 3294if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3295 ac_compiler_gnu=yes
3296else
81ecdfbb 3297 ac_compiler_gnu=no
42ecbf5e 3298fi
81ecdfbb 3299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
3300ac_cv_c_compiler_gnu=$ac_compiler_gnu
3301
3302fi
81ecdfbb
RW
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3304$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3305if test $ac_compiler_gnu = yes; then
3306 GCC=yes
3307else
3308 GCC=
3309fi
42ecbf5e
DJ
3310ac_test_CFLAGS=${CFLAGS+set}
3311ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3313$as_echo_n "checking whether $CC accepts -g... " >&6; }
3314if test "${ac_cv_prog_cc_g+set}" = set; then :
3315 $as_echo_n "(cached) " >&6
3316else
3317 ac_save_c_werror_flag=$ac_c_werror_flag
3318 ac_c_werror_flag=yes
3319 ac_cv_prog_cc_g=no
3320 CFLAGS="-g"
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3322/* end confdefs.h. */
3323
3324int
3325main ()
3326{
3327
3328 ;
3329 return 0;
3330}
3331_ACEOF
81ecdfbb 3332if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3333 ac_cv_prog_cc_g=yes
3334else
81ecdfbb
RW
3335 CFLAGS=""
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337/* end confdefs.h. */
3338
3339int
3340main ()
3341{
3342
3343 ;
3344 return 0;
3345}
3346_ACEOF
3347if ac_fn_c_try_compile "$LINENO"; then :
3348
3349else
3350 ac_c_werror_flag=$ac_save_c_werror_flag
3351 CFLAGS="-g"
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353/* end confdefs.h. */
3354
3355int
3356main ()
3357{
42ecbf5e 3358
81ecdfbb
RW
3359 ;
3360 return 0;
3361}
3362_ACEOF
3363if ac_fn_c_try_compile "$LINENO"; then :
3364 ac_cv_prog_cc_g=yes
3365fi
3366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367fi
3368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3369fi
81ecdfbb
RW
3370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 ac_c_werror_flag=$ac_save_c_werror_flag
42ecbf5e 3372fi
81ecdfbb
RW
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3374$as_echo "$ac_cv_prog_cc_g" >&6; }
42ecbf5e
DJ
3375if test "$ac_test_CFLAGS" = set; then
3376 CFLAGS=$ac_save_CFLAGS
3377elif test $ac_cv_prog_cc_g = yes; then
3378 if test "$GCC" = yes; then
3379 CFLAGS="-g -O2"
3380 else
3381 CFLAGS="-g"
3382 fi
3383else
3384 if test "$GCC" = yes; then
3385 CFLAGS="-O2"
3386 else
3387 CFLAGS=
3388 fi
3389fi
81ecdfbb
RW
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3391$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3392if test "${ac_cv_prog_cc_c89+set}" = set; then :
3393 $as_echo_n "(cached) " >&6
42ecbf5e 3394else
81ecdfbb 3395 ac_cv_prog_cc_c89=no
42ecbf5e 3396ac_save_CC=$CC
81ecdfbb 3397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3398/* end confdefs.h. */
3399#include <stdarg.h>
3400#include <stdio.h>
3401#include <sys/types.h>
3402#include <sys/stat.h>
3403/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3404struct buf { int x; };
3405FILE * (*rcsopen) (struct buf *, struct stat *, int);
3406static char *e (p, i)
3407 char **p;
3408 int i;
3409{
3410 return p[i];
3411}
3412static char *f (char * (*g) (char **, int), char **p, ...)
3413{
3414 char *s;
3415 va_list v;
3416 va_start (v,p);
3417 s = g (p, va_arg (v,int));
3418 va_end (v);
3419 return s;
3420}
3421
3422/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3423 function prototypes and stuff, but not '\xHH' hex character constants.
3424 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3425 as 'x'. The following induces an error, until -std is added to get
42ecbf5e
DJ
3426 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3427 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3428 that's true only with -std. */
42ecbf5e
DJ
3429int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3430
81ecdfbb
RW
3431/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3432 inside strings and character constants. */
3433#define FOO(x) 'x'
3434int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3435
42ecbf5e
DJ
3436int test (int i, double x);
3437struct s1 {int (*f) (int a);};
3438struct s2 {int (*f) (double a);};
3439int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3440int argc;
3441char **argv;
3442int
3443main ()
3444{
3445return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3446 ;
3447 return 0;
3448}
3449_ACEOF
81ecdfbb
RW
3450for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3451 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
42ecbf5e
DJ
3452do
3453 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3454 if ac_fn_c_try_compile "$LINENO"; then :
3455 ac_cv_prog_cc_c89=$ac_arg
42ecbf5e 3456fi
81ecdfbb
RW
3457rm -f core conftest.err conftest.$ac_objext
3458 test "x$ac_cv_prog_cc_c89" != "xno" && break
42ecbf5e 3459done
81ecdfbb 3460rm -f conftest.$ac_ext
42ecbf5e
DJ
3461CC=$ac_save_CC
3462
3463fi
81ecdfbb
RW
3464# AC_CACHE_VAL
3465case "x$ac_cv_prog_cc_c89" in
3466 x)
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3468$as_echo "none needed" >&6; } ;;
3469 xno)
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3471$as_echo "unsupported" >&6; } ;;
42ecbf5e 3472 *)
81ecdfbb
RW
3473 CC="$CC $ac_cv_prog_cc_c89"
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3475$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
42ecbf5e 3476esac
81ecdfbb 3477if test "x$ac_cv_prog_cc_c89" != xno; then :
42ecbf5e 3478
42ecbf5e
DJ
3479fi
3480
42ecbf5e
DJ
3481ac_ext=c
3482ac_cpp='$CPP $CPPFLAGS'
3483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486
3487
81ecdfbb
RW
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3489$as_echo_n "checking for library containing strerror... " >&6; }
3490if test "${ac_cv_search_strerror+set}" = set; then :
3491 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3492else
3493 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3495/* end confdefs.h. */
3496
81ecdfbb
RW
3497/* Override any GCC internal prototype to avoid an error.
3498 Use char because int might match the return type of a GCC
3499 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
3500#ifdef __cplusplus
3501extern "C"
3502#endif
42ecbf5e
DJ
3503char strerror ();
3504int
3505main ()
3506{
81ecdfbb 3507return strerror ();
42ecbf5e
DJ
3508 ;
3509 return 0;
3510}
3511_ACEOF
81ecdfbb
RW
3512for ac_lib in '' cposix; do
3513 if test -z "$ac_lib"; then
3514 ac_res="none required"
3515 else
3516 ac_res=-l$ac_lib
42ecbf5e 3517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3518 fi
3519 if ac_fn_c_try_link "$LINENO"; then :
3520 ac_cv_search_strerror=$ac_res
3521fi
3522rm -f core conftest.err conftest.$ac_objext \
3523 conftest$ac_exeext
3524 if test "${ac_cv_search_strerror+set}" = set; then :
3525 break
3526fi
3527done
3528if test "${ac_cv_search_strerror+set}" = set; then :
42ecbf5e 3529
42ecbf5e 3530else
81ecdfbb 3531 ac_cv_search_strerror=no
42ecbf5e 3532fi
81ecdfbb 3533rm conftest.$ac_ext
42ecbf5e
DJ
3534LIBS=$ac_func_search_save_LIBS
3535fi
81ecdfbb
RW
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3537$as_echo "$ac_cv_search_strerror" >&6; }
3538ac_res=$ac_cv_search_strerror
3539if test "$ac_res" != no; then :
3540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e
DJ
3541
3542fi
e5a52504
MM
3543
3544
3545BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
81ecdfbb
RW
3546am__api_version='1.11'
3547
e5a52504
MM
3548# Find a good install program. We prefer a C program (faster),
3549# so one script is as good as another. But avoid the broken or
3550# incompatible versions:
3551# SysV /etc/install, /usr/sbin/install
3552# SunOS /usr/etc/install
3553# IRIX /sbin/install
3554# AIX /bin/install
42ecbf5e 3555# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
3556# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3557# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3558# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 3559# OS/2's system install, which has a completely different semantic
e5a52504 3560# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3561# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3563$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5a52504 3564if test -z "$INSTALL"; then
81ecdfbb
RW
3565if test "${ac_cv_path_install+set}" = set; then :
3566 $as_echo_n "(cached) " >&6
e5a52504 3567else
42ecbf5e
DJ
3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569for as_dir in $PATH
3570do
3571 IFS=$as_save_IFS
3572 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3573 # Account for people who put trailing slashes in PATH elements.
3574case $as_dir/ in #((
3575 ./ | .// | /[cC]/* | \
42ecbf5e 3576 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3577 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
42ecbf5e
DJ
3578 /usr/ucb/* ) ;;
3579 *)
3580 # OSF1 and SCO ODT 3.0 have their own names for install.
3581 # Don't use installbsd from OSF since it installs stuff as root
3582 # by default.
3583 for ac_prog in ginstall scoinst install; do
3584 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3585 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3586 if test $ac_prog = install &&
42ecbf5e 3587 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3588 # AIX install. It has an incompatible calling convention.
3589 :
42ecbf5e
DJ
3590 elif test $ac_prog = install &&
3591 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3592 # program-specific install script used by HP pwplus--don't use.
3593 :
252b5132 3594 else
58c85be7
RW
3595 rm -rf conftest.one conftest.two conftest.dir
3596 echo one > conftest.one
3597 echo two > conftest.two
3598 mkdir conftest.dir
3599 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3600 test -s conftest.one && test -s conftest.two &&
3601 test -s conftest.dir/conftest.one &&
3602 test -s conftest.dir/conftest.two
3603 then
3604 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3605 break 3
3606 fi
252b5132
RH
3607 fi
3608 fi
3609 done
42ecbf5e
DJ
3610 done
3611 ;;
3612esac
81ecdfbb
RW
3613
3614 done
3615IFS=$as_save_IFS
42ecbf5e 3616
58c85be7 3617rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3618
3619fi
3620 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 3621 INSTALL=$ac_cv_path_install
252b5132 3622 else
58c85be7
RW
3623 # As a last resort, use the slow shell script. Don't cache a
3624 # value for INSTALL within a source directory, because that will
252b5132 3625 # break other packages using the cache if that directory is
58c85be7 3626 # removed, or if the value is a relative name.
42ecbf5e 3627 INSTALL=$ac_install_sh
252b5132
RH
3628 fi
3629fi
81ecdfbb
RW
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3631$as_echo "$INSTALL" >&6; }
252b5132
RH
3632
3633# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3634# It thinks the first close brace ends the variable substitution.
3635test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3636
42ecbf5e 3637test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3638
3639test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3640
81ecdfbb
RW
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3642$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3643# Just in case
3644sleep 1
42ecbf5e 3645echo timestamp > conftest.file
81ecdfbb
RW
3646# Reject unsafe characters in $srcdir or the absolute working directory
3647# name. Accept space and tab only in the latter.
3648am_lf='
3649'
3650case `pwd` in
3651 *[\\\"\#\$\&\'\`$am_lf]*)
3652 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3653esac
3654case $srcdir in
3655 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3656 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3657esac
3658
252b5132
RH
3659# Do `set' in a subshell so we don't clobber the current shell's
3660# arguments. Must try -L first in case configure is actually a
3661# symlink; some systems play weird games with the mod time of symlinks
3662# (eg FreeBSD returns the mod time of the symlink's containing
3663# directory).
3664if (
81ecdfbb 3665 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3666 if test "$*" = "X"; then
3667 # -L didn't work.
81ecdfbb 3668 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3669 fi
42ecbf5e
DJ
3670 rm -f conftest.file
3671 if test "$*" != "X $srcdir/configure conftest.file" \
3672 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3673
3674 # If neither matched, then we have a broken ls. This can happen
3675 # if, for instance, CONFIG_SHELL is bash and it inherits a
3676 # broken ls alias from the environment. This has actually
3677 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3678 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3679alias in your environment" "$LINENO" 5
252b5132
RH
3680 fi
3681
42ecbf5e 3682 test "$2" = conftest.file
252b5132
RH
3683 )
3684then
3685 # Ok.
3686 :
3687else
81ecdfbb
RW
3688 as_fn_error "newly created file is older than distributed files!
3689Check your system clock" "$LINENO" 5
252b5132 3690fi
81ecdfbb
RW
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3692$as_echo "yes" >&6; }
252b5132 3693test "$program_prefix" != NONE &&
81ecdfbb 3694 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3695# Use a double $ so make ignores it.
3696test "$program_suffix" != NONE &&
81ecdfbb
RW
3697 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3698# Double any \ or $.
42ecbf5e 3699# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3700ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3701program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e
DJ
3702
3703# expand $ac_aux_dir to an absolute path
3704am_aux_dir=`cd $ac_aux_dir && pwd`
3705
81ecdfbb
RW
3706if test x"${MISSING+set}" != xset; then
3707 case $am_aux_dir in
3708 *\ * | *\ *)
3709 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3710 *)
3711 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3712 esac
3713fi
42ecbf5e
DJ
3714# Use eval to expand $SHELL
3715if eval "$MISSING --run true"; then
3716 am_missing_run="$MISSING --run "
3717else
3718 am_missing_run=
81ecdfbb
RW
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3720$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3721fi
3722
3723if test x"${install_sh}" != xset; then
3724 case $am_aux_dir in
3725 *\ * | *\ *)
3726 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3727 *)
3728 install_sh="\${SHELL} $am_aux_dir/install-sh"
3729 esac
3730fi
3731
3732# Installed binaries are usually stripped using `strip' when the user
3733# run `make install-strip'. However `strip' might not be the right
3734# tool to use in cross-compilation environments, therefore Automake
3735# will honor the `STRIP' environment variable to overrule this program.
3736if test "$cross_compiling" != no; then
3737 if test -n "$ac_tool_prefix"; then
3738 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3739set dummy ${ac_tool_prefix}strip; ac_word=$2
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741$as_echo_n "checking for $ac_word... " >&6; }
3742if test "${ac_cv_prog_STRIP+set}" = set; then :
3743 $as_echo_n "(cached) " >&6
3744else
3745 if test -n "$STRIP"; then
3746 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3747else
3748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749for as_dir in $PATH
3750do
3751 IFS=$as_save_IFS
3752 test -z "$as_dir" && as_dir=.
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3755 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 break 2
3758 fi
3759done
3760 done
3761IFS=$as_save_IFS
3762
3763fi
3764fi
3765STRIP=$ac_cv_prog_STRIP
3766if test -n "$STRIP"; then
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3768$as_echo "$STRIP" >&6; }
3769else
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771$as_echo "no" >&6; }
3772fi
3773
3774
3775fi
3776if test -z "$ac_cv_prog_STRIP"; then
3777 ac_ct_STRIP=$STRIP
3778 # Extract the first word of "strip", so it can be a program name with args.
3779set dummy strip; ac_word=$2
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781$as_echo_n "checking for $ac_word... " >&6; }
3782if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3783 $as_echo_n "(cached) " >&6
3784else
3785 if test -n "$ac_ct_STRIP"; then
3786 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3787else
3788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789for as_dir in $PATH
3790do
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3795 ac_cv_prog_ac_ct_STRIP="strip"
3796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 break 2
3798 fi
3799done
3800 done
3801IFS=$as_save_IFS
3802
3803fi
3804fi
3805ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3806if test -n "$ac_ct_STRIP"; then
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3808$as_echo "$ac_ct_STRIP" >&6; }
3809else
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811$as_echo "no" >&6; }
3812fi
3813
3814 if test "x$ac_ct_STRIP" = x; then
3815 STRIP=":"
3816 else
3817 case $cross_compiling:$ac_tool_warned in
3818yes:)
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3821ac_tool_warned=yes ;;
3822esac
3823 STRIP=$ac_ct_STRIP
3824 fi
3825else
3826 STRIP="$ac_cv_prog_STRIP"
3827fi
3828
3829fi
3830INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3831
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3833$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3834if test -z "$MKDIR_P"; then
3835 if test "${ac_cv_path_mkdir+set}" = set; then :
3836 $as_echo_n "(cached) " >&6
3837else
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3840do
3841 IFS=$as_save_IFS
3842 test -z "$as_dir" && as_dir=.
3843 for ac_prog in mkdir gmkdir; do
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3846 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3847 'mkdir (GNU coreutils) '* | \
3848 'mkdir (coreutils) '* | \
3849 'mkdir (fileutils) '4.1*)
3850 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3851 break 3;;
3852 esac
3853 done
3854 done
42ecbf5e 3855 done
81ecdfbb
RW
3856IFS=$as_save_IFS
3857
3858fi
3859
3860 if test "${ac_cv_path_mkdir+set}" = set; then
3861 MKDIR_P="$ac_cv_path_mkdir -p"
42ecbf5e 3862 else
81ecdfbb
RW
3863 # As a last resort, use the slow shell script. Don't cache a
3864 # value for MKDIR_P within a source directory, because that will
3865 # break other packages using the cache if that directory is
3866 # removed, or if the value is a relative name.
3867 test -d ./--version && rmdir ./--version
3868 MKDIR_P="$ac_install_sh -d"
42ecbf5e
DJ
3869 fi
3870fi
81ecdfbb
RW
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3872$as_echo "$MKDIR_P" >&6; }
3873
3874mkdir_p="$MKDIR_P"
3875case $mkdir_p in
3876 [\\/$]* | ?:[\\/]*) ;;
3877 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3878esac
42ecbf5e
DJ
3879
3880for ac_prog in gawk mawk nawk awk
3881do
3882 # Extract the first word of "$ac_prog", so it can be a program name with args.
3883set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885$as_echo_n "checking for $ac_word... " >&6; }
3886if test "${ac_cv_prog_AWK+set}" = set; then :
3887 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3888else
3889 if test -n "$AWK"; then
3890 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3891else
3892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893for as_dir in $PATH
3894do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 3899 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3901 break 2
3902 fi
3903done
81ecdfbb
RW
3904 done
3905IFS=$as_save_IFS
42ecbf5e
DJ
3906
3907fi
3908fi
3909AWK=$ac_cv_prog_AWK
3910if test -n "$AWK"; then
81ecdfbb
RW
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3912$as_echo "$AWK" >&6; }
42ecbf5e 3913else
81ecdfbb
RW
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915$as_echo "no" >&6; }
42ecbf5e 3916fi
252b5132 3917
81ecdfbb 3918
42ecbf5e
DJ
3919 test -n "$AWK" && break
3920done
252b5132 3921
81ecdfbb
RW
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3923$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3924set x ${MAKE-make}
3925ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3926if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3927 $as_echo_n "(cached) " >&6
252b5132 3928else
42ecbf5e 3929 cat >conftest.make <<\_ACEOF
81ecdfbb 3930SHELL = /bin/sh
252b5132 3931all:
81ecdfbb 3932 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3933_ACEOF
252b5132 3934# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3935case `${MAKE-make} -f conftest.make 2>/dev/null` in
3936 *@@@%%%=?*=@@@%%%*)
3937 eval ac_cv_prog_make_${ac_make}_set=yes;;
3938 *)
3939 eval ac_cv_prog_make_${ac_make}_set=no;;
3940esac
42ecbf5e 3941rm -f conftest.make
252b5132 3942fi
81ecdfbb
RW
3943if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3945$as_echo "yes" >&6; }
252b5132
RH
3946 SET_MAKE=
3947else
81ecdfbb
RW
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949$as_echo "no" >&6; }
252b5132
RH
3950 SET_MAKE="MAKE=${MAKE-make}"
3951fi
3952
42ecbf5e
DJ
3953rm -rf .tst 2>/dev/null
3954mkdir .tst 2>/dev/null
3955if test -d .tst; then
3956 am__leading_dot=.
3957else
3958 am__leading_dot=_
3959fi
3960rmdir .tst 2>/dev/null
3961
3962DEPDIR="${am__leading_dot}deps"
3963
81ecdfbb 3964ac_config_commands="$ac_config_commands depfiles"
42ecbf5e
DJ
3965
3966
3967am_make=${MAKE-make}
3968cat > confinc << 'END'
3969am__doit:
81ecdfbb 3970 @echo this is the am__doit target
42ecbf5e
DJ
3971.PHONY: am__doit
3972END
3973# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3975$as_echo_n "checking for style of include used by $am_make... " >&6; }
42ecbf5e
DJ
3976am__include="#"
3977am__quote=
3978_am_result=none
3979# First try GNU make style include.
3980echo "include confinc" > confmf
81ecdfbb
RW
3981# Ignore all kinds of additional output from `make'.
3982case `$am_make -s -f confmf 2> /dev/null` in #(
3983*the\ am__doit\ target*)
3984 am__include=include
3985 am__quote=
3986 _am_result=GNU
3987 ;;
3988esac
42ecbf5e
DJ
3989# Now try BSD make style include.
3990if test "$am__include" = "#"; then
3991 echo '.include "confinc"' > confmf
81ecdfbb
RW
3992 case `$am_make -s -f confmf 2> /dev/null` in #(
3993 *the\ am__doit\ target*)
3994 am__include=.include
3995 am__quote="\""
3996 _am_result=BSD
3997 ;;
3998 esac
42ecbf5e
DJ
3999fi
4000
4001
81ecdfbb
RW
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4003$as_echo "$_am_result" >&6; }
42ecbf5e
DJ
4004rm -f confinc confmf
4005
81ecdfbb
RW
4006# Check whether --enable-dependency-tracking was given.
4007if test "${enable_dependency_tracking+set}" = set; then :
4008 enableval=$enable_dependency_tracking;
4009fi
42ecbf5e 4010
42ecbf5e
DJ
4011if test "x$enable_dependency_tracking" != xno; then
4012 am_depcomp="$ac_aux_dir/depcomp"
4013 AMDEPBACKSLASH='\'
4014fi
81ecdfbb 4015 if test "x$enable_dependency_tracking" != xno; then
42ecbf5e
DJ
4016 AMDEP_TRUE=
4017 AMDEP_FALSE='#'
4018else
4019 AMDEP_TRUE='#'
4020 AMDEP_FALSE=
4021fi
4022
e5a52504 4023
81ecdfbb
RW
4024if test "`cd $srcdir && pwd`" != "`pwd`"; then
4025 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4026 # is not polluted with repeated "-I."
4027 am__isrc=' -I$(srcdir)'
4028 # test to see if srcdir already configured
4029 if test -f $srcdir/config.status; then
4030 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4031 fi
42ecbf5e 4032fi
252b5132 4033
42ecbf5e
DJ
4034# test whether we have cygpath
4035if test -z "$CYGPATH_W"; then
4036 if (cygpath --version) >/dev/null 2>/dev/null; then
4037 CYGPATH_W='cygpath -w'
4038 else
4039 CYGPATH_W=echo
4040 fi
252b5132 4041fi
42ecbf5e
DJ
4042
4043
4044# Define the identity of the package.
4045 PACKAGE=ld
4046 VERSION=${BFD_VERSION}
4047
4048
4049cat >>confdefs.h <<_ACEOF
e5a52504 4050#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
4051_ACEOF
4052
252b5132 4053
42ecbf5e 4054cat >>confdefs.h <<_ACEOF
e5a52504 4055#define VERSION "$VERSION"
42ecbf5e
DJ
4056_ACEOF
4057
4058# Some tools Automake needs.
4059
4060ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4061
4062
4063AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4064
4065
4066AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4067
4068
4069AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4070
e5a52504 4071
42ecbf5e 4072MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 4073
42ecbf5e
DJ
4074# We need awk for the "check" target. The system "awk" is bad on
4075# some platforms.
4076# Always define AMTAR for backward compatibility.
4077
4078AMTAR=${AMTAR-"${am_missing_run}tar"}
4079
4080am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4081
4082
4083
4084
4085depcc="$CC" am_compiler_list=
4086
81ecdfbb
RW
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4088$as_echo_n "checking dependency style of $depcc... " >&6; }
4089if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
4091else
4092 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4093 # We make a subdir and do the tests there. Otherwise we can end up
4094 # making bogus files that we don't know about and never remove. For
4095 # instance it was reported that on HP-UX the gcc test will end up
4096 # making a dummy file named `D' -- because `-MD' means `put the output
4097 # in D'.
4098 mkdir conftest.dir
4099 # Copy depcomp to subdir because otherwise we won't find it if we're
4100 # using a relative directory.
4101 cp "$am_depcomp" conftest.dir
4102 cd conftest.dir
4103 # We will build objects and dependencies in a subdirectory because
4104 # it helps to detect inapplicable dependency modes. For instance
4105 # both Tru64's cc and ICC support -MD to output dependencies as a
4106 # side effect of compilation, but ICC will put the dependencies in
4107 # the current directory while Tru64 will put them in the object
4108 # directory.
4109 mkdir sub
4110
4111 am_cv_CC_dependencies_compiler_type=none
4112 if test "$am_compiler_list" = ""; then
4113 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4114 fi
81ecdfbb
RW
4115 am__universal=false
4116 case " $depcc " in #(
4117 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4118 esac
4119
42ecbf5e
DJ
4120 for depmode in $am_compiler_list; do
4121 # Setup a source with many dependencies, because some compilers
4122 # like to wrap large dependency lists on column 80 (with \), and
4123 # we should not choose a depcomp mode which is confused by this.
4124 #
4125 # We need to recreate these files for each test, as the compiler may
4126 # overwrite some of them when testing with obscure command lines.
4127 # This happens at least with the AIX C compiler.
4128 : > sub/conftest.c
4129 for i in 1 2 3 4 5 6; do
4130 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4131 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4132 # Solaris 8's {/usr,}/bin/sh.
4133 touch sub/conftst$i.h
4134 done
4135 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4136
81ecdfbb
RW
4137 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4138 # mode. It turns out that the SunPro C++ compiler does not properly
4139 # handle `-M -o', and we need to detect this. Also, some Intel
4140 # versions had trouble with output in subdirs
4141 am__obj=sub/conftest.${OBJEXT-o}
4142 am__minus_obj="-o $am__obj"
42ecbf5e 4143 case $depmode in
81ecdfbb
RW
4144 gcc)
4145 # This depmode causes a compiler race in universal mode.
4146 test "$am__universal" = false || continue
4147 ;;
42ecbf5e
DJ
4148 nosideeffect)
4149 # after this tag, mechanisms are not by side-effect, so they'll
4150 # only be used when explicitly requested
4151 if test "x$enable_dependency_tracking" = xyes; then
4152 continue
4153 else
4154 break
4155 fi
4156 ;;
81ecdfbb
RW
4157 msvisualcpp | msvcmsys)
4158 # This compiler won't grok `-c -o', but also, the minuso test has
4159 # not run yet. These depmodes are late enough in the game, and
4160 # so weak that their functioning should not be impacted.
4161 am__obj=conftest.${OBJEXT-o}
4162 am__minus_obj=
4163 ;;
42ecbf5e
DJ
4164 none) break ;;
4165 esac
42ecbf5e 4166 if depmode=$depmode \
81ecdfbb 4167 source=sub/conftest.c object=$am__obj \
42ecbf5e 4168 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4169 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
42ecbf5e 4170 >/dev/null 2>conftest.err &&
81ecdfbb 4171 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e 4172 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4173 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e
DJ
4174 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4175 # icc doesn't choke on unknown options, it will just issue warnings
4176 # or remarks (even with -Werror). So we grep stderr for any message
4177 # that says an option was ignored or not supported.
4178 # When given -MP, icc 7.0 and 7.1 complain thusly:
4179 # icc: Command line warning: ignoring option '-M'; no argument required
4180 # The diagnosis changed in icc 8.0:
4181 # icc: Command line remark: option '-MP' not supported
4182 if (grep 'ignoring option' conftest.err ||
4183 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4184 am_cv_CC_dependencies_compiler_type=$depmode
4185 break
4186 fi
4187 fi
4188 done
2469cfa2 4189
42ecbf5e
DJ
4190 cd ..
4191 rm -rf conftest.dir
2469cfa2 4192else
42ecbf5e
DJ
4193 am_cv_CC_dependencies_compiler_type=none
4194fi
4195
2469cfa2 4196fi
81ecdfbb
RW
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4198$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
42ecbf5e
DJ
4199CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4200
81ecdfbb 4201 if
42ecbf5e
DJ
4202 test "x$enable_dependency_tracking" != xno \
4203 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4204 am__fastdepCC_TRUE=
4205 am__fastdepCC_FALSE='#'
2469cfa2 4206else
42ecbf5e
DJ
4207 am__fastdepCC_TRUE='#'
4208 am__fastdepCC_FALSE=
2469cfa2 4209fi
2469cfa2 4210
2469cfa2 4211
e5a52504 4212
42ecbf5e 4213
64ac50ac
RW
4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4215$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4216 # Check whether --enable-maintainer-mode was given.
4217if test "${enable_maintainer_mode+set}" = set; then :
4218 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4219else
4220 USE_MAINTAINER_MODE=no
4221fi
4222
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4224$as_echo "$USE_MAINTAINER_MODE" >&6; }
4225 if test $USE_MAINTAINER_MODE = yes; then
4226 MAINTAINER_MODE_TRUE=
4227 MAINTAINER_MODE_FALSE='#'
4228else
4229 MAINTAINER_MODE_TRUE='#'
4230 MAINTAINER_MODE_FALSE=
4231fi
4232
4233 MAINT=$MAINTAINER_MODE_TRUE
4234
4235
4236
d7040cdb 4237
81ecdfbb
RW
4238# Check whether --with-lib-path was given.
4239if test "${with_lib_path+set}" = set; then :
4240 withval=$with_lib_path; LIB_PATH=$withval
4241fi
4242
4243# Check whether --enable-targets was given.
4244if test "${enable_targets+set}" = set; then :
4245 enableval=$enable_targets; case "${enableval}" in
4246 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
ce2cded5
L
4247 ;;
4248 no) enable_targets= ;;
4249 *) enable_targets=$enableval ;;
4250esac
81ecdfbb
RW
4251fi
4252# Check whether --enable-64-bit-bfd was given.
4253if test "${enable_64_bit_bfd+set}" = set; then :
4254 enableval=$enable_64_bit_bfd; case "${enableval}" in
ce2cded5
L
4255 yes) want64=true ;;
4256 no) want64=false ;;
81ecdfbb 4257 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
ce2cded5 4258esac
2469cfa2 4259else
ce2cded5 4260 want64=false
81ecdfbb 4261fi
d7040cdb
SE
4262
4263
81ecdfbb
RW
4264# Check whether --with-sysroot was given.
4265if test "${with_sysroot+set}" = set; then :
4266 withval=$with_sysroot;
ce2cded5
L
4267 case ${with_sysroot} in
4268 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4269 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4270 esac
d7040cdb 4271
ce2cded5
L
4272 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4273 use_sysroot=yes
d7040cdb 4274
ce2cded5
L
4275 if test "x$prefix" = xNONE; then
4276 test_prefix=/usr/local
4277 else
4278 test_prefix=$prefix
4279 fi
4280 if test "x$exec_prefix" = xNONE; then
4281 test_exec_prefix=$test_prefix
4282 else
4283 test_exec_prefix=$exec_prefix
4284 fi
4285 case ${TARGET_SYSTEM_ROOT} in
4286 "${test_prefix}"|"${test_prefix}/"*|\
4287 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
4288 '${prefix}'|'${prefix}/'*|\
4289 '${exec_prefix}'|'${exec_prefix}/'*)
4290 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4291 TARGET_SYSTEM_ROOT_DEFINE="$t"
4292 ;;
4293 esac
d7040cdb 4294
e5a52504 4295else
d7040cdb 4296
ce2cded5
L
4297 use_sysroot=no
4298 TARGET_SYSTEM_ROOT=
4299 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
d7040cdb 4300
81ecdfbb
RW
4301fi
4302
d7040cdb
SE
4303
4304
4305
4306
81ecdfbb
RW
4307# Check whether --enable-got was given.
4308if test "${enable_got+set}" = set; then :
4309 enableval=$enable_got; case "${enableval}" in
7fb9f789 4310 target | single | negative | multigot) got_handling=$enableval ;;
81ecdfbb 4311 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
7fb9f789
NC
4312esac
4313else
4314 got_handling=target
81ecdfbb
RW
4315fi
4316
7fb9f789
NC
4317
4318case "${got_handling}" in
4319 target)
4320
81ecdfbb 4321$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
7fb9f789
NC
4322 ;;
4323 single)
4324
81ecdfbb 4325$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
7fb9f789
NC
4326 ;;
4327 negative)
4328
81ecdfbb 4329$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
7fb9f789
NC
4330 ;;
4331 multigot)
4332
81ecdfbb 4333$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
7fb9f789 4334 ;;
81ecdfbb 4335 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
7fb9f789
NC
4336esac
4337
d7040cdb 4338
91d6fa6a 4339GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow"
d7040cdb 4340
81ecdfbb
RW
4341# Check whether --enable-werror was given.
4342if test "${enable_werror+set}" = set; then :
4343 enableval=$enable_werror; case "${enableval}" in
ce2cded5
L
4344 yes | y) ERROR_ON_WARNING="yes" ;;
4345 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 4346 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
ce2cded5 4347 esac
81ecdfbb
RW
4348fi
4349
d7040cdb 4350
bb8541b9
L
4351# Enable -Wno-format by default when using gcc on mingw
4352case "${host}" in
4353 *-*-mingw32*)
4354 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4355 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
4356 fi
4357 ;;
4358 *) ;;
4359esac
4360
ce2cded5
L
4361# Enable -Werror by default when using gcc
4362if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4363 ERROR_ON_WARNING=yes
4364fi
d7040cdb 4365
ce2cded5
L
4366NO_WERROR=
4367if test "${ERROR_ON_WARNING}" = yes ; then
4368 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4369 NO_WERROR="-Wno-error"
4370fi
d7040cdb 4371
ce2cded5
L
4372if test "${GCC}" = yes ; then
4373 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4374fi
d7040cdb 4375
81ecdfbb
RW
4376# Check whether --enable-build-warnings was given.
4377if test "${enable_build_warnings+set}" = set; then :
4378 enableval=$enable_build_warnings; case "${enableval}" in
ce2cded5
L
4379 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4380 no) if test "${GCC}" = yes ; then
4381 WARN_CFLAGS="-w"
4382 fi;;
4383 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4384 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4385 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4386 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4387 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4388esac
81ecdfbb
RW
4389fi
4390
d7040cdb 4391
ce2cded5
L
4392if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4393 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4394fi
d7040cdb 4395
2469cfa2 4396
d7040cdb
SE
4397
4398
4399
81ecdfbb 4400ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
4401
4402
ce2cded5 4403if test -z "$target" ; then
81ecdfbb 4404 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
ce2cded5
L
4405fi
4406if test -z "$host" ; then
81ecdfbb 4407 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
ce2cded5 4408fi
d7040cdb 4409
ce2cded5 4410# host-specific stuff:
d7040cdb 4411
ce2cded5
L
4412ac_ext=c
4413ac_cpp='$CPP $CPPFLAGS'
4414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416ac_compiler_gnu=$ac_cv_c_compiler_gnu
4417if test -n "$ac_tool_prefix"; then
4418 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4419set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421$as_echo_n "checking for $ac_word... " >&6; }
4422if test "${ac_cv_prog_CC+set}" = set; then :
4423 $as_echo_n "(cached) " >&6
d7040cdb 4424else
ce2cded5
L
4425 if test -n "$CC"; then
4426 ac_cv_prog_CC="$CC" # Let the user override the test.
4427else
d7040cdb
SE
4428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429for as_dir in $PATH
4430do
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4435 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 4437 break 2
d7040cdb 4438 fi
ce2cded5 4439done
81ecdfbb
RW
4440 done
4441IFS=$as_save_IFS
d7040cdb
SE
4442
4443fi
d7040cdb 4444fi
ce2cded5
L
4445CC=$ac_cv_prog_CC
4446if test -n "$CC"; then
81ecdfbb
RW
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4448$as_echo "$CC" >&6; }
d7040cdb 4449else
81ecdfbb
RW
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451$as_echo "no" >&6; }
d7040cdb 4452fi
d7040cdb 4453
81ecdfbb 4454
252b5132 4455fi
ce2cded5
L
4456if test -z "$ac_cv_prog_CC"; then
4457 ac_ct_CC=$CC
4458 # Extract the first word of "gcc", so it can be a program name with args.
4459set dummy gcc; ac_word=$2
81ecdfbb
RW
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461$as_echo_n "checking for $ac_word... " >&6; }
4462if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4463 $as_echo_n "(cached) " >&6
252b5132 4464else
ce2cded5
L
4465 if test -n "$ac_ct_CC"; then
4466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 4467else
ce2cded5
L
4468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469for as_dir in $PATH
4470do
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4475 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4477 break 2
4478 fi
4479done
81ecdfbb
RW
4480 done
4481IFS=$as_save_IFS
4482
252b5132
RH
4483fi
4484fi
ce2cded5
L
4485ac_ct_CC=$ac_cv_prog_ac_ct_CC
4486if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4488$as_echo "$ac_ct_CC" >&6; }
252b5132 4489else
81ecdfbb
RW
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491$as_echo "no" >&6; }
252b5132 4492fi
ce2cded5 4493
81ecdfbb
RW
4494 if test "x$ac_ct_CC" = x; then
4495 CC=""
4496 else
4497 case $cross_compiling:$ac_tool_warned in
4498yes:)
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4501ac_tool_warned=yes ;;
4502esac
4503 CC=$ac_ct_CC
4504 fi
252b5132 4505else
ce2cded5 4506 CC="$ac_cv_prog_CC"
252b5132 4507fi
d7040cdb 4508
ce2cded5 4509if test -z "$CC"; then
81ecdfbb
RW
4510 if test -n "$ac_tool_prefix"; then
4511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 4512set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514$as_echo_n "checking for $ac_word... " >&6; }
4515if test "${ac_cv_prog_CC+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
252b5132 4517else
ce2cded5
L
4518 if test -n "$CC"; then
4519 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4520else
ce2cded5
L
4521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522for as_dir in $PATH
4523do
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4528 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4530 break 2
4531 fi
4532done
81ecdfbb
RW
4533 done
4534IFS=$as_save_IFS
ce2cded5 4535
252b5132
RH
4536fi
4537fi
ce2cded5
L
4538CC=$ac_cv_prog_CC
4539if test -n "$CC"; then
81ecdfbb
RW
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4541$as_echo "$CC" >&6; }
ce2cded5 4542else
81ecdfbb
RW
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544$as_echo "no" >&6; }
ce2cded5
L
4545fi
4546
ce2cded5 4547
81ecdfbb 4548 fi
ce2cded5
L
4549fi
4550if test -z "$CC"; then
4551 # Extract the first word of "cc", so it can be a program name with args.
4552set dummy cc; ac_word=$2
81ecdfbb
RW
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554$as_echo_n "checking for $ac_word... " >&6; }
4555if test "${ac_cv_prog_CC+set}" = set; then :
4556 $as_echo_n "(cached) " >&6
ce2cded5
L
4557else
4558 if test -n "$CC"; then
4559 ac_cv_prog_CC="$CC" # Let the user override the test.
4560else
4561 ac_prog_rejected=no
4562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH
4564do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
4569 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4570 ac_prog_rejected=yes
4571 continue
4572 fi
4573 ac_cv_prog_CC="cc"
81ecdfbb 4574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4575 break 2
4576 fi
4577done
81ecdfbb
RW
4578 done
4579IFS=$as_save_IFS
ce2cded5
L
4580
4581if test $ac_prog_rejected = yes; then
4582 # We found a bogon in the path, so make sure we never use it.
4583 set dummy $ac_cv_prog_CC
4584 shift
4585 if test $# != 0; then
4586 # We chose a different compiler from the bogus one.
4587 # However, it has the same basename, so the bogon will be chosen
4588 # first if we set CC to just the basename; use the full file name.
4589 shift
4590 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4591 fi
4592fi
4593fi
4594fi
4595CC=$ac_cv_prog_CC
4596if test -n "$CC"; then
81ecdfbb
RW
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4598$as_echo "$CC" >&6; }
ce2cded5 4599else
81ecdfbb
RW
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601$as_echo "no" >&6; }
ce2cded5
L
4602fi
4603
81ecdfbb 4604
ce2cded5
L
4605fi
4606if test -z "$CC"; then
d7040cdb 4607 if test -n "$ac_tool_prefix"; then
81ecdfbb 4608 for ac_prog in cl.exe
d7040cdb
SE
4609 do
4610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4611set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4613$as_echo_n "checking for $ac_word... " >&6; }
4614if test "${ac_cv_prog_CC+set}" = set; then :
4615 $as_echo_n "(cached) " >&6
d7040cdb 4616else
ce2cded5
L
4617 if test -n "$CC"; then
4618 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb
SE
4619else
4620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH
4622do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4627 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
4629 break 2
4630 fi
4631done
81ecdfbb
RW
4632 done
4633IFS=$as_save_IFS
d7040cdb
SE
4634
4635fi
4636fi
ce2cded5
L
4637CC=$ac_cv_prog_CC
4638if test -n "$CC"; then
81ecdfbb
RW
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4640$as_echo "$CC" >&6; }
d7040cdb 4641else
81ecdfbb
RW
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643$as_echo "no" >&6; }
d7040cdb
SE
4644fi
4645
81ecdfbb 4646
ce2cded5 4647 test -n "$CC" && break
d7040cdb
SE
4648 done
4649fi
ce2cded5
L
4650if test -z "$CC"; then
4651 ac_ct_CC=$CC
81ecdfbb 4652 for ac_prog in cl.exe
d7040cdb
SE
4653do
4654 # Extract the first word of "$ac_prog", so it can be a program name with args.
4655set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4657$as_echo_n "checking for $ac_word... " >&6; }
4658if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4659 $as_echo_n "(cached) " >&6
d7040cdb 4660else
ce2cded5
L
4661 if test -n "$ac_ct_CC"; then
4662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
4663else
4664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665for as_dir in $PATH
4666do
4667 IFS=$as_save_IFS
4668 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4671 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
4673 break 2
4674 fi
4675done
81ecdfbb
RW
4676 done
4677IFS=$as_save_IFS
d7040cdb
SE
4678
4679fi
4680fi
ce2cded5
L
4681ac_ct_CC=$ac_cv_prog_ac_ct_CC
4682if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4684$as_echo "$ac_ct_CC" >&6; }
d7040cdb 4685else
81ecdfbb
RW
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687$as_echo "no" >&6; }
d7040cdb
SE
4688fi
4689
81ecdfbb 4690
ce2cded5 4691 test -n "$ac_ct_CC" && break
d7040cdb 4692done
d7040cdb 4693
81ecdfbb
RW
4694 if test "x$ac_ct_CC" = x; then
4695 CC=""
4696 else
4697 case $cross_compiling:$ac_tool_warned in
4698yes:)
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4701ac_tool_warned=yes ;;
4702esac
4703 CC=$ac_ct_CC
4704 fi
d7040cdb
SE
4705fi
4706
d7040cdb 4707fi
d7040cdb
SE
4708
4709
81ecdfbb
RW
4710test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4712as_fn_error "no acceptable C compiler found in \$PATH
4713See \`config.log' for more details." "$LINENO" 5; }
d7040cdb 4714
ce2cded5 4715# Provide some information about the compiler.
81ecdfbb
RW
4716$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4717set X $ac_compile
4718ac_compiler=$2
4719for ac_option in --version -v -V -qversion; do
4720 { { ac_try="$ac_compiler $ac_option >&5"
4721case "(($ac_try" in
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4724esac
4725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4726$as_echo "$ac_try_echo"; } >&5
4727 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4728 ac_status=$?
81ecdfbb
RW
4729 if test -s conftest.err; then
4730 sed '10a\
4731... rest of stderr output deleted ...
4732 10q' conftest.err >conftest.er1
4733 cat conftest.er1 >&5
4734 rm -f conftest.er1 conftest.err
4735 fi
4736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4737 test $ac_status = 0; }
4738done
d7040cdb 4739
81ecdfbb
RW
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4741$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4742if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4743 $as_echo_n "(cached) " >&6
d7040cdb 4744else
81ecdfbb 4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4746/* end confdefs.h. */
d7040cdb 4747
ce2cded5
L
4748int
4749main ()
4750{
4751#ifndef __GNUC__
4752 choke me
4753#endif
4754
4755 ;
4756 return 0;
4757}
4758_ACEOF
81ecdfbb 4759if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 4760 ac_compiler_gnu=yes
d7040cdb 4761else
81ecdfbb 4762 ac_compiler_gnu=no
d7040cdb 4763fi
81ecdfbb 4764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4765ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 4766
ce2cded5 4767fi
81ecdfbb
RW
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4769$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4770if test $ac_compiler_gnu = yes; then
4771 GCC=yes
4772else
4773 GCC=
4774fi
ce2cded5
L
4775ac_test_CFLAGS=${CFLAGS+set}
4776ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4778$as_echo_n "checking whether $CC accepts -g... " >&6; }
4779if test "${ac_cv_prog_cc_g+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4781else
4782 ac_save_c_werror_flag=$ac_c_werror_flag
4783 ac_c_werror_flag=yes
4784 ac_cv_prog_cc_g=no
4785 CFLAGS="-g"
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4787/* end confdefs.h. */
d7040cdb 4788
ce2cded5
L
4789int
4790main ()
4791{
d7040cdb 4792
ce2cded5
L
4793 ;
4794 return 0;
4795}
4796_ACEOF
81ecdfbb 4797if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
4798 ac_cv_prog_cc_g=yes
4799else
81ecdfbb
RW
4800 CFLAGS=""
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802/* end confdefs.h. */
4803
4804int
4805main ()
4806{
4807
4808 ;
4809 return 0;
4810}
4811_ACEOF
4812if ac_fn_c_try_compile "$LINENO"; then :
4813
4814else
4815 ac_c_werror_flag=$ac_save_c_werror_flag
4816 CFLAGS="-g"
4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818/* end confdefs.h. */
4819
4820int
4821main ()
4822{
d7040cdb 4823
81ecdfbb
RW
4824 ;
4825 return 0;
4826}
4827_ACEOF
4828if ac_fn_c_try_compile "$LINENO"; then :
4829 ac_cv_prog_cc_g=yes
4830fi
4831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832fi
4833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4834fi
81ecdfbb
RW
4835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836 ac_c_werror_flag=$ac_save_c_werror_flag
ce2cded5 4837fi
81ecdfbb
RW
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4839$as_echo "$ac_cv_prog_cc_g" >&6; }
ce2cded5
L
4840if test "$ac_test_CFLAGS" = set; then
4841 CFLAGS=$ac_save_CFLAGS
4842elif test $ac_cv_prog_cc_g = yes; then
4843 if test "$GCC" = yes; then
4844 CFLAGS="-g -O2"
4845 else
4846 CFLAGS="-g"
4847 fi
d7040cdb 4848else
ce2cded5
L
4849 if test "$GCC" = yes; then
4850 CFLAGS="-O2"
4851 else
4852 CFLAGS=
4853 fi
d7040cdb 4854fi
81ecdfbb
RW
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4856$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4857if test "${ac_cv_prog_cc_c89+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
d7040cdb 4859else
81ecdfbb 4860 ac_cv_prog_cc_c89=no
ce2cded5 4861ac_save_CC=$CC
81ecdfbb 4862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
4863/* end confdefs.h. */
4864#include <stdarg.h>
4865#include <stdio.h>
4866#include <sys/types.h>
4867#include <sys/stat.h>
4868/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4869struct buf { int x; };
4870FILE * (*rcsopen) (struct buf *, struct stat *, int);
4871static char *e (p, i)
4872 char **p;
4873 int i;
4874{
4875 return p[i];
4876}
4877static char *f (char * (*g) (char **, int), char **p, ...)
4878{
4879 char *s;
4880 va_list v;
4881 va_start (v,p);
4882 s = g (p, va_arg (v,int));
4883 va_end (v);
4884 return s;
4885}
d7040cdb 4886
ce2cded5
L
4887/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4888 function prototypes and stuff, but not '\xHH' hex character constants.
4889 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4890 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
4891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4892 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4893 that's true only with -std. */
ce2cded5 4894int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 4895
81ecdfbb
RW
4896/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4897 inside strings and character constants. */
4898#define FOO(x) 'x'
4899int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4900
ce2cded5
L
4901int test (int i, double x);
4902struct s1 {int (*f) (int a);};
4903struct s2 {int (*f) (double a);};
4904int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4905int argc;
4906char **argv;
4907int
4908main ()
4909{
4910return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4911 ;
4912 return 0;
4913}
4914_ACEOF
81ecdfbb
RW
4915for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4916 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
4917do
4918 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4919 if ac_fn_c_try_compile "$LINENO"; then :
4920 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 4921fi
81ecdfbb
RW
4922rm -f core conftest.err conftest.$ac_objext
4923 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 4924done
81ecdfbb 4925rm -f conftest.$ac_ext
ce2cded5 4926CC=$ac_save_CC
d7040cdb 4927
ce2cded5 4928fi
81ecdfbb
RW
4929# AC_CACHE_VAL
4930case "x$ac_cv_prog_cc_c89" in
4931 x)
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4933$as_echo "none needed" >&6; } ;;
4934 xno)
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4936$as_echo "unsupported" >&6; } ;;
ce2cded5 4937 *)
81ecdfbb
RW
4938 CC="$CC $ac_cv_prog_cc_c89"
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4940$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d7040cdb 4941esac
81ecdfbb 4942if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 4943
ce2cded5 4944fi
d7040cdb 4945
ce2cded5
L
4946ac_ext=c
4947ac_cpp='$CPP $CPPFLAGS'
4948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4950ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4951
7357c5b6
AM
4952ac_ext=c
4953ac_cpp='$CPP $CPPFLAGS'
4954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4956ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4958$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4959# On Suns, sometimes $CPP names a directory.
4960if test -n "$CPP" && test -d "$CPP"; then
4961 CPP=
4962fi
4963if test -z "$CPP"; then
81ecdfbb
RW
4964 if test "${ac_cv_prog_CPP+set}" = set; then :
4965 $as_echo_n "(cached) " >&6
ac48eca1 4966else
7357c5b6
AM
4967 # Double quotes because CPP needs to be expanded
4968 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4969 do
4970 ac_preproc_ok=false
4971for ac_c_preproc_warn_flag in '' yes
ce2cded5 4972do
7357c5b6
AM
4973 # Use a header file that comes with gcc, so configuring glibc
4974 # with a fresh cross-compiler works.
4975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4976 # <limits.h> exists even on freestanding compilers.
4977 # On the NeXT, cc -E runs the code through the compiler's parser,
4978 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4980/* end confdefs.h. */
4981#ifdef __STDC__
4982# include <limits.h>
4983#else
4984# include <assert.h>
4985#endif
4986 Syntax error
4987_ACEOF
81ecdfbb 4988if ac_fn_c_try_cpp "$LINENO"; then :
ac48eca1 4989
81ecdfbb 4990else
7357c5b6
AM
4991 # Broken: fails on valid input.
4992continue
4993fi
4994rm -f conftest.err conftest.$ac_ext
ac48eca1 4995
81ecdfbb 4996 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4997 # can be detected and how.
81ecdfbb 4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4999/* end confdefs.h. */
5000#include <ac_nonexistent.h>
5001_ACEOF
81ecdfbb 5002if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
5003 # Broken: success on invalid input.
5004continue
5005else
7357c5b6
AM
5006 # Passes both tests.
5007ac_preproc_ok=:
5008break
5009fi
5010rm -f conftest.err conftest.$ac_ext
ac48eca1 5011
7357c5b6
AM
5012done
5013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5014rm -f conftest.err conftest.$ac_ext
81ecdfbb 5015if $ac_preproc_ok; then :
7357c5b6
AM
5016 break
5017fi
252b5132 5018
7357c5b6
AM
5019 done
5020 ac_cv_prog_CPP=$CPP
252b5132 5021
7357c5b6
AM
5022fi
5023 CPP=$ac_cv_prog_CPP
5024else
5025 ac_cv_prog_CPP=$CPP
5026fi
81ecdfbb
RW
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5028$as_echo "$CPP" >&6; }
7357c5b6
AM
5029ac_preproc_ok=false
5030for ac_c_preproc_warn_flag in '' yes
5031do
5032 # Use a header file that comes with gcc, so configuring glibc
5033 # with a fresh cross-compiler works.
5034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5035 # <limits.h> exists even on freestanding compilers.
5036 # On the NeXT, cc -E runs the code through the compiler's parser,
5037 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5039/* end confdefs.h. */
5040#ifdef __STDC__
5041# include <limits.h>
5042#else
5043# include <assert.h>
5044#endif
5045 Syntax error
5046_ACEOF
81ecdfbb 5047if ac_fn_c_try_cpp "$LINENO"; then :
ce2cded5 5048
81ecdfbb 5049else
7357c5b6
AM
5050 # Broken: fails on valid input.
5051continue
5052fi
5053rm -f conftest.err conftest.$ac_ext
ce2cded5 5054
81ecdfbb 5055 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 5056 # can be detected and how.
81ecdfbb 5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5058/* end confdefs.h. */
5059#include <ac_nonexistent.h>
5060_ACEOF
81ecdfbb 5061if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
5062 # Broken: success on invalid input.
5063continue
ce2cded5 5064else
7357c5b6
AM
5065 # Passes both tests.
5066ac_preproc_ok=:
5067break
5068fi
5069rm -f conftest.err conftest.$ac_ext
d7040cdb 5070
7357c5b6
AM
5071done
5072# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5073rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
5074if $ac_preproc_ok; then :
5075
7357c5b6 5076else
81ecdfbb
RW
5077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5079as_fn_error "C preprocessor \"$CPP\" fails sanity check
5080See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 5081fi
ce2cded5 5082
7357c5b6
AM
5083ac_ext=c
5084ac_cpp='$CPP $CPPFLAGS'
5085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087ac_compiler_gnu=$ac_cv_c_compiler_gnu
ce2cded5
L
5088
5089
81ecdfbb
RW
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5091$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5092if test "${ac_cv_path_GREP+set}" = set; then :
5093 $as_echo_n "(cached) " >&6
ac48eca1 5094else
81ecdfbb
RW
5095 if test -z "$GREP"; then
5096 ac_path_GREP_found=false
5097 # Loop through the user's path and test for each of PROGNAME-LIST
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5100do
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
5103 for ac_prog in grep ggrep; do
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5106 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5107# Check for GNU ac_path_GREP and select it if it is found.
5108 # Check for GNU $ac_path_GREP
5109case `"$ac_path_GREP" --version 2>&1` in
5110*GNU*)
5111 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5112*)
5113 ac_count=0
5114 $as_echo_n 0123456789 >"conftest.in"
5115 while :
5116 do
5117 cat "conftest.in" "conftest.in" >"conftest.tmp"
5118 mv "conftest.tmp" "conftest.in"
5119 cp "conftest.in" "conftest.nl"
5120 $as_echo 'GREP' >> "conftest.nl"
5121 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5123 as_fn_arith $ac_count + 1 && ac_count=$as_val
5124 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5125 # Best one so far, save it but keep looking for a better one
5126 ac_cv_path_GREP="$ac_path_GREP"
5127 ac_path_GREP_max=$ac_count
ce2cded5 5128 fi
81ecdfbb
RW
5129 # 10*(2^10) chars as input seems more than enough
5130 test $ac_count -gt 10 && break
5131 done
5132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5133esac
252b5132 5134
81ecdfbb
RW
5135 $ac_path_GREP_found && break 3
5136 done
5137 done
5138 done
5139IFS=$as_save_IFS
5140 if test -z "$ac_cv_path_GREP"; then
5141 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5142 fi
7357c5b6 5143else
81ecdfbb
RW
5144 ac_cv_path_GREP=$GREP
5145fi
4867be41 5146
81ecdfbb
RW
5147fi
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5149$as_echo "$ac_cv_path_GREP" >&6; }
5150 GREP="$ac_cv_path_GREP"
32fba81d 5151
42ecbf5e 5152
81ecdfbb
RW
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5154$as_echo_n "checking for egrep... " >&6; }
5155if test "${ac_cv_path_EGREP+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5157else
5158 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5159 then ac_cv_path_EGREP="$GREP -E"
5160 else
5161 if test -z "$EGREP"; then
5162 ac_path_EGREP_found=false
5163 # Loop through the user's path and test for each of PROGNAME-LIST
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5166do
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_prog in egrep; do
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5172 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5173# Check for GNU ac_path_EGREP and select it if it is found.
5174 # Check for GNU $ac_path_EGREP
5175case `"$ac_path_EGREP" --version 2>&1` in
5176*GNU*)
5177 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5178*)
5179 ac_count=0
5180 $as_echo_n 0123456789 >"conftest.in"
5181 while :
5182 do
5183 cat "conftest.in" "conftest.in" >"conftest.tmp"
5184 mv "conftest.tmp" "conftest.in"
5185 cp "conftest.in" "conftest.nl"
5186 $as_echo 'EGREP' >> "conftest.nl"
5187 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5189 as_fn_arith $ac_count + 1 && ac_count=$as_val
5190 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5191 # Best one so far, save it but keep looking for a better one
5192 ac_cv_path_EGREP="$ac_path_EGREP"
5193 ac_path_EGREP_max=$ac_count
5194 fi
5195 # 10*(2^10) chars as input seems more than enough
5196 test $ac_count -gt 10 && break
5197 done
5198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5199esac
5200
5201 $ac_path_EGREP_found && break 3
5202 done
5203 done
5204 done
5205IFS=$as_save_IFS
5206 if test -z "$ac_cv_path_EGREP"; then
5207 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5208 fi
5209else
5210 ac_cv_path_EGREP=$EGREP
5211fi
5212
5213 fi
5214fi
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5216$as_echo "$ac_cv_path_EGREP" >&6; }
5217 EGREP="$ac_cv_path_EGREP"
5218
5219
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5221$as_echo_n "checking for ANSI C header files... " >&6; }
5222if test "${ac_cv_header_stdc+set}" = set; then :
5223 $as_echo_n "(cached) " >&6
5224else
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226/* end confdefs.h. */
5227#include <stdlib.h>
5228#include <stdarg.h>
5229#include <string.h>
5230#include <float.h>
5231
5232int
5233main ()
5234{
5235
5236 ;
5237 return 0;
5238}
5239_ACEOF
5240if ac_fn_c_try_compile "$LINENO"; then :
5241 ac_cv_header_stdc=yes
5242else
5243 ac_cv_header_stdc=no
7357c5b6 5244fi
81ecdfbb 5245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 5246
7357c5b6
AM
5247if test $ac_cv_header_stdc = yes; then
5248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5250/* end confdefs.h. */
5251#include <string.h>
ac48eca1 5252
7357c5b6
AM
5253_ACEOF
5254if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5255 $EGREP "memchr" >/dev/null 2>&1; then :
5256
7357c5b6
AM
5257else
5258 ac_cv_header_stdc=no
5259fi
5260rm -f conftest*
252b5132 5261
7357c5b6 5262fi
252b5132 5263
7357c5b6
AM
5264if test $ac_cv_header_stdc = yes; then
5265 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5267/* end confdefs.h. */
5268#include <stdlib.h>
42ecbf5e 5269
7357c5b6
AM
5270_ACEOF
5271if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5272 $EGREP "free" >/dev/null 2>&1; then :
5273
7357c5b6
AM
5274else
5275 ac_cv_header_stdc=no
5276fi
5277rm -f conftest*
ac48eca1 5278
7357c5b6 5279fi
d7040cdb 5280
7357c5b6
AM
5281if test $ac_cv_header_stdc = yes; then
5282 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 5283 if test "$cross_compiling" = yes; then :
7357c5b6
AM
5284 :
5285else
81ecdfbb 5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5287/* end confdefs.h. */
5288#include <ctype.h>
81ecdfbb 5289#include <stdlib.h>
7357c5b6
AM
5290#if ((' ' & 0x0FF) == 0x020)
5291# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5292# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5293#else
5294# define ISLOWER(c) \
5295 (('a' <= (c) && (c) <= 'i') \
5296 || ('j' <= (c) && (c) <= 'r') \
5297 || ('s' <= (c) && (c) <= 'z'))
5298# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5299#endif
d7040cdb 5300
7357c5b6
AM
5301#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5302int
5303main ()
5304{
5305 int i;
5306 for (i = 0; i < 256; i++)
5307 if (XOR (islower (i), ISLOWER (i))
5308 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
5309 return 2;
5310 return 0;
7357c5b6
AM
5311}
5312_ACEOF
81ecdfbb 5313if ac_fn_c_try_run "$LINENO"; then :
7357c5b6 5314
81ecdfbb
RW
5315else
5316 ac_cv_header_stdc=no
252b5132 5317fi
81ecdfbb
RW
5318rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5319 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 5320fi
81ecdfbb 5321
7357c5b6
AM
5322fi
5323fi
81ecdfbb
RW
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5325$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 5326if test $ac_cv_header_stdc = yes; then
252b5132 5327
81ecdfbb 5328$as_echo "#define STDC_HEADERS 1" >>confdefs.h
252b5132 5329
ce2cded5 5330fi
252b5132 5331
7357c5b6 5332# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
5333for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5334 inttypes.h stdint.h unistd.h
81ecdfbb
RW
5335do :
5336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5337ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5338"
5339eval as_val=\$$as_ac_Header
5340 if test "x$as_val" = x""yes; then :
7357c5b6 5341 cat >>confdefs.h <<_ACEOF
81ecdfbb 5342#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 5343_ACEOF
42ecbf5e 5344
7357c5b6 5345fi
42ecbf5e 5346
7357c5b6 5347done
42ecbf5e
DJ
5348
5349
5350
81ecdfbb
RW
5351 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5352if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6 5353 MINIX=yes
ce2cded5 5354else
7357c5b6 5355 MINIX=
ce2cded5 5356fi
42ecbf5e 5357
e5a52504 5358
7357c5b6
AM
5359 if test "$MINIX" = yes; then
5360
81ecdfbb 5361$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb 5362
d7040cdb 5363
81ecdfbb 5364$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb 5365
d7040cdb 5366
81ecdfbb 5367$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 5368
7357c5b6 5369 fi
d7040cdb 5370
d7040cdb 5371
81ecdfbb
RW
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5373$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5374if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
ce2cded5 5376else
81ecdfbb 5377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5378/* end confdefs.h. */
5379
5380# define __EXTENSIONS__ 1
5381 $ac_includes_default
5382int
5383main ()
5384{
5385
5386 ;
5387 return 0;
5388}
5389_ACEOF
81ecdfbb 5390if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 5391 ac_cv_safe_to_define___extensions__=yes
ce2cded5 5392else
81ecdfbb 5393 ac_cv_safe_to_define___extensions__=no
ce2cded5 5394fi
81ecdfbb 5395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 5396fi
81ecdfbb
RW
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5398$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 5399 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 5400 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
7357c5b6 5401
81ecdfbb 5402 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
7357c5b6 5403
81ecdfbb 5404 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
7357c5b6 5405
81ecdfbb
RW
5406 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5407
5408 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
7357c5b6 5409
7357c5b6
AM
5410
5411
d053aef8 5412
da2f07f1 5413
3388710e
JM
5414# The tests for host and target for $enable_largefile require
5415# canonical names.
5416
5417
5418
da2f07f1
JK
5419# As the $enable_largefile decision depends on --enable-plugins we must set it
5420# even in directories otherwise not depending on the $plugins option.
5421
5422
5423# Check whether --enable-plugins was given.
5424if test "${enable_plugins+set}" = set; then :
5425 enableval=$enable_plugins; case "${enableval}" in
5426 yes | "") plugins=yes ;;
5427 no) plugins=no ;;
5428 *) plugins=yes ;;
5429 esac
5430else
5431 plugins=no
5432fi
5433
5434
5435
5436case "${host}" in
5437 sparc-*-solaris*|i[3-7]86-*-solaris*)
5438 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5439 # are mutually exclusive; and without procfs support, the bfd/ elf module
5440 # cannot provide certain routines such as elfcore_write_prpsinfo
5441 # or elfcore_write_prstatus. So unless the user explicitly requested
5442 # large-file support through the --enable-largefile switch, disable
5443 # large-file support in favor of procfs support.
5444 test "${target}" = "${host}" -a "x$plugins" = xno \
5445 && : ${enable_largefile="no"}
5446 ;;
5447esac
5448
81ecdfbb
RW
5449# Check whether --enable-largefile was given.
5450if test "${enable_largefile+set}" = set; then :
5451 enableval=$enable_largefile;
5452fi
5453
d053aef8
JK
5454if test "$enable_largefile" != no; then
5455
81ecdfbb
RW
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5457$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5458if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5459 $as_echo_n "(cached) " >&6
d053aef8
JK
5460else
5461 ac_cv_sys_largefile_CC=no
5462 if test "$GCC" != yes; then
5463 ac_save_CC=$CC
5464 while :; do
81ecdfbb
RW
5465 # IRIX 6.2 and later do not support large files by default,
5466 # so use the C compiler's -n32 option if that helps.
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5468/* end confdefs.h. */
5469#include <sys/types.h>
5470 /* Check that off_t can represent 2**63 - 1 correctly.
5471 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5472 since some C++ compilers masquerading as C compilers
5473 incorrectly reject 9223372036854775807. */
5474#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5475 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5476 && LARGE_OFF_T % 2147483647 == 1)
5477 ? 1 : -1];
5478int
5479main ()
5480{
5481
5482 ;
5483 return 0;
5484}
5485_ACEOF
81ecdfbb 5486 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5487 break
d053aef8 5488fi
81ecdfbb
RW
5489rm -f core conftest.err conftest.$ac_objext
5490 CC="$CC -n32"
5491 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5492 ac_cv_sys_largefile_CC=' -n32'; break
d053aef8 5493fi
81ecdfbb 5494rm -f core conftest.err conftest.$ac_objext
d053aef8
JK
5495 break
5496 done
5497 CC=$ac_save_CC
5498 rm -f conftest.$ac_ext
5499 fi
5500fi
81ecdfbb
RW
5501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5502$as_echo "$ac_cv_sys_largefile_CC" >&6; }
d053aef8
JK
5503 if test "$ac_cv_sys_largefile_CC" != no; then
5504 CC=$CC$ac_cv_sys_largefile_CC
5505 fi
5506
81ecdfbb
RW
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5508$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5509if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5510 $as_echo_n "(cached) " >&6
d053aef8
JK
5511else
5512 while :; do
81ecdfbb 5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5514/* end confdefs.h. */
5515#include <sys/types.h>
5516 /* Check that off_t can represent 2**63 - 1 correctly.
5517 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5518 since some C++ compilers masquerading as C compilers
5519 incorrectly reject 9223372036854775807. */
5520#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5521 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5522 && LARGE_OFF_T % 2147483647 == 1)
5523 ? 1 : -1];
5524int
5525main ()
5526{
5527
5528 ;
5529 return 0;
5530}
5531_ACEOF
81ecdfbb
RW
5532if ac_fn_c_try_compile "$LINENO"; then :
5533 ac_cv_sys_file_offset_bits=no; break
d053aef8 5534fi
81ecdfbb
RW
5535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5537/* end confdefs.h. */
5538#define _FILE_OFFSET_BITS 64
5539#include <sys/types.h>
5540 /* Check that off_t can represent 2**63 - 1 correctly.
5541 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5542 since some C++ compilers masquerading as C compilers
5543 incorrectly reject 9223372036854775807. */
5544#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5545 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5546 && LARGE_OFF_T % 2147483647 == 1)
5547 ? 1 : -1];
5548int
5549main ()
5550{
5551
5552 ;
5553 return 0;
5554}
5555_ACEOF
81ecdfbb 5556if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5557 ac_cv_sys_file_offset_bits=64; break
d053aef8 5558fi
81ecdfbb
RW
5559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560 ac_cv_sys_file_offset_bits=unknown
d053aef8
JK
5561 break
5562done
5563fi
81ecdfbb
RW
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5565$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5566case $ac_cv_sys_file_offset_bits in #(
5567 no | unknown) ;;
5568 *)
d053aef8
JK
5569cat >>confdefs.h <<_ACEOF
5570#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5571_ACEOF
81ecdfbb
RW
5572;;
5573esac
5574rm -rf conftest*
5575 if test $ac_cv_sys_file_offset_bits = unknown; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5577$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5578if test "${ac_cv_sys_large_files+set}" = set; then :
5579 $as_echo_n "(cached) " >&6
d053aef8
JK
5580else
5581 while :; do
81ecdfbb 5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5583/* end confdefs.h. */
5584#include <sys/types.h>
5585 /* Check that off_t can represent 2**63 - 1 correctly.
5586 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5587 since some C++ compilers masquerading as C compilers
5588 incorrectly reject 9223372036854775807. */
5589#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5590 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5591 && LARGE_OFF_T % 2147483647 == 1)
5592 ? 1 : -1];
5593int
5594main ()
5595{
5596
5597 ;
5598 return 0;
5599}
5600_ACEOF
81ecdfbb
RW
5601if ac_fn_c_try_compile "$LINENO"; then :
5602 ac_cv_sys_large_files=no; break
d053aef8 5603fi
81ecdfbb
RW
5604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5606/* end confdefs.h. */
5607#define _LARGE_FILES 1
5608#include <sys/types.h>
5609 /* Check that off_t can represent 2**63 - 1 correctly.
5610 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5611 since some C++ compilers masquerading as C compilers
5612 incorrectly reject 9223372036854775807. */
5613#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5614 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5615 && LARGE_OFF_T % 2147483647 == 1)
5616 ? 1 : -1];
5617int
5618main ()
5619{
5620
5621 ;
5622 return 0;
5623}
5624_ACEOF
81ecdfbb 5625if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5626 ac_cv_sys_large_files=1; break
d053aef8 5627fi
81ecdfbb
RW
5628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629 ac_cv_sys_large_files=unknown
d053aef8
JK
5630 break
5631done
5632fi
81ecdfbb
RW
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5634$as_echo "$ac_cv_sys_large_files" >&6; }
5635case $ac_cv_sys_large_files in #(
5636 no | unknown) ;;
5637 *)
d053aef8
JK
5638cat >>confdefs.h <<_ACEOF
5639#define _LARGE_FILES $ac_cv_sys_large_files
5640_ACEOF
81ecdfbb
RW
5641;;
5642esac
5643rm -rf conftest*
5644 fi
d053aef8
JK
5645fi
5646
42ecbf5e 5647
42ecbf5e 5648
da2f07f1 5649
b214d478
SE
5650case `pwd` in
5651 *\ * | *\ *)
81ecdfbb
RW
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5653$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
b214d478 5654esac
252b5132 5655
42ecbf5e 5656
d7040cdb 5657
b214d478
SE
5658macro_version='2.2.6'
5659macro_revision='1.3012'
d7040cdb 5660
d7040cdb
SE
5661
5662
d7040cdb 5663
d7040cdb 5664
42ecbf5e 5665
d7040cdb 5666
252b5132 5667
252b5132 5668
252b5132 5669
252b5132
RH
5670
5671
ce2cded5 5672
b214d478 5673ltmain="$ac_aux_dir/ltmain.sh"
ce2cded5 5674
81ecdfbb
RW
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5676$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5677if test "${ac_cv_path_SED+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
5679else
5680 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5681 for ac_i in 1 2 3 4 5 6 7; do
5682 ac_script="$ac_script$as_nl$ac_script"
5683 done
5684 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5685 { ac_script=; unset ac_script;}
5686 if test -z "$SED"; then
5687 ac_path_SED_found=false
5688 # Loop through the user's path and test for each of PROGNAME-LIST
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5690for as_dir in $PATH
5691do
5692 IFS=$as_save_IFS
5693 test -z "$as_dir" && as_dir=.
81ecdfbb 5694 for ac_prog in sed gsed; do
7357c5b6 5695 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5696 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5697 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5698# Check for GNU ac_path_SED and select it if it is found.
5699 # Check for GNU $ac_path_SED
5700case `"$ac_path_SED" --version 2>&1` in
5701*GNU*)
5702 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5703*)
5704 ac_count=0
5705 $as_echo_n 0123456789 >"conftest.in"
5706 while :
5707 do
5708 cat "conftest.in" "conftest.in" >"conftest.tmp"
5709 mv "conftest.tmp" "conftest.in"
5710 cp "conftest.in" "conftest.nl"
5711 $as_echo '' >> "conftest.nl"
5712 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5713 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5714 as_fn_arith $ac_count + 1 && ac_count=$as_val
5715 if test $ac_count -gt ${ac_path_SED_max-0}; then
5716 # Best one so far, save it but keep looking for a better one
5717 ac_cv_path_SED="$ac_path_SED"
5718 ac_path_SED_max=$ac_count
5719 fi
5720 # 10*(2^10) chars as input seems more than enough
5721 test $ac_count -gt 10 && break
5722 done
5723 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5724esac
5725
5726 $ac_path_SED_found && break 3
7357c5b6
AM
5727 done
5728 done
81ecdfbb 5729 done
7357c5b6 5730IFS=$as_save_IFS
81ecdfbb
RW
5731 if test -z "$ac_cv_path_SED"; then
5732 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
ce2cded5 5733 fi
81ecdfbb
RW
5734else
5735 ac_cv_path_SED=$SED
7357c5b6 5736fi
20e95c23 5737
81ecdfbb
RW
5738fi
5739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5740$as_echo "$ac_cv_path_SED" >&6; }
5741 SED="$ac_cv_path_SED"
5742 rm -f conftest.sed
20e95c23 5743
7357c5b6
AM
5744test -z "$SED" && SED=sed
5745Xsed="$SED -e 1s/^X//"
20e95c23
DJ
5746
5747
5748
5749
5750
5751
20e95c23 5752
20e95c23 5753
d7040cdb 5754
d7040cdb 5755
7357c5b6 5756
81ecdfbb
RW
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5758$as_echo_n "checking for fgrep... " >&6; }
5759if test "${ac_cv_path_FGREP+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
7357c5b6 5761else
81ecdfbb
RW
5762 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5763 then ac_cv_path_FGREP="$GREP -F"
5764 else
5765 if test -z "$FGREP"; then
5766 ac_path_FGREP_found=false
5767 # Loop through the user's path and test for each of PROGNAME-LIST
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5770do
5771 IFS=$as_save_IFS
5772 test -z "$as_dir" && as_dir=.
5773 for ac_prog in fgrep; do
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5776 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5777# Check for GNU ac_path_FGREP and select it if it is found.
5778 # Check for GNU $ac_path_FGREP
5779case `"$ac_path_FGREP" --version 2>&1` in
5780*GNU*)
5781 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5782*)
5783 ac_count=0
5784 $as_echo_n 0123456789 >"conftest.in"
5785 while :
5786 do
5787 cat "conftest.in" "conftest.in" >"conftest.tmp"
5788 mv "conftest.tmp" "conftest.in"
5789 cp "conftest.in" "conftest.nl"
5790 $as_echo 'FGREP' >> "conftest.nl"
5791 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5792 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5793 as_fn_arith $ac_count + 1 && ac_count=$as_val
5794 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5795 # Best one so far, save it but keep looking for a better one
5796 ac_cv_path_FGREP="$ac_path_FGREP"
5797 ac_path_FGREP_max=$ac_count
7357c5b6 5798 fi
81ecdfbb
RW
5799 # 10*(2^10) chars as input seems more than enough
5800 test $ac_count -gt 10 && break
5801 done
5802 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5803esac
5804
5805 $ac_path_FGREP_found && break 3
5806 done
5807 done
5808 done
5809IFS=$as_save_IFS
5810 if test -z "$ac_cv_path_FGREP"; then
5811 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5812 fi
5813else
5814 ac_cv_path_FGREP=$FGREP
5815fi
5816
5817 fi
20e95c23 5818fi
81ecdfbb
RW
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5820$as_echo "$ac_cv_path_FGREP" >&6; }
5821 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5822
5823
5824test -z "$GREP" && GREP=grep
5825
d7040cdb
SE
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
20e95c23 5837
ce2cded5 5838
d7040cdb 5839
7357c5b6
AM
5840
5841
5842
5843
81ecdfbb
RW
5844# Check whether --with-gnu-ld was given.
5845if test "${with_gnu_ld+set}" = set; then :
5846 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5847else
5848 with_gnu_ld=no
81ecdfbb
RW
5849fi
5850
7357c5b6
AM
5851ac_prog=ld
5852if test "$GCC" = yes; then
5853 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5855$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5856 case $host in
5857 *-*-mingw*)
5858 # gcc leaves a trailing carriage return which upsets mingw
5859 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5860 *)
5861 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5862 esac
5863 case $ac_prog in
5864 # Accept absolute paths.
5865 [\\/]* | ?:[\\/]*)
5866 re_direlt='/[^/][^/]*/\.\./'
5867 # Canonicalize the pathname of ld
5868 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5869 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5870 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5871 done
5872 test -z "$LD" && LD="$ac_prog"
5873 ;;
5874 "")
5875 # If it fails, then pretend we aren't using GCC.
5876 ac_prog=ld
5877 ;;
5878 *)
5879 # If it is relative, then search for the first ld in PATH.
5880 with_gnu_ld=unknown
5881 ;;
5882 esac
5883elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5885$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 5886else
81ecdfbb
RW
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5888$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5889fi
81ecdfbb
RW
5890if test "${lt_cv_path_LD+set}" = set; then :
5891 $as_echo_n "(cached) " >&6
ce2cded5 5892else
7357c5b6
AM
5893 if test -z "$LD"; then
5894 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5895 for ac_dir in $PATH; do
5896 IFS="$lt_save_ifs"
5897 test -z "$ac_dir" && ac_dir=.
5898 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5899 lt_cv_path_LD="$ac_dir/$ac_prog"
5900 # Check to see if the program is GNU ld. I'd rather use --version,
5901 # but apparently some variants of GNU ld only accept -v.
5902 # Break only if it was the GNU/non-GNU ld that we prefer.
5903 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5904 *GNU* | *'with BFD'*)
5905 test "$with_gnu_ld" != no && break
5906 ;;
5907 *)
5908 test "$with_gnu_ld" != yes && break
5909 ;;
5910 esac
5911 fi
5912 done
5913 IFS="$lt_save_ifs"
ce2cded5 5914else
7357c5b6 5915 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
5916fi
5917fi
7357c5b6
AM
5918
5919LD="$lt_cv_path_LD"
5920if test -n "$LD"; then
81ecdfbb
RW
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5922$as_echo "$LD" >&6; }
ce2cded5 5923else
81ecdfbb
RW
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925$as_echo "no" >&6; }
ce2cded5 5926fi
81ecdfbb
RW
5927test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5929$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5930if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5931 $as_echo_n "(cached) " >&6
ce2cded5 5932else
7357c5b6
AM
5933 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5934case `$LD -v 2>&1 </dev/null` in
5935*GNU* | *'with BFD'*)
5936 lt_cv_prog_gnu_ld=yes
5937 ;;
5938*)
5939 lt_cv_prog_gnu_ld=no
5940 ;;
5941esac
ce2cded5 5942fi
81ecdfbb
RW
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5944$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 5945with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
5946
5947
5948
5949
5950
5951
5952
5953
5954
81ecdfbb
RW
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5956$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5957if test "${lt_cv_path_NM+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
ce2cded5 5959else
7357c5b6
AM
5960 if test -n "$NM"; then
5961 # Let the user override the test.
5962 lt_cv_path_NM="$NM"
ce2cded5 5963else
7357c5b6
AM
5964 lt_nm_to_check="${ac_tool_prefix}nm"
5965 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5966 lt_nm_to_check="$lt_nm_to_check nm"
20e95c23 5967 fi
7357c5b6
AM
5968 for lt_tmp_nm in $lt_nm_to_check; do
5969 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5970 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5971 IFS="$lt_save_ifs"
5972 test -z "$ac_dir" && ac_dir=.
5973 tmp_nm="$ac_dir/$lt_tmp_nm"
5974 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5975 # Check to see if the nm accepts a BSD-compat flag.
5976 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5977 # nm: unknown option "B" ignored
5978 # Tru64's nm complains that /dev/null is an invalid object file
5979 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5980 */dev/null* | *'Invalid file or object type'*)
5981 lt_cv_path_NM="$tmp_nm -B"
5982 break
5983 ;;
5984 *)
5985 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5986 */dev/null*)
5987 lt_cv_path_NM="$tmp_nm -p"
5988 break
5989 ;;
5990 *)
5991 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5992 continue # so that we can try to find one that supports BSD flags
5993 ;;
5994 esac
5995 ;;
5996 esac
5997 fi
5998 done
5999 IFS="$lt_save_ifs"
6000 done
6001 : ${lt_cv_path_NM=no}
ce2cded5
L
6002fi
6003fi
81ecdfbb
RW
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6005$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
6006if test "$lt_cv_path_NM" != "no"; then
6007 NM="$lt_cv_path_NM"
ce2cded5 6008else
7357c5b6
AM
6009 # Didn't find any BSD compatible name lister, look for dumpbin.
6010 if test -n "$ac_tool_prefix"; then
6011 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6012 do
6013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6014set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016$as_echo_n "checking for $ac_word... " >&6; }
6017if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6018 $as_echo_n "(cached) " >&6
20e95c23 6019else
7357c5b6
AM
6020 if test -n "$DUMPBIN"; then
6021 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
6022else
6023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024for as_dir in $PATH
6025do
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6030 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6032 break 2
6033 fi
6034done
81ecdfbb
RW
6035 done
6036IFS=$as_save_IFS
d7040cdb 6037
20e95c23 6038fi
ce2cded5 6039fi
7357c5b6
AM
6040DUMPBIN=$ac_cv_prog_DUMPBIN
6041if test -n "$DUMPBIN"; then
81ecdfbb
RW
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6043$as_echo "$DUMPBIN" >&6; }
42ecbf5e 6044else
81ecdfbb
RW
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046$as_echo "no" >&6; }
42ecbf5e
DJ
6047fi
6048
81ecdfbb 6049
7357c5b6
AM
6050 test -n "$DUMPBIN" && break
6051 done
ce2cded5 6052fi
7357c5b6
AM
6053if test -z "$DUMPBIN"; then
6054 ac_ct_DUMPBIN=$DUMPBIN
6055 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6056do
6057 # Extract the first word of "$ac_prog", so it can be a program name with args.
6058set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6060$as_echo_n "checking for $ac_word... " >&6; }
6061if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6062 $as_echo_n "(cached) " >&6
42ecbf5e 6063else
7357c5b6
AM
6064 if test -n "$ac_ct_DUMPBIN"; then
6065 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
6066else
6067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068for as_dir in $PATH
6069do
6070 IFS=$as_save_IFS
6071 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6072 for ac_exec_ext in '' $ac_executable_extensions; do
6073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6074 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 6075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6076 break 2
6077 fi
6078done
81ecdfbb
RW
6079 done
6080IFS=$as_save_IFS
d7040cdb 6081
ce2cded5
L
6082fi
6083fi
7357c5b6
AM
6084ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6085if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6087$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 6088else
81ecdfbb
RW
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6090$as_echo "no" >&6; }
ce2cded5 6091fi
d7040cdb 6092
81ecdfbb 6093
7357c5b6 6094 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 6095done
d7040cdb 6096
81ecdfbb
RW
6097 if test "x$ac_ct_DUMPBIN" = x; then
6098 DUMPBIN=":"
6099 else
6100 case $cross_compiling:$ac_tool_warned in
6101yes:)
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6104ac_tool_warned=yes ;;
6105esac
6106 DUMPBIN=$ac_ct_DUMPBIN
6107 fi
ce2cded5 6108fi
7357c5b6
AM
6109
6110
6111 if test "$DUMPBIN" != ":"; then
6112 NM="$DUMPBIN"
6113 fi
ce2cded5 6114fi
7357c5b6
AM
6115test -z "$NM" && NM=nm
6116
6117
6118
6119
6120
6121
81ecdfbb
RW
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6123$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6124if test "${lt_cv_nm_interface+set}" = set; then :
6125 $as_echo_n "(cached) " >&6
20e95c23 6126else
7357c5b6
AM
6127 lt_cv_nm_interface="BSD nm"
6128 echo "int some_variable = 0;" > conftest.$ac_ext
3388710e 6129 (eval echo "\"\$as_me:6129: $ac_compile\"" >&5)
7357c5b6
AM
6130 (eval "$ac_compile" 2>conftest.err)
6131 cat conftest.err >&5
3388710e 6132 (eval echo "\"\$as_me:6132: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
6133 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6134 cat conftest.err >&5
3388710e 6135 (eval echo "\"\$as_me:6135: output\"" >&5)
7357c5b6
AM
6136 cat conftest.out >&5
6137 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6138 lt_cv_nm_interface="MS dumpbin"
6139 fi
6140 rm -f conftest*
20e95c23 6141fi
81ecdfbb
RW
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6143$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 6144
81ecdfbb
RW
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6146$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
6147LN_S=$as_ln_s
6148if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6150$as_echo "yes" >&6; }
ce2cded5 6151else
81ecdfbb
RW
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6153$as_echo "no, using $LN_S" >&6; }
d7040cdb 6154fi
20e95c23 6155
7357c5b6 6156# find the maximum length of command line arguments
81ecdfbb
RW
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6158$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6159if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6160 $as_echo_n "(cached) " >&6
7357c5b6
AM
6161else
6162 i=0
6163 teststring="ABCD"
20e95c23 6164
7357c5b6
AM
6165 case $build_os in
6166 msdosdjgpp*)
6167 # On DJGPP, this test can blow up pretty badly due to problems in libc
6168 # (any single argument exceeding 2000 bytes causes a buffer overrun
6169 # during glob expansion). Even if it were fixed, the result of this
6170 # check would be larger than it should be.
6171 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6172 ;;
20e95c23 6173
7357c5b6
AM
6174 gnu*)
6175 # Under GNU Hurd, this test is not required because there is
6176 # no limit to the length of command line arguments.
6177 # Libtool will interpret -1 as no limit whatsoever
6178 lt_cv_sys_max_cmd_len=-1;
6179 ;;
20e95c23 6180
b214d478 6181 cygwin* | mingw* | cegcc*)
7357c5b6
AM
6182 # On Win9x/ME, this test blows up -- it succeeds, but takes
6183 # about 5 minutes as the teststring grows exponentially.
6184 # Worse, since 9x/ME are not pre-emptively multitasking,
6185 # you end up with a "frozen" computer, even though with patience
6186 # the test eventually succeeds (with a max line length of 256k).
6187 # Instead, let's just punt: use the minimum linelength reported by
6188 # all of the supported platforms: 8192 (on NT/2K/XP).
6189 lt_cv_sys_max_cmd_len=8192;
6190 ;;
20e95c23 6191
7357c5b6
AM
6192 amigaos*)
6193 # On AmigaOS with pdksh, this test takes hours, literally.
6194 # So we just punt and use a minimum line length of 8192.
6195 lt_cv_sys_max_cmd_len=8192;
6196 ;;
20e95c23 6197
7357c5b6
AM
6198 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6199 # This has been around since 386BSD, at least. Likely further.
6200 if test -x /sbin/sysctl; then
6201 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6202 elif test -x /usr/sbin/sysctl; then
6203 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6204 else
6205 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6206 fi
6207 # And add a safety zone
6208 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6210 ;;
d7040cdb 6211
7357c5b6
AM
6212 interix*)
6213 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6214 lt_cv_sys_max_cmd_len=196608
6215 ;;
d7040cdb 6216
7357c5b6
AM
6217 osf*)
6218 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6219 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6220 # nice to cause kernel panics so lets avoid the loop below.
6221 # First set a reasonable default.
6222 lt_cv_sys_max_cmd_len=16384
6223 #
6224 if test -x /sbin/sysconfig; then
6225 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6226 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6227 esac
6228 fi
6229 ;;
6230 sco3.2v5*)
6231 lt_cv_sys_max_cmd_len=102400
6232 ;;
6233 sysv5* | sco5v6* | sysv4.2uw2*)
6234 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6235 if test -n "$kargmax"; then
6236 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6237 else
6238 lt_cv_sys_max_cmd_len=32768
6239 fi
ce2cded5
L
6240 ;;
6241 *)
b214d478
SE
6242 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6243 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
6244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6246 else
6247 # Make teststring a little bigger before we do anything with it.
6248 # a 1K string should be a reasonable start.
6249 for i in 1 2 3 4 5 6 7 8 ; do
6250 teststring=$teststring$teststring
6251 done
6252 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6253 # If test is not a shell built-in, we'll probably end up computing a
6254 # maximum length that is only half of the actual maximum length, but
6255 # we can't tell.
6256 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6257 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6258 test $i != 17 # 1/2 MB should be enough
6259 do
6260 i=`expr $i + 1`
6261 teststring=$teststring$teststring
6262 done
6263 # Only check the string length outside the loop.
6264 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6265 teststring=
6266 # Add a significant safety factor because C++ compilers can tack on
6267 # massive amounts of additional arguments before passing them to the
6268 # linker. It appears as though 1/2 is a usable value.
6269 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6270 fi
ce2cded5
L
6271 ;;
6272 esac
d7040cdb 6273
7357c5b6 6274fi
d7040cdb 6275
7357c5b6 6276if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6278$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 6279else
81ecdfbb
RW
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6281$as_echo "none" >&6; }
7357c5b6
AM
6282fi
6283max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
6284
6285
6286
6287
6288
d7040cdb 6289
7357c5b6
AM
6290: ${CP="cp -f"}
6291: ${MV="mv -f"}
6292: ${RM="rm -f"}
d7040cdb 6293
81ecdfbb
RW
6294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6295$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
6296# Try some XSI features
6297xsi_shell=no
6298( _lt_dummy="a/b/c"
6299 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
6300 = c,a/b,, \
6301 && eval 'test $(( 1 + 1 )) -eq 2 \
6302 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 6303 && xsi_shell=yes
81ecdfbb
RW
6304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6305$as_echo "$xsi_shell" >&6; }
d7040cdb 6306
d7040cdb 6307
81ecdfbb
RW
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6309$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
6310lt_shell_append=no
6311( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6312 >/dev/null 2>&1 \
6313 && lt_shell_append=yes
81ecdfbb
RW
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6315$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6316
6317
7357c5b6
AM
6318if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6319 lt_unset=unset
6320else
6321 lt_unset=false
6322fi
d7040cdb 6323
d7040cdb 6324
d7040cdb 6325
d7040cdb 6326
d7040cdb 6327
7357c5b6
AM
6328# test EBCDIC or ASCII
6329case `echo X|tr X '\101'` in
6330 A) # ASCII based system
6331 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6332 lt_SP2NL='tr \040 \012'
6333 lt_NL2SP='tr \015\012 \040\040'
6334 ;;
6335 *) # EBCDIC based system
6336 lt_SP2NL='tr \100 \n'
6337 lt_NL2SP='tr \r\n \100\100'
6338 ;;
6339esac
42ecbf5e 6340
d7040cdb
SE
6341
6342
6343
6344
6345
6346
d7040cdb 6347
d7040cdb 6348
81ecdfbb
RW
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6350$as_echo_n "checking for $LD option to reload object files... " >&6; }
6351if test "${lt_cv_ld_reload_flag+set}" = set; then :
6352 $as_echo_n "(cached) " >&6
7357c5b6
AM
6353else
6354 lt_cv_ld_reload_flag='-r'
6355fi
81ecdfbb
RW
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6357$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
6358reload_flag=$lt_cv_ld_reload_flag
6359case $reload_flag in
6360"" | " "*) ;;
6361*) reload_flag=" $reload_flag" ;;
6362esac
6363reload_cmds='$LD$reload_flag -o $output$reload_objs'
6364case $host_os in
6365 darwin*)
6366 if test "$GCC" = yes; then
6367 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6368 else
6369 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6370 fi
6371 ;;
6372esac
d7040cdb 6373
d7040cdb 6374
d7040cdb 6375
d7040cdb 6376
d7040cdb 6377
d7040cdb 6378
d7040cdb 6379
d7040cdb 6380
d7040cdb 6381
b214d478
SE
6382if test -n "$ac_tool_prefix"; then
6383 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6384set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6386$as_echo_n "checking for $ac_word... " >&6; }
6387if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6388 $as_echo_n "(cached) " >&6
b214d478
SE
6389else
6390 if test -n "$OBJDUMP"; then
6391 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6392else
6393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394for as_dir in $PATH
6395do
6396 IFS=$as_save_IFS
6397 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6400 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6402 break 2
6403 fi
6404done
81ecdfbb
RW
6405 done
6406IFS=$as_save_IFS
b214d478
SE
6407
6408fi
6409fi
6410OBJDUMP=$ac_cv_prog_OBJDUMP
6411if test -n "$OBJDUMP"; then
81ecdfbb
RW
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6413$as_echo "$OBJDUMP" >&6; }
b214d478 6414else
81ecdfbb
RW
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416$as_echo "no" >&6; }
b214d478
SE
6417fi
6418
81ecdfbb 6419
b214d478
SE
6420fi
6421if test -z "$ac_cv_prog_OBJDUMP"; then
6422 ac_ct_OBJDUMP=$OBJDUMP
6423 # Extract the first word of "objdump", so it can be a program name with args.
6424set dummy objdump; ac_word=$2
81ecdfbb
RW
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426$as_echo_n "checking for $ac_word... " >&6; }
6427if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
b214d478
SE
6429else
6430 if test -n "$ac_ct_OBJDUMP"; then
6431 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6432else
6433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434for as_dir in $PATH
6435do
6436 IFS=$as_save_IFS
6437 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6440 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6442 break 2
6443 fi
6444done
81ecdfbb
RW
6445 done
6446IFS=$as_save_IFS
b214d478 6447
b214d478
SE
6448fi
6449fi
6450ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6451if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6453$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 6454else
81ecdfbb
RW
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456$as_echo "no" >&6; }
b214d478
SE
6457fi
6458
81ecdfbb
RW
6459 if test "x$ac_ct_OBJDUMP" = x; then
6460 OBJDUMP="false"
6461 else
6462 case $cross_compiling:$ac_tool_warned in
6463yes:)
6464{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6465$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6466ac_tool_warned=yes ;;
6467esac
6468 OBJDUMP=$ac_ct_OBJDUMP
6469 fi
b214d478
SE
6470else
6471 OBJDUMP="$ac_cv_prog_OBJDUMP"
6472fi
6473
6474test -z "$OBJDUMP" && OBJDUMP=objdump
6475
6476
6477
6478
6479
6480
6481
6482
d7040cdb 6483
81ecdfbb
RW
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6485$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6486if test "${lt_cv_deplibs_check_method+set}" = set; then :
6487 $as_echo_n "(cached) " >&6
ce2cded5 6488else
7357c5b6
AM
6489 lt_cv_file_magic_cmd='$MAGIC_CMD'
6490lt_cv_file_magic_test_file=
6491lt_cv_deplibs_check_method='unknown'
6492# Need to set the preceding variable on all platforms that support
6493# interlibrary dependencies.
6494# 'none' -- dependencies not supported.
6495# `unknown' -- same as none, but documents that we really don't know.
6496# 'pass_all' -- all dependencies passed with no checks.
6497# 'test_compile' -- check by making test program.
6498# 'file_magic [[regex]]' -- check by looking for files in library path
6499# which responds to the $file_magic_cmd with a given extended regex.
6500# If you have `file' or equivalent on your system and you're not sure
6501# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 6502
ce2cded5 6503case $host_os in
7357c5b6
AM
6504aix[4-9]*)
6505 lt_cv_deplibs_check_method=pass_all
ce2cded5 6506 ;;
7357c5b6
AM
6507
6508beos*)
6509 lt_cv_deplibs_check_method=pass_all
ce2cded5 6510 ;;
7357c5b6
AM
6511
6512bsdi[45]*)
6513 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6514 lt_cv_file_magic_cmd='/usr/bin/file -L'
6515 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6516 ;;
7357c5b6
AM
6517
6518cygwin*)
6519 # func_win32_libid is a shell function defined in ltmain.sh
6520 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6521 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6522 ;;
7357c5b6
AM
6523
6524mingw* | pw32*)
6525 # Base MSYS/MinGW do not provide the 'file' command needed by
6526 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6527 # unless we find 'file', for example because we are cross-compiling.
6528 if ( file / ) >/dev/null 2>&1; then
6529 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6530 lt_cv_file_magic_cmd='func_win32_libid'
6531 else
6532 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6533 lt_cv_file_magic_cmd='$OBJDUMP -f'
6534 fi
ce2cded5 6535 ;;
7357c5b6 6536
b214d478
SE
6537cegcc)
6538 # use the weaker test based on 'objdump'. See mingw*.
6539 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6540 lt_cv_file_magic_cmd='$OBJDUMP -f'
6541 ;;
6542
7357c5b6
AM
6543darwin* | rhapsody*)
6544 lt_cv_deplibs_check_method=pass_all
ce2cded5 6545 ;;
7357c5b6
AM
6546
6547freebsd* | dragonfly*)
6548 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6549 case $host_cpu in
6550 i*86 )
6551 # Not sure whether the presence of OpenBSD here was a mistake.
6552 # Let's accept both of them until this is cleared up.
6553 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6554 lt_cv_file_magic_cmd=/usr/bin/file
6555 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6556 ;;
6557 esac
6558 else
6559 lt_cv_deplibs_check_method=pass_all
6560 fi
ce2cded5 6561 ;;
7357c5b6
AM
6562
6563gnu*)
6564 lt_cv_deplibs_check_method=pass_all
ce2cded5 6565 ;;
7357c5b6
AM
6566
6567hpux10.20* | hpux11*)
6568 lt_cv_file_magic_cmd=/usr/bin/file
6569 case $host_cpu in
6570 ia64*)
6571 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6572 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6573 ;;
6574 hppa*64*)
6575 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]'
6576 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6577 ;;
6578 *)
6579 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6580 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6581 ;;
6582 esac
ce2cded5 6583 ;;
d7040cdb 6584
7357c5b6
AM
6585interix[3-9]*)
6586 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6587 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6588 ;;
d7040cdb 6589
7357c5b6
AM
6590irix5* | irix6* | nonstopux*)
6591 case $LD in
6592 *-32|*"-32 ") libmagic=32-bit;;
6593 *-n32|*"-n32 ") libmagic=N32;;
6594 *-64|*"-64 ") libmagic=64-bit;;
6595 *) libmagic=never-match;;
6596 esac
6597 lt_cv_deplibs_check_method=pass_all
6598 ;;
d7040cdb 6599
7357c5b6 6600# This must be Linux ELF.
58e24671 6601linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
6602 lt_cv_deplibs_check_method=pass_all
6603 ;;
d7040cdb 6604
7357c5b6
AM
6605netbsd*)
6606 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6607 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6608 else
6609 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6610 fi
ce2cded5 6611 ;;
d7040cdb 6612
7357c5b6
AM
6613newos6*)
6614 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6615 lt_cv_file_magic_cmd=/usr/bin/file
6616 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6617 ;;
d7040cdb 6618
7357c5b6
AM
6619*nto* | *qnx*)
6620 lt_cv_deplibs_check_method=pass_all
6621 ;;
d7040cdb 6622
7357c5b6
AM
6623openbsd*)
6624 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 6626 else
7357c5b6 6627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 6628 fi
7357c5b6 6629 ;;
d7040cdb 6630
7357c5b6
AM
6631osf3* | osf4* | osf5*)
6632 lt_cv_deplibs_check_method=pass_all
6633 ;;
d7040cdb 6634
7357c5b6
AM
6635rdos*)
6636 lt_cv_deplibs_check_method=pass_all
6637 ;;
d7040cdb 6638
7357c5b6
AM
6639solaris*)
6640 lt_cv_deplibs_check_method=pass_all
6641 ;;
d7040cdb 6642
7357c5b6
AM
6643sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6644 lt_cv_deplibs_check_method=pass_all
6645 ;;
d7040cdb 6646
7357c5b6
AM
6647sysv4 | sysv4.3*)
6648 case $host_vendor in
6649 motorola)
6650 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]'
6651 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6652 ;;
6653 ncr)
6654 lt_cv_deplibs_check_method=pass_all
6655 ;;
6656 sequent)
6657 lt_cv_file_magic_cmd='/bin/file'
6658 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6659 ;;
6660 sni)
6661 lt_cv_file_magic_cmd='/bin/file'
6662 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6663 lt_cv_file_magic_test_file=/lib/libc.so
6664 ;;
6665 siemens)
6666 lt_cv_deplibs_check_method=pass_all
6667 ;;
6668 pc)
6669 lt_cv_deplibs_check_method=pass_all
6670 ;;
6671 esac
6672 ;;
d7040cdb 6673
7357c5b6
AM
6674tpf*)
6675 lt_cv_deplibs_check_method=pass_all
6676 ;;
6677esac
d7040cdb 6678
7357c5b6 6679fi
81ecdfbb
RW
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6681$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
6682file_magic_cmd=$lt_cv_file_magic_cmd
6683deplibs_check_method=$lt_cv_deplibs_check_method
6684test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
6685
6686
6687
7357c5b6
AM
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697if test -n "$ac_tool_prefix"; then
6698 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6699set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6701$as_echo_n "checking for $ac_word... " >&6; }
6702if test "${ac_cv_prog_AR+set}" = set; then :
6703 $as_echo_n "(cached) " >&6
7357c5b6
AM
6704else
6705 if test -n "$AR"; then
6706 ac_cv_prog_AR="$AR" # Let the user override the test.
6707else
6708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709for as_dir in $PATH
6710do
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6715 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6717 break 2
ce2cded5
L
6718 fi
6719done
81ecdfbb
RW
6720 done
6721IFS=$as_save_IFS
d7040cdb 6722
42ecbf5e 6723fi
ce2cded5 6724fi
7357c5b6
AM
6725AR=$ac_cv_prog_AR
6726if test -n "$AR"; then
81ecdfbb
RW
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6728$as_echo "$AR" >&6; }
42ecbf5e 6729else
81ecdfbb
RW
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731$as_echo "no" >&6; }
42ecbf5e
DJ
6732fi
6733
81ecdfbb 6734
7357c5b6
AM
6735fi
6736if test -z "$ac_cv_prog_AR"; then
6737 ac_ct_AR=$AR
6738 # Extract the first word of "ar", so it can be a program name with args.
6739set dummy ar; ac_word=$2
81ecdfbb
RW
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6741$as_echo_n "checking for $ac_word... " >&6; }
6742if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6743 $as_echo_n "(cached) " >&6
7357c5b6
AM
6744else
6745 if test -n "$ac_ct_AR"; then
6746 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6747else
6748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749for as_dir in $PATH
6750do
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6755 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6757 break 2
6758 fi
6759done
81ecdfbb
RW
6760 done
6761IFS=$as_save_IFS
42ecbf5e 6762
7357c5b6
AM
6763fi
6764fi
6765ac_ct_AR=$ac_cv_prog_ac_ct_AR
6766if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6768$as_echo "$ac_ct_AR" >&6; }
7357c5b6 6769else
81ecdfbb
RW
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771$as_echo "no" >&6; }
7357c5b6 6772fi
d7040cdb 6773
81ecdfbb
RW
6774 if test "x$ac_ct_AR" = x; then
6775 AR="false"
6776 else
6777 case $cross_compiling:$ac_tool_warned in
6778yes:)
6779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6781ac_tool_warned=yes ;;
6782esac
6783 AR=$ac_ct_AR
6784 fi
7357c5b6
AM
6785else
6786 AR="$ac_cv_prog_AR"
6787fi
d7040cdb 6788
7357c5b6
AM
6789test -z "$AR" && AR=ar
6790test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
6791
6792
6793
20e95c23 6794
d7040cdb 6795
d7040cdb
SE
6796
6797
6798
6799
6800
6801
7357c5b6
AM
6802if test -n "$ac_tool_prefix"; then
6803 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6804set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806$as_echo_n "checking for $ac_word... " >&6; }
6807if test "${ac_cv_prog_STRIP+set}" = set; then :
6808 $as_echo_n "(cached) " >&6
7357c5b6
AM
6809else
6810 if test -n "$STRIP"; then
6811 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6812else
6813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814for as_dir in $PATH
6815do
6816 IFS=$as_save_IFS
6817 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6818 for ac_exec_ext in '' $ac_executable_extensions; do
6819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6820 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6822 break 2
ce2cded5 6823 fi
7357c5b6 6824done
81ecdfbb
RW
6825 done
6826IFS=$as_save_IFS
d7040cdb 6827
7357c5b6
AM
6828fi
6829fi
6830STRIP=$ac_cv_prog_STRIP
6831if test -n "$STRIP"; then
81ecdfbb
RW
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6833$as_echo "$STRIP" >&6; }
7357c5b6 6834else
81ecdfbb
RW
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836$as_echo "no" >&6; }
7357c5b6
AM
6837fi
6838
81ecdfbb 6839
7357c5b6
AM
6840fi
6841if test -z "$ac_cv_prog_STRIP"; then
6842 ac_ct_STRIP=$STRIP
6843 # Extract the first word of "strip", so it can be a program name with args.
6844set dummy strip; ac_word=$2
81ecdfbb
RW
6845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6846$as_echo_n "checking for $ac_word... " >&6; }
6847if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6848 $as_echo_n "(cached) " >&6
7357c5b6
AM
6849else
6850 if test -n "$ac_ct_STRIP"; then
6851 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6852else
6853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854for as_dir in $PATH
6855do
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6860 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6862 break 2
ce2cded5 6863 fi
7357c5b6 6864done
81ecdfbb
RW
6865 done
6866IFS=$as_save_IFS
d7040cdb 6867
7357c5b6
AM
6868fi
6869fi
6870ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6871if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6873$as_echo "$ac_ct_STRIP" >&6; }
20e95c23 6874else
81ecdfbb
RW
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876$as_echo "no" >&6; }
7357c5b6 6877fi
d7040cdb 6878
81ecdfbb
RW
6879 if test "x$ac_ct_STRIP" = x; then
6880 STRIP=":"
6881 else
6882 case $cross_compiling:$ac_tool_warned in
6883yes:)
6884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6886ac_tool_warned=yes ;;
6887esac
6888 STRIP=$ac_ct_STRIP
6889 fi
7357c5b6
AM
6890else
6891 STRIP="$ac_cv_prog_STRIP"
6892fi
d7040cdb 6893
7357c5b6 6894test -z "$STRIP" && STRIP=:
d7040cdb 6895
d7040cdb
SE
6896
6897
6898
d7040cdb 6899
7357c5b6
AM
6900
6901if test -n "$ac_tool_prefix"; then
6902 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6903set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905$as_echo_n "checking for $ac_word... " >&6; }
6906if test "${ac_cv_prog_RANLIB+set}" = set; then :
6907 $as_echo_n "(cached) " >&6
ce2cded5 6908else
7357c5b6
AM
6909 if test -n "$RANLIB"; then
6910 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6911else
6912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913for as_dir in $PATH
ce2cded5 6914do
7357c5b6
AM
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6919 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6921 break 2
ce2cded5 6922 fi
7357c5b6 6923done
81ecdfbb
RW
6924 done
6925IFS=$as_save_IFS
7357c5b6 6926
ce2cded5 6927fi
7357c5b6
AM
6928fi
6929RANLIB=$ac_cv_prog_RANLIB
6930if test -n "$RANLIB"; then
81ecdfbb
RW
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6932$as_echo "$RANLIB" >&6; }
ce2cded5 6933else
81ecdfbb
RW
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935$as_echo "no" >&6; }
ce2cded5 6936fi
d7040cdb 6937
81ecdfbb 6938
7357c5b6
AM
6939fi
6940if test -z "$ac_cv_prog_RANLIB"; then
6941 ac_ct_RANLIB=$RANLIB
6942 # Extract the first word of "ranlib", so it can be a program name with args.
6943set dummy ranlib; ac_word=$2
81ecdfbb
RW
6944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945$as_echo_n "checking for $ac_word... " >&6; }
6946if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6947 $as_echo_n "(cached) " >&6
ce2cded5 6948else
7357c5b6
AM
6949 if test -n "$ac_ct_RANLIB"; then
6950 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6951else
6952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953for as_dir in $PATH
6954do
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6959 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6961 break 2
6962 fi
6963done
81ecdfbb
RW
6964 done
6965IFS=$as_save_IFS
7357c5b6 6966
ce2cded5 6967fi
7357c5b6
AM
6968fi
6969ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6970if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6972$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 6973else
81ecdfbb
RW
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975$as_echo "no" >&6; }
ce2cded5 6976fi
d7040cdb 6977
81ecdfbb
RW
6978 if test "x$ac_ct_RANLIB" = x; then
6979 RANLIB=":"
6980 else
6981 case $cross_compiling:$ac_tool_warned in
6982yes:)
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6985ac_tool_warned=yes ;;
6986esac
6987 RANLIB=$ac_ct_RANLIB
6988 fi
7357c5b6
AM
6989else
6990 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 6991fi
d7040cdb 6992
7357c5b6 6993test -z "$RANLIB" && RANLIB=:
d7040cdb 6994
7357c5b6
AM
6995
6996
6997
6998
6999
7000# Determine commands to create old-style static archives.
b214d478 7001old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
7002old_postinstall_cmds='chmod 644 $oldlib'
7003old_postuninstall_cmds=
7004
7005if test -n "$RANLIB"; then
7006 case $host_os in
7007 openbsd*)
7008 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7009 ;;
7010 *)
7011 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7012 ;;
7013 esac
7014 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 7015fi
7357c5b6
AM
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050# If no C compiler was specified, use CC.
7051LTCC=${LTCC-"$CC"}
7052
7053# If no C compiler flags were specified, use CFLAGS.
7054LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7055
7056# Allow CC to be a program name with arguments.
7057compiler=$CC
7058
7059
7060# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7062$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7063if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7064 $as_echo_n "(cached) " >&6
ce2cded5 7065else
d7040cdb 7066
7357c5b6
AM
7067# These are sane defaults that work on at least a few old systems.
7068# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 7069
7357c5b6
AM
7070# Character class describing NM global symbol codes.
7071symcode='[BCDEGRST]'
7072
7073# Regexp to match symbols that can be accessed directly from C.
7074sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7075
7076# Define system-specific variables.
7077case $host_os in
7078aix*)
7079 symcode='[BCDT]'
7080 ;;
b214d478 7081cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
7082 symcode='[ABCDGISTW]'
7083 ;;
7084hpux*)
7085 if test "$host_cpu" = ia64; then
7086 symcode='[ABCDEGRST]'
ce2cded5 7087 fi
7357c5b6
AM
7088 ;;
7089irix* | nonstopux*)
7090 symcode='[BCDEGRST]'
7091 ;;
7092osf*)
7093 symcode='[BCDEGQRST]'
7094 ;;
7095solaris*)
7096 symcode='[BDRT]'
7097 ;;
7098sco3.2v5*)
7099 symcode='[DT]'
7100 ;;
7101sysv4.2uw2*)
7102 symcode='[DT]'
7103 ;;
7104sysv5* | sco5v6* | unixware* | OpenUNIX*)
7105 symcode='[ABDT]'
7106 ;;
7107sysv4)
7108 symcode='[DFNSTU]'
7109 ;;
7110esac
d7040cdb 7111
7357c5b6
AM
7112# If we're using GNU nm, then use its standard symbol codes.
7113case `$NM -V 2>&1` in
7114*GNU* | *'with BFD'*)
7115 symcode='[ABCDGIRSTW]' ;;
7116esac
d7040cdb 7117
7357c5b6
AM
7118# Transform an extracted symbol line into a proper C declaration.
7119# Some systems (esp. on ia64) link data and code symbols differently,
7120# so use this general approach.
7121lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7122
7123# Transform an extracted symbol line into symbol name and symbol address
7124lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 7125lt_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'"
7357c5b6
AM
7126
7127# Handle CRLF in mingw tool chain
7128opt_cr=
7129case $build_os in
7130mingw*)
7131 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7132 ;;
7133esac
d7040cdb 7134
7357c5b6
AM
7135# Try without a prefix underscore, then with it.
7136for ac_symprfx in "" "_"; do
d7040cdb 7137
7357c5b6
AM
7138 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7139 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 7140
7357c5b6
AM
7141 # Write the raw and C identifiers.
7142 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7143 # Fake it for dumpbin and say T for any non-static function
7144 # and D for any global variable.
7145 # Also find C++ and __fastcall symbols from MSVC++,
7146 # which start with @ or ?.
7147 lt_cv_sys_global_symbol_pipe="$AWK '"\
7148" {last_section=section; section=\$ 3};"\
7149" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7150" \$ 0!~/External *\|/{next};"\
7151" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7152" {if(hide[section]) next};"\
7153" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7154" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7155" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7156" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7157" ' prfx=^$ac_symprfx"
7158 else
7159 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7160 fi
d7040cdb 7161
7357c5b6
AM
7162 # Check to see that the pipe works correctly.
7163 pipe_works=no
d7040cdb 7164
7357c5b6
AM
7165 rm -f conftest*
7166 cat > conftest.$ac_ext <<_LT_EOF
7167#ifdef __cplusplus
7168extern "C" {
7169#endif
7170char nm_test_var;
7171void nm_test_func(void);
7172void nm_test_func(void){}
7173#ifdef __cplusplus
20e95c23 7174}
7357c5b6
AM
7175#endif
7176int main(){nm_test_var='a';nm_test_func();return(0);}
7177_LT_EOF
7178
81ecdfbb 7179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 7180 (eval $ac_compile) 2>&5
20e95c23 7181 ac_status=$?
81ecdfbb
RW
7182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7183 test $ac_status = 0; }; then
7357c5b6
AM
7184 # Now try to grab the symbols.
7185 nlist=conftest.nm
81ecdfbb 7186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7357c5b6 7187 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
20e95c23 7188 ac_status=$?
81ecdfbb
RW
7189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7190 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
7191 # Try sorting and uniquifying the output.
7192 if sort "$nlist" | uniq > "$nlist"T; then
7193 mv -f "$nlist"T "$nlist"
7194 else
7195 rm -f "$nlist"T
7196 fi
d7040cdb 7197
7357c5b6
AM
7198 # Make sure that we snagged all the symbols we need.
7199 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7200 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7201 cat <<_LT_EOF > conftest.$ac_ext
7202#ifdef __cplusplus
7203extern "C" {
7204#endif
ce2cded5 7205
7357c5b6
AM
7206_LT_EOF
7207 # Now generate the symbol file.
7208 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 7209
7357c5b6 7210 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 7211
7357c5b6
AM
7212/* The mapping between symbol names and symbols. */
7213const struct {
7214 const char *name;
7215 void *address;
7216}
7217lt__PROGRAM__LTX_preloaded_symbols[] =
7218{
7219 { "@PROGRAM@", (void *) 0 },
7220_LT_EOF
7221 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7222 cat <<\_LT_EOF >> conftest.$ac_ext
7223 {0, (void *) 0}
7224};
d7040cdb 7225
7357c5b6
AM
7226/* This works around a problem in FreeBSD linker */
7227#ifdef FREEBSD_WORKAROUND
7228static const void *lt_preloaded_setup() {
7229 return lt__PROGRAM__LTX_preloaded_symbols;
7230}
ce2cded5 7231#endif
42ecbf5e 7232
7357c5b6 7233#ifdef __cplusplus
ce2cded5 7234}
7357c5b6
AM
7235#endif
7236_LT_EOF
7237 # Now try linking the two files.
7238 mv conftest.$ac_objext conftstm.$ac_objext
7239 lt_save_LIBS="$LIBS"
7240 lt_save_CFLAGS="$CFLAGS"
7241 LIBS="conftstm.$ac_objext"
7242 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
7244 (eval $ac_link) 2>&5
7245 ac_status=$?
81ecdfbb
RW
7246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7247 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
7248 pipe_works=yes
7249 fi
7250 LIBS="$lt_save_LIBS"
7251 CFLAGS="$lt_save_CFLAGS"
7252 else
7253 echo "cannot find nm_test_func in $nlist" >&5
7254 fi
7255 else
7256 echo "cannot find nm_test_var in $nlist" >&5
7257 fi
7258 else
7259 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7260 fi
7261 else
7262 echo "$progname: failed program was:" >&5
7263 cat conftest.$ac_ext >&5
7264 fi
b214d478 7265 rm -rf conftest* conftst*
7357c5b6
AM
7266
7267 # Do not use the global_symbol_pipe unless it works.
7268 if test "$pipe_works" = yes; then
7269 break
7270 else
7271 lt_cv_sys_global_symbol_pipe=
7272 fi
7273done
42ecbf5e 7274
ce2cded5 7275fi
7357c5b6
AM
7276
7277if test -z "$lt_cv_sys_global_symbol_pipe"; then
7278 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7279fi
7357c5b6 7280if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7282$as_echo "failed" >&6; }
7357c5b6 7283else
81ecdfbb
RW
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7285$as_echo "ok" >&6; }
ce2cded5 7286fi
e5a52504 7287
d7040cdb 7288
e5a52504 7289
d7040cdb 7290
d7040cdb 7291
d7040cdb 7292
d7040cdb 7293
d7040cdb 7294
d7040cdb 7295
d7040cdb 7296
d7040cdb 7297
d7040cdb 7298
7357c5b6
AM
7299
7300
7301
b214d478
SE
7302
7303
7304
7305
7306
7357c5b6
AM
7307
7308
81ecdfbb
RW
7309# Check whether --enable-libtool-lock was given.
7310if test "${enable_libtool_lock+set}" = set; then :
7311 enableval=$enable_libtool_lock;
7312fi
7357c5b6 7313
7357c5b6
AM
7314test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7315
7316# Some flags need to be propagated to the compiler or linker for good
7317# libtool support.
7318case $host in
7319ia64-*-hpux*)
7320 # Find out which ABI we are using.
7321 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7323 (eval $ac_compile) 2>&5
7324 ac_status=$?
81ecdfbb
RW
7325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7326 test $ac_status = 0; }; then
7357c5b6
AM
7327 case `/usr/bin/file conftest.$ac_objext` in
7328 *ELF-32*)
7329 HPUX_IA64_MODE="32"
7330 ;;
7331 *ELF-64*)
7332 HPUX_IA64_MODE="64"
7333 ;;
7334 esac
7335 fi
7336 rm -rf conftest*
7337 ;;
7338*-*-irix6*)
7339 # Find out which ABI we are using.
3388710e 7340 echo '#line 7340 "configure"' > conftest.$ac_ext
81ecdfbb 7341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7342 (eval $ac_compile) 2>&5
7343 ac_status=$?
81ecdfbb
RW
7344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7345 test $ac_status = 0; }; then
7357c5b6
AM
7346 if test "$lt_cv_prog_gnu_ld" = yes; then
7347 case `/usr/bin/file conftest.$ac_objext` in
7348 *32-bit*)
7349 LD="${LD-ld} -melf32bsmip"
7350 ;;
7351 *N32*)
7352 LD="${LD-ld} -melf32bmipn32"
7353 ;;
7354 *64-bit*)
7355 LD="${LD-ld} -melf64bmip"
7356 ;;
7357 esac
7358 else
7359 case `/usr/bin/file conftest.$ac_objext` in
7360 *32-bit*)
7361 LD="${LD-ld} -32"
7362 ;;
7363 *N32*)
7364 LD="${LD-ld} -n32"
7365 ;;
7366 *64-bit*)
7367 LD="${LD-ld} -64"
7368 ;;
7369 esac
7370 fi
7371 fi
7372 rm -rf conftest*
7373 ;;
7374
7375x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7376s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7377 # Find out which ABI we are using.
7378 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7380 (eval $ac_compile) 2>&5
7381 ac_status=$?
81ecdfbb
RW
7382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7383 test $ac_status = 0; }; then
7357c5b6
AM
7384 case `/usr/bin/file conftest.o` in
7385 *32-bit*)
7386 case $host in
7387 x86_64-*kfreebsd*-gnu)
7388 LD="${LD-ld} -m elf_i386_fbsd"
7389 ;;
7390 x86_64-*linux*)
7391 LD="${LD-ld} -m elf_i386"
7392 ;;
7393 ppc64-*linux*|powerpc64-*linux*)
7394 LD="${LD-ld} -m elf32ppclinux"
7395 ;;
7396 s390x-*linux*)
7397 LD="${LD-ld} -m elf_s390"
7398 ;;
7399 sparc64-*linux*)
7400 LD="${LD-ld} -m elf32_sparc"
7401 ;;
7402 esac
7403 ;;
7404 *64-bit*)
7405 case $host in
7406 x86_64-*kfreebsd*-gnu)
7407 LD="${LD-ld} -m elf_x86_64_fbsd"
7408 ;;
7409 x86_64-*linux*)
7410 LD="${LD-ld} -m elf_x86_64"
7411 ;;
7412 ppc*-*linux*|powerpc*-*linux*)
7413 LD="${LD-ld} -m elf64ppc"
7414 ;;
7415 s390*-*linux*|s390*-*tpf*)
7416 LD="${LD-ld} -m elf64_s390"
7417 ;;
7418 sparc*-*linux*)
7419 LD="${LD-ld} -m elf64_sparc"
7420 ;;
7421 esac
7422 ;;
7423 esac
7424 fi
7425 rm -rf conftest*
7426 ;;
7427
7428*-*-sco3.2v5*)
7429 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7430 SAVE_CFLAGS="$CFLAGS"
7431 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7433$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7434if test "${lt_cv_cc_needs_belf+set}" = set; then :
7435 $as_echo_n "(cached) " >&6
ce2cded5 7436else
7357c5b6
AM
7437 ac_ext=c
7438ac_cpp='$CPP $CPPFLAGS'
7439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7441ac_compiler_gnu=$ac_cv_c_compiler_gnu
7442
81ecdfbb 7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 7444/* end confdefs.h. */
d7040cdb 7445
7357c5b6
AM
7446int
7447main ()
7448{
7449
7450 ;
7451 return 0;
7452}
ce2cded5 7453_ACEOF
81ecdfbb 7454if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7455 lt_cv_cc_needs_belf=yes
ce2cded5 7456else
81ecdfbb 7457 lt_cv_cc_needs_belf=no
ce2cded5 7458fi
81ecdfbb
RW
7459rm -f core conftest.err conftest.$ac_objext \
7460 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7461 ac_ext=c
7462ac_cpp='$CPP $CPPFLAGS'
7463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7465ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7466
b214d478 7467fi
81ecdfbb
RW
7468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7469$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
7470 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7471 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7472 CFLAGS="$SAVE_CFLAGS"
7473 fi
7474 ;;
7475sparc*-*solaris*)
7476 # Find out which ABI we are using.
7477 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
7479 (eval $ac_compile) 2>&5
7480 ac_status=$?
81ecdfbb
RW
7481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7482 test $ac_status = 0; }; then
b214d478
SE
7483 case `/usr/bin/file conftest.o` in
7484 *64-bit*)
7485 case $lt_cv_prog_gnu_ld in
7486 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7487 *)
7488 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7489 LD="${LD-ld} -64"
7490 fi
7491 ;;
7492 esac
7493 ;;
7494 esac
7495 fi
7496 rm -rf conftest*
7497 ;;
7498esac
7499
7500need_locks="$enable_libtool_lock"
7501
7502
7503 case $host_os in
7504 rhapsody* | darwin*)
7505 if test -n "$ac_tool_prefix"; then
7506 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7507set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7509$as_echo_n "checking for $ac_word... " >&6; }
7510if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7511 $as_echo_n "(cached) " >&6
b214d478
SE
7512else
7513 if test -n "$DSYMUTIL"; then
7514 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7515else
7516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517for as_dir in $PATH
7518do
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7523 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7525 break 2
7526 fi
7527done
81ecdfbb
RW
7528 done
7529IFS=$as_save_IFS
b214d478
SE
7530
7531fi
7532fi
7533DSYMUTIL=$ac_cv_prog_DSYMUTIL
7534if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7536$as_echo "$DSYMUTIL" >&6; }
b214d478 7537else
81ecdfbb
RW
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539$as_echo "no" >&6; }
b214d478
SE
7540fi
7541
81ecdfbb 7542
b214d478
SE
7543fi
7544if test -z "$ac_cv_prog_DSYMUTIL"; then
7545 ac_ct_DSYMUTIL=$DSYMUTIL
7546 # Extract the first word of "dsymutil", so it can be a program name with args.
7547set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549$as_echo_n "checking for $ac_word... " >&6; }
7550if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7551 $as_echo_n "(cached) " >&6
b214d478
SE
7552else
7553 if test -n "$ac_ct_DSYMUTIL"; then
7554 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7555else
7556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557for as_dir in $PATH
7558do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7563 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7565 break 2
7566 fi
7567done
81ecdfbb
RW
7568 done
7569IFS=$as_save_IFS
b214d478 7570
b214d478
SE
7571fi
7572fi
7573ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7574if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7576$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 7577else
81ecdfbb
RW
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579$as_echo "no" >&6; }
b214d478
SE
7580fi
7581
81ecdfbb
RW
7582 if test "x$ac_ct_DSYMUTIL" = x; then
7583 DSYMUTIL=":"
7584 else
7585 case $cross_compiling:$ac_tool_warned in
7586yes:)
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7589ac_tool_warned=yes ;;
7590esac
7591 DSYMUTIL=$ac_ct_DSYMUTIL
7592 fi
b214d478
SE
7593else
7594 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7595fi
7596
7597 if test -n "$ac_tool_prefix"; then
7598 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7599set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601$as_echo_n "checking for $ac_word... " >&6; }
7602if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7603 $as_echo_n "(cached) " >&6
b214d478
SE
7604else
7605 if test -n "$NMEDIT"; then
7606 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7607else
7608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609for as_dir in $PATH
7610do
7611 IFS=$as_save_IFS
7612 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7615 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7617 break 2
7618 fi
7619done
81ecdfbb
RW
7620 done
7621IFS=$as_save_IFS
b214d478
SE
7622
7623fi
7624fi
7625NMEDIT=$ac_cv_prog_NMEDIT
7626if test -n "$NMEDIT"; then
81ecdfbb
RW
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7628$as_echo "$NMEDIT" >&6; }
b214d478 7629else
81ecdfbb
RW
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631$as_echo "no" >&6; }
b214d478
SE
7632fi
7633
81ecdfbb 7634
b214d478
SE
7635fi
7636if test -z "$ac_cv_prog_NMEDIT"; then
7637 ac_ct_NMEDIT=$NMEDIT
7638 # Extract the first word of "nmedit", so it can be a program name with args.
7639set dummy nmedit; ac_word=$2
81ecdfbb
RW
7640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641$as_echo_n "checking for $ac_word... " >&6; }
7642if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7643 $as_echo_n "(cached) " >&6
b214d478
SE
7644else
7645 if test -n "$ac_ct_NMEDIT"; then
7646 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7647else
7648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649for as_dir in $PATH
7650do
7651 IFS=$as_save_IFS
7652 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7653 for ac_exec_ext in '' $ac_executable_extensions; do
7654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7655 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7657 break 2
7658 fi
7659done
81ecdfbb
RW
7660 done
7661IFS=$as_save_IFS
b214d478 7662
b214d478
SE
7663fi
7664fi
7665ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7666if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7668$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 7669else
81ecdfbb
RW
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671$as_echo "no" >&6; }
b214d478
SE
7672fi
7673
81ecdfbb
RW
7674 if test "x$ac_ct_NMEDIT" = x; then
7675 NMEDIT=":"
7676 else
7677 case $cross_compiling:$ac_tool_warned in
7678yes:)
7679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7681ac_tool_warned=yes ;;
7682esac
7683 NMEDIT=$ac_ct_NMEDIT
7684 fi
b214d478
SE
7685else
7686 NMEDIT="$ac_cv_prog_NMEDIT"
7687fi
7688
7689 if test -n "$ac_tool_prefix"; then
7690 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7691set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693$as_echo_n "checking for $ac_word... " >&6; }
7694if test "${ac_cv_prog_LIPO+set}" = set; then :
7695 $as_echo_n "(cached) " >&6
b214d478
SE
7696else
7697 if test -n "$LIPO"; then
7698 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7699else
7700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701for as_dir in $PATH
7702do
7703 IFS=$as_save_IFS
7704 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7707 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7709 break 2
7710 fi
7711done
81ecdfbb
RW
7712 done
7713IFS=$as_save_IFS
b214d478
SE
7714
7715fi
7716fi
7717LIPO=$ac_cv_prog_LIPO
7718if test -n "$LIPO"; then
81ecdfbb
RW
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7720$as_echo "$LIPO" >&6; }
b214d478 7721else
81ecdfbb
RW
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723$as_echo "no" >&6; }
b214d478
SE
7724fi
7725
81ecdfbb 7726
b214d478
SE
7727fi
7728if test -z "$ac_cv_prog_LIPO"; then
7729 ac_ct_LIPO=$LIPO
7730 # Extract the first word of "lipo", so it can be a program name with args.
7731set dummy lipo; ac_word=$2
81ecdfbb
RW
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733$as_echo_n "checking for $ac_word... " >&6; }
7734if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7735 $as_echo_n "(cached) " >&6
b214d478
SE
7736else
7737 if test -n "$ac_ct_LIPO"; then
7738 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7739else
7740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741for as_dir in $PATH
7742do
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7747 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7749 break 2
7750 fi
7751done
81ecdfbb
RW
7752 done
7753IFS=$as_save_IFS
b214d478 7754
b214d478
SE
7755fi
7756fi
7757ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7758if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7760$as_echo "$ac_ct_LIPO" >&6; }
b214d478 7761else
81ecdfbb
RW
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763$as_echo "no" >&6; }
b214d478
SE
7764fi
7765
81ecdfbb
RW
7766 if test "x$ac_ct_LIPO" = x; then
7767 LIPO=":"
7768 else
7769 case $cross_compiling:$ac_tool_warned in
7770yes:)
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7773ac_tool_warned=yes ;;
7774esac
7775 LIPO=$ac_ct_LIPO
7776 fi
b214d478
SE
7777else
7778 LIPO="$ac_cv_prog_LIPO"
7779fi
7780
7781 if test -n "$ac_tool_prefix"; then
7782 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7783set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785$as_echo_n "checking for $ac_word... " >&6; }
7786if test "${ac_cv_prog_OTOOL+set}" = set; then :
7787 $as_echo_n "(cached) " >&6
b214d478
SE
7788else
7789 if test -n "$OTOOL"; then
7790 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7791else
7792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793for as_dir in $PATH
7794do
7795 IFS=$as_save_IFS
7796 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7799 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7801 break 2
7802 fi
7803done
81ecdfbb
RW
7804 done
7805IFS=$as_save_IFS
b214d478
SE
7806
7807fi
7808fi
7809OTOOL=$ac_cv_prog_OTOOL
7810if test -n "$OTOOL"; then
81ecdfbb
RW
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7812$as_echo "$OTOOL" >&6; }
b214d478 7813else
81ecdfbb
RW
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815$as_echo "no" >&6; }
b214d478
SE
7816fi
7817
81ecdfbb 7818
b214d478
SE
7819fi
7820if test -z "$ac_cv_prog_OTOOL"; then
7821 ac_ct_OTOOL=$OTOOL
7822 # Extract the first word of "otool", so it can be a program name with args.
7823set dummy otool; ac_word=$2
81ecdfbb
RW
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825$as_echo_n "checking for $ac_word... " >&6; }
7826if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
b214d478
SE
7828else
7829 if test -n "$ac_ct_OTOOL"; then
7830 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7831else
7832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833for as_dir in $PATH
7834do
7835 IFS=$as_save_IFS
7836 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7837 for ac_exec_ext in '' $ac_executable_extensions; do
7838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7839 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7841 break 2
7842 fi
7843done
81ecdfbb
RW
7844 done
7845IFS=$as_save_IFS
b214d478 7846
b214d478
SE
7847fi
7848fi
7849ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7850if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7852$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 7853else
81ecdfbb
RW
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855$as_echo "no" >&6; }
b214d478
SE
7856fi
7857
81ecdfbb
RW
7858 if test "x$ac_ct_OTOOL" = x; then
7859 OTOOL=":"
7860 else
7861 case $cross_compiling:$ac_tool_warned in
7862yes:)
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7865ac_tool_warned=yes ;;
7866esac
7867 OTOOL=$ac_ct_OTOOL
7868 fi
b214d478
SE
7869else
7870 OTOOL="$ac_cv_prog_OTOOL"
7871fi
7872
7873 if test -n "$ac_tool_prefix"; then
7874 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7875set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877$as_echo_n "checking for $ac_word... " >&6; }
7878if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
b214d478
SE
7880else
7881 if test -n "$OTOOL64"; then
7882 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7883else
7884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885for as_dir in $PATH
7886do
7887 IFS=$as_save_IFS
7888 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7891 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7893 break 2
7894 fi
7895done
81ecdfbb
RW
7896 done
7897IFS=$as_save_IFS
b214d478
SE
7898
7899fi
7900fi
7901OTOOL64=$ac_cv_prog_OTOOL64
7902if test -n "$OTOOL64"; then
81ecdfbb
RW
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7904$as_echo "$OTOOL64" >&6; }
b214d478 7905else
81ecdfbb
RW
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907$as_echo "no" >&6; }
b214d478
SE
7908fi
7909
81ecdfbb 7910
b214d478
SE
7911fi
7912if test -z "$ac_cv_prog_OTOOL64"; then
7913 ac_ct_OTOOL64=$OTOOL64
7914 # Extract the first word of "otool64", so it can be a program name with args.
7915set dummy otool64; ac_word=$2
81ecdfbb
RW
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917$as_echo_n "checking for $ac_word... " >&6; }
7918if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
b214d478
SE
7920else
7921 if test -n "$ac_ct_OTOOL64"; then
7922 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7923else
7924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925for as_dir in $PATH
7926do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7931 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7933 break 2
7934 fi
7935done
81ecdfbb
RW
7936 done
7937IFS=$as_save_IFS
b214d478 7938
b214d478
SE
7939fi
7940fi
7941ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7942if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7944$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 7945else
81ecdfbb
RW
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947$as_echo "no" >&6; }
b214d478
SE
7948fi
7949
81ecdfbb
RW
7950 if test "x$ac_ct_OTOOL64" = x; then
7951 OTOOL64=":"
7952 else
7953 case $cross_compiling:$ac_tool_warned in
7954yes:)
7955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7957ac_tool_warned=yes ;;
7958esac
7959 OTOOL64=$ac_ct_OTOOL64
7960 fi
b214d478
SE
7961else
7962 OTOOL64="$ac_cv_prog_OTOOL64"
7963fi
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
81ecdfbb
RW
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7992$as_echo_n "checking for -single_module linker flag... " >&6; }
7993if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7994 $as_echo_n "(cached) " >&6
b214d478
SE
7995else
7996 lt_cv_apple_cc_single_mod=no
7997 if test -z "${LT_MULTI_MODULE}"; then
7998 # By default we will add the -single_module flag. You can override
7999 # by either setting the environment variable LT_MULTI_MODULE
8000 # non-empty at configure time, or by adding -multi_module to the
8001 # link flags.
8002 rm -rf libconftest.dylib*
8003 echo "int foo(void){return 1;}" > conftest.c
8004 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8005-dynamiclib -Wl,-single_module conftest.c" >&5
8006 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8007 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8008 _lt_result=$?
8009 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8010 lt_cv_apple_cc_single_mod=yes
8011 else
8012 cat conftest.err >&5
8013 fi
8014 rm -rf libconftest.dylib*
8015 rm -f conftest.*
8016 fi
8017fi
81ecdfbb
RW
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8019$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8021$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8022if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8023 $as_echo_n "(cached) " >&6
b214d478
SE
8024else
8025 lt_cv_ld_exported_symbols_list=no
8026 save_LDFLAGS=$LDFLAGS
8027 echo "_main" > conftest.sym
8028 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 8029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
8030/* end confdefs.h. */
8031
8032int
8033main ()
8034{
8035
8036 ;
8037 return 0;
8038}
8039_ACEOF
81ecdfbb 8040if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
8041 lt_cv_ld_exported_symbols_list=yes
8042else
81ecdfbb 8043 lt_cv_ld_exported_symbols_list=no
b214d478 8044fi
81ecdfbb
RW
8045rm -f core conftest.err conftest.$ac_objext \
8046 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
8047 LDFLAGS="$save_LDFLAGS"
8048
8049fi
81ecdfbb
RW
8050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8051$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
b214d478
SE
8052 case $host_os in
8053 rhapsody* | darwin1.[012])
8054 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8055 darwin1.*)
8056 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8057 darwin*) # darwin 5.x on
8058 # if running on 10.5 or later, the deployment target defaults
8059 # to the OS version, if on x86, and 10.4, the deployment
8060 # target defaults to 10.4. Don't you love it?
8061 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8062 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8063 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8064 10.[012]*)
8065 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8066 10.*)
8067 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8068 esac
8069 ;;
8070 esac
8071 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8072 _lt_dar_single_mod='$single_module'
8073 fi
8074 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8075 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8076 else
8077 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8078 fi
8079 if test "$DSYMUTIL" != ":"; then
8080 _lt_dsymutil='~$DSYMUTIL $lib || :'
8081 else
8082 _lt_dsymutil=
8083 fi
8084 ;;
8085 esac
8086
b214d478 8087for ac_header in dlfcn.h
81ecdfbb
RW
8088do :
8089 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8090"
8091if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
b214d478 8092 cat >>confdefs.h <<_ACEOF
81ecdfbb 8093#define HAVE_DLFCN_H 1
b214d478
SE
8094_ACEOF
8095
8096fi
8097
8098done
8099
8100
8101
8102# Set options
8103
8104
8105
8106 enable_dlopen=no
8107
8108
8109 enable_win32_dll=no
8110
8111
81ecdfbb
RW
8112 # Check whether --enable-shared was given.
8113if test "${enable_shared+set}" = set; then :
8114 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
8115 case $enableval in
8116 yes) enable_shared=yes ;;
8117 no) enable_shared=no ;;
8118 *)
8119 enable_shared=no
8120 # Look at the argument we got. We use all the common list separators.
8121 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8122 for pkg in $enableval; do
8123 IFS="$lt_save_ifs"
8124 if test "X$pkg" = "X$p"; then
8125 enable_shared=yes
8126 fi
8127 done
8128 IFS="$lt_save_ifs"
8129 ;;
8130 esac
8131else
8132 enable_shared=yes
81ecdfbb 8133fi
b214d478
SE
8134
8135
8136
8137
8138
8139
8140
8141
81ecdfbb
RW
8142
8143 # Check whether --enable-static was given.
8144if test "${enable_static+set}" = set; then :
8145 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
8146 case $enableval in
8147 yes) enable_static=yes ;;
8148 no) enable_static=no ;;
8149 *)
8150 enable_static=no
8151 # Look at the argument we got. We use all the common list separators.
8152 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8153 for pkg in $enableval; do
8154 IFS="$lt_save_ifs"
8155 if test "X$pkg" = "X$p"; then
8156 enable_static=yes
8157 fi
8158 done
8159 IFS="$lt_save_ifs"
8160 ;;
8161 esac
8162else
8163 enable_static=yes
81ecdfbb 8164fi
b214d478
SE
8165
8166
8167
8168
8169
8170
8171
8172
8173
81ecdfbb
RW
8174
8175# Check whether --with-pic was given.
8176if test "${with_pic+set}" = set; then :
8177 withval=$with_pic; pic_mode="$withval"
b214d478
SE
8178else
8179 pic_mode=default
81ecdfbb
RW
8180fi
8181
b214d478
SE
8182
8183test -z "$pic_mode" && pic_mode=default
8184
8185
8186
8187
8188
8189
8190
81ecdfbb
RW
8191 # Check whether --enable-fast-install was given.
8192if test "${enable_fast_install+set}" = set; then :
8193 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
8194 case $enableval in
8195 yes) enable_fast_install=yes ;;
8196 no) enable_fast_install=no ;;
8197 *)
8198 enable_fast_install=no
8199 # Look at the argument we got. We use all the common list separators.
8200 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8201 for pkg in $enableval; do
8202 IFS="$lt_save_ifs"
8203 if test "X$pkg" = "X$p"; then
8204 enable_fast_install=yes
8205 fi
8206 done
8207 IFS="$lt_save_ifs"
7357c5b6
AM
8208 ;;
8209 esac
b214d478
SE
8210else
8211 enable_fast_install=yes
81ecdfbb
RW
8212fi
8213
ce2cded5 8214
ce2cded5
L
8215
8216
ce2cded5 8217
42ecbf5e 8218
d7040cdb 8219
d7040cdb 8220
d7040cdb 8221
d7040cdb 8222
d7040cdb 8223
ce2cded5
L
8224# This can be used to rebuild libtool when needed
8225LIBTOOL_DEPS="$ltmain"
d7040cdb 8226
ce2cded5
L
8227# Always use our own libtool.
8228LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8229
d7040cdb 8230
d7040cdb 8231
d7040cdb 8232
d7040cdb 8233
d7040cdb 8234
d7040cdb 8235
d7040cdb 8236
d7040cdb 8237
d7040cdb 8238
d7040cdb 8239
d7040cdb 8240
d7040cdb 8241
d7040cdb 8242
d7040cdb 8243
d7040cdb 8244
d7040cdb
SE
8245
8246
8247
8248
8249
8250
8251
8252
8253
ce2cded5 8254test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8255
8256
8257
8258
8259
8260
d7040cdb
SE
8261
8262
8263
8264
8265
8266
8267
8268
ce2cded5
L
8269if test -n "${ZSH_VERSION+set}" ; then
8270 setopt NO_GLOB_SUBST
8271fi
d7040cdb 8272
81ecdfbb
RW
8273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8274$as_echo_n "checking for objdir... " >&6; }
8275if test "${lt_cv_objdir+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
ce2cded5
L
8277else
8278 rm -f .libs 2>/dev/null
8279mkdir .libs 2>/dev/null
8280if test -d .libs; then
8281 lt_cv_objdir=.libs
8282else
8283 # MS-DOS does not allow filenames that begin with a dot.
8284 lt_cv_objdir=_libs
8285fi
8286rmdir .libs 2>/dev/null
8287fi
81ecdfbb
RW
8288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8289$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8290objdir=$lt_cv_objdir
d7040cdb
SE
8291
8292
8293
8294
8295
ce2cded5
L
8296cat >>confdefs.h <<_ACEOF
8297#define LT_OBJDIR "$lt_cv_objdir/"
8298_ACEOF
d7040cdb
SE
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
ce2cded5
L
8316case $host_os in
8317aix3*)
8318 # AIX sometimes has problems with the GCC collect2 program. For some
8319 # reason, if we set the COLLECT_NAMES environment variable, the problems
8320 # vanish in a puff of smoke.
8321 if test "X${COLLECT_NAMES+set}" != Xset; then
8322 COLLECT_NAMES=
8323 export COLLECT_NAMES
8324 fi
8325 ;;
8326esac
d7040cdb 8327
ce2cded5
L
8328# Sed substitution that helps us do robust quoting. It backslashifies
8329# metacharacters that are still active within double-quoted strings.
8330sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 8331
ce2cded5
L
8332# Same as above, but do not quote variable references.
8333double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 8334
ce2cded5
L
8335# Sed substitution to delay expansion of an escaped shell variable in a
8336# double_quote_subst'ed string.
8337delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 8338
ce2cded5
L
8339# Sed substitution to delay expansion of an escaped single quote.
8340delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 8341
ce2cded5
L
8342# Sed substitution to avoid accidental globbing in evaled expressions
8343no_glob_subst='s/\*/\\\*/g'
d7040cdb 8344
ce2cded5
L
8345# Global variables:
8346ofile=libtool
8347can_build_shared=yes
d7040cdb 8348
ce2cded5
L
8349# All known linkers require a `.a' archive for static linking (except MSVC,
8350# which needs '.lib').
8351libext=a
d7040cdb 8352
ce2cded5 8353with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8354
ce2cded5
L
8355old_CC="$CC"
8356old_CFLAGS="$CFLAGS"
d7040cdb 8357
ce2cded5
L
8358# Set sane defaults for various variables
8359test -z "$CC" && CC=cc
8360test -z "$LTCC" && LTCC=$CC
8361test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8362test -z "$LD" && LD=ld
8363test -z "$ac_objext" && ac_objext=o
d7040cdb 8364
ce2cded5
L
8365for cc_temp in $compiler""; do
8366 case $cc_temp in
8367 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8368 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8369 \-*) ;;
8370 *) break;;
8371 esac
8372done
8373cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d7040cdb
SE
8374
8375
ce2cded5
L
8376# Only perform the check for file, if the check method requires it
8377test -z "$MAGIC_CMD" && MAGIC_CMD=file
8378case $deplibs_check_method in
8379file_magic*)
8380 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8382$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8383if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
ce2cded5
L
8385else
8386 case $MAGIC_CMD in
8387[\\/*] | ?:[\\/]*)
8388 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8389 ;;
8390*)
8391 lt_save_MAGIC_CMD="$MAGIC_CMD"
8392 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8393 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8394 for ac_dir in $ac_dummy; do
8395 IFS="$lt_save_ifs"
8396 test -z "$ac_dir" && ac_dir=.
8397 if test -f $ac_dir/${ac_tool_prefix}file; then
8398 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8399 if test -n "$file_magic_test_file"; then
8400 case $deplibs_check_method in
8401 "file_magic "*)
8402 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8403 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8404 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8405 $EGREP "$file_magic_regex" > /dev/null; then
8406 :
8407 else
8408 cat <<_LT_EOF 1>&2
d7040cdb 8409
ce2cded5
L
8410*** Warning: the command libtool uses to detect shared libraries,
8411*** $file_magic_cmd, produces output that libtool cannot recognize.
8412*** The result is that libtool may fail to recognize shared libraries
8413*** as such. This will affect the creation of libtool libraries that
8414*** depend on shared libraries, but programs linked with such libtool
8415*** libraries will work regardless of this problem. Nevertheless, you
8416*** may want to report the problem to your system manager and/or to
8417*** bug-libtool@gnu.org
d7040cdb 8418
ce2cded5
L
8419_LT_EOF
8420 fi ;;
8421 esac
8422 fi
8423 break
8424 fi
8425 done
8426 IFS="$lt_save_ifs"
8427 MAGIC_CMD="$lt_save_MAGIC_CMD"
8428 ;;
8429esac
8430fi
d7040cdb 8431
ce2cded5
L
8432MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8433if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8435$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8436else
81ecdfbb
RW
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438$as_echo "no" >&6; }
ce2cded5 8439fi
d7040cdb
SE
8440
8441
8442
8443
8444
ce2cded5
L
8445if test -z "$lt_cv_path_MAGIC_CMD"; then
8446 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8448$as_echo_n "checking for file... " >&6; }
8449if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8450 $as_echo_n "(cached) " >&6
ce2cded5
L
8451else
8452 case $MAGIC_CMD in
8453[\\/*] | ?:[\\/]*)
8454 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8455 ;;
8456*)
8457 lt_save_MAGIC_CMD="$MAGIC_CMD"
8458 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8459 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8460 for ac_dir in $ac_dummy; do
8461 IFS="$lt_save_ifs"
8462 test -z "$ac_dir" && ac_dir=.
8463 if test -f $ac_dir/file; then
8464 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8465 if test -n "$file_magic_test_file"; then
8466 case $deplibs_check_method in
8467 "file_magic "*)
8468 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8469 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8470 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8471 $EGREP "$file_magic_regex" > /dev/null; then
8472 :
8473 else
8474 cat <<_LT_EOF 1>&2
d7040cdb 8475
ce2cded5
L
8476*** Warning: the command libtool uses to detect shared libraries,
8477*** $file_magic_cmd, produces output that libtool cannot recognize.
8478*** The result is that libtool may fail to recognize shared libraries
8479*** as such. This will affect the creation of libtool libraries that
8480*** depend on shared libraries, but programs linked with such libtool
8481*** libraries will work regardless of this problem. Nevertheless, you
8482*** may want to report the problem to your system manager and/or to
8483*** bug-libtool@gnu.org
d7040cdb 8484
ce2cded5
L
8485_LT_EOF
8486 fi ;;
8487 esac
8488 fi
8489 break
8490 fi
8491 done
8492 IFS="$lt_save_ifs"
8493 MAGIC_CMD="$lt_save_MAGIC_CMD"
8494 ;;
8495esac
8496fi
d7040cdb 8497
ce2cded5
L
8498MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8499if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8501$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8502else
81ecdfbb
RW
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504$as_echo "no" >&6; }
ce2cded5 8505fi
d7040cdb
SE
8506
8507
ce2cded5
L
8508 else
8509 MAGIC_CMD=:
8510 fi
8511fi
d7040cdb 8512
ce2cded5
L
8513 fi
8514 ;;
8515esac
d7040cdb 8516
ce2cded5 8517# Use C for the default configuration in the libtool script
d7040cdb 8518
ce2cded5
L
8519lt_save_CC="$CC"
8520ac_ext=c
8521ac_cpp='$CPP $CPPFLAGS'
8522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8524ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8525
8526
ce2cded5
L
8527# Source file extension for C test sources.
8528ac_ext=c
d7040cdb 8529
ce2cded5
L
8530# Object file extension for compiled C test sources.
8531objext=o
8532objext=$objext
d7040cdb 8533
ce2cded5
L
8534# Code to be used in simple compile tests
8535lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 8536
ce2cded5
L
8537# Code to be used in simple link tests
8538lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
8539
8540
8541
8542
8543
8544
8545
ce2cded5
L
8546# If no C compiler was specified, use CC.
8547LTCC=${LTCC-"$CC"}
d7040cdb 8548
ce2cded5
L
8549# If no C compiler flags were specified, use CFLAGS.
8550LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 8551
ce2cded5
L
8552# Allow CC to be a program name with arguments.
8553compiler=$CC
d7040cdb 8554
ce2cded5
L
8555# Save the default compiler, since it gets overwritten when the other
8556# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8557compiler_DEFAULT=$CC
d7040cdb 8558
ce2cded5
L
8559# save warnings/boilerplate of simple test code
8560ac_outfile=conftest.$ac_objext
8561echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8562eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8563_lt_compiler_boilerplate=`cat conftest.err`
8564$RM conftest*
d7040cdb 8565
ce2cded5
L
8566ac_outfile=conftest.$ac_objext
8567echo "$lt_simple_link_test_code" >conftest.$ac_ext
8568eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8569_lt_linker_boilerplate=`cat conftest.err`
b214d478 8570$RM -r conftest*
d7040cdb
SE
8571
8572
ce2cded5
L
8573## CAVEAT EMPTOR:
8574## There is no encapsulation within the following macros, do not change
8575## the running order or otherwise move them around unless you know exactly
8576## what you are doing...
8577if test -n "$compiler"; then
d7040cdb 8578
ce2cded5 8579lt_prog_compiler_no_builtin_flag=
d7040cdb 8580
ce2cded5
L
8581if test "$GCC" = yes; then
8582 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d7040cdb 8583
81ecdfbb
RW
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8585$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8586if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8587 $as_echo_n "(cached) " >&6
ce2cded5
L
8588else
8589 lt_cv_prog_compiler_rtti_exceptions=no
8590 ac_outfile=conftest.$ac_objext
8591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8592 lt_compiler_flag="-fno-rtti -fno-exceptions"
8593 # Insert the option either (1) after the last *FLAGS variable, or
8594 # (2) before a word containing "conftest.", or (3) at the end.
8595 # Note that $ac_compile itself does not contain backslashes and begins
8596 # with a dollar sign (not a hyphen), so the echo should work correctly.
8597 # The option is referenced via a variable to avoid confusing sed.
8598 lt_compile=`echo "$ac_compile" | $SED \
8599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8601 -e 's:$: $lt_compiler_flag:'`
3388710e 8602 (eval echo "\"\$as_me:8602: $lt_compile\"" >&5)
ce2cded5
L
8603 (eval "$lt_compile" 2>conftest.err)
8604 ac_status=$?
8605 cat conftest.err >&5
3388710e 8606 echo "$as_me:8606: \$? = $ac_status" >&5
ce2cded5
L
8607 if (exit $ac_status) && test -s "$ac_outfile"; then
8608 # The compiler can only warn and ignore the option if not recognized
8609 # So say no if there are warnings other than the usual output.
8610 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8612 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8613 lt_cv_prog_compiler_rtti_exceptions=yes
8614 fi
8615 fi
8616 $RM conftest*
d7040cdb 8617
ce2cded5 8618fi
81ecdfbb
RW
8619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8620$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 8621
ce2cded5
L
8622if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8623 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8624else
8625 :
8626fi
d7040cdb 8627
ce2cded5 8628fi
d7040cdb
SE
8629
8630
8631
8632
8633
8634
ce2cded5
L
8635 lt_prog_compiler_wl=
8636lt_prog_compiler_pic=
8637lt_prog_compiler_static=
d7040cdb 8638
81ecdfbb
RW
8639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8640$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 8641
ce2cded5
L
8642 if test "$GCC" = yes; then
8643 lt_prog_compiler_wl='-Wl,'
8644 lt_prog_compiler_static='-static'
d7040cdb 8645
ce2cded5
L
8646 case $host_os in
8647 aix*)
8648 # All AIX code is PIC.
8649 if test "$host_cpu" = ia64; then
8650 # AIX 5 now supports IA64 processor
8651 lt_prog_compiler_static='-Bstatic'
8652 fi
8653 ;;
d7040cdb 8654
ce2cded5 8655 amigaos*)
b214d478
SE
8656 case $host_cpu in
8657 powerpc)
8658 # see comment about AmigaOS4 .so support
8659 lt_prog_compiler_pic='-fPIC'
8660 ;;
8661 m68k)
8662 # FIXME: we need at least 68020 code to build shared libraries, but
8663 # adding the `-m68020' flag to GCC prevents building anything better,
8664 # like `-m68040'.
8665 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8666 ;;
8667 esac
ce2cded5 8668 ;;
d7040cdb 8669
ce2cded5
L
8670 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8671 # PIC is the default for these OSes.
8672 ;;
d7040cdb 8673
b214d478 8674 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8675 # This hack is so that the source file can tell whether it is being
8676 # built for inclusion in a dll (and should export symbols for example).
8677 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8678 # (--disable-auto-import) libraries
8679 lt_prog_compiler_pic='-DDLL_EXPORT'
8680 ;;
d7040cdb 8681
ce2cded5
L
8682 darwin* | rhapsody*)
8683 # PIC is the default on this platform
8684 # Common symbols not allowed in MH_DYLIB files
8685 lt_prog_compiler_pic='-fno-common'
8686 ;;
d7040cdb 8687
ce2cded5 8688 hpux*)
b214d478
SE
8689 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8690 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8691 # sets the default TLS model and affects inlining.
ce2cded5 8692 case $host_cpu in
b214d478 8693 hppa*64*)
ce2cded5
L
8694 # +Z the default
8695 ;;
8696 *)
8697 lt_prog_compiler_pic='-fPIC'
8698 ;;
8699 esac
8700 ;;
d7040cdb 8701
ce2cded5
L
8702 interix[3-9]*)
8703 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8704 # Instead, we relocate shared libraries at runtime.
8705 ;;
d7040cdb 8706
ce2cded5
L
8707 msdosdjgpp*)
8708 # Just because we use GCC doesn't mean we suddenly get shared libraries
8709 # on systems that don't support them.
8710 lt_prog_compiler_can_build_shared=no
8711 enable_shared=no
8712 ;;
d7040cdb 8713
ce2cded5
L
8714 *nto* | *qnx*)
8715 # QNX uses GNU C++, but need to define -shared option too, otherwise
8716 # it will coredump.
8717 lt_prog_compiler_pic='-fPIC -shared'
8718 ;;
d7040cdb 8719
ce2cded5
L
8720 sysv4*MP*)
8721 if test -d /usr/nec; then
8722 lt_prog_compiler_pic=-Kconform_pic
8723 fi
8724 ;;
d7040cdb 8725
ce2cded5
L
8726 *)
8727 lt_prog_compiler_pic='-fPIC'
8728 ;;
8729 esac
8730 else
8731 # PORTME Check for flag to pass linker flags through the system compiler.
8732 case $host_os in
8733 aix*)
8734 lt_prog_compiler_wl='-Wl,'
8735 if test "$host_cpu" = ia64; then
8736 # AIX 5 now supports IA64 processor
8737 lt_prog_compiler_static='-Bstatic'
8738 else
8739 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8740 fi
8741 ;;
d7040cdb 8742
b214d478 8743 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8744 # This hack is so that the source file can tell whether it is being
8745 # built for inclusion in a dll (and should export symbols for example).
8746 lt_prog_compiler_pic='-DDLL_EXPORT'
8747 ;;
d7040cdb 8748
ce2cded5
L
8749 hpux9* | hpux10* | hpux11*)
8750 lt_prog_compiler_wl='-Wl,'
8751 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8752 # not for PA HP-UX.
8753 case $host_cpu in
8754 hppa*64*|ia64*)
8755 # +Z the default
8756 ;;
8757 *)
8758 lt_prog_compiler_pic='+Z'
8759 ;;
8760 esac
8761 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8762 lt_prog_compiler_static='${wl}-a ${wl}archive'
8763 ;;
d7040cdb 8764
ce2cded5
L
8765 irix5* | irix6* | nonstopux*)
8766 lt_prog_compiler_wl='-Wl,'
8767 # PIC (with -KPIC) is the default.
8768 lt_prog_compiler_static='-non_shared'
8769 ;;
d7040cdb 8770
58e24671 8771 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8772 case $cc_basename in
b214d478
SE
8773 # old Intel for x86_64 which still supported -KPIC.
8774 ecc*)
ce2cded5
L
8775 lt_prog_compiler_wl='-Wl,'
8776 lt_prog_compiler_pic='-KPIC'
8777 lt_prog_compiler_static='-static'
8778 ;;
b214d478
SE
8779 # icc used to be incompatible with GCC.
8780 # ICC 10 doesn't accept -KPIC any more.
8781 icc* | ifort*)
8782 lt_prog_compiler_wl='-Wl,'
8783 lt_prog_compiler_pic='-fPIC'
8784 lt_prog_compiler_static='-static'
8785 ;;
8786 # Lahey Fortran 8.1.
8787 lf95*)
8788 lt_prog_compiler_wl='-Wl,'
8789 lt_prog_compiler_pic='--shared'
8790 lt_prog_compiler_static='--static'
8791 ;;
ce2cded5
L
8792 pgcc* | pgf77* | pgf90* | pgf95*)
8793 # Portland Group compilers (*not* the Pentium gcc compiler,
8794 # which looks to be a dead project)
8795 lt_prog_compiler_wl='-Wl,'
8796 lt_prog_compiler_pic='-fpic'
8797 lt_prog_compiler_static='-Bstatic'
8798 ;;
8799 ccc*)
8800 lt_prog_compiler_wl='-Wl,'
8801 # All Alpha code is PIC.
8802 lt_prog_compiler_static='-non_shared'
8803 ;;
b214d478
SE
8804 xl*)
8805 # IBM XL C 8.0/Fortran 10.1 on PPC
8806 lt_prog_compiler_wl='-Wl,'
8807 lt_prog_compiler_pic='-qpic'
8808 lt_prog_compiler_static='-qstaticlink'
8809 ;;
ce2cded5
L
8810 *)
8811 case `$CC -V 2>&1 | sed 5q` in
8812 *Sun\ C*)
8813 # Sun C 5.9
8814 lt_prog_compiler_pic='-KPIC'
8815 lt_prog_compiler_static='-Bstatic'
8816 lt_prog_compiler_wl='-Wl,'
8817 ;;
8818 *Sun\ F*)
8819 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8820 lt_prog_compiler_pic='-KPIC'
8821 lt_prog_compiler_static='-Bstatic'
8822 lt_prog_compiler_wl=''
8823 ;;
8824 esac
8825 ;;
8826 esac
8827 ;;
d7040cdb 8828
ce2cded5
L
8829 newsos6)
8830 lt_prog_compiler_pic='-KPIC'
8831 lt_prog_compiler_static='-Bstatic'
8832 ;;
d7040cdb 8833
ce2cded5
L
8834 *nto* | *qnx*)
8835 # QNX uses GNU C++, but need to define -shared option too, otherwise
8836 # it will coredump.
8837 lt_prog_compiler_pic='-fPIC -shared'
8838 ;;
d7040cdb 8839
ce2cded5
L
8840 osf3* | osf4* | osf5*)
8841 lt_prog_compiler_wl='-Wl,'
8842 # All OSF/1 code is PIC.
8843 lt_prog_compiler_static='-non_shared'
8844 ;;
d7040cdb 8845
ce2cded5
L
8846 rdos*)
8847 lt_prog_compiler_static='-non_shared'
8848 ;;
d7040cdb 8849
ce2cded5
L
8850 solaris*)
8851 lt_prog_compiler_pic='-KPIC'
8852 lt_prog_compiler_static='-Bstatic'
8853 case $cc_basename in
8854 f77* | f90* | f95*)
8855 lt_prog_compiler_wl='-Qoption ld ';;
8856 *)
8857 lt_prog_compiler_wl='-Wl,';;
8858 esac
8859 ;;
d7040cdb 8860
ce2cded5
L
8861 sunos4*)
8862 lt_prog_compiler_wl='-Qoption ld '
8863 lt_prog_compiler_pic='-PIC'
8864 lt_prog_compiler_static='-Bstatic'
8865 ;;
d7040cdb 8866
ce2cded5
L
8867 sysv4 | sysv4.2uw2* | sysv4.3*)
8868 lt_prog_compiler_wl='-Wl,'
8869 lt_prog_compiler_pic='-KPIC'
8870 lt_prog_compiler_static='-Bstatic'
8871 ;;
d7040cdb 8872
ce2cded5
L
8873 sysv4*MP*)
8874 if test -d /usr/nec ;then
8875 lt_prog_compiler_pic='-Kconform_pic'
8876 lt_prog_compiler_static='-Bstatic'
8877 fi
8878 ;;
d7040cdb 8879
ce2cded5
L
8880 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8881 lt_prog_compiler_wl='-Wl,'
8882 lt_prog_compiler_pic='-KPIC'
8883 lt_prog_compiler_static='-Bstatic'
8884 ;;
d7040cdb 8885
ce2cded5
L
8886 unicos*)
8887 lt_prog_compiler_wl='-Wl,'
8888 lt_prog_compiler_can_build_shared=no
8889 ;;
d7040cdb 8890
ce2cded5
L
8891 uts4*)
8892 lt_prog_compiler_pic='-pic'
8893 lt_prog_compiler_static='-Bstatic'
8894 ;;
d7040cdb 8895
ce2cded5
L
8896 *)
8897 lt_prog_compiler_can_build_shared=no
8898 ;;
8899 esac
8900 fi
d7040cdb 8901
ce2cded5
L
8902case $host_os in
8903 # For platforms which do not support PIC, -DPIC is meaningless:
8904 *djgpp*)
8905 lt_prog_compiler_pic=
8906 ;;
8907 *)
8908 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8909 ;;
8910esac
81ecdfbb
RW
8911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8912$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8913
8914
8915
8916
8917
8918
ce2cded5
L
8919#
8920# Check to make sure the PIC flag actually works.
8921#
8922if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8924$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8925if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8926 $as_echo_n "(cached) " >&6
ce2cded5 8927else
b214d478 8928 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8929 ac_outfile=conftest.$ac_objext
8930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8931 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8932 # Insert the option either (1) after the last *FLAGS variable, or
8933 # (2) before a word containing "conftest.", or (3) at the end.
8934 # Note that $ac_compile itself does not contain backslashes and begins
8935 # with a dollar sign (not a hyphen), so the echo should work correctly.
8936 # The option is referenced via a variable to avoid confusing sed.
8937 lt_compile=`echo "$ac_compile" | $SED \
8938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8940 -e 's:$: $lt_compiler_flag:'`
3388710e 8941 (eval echo "\"\$as_me:8941: $lt_compile\"" >&5)
ce2cded5
L
8942 (eval "$lt_compile" 2>conftest.err)
8943 ac_status=$?
8944 cat conftest.err >&5
3388710e 8945 echo "$as_me:8945: \$? = $ac_status" >&5
ce2cded5
L
8946 if (exit $ac_status) && test -s "$ac_outfile"; then
8947 # The compiler can only warn and ignore the option if not recognized
8948 # So say no if there are warnings other than the usual output.
8949 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8951 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8952 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8953 fi
8954 fi
8955 $RM conftest*
d7040cdb 8956
ce2cded5 8957fi
81ecdfbb
RW
8958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8959$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
ce2cded5 8960
b214d478 8961if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8962 case $lt_prog_compiler_pic in
8963 "" | " "*) ;;
8964 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8965 esac
8966else
8967 lt_prog_compiler_pic=
8968 lt_prog_compiler_can_build_shared=no
8969fi
8970
8971fi
d7040cdb
SE
8972
8973
8974
8975
8976
8977
ce2cded5
L
8978#
8979# Check to make sure the static flag actually works.
8980#
8981wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8983$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8984if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8985 $as_echo_n "(cached) " >&6
ce2cded5 8986else
b214d478 8987 lt_cv_prog_compiler_static_works=no
ce2cded5
L
8988 save_LDFLAGS="$LDFLAGS"
8989 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8990 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8991 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8992 # The linker can only warn and ignore the option if not recognized
8993 # So say no if there are warnings
8994 if test -s conftest.err; then
8995 # Append any errors to the config.log.
8996 cat conftest.err 1>&5
8997 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8999 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9000 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9001 fi
9002 else
b214d478 9003 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9004 fi
9005 fi
b214d478 9006 $RM -r conftest*
ce2cded5 9007 LDFLAGS="$save_LDFLAGS"
d7040cdb 9008
ce2cded5 9009fi
81ecdfbb
RW
9010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9011$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 9012
b214d478 9013if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
9014 :
9015else
9016 lt_prog_compiler_static=
9017fi
d7040cdb
SE
9018
9019
9020
9021
9022
9023
9024
81ecdfbb
RW
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9026$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9027if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9028 $as_echo_n "(cached) " >&6
ce2cded5
L
9029else
9030 lt_cv_prog_compiler_c_o=no
9031 $RM -r conftest 2>/dev/null
9032 mkdir conftest
9033 cd conftest
9034 mkdir out
9035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9036
ce2cded5
L
9037 lt_compiler_flag="-o out/conftest2.$ac_objext"
9038 # Insert the option either (1) after the last *FLAGS variable, or
9039 # (2) before a word containing "conftest.", or (3) at the end.
9040 # Note that $ac_compile itself does not contain backslashes and begins
9041 # with a dollar sign (not a hyphen), so the echo should work correctly.
9042 lt_compile=`echo "$ac_compile" | $SED \
9043 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9045 -e 's:$: $lt_compiler_flag:'`
3388710e 9046 (eval echo "\"\$as_me:9046: $lt_compile\"" >&5)
ce2cded5
L
9047 (eval "$lt_compile" 2>out/conftest.err)
9048 ac_status=$?
9049 cat out/conftest.err >&5
3388710e 9050 echo "$as_me:9050: \$? = $ac_status" >&5
ce2cded5
L
9051 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9052 then
9053 # The compiler can only warn and ignore the option if not recognized
9054 # So say no if there are warnings
9055 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9056 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9057 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9058 lt_cv_prog_compiler_c_o=yes
9059 fi
9060 fi
9061 chmod u+w . 2>&5
9062 $RM conftest*
9063 # SGI C++ compiler will create directory out/ii_files/ for
9064 # template instantiation
9065 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9066 $RM out/* && rmdir out
9067 cd ..
9068 $RM -r conftest
9069 $RM conftest*
d7040cdb 9070
ce2cded5 9071fi
81ecdfbb
RW
9072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9073$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
9074
9075
9076
9077
9078
9079
81ecdfbb
RW
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9081$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9082if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9083 $as_echo_n "(cached) " >&6
ce2cded5
L
9084else
9085 lt_cv_prog_compiler_c_o=no
9086 $RM -r conftest 2>/dev/null
9087 mkdir conftest
9088 cd conftest
9089 mkdir out
9090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9091
ce2cded5
L
9092 lt_compiler_flag="-o out/conftest2.$ac_objext"
9093 # Insert the option either (1) after the last *FLAGS variable, or
9094 # (2) before a word containing "conftest.", or (3) at the end.
9095 # Note that $ac_compile itself does not contain backslashes and begins
9096 # with a dollar sign (not a hyphen), so the echo should work correctly.
9097 lt_compile=`echo "$ac_compile" | $SED \
9098 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9099 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9100 -e 's:$: $lt_compiler_flag:'`
3388710e 9101 (eval echo "\"\$as_me:9101: $lt_compile\"" >&5)
ce2cded5
L
9102 (eval "$lt_compile" 2>out/conftest.err)
9103 ac_status=$?
9104 cat out/conftest.err >&5
3388710e 9105 echo "$as_me:9105: \$? = $ac_status" >&5
ce2cded5
L
9106 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9107 then
9108 # The compiler can only warn and ignore the option if not recognized
9109 # So say no if there are warnings
9110 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9111 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9112 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9113 lt_cv_prog_compiler_c_o=yes
9114 fi
9115 fi
9116 chmod u+w . 2>&5
9117 $RM conftest*
9118 # SGI C++ compiler will create directory out/ii_files/ for
9119 # template instantiation
9120 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9121 $RM out/* && rmdir out
9122 cd ..
9123 $RM -r conftest
9124 $RM conftest*
9125
9126fi
81ecdfbb
RW
9127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9128$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
9129
9130
9131
9132
9133hard_links="nottested"
9134if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9135 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9137$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
9138 hard_links=yes
9139 $RM conftest*
9140 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9141 touch conftest.a
9142 ln conftest.a conftest.b 2>&5 || hard_links=no
9143 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9145$as_echo "$hard_links" >&6; }
ce2cded5 9146 if test "$hard_links" = no; then
81ecdfbb
RW
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9148$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 9149 need_locks=warn
d7040cdb 9150 fi
d7040cdb 9151else
ce2cded5 9152 need_locks=no
d7040cdb 9153fi
d7040cdb 9154
d7040cdb 9155
d7040cdb 9156
d7040cdb 9157
d7040cdb 9158
d7040cdb 9159
81ecdfbb
RW
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9161$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 9162
ce2cded5
L
9163 runpath_var=
9164 allow_undefined_flag=
9165 always_export_symbols=no
9166 archive_cmds=
9167 archive_expsym_cmds=
9168 compiler_needs_object=no
9169 enable_shared_with_static_runtimes=no
9170 export_dynamic_flag_spec=
9171 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9172 hardcode_automatic=no
9173 hardcode_direct=no
9174 hardcode_direct_absolute=no
9175 hardcode_libdir_flag_spec=
9176 hardcode_libdir_flag_spec_ld=
9177 hardcode_libdir_separator=
9178 hardcode_minus_L=no
9179 hardcode_shlibpath_var=unsupported
9180 inherit_rpath=no
9181 link_all_deplibs=unknown
9182 module_cmds=
9183 module_expsym_cmds=
9184 old_archive_from_new_cmds=
9185 old_archive_from_expsyms_cmds=
9186 thread_safe_flag_spec=
9187 whole_archive_flag_spec=
9188 # include_expsyms should be a list of space-separated symbols to be *always*
9189 # included in the symbol list
9190 include_expsyms=
9191 # exclude_expsyms can be an extended regexp of symbols to exclude
9192 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9193 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9194 # as well as any symbol that contains `d'.
b214d478 9195 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
9196 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9197 # platforms (ab)use it in PIC code, but their linkers get confused if
9198 # the symbol is explicitly referenced. Since portable code cannot
9199 # rely on this symbol name, it's probably fine to never include it in
9200 # preloaded symbol tables.
b214d478 9201 # Exclude shared library initialization/finalization symbols.
ce2cded5 9202 extract_expsyms_cmds=
d7040cdb 9203
ce2cded5 9204 case $host_os in
b214d478 9205 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9206 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9207 # When not using gcc, we currently assume that we are using
9208 # Microsoft Visual C++.
9209 if test "$GCC" != yes; then
9210 with_gnu_ld=no
9211 fi
d7040cdb 9212 ;;
ce2cded5
L
9213 interix*)
9214 # we just hope/assume this is gcc and not c89 (= MSVC++)
9215 with_gnu_ld=yes
9216 ;;
9217 openbsd*)
9218 with_gnu_ld=no
d7040cdb
SE
9219 ;;
9220 esac
d7040cdb 9221
ce2cded5
L
9222 ld_shlibs=yes
9223 if test "$with_gnu_ld" = yes; then
9224 # If archive_cmds runs LD, not CC, wlarc should be empty
9225 wlarc='${wl}'
d7040cdb 9226
ce2cded5
L
9227 # Set some defaults for GNU ld with shared library support. These
9228 # are reset later if shared libraries are not supported. Putting them
9229 # here allows them to be overridden if necessary.
9230 runpath_var=LD_RUN_PATH
9231 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9232 export_dynamic_flag_spec='${wl}--export-dynamic'
9233 # ancient GNU ld didn't support --whole-archive et. al.
9234 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9235 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9236 else
9237 whole_archive_flag_spec=
9238 fi
9239 supports_anon_versioning=no
9240 case `$LD -v 2>&1` in
9241 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9242 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9243 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9244 *\ 2.11.*) ;; # other 2.11 versions
9245 *) supports_anon_versioning=yes ;;
9246 esac
d7040cdb 9247
ce2cded5
L
9248 # See if GNU ld supports shared libraries.
9249 case $host_os in
50e7d84b 9250 aix[3-9]*)
ce2cded5
L
9251 # On AIX/PPC, the GNU linker is very broken
9252 if test "$host_cpu" != ia64; then
9253 ld_shlibs=no
9254 cat <<_LT_EOF 1>&2
d7040cdb 9255
ce2cded5
L
9256*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9257*** to be unable to reliably create shared libraries on AIX.
9258*** Therefore, libtool is disabling shared libraries support. If you
9259*** really care for shared libraries, you may want to modify your PATH
9260*** so that a non-GNU linker is found, and then restart.
d7040cdb 9261
ce2cded5
L
9262_LT_EOF
9263 fi
d7040cdb 9264 ;;
d7040cdb 9265
ce2cded5 9266 amigaos*)
b214d478
SE
9267 case $host_cpu in
9268 powerpc)
9269 # see comment about AmigaOS4 .so support
9270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9271 archive_expsym_cmds=''
9272 ;;
9273 m68k)
9274 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)'
9275 hardcode_libdir_flag_spec='-L$libdir'
9276 hardcode_minus_L=yes
9277 ;;
9278 esac
ce2cded5 9279 ;;
d7040cdb 9280
ce2cded5
L
9281 beos*)
9282 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9283 allow_undefined_flag=unsupported
9284 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9285 # support --undefined. This deserves some investigation. FIXME
9286 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9287 else
9288 ld_shlibs=no
9289 fi
9290 ;;
d7040cdb 9291
b214d478 9292 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9293 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9294 # as there is no search path for DLLs.
9295 hardcode_libdir_flag_spec='-L$libdir'
9296 allow_undefined_flag=unsupported
9297 always_export_symbols=no
9298 enable_shared_with_static_runtimes=yes
9299 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9300
9301 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9303 # If the export-symbols file already is a .def file (1st line
9304 # is EXPORTS), use it as is; otherwise, prepend...
9305 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9306 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 9307 else
ce2cded5
L
9308 echo EXPORTS > $output_objdir/$soname.def;
9309 cat $export_symbols >> $output_objdir/$soname.def;
9310 fi~
9311 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9312 else
9313 ld_shlibs=no
9314 fi
9315 ;;
d7040cdb 9316
ce2cded5
L
9317 interix[3-9]*)
9318 hardcode_direct=no
9319 hardcode_shlibpath_var=no
9320 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9321 export_dynamic_flag_spec='${wl}-E'
9322 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9323 # Instead, shared libraries are loaded at an image base (0x10000000 by
9324 # default) and relocated if they conflict, which is a slow very memory
9325 # consuming and fragmenting process. To avoid this, we pick a random,
9326 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9327 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9328 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9329 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'
9330 ;;
d7040cdb 9331
58e24671 9332 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9333 tmp_diet=no
9334 if test "$host_os" = linux-dietlibc; then
9335 case $cc_basename in
9336 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9337 esac
9338 fi
9339 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9340 && test "$tmp_diet" = no
9341 then
9342 tmp_addflag=
b214d478 9343 tmp_sharedflag='-shared'
ce2cded5
L
9344 case $cc_basename,$host_cpu in
9345 pgcc*) # Portland Group C compiler
9346 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'
9347 tmp_addflag=' $pic_flag'
9348 ;;
9349 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9350 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'
9351 tmp_addflag=' $pic_flag -Mnomain' ;;
9352 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9353 tmp_addflag=' -i_dynamic' ;;
9354 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9355 tmp_addflag=' -i_dynamic -nofor_main' ;;
9356 ifc* | ifort*) # Intel Fortran compiler
9357 tmp_addflag=' -nofor_main' ;;
b214d478
SE
9358 lf95*) # Lahey Fortran 8.1
9359 whole_archive_flag_spec=
9360 tmp_sharedflag='--shared' ;;
9361 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9362 tmp_sharedflag='-qmkshrobj'
9363 tmp_addflag= ;;
ce2cded5
L
9364 esac
9365 case `$CC -V 2>&1 | sed 5q` in
9366 *Sun\ C*) # Sun C 5.9
9367 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'
9368 compiler_needs_object=yes
9369 tmp_sharedflag='-G' ;;
9370 *Sun\ F*) # Sun Fortran 8.3
9371 tmp_sharedflag='-G' ;;
ce2cded5
L
9372 esac
9373 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9374
ce2cded5
L
9375 if test "x$supports_anon_versioning" = xyes; then
9376 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9377 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9378 echo "local: *; };" >> $output_objdir/$libname.ver~
9379 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9380 fi
b214d478
SE
9381
9382 case $cc_basename in
9383 xlf*)
9384 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9385 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9386 hardcode_libdir_flag_spec=
9387 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9388 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9389 if test "x$supports_anon_versioning" = xyes; then
9390 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9391 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9392 echo "local: *; };" >> $output_objdir/$libname.ver~
9393 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9394 fi
9395 ;;
9396 esac
ce2cded5
L
9397 else
9398 ld_shlibs=no
9399 fi
9400 ;;
d7040cdb 9401
ce2cded5
L
9402 netbsd*)
9403 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9404 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9405 wlarc=
9406 else
9407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9408 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9409 fi
9410 ;;
9411
9412 solaris*)
9413 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9414 ld_shlibs=no
9415 cat <<_LT_EOF 1>&2
9416
9417*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9418*** create shared libraries on Solaris systems. Therefore, libtool
9419*** is disabling shared libraries support. We urge you to upgrade GNU
9420*** binutils to release 2.9.1 or newer. Another option is to modify
9421*** your PATH or compiler configuration so that the native linker is
9422*** used, and then restart.
9423
9424_LT_EOF
9425 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9427 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9428 else
9429 ld_shlibs=no
9430 fi
9431 ;;
9432
9433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9434 case `$LD -v 2>&1` in
9435 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9436 ld_shlibs=no
9437 cat <<_LT_EOF 1>&2
9438
9439*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9440*** reliably create shared libraries on SCO systems. Therefore, libtool
9441*** is disabling shared libraries support. We urge you to upgrade GNU
9442*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9443*** your PATH or compiler configuration so that the native linker is
9444*** used, and then restart.
9445
9446_LT_EOF
9447 ;;
9448 *)
9449 # For security reasons, it is highly recommended that you always
9450 # use absolute paths for naming shared libraries, and exclude the
9451 # DT_RUNPATH tag from executables and libraries. But doing so
9452 # requires that you compile everything twice, which is a pain.
9453 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9456 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9457 else
9458 ld_shlibs=no
9459 fi
9460 ;;
9461 esac
9462 ;;
9463
9464 sunos4*)
9465 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9466 wlarc=
9467 hardcode_direct=yes
9468 hardcode_shlibpath_var=no
9469 ;;
9470
9471 *)
9472 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9474 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9475 else
9476 ld_shlibs=no
9477 fi
9478 ;;
9479 esac
9480
9481 if test "$ld_shlibs" = no; then
9482 runpath_var=
9483 hardcode_libdir_flag_spec=
9484 export_dynamic_flag_spec=
9485 whole_archive_flag_spec=
9486 fi
9487 else
9488 # PORTME fill in a description of your system's linker (not GNU ld)
9489 case $host_os in
9490 aix3*)
9491 allow_undefined_flag=unsupported
9492 always_export_symbols=yes
9493 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'
9494 # Note: this linker hardcodes the directories in LIBPATH if there
9495 # are no directories specified by -L.
9496 hardcode_minus_L=yes
9497 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9498 # Neither direct hardcoding nor static linking is supported with a
9499 # broken collect2.
9500 hardcode_direct=unsupported
9501 fi
9502 ;;
9503
50e7d84b 9504 aix[4-9]*)
ce2cded5
L
9505 if test "$host_cpu" = ia64; then
9506 # On IA64, the linker does run time linking by default, so we don't
9507 # have to do anything special.
9508 aix_use_runtimelinking=no
9509 exp_sym_flag='-Bexport'
9510 no_entry_flag=""
9511 else
9512 # If we're using GNU nm, then we don't want the "-C" option.
9513 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9514 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9515 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'
9516 else
9517 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'
9518 fi
9519 aix_use_runtimelinking=no
9520
9521 # Test if we are trying to use run time linking or normal
9522 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9523 # need to do runtime linking.
50e7d84b 9524 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9525 for ld_flag in $LDFLAGS; do
9526 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9527 aix_use_runtimelinking=yes
9528 break
9529 fi
9530 done
9531 ;;
9532 esac
9533
9534 exp_sym_flag='-bexport'
9535 no_entry_flag='-bnoentry'
9536 fi
9537
9538 # When large executables or shared objects are built, AIX ld can
9539 # have problems creating the table of contents. If linking a library
9540 # or program results in "error TOC overflow" add -mminimal-toc to
9541 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9542 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9543
9544 archive_cmds=''
9545 hardcode_direct=yes
9546 hardcode_direct_absolute=yes
9547 hardcode_libdir_separator=':'
9548 link_all_deplibs=yes
9549 file_list_spec='${wl}-f,'
9550
9551 if test "$GCC" = yes; then
9552 case $host_os in aix4.[012]|aix4.[012].*)
9553 # We only want to do this on AIX 4.2 and lower, the check
9554 # below for broken collect2 doesn't work under 4.3+
9555 collect2name=`${CC} -print-prog-name=collect2`
9556 if test -f "$collect2name" &&
9557 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9558 then
9559 # We have reworked collect2
9560 :
9561 else
9562 # We have old collect2
9563 hardcode_direct=unsupported
9564 # It fails to find uninstalled libraries when the uninstalled
9565 # path is not listed in the libpath. Setting hardcode_minus_L
9566 # to unsupported forces relinking
9567 hardcode_minus_L=yes
9568 hardcode_libdir_flag_spec='-L$libdir'
9569 hardcode_libdir_separator=
9570 fi
9571 ;;
9572 esac
9573 shared_flag='-shared'
9574 if test "$aix_use_runtimelinking" = yes; then
9575 shared_flag="$shared_flag "'${wl}-G'
9576 fi
9577 else
9578 # not using gcc
9579 if test "$host_cpu" = ia64; then
9580 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9581 # chokes on -Wl,-G. The following line is correct:
9582 shared_flag='-G'
9583 else
9584 if test "$aix_use_runtimelinking" = yes; then
9585 shared_flag='${wl}-G'
9586 else
9587 shared_flag='${wl}-bM:SRE'
9588 fi
9589 fi
9590 fi
9591
b214d478 9592 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9593 # It seems that -bexpall does not export symbols beginning with
9594 # underscore (_), so it is better to generate a list of symbols to export.
9595 always_export_symbols=yes
9596 if test "$aix_use_runtimelinking" = yes; then
9597 # Warning - without using the other runtime loading flags (-brtl),
9598 # -berok will link without error, but may produce a broken library.
9599 allow_undefined_flag='-berok'
9600 # Determine the default libpath from the value encoded in an
9601 # empty executable.
81ecdfbb 9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
9603/* end confdefs.h. */
9604
9605int
9606main ()
9607{
9608
9609 ;
9610 return 0;
9611}
9612_ACEOF
81ecdfbb 9613if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9614
ce2cded5
L
9615lt_aix_libpath_sed='
9616 /Import File Strings/,/^$/ {
9617 /^0/ {
9618 s/^0 *\(.*\)$/\1/
9619 p
9620 }
9621 }'
9622aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9623# Check for a 64-bit object if we didn't find anything.
9624if test -z "$aix_libpath"; then
9625 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9626fi
d7040cdb 9627fi
81ecdfbb
RW
9628rm -f core conftest.err conftest.$ac_objext \
9629 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9630if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9631
ce2cded5
L
9632 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9633 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"
9634 else
9635 if test "$host_cpu" = ia64; then
9636 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9637 allow_undefined_flag="-z nodefs"
9638 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"
9639 else
9640 # Determine the default libpath from the value encoded in an
9641 # empty executable.
81ecdfbb 9642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9643/* end confdefs.h. */
d7040cdb 9644
ce2cded5
L
9645int
9646main ()
9647{
d7040cdb 9648
ce2cded5
L
9649 ;
9650 return 0;
9651}
9652_ACEOF
81ecdfbb 9653if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9654
ce2cded5
L
9655lt_aix_libpath_sed='
9656 /Import File Strings/,/^$/ {
9657 /^0/ {
9658 s/^0 *\(.*\)$/\1/
9659 p
9660 }
9661 }'
9662aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9663# Check for a 64-bit object if we didn't find anything.
9664if test -z "$aix_libpath"; then
9665 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9666fi
ce2cded5 9667fi
81ecdfbb
RW
9668rm -f core conftest.err conftest.$ac_objext \
9669 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9670if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9671
ce2cded5
L
9672 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9673 # Warning - without using the other run time loading flags,
9674 # -berok will link without error, but may produce a broken library.
9675 no_undefined_flag=' ${wl}-bernotok'
9676 allow_undefined_flag=' ${wl}-berok'
9677 # Exported symbols can be pulled into shared objects from archives
9678 whole_archive_flag_spec='$convenience'
9679 archive_cmds_need_lc=yes
9680 # This is similar to how AIX traditionally builds its shared libraries.
9681 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'
9682 fi
9683 fi
9684 ;;
d7040cdb 9685
ce2cded5 9686 amigaos*)
b214d478
SE
9687 case $host_cpu in
9688 powerpc)
9689 # see comment about AmigaOS4 .so support
9690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9691 archive_expsym_cmds=''
9692 ;;
9693 m68k)
9694 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)'
9695 hardcode_libdir_flag_spec='-L$libdir'
9696 hardcode_minus_L=yes
9697 ;;
9698 esac
ce2cded5
L
9699 ;;
9700
9701 bsdi[45]*)
9702 export_dynamic_flag_spec=-rdynamic
9703 ;;
9704
b214d478 9705 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9706 # When not using gcc, we currently assume that we are using
9707 # Microsoft Visual C++.
9708 # hardcode_libdir_flag_spec is actually meaningless, as there is
9709 # no search path for DLLs.
9710 hardcode_libdir_flag_spec=' '
9711 allow_undefined_flag=unsupported
9712 # Tell ltmain to make .lib files, not .a files.
9713 libext=lib
9714 # Tell ltmain to make .dll files, not .so files.
9715 shrext_cmds=".dll"
9716 # FIXME: Setting linknames here is a bad hack.
9717 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9718 # The linker will automatically build a .lib file if we build a DLL.
9719 old_archive_from_new_cmds='true'
9720 # FIXME: Should let the user specify the lib program.
9721 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9722 fix_srcfile_path='`cygpath -w "$srcfile"`'
9723 enable_shared_with_static_runtimes=yes
9724 ;;
9725
9726 darwin* | rhapsody*)
d7040cdb 9727
b214d478
SE
9728
9729 archive_cmds_need_lc=no
9730 hardcode_direct=no
9731 hardcode_automatic=yes
9732 hardcode_shlibpath_var=unsupported
9733 whole_archive_flag_spec=''
9734 link_all_deplibs=yes
9735 allow_undefined_flag="$_lt_dar_allow_undefined"
9736 case $cc_basename in
9737 ifort*) _lt_dar_can_shared=yes ;;
9738 *) _lt_dar_can_shared=$GCC ;;
9739 esac
9740 if test "$_lt_dar_can_shared" = "yes"; then
9741 output_verbose_link_cmd=echo
9742 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9743 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9744 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}"
9745 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}"
9746
9747 else
9748 ld_shlibs=no
9749 fi
9750
ce2cded5 9751 ;;
d7040cdb 9752
ce2cded5
L
9753 dgux*)
9754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9755 hardcode_libdir_flag_spec='-L$libdir'
9756 hardcode_shlibpath_var=no
9757 ;;
d7040cdb 9758
ce2cded5
L
9759 freebsd1*)
9760 ld_shlibs=no
9761 ;;
d7040cdb 9762
ce2cded5
L
9763 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9764 # support. Future versions do this automatically, but an explicit c++rt0.o
9765 # does not break anything, and helps significantly (at the cost of a little
9766 # extra space).
9767 freebsd2.2*)
9768 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9769 hardcode_libdir_flag_spec='-R$libdir'
9770 hardcode_direct=yes
9771 hardcode_shlibpath_var=no
d7040cdb 9772 ;;
d7040cdb 9773
ce2cded5
L
9774 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9775 freebsd2*)
9776 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9777 hardcode_direct=yes
9778 hardcode_minus_L=yes
9779 hardcode_shlibpath_var=no
9780 ;;
d7040cdb 9781
ce2cded5
L
9782 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9783 freebsd* | dragonfly*)
9784 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9785 hardcode_libdir_flag_spec='-R$libdir'
9786 hardcode_direct=yes
9787 hardcode_shlibpath_var=no
9788 ;;
d7040cdb 9789
ce2cded5
L
9790 hpux9*)
9791 if test "$GCC" = yes; then
9792 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'
9793 else
9794 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'
9795 fi
9796 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9797 hardcode_libdir_separator=:
9798 hardcode_direct=yes
d7040cdb 9799
ce2cded5
L
9800 # hardcode_minus_L: Not really in the search PATH,
9801 # but as the default location of the library.
9802 hardcode_minus_L=yes
9803 export_dynamic_flag_spec='${wl}-E'
9804 ;;
d7040cdb 9805
ce2cded5
L
9806 hpux10*)
9807 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9808 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9809 else
9810 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9811 fi
9812 if test "$with_gnu_ld" = no; then
9813 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9814 hardcode_libdir_flag_spec_ld='+b $libdir'
9815 hardcode_libdir_separator=:
9816 hardcode_direct=yes
9817 hardcode_direct_absolute=yes
9818 export_dynamic_flag_spec='${wl}-E'
9819 # hardcode_minus_L: Not really in the search PATH,
9820 # but as the default location of the library.
9821 hardcode_minus_L=yes
9822 fi
9823 ;;
d7040cdb 9824
ce2cded5
L
9825 hpux11*)
9826 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9827 case $host_cpu in
9828 hppa*64*)
9829 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9830 ;;
9831 ia64*)
b214d478 9832 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9833 ;;
9834 *)
9835 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9836 ;;
9837 esac
9838 else
9839 case $host_cpu in
9840 hppa*64*)
9841 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9842 ;;
9843 ia64*)
9844 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9845 ;;
9846 *)
9847 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9848 ;;
9849 esac
9850 fi
9851 if test "$with_gnu_ld" = no; then
9852 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9853 hardcode_libdir_separator=:
d7040cdb 9854
ce2cded5
L
9855 case $host_cpu in
9856 hppa*64*|ia64*)
9857 hardcode_direct=no
9858 hardcode_shlibpath_var=no
9859 ;;
9860 *)
9861 hardcode_direct=yes
9862 hardcode_direct_absolute=yes
9863 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9864
ce2cded5
L
9865 # hardcode_minus_L: Not really in the search PATH,
9866 # but as the default location of the library.
9867 hardcode_minus_L=yes
9868 ;;
9869 esac
9870 fi
9871 ;;
d7040cdb 9872
ce2cded5
L
9873 irix5* | irix6* | nonstopux*)
9874 if test "$GCC" = yes; then
9875 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'
9876 # Try to use the -exported_symbol ld option, if it does not
9877 # work, assume that -exports_file does not work either and
9878 # implicitly export all symbols.
9879 save_LDFLAGS="$LDFLAGS"
9880 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882/* end confdefs.h. */
ce2cded5
L
9883int foo(void) {}
9884_ACEOF
81ecdfbb 9885if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 9886 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 9887
ce2cded5 9888fi
81ecdfbb
RW
9889rm -f core conftest.err conftest.$ac_objext \
9890 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
9891 LDFLAGS="$save_LDFLAGS"
9892 else
9893 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'
9894 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'
9895 fi
9896 archive_cmds_need_lc='no'
9897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9898 hardcode_libdir_separator=:
9899 inherit_rpath=yes
9900 link_all_deplibs=yes
9901 ;;
d7040cdb 9902
ce2cded5
L
9903 netbsd*)
9904 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9905 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9906 else
9907 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9908 fi
9909 hardcode_libdir_flag_spec='-R$libdir'
9910 hardcode_direct=yes
9911 hardcode_shlibpath_var=no
9912 ;;
d7040cdb 9913
ce2cded5
L
9914 newsos6)
9915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9916 hardcode_direct=yes
9917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9918 hardcode_libdir_separator=:
9919 hardcode_shlibpath_var=no
9920 ;;
d7040cdb 9921
ce2cded5
L
9922 *nto* | *qnx*)
9923 ;;
d7040cdb 9924
ce2cded5 9925 openbsd*)
b214d478
SE
9926 if test -f /usr/libexec/ld.so; then
9927 hardcode_direct=yes
9928 hardcode_shlibpath_var=no
9929 hardcode_direct_absolute=yes
9930 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 9931 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 9932 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 9933 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
9934 export_dynamic_flag_spec='${wl}-E'
9935 else
9936 case $host_os in
9937 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9938 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9939 hardcode_libdir_flag_spec='-R$libdir'
9940 ;;
9941 *)
9942 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9943 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9944 ;;
9945 esac
9946 fi
9947 else
9948 ld_shlibs=no
ce2cded5
L
9949 fi
9950 ;;
d7040cdb 9951
ce2cded5
L
9952 os2*)
9953 hardcode_libdir_flag_spec='-L$libdir'
9954 hardcode_minus_L=yes
9955 allow_undefined_flag=unsupported
9956 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'
9957 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9958 ;;
d7040cdb 9959
ce2cded5
L
9960 osf3*)
9961 if test "$GCC" = yes; then
9962 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9963 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'
9964 else
9965 allow_undefined_flag=' -expect_unresolved \*'
9966 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'
9967 fi
9968 archive_cmds_need_lc='no'
9969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9970 hardcode_libdir_separator=:
9971 ;;
d7040cdb 9972
ce2cded5
L
9973 osf4* | osf5*) # as osf3* with the addition of -msym flag
9974 if test "$GCC" = yes; then
9975 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9976 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'
9977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9978 else
9979 allow_undefined_flag=' -expect_unresolved \*'
9980 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'
9981 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~
9982 $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 9983
ce2cded5
L
9984 # Both c and cxx compiler support -rpath directly
9985 hardcode_libdir_flag_spec='-rpath $libdir'
9986 fi
9987 archive_cmds_need_lc='no'
9988 hardcode_libdir_separator=:
9989 ;;
d7040cdb 9990
ce2cded5
L
9991 solaris*)
9992 no_undefined_flag=' -z defs'
9993 if test "$GCC" = yes; then
9994 wlarc='${wl}'
9995 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9996 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9997 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9998 else
9999 case `$CC -V 2>&1` in
10000 *"Compilers 5.0"*)
10001 wlarc=''
10002 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10003 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10004 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10005 ;;
10006 *)
10007 wlarc='${wl}'
10008 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10009 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10010 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10011 ;;
10012 esac
10013 fi
10014 hardcode_libdir_flag_spec='-R$libdir'
10015 hardcode_shlibpath_var=no
10016 case $host_os in
10017 solaris2.[0-5] | solaris2.[0-5].*) ;;
10018 *)
10019 # The compiler driver will combine and reorder linker options,
10020 # but understands `-z linker_flag'. GCC discards it without `$wl',
10021 # but is careful enough not to reorder.
10022 # Supported since Solaris 2.6 (maybe 2.5.1?)
10023 if test "$GCC" = yes; then
10024 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10025 else
10026 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10027 fi
10028 ;;
10029 esac
10030 link_all_deplibs=yes
10031 ;;
d7040cdb 10032
ce2cded5
L
10033 sunos4*)
10034 if test "x$host_vendor" = xsequent; then
10035 # Use $CC to link under sequent, because it throws in some extra .o
10036 # files that make .init and .fini sections work.
10037 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10038 else
10039 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10040 fi
10041 hardcode_libdir_flag_spec='-L$libdir'
10042 hardcode_direct=yes
10043 hardcode_minus_L=yes
10044 hardcode_shlibpath_var=no
10045 ;;
d7040cdb 10046
ce2cded5
L
10047 sysv4)
10048 case $host_vendor in
10049 sni)
10050 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10051 hardcode_direct=yes # is this really true???
10052 ;;
10053 siemens)
10054 ## LD is ld it makes a PLAMLIB
10055 ## CC just makes a GrossModule.
10056 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10057 reload_cmds='$CC -r -o $output$reload_objs'
10058 hardcode_direct=no
10059 ;;
10060 motorola)
10061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10062 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10063 ;;
10064 esac
10065 runpath_var='LD_RUN_PATH'
10066 hardcode_shlibpath_var=no
10067 ;;
d7040cdb 10068
ce2cded5
L
10069 sysv4.3*)
10070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10071 hardcode_shlibpath_var=no
10072 export_dynamic_flag_spec='-Bexport'
10073 ;;
d7040cdb 10074
ce2cded5
L
10075 sysv4*MP*)
10076 if test -d /usr/nec; then
10077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10078 hardcode_shlibpath_var=no
10079 runpath_var=LD_RUN_PATH
10080 hardcode_runpath_var=yes
10081 ld_shlibs=yes
10082 fi
10083 ;;
d7040cdb 10084
ce2cded5
L
10085 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10086 no_undefined_flag='${wl}-z,text'
10087 archive_cmds_need_lc=no
10088 hardcode_shlibpath_var=no
10089 runpath_var='LD_RUN_PATH'
d7040cdb 10090
ce2cded5
L
10091 if test "$GCC" = yes; then
10092 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10093 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10094 else
10095 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10096 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10097 fi
10098 ;;
d7040cdb 10099
ce2cded5
L
10100 sysv5* | sco3.2v5* | sco5v6*)
10101 # Note: We can NOT use -z defs as we might desire, because we do not
10102 # link with -lc, and that would cause any symbols used from libc to
10103 # always be unresolved, which means just about no library would
10104 # ever link correctly. If we're not using GNU ld we use -z text
10105 # though, which does catch some bad symbols but isn't as heavy-handed
10106 # as -z defs.
10107 no_undefined_flag='${wl}-z,text'
10108 allow_undefined_flag='${wl}-z,nodefs'
10109 archive_cmds_need_lc=no
10110 hardcode_shlibpath_var=no
10111 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10112 hardcode_libdir_separator=':'
10113 link_all_deplibs=yes
10114 export_dynamic_flag_spec='${wl}-Bexport'
10115 runpath_var='LD_RUN_PATH'
d7040cdb 10116
ce2cded5
L
10117 if test "$GCC" = yes; then
10118 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120 else
10121 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10122 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10123 fi
10124 ;;
d7040cdb 10125
ce2cded5
L
10126 uts4*)
10127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10128 hardcode_libdir_flag_spec='-L$libdir'
10129 hardcode_shlibpath_var=no
10130 ;;
d7040cdb 10131
ce2cded5
L
10132 *)
10133 ld_shlibs=no
10134 ;;
10135 esac
d7040cdb 10136
ce2cded5
L
10137 if test x$host_vendor = xsni; then
10138 case $host in
10139 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10140 export_dynamic_flag_spec='${wl}-Blargedynsym'
10141 ;;
10142 esac
10143 fi
10144 fi
d7040cdb 10145
81ecdfbb
RW
10146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10147$as_echo "$ld_shlibs" >&6; }
ce2cded5 10148test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10149
ce2cded5 10150with_gnu_ld=$with_gnu_ld
d7040cdb
SE
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
ce2cded5
L
10166#
10167# Do we need to explicitly link libc?
10168#
10169case "x$archive_cmds_need_lc" in
10170x|xyes)
10171 # Assume -lc should be added
10172 archive_cmds_need_lc=yes
d7040cdb 10173
ce2cded5
L
10174 if test "$enable_shared" = yes && test "$GCC" = yes; then
10175 case $archive_cmds in
10176 *'~'*)
10177 # FIXME: we may have to deal with multi-command sequences.
10178 ;;
10179 '$CC '*)
10180 # Test whether the compiler implicitly links with -lc since on some
10181 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10182 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10184$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10185if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10186 $as_echo_n "(cached) " >&6
39144654
RW
10187else
10188 $RM conftest*
10189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10190
81ecdfbb 10191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10192 (eval $ac_compile) 2>&5
10193 ac_status=$?
81ecdfbb
RW
10194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10195 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10196 soname=conftest
10197 lib=conftest
10198 libobjs=conftest.$ac_objext
10199 deplibs=
10200 wl=$lt_prog_compiler_wl
10201 pic_flag=$lt_prog_compiler_pic
10202 compiler_flags=-v
10203 linker_flags=-v
10204 verstring=
10205 output_objdir=.
10206 libname=conftest
10207 lt_save_allow_undefined_flag=$allow_undefined_flag
10208 allow_undefined_flag=
81ecdfbb 10209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10210 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10211 ac_status=$?
81ecdfbb
RW
10212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10213 test $ac_status = 0; }
39144654
RW
10214 then
10215 lt_cv_archive_cmds_need_lc=no
10216 else
10217 lt_cv_archive_cmds_need_lc=yes
10218 fi
10219 allow_undefined_flag=$lt_save_allow_undefined_flag
10220 else
10221 cat conftest.err 1>&5
10222 fi
10223 $RM conftest*
10224
10225fi
81ecdfbb
RW
10226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10227$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10228 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10229 ;;
10230 esac
10231 fi
10232 ;;
10233esac
d7040cdb
SE
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
d7040cdb 10261
d7040cdb 10262
d7040cdb
SE
10263
10264
10265
10266
10267
10268
d7040cdb 10269
d7040cdb 10270
d7040cdb 10271
d7040cdb 10272
d7040cdb 10273
d7040cdb 10274
d7040cdb 10275
d7040cdb 10276
d7040cdb 10277
d7040cdb 10278
d7040cdb 10279
d7040cdb 10280
d7040cdb 10281
d7040cdb 10282
d7040cdb 10283
d7040cdb 10284
d7040cdb 10285
d7040cdb 10286
d7040cdb 10287
d7040cdb 10288
d7040cdb 10289
d7040cdb 10290
d7040cdb 10291
d7040cdb 10292
d7040cdb 10293
d7040cdb 10294
d7040cdb 10295
d7040cdb 10296
ce2cded5
L
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
81ecdfbb
RW
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10392$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
10393
10394if test "$GCC" = yes; then
ce2cded5
L
10395 case $host_os in
10396 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10397 *) lt_awk_arg="/^libraries:/" ;;
10398 esac
10399 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10400 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10401 # if the path contains ";" then we assume it to be the separator
10402 # otherwise default to the standard path separator (i.e. ":") - it is
10403 # assumed that no part of a normal pathname contains ";" but that should
10404 # okay in the real world where ";" in dirpaths is itself problematic.
10405 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10406 else
10407 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10408 fi
10409 # Ok, now we have the path, separated by spaces, we can step through it
10410 # and add multilib dir if necessary.
10411 lt_tmp_lt_search_path_spec=
10412 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10413 for lt_sys_path in $lt_search_path_spec; do
10414 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10415 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10416 else
10417 test -d "$lt_sys_path" && \
10418 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10419 fi
10420 done
10421 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10422BEGIN {RS=" "; FS="/|\n";} {
10423 lt_foo="";
10424 lt_count=0;
10425 for (lt_i = NF; lt_i > 0; lt_i--) {
10426 if ($lt_i != "" && $lt_i != ".") {
10427 if ($lt_i == "..") {
10428 lt_count++;
10429 } else {
10430 if (lt_count == 0) {
10431 lt_foo="/" $lt_i lt_foo;
10432 } else {
10433 lt_count--;
10434 }
10435 }
10436 }
10437 }
10438 if (lt_foo != "") { lt_freq[lt_foo]++; }
10439 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10440}'`
10441 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
d7040cdb 10442else
ce2cded5
L
10443 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10444fi
10445library_names_spec=
10446libname_spec='lib$name'
10447soname_spec=
10448shrext_cmds=".so"
10449postinstall_cmds=
10450postuninstall_cmds=
10451finish_cmds=
10452finish_eval=
10453shlibpath_var=
10454shlibpath_overrides_runpath=unknown
10455version_type=none
10456dynamic_linker="$host_os ld.so"
10457sys_lib_dlsearch_path_spec="/lib /usr/lib"
10458need_lib_prefix=unknown
10459hardcode_into_libs=no
10460
10461# when you set need_version to no, make sure it does not cause -set_version
10462# flags to be left without arguments
10463need_version=unknown
10464
10465case $host_os in
10466aix3*)
10467 version_type=linux
10468 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10469 shlibpath_var=LIBPATH
10470
10471 # AIX 3 has no versioning support, so we append a major version to the name.
10472 soname_spec='${libname}${release}${shared_ext}$major'
10473 ;;
10474
50e7d84b 10475aix[4-9]*)
ce2cded5
L
10476 version_type=linux
10477 need_lib_prefix=no
10478 need_version=no
10479 hardcode_into_libs=yes
10480 if test "$host_cpu" = ia64; then
10481 # AIX 5 supports IA64
10482 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10483 shlibpath_var=LD_LIBRARY_PATH
10484 else
10485 # With GCC up to 2.95.x, collect2 would create an import file
10486 # for dependence libraries. The import file would start with
10487 # the line `#! .'. This would cause the generated library to
10488 # depend on `.', always an invalid library. This was fixed in
10489 # development snapshots of GCC prior to 3.0.
10490 case $host_os in
10491 aix4 | aix4.[01] | aix4.[01].*)
10492 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10493 echo ' yes '
10494 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10495 :
10496 else
10497 can_build_shared=no
10498 fi
10499 ;;
10500 esac
10501 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10502 # soname into executable. Probably we can add versioning support to
10503 # collect2, so additional links can be useful in future.
10504 if test "$aix_use_runtimelinking" = yes; then
10505 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10506 # instead of lib<name>.a to let people know that these are not
10507 # typical AIX shared libraries.
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509 else
10510 # We preserve .a as extension for shared libraries through AIX4.2
10511 # and later when we are not doing run time linking.
10512 library_names_spec='${libname}${release}.a $libname.a'
10513 soname_spec='${libname}${release}${shared_ext}$major'
10514 fi
10515 shlibpath_var=LIBPATH
10516 fi
10517 ;;
10518
10519amigaos*)
b214d478
SE
10520 case $host_cpu in
10521 powerpc)
10522 # Since July 2007 AmigaOS4 officially supports .so libraries.
10523 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10525 ;;
10526 m68k)
ce2cded5
L
10527 library_names_spec='$libname.ixlibrary $libname.a'
10528 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10529 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'
b214d478
SE
10530 ;;
10531 esac
ce2cded5
L
10532 ;;
10533
10534beos*)
10535 library_names_spec='${libname}${shared_ext}'
10536 dynamic_linker="$host_os ld.so"
10537 shlibpath_var=LIBRARY_PATH
10538 ;;
10539
10540bsdi[45]*)
10541 version_type=linux
10542 need_version=no
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10546 shlibpath_var=LD_LIBRARY_PATH
10547 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10548 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10549 # the default ld.so.conf also contains /usr/contrib/lib and
10550 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10551 # libtool to hard-code these into programs
10552 ;;
10553
b214d478 10554cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10555 version_type=windows
10556 shrext_cmds=".dll"
10557 need_version=no
10558 need_lib_prefix=no
10559
b214d478
SE
10560 case $GCC,$host_os in
10561 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10562 library_names_spec='$libname.dll.a'
10563 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10564 postinstall_cmds='base_file=`basename \${file}`~
10565 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10566 dldir=$destdir/`dirname \$dlpath`~
10567 test -d \$dldir || mkdir -p \$dldir~
10568 $install_prog $dir/$dlname \$dldir/$dlname~
10569 chmod a+x \$dldir/$dlname~
10570 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10571 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10572 fi'
10573 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10574 dlpath=$dir/\$dldll~
10575 $RM \$dlpath'
10576 shlibpath_overrides_runpath=yes
10577
10578 case $host_os in
10579 cygwin*)
10580 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10581 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10582 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10583 ;;
b214d478 10584 mingw* | cegcc*)
ce2cded5
L
10585 # MinGW DLLs use traditional 'lib' prefix
10586 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10587 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10588 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10589 # It is most probably a Windows format PATH printed by
10590 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10591 # path with ; separators, and with drive letters. We can handle the
10592 # drive letters (cygwin fileutils understands them), so leave them,
10593 # especially as we might pass files found there to a mingw objdump,
10594 # which wouldn't understand a cygwinified path. Ahh.
10595 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10596 else
10597 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10598 fi
10599 ;;
10600 pw32*)
10601 # pw32 DLLs use 'pw' prefix rather than 'lib'
10602 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10603 ;;
10604 esac
10605 ;;
10606
10607 *)
10608 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10609 ;;
10610 esac
10611 dynamic_linker='Win32 ld.exe'
10612 # FIXME: first we should search . and the directory the executable is in
10613 shlibpath_var=PATH
10614 ;;
10615
10616darwin* | rhapsody*)
10617 dynamic_linker="$host_os dyld"
10618 version_type=darwin
10619 need_lib_prefix=no
10620 need_version=no
10621 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10622 soname_spec='${libname}${release}${major}$shared_ext'
10623 shlibpath_overrides_runpath=yes
10624 shlibpath_var=DYLD_LIBRARY_PATH
10625 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10626
10627 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10628 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10629 ;;
10630
10631dgux*)
10632 version_type=linux
10633 need_lib_prefix=no
10634 need_version=no
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10636 soname_spec='${libname}${release}${shared_ext}$major'
10637 shlibpath_var=LD_LIBRARY_PATH
10638 ;;
10639
10640freebsd1*)
10641 dynamic_linker=no
10642 ;;
10643
10644freebsd* | dragonfly*)
10645 # DragonFly does not have aout. When/if they implement a new
10646 # versioning mechanism, adjust this.
10647 if test -x /usr/bin/objformat; then
10648 objformat=`/usr/bin/objformat`
10649 else
10650 case $host_os in
10651 freebsd[123]*) objformat=aout ;;
10652 *) objformat=elf ;;
10653 esac
10654 fi
10655 version_type=freebsd-$objformat
10656 case $version_type in
10657 freebsd-elf*)
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10659 need_version=no
10660 need_lib_prefix=no
10661 ;;
10662 freebsd-*)
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10664 need_version=yes
10665 ;;
10666 esac
10667 shlibpath_var=LD_LIBRARY_PATH
10668 case $host_os in
10669 freebsd2*)
10670 shlibpath_overrides_runpath=yes
10671 ;;
10672 freebsd3.[01]* | freebsdelf3.[01]*)
10673 shlibpath_overrides_runpath=yes
10674 hardcode_into_libs=yes
10675 ;;
10676 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10677 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10678 shlibpath_overrides_runpath=no
10679 hardcode_into_libs=yes
10680 ;;
10681 *) # from 4.6 on, and DragonFly
10682 shlibpath_overrides_runpath=yes
10683 hardcode_into_libs=yes
10684 ;;
10685 esac
10686 ;;
10687
10688gnu*)
10689 version_type=linux
10690 need_lib_prefix=no
10691 need_version=no
10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10693 soname_spec='${libname}${release}${shared_ext}$major'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 hardcode_into_libs=yes
10696 ;;
10697
10698hpux9* | hpux10* | hpux11*)
10699 # Give a soname corresponding to the major version so that dld.sl refuses to
10700 # link against other versions.
10701 version_type=sunos
10702 need_lib_prefix=no
10703 need_version=no
10704 case $host_cpu in
10705 ia64*)
10706 shrext_cmds='.so'
10707 hardcode_into_libs=yes
10708 dynamic_linker="$host_os dld.so"
10709 shlibpath_var=LD_LIBRARY_PATH
10710 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10712 soname_spec='${libname}${release}${shared_ext}$major'
10713 if test "X$HPUX_IA64_MODE" = X32; then
10714 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10715 else
10716 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10717 fi
10718 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10719 ;;
10720 hppa*64*)
10721 shrext_cmds='.sl'
10722 hardcode_into_libs=yes
10723 dynamic_linker="$host_os dld.sl"
10724 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10725 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10727 soname_spec='${libname}${release}${shared_ext}$major'
10728 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10730 ;;
10731 *)
10732 shrext_cmds='.sl'
10733 dynamic_linker="$host_os dld.sl"
10734 shlibpath_var=SHLIB_PATH
10735 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10737 soname_spec='${libname}${release}${shared_ext}$major'
10738 ;;
10739 esac
10740 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10741 postinstall_cmds='chmod 555 $lib'
10742 ;;
10743
10744interix[3-9]*)
10745 version_type=linux
10746 need_lib_prefix=no
10747 need_version=no
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10749 soname_spec='${libname}${release}${shared_ext}$major'
10750 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10751 shlibpath_var=LD_LIBRARY_PATH
10752 shlibpath_overrides_runpath=no
10753 hardcode_into_libs=yes
10754 ;;
10755
10756irix5* | irix6* | nonstopux*)
10757 case $host_os in
10758 nonstopux*) version_type=nonstopux ;;
10759 *)
10760 if test "$lt_cv_prog_gnu_ld" = yes; then
10761 version_type=linux
10762 else
10763 version_type=irix
10764 fi ;;
10765 esac
10766 need_lib_prefix=no
10767 need_version=no
10768 soname_spec='${libname}${release}${shared_ext}$major'
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10770 case $host_os in
10771 irix5* | nonstopux*)
10772 libsuff= shlibsuff=
10773 ;;
10774 *)
10775 case $LD in # libtool.m4 will add one of these switches to LD
10776 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10777 libsuff= shlibsuff= libmagic=32-bit;;
10778 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10779 libsuff=32 shlibsuff=N32 libmagic=N32;;
10780 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10781 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10782 *) libsuff= shlibsuff= libmagic=never-match;;
10783 esac
10784 ;;
10785 esac
10786 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10787 shlibpath_overrides_runpath=no
10788 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10789 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10790 hardcode_into_libs=yes
10791 ;;
10792
10793# No shared lib support for Linux oldld, aout, or coff.
10794linux*oldld* | linux*aout* | linux*coff*)
10795 dynamic_linker=no
10796 ;;
10797
10798# This must be Linux ELF.
58e24671 10799linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
10800 version_type=linux
10801 need_lib_prefix=no
10802 need_version=no
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10804 soname_spec='${libname}${release}${shared_ext}$major'
10805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10806 shlibpath_var=LD_LIBRARY_PATH
10807 shlibpath_overrides_runpath=no
39144654 10808
ce2cded5 10809 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10810 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10811 $as_echo_n "(cached) " >&6
39144654
RW
10812else
10813 lt_cv_shlibpath_overrides_runpath=no
10814 save_LDFLAGS=$LDFLAGS
10815 save_libdir=$libdir
10816 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10817 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10819/* end confdefs.h. */
10820
d7040cdb
SE
10821int
10822main ()
10823{
ce2cded5 10824
d7040cdb
SE
10825 ;
10826 return 0;
10827}
10828_ACEOF
81ecdfbb
RW
10829if ac_fn_c_try_link "$LINENO"; then :
10830 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10831 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10832fi
d7040cdb 10833fi
81ecdfbb
RW
10834rm -f core conftest.err conftest.$ac_objext \
10835 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10836 LDFLAGS=$save_LDFLAGS
10837 libdir=$save_libdir
10838
10839fi
10840
10841 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 10842
ce2cded5
L
10843 # This implies no fast_install, which is unacceptable.
10844 # Some rework will be needed to allow for fast_install
10845 # before this can be enabled.
10846 hardcode_into_libs=yes
d7040cdb 10847
ce2cded5
L
10848 # Append ld.so.conf contents to the search path
10849 if test -f /etc/ld.so.conf; then
b214d478 10850 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
10851 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10852 fi
d7040cdb 10853
ce2cded5
L
10854 # We used to test for /lib/ld.so.1 and disable shared libraries on
10855 # powerpc, because MkLinux only supported shared libraries with the
10856 # GNU dynamic linker. Since this was broken with cross compilers,
10857 # most powerpc-linux boxes support dynamic linking these days and
10858 # people can always --disable-shared, the test was removed, and we
10859 # assume the GNU/Linux dynamic linker is in use.
10860 dynamic_linker='GNU/Linux ld.so'
10861 ;;
d7040cdb 10862
ce2cded5
L
10863netbsd*)
10864 version_type=sunos
10865 need_lib_prefix=no
10866 need_version=no
10867 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10869 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10870 dynamic_linker='NetBSD (a.out) ld.so'
10871 else
10872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10873 soname_spec='${libname}${release}${shared_ext}$major'
10874 dynamic_linker='NetBSD ld.elf_so'
10875 fi
10876 shlibpath_var=LD_LIBRARY_PATH
10877 shlibpath_overrides_runpath=yes
10878 hardcode_into_libs=yes
10879 ;;
d7040cdb 10880
ce2cded5
L
10881newsos6)
10882 version_type=linux
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10884 shlibpath_var=LD_LIBRARY_PATH
10885 shlibpath_overrides_runpath=yes
10886 ;;
d7040cdb 10887
ce2cded5
L
10888*nto* | *qnx*)
10889 version_type=qnx
10890 need_lib_prefix=no
10891 need_version=no
10892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10893 soname_spec='${libname}${release}${shared_ext}$major'
10894 shlibpath_var=LD_LIBRARY_PATH
10895 shlibpath_overrides_runpath=no
10896 hardcode_into_libs=yes
10897 dynamic_linker='ldqnx.so'
10898 ;;
d7040cdb 10899
ce2cded5
L
10900openbsd*)
10901 version_type=sunos
10902 sys_lib_dlsearch_path_spec="/usr/lib"
10903 need_lib_prefix=no
10904 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10905 case $host_os in
10906 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10907 *) need_version=no ;;
10908 esac
10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10911 shlibpath_var=LD_LIBRARY_PATH
10912 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10913 case $host_os in
10914 openbsd2.[89] | openbsd2.[89].*)
10915 shlibpath_overrides_runpath=no
10916 ;;
10917 *)
10918 shlibpath_overrides_runpath=yes
10919 ;;
10920 esac
10921 else
10922 shlibpath_overrides_runpath=yes
10923 fi
10924 ;;
d7040cdb 10925
ce2cded5
L
10926os2*)
10927 libname_spec='$name'
10928 shrext_cmds=".dll"
10929 need_lib_prefix=no
10930 library_names_spec='$libname${shared_ext} $libname.a'
10931 dynamic_linker='OS/2 ld.exe'
10932 shlibpath_var=LIBPATH
10933 ;;
d7040cdb 10934
ce2cded5
L
10935osf3* | osf4* | osf5*)
10936 version_type=osf
10937 need_lib_prefix=no
10938 need_version=no
10939 soname_spec='${libname}${release}${shared_ext}$major'
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10941 shlibpath_var=LD_LIBRARY_PATH
10942 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10943 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10944 ;;
d7040cdb 10945
ce2cded5
L
10946rdos*)
10947 dynamic_linker=no
10948 ;;
d7040cdb 10949
ce2cded5
L
10950solaris*)
10951 version_type=linux
10952 need_lib_prefix=no
10953 need_version=no
10954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10955 soname_spec='${libname}${release}${shared_ext}$major'
10956 shlibpath_var=LD_LIBRARY_PATH
10957 shlibpath_overrides_runpath=yes
10958 hardcode_into_libs=yes
10959 # ldd complains unless libraries are executable
10960 postinstall_cmds='chmod +x $lib'
10961 ;;
d7040cdb 10962
ce2cded5
L
10963sunos4*)
10964 version_type=sunos
10965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10966 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10967 shlibpath_var=LD_LIBRARY_PATH
10968 shlibpath_overrides_runpath=yes
10969 if test "$with_gnu_ld" = yes; then
10970 need_lib_prefix=no
10971 fi
10972 need_version=yes
10973 ;;
d7040cdb 10974
ce2cded5
L
10975sysv4 | sysv4.3*)
10976 version_type=linux
10977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10978 soname_spec='${libname}${release}${shared_ext}$major'
10979 shlibpath_var=LD_LIBRARY_PATH
10980 case $host_vendor in
10981 sni)
10982 shlibpath_overrides_runpath=no
10983 need_lib_prefix=no
10984 runpath_var=LD_RUN_PATH
10985 ;;
10986 siemens)
10987 need_lib_prefix=no
10988 ;;
10989 motorola)
10990 need_lib_prefix=no
10991 need_version=no
10992 shlibpath_overrides_runpath=no
10993 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10994 ;;
10995 esac
10996 ;;
d7040cdb 10997
ce2cded5
L
10998sysv4*MP*)
10999 if test -d /usr/nec ;then
11000 version_type=linux
11001 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11002 soname_spec='$libname${shared_ext}.$major'
11003 shlibpath_var=LD_LIBRARY_PATH
11004 fi
11005 ;;
d7040cdb 11006
ce2cded5
L
11007sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11008 version_type=freebsd-elf
11009 need_lib_prefix=no
11010 need_version=no
11011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11012 soname_spec='${libname}${release}${shared_ext}$major'
11013 shlibpath_var=LD_LIBRARY_PATH
11014 shlibpath_overrides_runpath=yes
11015 hardcode_into_libs=yes
11016 if test "$with_gnu_ld" = yes; then
11017 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11018 else
11019 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11020 case $host_os in
11021 sco3.2v5*)
11022 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11023 ;;
11024 esac
11025 fi
11026 sys_lib_dlsearch_path_spec='/usr/lib'
11027 ;;
d7040cdb 11028
ce2cded5
L
11029tpf*)
11030 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11031 version_type=linux
11032 need_lib_prefix=no
11033 need_version=no
b214d478 11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
11035 shlibpath_var=LD_LIBRARY_PATH
11036 shlibpath_overrides_runpath=no
11037 hardcode_into_libs=yes
11038 ;;
d7040cdb 11039
ce2cded5
L
11040uts4*)
11041 version_type=linux
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043 soname_spec='${libname}${release}${shared_ext}$major'
11044 shlibpath_var=LD_LIBRARY_PATH
11045 ;;
d7040cdb 11046
ce2cded5
L
11047*)
11048 dynamic_linker=no
11049 ;;
11050esac
81ecdfbb
RW
11051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11052$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
11053test "$dynamic_linker" = no && can_build_shared=no
11054
11055variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11056if test "$GCC" = yes; then
11057 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
11058fi
11059
b214d478
SE
11060if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11061 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11062fi
11063if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11064 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11065fi
11066
d7040cdb
SE
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
d7040cdb 11078
d7040cdb 11079
d7040cdb 11080
d7040cdb 11081
d7040cdb
SE
11082
11083
11084
11085
d7040cdb 11086
d7040cdb
SE
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
d7040cdb
SE
11100
11101
11102
11103
d7040cdb
SE
11104
11105
11106
11107
d7040cdb 11108
d7040cdb 11109
d7040cdb 11110
d7040cdb 11111
d7040cdb 11112
d7040cdb 11113
d7040cdb 11114
d7040cdb
SE
11115
11116
11117
11118
11119
d7040cdb 11120
d7040cdb 11121
d7040cdb 11122
d7040cdb 11123
d7040cdb 11124
d7040cdb 11125
d7040cdb
SE
11126
11127
11128
11129
11130
d7040cdb
SE
11131
11132
d7040cdb 11133
d7040cdb 11134
d7040cdb 11135
d7040cdb 11136
ce2cded5
L
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
81ecdfbb
RW
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11154$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11155hardcode_action=
11156if test -n "$hardcode_libdir_flag_spec" ||
11157 test -n "$runpath_var" ||
11158 test "X$hardcode_automatic" = "Xyes" ; then
11159
11160 # We can hardcode non-existent directories.
11161 if test "$hardcode_direct" != no &&
11162 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11163 # have to relink, otherwise we might link with an installed library
11164 # when we should be linking with a yet-to-be-installed one
11165 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11166 test "$hardcode_minus_L" != no; then
11167 # Linking always hardcodes the temporary library directory.
11168 hardcode_action=relink
11169 else
11170 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11171 hardcode_action=immediate
d7040cdb 11172 fi
d7040cdb 11173else
ce2cded5
L
11174 # We cannot hardcode anything, or else we can only hardcode existing
11175 # directories.
11176 hardcode_action=unsupported
d7040cdb 11177fi
81ecdfbb
RW
11178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11179$as_echo "$hardcode_action" >&6; }
d7040cdb 11180
ce2cded5
L
11181if test "$hardcode_action" = relink ||
11182 test "$inherit_rpath" = yes; then
11183 # Fast installation is not supported
11184 enable_fast_install=no
11185elif test "$shlibpath_overrides_runpath" = yes ||
11186 test "$enable_shared" = no; then
11187 # Fast installation is not necessary
11188 enable_fast_install=needless
d7040cdb
SE
11189fi
11190
d7040cdb 11191
d7040cdb 11192
d7040cdb 11193
d7040cdb 11194
d7040cdb 11195
ce2cded5
L
11196 if test "x$enable_dlopen" != xyes; then
11197 enable_dlopen=unknown
11198 enable_dlopen_self=unknown
11199 enable_dlopen_self_static=unknown
d7040cdb 11200else
ce2cded5
L
11201 lt_cv_dlopen=no
11202 lt_cv_dlopen_libs=
d7040cdb 11203
ce2cded5
L
11204 case $host_os in
11205 beos*)
11206 lt_cv_dlopen="load_add_on"
11207 lt_cv_dlopen_libs=
11208 lt_cv_dlopen_self=yes
11209 ;;
d7040cdb 11210
b214d478 11211 mingw* | pw32* | cegcc*)
ce2cded5
L
11212 lt_cv_dlopen="LoadLibrary"
11213 lt_cv_dlopen_libs=
11214 ;;
11215
11216 cygwin*)
11217 lt_cv_dlopen="dlopen"
11218 lt_cv_dlopen_libs=
11219 ;;
11220
11221 darwin*)
11222 # if libdl is installed we need to link against it
81ecdfbb
RW
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11224$as_echo_n "checking for dlopen in -ldl... " >&6; }
11225if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
d7040cdb 11227else
ce2cded5
L
11228 ac_check_lib_save_LIBS=$LIBS
11229LIBS="-ldl $LIBS"
81ecdfbb 11230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11231/* end confdefs.h. */
11232
81ecdfbb
RW
11233/* Override any GCC internal prototype to avoid an error.
11234 Use char because int might match the return type of a GCC
11235 builtin and then its argument prototype would still apply. */
ce2cded5
L
11236#ifdef __cplusplus
11237extern "C"
11238#endif
ce2cded5
L
11239char dlopen ();
11240int
11241main ()
11242{
81ecdfbb 11243return dlopen ();
ce2cded5
L
11244 ;
11245 return 0;
11246}
11247_ACEOF
81ecdfbb 11248if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11249 ac_cv_lib_dl_dlopen=yes
11250else
81ecdfbb 11251 ac_cv_lib_dl_dlopen=no
d7040cdb 11252fi
81ecdfbb
RW
11253rm -f core conftest.err conftest.$ac_objext \
11254 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11255LIBS=$ac_check_lib_save_LIBS
d7040cdb 11256fi
81ecdfbb
RW
11257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11258$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11259if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11260 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11261else
d7040cdb 11262
ce2cded5
L
11263 lt_cv_dlopen="dyld"
11264 lt_cv_dlopen_libs=
11265 lt_cv_dlopen_self=yes
11266
d7040cdb 11267fi
ce2cded5
L
11268
11269 ;;
11270
11271 *)
81ecdfbb
RW
11272 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11273if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
11274 lt_cv_dlopen="shl_load"
11275else
81ecdfbb
RW
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11277$as_echo_n "checking for shl_load in -ldld... " >&6; }
11278if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11279 $as_echo_n "(cached) " >&6
ce2cded5
L
11280else
11281 ac_check_lib_save_LIBS=$LIBS
11282LIBS="-ldld $LIBS"
81ecdfbb 11283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11284/* end confdefs.h. */
d7040cdb 11285
81ecdfbb
RW
11286/* Override any GCC internal prototype to avoid an error.
11287 Use char because int might match the return type of a GCC
11288 builtin and then its argument prototype would still apply. */
ce2cded5
L
11289#ifdef __cplusplus
11290extern "C"
11291#endif
ce2cded5
L
11292char shl_load ();
11293int
11294main ()
11295{
81ecdfbb 11296return shl_load ();
ce2cded5
L
11297 ;
11298 return 0;
11299}
11300_ACEOF
81ecdfbb 11301if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11302 ac_cv_lib_dld_shl_load=yes
11303else
81ecdfbb 11304 ac_cv_lib_dld_shl_load=no
ce2cded5 11305fi
81ecdfbb
RW
11306rm -f core conftest.err conftest.$ac_objext \
11307 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11308LIBS=$ac_check_lib_save_LIBS
11309fi
81ecdfbb
RW
11310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11311$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11312if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
b214d478 11313 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 11314else
81ecdfbb
RW
11315 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11316if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
11317 lt_cv_dlopen="dlopen"
11318else
81ecdfbb
RW
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11320$as_echo_n "checking for dlopen in -ldl... " >&6; }
11321if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11322 $as_echo_n "(cached) " >&6
d7040cdb 11323else
ce2cded5
L
11324 ac_check_lib_save_LIBS=$LIBS
11325LIBS="-ldl $LIBS"
81ecdfbb 11326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11327/* end confdefs.h. */
11328
81ecdfbb
RW
11329/* Override any GCC internal prototype to avoid an error.
11330 Use char because int might match the return type of a GCC
11331 builtin and then its argument prototype would still apply. */
ce2cded5
L
11332#ifdef __cplusplus
11333extern "C"
11334#endif
ce2cded5 11335char dlopen ();
d7040cdb
SE
11336int
11337main ()
11338{
81ecdfbb 11339return dlopen ();
d7040cdb
SE
11340 ;
11341 return 0;
11342}
11343_ACEOF
81ecdfbb 11344if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11345 ac_cv_lib_dl_dlopen=yes
d7040cdb 11346else
81ecdfbb 11347 ac_cv_lib_dl_dlopen=no
d7040cdb 11348fi
81ecdfbb
RW
11349rm -f core conftest.err conftest.$ac_objext \
11350 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11351LIBS=$ac_check_lib_save_LIBS
d7040cdb 11352fi
81ecdfbb
RW
11353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11354$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11355if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11356 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11357else
81ecdfbb
RW
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11359$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11360if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11361 $as_echo_n "(cached) " >&6
d7040cdb 11362else
ce2cded5
L
11363 ac_check_lib_save_LIBS=$LIBS
11364LIBS="-lsvld $LIBS"
81ecdfbb 11365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11366/* end confdefs.h. */
d7040cdb 11367
81ecdfbb
RW
11368/* Override any GCC internal prototype to avoid an error.
11369 Use char because int might match the return type of a GCC
11370 builtin and then its argument prototype would still apply. */
ce2cded5
L
11371#ifdef __cplusplus
11372extern "C"
11373#endif
ce2cded5 11374char dlopen ();
d7040cdb
SE
11375int
11376main ()
11377{
81ecdfbb 11378return dlopen ();
d7040cdb
SE
11379 ;
11380 return 0;
11381}
11382_ACEOF
81ecdfbb 11383if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11384 ac_cv_lib_svld_dlopen=yes
d7040cdb 11385else
81ecdfbb 11386 ac_cv_lib_svld_dlopen=no
d7040cdb 11387fi
81ecdfbb
RW
11388rm -f core conftest.err conftest.$ac_objext \
11389 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11390LIBS=$ac_check_lib_save_LIBS
d7040cdb 11391fi
81ecdfbb
RW
11392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11393$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11394if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
11395 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11396else
81ecdfbb
RW
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11398$as_echo_n "checking for dld_link in -ldld... " >&6; }
11399if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
ce2cded5
L
11401else
11402 ac_check_lib_save_LIBS=$LIBS
11403LIBS="-ldld $LIBS"
81ecdfbb 11404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11405/* end confdefs.h. */
11406
81ecdfbb
RW
11407/* Override any GCC internal prototype to avoid an error.
11408 Use char because int might match the return type of a GCC
11409 builtin and then its argument prototype would still apply. */
ce2cded5
L
11410#ifdef __cplusplus
11411extern "C"
11412#endif
ce2cded5 11413char dld_link ();
d7040cdb
SE
11414int
11415main ()
11416{
81ecdfbb 11417return dld_link ();
d7040cdb
SE
11418 ;
11419 return 0;
11420}
11421_ACEOF
81ecdfbb 11422if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11423 ac_cv_lib_dld_dld_link=yes
d7040cdb 11424else
81ecdfbb 11425 ac_cv_lib_dld_dld_link=no
d7040cdb 11426fi
81ecdfbb
RW
11427rm -f core conftest.err conftest.$ac_objext \
11428 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11429LIBS=$ac_check_lib_save_LIBS
11430fi
81ecdfbb
RW
11431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11432$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11433if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
b214d478 11434 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11435fi
11436
11437
11438fi
11439
11440
11441fi
11442
11443
11444fi
11445
11446
11447fi
11448
11449
11450fi
11451
11452 ;;
11453 esac
11454
11455 if test "x$lt_cv_dlopen" != xno; then
11456 enable_dlopen=yes
11457 else
11458 enable_dlopen=no
11459 fi
11460
11461 case $lt_cv_dlopen in
11462 dlopen)
11463 save_CPPFLAGS="$CPPFLAGS"
11464 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11465
11466 save_LDFLAGS="$LDFLAGS"
11467 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11468
11469 save_LIBS="$LIBS"
11470 LIBS="$lt_cv_dlopen_libs $LIBS"
11471
81ecdfbb
RW
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11473$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11474if test "${lt_cv_dlopen_self+set}" = set; then :
11475 $as_echo_n "(cached) " >&6
ce2cded5
L
11476else
11477 if test "$cross_compiling" = yes; then :
11478 lt_cv_dlopen_self=cross
11479else
11480 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11481 lt_status=$lt_dlunknown
11482 cat > conftest.$ac_ext <<_LT_EOF
3388710e 11483#line 11483 "configure"
ce2cded5
L
11484#include "confdefs.h"
11485
11486#if HAVE_DLFCN_H
11487#include <dlfcn.h>
11488#endif
11489
11490#include <stdio.h>
11491
11492#ifdef RTLD_GLOBAL
11493# define LT_DLGLOBAL RTLD_GLOBAL
11494#else
11495# ifdef DL_GLOBAL
11496# define LT_DLGLOBAL DL_GLOBAL
11497# else
11498# define LT_DLGLOBAL 0
11499# endif
11500#endif
11501
11502/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11503 find out it does not work in some platform. */
11504#ifndef LT_DLLAZY_OR_NOW
11505# ifdef RTLD_LAZY
11506# define LT_DLLAZY_OR_NOW RTLD_LAZY
11507# else
11508# ifdef DL_LAZY
11509# define LT_DLLAZY_OR_NOW DL_LAZY
11510# else
11511# ifdef RTLD_NOW
11512# define LT_DLLAZY_OR_NOW RTLD_NOW
11513# else
11514# ifdef DL_NOW
11515# define LT_DLLAZY_OR_NOW DL_NOW
11516# else
11517# define LT_DLLAZY_OR_NOW 0
11518# endif
11519# endif
11520# endif
11521# endif
11522#endif
11523
ce2cded5
L
11524void fnord() { int i=42;}
11525int main ()
d7040cdb 11526{
ce2cded5
L
11527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11528 int status = $lt_dlunknown;
11529
11530 if (self)
11531 {
11532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11533 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11534 /* dlclose (self); */
11535 }
11536 else
11537 puts (dlerror ());
11538
b214d478 11539 return status;
d7040cdb 11540}
ce2cded5 11541_LT_EOF
81ecdfbb 11542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11543 (eval $ac_link) 2>&5
d7040cdb 11544 ac_status=$?
81ecdfbb
RW
11545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11546 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11547 (./conftest; exit; ) >&5 2>/dev/null
11548 lt_status=$?
11549 case x$lt_status in
11550 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11551 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11552 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11553 esac
11554 else :
11555 # compilation failed
11556 lt_cv_dlopen_self=no
11557 fi
11558fi
11559rm -fr conftest*
11560
11561
11562fi
81ecdfbb
RW
11563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11564$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11565
11566 if test "x$lt_cv_dlopen_self" = xyes; then
11567 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11569$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11570if test "${lt_cv_dlopen_self_static+set}" = set; then :
11571 $as_echo_n "(cached) " >&6
ce2cded5
L
11572else
11573 if test "$cross_compiling" = yes; then :
11574 lt_cv_dlopen_self_static=cross
11575else
11576 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11577 lt_status=$lt_dlunknown
11578 cat > conftest.$ac_ext <<_LT_EOF
3388710e 11579#line 11579 "configure"
ce2cded5
L
11580#include "confdefs.h"
11581
11582#if HAVE_DLFCN_H
11583#include <dlfcn.h>
11584#endif
11585
11586#include <stdio.h>
11587
11588#ifdef RTLD_GLOBAL
11589# define LT_DLGLOBAL RTLD_GLOBAL
11590#else
11591# ifdef DL_GLOBAL
11592# define LT_DLGLOBAL DL_GLOBAL
11593# else
11594# define LT_DLGLOBAL 0
11595# endif
11596#endif
11597
11598/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11599 find out it does not work in some platform. */
11600#ifndef LT_DLLAZY_OR_NOW
11601# ifdef RTLD_LAZY
11602# define LT_DLLAZY_OR_NOW RTLD_LAZY
11603# else
11604# ifdef DL_LAZY
11605# define LT_DLLAZY_OR_NOW DL_LAZY
11606# else
11607# ifdef RTLD_NOW
11608# define LT_DLLAZY_OR_NOW RTLD_NOW
11609# else
11610# ifdef DL_NOW
11611# define LT_DLLAZY_OR_NOW DL_NOW
11612# else
11613# define LT_DLLAZY_OR_NOW 0
11614# endif
11615# endif
11616# endif
11617# endif
11618#endif
11619
ce2cded5
L
11620void fnord() { int i=42;}
11621int main ()
11622{
11623 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11624 int status = $lt_dlunknown;
11625
11626 if (self)
11627 {
11628 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11629 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11630 /* dlclose (self); */
11631 }
11632 else
11633 puts (dlerror ());
11634
b214d478 11635 return status;
ce2cded5
L
11636}
11637_LT_EOF
81ecdfbb 11638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11639 (eval $ac_link) 2>&5
d7040cdb 11640 ac_status=$?
81ecdfbb
RW
11641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11642 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11643 (./conftest; exit; ) >&5 2>/dev/null
11644 lt_status=$?
11645 case x$lt_status in
11646 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11647 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11648 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11649 esac
11650 else :
11651 # compilation failed
11652 lt_cv_dlopen_self_static=no
11653 fi
11654fi
11655rm -fr conftest*
11656
d7040cdb
SE
11657
11658fi
81ecdfbb
RW
11659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11660$as_echo "$lt_cv_dlopen_self_static" >&6; }
ce2cded5
L
11661 fi
11662
11663 CPPFLAGS="$save_CPPFLAGS"
11664 LDFLAGS="$save_LDFLAGS"
11665 LIBS="$save_LIBS"
11666 ;;
11667 esac
11668
11669 case $lt_cv_dlopen_self in
11670 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11671 *) enable_dlopen_self=unknown ;;
11672 esac
11673
11674 case $lt_cv_dlopen_self_static in
11675 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11676 *) enable_dlopen_self_static=unknown ;;
11677 esac
d7040cdb
SE
11678fi
11679
ce2cded5
L
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696striplib=
11697old_striplib=
81ecdfbb
RW
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11699$as_echo_n "checking whether stripping libraries is possible... " >&6; }
ce2cded5
L
11700if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11701 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11702 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11704$as_echo "yes" >&6; }
d7040cdb 11705else
ce2cded5
L
11706# FIXME - insert some real tests, host_os isn't really good enough
11707 case $host_os in
11708 darwin*)
11709 if test -n "$STRIP" ; then
11710 striplib="$STRIP -x"
11711 old_striplib="$STRIP -S"
81ecdfbb
RW
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11713$as_echo "yes" >&6; }
ce2cded5 11714 else
81ecdfbb
RW
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11716$as_echo "no" >&6; }
ce2cded5
L
11717 fi
11718 ;;
11719 *)
81ecdfbb
RW
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721$as_echo "no" >&6; }
ce2cded5
L
11722 ;;
11723 esac
11724fi
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737 # Report which library types will actually be built
81ecdfbb
RW
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11739$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11741$as_echo "$can_build_shared" >&6; }
ce2cded5 11742
81ecdfbb
RW
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11744$as_echo_n "checking whether to build shared libraries... " >&6; }
ce2cded5
L
11745 test "$can_build_shared" = "no" && enable_shared=no
11746
11747 # On AIX, shared libraries and static libraries use the same namespace, and
11748 # are all built from PIC.
11749 case $host_os in
11750 aix3*)
11751 test "$enable_shared" = yes && enable_static=no
11752 if test -n "$RANLIB"; then
11753 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11754 postinstall_cmds='$RANLIB $lib'
11755 fi
11756 ;;
11757
50e7d84b 11758 aix[4-9]*)
ce2cded5
L
11759 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11760 test "$enable_shared" = yes && enable_static=no
11761 fi
11762 ;;
11763 esac
81ecdfbb
RW
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11765$as_echo "$enable_shared" >&6; }
ce2cded5 11766
81ecdfbb
RW
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11768$as_echo_n "checking whether to build static libraries... " >&6; }
ce2cded5
L
11769 # Make sure either enable_shared or enable_static is yes.
11770 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11772$as_echo "$enable_static" >&6; }
ce2cded5
L
11773
11774
11775
d7040cdb
SE
11776
11777fi
d7040cdb
SE
11778ac_ext=c
11779ac_cpp='$CPP $CPPFLAGS'
11780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11782ac_compiler_gnu=$ac_cv_c_compiler_gnu
11783
ce2cded5 11784CC="$lt_save_CC"
67310ccd 11785
67310ccd
AM
11786
11787
d7040cdb
SE
11788
11789
d7040cdb 11790
d7040cdb 11791
d7040cdb 11792
ce2cded5
L
11793
11794
11795
11796
11797
81ecdfbb 11798 ac_config_commands="$ac_config_commands libtool"
ce2cded5
L
11799
11800
11801
11802
11803# Only expand once:
11804
d7040cdb
SE
11805
11806
8cc9115f 11807ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id"
d7040cdb
SE
11808# If we haven't got the data from the intl directory,
11809# assume NLS is disabled.
11810USE_NLS=no
11811LIBINTL=
11812LIBINTL_DEP=
11813INCINTL=
11814XGETTEXT=
11815GMSGFMT=
11816POSUB=
11817
11818if test -f ../intl/config.intl; then
11819 . ../intl/config.intl
11820fi
81ecdfbb
RW
11821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11822$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 11823if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825$as_echo "no" >&6; }
d7040cdb 11826else
81ecdfbb
RW
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11828$as_echo "yes" >&6; }
d7040cdb 11829
81ecdfbb 11830$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
11831
11832
81ecdfbb
RW
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11834$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
11835 # Look for .po and .gmo files in the source directory.
11836 CATALOGS=
11837 XLINGUAS=
11838 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11839 # If there aren't any .gmo files the shell will give us the
11840 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11841 # weeded out.
11842 case "$cat" in *\**)
11843 continue;;
11844 esac
11845 # The quadruple backslash is collapsed to a double backslash
11846 # by the backticks, then collapsed again by the double quotes,
11847 # leaving us with one backslash in the sed expression (right
11848 # before the dot that mustn't act as a wildcard).
11849 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11850 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11851 # The user is allowed to set LINGUAS to a list of languages to
11852 # install catalogs for. If it's empty that means "all of them."
11853 if test "x$LINGUAS" = x; then
11854 CATALOGS="$CATALOGS $cat"
11855 XLINGUAS="$XLINGUAS $lang"
11856 else
11857 case "$LINGUAS" in *$lang*)
11858 CATALOGS="$CATALOGS $cat"
11859 XLINGUAS="$XLINGUAS $lang"
11860 ;;
11861 esac
11862 fi
11863 done
11864 LINGUAS="$XLINGUAS"
81ecdfbb
RW
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11866$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
11867
11868
11869 DATADIRNAME=share
11870
11871 INSTOBJEXT=.mo
11872
11873 GENCAT=gencat
11874
11875 CATOBJEXT=.gmo
11876
11877fi
11878
11879 MKINSTALLDIRS=
11880 if test -n "$ac_aux_dir"; then
11881 case "$ac_aux_dir" in
11882 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11883 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11884 esac
11885 fi
11886 if test -z "$MKINSTALLDIRS"; then
11887 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11888 fi
11889
11890
11891
81ecdfbb
RW
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11893$as_echo_n "checking whether NLS is requested... " >&6; }
11894 # Check whether --enable-nls was given.
11895if test "${enable_nls+set}" = set; then :
11896 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
11897else
11898 USE_NLS=yes
81ecdfbb
RW
11899fi
11900
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11902$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
11903
11904
11905
11906
11907
11908
11909# Prepare PATH_SEPARATOR.
11910# The user is always right.
11911if test "${PATH_SEPARATOR+set}" != set; then
11912 echo "#! /bin/sh" >conf$$.sh
11913 echo "exit 0" >>conf$$.sh
11914 chmod +x conf$$.sh
11915 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11916 PATH_SEPARATOR=';'
11917 else
11918 PATH_SEPARATOR=:
11919 fi
11920 rm -f conf$$.sh
11921fi
11922
11923# Find out how to test for executable files. Don't use a zero-byte file,
11924# as systems may use methods other than mode bits to determine executability.
11925cat >conf$$.file <<_ASEOF
11926#! /bin/sh
11927exit 0
11928_ASEOF
11929chmod +x conf$$.file
11930if test -x conf$$.file >/dev/null 2>&1; then
11931 ac_executable_p="test -x"
11932else
11933 ac_executable_p="test -f"
11934fi
11935rm -f conf$$.file
11936
11937# Extract the first word of "msgfmt", so it can be a program name with args.
11938set dummy msgfmt; ac_word=$2
81ecdfbb
RW
11939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11940$as_echo_n "checking for $ac_word... " >&6; }
11941if test "${ac_cv_path_MSGFMT+set}" = set; then :
11942 $as_echo_n "(cached) " >&6
d7040cdb
SE
11943else
11944 case "$MSGFMT" in
11945 [\\/]* | ?:[\\/]*)
11946 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11947 ;;
11948 *)
11949 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11950 for ac_dir in $PATH; do
11951 IFS="$ac_save_IFS"
11952 test -z "$ac_dir" && ac_dir=.
11953 for ac_exec_ext in '' $ac_executable_extensions; do
11954 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11955 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11956 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11957 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11958 break 2
11959 fi
11960 fi
11961 done
11962 done
11963 IFS="$ac_save_IFS"
11964 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11965 ;;
11966esac
11967fi
11968MSGFMT="$ac_cv_path_MSGFMT"
11969if test "$MSGFMT" != ":"; then
81ecdfbb
RW
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11971$as_echo "$MSGFMT" >&6; }
d7040cdb 11972else
81ecdfbb
RW
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974$as_echo "no" >&6; }
d7040cdb
SE
11975fi
11976
11977 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11978set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
11979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11980$as_echo_n "checking for $ac_word... " >&6; }
11981if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11982 $as_echo_n "(cached) " >&6
d7040cdb
SE
11983else
11984 case $GMSGFMT in
11985 [\\/]* | ?:[\\/]*)
11986 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11987 ;;
11988 *)
11989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990for as_dir in $PATH
11991do
11992 IFS=$as_save_IFS
11993 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11994 for ac_exec_ext in '' $ac_executable_extensions; do
11995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 11996 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
11998 break 2
11999 fi
12000done
81ecdfbb
RW
12001 done
12002IFS=$as_save_IFS
d7040cdb
SE
12003
12004 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12005 ;;
12006esac
12007fi
12008GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 12009if test -n "$GMSGFMT"; then
81ecdfbb
RW
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12011$as_echo "$GMSGFMT" >&6; }
d7040cdb 12012else
81ecdfbb
RW
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014$as_echo "no" >&6; }
20e95c23 12015fi
42ecbf5e 12016
20e95c23 12017
252b5132 12018
81ecdfbb 12019
d7040cdb
SE
12020# Prepare PATH_SEPARATOR.
12021# The user is always right.
12022if test "${PATH_SEPARATOR+set}" != set; then
12023 echo "#! /bin/sh" >conf$$.sh
12024 echo "exit 0" >>conf$$.sh
12025 chmod +x conf$$.sh
12026 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12027 PATH_SEPARATOR=';'
12028 else
12029 PATH_SEPARATOR=:
12030 fi
12031 rm -f conf$$.sh
20e95c23 12032fi
252b5132 12033
d7040cdb
SE
12034# Find out how to test for executable files. Don't use a zero-byte file,
12035# as systems may use methods other than mode bits to determine executability.
12036cat >conf$$.file <<_ASEOF
12037#! /bin/sh
12038exit 0
12039_ASEOF
12040chmod +x conf$$.file
12041if test -x conf$$.file >/dev/null 2>&1; then
12042 ac_executable_p="test -x"
20e95c23 12043else
d7040cdb
SE
12044 ac_executable_p="test -f"
12045fi
12046rm -f conf$$.file
20e95c23 12047
d7040cdb
SE
12048# Extract the first word of "xgettext", so it can be a program name with args.
12049set dummy xgettext; ac_word=$2
81ecdfbb
RW
12050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051$as_echo_n "checking for $ac_word... " >&6; }
12052if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12053 $as_echo_n "(cached) " >&6
252b5132 12054else
d7040cdb
SE
12055 case "$XGETTEXT" in
12056 [\\/]* | ?:[\\/]*)
12057 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12058 ;;
12059 *)
12060 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12061 for ac_dir in $PATH; do
12062 IFS="$ac_save_IFS"
12063 test -z "$ac_dir" && ac_dir=.
12064 for ac_exec_ext in '' $ac_executable_extensions; do
12065 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12066 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12067 (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
12068 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12069 break 2
12070 fi
12071 fi
12072 done
12073 done
12074 IFS="$ac_save_IFS"
12075 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12076 ;;
12077esac
252b5132 12078fi
d7040cdb
SE
12079XGETTEXT="$ac_cv_path_XGETTEXT"
12080if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12082$as_echo "$XGETTEXT" >&6; }
d5fbea21 12083else
81ecdfbb
RW
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085$as_echo "no" >&6; }
d5fbea21
DJ
12086fi
12087
d7040cdb 12088 rm -f messages.po
d5fbea21 12089
20e95c23 12090
d7040cdb
SE
12091# Prepare PATH_SEPARATOR.
12092# The user is always right.
12093if test "${PATH_SEPARATOR+set}" != set; then
12094 echo "#! /bin/sh" >conf$$.sh
12095 echo "exit 0" >>conf$$.sh
12096 chmod +x conf$$.sh
12097 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12098 PATH_SEPARATOR=';'
12099 else
12100 PATH_SEPARATOR=:
12101 fi
12102 rm -f conf$$.sh
12103fi
20e95c23 12104
d7040cdb
SE
12105# Find out how to test for executable files. Don't use a zero-byte file,
12106# as systems may use methods other than mode bits to determine executability.
12107cat >conf$$.file <<_ASEOF
12108#! /bin/sh
12109exit 0
12110_ASEOF
12111chmod +x conf$$.file
12112if test -x conf$$.file >/dev/null 2>&1; then
12113 ac_executable_p="test -x"
12114else
12115 ac_executable_p="test -f"
12116fi
12117rm -f conf$$.file
20e95c23 12118
d7040cdb
SE
12119# Extract the first word of "msgmerge", so it can be a program name with args.
12120set dummy msgmerge; ac_word=$2
81ecdfbb
RW
12121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12122$as_echo_n "checking for $ac_word... " >&6; }
12123if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12124 $as_echo_n "(cached) " >&6
d7040cdb
SE
12125else
12126 case "$MSGMERGE" in
12127 [\\/]* | ?:[\\/]*)
12128 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12129 ;;
12130 *)
12131 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12132 for ac_dir in $PATH; do
12133 IFS="$ac_save_IFS"
12134 test -z "$ac_dir" && ac_dir=.
12135 for ac_exec_ext in '' $ac_executable_extensions; do
12136 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12137 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12138 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12139 break 2
12140 fi
12141 fi
12142 done
12143 done
12144 IFS="$ac_save_IFS"
12145 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12146 ;;
12147esac
12148fi
12149MSGMERGE="$ac_cv_path_MSGMERGE"
12150if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12152$as_echo "$MSGMERGE" >&6; }
d7040cdb 12153else
81ecdfbb
RW
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155$as_echo "no" >&6; }
d7040cdb 12156fi
20e95c23
DJ
12157
12158
d7040cdb
SE
12159 if test "$GMSGFMT" != ":"; then
12160 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12161 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12162 : ;
12163 else
12164 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12166$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
12167 GMSGFMT=":"
12168 fi
12169 fi
20e95c23 12170
d7040cdb
SE
12171 if test "$XGETTEXT" != ":"; then
12172 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12173 (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
12174 : ;
12175 else
81ecdfbb
RW
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12177$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
12178 XGETTEXT=":"
12179 fi
12180 rm -f messages.po
20e95c23 12181 fi
42ecbf5e 12182
81ecdfbb 12183 ac_config_commands="$ac_config_commands default-1"
252b5132 12184
42ecbf5e 12185
252b5132 12186
42ecbf5e
DJ
12187
12188
d7040cdb 12189for ac_prog in 'bison -y' byacc
20e95c23 12190do
d7040cdb
SE
12191 # Extract the first word of "$ac_prog", so it can be a program name with args.
12192set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12194$as_echo_n "checking for $ac_word... " >&6; }
12195if test "${ac_cv_prog_YACC+set}" = set; then :
12196 $as_echo_n "(cached) " >&6
20e95c23 12197else
d7040cdb
SE
12198 if test -n "$YACC"; then
12199 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 12200else
d7040cdb
SE
12201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202for as_dir in $PATH
12203do
12204 IFS=$as_save_IFS
12205 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12206 for ac_exec_ext in '' $ac_executable_extensions; do
12207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12208 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 12209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12210 break 2
12211 fi
12212done
81ecdfbb
RW
12213 done
12214IFS=$as_save_IFS
42ecbf5e 12215
42ecbf5e 12216fi
e5a52504 12217fi
d7040cdb
SE
12218YACC=$ac_cv_prog_YACC
12219if test -n "$YACC"; then
81ecdfbb
RW
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12221$as_echo "$YACC" >&6; }
42ecbf5e 12222else
81ecdfbb
RW
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224$as_echo "no" >&6; }
42ecbf5e 12225fi
252b5132 12226
81ecdfbb 12227
d7040cdb 12228 test -n "$YACC" && break
42ecbf5e 12229done
d7040cdb 12230test -n "$YACC" || YACC="yacc"
d15b04bd 12231
d7040cdb
SE
12232for ac_prog in flex lex
12233do
12234 # Extract the first word of "$ac_prog", so it can be a program name with args.
12235set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237$as_echo_n "checking for $ac_word... " >&6; }
12238if test "${ac_cv_prog_LEX+set}" = set; then :
12239 $as_echo_n "(cached) " >&6
d15b04bd 12240else
d7040cdb
SE
12241 if test -n "$LEX"; then
12242 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12243else
12244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245for as_dir in $PATH
12246do
12247 IFS=$as_save_IFS
12248 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12249 for ac_exec_ext in '' $ac_executable_extensions; do
12250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12251 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 12252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12253 break 2
12254 fi
12255done
81ecdfbb
RW
12256 done
12257IFS=$as_save_IFS
d7040cdb
SE
12258
12259fi
12260fi
12261LEX=$ac_cv_prog_LEX
12262if test -n "$LEX"; then
81ecdfbb
RW
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12264$as_echo "$LEX" >&6; }
d7040cdb 12265else
81ecdfbb
RW
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267$as_echo "no" >&6; }
d15b04bd 12268fi
e5a52504 12269
81ecdfbb 12270
d7040cdb
SE
12271 test -n "$LEX" && break
12272done
12273test -n "$LEX" || LEX=":"
42ecbf5e 12274
81ecdfbb
RW
12275if test "x$LEX" != "x:"; then
12276 cat >conftest.l <<_ACEOF
12277%%
12278a { ECHO; }
12279b { REJECT; }
12280c { yymore (); }
12281d { yyless (1); }
12282e { yyless (input () != 0); }
12283f { unput (yytext[0]); }
12284. { BEGIN INITIAL; }
12285%%
12286#ifdef YYTEXT_POINTER
12287extern char *yytext;
d7040cdb 12288#endif
42ecbf5e 12289int
81ecdfbb 12290main (void)
42ecbf5e 12291{
81ecdfbb 12292 return ! yylex () + ! yywrap ();
42ecbf5e
DJ
12293}
12294_ACEOF
81ecdfbb
RW
12295{ { ac_try="$LEX conftest.l"
12296case "(($ac_try" in
12297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12299esac
12300eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12301$as_echo "$ac_try_echo"; } >&5
12302 (eval "$LEX conftest.l") 2>&5
42ecbf5e 12303 ac_status=$?
81ecdfbb
RW
12304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12305 test $ac_status = 0; }
12306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12307$as_echo_n "checking lex output file root... " >&6; }
12308if test "${ac_cv_prog_lex_root+set}" = set; then :
12309 $as_echo_n "(cached) " >&6
42ecbf5e 12310else
42ecbf5e 12311
81ecdfbb
RW
12312if test -f lex.yy.c; then
12313 ac_cv_prog_lex_root=lex.yy
12314elif test -f lexyy.c; then
12315 ac_cv_prog_lex_root=lexyy
12316else
12317 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
42ecbf5e 12318fi
42ecbf5e 12319fi
81ecdfbb
RW
12320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12321$as_echo "$ac_cv_prog_lex_root" >&6; }
12322LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 12323
81ecdfbb
RW
12324if test -z "${LEXLIB+set}"; then
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12326$as_echo_n "checking lex library... " >&6; }
12327if test "${ac_cv_lib_lex+set}" = set; then :
12328 $as_echo_n "(cached) " >&6
252b5132 12329else
20e95c23 12330
81ecdfbb
RW
12331 ac_save_LIBS=$LIBS
12332 ac_cv_lib_lex='none needed'
12333 for ac_lib in '' -lfl -ll; do
12334 LIBS="$ac_lib $ac_save_LIBS"
12335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336/* end confdefs.h. */
12337`cat $LEX_OUTPUT_ROOT.c`
12338_ACEOF
12339if ac_fn_c_try_link "$LINENO"; then :
12340 ac_cv_lib_lex=$ac_lib
20e95c23 12341fi
81ecdfbb
RW
12342rm -f core conftest.err conftest.$ac_objext \
12343 conftest$ac_exeext conftest.$ac_ext
12344 test "$ac_cv_lib_lex" != 'none needed' && break
12345 done
12346 LIBS=$ac_save_LIBS
20e95c23
DJ
12347
12348fi
81ecdfbb
RW
12349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12350$as_echo "$ac_cv_lib_lex" >&6; }
12351 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb 12352fi
20e95c23 12353
20e95c23 12354
81ecdfbb
RW
12355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12356$as_echo_n "checking whether yytext is a pointer... " >&6; }
12357if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
d7040cdb
SE
12359else
12360 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 12361# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
12362# not all implementations provide the %pointer and %array declarations.
12363ac_cv_prog_lex_yytext_pointer=no
d7040cdb 12364ac_save_LIBS=$LIBS
81ecdfbb
RW
12365LIBS="$LEXLIB $ac_save_LIBS"
12366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367/* end confdefs.h. */
12368#define YYTEXT_POINTER 1
d7040cdb 12369`cat $LEX_OUTPUT_ROOT.c`
20e95c23 12370_ACEOF
81ecdfbb 12371if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 12372 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 12373fi
81ecdfbb
RW
12374rm -f core conftest.err conftest.$ac_objext \
12375 conftest$ac_exeext conftest.$ac_ext
d7040cdb 12376LIBS=$ac_save_LIBS
d7040cdb
SE
12377
12378fi
81ecdfbb
RW
12379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12380$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
12381if test $ac_cv_prog_lex_yytext_pointer = yes; then
12382
81ecdfbb 12383$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
12384
12385fi
81ecdfbb 12386rm -f conftest.l $LEX_OUTPUT_ROOT.c
d7040cdb
SE
12387
12388fi
12389if test "$LEX" = :; then
12390 LEX=${am_missing_run}flex
12391fi
12392
81ecdfbb
RW
12393
12394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12395$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12396 # Check whether --enable-maintainer-mode was given.
12397if test "${enable_maintainer_mode+set}" = set; then :
12398 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 12399else
d7040cdb 12400 USE_MAINTAINER_MODE=no
81ecdfbb 12401fi
d7040cdb 12402
81ecdfbb
RW
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12404$as_echo "$USE_MAINTAINER_MODE" >&6; }
12405 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
12406 MAINTAINER_MODE_TRUE=
12407 MAINTAINER_MODE_FALSE='#'
12408else
12409 MAINTAINER_MODE_TRUE='#'
12410 MAINTAINER_MODE_FALSE=
252b5132 12411fi
252b5132 12412
d7040cdb
SE
12413 MAINT=$MAINTAINER_MODE_TRUE
12414
12415
81ecdfbb 12416 if false; then
d7040cdb
SE
12417 GENINSRC_NEVER_TRUE=
12418 GENINSRC_NEVER_FALSE='#'
12419else
12420 GENINSRC_NEVER_TRUE='#'
12421 GENINSRC_NEVER_FALSE=
252b5132
RH
12422fi
12423
81ecdfbb
RW
12424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
12425$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
12426if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
12427 $as_echo_n "(cached) " >&6
eccbf555
AM
12428else
12429 echo abfoo >t1
12430 echo cdfoo >t2
12431 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
12432 if cmp t1 t2 2 2 > /dev/null 2>&1; then
12433 if cmp t1 t2 1 1 > /dev/null 2>&1; then
12434 :
12435 else
12436 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
12437 fi
12438 fi
12439 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
12440 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
12441 :
12442 else
12443 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
12444 fi
12445 fi
12446 rm t1 t2
12447
12448fi
81ecdfbb
RW
12449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
12450$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
eccbf555
AM
12451do_compare="$gcc_cv_prog_cmp_skip"
12452
12453
d7040cdb
SE
12454
12455. ${srcdir}/configure.host
12456
12457
12458
12459
252b5132
RH
12460
12461
a3ffa599 12462for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
81ecdfbb
RW
12463do :
12464 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12465ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12466eval as_val=\$$as_ac_Header
12467 if test "x$as_val" = x""yes; then :
42ecbf5e 12468 cat >>confdefs.h <<_ACEOF
81ecdfbb 12469#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42ecbf5e
DJ
12470_ACEOF
12471
12472fi
12473
252b5132
RH
12474done
12475
dc27aea4 12476for ac_func in glob mkstemp realpath sbrk waitpid
81ecdfbb
RW
12477do :
12478 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12479ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12480eval as_val=\$$as_ac_var
12481 if test "x$as_val" = x""yes; then :
42ecbf5e 12482 cat >>confdefs.h <<_ACEOF
81ecdfbb 12483#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42ecbf5e 12484_ACEOF
252b5132 12485
252b5132
RH
12486fi
12487done
12488
12489ac_header_dirent=no
42ecbf5e 12490for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
81ecdfbb
RW
12491 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12493$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12494if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
12495 $as_echo_n "(cached) " >&6
12496else
12497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12498/* end confdefs.h. */
252b5132
RH
12499#include <sys/types.h>
12500#include <$ac_hdr>
42ecbf5e
DJ
12501
12502int
12503main ()
12504{
12505if ((DIR *) 0)
12506return 0;
12507 ;
12508 return 0;
12509}
12510_ACEOF
81ecdfbb 12511if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
12512 eval "$as_ac_Header=yes"
12513else
81ecdfbb 12514 eval "$as_ac_Header=no"
42ecbf5e 12515fi
81ecdfbb 12516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 12517fi
81ecdfbb
RW
12518eval ac_res=\$$as_ac_Header
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12520$as_echo "$ac_res" >&6; }
12521eval as_val=\$$as_ac_Header
12522 if test "x$as_val" = x""yes; then :
42ecbf5e 12523 cat >>confdefs.h <<_ACEOF
81ecdfbb 12524#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
42ecbf5e
DJ
12525_ACEOF
12526
12527ac_header_dirent=$ac_hdr; break
d15b04bd 12528fi
42ecbf5e 12529
d15b04bd
L
12530done
12531# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12532if test $ac_header_dirent = dirent.h; then
81ecdfbb
RW
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12534$as_echo_n "checking for library containing opendir... " >&6; }
12535if test "${ac_cv_search_opendir+set}" = set; then :
12536 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
12537else
12538 ac_func_search_save_LIBS=$LIBS
81ecdfbb 12539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
12540/* end confdefs.h. */
12541
81ecdfbb
RW
12542/* Override any GCC internal prototype to avoid an error.
12543 Use char because int might match the return type of a GCC
12544 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
12545#ifdef __cplusplus
12546extern "C"
12547#endif
42ecbf5e
DJ
12548char opendir ();
12549int
12550main ()
12551{
81ecdfbb 12552return opendir ();
42ecbf5e
DJ
12553 ;
12554 return 0;
12555}
12556_ACEOF
81ecdfbb
RW
12557for ac_lib in '' dir; do
12558 if test -z "$ac_lib"; then
12559 ac_res="none required"
12560 else
12561 ac_res=-l$ac_lib
42ecbf5e 12562 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
12563 fi
12564 if ac_fn_c_try_link "$LINENO"; then :
12565 ac_cv_search_opendir=$ac_res
12566fi
12567rm -f core conftest.err conftest.$ac_objext \
12568 conftest$ac_exeext
12569 if test "${ac_cv_search_opendir+set}" = set; then :
12570 break
12571fi
12572done
12573if test "${ac_cv_search_opendir+set}" = set; then :
e5a52504 12574
42ecbf5e 12575else
81ecdfbb 12576 ac_cv_search_opendir=no
252b5132 12577fi
81ecdfbb 12578rm conftest.$ac_ext
42ecbf5e
DJ
12579LIBS=$ac_func_search_save_LIBS
12580fi
81ecdfbb
RW
12581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12582$as_echo "$ac_cv_search_opendir" >&6; }
12583ac_res=$ac_cv_search_opendir
12584if test "$ac_res" != no; then :
12585 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 12586
d15b04bd 12587fi
252b5132
RH
12588
12589else
81ecdfbb
RW
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12591$as_echo_n "checking for library containing opendir... " >&6; }
12592if test "${ac_cv_search_opendir+set}" = set; then :
12593 $as_echo_n "(cached) " >&6
252b5132 12594else
42ecbf5e 12595 ac_func_search_save_LIBS=$LIBS
81ecdfbb 12596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
12597/* end confdefs.h. */
12598
81ecdfbb
RW
12599/* Override any GCC internal prototype to avoid an error.
12600 Use char because int might match the return type of a GCC
12601 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
12602#ifdef __cplusplus
12603extern "C"
12604#endif
42ecbf5e
DJ
12605char opendir ();
12606int
12607main ()
12608{
81ecdfbb 12609return opendir ();
42ecbf5e
DJ
12610 ;
12611 return 0;
12612}
12613_ACEOF
81ecdfbb
RW
12614for ac_lib in '' x; do
12615 if test -z "$ac_lib"; then
12616 ac_res="none required"
12617 else
12618 ac_res=-l$ac_lib
42ecbf5e 12619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
12620 fi
12621 if ac_fn_c_try_link "$LINENO"; then :
12622 ac_cv_search_opendir=$ac_res
12623fi
12624rm -f core conftest.err conftest.$ac_objext \
12625 conftest$ac_exeext
12626 if test "${ac_cv_search_opendir+set}" = set; then :
12627 break
12628fi
12629done
12630if test "${ac_cv_search_opendir+set}" = set; then :
252b5132 12631
42ecbf5e 12632else
81ecdfbb 12633 ac_cv_search_opendir=no
252b5132 12634fi
81ecdfbb 12635rm conftest.$ac_ext
42ecbf5e 12636LIBS=$ac_func_search_save_LIBS
252b5132 12637fi
81ecdfbb
RW
12638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12639$as_echo "$ac_cv_search_opendir" >&6; }
12640ac_res=$ac_cv_search_opendir
12641if test "$ac_res" != no; then :
12642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 12643
d15b04bd 12644fi
252b5132
RH
12645
12646fi
12647
12648
81ecdfbb
RW
12649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
12650$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
12651if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
12652 $as_echo_n "(cached) " >&6
34875e64 12653else
81ecdfbb 12654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12655/* end confdefs.h. */
34875e64 12656#include <unistd.h>
42ecbf5e
DJ
12657int
12658main ()
12659{
34875e64 12660extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
12661 ;
12662 return 0;
12663}
12664_ACEOF
81ecdfbb 12665if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
12666 ld_cv_decl_getopt_unistd_h=yes
12667else
81ecdfbb 12668 ld_cv_decl_getopt_unistd_h=no
34875e64 12669fi
81ecdfbb 12670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
12671fi
12672
81ecdfbb
RW
12673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
12674$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
34875e64 12675if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 12676
81ecdfbb 12677$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
12678
12679fi
42ecbf5e 12680
252b5132
RH
12681
12682case "${host}" in
a8100d5b 12683*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 12684
81ecdfbb 12685$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
12686 ;;
12687esac
12688
81ecdfbb
RW
12689ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
12690if test "x$ac_cv_have_decl_strstr" = x""yes; then :
12691 ac_have_decl=1
252b5132 12692else
81ecdfbb
RW
12693 ac_have_decl=0
12694fi
502bdb00 12695
81ecdfbb
RW
12696cat >>confdefs.h <<_ACEOF
12697#define HAVE_DECL_STRSTR $ac_have_decl
42ecbf5e 12698_ACEOF
81ecdfbb
RW
12699ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
12700if test "x$ac_cv_have_decl_free" = x""yes; then :
12701 ac_have_decl=1
252b5132 12702else
81ecdfbb 12703 ac_have_decl=0
252b5132
RH
12704fi
12705
502bdb00 12706cat >>confdefs.h <<_ACEOF
81ecdfbb 12707#define HAVE_DECL_FREE $ac_have_decl
502bdb00 12708_ACEOF
81ecdfbb
RW
12709ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
12710if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
12711 ac_have_decl=1
12712else
12713 ac_have_decl=0
12714fi
42ecbf5e 12715
81ecdfbb
RW
12716cat >>confdefs.h <<_ACEOF
12717#define HAVE_DECL_SBRK $ac_have_decl
12718_ACEOF
12719ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
12720if test "x$ac_cv_have_decl_getenv" = x""yes; then :
12721 ac_have_decl=1
12722else
12723 ac_have_decl=0
12724fi
502bdb00 12725
81ecdfbb
RW
12726cat >>confdefs.h <<_ACEOF
12727#define HAVE_DECL_GETENV $ac_have_decl
12728_ACEOF
12729ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
12730if test "x$ac_cv_have_decl_environ" = x""yes; then :
12731 ac_have_decl=1
502bdb00 12732else
81ecdfbb
RW
12733 ac_have_decl=0
12734fi
12735
12736cat >>confdefs.h <<_ACEOF
12737#define HAVE_DECL_ENVIRON $ac_have_decl
42ecbf5e 12738_ACEOF
252b5132 12739
252b5132 12740
81ecdfbb
RW
12741# Link in zlib if we can. This is needed only for the bootstrap tests
12742# right now, since those tests use libbfd, which depends on zlib.
12743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
12744$as_echo_n "checking for library containing zlibVersion... " >&6; }
12745if test "${ac_cv_search_zlibVersion+set}" = set; then :
12746 $as_echo_n "(cached) " >&6
252b5132 12747else
81ecdfbb
RW
12748 ac_func_search_save_LIBS=$LIBS
12749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12750/* end confdefs.h. */
502bdb00 12751
81ecdfbb
RW
12752/* Override any GCC internal prototype to avoid an error.
12753 Use char because int might match the return type of a GCC
4474d12b 12754 builtin and then its argument prototype would still apply. */
4474d12b
CS
12755#ifdef __cplusplus
12756extern "C"
12757#endif
4474d12b
CS
12758char zlibVersion ();
12759int
12760main ()
12761{
81ecdfbb 12762return zlibVersion ();
4474d12b
CS
12763 ;
12764 return 0;
12765}
12766_ACEOF
81ecdfbb
RW
12767for ac_lib in '' z; do
12768 if test -z "$ac_lib"; then
12769 ac_res="none required"
4474d12b 12770 else
81ecdfbb
RW
12771 ac_res=-l$ac_lib
12772 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4474d12b 12773 fi
81ecdfbb
RW
12774 if ac_fn_c_try_link "$LINENO"; then :
12775 ac_cv_search_zlibVersion=$ac_res
4474d12b 12776fi
81ecdfbb
RW
12777rm -f core conftest.err conftest.$ac_objext \
12778 conftest$ac_exeext
12779 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12780 break
4474d12b 12781fi
81ecdfbb
RW
12782done
12783if test "${ac_cv_search_zlibVersion+set}" = set; then :
4474d12b 12784
4474d12b 12785else
81ecdfbb 12786 ac_cv_search_zlibVersion=no
4474d12b 12787fi
81ecdfbb
RW
12788rm conftest.$ac_ext
12789LIBS=$ac_func_search_save_LIBS
4474d12b 12790fi
81ecdfbb
RW
12791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
12792$as_echo "$ac_cv_search_zlibVersion" >&6; }
12793ac_res=$ac_cv_search_zlibVersion
12794if test "$ac_res" != no; then :
12795 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12796 for ac_header in zlib.h
12797do :
12798 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12799if test "x$ac_cv_header_zlib_h" = x""yes; then :
4474d12b 12800 cat >>confdefs.h <<_ACEOF
81ecdfbb 12801#define HAVE_ZLIB_H 1
4474d12b
CS
12802_ACEOF
12803
12804fi
12805
12806done
12807
12808fi
12809
12810
597e2591
ILT
12811# When converting linker scripts into strings for use in emulation
12812# files, use astring.sed if the compiler supports ANSI string
12813# concatenation, or ostring.sed otherwise. This is to support the
12814# broken Microsoft MSVC compiler, which limits the length of string
12815# constants, while still supporting pre-ANSI compilers which do not
12816# support string concatenation.
81ecdfbb
RW
12817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
12818$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
12819if test "${ld_cv_string_concatenation+set}" = set; then :
12820 $as_echo_n "(cached) " >&6
42ecbf5e 12821else
81ecdfbb 12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12823/* end confdefs.h. */
81ecdfbb 12824
314e9a4e
L
12825int
12826main ()
12827{
81ecdfbb 12828char *a = "a" "a";
314e9a4e
L
12829 ;
12830 return 0;
12831}
12832_ACEOF
81ecdfbb
RW
12833if ac_fn_c_try_compile "$LINENO"; then :
12834 ld_cv_string_concatenation=yes
314e9a4e 12835else
81ecdfbb 12836 ld_cv_string_concatenation=no
314e9a4e 12837fi
81ecdfbb 12838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
314e9a4e 12839fi
81ecdfbb
RW
12840
12841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
12842$as_echo "$ld_cv_string_concatenation" >&6; }
12843if test "$ld_cv_string_concatenation" = "yes"; then
12844 STRINGIFY=astring.sed
12845else
12846 STRINGIFY=ostring.sed
314e9a4e 12847fi
81ecdfbb
RW
12848
12849
12850# target-specific stuff:
12851
12852all_targets=
12853EMUL=
12854all_emuls=
12855all_emul_extras=
12856all_libpath=
12857
12858rm -f tdirs
12859
12860for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
12861do
12862 if test "$targ_alias" = "all"; then
12863 all_targets=true
12864 else
12865 # Canonicalize the secondary target names.
12866 result=`$ac_config_sub $targ_alias 2>/dev/null`
12867 if test -n "$result"; then
12868 targ=$result
12869 else
12870 targ=$targ_alias
12871 fi
12872
12873 . ${srcdir}/configure.tgt
12874
12875 if test "$targ" = "$target"; then
12876 EMUL=$targ_emul
12877 fi
12878
12879 if test x${want64} = xfalse; then
12880 . ${srcdir}/../bfd/config.bfd
12881 fi
12882
12883 if test x${want64} = xtrue; then
12884 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
12885 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
12886 fi
12887
12888 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
12889 case " $all_emuls " in
12890 *" e${i}.o "*) ;;
12891 *)
12892 all_emuls="$all_emuls e${i}.o"
12893 eval result=\$tdir_$i
12894 test -z "$result" && result=$targ_alias
12895 echo tdir_$i=$result >> tdirs
12896 ;;
12897 esac
12898 done
12899
12900 for i in $targ_emul $targ_extra_libpath; do
12901 case " $all_libpath " in
12902 *" ${i} "*) ;;
12903 *)
12904 if test -z "$all_libpath"; then
12905 all_libpath=${i}
12906 else
12907 all_libpath="$all_libpath ${i}"
12908 fi
12909 ;;
12910 esac
12911 done
12912
12913 for i in $targ_extra_ofiles; do
12914 case " $all_emul_extras " in
12915 *" ${i} "*) ;;
12916 *)
12917 all_emul_extras="$all_emul_extras ${i}"
12918 ;;
12919 esac
12920 done
12921 fi
12922done
12923
12924
12925
12926TDIRS=tdirs
12927
12928
12929if test x${all_targets} = xtrue; then
12930 if test x${want64} = xfalse; then
12931 # The cast to long int works around a bug in the HP C Compiler
12932# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12933# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12934# This bug is HP SR number 8606223364.
12935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12936$as_echo_n "checking size of long... " >&6; }
12937if test "${ac_cv_sizeof_long+set}" = set; then :
12938 $as_echo_n "(cached) " >&6
12939else
12940 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12941
314e9a4e 12942else
81ecdfbb
RW
12943 if test "$ac_cv_type_long" = yes; then
12944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12946{ as_fn_set_status 77
12947as_fn_error "cannot compute sizeof (long)
12948See \`config.log' for more details." "$LINENO" 5; }; }
12949 else
12950 ac_cv_sizeof_long=0
12951 fi
314e9a4e 12952fi
81ecdfbb 12953
314e9a4e 12954fi
81ecdfbb
RW
12955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12956$as_echo "$ac_cv_sizeof_long" >&6; }
12957
12958
12959
314e9a4e
L
12960cat >>confdefs.h <<_ACEOF
12961#define SIZEOF_LONG $ac_cv_sizeof_long
12962_ACEOF
12963
12964
12965 if test "x${ac_cv_sizeof_long}" = "x8"; then
12966 want64=true
12967 fi
12968 fi
42ecbf5e
DJ
12969 if test x${want64} = xtrue; then
12970 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
12971 else
12972 EMULATION_OFILES='$(ALL_EMULATIONS)'
12973 fi
12974 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
12975else
12976 EMULATION_OFILES=$all_emuls
12977 EMUL_EXTRA_OFILES=$all_emul_extras
12978fi
12979
12980
12981
12982
12983EMULATION_LIBPATH=$all_libpath
12984
12985
12986if test x${enable_static} = xno; then
12987 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
12988else
12989 TESTBFDLIB="../bfd/.libs/libbfd.a"
12990fi
12991
12992
12993target_vendor=${target_vendor=$host_vendor}
12994case "$target_vendor" in
12995 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
12996 *) EXTRA_SHLIB_EXTENSION= ;;
12997esac
12998
12999case "$target_os" in
13000 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
13001esac
13002
13003if test x${EXTRA_SHLIB_EXTENSION} != x ; then
13004
13005cat >>confdefs.h <<_ACEOF
13006#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
13007_ACEOF
13008
13009fi
13010
108a6f8e
CD
13011
13012
13013
13014
31dd3154 13015
81ecdfbb 13016ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 13017
42ecbf5e
DJ
13018cat >confcache <<\_ACEOF
13019# This file is a shell script that caches the results of configure
13020# tests run on this system so they can be shared between configure
13021# scripts and configure runs, see configure's option --config-cache.
13022# It is not useful on other systems. If it contains results you don't
13023# want to keep, you may remove or edit it.
13024#
13025# config.status only pays attention to the cache file if you give it
13026# the --recheck option to rerun configure.
13027#
13028# `ac_cv_env_foo' variables (set or unset) will be overridden when
13029# loading this file, other *unset* `ac_cv_foo' will be assigned the
13030# following values.
13031
13032_ACEOF
13033
13034# The following way of writing the cache mishandles newlines in values,
13035# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 13036# So, we kill variables containing newlines.
42ecbf5e
DJ
13037# Ultrix sh set writes to stderr and can't be redirected directly,
13038# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
13039(
13040 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13041 eval ac_val=\$$ac_var
13042 case $ac_val in #(
13043 *${as_nl}*)
13044 case $ac_var in #(
13045 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13046$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13047 esac
13048 case $ac_var in #(
13049 _ | IFS | as_nl) ;; #(
13050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13051 *) { eval $ac_var=; unset $ac_var;} ;;
13052 esac ;;
13053 esac
13054 done
13055
42ecbf5e 13056 (set) 2>&1 |
81ecdfbb
RW
13057 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13058 *${as_nl}ac_space=\ *)
13059 # `set' does not quote correctly, so add quotes: double-quote
13060 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
13061 sed -n \
13062 "s/'/'\\\\''/g;
13063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 13064 ;; #(
42ecbf5e
DJ
13065 *)
13066 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 13067 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 13068 ;;
81ecdfbb
RW
13069 esac |
13070 sort
13071) |
42ecbf5e 13072 sed '
81ecdfbb 13073 /^ac_cv_env_/b end
42ecbf5e 13074 t clear
81ecdfbb 13075 :clear
42ecbf5e
DJ
13076 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13077 t end
81ecdfbb
RW
13078 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13079 :end' >>confcache
13080if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13081 if test -w "$cache_file"; then
13082 test "x$cache_file" != "x/dev/null" &&
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13084$as_echo "$as_me: updating cache $cache_file" >&6;}
42ecbf5e
DJ
13085 cat confcache >$cache_file
13086 else
81ecdfbb
RW
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13088$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
13089 fi
13090fi
13091rm -f confcache
13092
13093test "x$prefix" = xNONE && prefix=$ac_default_prefix
13094# Let make expand exec_prefix.
13095test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13096
42ecbf5e
DJ
13097DEFS=-DHAVE_CONFIG_H
13098
13099ac_libobjs=
13100ac_ltlibobjs=
13101for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13102 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
13103 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13104 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13105 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13106 # will be set to the directory where LIBOBJS objects are built.
13107 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13108 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
13109done
13110LIBOBJS=$ac_libobjs
13111
13112LTLIBOBJS=$ac_ltlibobjs
13113
13114
13115if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
13116 as_fn_error "conditional \"AMDEP\" was never defined.
13117Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e
DJ
13118fi
13119if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
13120 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13121Usually this means the macro was only invoked conditionally." "$LINENO" 5
13122fi
13123 if test -n "$EXEEXT"; then
13124 am__EXEEXT_TRUE=
13125 am__EXEEXT_FALSE='#'
13126else
13127 am__EXEEXT_TRUE='#'
13128 am__EXEEXT_FALSE=
42ecbf5e 13129fi
81ecdfbb 13130
64ac50ac
RW
13131if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13132 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13133Usually this means the macro was only invoked conditionally." "$LINENO" 5
13134fi
42ecbf5e 13135if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
13136 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13137Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 13138fi
d5fbea21 13139if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
13140 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
13141Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 13142fi
42ecbf5e
DJ
13143
13144: ${CONFIG_STATUS=./config.status}
81ecdfbb 13145ac_write_fail=0
42ecbf5e
DJ
13146ac_clean_files_save=$ac_clean_files
13147ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
13148{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13149$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13150as_write_fail=0
13151cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
13152#! $SHELL
13153# Generated by $as_me.
13154# Run this file to recreate the current configuration.
13155# Compiler output produced by configure, useful for debugging
13156# configure, is in config.log if it exists.
13157
13158debug=false
13159ac_cs_recheck=false
13160ac_cs_silent=false
42ecbf5e 13161
81ecdfbb
RW
13162SHELL=\${CONFIG_SHELL-$SHELL}
13163export SHELL
13164_ASEOF
13165cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13166## -------------------- ##
13167## M4sh Initialization. ##
13168## -------------------- ##
42ecbf5e 13169
81ecdfbb
RW
13170# Be more Bourne compatible
13171DUALCASE=1; export DUALCASE # for MKS sh
13172if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
13173 emulate sh
13174 NULLCMD=:
81ecdfbb 13175 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
13176 # is contrary to our usage. Disable this feature.
13177 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
13178 setopt NO_GLOB_SUBST
13179else
13180 case `(set -o) 2>/dev/null` in #(
13181 *posix*) :
13182 set -o posix ;; #(
13183 *) :
13184 ;;
13185esac
42ecbf5e 13186fi
42ecbf5e 13187
81ecdfbb
RW
13188
13189as_nl='
13190'
13191export as_nl
13192# Printing a long string crashes Solaris 7 /usr/bin/printf.
13193as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13194as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13195as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13196# Prefer a ksh shell builtin over an external printf program on Solaris,
13197# but without wasting forks for bash or zsh.
13198if test -z "$BASH_VERSION$ZSH_VERSION" \
13199 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13200 as_echo='print -r --'
13201 as_echo_n='print -rn --'
13202elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13203 as_echo='printf %s\n'
13204 as_echo_n='printf %s'
13205else
13206 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13207 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13208 as_echo_n='/usr/ucb/echo -n'
13209 else
13210 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13211 as_echo_n_body='eval
13212 arg=$1;
13213 case $arg in #(
13214 *"$as_nl"*)
13215 expr "X$arg" : "X\\(.*\\)$as_nl";
13216 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13217 esac;
13218 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13219 '
13220 export as_echo_n_body
13221 as_echo_n='sh -c $as_echo_n_body as_echo'
13222 fi
13223 export as_echo_body
13224 as_echo='sh -c $as_echo_body as_echo'
13225fi
13226
13227# The user is always right.
13228if test "${PATH_SEPARATOR+set}" != set; then
13229 PATH_SEPARATOR=:
13230 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13231 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13232 PATH_SEPARATOR=';'
13233 }
42ecbf5e
DJ
13234fi
13235
13236
81ecdfbb
RW
13237# IFS
13238# We need space, tab and new line, in precisely that order. Quoting is
13239# there to prevent editors from complaining about space-tab.
13240# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13241# splitting by setting IFS to empty value.)
13242IFS=" "" $as_nl"
13243
13244# Find who we are. Look in the path if we contain no directory separator.
13245case $0 in #((
13246 *[\\/]* ) as_myself=$0 ;;
13247 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13248for as_dir in $PATH
13249do
13250 IFS=$as_save_IFS
13251 test -z "$as_dir" && as_dir=.
13252 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13253 done
13254IFS=$as_save_IFS
13255
13256 ;;
13257esac
13258# We did not find ourselves, most probably we were run as `sh COMMAND'
13259# in which case we are not to be found in the path.
13260if test "x$as_myself" = x; then
13261 as_myself=$0
13262fi
13263if test ! -f "$as_myself"; then
13264 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13265 exit 1
13266fi
13267
13268# Unset variables that we do not need and which cause bugs (e.g. in
13269# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13270# suppresses any "Segmentation fault" message there. '((' could
13271# trigger a bug in pdksh 5.2.14.
13272for as_var in BASH_ENV ENV MAIL MAILPATH
13273do eval test x\${$as_var+set} = xset \
13274 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13275done
42ecbf5e
DJ
13276PS1='$ '
13277PS2='> '
13278PS4='+ '
13279
13280# NLS nuisances.
81ecdfbb
RW
13281LC_ALL=C
13282export LC_ALL
13283LANGUAGE=C
13284export LANGUAGE
13285
13286# CDPATH.
13287(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13288
13289
13290# as_fn_error ERROR [LINENO LOG_FD]
13291# ---------------------------------
13292# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13293# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13294# script with status $?, using 1 if that was 0.
13295as_fn_error ()
13296{
13297 as_status=$?; test $as_status -eq 0 && as_status=1
13298 if test "$3"; then
13299 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13300 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
42ecbf5e 13301 fi
81ecdfbb
RW
13302 $as_echo "$as_me: error: $1" >&2
13303 as_fn_exit $as_status
13304} # as_fn_error
13305
13306
13307# as_fn_set_status STATUS
13308# -----------------------
13309# Set $? to STATUS, without forking.
13310as_fn_set_status ()
13311{
13312 return $1
13313} # as_fn_set_status
13314
13315# as_fn_exit STATUS
13316# -----------------
13317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13318as_fn_exit ()
13319{
13320 set +e
13321 as_fn_set_status $1
13322 exit $1
13323} # as_fn_exit
13324
13325# as_fn_unset VAR
13326# ---------------
13327# Portably unset VAR.
13328as_fn_unset ()
13329{
13330 { eval $1=; unset $1;}
13331}
13332as_unset=as_fn_unset
13333# as_fn_append VAR VALUE
13334# ----------------------
13335# Append the text in VALUE to the end of the definition contained in VAR. Take
13336# advantage of any shell optimizations that allow amortized linear growth over
13337# repeated appends, instead of the typical quadratic growth present in naive
13338# implementations.
13339if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13340 eval 'as_fn_append ()
13341 {
13342 eval $1+=\$2
13343 }'
13344else
13345 as_fn_append ()
13346 {
13347 eval $1=\$$1\$2
13348 }
13349fi # as_fn_append
13350
13351# as_fn_arith ARG...
13352# ------------------
13353# Perform arithmetic evaluation on the ARGs, and store the result in the
13354# global $as_val. Take advantage of shells that can avoid forks. The arguments
13355# must be portable across $(()) and expr.
13356if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13357 eval 'as_fn_arith ()
13358 {
13359 as_val=$(( $* ))
13360 }'
13361else
13362 as_fn_arith ()
13363 {
13364 as_val=`expr "$@" || test $? -eq 1`
13365 }
13366fi # as_fn_arith
13367
42ecbf5e 13368
81ecdfbb
RW
13369if expr a : '\(a\)' >/dev/null 2>&1 &&
13370 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
13371 as_expr=expr
13372else
13373 as_expr=false
13374fi
13375
81ecdfbb 13376if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
13377 as_basename=basename
13378else
13379 as_basename=false
13380fi
13381
81ecdfbb
RW
13382if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13383 as_dirname=dirname
13384else
13385 as_dirname=false
13386fi
42ecbf5e 13387
81ecdfbb 13388as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
13389$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13390 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
13391 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13392$as_echo X/"$0" |
13393 sed '/^.*\/\([^/][^/]*\)\/*$/{
13394 s//\1/
13395 q
13396 }
13397 /^X\/\(\/\/\)$/{
13398 s//\1/
13399 q
13400 }
13401 /^X\/\(\/\).*/{
13402 s//\1/
13403 q
13404 }
13405 s/.*/./; q'`
42ecbf5e 13406
42ecbf5e
DJ
13407# Avoid depending upon Character Ranges.
13408as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13409as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13410as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13411as_cr_digits='0123456789'
13412as_cr_alnum=$as_cr_Letters$as_cr_digits
13413
81ecdfbb
RW
13414ECHO_C= ECHO_N= ECHO_T=
13415case `echo -n x` in #(((((
13416-n*)
13417 case `echo 'xy\c'` in
13418 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13419 xy) ECHO_C='\c';;
13420 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13421 ECHO_T=' ';;
13422 esac;;
13423*)
13424 ECHO_N='-n';;
42ecbf5e 13425esac
252b5132 13426
81ecdfbb
RW
13427rm -f conf$$ conf$$.exe conf$$.file
13428if test -d conf$$.dir; then
13429 rm -f conf$$.dir/conf$$.file
42ecbf5e 13430else
81ecdfbb
RW
13431 rm -f conf$$.dir
13432 mkdir conf$$.dir 2>/dev/null
42ecbf5e 13433fi
81ecdfbb
RW
13434if (echo >conf$$.file) 2>/dev/null; then
13435 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 13436 as_ln_s='ln -s'
81ecdfbb
RW
13437 # ... but there are two gotchas:
13438 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13439 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13440 # In both cases, we have to default to `cp -p'.
13441 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13442 as_ln_s='cp -p'
13443 elif ln conf$$.file conf$$ 2>/dev/null; then
13444 as_ln_s=ln
13445 else
13446 as_ln_s='cp -p'
252b5132 13447 fi
e5a52504 13448else
42ecbf5e 13449 as_ln_s='cp -p'
e5a52504 13450fi
81ecdfbb
RW
13451rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13452rmdir conf$$.dir 2>/dev/null
13453
13454
13455# as_fn_mkdir_p
13456# -------------
13457# Create "$as_dir" as a directory, including parents if necessary.
13458as_fn_mkdir_p ()
13459{
13460
13461 case $as_dir in #(
13462 -*) as_dir=./$as_dir;;
13463 esac
13464 test -d "$as_dir" || eval $as_mkdir_p || {
13465 as_dirs=
13466 while :; do
13467 case $as_dir in #(
13468 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13469 *) as_qdir=$as_dir;;
13470 esac
13471 as_dirs="'$as_qdir' $as_dirs"
13472 as_dir=`$as_dirname -- "$as_dir" ||
13473$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13474 X"$as_dir" : 'X\(//\)[^/]' \| \
13475 X"$as_dir" : 'X\(//\)$' \| \
13476 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13477$as_echo X"$as_dir" |
13478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13479 s//\1/
13480 q
13481 }
13482 /^X\(\/\/\)[^/].*/{
13483 s//\1/
13484 q
13485 }
13486 /^X\(\/\/\)$/{
13487 s//\1/
13488 q
13489 }
13490 /^X\(\/\).*/{
13491 s//\1/
13492 q
13493 }
13494 s/.*/./; q'`
13495 test -d "$as_dir" && break
13496 done
13497 test -z "$as_dirs" || eval "mkdir $as_dirs"
13498 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13499
252b5132 13500
81ecdfbb 13501} # as_fn_mkdir_p
42ecbf5e 13502if mkdir -p . 2>/dev/null; then
81ecdfbb 13503 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
13504else
13505 test -d ./-p && rmdir ./-p
13506 as_mkdir_p=false
13507fi
252b5132 13508
81ecdfbb
RW
13509if test -x / >/dev/null 2>&1; then
13510 as_test_x='test -x'
13511else
13512 if ls -dL / >/dev/null 2>&1; then
13513 as_ls_L_option=L
13514 else
13515 as_ls_L_option=
13516 fi
13517 as_test_x='
13518 eval sh -c '\''
13519 if test -d "$1"; then
13520 test -d "$1/.";
13521 else
13522 case $1 in #(
13523 -*)set "./$1";;
13524 esac;
13525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13526 ???[sx]*):;;*)false;;esac;fi
13527 '\'' sh
13528 '
13529fi
13530as_executable_p=$as_test_x
252b5132 13531
42ecbf5e
DJ
13532# Sed expression to map a string onto a valid CPP name.
13533as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 13534
42ecbf5e
DJ
13535# Sed expression to map a string onto a valid variable name.
13536as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 13537
e5a52504 13538
42ecbf5e 13539exec 6>&1
81ecdfbb
RW
13540## ----------------------------------- ##
13541## Main body of $CONFIG_STATUS script. ##
13542## ----------------------------------- ##
13543_ASEOF
13544test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
e5a52504 13545
81ecdfbb
RW
13546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13547# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 13548# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
13549# values after options handling.
13550ac_log="
42ecbf5e 13551This file was extended by $as_me, which was
81ecdfbb 13552generated by GNU Autoconf 2.64. Invocation command line was
42ecbf5e
DJ
13553
13554 CONFIG_FILES = $CONFIG_FILES
13555 CONFIG_HEADERS = $CONFIG_HEADERS
13556 CONFIG_LINKS = $CONFIG_LINKS
13557 CONFIG_COMMANDS = $CONFIG_COMMANDS
13558 $ $0 $@
e5a52504 13559
81ecdfbb
RW
13560on `(hostname || uname -n) 2>/dev/null | sed 1q`
13561"
13562
42ecbf5e
DJ
13563_ACEOF
13564
81ecdfbb
RW
13565case $ac_config_files in *"
13566"*) set x $ac_config_files; shift; ac_config_files=$*;;
13567esac
e5a52504 13568
81ecdfbb
RW
13569case $ac_config_headers in *"
13570"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13571esac
42ecbf5e 13572
42ecbf5e 13573
81ecdfbb
RW
13574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13575# Files that config.status was made for.
13576config_files="$ac_config_files"
13577config_headers="$ac_config_headers"
13578config_commands="$ac_config_commands"
42ecbf5e 13579
81ecdfbb 13580_ACEOF
42ecbf5e 13581
81ecdfbb 13582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 13583ac_cs_usage="\
81ecdfbb
RW
13584\`$as_me' instantiates files and other configuration actions
13585from templates according to the current configuration. Unless the files
13586and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 13587
81ecdfbb 13588Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
13589
13590 -h, --help print this help, then exit
81ecdfbb
RW
13591 -V, --version print version number and configuration settings, then exit
13592 -q, --quiet, --silent
13593 do not print progress messages
42ecbf5e
DJ
13594 -d, --debug don't remove temporary files
13595 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
13596 --file=FILE[:TEMPLATE]
13597 instantiate the configuration file FILE
13598 --header=FILE[:TEMPLATE]
13599 instantiate the configuration header FILE
42ecbf5e
DJ
13600
13601Configuration files:
13602$config_files
13603
13604Configuration headers:
13605$config_headers
13606
13607Configuration commands:
13608$config_commands
13609
81ecdfbb 13610Report bugs to the package provider."
42ecbf5e 13611
81ecdfbb
RW
13612_ACEOF
13613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e
DJ
13614ac_cs_version="\\
13615config.status
81ecdfbb
RW
13616configured by $0, generated by GNU Autoconf 2.64,
13617 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42ecbf5e 13618
81ecdfbb 13619Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
13620This config.status script is free software; the Free Software Foundation
13621gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
13622
13623ac_pwd='$ac_pwd'
13624srcdir='$srcdir'
13625INSTALL='$INSTALL'
13626MKDIR_P='$MKDIR_P'
13627AWK='$AWK'
13628test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
13629_ACEOF
13630
81ecdfbb
RW
13631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13632# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
13633ac_need_defaults=:
13634while test $# != 0
13635do
13636 case $1 in
13637 --*=*)
81ecdfbb
RW
13638 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13639 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e 13640 ac_shift=:
252b5132 13641 ;;
81ecdfbb 13642 *)
42ecbf5e
DJ
13643 ac_option=$1
13644 ac_optarg=$2
13645 ac_shift=shift
252b5132 13646 ;;
42ecbf5e 13647 esac
252b5132 13648
42ecbf5e
DJ
13649 case $ac_option in
13650 # Handling of the options.
42ecbf5e
DJ
13651 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13652 ac_cs_recheck=: ;;
81ecdfbb
RW
13653 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13654 $as_echo "$ac_cs_version"; exit ;;
13655 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
13656 debug=: ;;
13657 --file | --fil | --fi | --f )
13658 $ac_shift
81ecdfbb
RW
13659 case $ac_optarg in
13660 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13661 esac
13662 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
13663 ac_need_defaults=false;;
13664 --header | --heade | --head | --hea )
13665 $ac_shift
81ecdfbb
RW
13666 case $ac_optarg in
13667 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13668 esac
13669 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 13670 ac_need_defaults=false;;
81ecdfbb
RW
13671 --he | --h)
13672 # Conflict between --help and --header
13673 as_fn_error "ambiguous option: \`$1'
13674Try \`$0 --help' for more information.";;
13675 --help | --hel | -h )
13676 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
13677 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13678 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13679 ac_cs_silent=: ;;
252b5132 13680
42ecbf5e 13681 # This is an error.
81ecdfbb
RW
13682 -*) as_fn_error "unrecognized option: \`$1'
13683Try \`$0 --help' for more information." ;;
252b5132 13684
81ecdfbb
RW
13685 *) as_fn_append ac_config_targets " $1"
13686 ac_need_defaults=false ;;
252b5132 13687
42ecbf5e
DJ
13688 esac
13689 shift
13690done
d15b04bd 13691
42ecbf5e 13692ac_configure_extra_args=
e5a52504 13693
42ecbf5e
DJ
13694if $ac_cs_silent; then
13695 exec 6>/dev/null
13696 ac_configure_extra_args="$ac_configure_extra_args --silent"
13697fi
e5a52504 13698
42ecbf5e 13699_ACEOF
81ecdfbb 13700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 13701if \$ac_cs_recheck; then
81ecdfbb
RW
13702 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13703 shift
13704 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13705 CONFIG_SHELL='$SHELL'
13706 export CONFIG_SHELL
13707 exec "\$@"
42ecbf5e
DJ
13708fi
13709
13710_ACEOF
81ecdfbb
RW
13711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13712exec 5>>config.log
13713{
13714 echo
13715 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13716## Running $as_me. ##
13717_ASBOX
13718 $as_echo "$ac_log"
13719} >&5
42ecbf5e 13720
81ecdfbb
RW
13721_ACEOF
13722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 13723#
81ecdfbb 13724# INIT-COMMANDS
252b5132 13725#
42ecbf5e 13726AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
13727
13728
13729# The HP-UX ksh and POSIX shell print the target directory to stdout
13730# if CDPATH is set.
13731(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13732
13733sed_quote_subst='$sed_quote_subst'
13734double_quote_subst='$double_quote_subst'
13735delay_variable_subst='$delay_variable_subst'
13736macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13737macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13738enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13739enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13740pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13741enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13742host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13743host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13744host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13745build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13746build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13747build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13748SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13749Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13750GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13751EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13752FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13753LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13754NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13755LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13756max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13757ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13758exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13759lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13760lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13761lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13762reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13763reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
b214d478 13764OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
13765deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13766file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13767AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13768AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13769STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13770RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13771old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13772old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13773old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13774CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13775CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13776compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13777GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13778lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13779lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13780lt_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"`'
b214d478 13781lt_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
13782objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13783SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13784ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13785MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13786lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13787lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13788lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13789lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13790lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13791need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
b214d478
SE
13792DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13793NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13794LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13795OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13796OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
13797libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13798shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13799extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13800archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13801enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13802export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13803whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13804compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13805old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13806old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13807archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13808archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13809module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13810module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13811with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13812allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13813no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13814hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13815hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13816hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13817hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13818hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13819hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13820hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13821hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13822inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13823link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13824fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13825always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13826export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13827exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13828include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13829prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13830file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13831variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13832need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13833need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13834version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13835runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13836shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13837shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13838libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13839library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13840soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13841postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13842postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13843finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13844finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13845hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13846sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13847sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13848hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13849enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13850enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13851enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13852old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13853striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13854
13855LTCC='$LTCC'
13856LTCFLAGS='$LTCFLAGS'
13857compiler='$compiler_DEFAULT'
13858
13859# Quote evaled strings.
13860for var in SED \
13861GREP \
13862EGREP \
13863FGREP \
13864LD \
13865NM \
13866LN_S \
13867lt_SP2NL \
13868lt_NL2SP \
13869reload_flag \
b214d478 13870OBJDUMP \
d7040cdb
SE
13871deplibs_check_method \
13872file_magic_cmd \
13873AR \
13874AR_FLAGS \
13875STRIP \
13876RANLIB \
13877CC \
13878CFLAGS \
13879compiler \
13880lt_cv_sys_global_symbol_pipe \
13881lt_cv_sys_global_symbol_to_cdecl \
13882lt_cv_sys_global_symbol_to_c_name_address \
b214d478 13883lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
13884SHELL \
13885ECHO \
13886lt_prog_compiler_no_builtin_flag \
13887lt_prog_compiler_wl \
13888lt_prog_compiler_pic \
13889lt_prog_compiler_static \
13890lt_cv_prog_compiler_c_o \
13891need_locks \
b214d478
SE
13892DSYMUTIL \
13893NMEDIT \
13894LIPO \
13895OTOOL \
13896OTOOL64 \
d7040cdb
SE
13897shrext_cmds \
13898export_dynamic_flag_spec \
13899whole_archive_flag_spec \
13900compiler_needs_object \
13901with_gnu_ld \
13902allow_undefined_flag \
13903no_undefined_flag \
13904hardcode_libdir_flag_spec \
13905hardcode_libdir_flag_spec_ld \
13906hardcode_libdir_separator \
13907fix_srcfile_path \
13908exclude_expsyms \
13909include_expsyms \
13910file_list_spec \
13911variables_saved_for_relink \
13912libname_spec \
13913library_names_spec \
13914soname_spec \
13915finish_eval \
13916old_striplib \
13917striplib; do
13918 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13919 *[\\\\\\\`\\"\\\$]*)
13920 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13921 ;;
13922 *)
13923 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13924 ;;
13925 esac
13926done
13927
13928# Double-quote double-evaled strings.
13929for var in reload_cmds \
13930old_postinstall_cmds \
13931old_postuninstall_cmds \
13932old_archive_cmds \
13933extract_expsyms_cmds \
13934old_archive_from_new_cmds \
13935old_archive_from_expsyms_cmds \
13936archive_cmds \
13937archive_expsym_cmds \
13938module_cmds \
13939module_expsym_cmds \
13940export_symbols_cmds \
13941prelink_cmds \
13942postinstall_cmds \
13943postuninstall_cmds \
13944finish_cmds \
13945sys_lib_search_path_spec \
13946sys_lib_dlsearch_path_spec; do
13947 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13948 *[\\\\\\\`\\"\\\$]*)
13949 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13950 ;;
13951 *)
13952 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13953 ;;
13954 esac
13955done
13956
13957# Fix-up fallback echo if it was mangled by the above quoting rules.
13958case \$lt_ECHO in
13959*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13960 ;;
13961esac
13962
13963ac_aux_dir='$ac_aux_dir'
13964xsi_shell='$xsi_shell'
13965lt_shell_append='$lt_shell_append'
13966
13967# See if we are running on zsh, and set the options which allow our
13968# commands through without removal of \ escapes INIT.
13969if test -n "\${ZSH_VERSION+set}" ; then
13970 setopt NO_GLOB_SUBST
13971fi
13972
13973
13974 PACKAGE='$PACKAGE'
13975 VERSION='$VERSION'
13976 TIMESTAMP='$TIMESTAMP'
13977 RM='$RM'
13978 ofile='$ofile'
13979
13980
13981
20e95c23
DJ
13982# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13983 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13984 # from automake.
13985 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13986 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13987 LINGUAS="${LINGUAS-%UNSET%}"
13988
42ecbf5e
DJ
13989
13990_ACEOF
13991
81ecdfbb 13992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 13993
81ecdfbb 13994# Handling of arguments.
42ecbf5e 13995for ac_config_target in $ac_config_targets
252b5132 13996do
81ecdfbb
RW
13997 case $ac_config_target in
13998 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13999 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14000 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14001 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14002 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14003 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14004
14005 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
14006 esac
14007done
14008
81ecdfbb 14009
42ecbf5e
DJ
14010# If the user did not use the arguments to specify the items to instantiate,
14011# then the envvar interface is used. Set only those that are not.
14012# We use the long form for the default assignment because of an extremely
14013# bizarre bug on SunOS 4.1.3.
14014if $ac_need_defaults; then
14015 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14016 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14017 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14018fi
14019
14020# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14021# simply because there is no reason against having it here, and in addition,
42ecbf5e 14022# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14023# Hook for its removal unless debugging.
14024# Note that there is a small window in which the directory will not be cleaned:
14025# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
14026$debug ||
14027{
81ecdfbb
RW
14028 tmp=
14029 trap 'exit_status=$?
14030 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14031' 0
14032 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 14033}
42ecbf5e 14034# Create a (secure) tmp directory for tmp files.
e5a52504 14035
42ecbf5e 14036{
81ecdfbb 14037 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42ecbf5e
DJ
14038 test -n "$tmp" && test -d "$tmp"
14039} ||
14040{
81ecdfbb
RW
14041 tmp=./conf$$-$RANDOM
14042 (umask 077 && mkdir "$tmp")
14043} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14044
14045# Set up the scripts for CONFIG_FILES section.
14046# No need to generate them if there are no CONFIG_FILES.
14047# This happens for instance with `./config.status config.h'.
14048if test -n "$CONFIG_FILES"; then
14049
14050if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14051 ac_cs_awk_getline=:
14052 ac_cs_awk_pipe_init=
14053 ac_cs_awk_read_file='
14054 while ((getline aline < (F[key])) > 0)
14055 print(aline)
14056 close(F[key])'
14057 ac_cs_awk_pipe_fini=
14058else
14059 ac_cs_awk_getline=false
14060 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14061 ac_cs_awk_read_file='
14062 print "|#_!!_#|"
14063 print "cat " F[key] " &&"
14064 '$ac_cs_awk_pipe_init
14065 # The final `:' finishes the AND list.
14066 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14067fi
14068ac_cr=`echo X | tr X '\015'`
14069# On cygwin, bash can eat \r inside `` if the user requested igncr.
14070# But we know of no other shell where ac_cr would be empty at this
14071# point, so we can use a bashism as a fallback.
14072if test "x$ac_cr" = x; then
14073 eval ac_cr=\$\'\\r\'
14074fi
14075ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14076if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14077 ac_cs_awk_cr='\r'
14078else
14079 ac_cs_awk_cr=$ac_cr
14080fi
14081
14082echo 'BEGIN {' >"$tmp/subs1.awk" &&
14083_ACEOF
14084
14085# Create commands to substitute file output variables.
42ecbf5e 14086{
81ecdfbb
RW
14087 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14088 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14089 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14090 echo "_ACAWK" &&
14091 echo "_ACEOF"
14092} >conf$$files.sh &&
14093. ./conf$$files.sh ||
14094 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14095rm -f conf$$files.sh
e5a52504 14096
81ecdfbb
RW
14097{
14098 echo "cat >conf$$subs.awk <<_ACEOF" &&
14099 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14100 echo "_ACEOF"
14101} >conf$$subs.sh ||
14102 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14103ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14104ac_delim='%!_!# '
14105for ac_last_try in false false false false false :; do
14106 . ./conf$$subs.sh ||
14107 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14108
14109 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14110 if test $ac_delim_n = $ac_delim_num; then
14111 break
14112 elif $ac_last_try; then
14113 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14114 else
14115 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14116 fi
14117done
14118rm -f conf$$subs.sh
14119
14120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14121cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14122_ACEOF
14123sed -n '
14124h
14125s/^/S["/; s/!.*/"]=/
14126p
14127g
14128s/^[^!]*!//
14129:repl
14130t repl
14131s/'"$ac_delim"'$//
14132t delim
14133:nl
14134h
14135s/\(.\{148\}\).*/\1/
14136t more1
14137s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14138p
14139n
14140b repl
14141:more1
14142s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14143p
14144g
14145s/.\{148\}//
14146t nl
14147:delim
14148h
14149s/\(.\{148\}\).*/\1/
14150t more2
14151s/["\\]/\\&/g; s/^/"/; s/$/"/
14152p
14153b
14154:more2
14155s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14156p
14157g
14158s/.\{148\}//
14159t delim
14160' <conf$$subs.awk | sed '
14161/^[^""]/{
14162 N
14163 s/\n//
14164}
14165' >>$CONFIG_STATUS || ac_write_fail=1
14166rm -f conf$$subs.awk
14167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14168_ACAWK
14169cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14170 for (key in S) S_is_set[key] = 1
14171 FS = "\a"
14172 \$ac_cs_awk_pipe_init
14173}
14174{
14175 line = $ 0
14176 nfields = split(line, field, "@")
14177 substed = 0
14178 len = length(field[1])
14179 for (i = 2; i < nfields; i++) {
14180 key = field[i]
14181 keylen = length(key)
14182 if (S_is_set[key]) {
14183 value = S[key]
14184 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14185 len += length(value) + length(field[++i])
14186 substed = 1
14187 } else
14188 len += 1 + keylen
14189 }
14190 if (nfields == 3 && !substed) {
14191 key = field[2]
14192 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14193 \$ac_cs_awk_read_file
14194 next
14195 }
14196 }
14197 print line
14198}
14199\$ac_cs_awk_pipe_fini
14200_ACAWK
14201_ACEOF
14202cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14203if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14204 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14205else
14206 cat
14207fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14208 || as_fn_error "could not setup config files machinery" "$LINENO" 5
42ecbf5e 14209_ACEOF
d15b04bd 14210
81ecdfbb
RW
14211# VPATH may cause trouble with some makes, so we remove $(srcdir),
14212# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14213# trailing colons and then remove the whole line if VPATH becomes empty
14214# (actually we leave an empty line to preserve line numbers).
14215if test "x$srcdir" = x.; then
14216 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14217s/:*\$(srcdir):*/:/
14218s/:*\${srcdir}:*/:/
14219s/:*@srcdir@:*/:/
14220s/^\([^=]*=[ ]*\):*/\1/
14221s/:*$//
14222s/^[^=]*=[ ]*$//
14223}'
14224fi
14225
14226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14227fi # test -n "$CONFIG_FILES"
42ecbf5e 14228
81ecdfbb
RW
14229# Set up the scripts for CONFIG_HEADERS section.
14230# No need to generate them if there are no CONFIG_HEADERS.
14231# This happens for instance with `./config.status Makefile'.
14232if test -n "$CONFIG_HEADERS"; then
14233cat >"$tmp/defines.awk" <<\_ACAWK ||
14234BEGIN {
14235_ACEOF
42ecbf5e 14236
81ecdfbb
RW
14237# Transform confdefs.h into an awk script `defines.awk', embedded as
14238# here-document in config.status, that substitutes the proper values into
14239# config.h.in to produce config.h.
252b5132 14240
81ecdfbb
RW
14241# Create a delimiter string that does not exist in confdefs.h, to ease
14242# handling of long lines.
14243ac_delim='%!_!# '
14244for ac_last_try in false false :; do
14245 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14246 if test -z "$ac_t"; then
14247 break
14248 elif $ac_last_try; then
14249 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14250 else
14251 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14252 fi
14253done
14254
14255# For the awk script, D is an array of macro values keyed by name,
14256# likewise P contains macro parameters if any. Preserve backslash
14257# newline sequences.
14258
14259ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14260sed -n '
14261s/.\{148\}/&'"$ac_delim"'/g
14262t rset
14263:rset
14264s/^[ ]*#[ ]*define[ ][ ]*/ /
14265t def
14266d
14267:def
14268s/\\$//
14269t bsnl
14270s/["\\]/\\&/g
14271s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14272D["\1"]=" \3"/p
14273s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14274d
14275:bsnl
14276s/["\\]/\\&/g
14277s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14278D["\1"]=" \3\\\\\\n"\\/p
14279t cont
14280s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14281t cont
14282d
14283:cont
14284n
14285s/.\{148\}/&'"$ac_delim"'/g
14286t clear
14287:clear
14288s/\\$//
14289t bsnlc
14290s/["\\]/\\&/g; s/^/"/; s/$/"/p
14291d
14292:bsnlc
14293s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14294b cont
14295' <confdefs.h | sed '
14296s/'"$ac_delim"'/"\\\
14297"/g' >>$CONFIG_STATUS || ac_write_fail=1
14298
14299cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14300 for (key in D) D_is_set[key] = 1
14301 FS = "\a"
14302}
14303/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14304 line = \$ 0
14305 split(line, arg, " ")
14306 if (arg[1] == "#") {
14307 defundef = arg[2]
14308 mac1 = arg[3]
14309 } else {
14310 defundef = substr(arg[1], 2)
14311 mac1 = arg[2]
14312 }
14313 split(mac1, mac2, "(") #)
14314 macro = mac2[1]
14315 prefix = substr(line, 1, index(line, defundef) - 1)
14316 if (D_is_set[macro]) {
14317 # Preserve the white space surrounding the "#".
14318 print prefix "define", macro P[macro] D[macro]
14319 next
14320 } else {
14321 # Replace #undef with comments. This is necessary, for example,
14322 # in the case of _POSIX_SOURCE, which is predefined and required
14323 # on some systems where configure will not decide to define it.
14324 if (defundef == "undef") {
14325 print "/*", prefix defundef, macro, "*/"
14326 next
14327 }
14328 }
14329}
14330{ print }
14331_ACAWK
42ecbf5e 14332_ACEOF
81ecdfbb
RW
14333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14334 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14335fi # test -n "$CONFIG_HEADERS"
42ecbf5e 14336
81ecdfbb
RW
14337
14338eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14339shift
14340for ac_tag
14341do
14342 case $ac_tag in
14343 :[FHLC]) ac_mode=$ac_tag; continue;;
14344 esac
14345 case $ac_mode$ac_tag in
14346 :[FHL]*:*);;
14347 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14348 :[FH]-) ac_tag=-:-;;
14349 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14350 esac
14351 ac_save_IFS=$IFS
14352 IFS=:
14353 set x $ac_tag
14354 IFS=$ac_save_IFS
14355 shift
14356 ac_file=$1
14357 shift
14358
14359 case $ac_mode in
14360 :L) ac_source=$1;;
14361 :[FH])
14362 ac_file_inputs=
14363 for ac_f
14364 do
14365 case $ac_f in
14366 -) ac_f="$tmp/stdin";;
14367 *) # Look for the file first in the build tree, then in the source tree
14368 # (if the path is not absolute). The absolute path cannot be DOS-style,
14369 # because $ac_f cannot contain `:'.
14370 test -f "$ac_f" ||
14371 case $ac_f in
14372 [\\/$]*) false;;
14373 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14374 esac ||
14375 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14376 esac
14377 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14378 as_fn_append ac_file_inputs " '$ac_f'"
14379 done
14380
14381 # Let's still pretend it is `configure' which instantiates (i.e., don't
14382 # use $as_me), people would be surprised to read:
14383 # /* config.h. Generated by config.status. */
14384 configure_input='Generated from '`
14385 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14386 `' by configure.'
14387 if test x"$ac_file" != x-; then
14388 configure_input="$ac_file. $configure_input"
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14390$as_echo "$as_me: creating $ac_file" >&6;}
252b5132 14391 fi
81ecdfbb
RW
14392 # Neutralize special characters interpreted by sed in replacement strings.
14393 case $configure_input in #(
14394 *\&* | *\|* | *\\* )
14395 ac_sed_conf_input=`$as_echo "$configure_input" |
14396 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14397 *) ac_sed_conf_input=$configure_input;;
14398 esac
252b5132 14399
81ecdfbb
RW
14400 case $ac_tag in
14401 *:-:* | *:-) cat >"$tmp/stdin" \
14402 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14403 esac
14404 ;;
252b5132
RH
14405 esac
14406
81ecdfbb 14407 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
14408$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14409 X"$ac_file" : 'X\(//\)[^/]' \| \
14410 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
14411 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14412$as_echo X"$ac_file" |
14413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14414 s//\1/
14415 q
14416 }
14417 /^X\(\/\/\)[^/].*/{
14418 s//\1/
14419 q
14420 }
14421 /^X\(\/\/\)$/{
14422 s//\1/
14423 q
14424 }
14425 /^X\(\/\).*/{
14426 s//\1/
14427 q
14428 }
14429 s/.*/./; q'`
14430 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e
DJ
14431 ac_builddir=.
14432
81ecdfbb
RW
14433case "$ac_dir" in
14434.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14435*)
14436 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14437 # A ".." for each directory in $ac_dir_suffix.
14438 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14439 case $ac_top_builddir_sub in
14440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14442 esac ;;
14443esac
14444ac_abs_top_builddir=$ac_pwd
14445ac_abs_builddir=$ac_pwd$ac_dir_suffix
14446# for backward compatibility:
14447ac_top_builddir=$ac_top_build_prefix
252b5132 14448
42ecbf5e 14449case $srcdir in
81ecdfbb 14450 .) # We are building in place.
42ecbf5e 14451 ac_srcdir=.
81ecdfbb
RW
14452 ac_top_srcdir=$ac_top_builddir_sub
14453 ac_abs_top_srcdir=$ac_pwd ;;
14454 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 14455 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
14456 ac_top_srcdir=$srcdir
14457 ac_abs_top_srcdir=$srcdir ;;
14458 *) # Relative name.
14459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14460 ac_top_srcdir=$ac_top_build_prefix$srcdir
14461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 14462esac
81ecdfbb 14463ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42ecbf5e 14464
252b5132 14465
81ecdfbb
RW
14466 case $ac_mode in
14467 :F)
14468 #
14469 # CONFIG_FILE
14470 #
e5a52504 14471
42ecbf5e
DJ
14472 case $INSTALL in
14473 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
14474 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14475 esac
14476 ac_MKDIR_P=$MKDIR_P
14477 case $MKDIR_P in
14478 [\\/$]* | ?:[\\/]* ) ;;
14479 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 14480 esac
81ecdfbb 14481_ACEOF
e5a52504 14482
81ecdfbb
RW
14483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14484# If the template does not know about datarootdir, expand it.
14485# FIXME: This hack should be removed a few years after 2.60.
14486ac_datarootdir_hack=; ac_datarootdir_seen=
14487ac_sed_dataroot='
14488/datarootdir/ {
14489 p
14490 q
14491}
14492/@datadir@/p
14493/@docdir@/p
14494/@infodir@/p
14495/@localedir@/p
14496/@mandir@/p'
14497case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14498*datarootdir*) ac_datarootdir_seen=yes;;
14499*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14501$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14502_ACEOF
14503cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14504 ac_datarootdir_hack='
14505 s&@datadir@&$datadir&g
14506 s&@docdir@&$docdir&g
14507 s&@infodir@&$infodir&g
14508 s&@localedir@&$localedir&g
14509 s&@mandir@&$mandir&g
14510 s&\\\${datarootdir}&$datarootdir&g' ;;
14511esac
42ecbf5e 14512_ACEOF
81ecdfbb
RW
14513
14514# Neutralize VPATH when `$srcdir' = `.'.
14515# Shell code in configure.ac might set extrasub.
14516# FIXME: do we really want to maintain this feature?
14517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14518ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
14519$extrasub
14520_ACEOF
81ecdfbb 14521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
14522:t
14523/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
14524s|@configure_input@|$ac_sed_conf_input|;t t
14525s&@top_builddir@&$ac_top_builddir_sub&;t t
14526s&@top_build_prefix@&$ac_top_build_prefix&;t t
14527s&@srcdir@&$ac_srcdir&;t t
14528s&@abs_srcdir@&$ac_abs_srcdir&;t t
14529s&@top_srcdir@&$ac_top_srcdir&;t t
14530s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14531s&@builddir@&$ac_builddir&;t t
14532s&@abs_builddir@&$ac_abs_builddir&;t t
14533s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14534s&@INSTALL@&$ac_INSTALL&;t t
14535s&@MKDIR_P@&$ac_MKDIR_P&;t t
14536$ac_datarootdir_hack
14537"
14538eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14539if $ac_cs_awk_getline; then
14540 $AWK -f "$tmp/subs.awk"
14541else
14542 $AWK -f "$tmp/subs.awk" | $SHELL
14543fi >$tmp/out \
14544 || as_fn_error "could not create $ac_file" "$LINENO" 5
14545
14546test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14547 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14548 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14550which seems to be undefined. Please make sure it is defined." >&5
14551$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14552which seems to be undefined. Please make sure it is defined." >&2;}
14553
14554 rm -f "$tmp/stdin"
42ecbf5e 14555 case $ac_file in
81ecdfbb
RW
14556 -) cat "$tmp/out" && rm -f "$tmp/out";;
14557 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14558 esac \
14559 || as_fn_error "could not create $ac_file" "$LINENO" 5
14560 ;;
14561 :H)
14562 #
14563 # CONFIG_HEADER
14564 #
42ecbf5e 14565 if test x"$ac_file" != x-; then
81ecdfbb
RW
14566 {
14567 $as_echo "/* $configure_input */" \
14568 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14569 } >"$tmp/config.h" \
14570 || as_fn_error "could not create $ac_file" "$LINENO" 5
14571 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14573$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 14574 else
81ecdfbb
RW
14575 rm -f "$ac_file"
14576 mv "$tmp/config.h" "$ac_file" \
14577 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 14578 fi
42ecbf5e 14579 else
81ecdfbb
RW
14580 $as_echo "/* $configure_input */" \
14581 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14582 || as_fn_error "could not create -" "$LINENO" 5
e5a52504 14583 fi
81ecdfbb
RW
14584# Compute "$ac_file"'s index in $config_headers.
14585_am_arg="$ac_file"
42ecbf5e
DJ
14586_am_stamp_count=1
14587for _am_header in $config_headers :; do
14588 case $_am_header in
81ecdfbb 14589 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
14590 break ;;
14591 * )
14592 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14593 esac
14594done
81ecdfbb
RW
14595echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14596$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14597 X"$_am_arg" : 'X\(//\)[^/]' \| \
14598 X"$_am_arg" : 'X\(//\)$' \| \
14599 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14600$as_echo X"$_am_arg" |
14601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14602 s//\1/
14603 q
14604 }
14605 /^X\(\/\/\)[^/].*/{
14606 s//\1/
14607 q
14608 }
14609 /^X\(\/\/\)$/{
14610 s//\1/
14611 q
14612 }
14613 /^X\(\/\).*/{
14614 s//\1/
14615 q
14616 }
14617 s/.*/./; q'`/stamp-h$_am_stamp_count
14618 ;;
42ecbf5e 14619
81ecdfbb
RW
14620 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14621$as_echo "$as_me: executing $ac_file commands" >&6;}
14622 ;;
14623 esac
42ecbf5e
DJ
14624
14625
81ecdfbb
RW
14626 case $ac_file$ac_mode in
14627 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14628 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14629 # are listed without --file. Let's play safe and only enable the eval
14630 # if we detect the quoting.
14631 case $CONFIG_FILES in
14632 *\'*) eval set x "$CONFIG_FILES" ;;
14633 *) set x $CONFIG_FILES ;;
14634 esac
14635 shift
14636 for mf
14637 do
14638 # Strip MF so we end up with the name of the file.
14639 mf=`echo "$mf" | sed -e 's/:.*$//'`
14640 # Check whether this is an Automake generated Makefile or not.
14641 # We used to match only the files named `Makefile.in', but
14642 # some people rename them; so instead we look at the file content.
14643 # Grep'ing the first line is not enough: some people post-process
14644 # each Makefile.in and add a new line on top of each file to say so.
14645 # Grep'ing the whole file is not good either: AIX grep has a line
14646 # limit of 2048, but all sed's we know have understand at least 4000.
14647 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14648 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
14649$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14650 X"$mf" : 'X\(//\)[^/]' \| \
14651 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
14652 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14653$as_echo X"$mf" |
14654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14655 s//\1/
14656 q
14657 }
14658 /^X\(\/\/\)[^/].*/{
14659 s//\1/
14660 q
14661 }
14662 /^X\(\/\/\)$/{
14663 s//\1/
14664 q
14665 }
14666 /^X\(\/\).*/{
14667 s//\1/
14668 q
14669 }
14670 s/.*/./; q'`
14671 else
14672 continue
14673 fi
14674 # Extract the definition of DEPDIR, am__include, and am__quote
14675 # from the Makefile without running `make'.
14676 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14677 test -z "$DEPDIR" && continue
14678 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14679 test -z "am__include" && continue
14680 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14681 # When using ansi2knr, U may be empty or an underscore; expand it
14682 U=`sed -n 's/^U = //p' < "$mf"`
14683 # Find all dependency output files, they are included files with
14684 # $(DEPDIR) in their names. We invoke sed twice because it is the
14685 # simplest approach to changing $(DEPDIR) to its actual value in the
14686 # expansion.
14687 for file in `sed -n "
14688 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14689 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14690 # Make sure the directory exists.
14691 test -f "$dirpart/$file" && continue
14692 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
14693$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14694 X"$file" : 'X\(//\)[^/]' \| \
14695 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
14696 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14697$as_echo X"$file" |
14698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14699 s//\1/
14700 q
14701 }
14702 /^X\(\/\/\)[^/].*/{
14703 s//\1/
14704 q
14705 }
14706 /^X\(\/\/\)$/{
14707 s//\1/
14708 q
14709 }
14710 /^X\(\/\).*/{
14711 s//\1/
14712 q
14713 }
14714 s/.*/./; q'`
14715 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14716 # echo "creating $dirpart/$file"
14717 echo '# dummy' > "$dirpart/$file"
42ecbf5e 14718 done
42ecbf5e 14719 done
81ecdfbb 14720}
d7040cdb 14721 ;;
81ecdfbb 14722 "libtool":C)
d7040cdb
SE
14723
14724 # See if we are running on zsh, and set the options which allow our
14725 # commands through without removal of \ escapes.
14726 if test -n "${ZSH_VERSION+set}" ; then
14727 setopt NO_GLOB_SUBST
14728 fi
14729
14730 cfgfile="${ofile}T"
14731 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14732 $RM "$cfgfile"
14733
14734 cat <<_LT_EOF >> "$cfgfile"
14735#! $SHELL
14736
14737# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 14738# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
14739# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14740# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14741#
b214d478
SE
14742# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14743# 2006, 2007, 2008 Free Software Foundation, Inc.
14744# Written by Gordon Matzigkeit, 1996
d7040cdb 14745#
b214d478 14746# This file is part of GNU Libtool.
d7040cdb 14747#
b214d478
SE
14748# GNU Libtool is free software; you can redistribute it and/or
14749# modify it under the terms of the GNU General Public License as
14750# published by the Free Software Foundation; either version 2 of
14751# the License, or (at your option) any later version.
d7040cdb 14752#
b214d478
SE
14753# As a special exception to the GNU General Public License,
14754# if you distribute this file as part of a program or library that
14755# is built using GNU Libtool, you may include this file under the
14756# same distribution terms that you use for the rest of that program.
d7040cdb 14757#
b214d478
SE
14758# GNU Libtool is distributed in the hope that it will be useful,
14759# but WITHOUT ANY WARRANTY; without even the implied warranty of
14760# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14761# GNU General Public License for more details.
d7040cdb 14762#
b214d478
SE
14763# You should have received a copy of the GNU General Public License
14764# along with GNU Libtool; see the file COPYING. If not, a copy
14765# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14766# obtained by writing to the Free Software Foundation, Inc.,
14767# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
14768
14769
14770# The names of the tagged configurations supported by this script.
14771available_tags=""
14772
14773# ### BEGIN LIBTOOL CONFIG
14774
14775# Which release of libtool.m4 was used?
14776macro_version=$macro_version
14777macro_revision=$macro_revision
14778
14779# Whether or not to build shared libraries.
14780build_libtool_libs=$enable_shared
14781
14782# Whether or not to build static libraries.
14783build_old_libs=$enable_static
14784
14785# What type of objects to build.
14786pic_mode=$pic_mode
14787
14788# Whether or not to optimize for fast installation.
14789fast_install=$enable_fast_install
14790
14791# The host system.
14792host_alias=$host_alias
14793host=$host
14794host_os=$host_os
14795
14796# The build system.
14797build_alias=$build_alias
14798build=$build
14799build_os=$build_os
14800
14801# A sed program that does not truncate output.
14802SED=$lt_SED
14803
14804# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14805Xsed="\$SED -e 1s/^X//"
14806
14807# A grep program that handles long lines.
14808GREP=$lt_GREP
14809
14810# An ERE matcher.
14811EGREP=$lt_EGREP
14812
14813# A literal string matcher.
14814FGREP=$lt_FGREP
14815
14816# A BSD- or MS-compatible name lister.
14817NM=$lt_NM
14818
14819# Whether we need soft or hard links.
14820LN_S=$lt_LN_S
14821
14822# What is the maximum length of a command?
14823max_cmd_len=$max_cmd_len
14824
14825# Object file suffix (normally "o").
14826objext=$ac_objext
14827
14828# Executable file suffix (normally "").
14829exeext=$exeext
14830
14831# whether the shell understands "unset".
14832lt_unset=$lt_unset
14833
14834# turn spaces into newlines.
14835SP2NL=$lt_lt_SP2NL
14836
14837# turn newlines into spaces.
14838NL2SP=$lt_lt_NL2SP
14839
14840# How to create reloadable object files.
14841reload_flag=$lt_reload_flag
14842reload_cmds=$lt_reload_cmds
14843
b214d478
SE
14844# An object symbol dumper.
14845OBJDUMP=$lt_OBJDUMP
14846
d7040cdb
SE
14847# Method to check whether dependent libraries are shared objects.
14848deplibs_check_method=$lt_deplibs_check_method
14849
14850# Command to use when deplibs_check_method == "file_magic".
14851file_magic_cmd=$lt_file_magic_cmd
14852
14853# The archiver.
14854AR=$lt_AR
14855AR_FLAGS=$lt_AR_FLAGS
14856
14857# A symbol stripping program.
14858STRIP=$lt_STRIP
14859
14860# Commands used to install an old-style archive.
14861RANLIB=$lt_RANLIB
14862old_postinstall_cmds=$lt_old_postinstall_cmds
14863old_postuninstall_cmds=$lt_old_postuninstall_cmds
14864
14865# A C compiler.
14866LTCC=$lt_CC
14867
14868# LTCC compiler flags.
14869LTCFLAGS=$lt_CFLAGS
14870
14871# Take the output of nm and produce a listing of raw symbols and C names.
14872global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14873
14874# Transform the output of nm in a proper C declaration.
14875global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14876
14877# Transform the output of nm in a C name address pair.
14878global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14879
b214d478
SE
14880# Transform the output of nm in a C name address pair when lib prefix is needed.
14881global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14882
d7040cdb
SE
14883# The name of the directory that contains temporary libtool files.
14884objdir=$objdir
14885
14886# Shell to use when invoking shell scripts.
14887SHELL=$lt_SHELL
14888
14889# An echo program that does not interpret backslashes.
14890ECHO=$lt_ECHO
14891
14892# Used to examine libraries when file_magic_cmd begins with "file".
14893MAGIC_CMD=$MAGIC_CMD
14894
14895# Must we lock files when doing compilation?
14896need_locks=$lt_need_locks
14897
b214d478
SE
14898# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14899DSYMUTIL=$lt_DSYMUTIL
14900
14901# Tool to change global to local symbols on Mac OS X.
14902NMEDIT=$lt_NMEDIT
14903
14904# Tool to manipulate fat objects and archives on Mac OS X.
14905LIPO=$lt_LIPO
14906
14907# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14908OTOOL=$lt_OTOOL
14909
14910# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14911OTOOL64=$lt_OTOOL64
14912
d7040cdb
SE
14913# Old archive suffix (normally "a").
14914libext=$libext
14915
14916# Shared library suffix (normally ".so").
14917shrext_cmds=$lt_shrext_cmds
14918
14919# The commands to extract the exported symbol list from a shared archive.
14920extract_expsyms_cmds=$lt_extract_expsyms_cmds
14921
14922# Variables whose values should be saved in libtool wrapper scripts and
14923# restored at link time.
14924variables_saved_for_relink=$lt_variables_saved_for_relink
14925
14926# Do we need the "lib" prefix for modules?
14927need_lib_prefix=$need_lib_prefix
14928
14929# Do we need a version for libraries?
14930need_version=$need_version
14931
14932# Library versioning type.
14933version_type=$version_type
14934
14935# Shared library runtime path variable.
14936runpath_var=$runpath_var
14937
14938# Shared library path variable.
14939shlibpath_var=$shlibpath_var
14940
14941# Is shlibpath searched before the hard-coded library search path?
14942shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14943
14944# Format of library name prefix.
14945libname_spec=$lt_libname_spec
14946
14947# List of archive names. First name is the real one, the rest are links.
14948# The last name is the one that the linker finds with -lNAME
14949library_names_spec=$lt_library_names_spec
14950
14951# The coded name of the library, if different from the real name.
14952soname_spec=$lt_soname_spec
14953
14954# Command to use after installation of a shared archive.
14955postinstall_cmds=$lt_postinstall_cmds
14956
14957# Command to use after uninstallation of a shared archive.
14958postuninstall_cmds=$lt_postuninstall_cmds
14959
14960# Commands used to finish a libtool library installation in a directory.
14961finish_cmds=$lt_finish_cmds
14962
14963# As "finish_cmds", except a single script fragment to be evaled but
14964# not shown.
14965finish_eval=$lt_finish_eval
14966
14967# Whether we should hardcode library paths into libraries.
14968hardcode_into_libs=$hardcode_into_libs
14969
14970# Compile-time system search path for libraries.
14971sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14972
14973# Run-time system search path for libraries.
14974sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14975
14976# Whether dlopen is supported.
14977dlopen_support=$enable_dlopen
14978
14979# Whether dlopen of programs is supported.
14980dlopen_self=$enable_dlopen_self
14981
14982# Whether dlopen of statically linked programs is supported.
14983dlopen_self_static=$enable_dlopen_self_static
14984
14985# Commands to strip libraries.
14986old_striplib=$lt_old_striplib
14987striplib=$lt_striplib
14988
14989
14990# The linker used to build libraries.
14991LD=$lt_LD
14992
14993# Commands used to build an old-style archive.
14994old_archive_cmds=$lt_old_archive_cmds
14995
14996# A language specific compiler.
14997CC=$lt_compiler
14998
14999# Is the compiler the GNU compiler?
15000with_gcc=$GCC
15001
15002# Compiler flag to turn off builtin functions.
15003no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15004
15005# How to pass a linker flag through the compiler.
15006wl=$lt_lt_prog_compiler_wl
15007
15008# Additional compiler flags for building library objects.
15009pic_flag=$lt_lt_prog_compiler_pic
15010
15011# Compiler flag to prevent dynamic linking.
15012link_static_flag=$lt_lt_prog_compiler_static
15013
15014# Does compiler simultaneously support -c and -o options?
15015compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15016
15017# Whether or not to add -lc for building shared libraries.
15018build_libtool_need_lc=$archive_cmds_need_lc
15019
15020# Whether or not to disallow shared libs when runtime libs are static.
15021allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15022
15023# Compiler flag to allow reflexive dlopens.
15024export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15025
15026# Compiler flag to generate shared objects directly from archives.
15027whole_archive_flag_spec=$lt_whole_archive_flag_spec
15028
15029# Whether the compiler copes with passing no objects directly.
15030compiler_needs_object=$lt_compiler_needs_object
15031
15032# Create an old-style archive from a shared archive.
15033old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15034
15035# Create a temporary old-style archive to link instead of a shared archive.
15036old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15037
15038# Commands used to build a shared archive.
15039archive_cmds=$lt_archive_cmds
15040archive_expsym_cmds=$lt_archive_expsym_cmds
15041
15042# Commands used to build a loadable module if different from building
15043# a shared archive.
15044module_cmds=$lt_module_cmds
15045module_expsym_cmds=$lt_module_expsym_cmds
15046
15047# Whether we are building with GNU ld or not.
15048with_gnu_ld=$lt_with_gnu_ld
15049
15050# Flag that allows shared libraries with undefined symbols to be built.
15051allow_undefined_flag=$lt_allow_undefined_flag
15052
15053# Flag that enforces no undefined symbols.
15054no_undefined_flag=$lt_no_undefined_flag
15055
15056# Flag to hardcode \$libdir into a binary during linking.
15057# This must work even if \$libdir does not exist
15058hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15059
15060# If ld is used when linking, flag to hardcode \$libdir into a binary
15061# during linking. This must work even if \$libdir does not exist.
15062hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15063
15064# Whether we need a single "-rpath" flag with a separated argument.
15065hardcode_libdir_separator=$lt_hardcode_libdir_separator
15066
15067# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15068# DIR into the resulting binary.
15069hardcode_direct=$hardcode_direct
15070
15071# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15072# DIR into the resulting binary and the resulting library dependency is
15073# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15074# library is relocated.
15075hardcode_direct_absolute=$hardcode_direct_absolute
15076
15077# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15078# into the resulting binary.
15079hardcode_minus_L=$hardcode_minus_L
15080
15081# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15082# into the resulting binary.
15083hardcode_shlibpath_var=$hardcode_shlibpath_var
15084
15085# Set to "yes" if building a shared library automatically hardcodes DIR
15086# into the library and all subsequent libraries and executables linked
15087# against it.
15088hardcode_automatic=$hardcode_automatic
15089
15090# Set to yes if linker adds runtime paths of dependent libraries
15091# to runtime path list.
15092inherit_rpath=$inherit_rpath
15093
15094# Whether libtool must link a program against all its dependency libraries.
15095link_all_deplibs=$link_all_deplibs
15096
15097# Fix the shell variable \$srcfile for the compiler.
15098fix_srcfile_path=$lt_fix_srcfile_path
15099
15100# Set to "yes" if exported symbols are required.
15101always_export_symbols=$always_export_symbols
15102
15103# The commands to list exported symbols.
15104export_symbols_cmds=$lt_export_symbols_cmds
15105
15106# Symbols that should not be listed in the preloaded symbols.
15107exclude_expsyms=$lt_exclude_expsyms
15108
15109# Symbols that must always be exported.
15110include_expsyms=$lt_include_expsyms
15111
15112# Commands necessary for linking programs (against libraries) with templates.
15113prelink_cmds=$lt_prelink_cmds
15114
15115# Specify filename containing input files.
15116file_list_spec=$lt_file_list_spec
15117
15118# How to hardcode a shared library path into an executable.
15119hardcode_action=$hardcode_action
15120
15121# ### END LIBTOOL CONFIG
15122
15123_LT_EOF
15124
15125 case $host_os in
15126 aix3*)
15127 cat <<\_LT_EOF >> "$cfgfile"
15128# AIX sometimes has problems with the GCC collect2 program. For some
15129# reason, if we set the COLLECT_NAMES environment variable, the problems
15130# vanish in a puff of smoke.
15131if test "X${COLLECT_NAMES+set}" != Xset; then
15132 COLLECT_NAMES=
15133 export COLLECT_NAMES
15134fi
15135_LT_EOF
15136 ;;
15137 esac
15138
15139
15140ltmain="$ac_aux_dir/ltmain.sh"
15141
15142
15143 # We use sed instead of cat because bash on DJGPP gets confused if
15144 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15145 # text mode, it properly converts lines to CR/LF. This bash problem
15146 # is reportedly fixed, but why not run on old versions too?
15147 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15148 || (rm -f "$cfgfile"; exit 1)
15149
15150 case $xsi_shell in
15151 yes)
15152 cat << \_LT_EOF >> "$cfgfile"
b214d478 15153
d7040cdb
SE
15154# func_dirname file append nondir_replacement
15155# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15156# otherwise set result to NONDIR_REPLACEMENT.
15157func_dirname ()
15158{
15159 case ${1} in
15160 */*) func_dirname_result="${1%/*}${2}" ;;
15161 * ) func_dirname_result="${3}" ;;
15162 esac
15163}
15164
15165# func_basename file
15166func_basename ()
15167{
15168 func_basename_result="${1##*/}"
15169}
15170
b214d478
SE
15171# func_dirname_and_basename file append nondir_replacement
15172# perform func_basename and func_dirname in a single function
15173# call:
15174# dirname: Compute the dirname of FILE. If nonempty,
15175# add APPEND to the result, otherwise set result
15176# to NONDIR_REPLACEMENT.
15177# value returned in "$func_dirname_result"
15178# basename: Compute filename of FILE.
15179# value retuned in "$func_basename_result"
15180# Implementation must be kept synchronized with func_dirname
15181# and func_basename. For efficiency, we do not delegate to
15182# those functions but instead duplicate the functionality here.
15183func_dirname_and_basename ()
15184{
15185 case ${1} in
15186 */*) func_dirname_result="${1%/*}${2}" ;;
15187 * ) func_dirname_result="${3}" ;;
15188 esac
15189 func_basename_result="${1##*/}"
15190}
15191
d7040cdb
SE
15192# func_stripname prefix suffix name
15193# strip PREFIX and SUFFIX off of NAME.
15194# PREFIX and SUFFIX must not contain globbing or regex special
15195# characters, hashes, percent signs, but SUFFIX may contain a leading
15196# dot (in which case that matches only a dot).
15197func_stripname ()
15198{
15199 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15200 # positional parameters, so assign one to ordinary parameter first.
15201 func_stripname_result=${3}
15202 func_stripname_result=${func_stripname_result#"${1}"}
15203 func_stripname_result=${func_stripname_result%"${2}"}
15204}
15205
15206# func_opt_split
15207func_opt_split ()
15208{
15209 func_opt_split_opt=${1%%=*}
15210 func_opt_split_arg=${1#*=}
15211}
15212
15213# func_lo2o object
15214func_lo2o ()
15215{
15216 case ${1} in
15217 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15218 *) func_lo2o_result=${1} ;;
15219 esac
15220}
b214d478
SE
15221
15222# func_xform libobj-or-source
15223func_xform ()
15224{
15225 func_xform_result=${1%.*}.lo
15226}
15227
15228# func_arith arithmetic-term...
15229func_arith ()
15230{
15231 func_arith_result=$(( $* ))
15232}
15233
15234# func_len string
15235# STRING may not start with a hyphen.
15236func_len ()
15237{
15238 func_len_result=${#1}
15239}
15240
d7040cdb
SE
15241_LT_EOF
15242 ;;
15243 *) # Bourne compatible functions.
15244 cat << \_LT_EOF >> "$cfgfile"
b214d478 15245
d7040cdb
SE
15246# func_dirname file append nondir_replacement
15247# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15248# otherwise set result to NONDIR_REPLACEMENT.
15249func_dirname ()
15250{
15251 # Extract subdirectory from the argument.
15252 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15253 if test "X$func_dirname_result" = "X${1}"; then
15254 func_dirname_result="${3}"
15255 else
15256 func_dirname_result="$func_dirname_result${2}"
15257 fi
15258}
15259
15260# func_basename file
15261func_basename ()
15262{
15263 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15264}
15265
b214d478 15266
d7040cdb
SE
15267# func_stripname prefix suffix name
15268# strip PREFIX and SUFFIX off of NAME.
15269# PREFIX and SUFFIX must not contain globbing or regex special
15270# characters, hashes, percent signs, but SUFFIX may contain a leading
15271# dot (in which case that matches only a dot).
15272# func_strip_suffix prefix name
15273func_stripname ()
15274{
15275 case ${2} in
15276 .*) func_stripname_result=`$ECHO "X${3}" \
15277 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15278 *) func_stripname_result=`$ECHO "X${3}" \
15279 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15280 esac
15281}
15282
15283# sed scripts:
15284my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15285my_sed_long_arg='1s/^-[^=]*=//'
15286
15287# func_opt_split
15288func_opt_split ()
15289{
15290 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15291 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15292}
15293
15294# func_lo2o object
15295func_lo2o ()
15296{
15297 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15298}
b214d478
SE
15299
15300# func_xform libobj-or-source
15301func_xform ()
15302{
15303 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15304}
15305
15306# func_arith arithmetic-term...
15307func_arith ()
15308{
15309 func_arith_result=`expr "$@"`
15310}
15311
15312# func_len string
15313# STRING may not start with a hyphen.
15314func_len ()
15315{
15316 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15317}
15318
d7040cdb
SE
15319_LT_EOF
15320esac
15321
15322case $lt_shell_append in
15323 yes)
15324 cat << \_LT_EOF >> "$cfgfile"
15325
15326# func_append var value
15327# Append VALUE to the end of shell variable VAR.
15328func_append ()
15329{
15330 eval "$1+=\$2"
15331}
15332_LT_EOF
15333 ;;
15334 *)
15335 cat << \_LT_EOF >> "$cfgfile"
15336
15337# func_append var value
15338# Append VALUE to the end of shell variable VAR.
15339func_append ()
15340{
15341 eval "$1=\$$1\$2"
15342}
b214d478 15343
d7040cdb
SE
15344_LT_EOF
15345 ;;
15346 esac
15347
15348
15349 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15350 || (rm -f "$cfgfile"; exit 1)
15351
15352 mv -f "$cfgfile" "$ofile" ||
15353 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15354 chmod +x "$ofile"
15355
42ecbf5e 15356 ;;
81ecdfbb 15357 "default-1":C)
20e95c23
DJ
15358 for ac_file in $CONFIG_FILES; do
15359 # Support "outfile[:infile[:infile...]]"
15360 case "$ac_file" in
15361 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15362 esac
15363 # PO directories have a Makefile.in generated from Makefile.in.in.
15364 case "$ac_file" in */Makefile.in)
15365 # Adjust a relative srcdir.
15366 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15367 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15368 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15369 # In autoconf-2.13 it is called $ac_given_srcdir.
15370 # In autoconf-2.50 it is called $srcdir.
15371 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15372 case "$ac_given_srcdir" in
15373 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15374 /*) top_srcdir="$ac_given_srcdir" ;;
15375 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15376 esac
15377 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15378 rm -f "$ac_dir/POTFILES"
15379 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15380 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15381 POMAKEFILEDEPS="POTFILES.in"
15382 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15383 # on $ac_dir but don't depend on user-specified configuration
15384 # parameters.
15385 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15386 # The LINGUAS file contains the set of available languages.
15387 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15388 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15389 fi
15390 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15391 # Hide the ALL_LINGUAS assigment from automake.
15392 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15393 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15394 else
15395 # The set of available languages was given in configure.in.
15396 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15397 fi
15398 case "$ac_given_srcdir" in
15399 .) srcdirpre= ;;
15400 *) srcdirpre='$(srcdir)/' ;;
15401 esac
15402 POFILES=
15403 GMOFILES=
15404 UPDATEPOFILES=
15405 DUMMYPOFILES=
15406 for lang in $ALL_LINGUAS; do
15407 POFILES="$POFILES $srcdirpre$lang.po"
15408 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15409 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15410 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15411 done
15412 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15413 # environment variable.
15414 INST_LINGUAS=
15415 if test -n "$ALL_LINGUAS"; then
15416 for presentlang in $ALL_LINGUAS; do
15417 useit=no
15418 if test "%UNSET%" != "$LINGUAS"; then
15419 desiredlanguages="$LINGUAS"
15420 else
15421 desiredlanguages="$ALL_LINGUAS"
15422 fi
15423 for desiredlang in $desiredlanguages; do
15424 # Use the presentlang catalog if desiredlang is
15425 # a. equal to presentlang, or
15426 # b. a variant of presentlang (because in this case,
15427 # presentlang can be used as a fallback for messages
15428 # which are not translated in the desiredlang catalog).
15429 case "$desiredlang" in
15430 "$presentlang"*) useit=yes;;
15431 esac
15432 done
15433 if test $useit = yes; then
15434 INST_LINGUAS="$INST_LINGUAS $presentlang"
15435 fi
15436 done
15437 fi
15438 CATALOGS=
15439 if test -n "$INST_LINGUAS"; then
15440 for lang in $INST_LINGUAS; do
15441 CATALOGS="$CATALOGS $lang.gmo"
15442 done
15443 fi
15444 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15445 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"
15446 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15447 if test -f "$f"; then
15448 case "$f" in
15449 *.orig | *.bak | *~) ;;
15450 *) cat "$f" >> "$ac_dir/Makefile" ;;
15451 esac
15452 fi
15453 done
15454 fi
15455 ;;
15456 esac
15457 done ;;
81ecdfbb 15458
42ecbf5e 15459 esac
81ecdfbb 15460done # for ac_tag
42ecbf5e 15461
42ecbf5e 15462
81ecdfbb 15463as_fn_exit 0
42ecbf5e 15464_ACEOF
42ecbf5e
DJ
15465ac_clean_files=$ac_clean_files_save
15466
81ecdfbb
RW
15467test $ac_write_fail = 0 ||
15468 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15469
42ecbf5e
DJ
15470
15471# configure is writing to config.log, and then calls config.status.
15472# config.status does its own redirection, appending to config.log.
15473# Unfortunately, on DOS this fails, as config.log is still kept open
15474# by configure, so config.status won't be able to write to it; its
15475# output is simply discarded. So we exec the FD to /dev/null,
15476# effectively closing config.log, so it can be properly (re)opened and
15477# appended to by config.status. When coming back to configure, we
15478# need to make the FD available again.
15479if test "$no_create" != yes; then
15480 ac_cs_success=:
15481 ac_config_status_args=
15482 test "$silent" = yes &&
15483 ac_config_status_args="$ac_config_status_args --quiet"
15484 exec 5>/dev/null
15485 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15486 exec 5>>config.log
15487 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15488 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15489 $ac_cs_success || as_fn_exit $?
15490fi
15491if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15493$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 15494fi
252b5132 15495
This page took 1.795841 seconds and 4 git commands to generate.