*** empty log message ***
[deliverable/binutils-gdb.git] / gprof / 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## -------------------- ##
6bf9431b 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 :
6bf9431b
BE
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6bf9431b
BE
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
6bf9431b 31fi
6bf9431b 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 }
6bf9431b
BE
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
6bf9431b
BE
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
6bf9431b 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."
6bf9431b 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."
6bf9431b 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
6bf9431b 372
81ecdfbb
RW
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6bf9431b
BE
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
6bf9431b
BE
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
6bf9431b 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
6bf9431b
BE
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'`
6bf9431b 410
0ab6f085
AM
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
1b9750d6 417
6bf9431b 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 |
6bf9431b 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
6bf9431b 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6bf9431b 436 t loop
81ecdfbb 437 s/-\n.*//
6bf9431b 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; }
6bf9431b
BE
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"
6bf9431b
BE
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';;
6bf9431b
BE
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
6bf9431b 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
6bf9431b 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
0ab6f085 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'
0ab6f085 483 fi
6bf9431b
BE
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
6bf9431b
BE
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
6bf9431b
BE
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
6bf9431b
BE
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
6bf9431b
BE
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
6bf9431b
BE
683#
684# Initializations.
685#
252b5132 686ac_default_prefix=/usr/local
81ecdfbb 687ac_clean_files=
6bf9431b 688ac_config_libobj_dir=.
81ecdfbb 689LIBOBJS=
6bf9431b
BE
690cross_compiling=no
691subdirs=
692MFLAGS=
693MAKEFLAGS=
0ab6f085 694
6bf9431b
BE
695# Identity of this package.
696PACKAGE_NAME=
697PACKAGE_TARNAME=
698PACKAGE_VERSION=
699PACKAGE_STRING=
700PACKAGE_BUGREPORT=
81ecdfbb 701PACKAGE_URL=
6bf9431b
BE
702
703ac_unique_file="gprof.c"
704# Factoring default headers for most tests.
705ac_includes_default="\
706#include <stdio.h>
81ecdfbb 707#ifdef HAVE_SYS_TYPES_H
6bf9431b
BE
708# include <sys/types.h>
709#endif
81ecdfbb 710#ifdef HAVE_SYS_STAT_H
6bf9431b
BE
711# include <sys/stat.h>
712#endif
81ecdfbb 713#ifdef STDC_HEADERS
6bf9431b
BE
714# include <stdlib.h>
715# include <stddef.h>
716#else
81ecdfbb 717# ifdef HAVE_STDLIB_H
6bf9431b
BE
718# include <stdlib.h>
719# endif
720#endif
81ecdfbb
RW
721#ifdef HAVE_STRING_H
722# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
6bf9431b
BE
723# include <memory.h>
724# endif
725# include <string.h>
726#endif
81ecdfbb 727#ifdef HAVE_STRINGS_H
6bf9431b
BE
728# include <strings.h>
729#endif
81ecdfbb 730#ifdef HAVE_INTTYPES_H
6bf9431b 731# include <inttypes.h>
6bf9431b 732#endif
81ecdfbb
RW
733#ifdef HAVE_STDINT_H
734# include <stdint.h>
735#endif
736#ifdef HAVE_UNISTD_H
6bf9431b
BE
737# include <unistd.h>
738#endif"
739
81ecdfbb
RW
740ac_subst_vars='am__EXEEXT_FALSE
741am__EXEEXT_TRUE
742LTLIBOBJS
743LIBOBJS
744NO_WERROR
745WARN_CFLAGS
746GENINSRC_NEVER_FALSE
747GENINSRC_NEVER_TRUE
748MAINT
749MAINTAINER_MODE_FALSE
750MAINTAINER_MODE_TRUE
751MSGMERGE
752MSGFMT
753MKINSTALLDIRS
754CATOBJEXT
755GENCAT
756INSTOBJEXT
757DATADIRNAME
758CATALOGS
759POSUB
760GMSGFMT
761XGETTEXT
762INCINTL
763LIBINTL_DEP
764LIBINTL
765USE_NLS
766OTOOL64
767OTOOL
768LIPO
769NMEDIT
770DSYMUTIL
771lt_ECHO
772RANLIB
773AR
774OBJDUMP
775LN_S
776NM
777ac_ct_DUMPBIN
778DUMPBIN
779LD
780FGREP
781SED
782LIBTOOL
783EGREP
784GREP
785CPP
786am__fastdepCC_FALSE
787am__fastdepCC_TRUE
788CCDEPMODE
789AMDEPBACKSLASH
790AMDEP_FALSE
791AMDEP_TRUE
792am__quote
793am__include
794DEPDIR
795am__untar
796am__tar
797AMTAR
798am__leading_dot
799SET_MAKE
800AWK
801mkdir_p
802MKDIR_P
803INSTALL_STRIP_PROGRAM
804STRIP
805install_sh
806MAKEINFO
807AUTOHEADER
808AUTOMAKE
809AUTOCONF
810ACLOCAL
811VERSION
812PACKAGE
813CYGPATH_W
814am__isrc
815INSTALL_DATA
816INSTALL_SCRIPT
817INSTALL_PROGRAM
818OBJEXT
819EXEEXT
820ac_ct_CC
821CPPFLAGS
822LDFLAGS
823CFLAGS
824CC
825target_os
826target_vendor
827target_cpu
828target
829host_os
830host_vendor
831host_cpu
832host
833build_os
834build_vendor
835build_cpu
836build
837target_alias
838host_alias
839build_alias
840LIBS
841ECHO_T
842ECHO_N
843ECHO_C
844DEFS
845mandir
846localedir
847libdir
848psdir
849pdfdir
850dvidir
851htmldir
852infodir
853docdir
854oldincludedir
855includedir
856localstatedir
857sharedstatedir
858sysconfdir
859datadir
860datarootdir
861libexecdir
862sbindir
863bindir
864program_transform_name
865prefix
866exec_prefix
867PACKAGE_URL
868PACKAGE_BUGREPORT
869PACKAGE_STRING
870PACKAGE_VERSION
871PACKAGE_TARNAME
872PACKAGE_NAME
873PATH_SEPARATOR
874SHELL'
6bf9431b 875ac_subst_files=''
81ecdfbb
RW
876ac_user_opts='
877enable_option_checking
878enable_dependency_tracking
879enable_largefile
880enable_shared
881enable_static
882with_pic
883enable_fast_install
884with_gnu_ld
885enable_libtool_lock
886enable_nls
887enable_maintainer_mode
888enable_werror
889enable_build_warnings
890'
891 ac_precious_vars='build_alias
892host_alias
893target_alias
894CC
895CFLAGS
896LDFLAGS
897LIBS
898CPPFLAGS
899CPP'
900
252b5132
RH
901
902# Initialize some variables set by options.
6bf9431b
BE
903ac_init_help=
904ac_init_version=false
81ecdfbb
RW
905ac_unrecognized_opts=
906ac_unrecognized_sep=
252b5132
RH
907# The variables have the same names as the options, with
908# dashes changed to underlines.
6bf9431b 909cache_file=/dev/null
252b5132 910exec_prefix=NONE
252b5132 911no_create=
252b5132
RH
912no_recursion=
913prefix=NONE
914program_prefix=NONE
915program_suffix=NONE
916program_transform_name=s,x,x,
917silent=
918site=
919srcdir=
252b5132
RH
920verbose=
921x_includes=NONE
922x_libraries=NONE
6bf9431b
BE
923
924# Installation directory options.
925# These are left unexpanded so users can "make install exec_prefix=/foo"
926# and all the variables that are supposed to be based on exec_prefix
927# by default will actually change.
928# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 929# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
930bindir='${exec_prefix}/bin'
931sbindir='${exec_prefix}/sbin'
932libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
933datarootdir='${prefix}/share'
934datadir='${datarootdir}'
252b5132
RH
935sysconfdir='${prefix}/etc'
936sharedstatedir='${prefix}/com'
937localstatedir='${prefix}/var'
252b5132
RH
938includedir='${prefix}/include'
939oldincludedir='/usr/include'
81ecdfbb
RW
940docdir='${datarootdir}/doc/${PACKAGE}'
941infodir='${datarootdir}/info'
942htmldir='${docdir}'
943dvidir='${docdir}'
944pdfdir='${docdir}'
945psdir='${docdir}'
946libdir='${exec_prefix}/lib'
947localedir='${datarootdir}/locale'
948mandir='${datarootdir}/man'
252b5132 949
252b5132 950ac_prev=
81ecdfbb 951ac_dashdash=
252b5132
RH
952for ac_option
953do
252b5132
RH
954 # If the previous option needs an argument, assign it.
955 if test -n "$ac_prev"; then
81ecdfbb 956 eval $ac_prev=\$ac_option
252b5132
RH
957 ac_prev=
958 continue
959 fi
960
81ecdfbb
RW
961 case $ac_option in
962 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963 *) ac_optarg=yes ;;
964 esac
252b5132
RH
965
966 # Accept the important Cygnus configure options, so we can diagnose typos.
967
81ecdfbb
RW
968 case $ac_dashdash$ac_option in
969 --)
970 ac_dashdash=yes ;;
252b5132
RH
971
972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
973 ac_prev=bindir ;;
974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
6bf9431b 975 bindir=$ac_optarg ;;
252b5132
RH
976
977 -build | --build | --buil | --bui | --bu)
6bf9431b 978 ac_prev=build_alias ;;
252b5132 979 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
6bf9431b 980 build_alias=$ac_optarg ;;
252b5132
RH
981
982 -cache-file | --cache-file | --cache-fil | --cache-fi \
983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984 ac_prev=cache_file ;;
985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6bf9431b
BE
987 cache_file=$ac_optarg ;;
988
989 --config-cache | -C)
990 cache_file=config.cache ;;
252b5132 991
81ecdfbb 992 -datadir | --datadir | --datadi | --datad)
252b5132 993 ac_prev=datadir ;;
81ecdfbb 994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
6bf9431b 995 datadir=$ac_optarg ;;
252b5132 996
81ecdfbb
RW
997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
1003
252b5132 1004 -disable-* | --disable-*)
81ecdfbb 1005 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 1006 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008 as_fn_error "invalid feature name: $ac_useropt"
1009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1012 *"
1013"enable_$ac_useropt"
1014"*) ;;
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1017 esac
1018 eval enable_$ac_useropt=no ;;
1019
1020 -docdir | --docdir | --docdi | --doc | --do)
1021 ac_prev=docdir ;;
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1024
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 ac_prev=dvidir ;;
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
252b5132
RH
1029
1030 -enable-* | --enable-*)
81ecdfbb 1031 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 1032 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034 as_fn_error "invalid feature name: $ac_useropt"
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1038 *"
1039"enable_$ac_useropt"
1040"*) ;;
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
0ab6f085 1043 esac
81ecdfbb 1044 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1045
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
6bf9431b 1053 exec_prefix=$ac_optarg ;;
252b5132
RH
1054
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1057 with_gas=yes ;;
1058
6bf9431b
BE
1059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
252b5132
RH
1065
1066 -host | --host | --hos | --ho)
6bf9431b 1067 ac_prev=host_alias ;;
252b5132 1068 -host=* | --host=* | --hos=* | --ho=*)
6bf9431b 1069 host_alias=$ac_optarg ;;
252b5132 1070
81ecdfbb
RW
1071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 ac_prev=htmldir ;;
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 | --ht=*)
1075 htmldir=$ac_optarg ;;
1076
252b5132
RH
1077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
6bf9431b 1082 includedir=$ac_optarg ;;
252b5132
RH
1083
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 ac_prev=infodir ;;
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
6bf9431b 1087 infodir=$ac_optarg ;;
252b5132
RH
1088
1089 -libdir | --libdir | --libdi | --libd)
1090 ac_prev=libdir ;;
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
6bf9431b 1092 libdir=$ac_optarg ;;
252b5132
RH
1093
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
6bf9431b 1099 libexecdir=$ac_optarg ;;
252b5132 1100
81ecdfbb
RW
1101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1105
252b5132 1106 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1107 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
6bf9431b 1111 localstatedir=$ac_optarg ;;
252b5132
RH
1112
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 ac_prev=mandir ;;
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
6bf9431b 1116 mandir=$ac_optarg ;;
252b5132
RH
1117
1118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1120 with_fp=no ;;
1121
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
6bf9431b 1123 | --no-cr | --no-c | -n)
252b5132
RH
1124 no_create=yes ;;
1125
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128 no_recursion=yes ;;
1129
1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
6bf9431b 1137 oldincludedir=$ac_optarg ;;
252b5132
RH
1138
1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 ac_prev=prefix ;;
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6bf9431b 1142 prefix=$ac_optarg ;;
252b5132
RH
1143
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
6bf9431b 1149 program_prefix=$ac_optarg ;;
252b5132
RH
1150
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
6bf9431b 1156 program_suffix=$ac_optarg ;;
252b5132
RH
1157
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
6bf9431b 1173 program_transform_name=$ac_optarg ;;
252b5132 1174
81ecdfbb
RW
1175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 ac_prev=pdfdir ;;
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1179
1180 -psdir | --psdir | --psdi | --psd | --ps)
1181 ac_prev=psdir ;;
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183 psdir=$ac_optarg ;;
1184
252b5132
RH
1185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1187 silent=yes ;;
1188
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 ac_prev=sbindir ;;
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 | --sbi=* | --sb=*)
6bf9431b 1193 sbindir=$ac_optarg ;;
252b5132
RH
1194
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1198 | --sha | --sh)
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 | --sha=* | --sh=*)
6bf9431b 1204 sharedstatedir=$ac_optarg ;;
252b5132
RH
1205
1206 -site | --site | --sit)
1207 ac_prev=site ;;
1208 -site=* | --site=* | --sit=*)
6bf9431b 1209 site=$ac_optarg ;;
093872ec 1210
252b5132
RH
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 ac_prev=srcdir ;;
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6bf9431b 1214 srcdir=$ac_optarg ;;
252b5132
RH
1215
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
6bf9431b 1221 sysconfdir=$ac_optarg ;;
252b5132
RH
1222
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
6bf9431b 1224 ac_prev=target_alias ;;
252b5132 1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
6bf9431b 1226 target_alias=$ac_optarg ;;
252b5132
RH
1227
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 verbose=yes ;;
1230
6bf9431b
BE
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
252b5132
RH
1233
1234 -with-* | --with-*)
81ecdfbb 1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1236 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error "invalid package name: $ac_useropt"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1242 *"
1243"with_$ac_useropt"
1244"*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
0ab6f085 1247 esac
81ecdfbb 1248 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1249
1250 -without-* | --without-*)
81ecdfbb 1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1252 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error "invalid package name: $ac_useropt"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1258 *"
1259"with_$ac_useropt"
1260"*) ;;
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1263 esac
1264 eval with_$ac_useropt=no ;;
252b5132
RH
1265
1266 --x)
1267 # Obsolete; use --with-x.
1268 with_x=yes ;;
1269
1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271 | --x-incl | --x-inc | --x-in | --x-i)
1272 ac_prev=x_includes ;;
1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
6bf9431b 1275 x_includes=$ac_optarg ;;
252b5132
RH
1276
1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279 ac_prev=x_libraries ;;
1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
6bf9431b 1282 x_libraries=$ac_optarg ;;
252b5132 1283
81ecdfbb
RW
1284 -*) as_fn_error "unrecognized option: \`$ac_option'
1285Try \`$0 --help' for more information."
252b5132
RH
1286 ;;
1287
6bf9431b
BE
1288 *=*)
1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1291 case $ac_envvar in #(
1292 '' | [0-9]* | *[!_$as_cr_alnum]* )
1293 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1294 esac
1295 eval $ac_envvar=\$ac_optarg
6bf9431b
BE
1296 export $ac_envvar ;;
1297
252b5132 1298 *)
6bf9431b 1299 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1300 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
6bf9431b 1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1302 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
6bf9431b 1303 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1304 ;;
1305
1306 esac
1307done
1308
1309if test -n "$ac_prev"; then
6bf9431b 1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1311 as_fn_error "missing argument to $ac_option"
252b5132
RH
1312fi
1313
81ecdfbb
RW
1314if test -n "$ac_unrecognized_opts"; then
1315 case $enable_option_checking in
1316 no) ;;
1317 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1318 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
0ab6f085 1319 esac
81ecdfbb 1320fi
0ab6f085 1321
81ecdfbb
RW
1322# Check all directory arguments for consistency.
1323for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir
0ab6f085 1327do
81ecdfbb
RW
1328 eval ac_val=\$$ac_var
1329 # Remove trailing slashes.
0ab6f085 1330 case $ac_val in
81ecdfbb
RW
1331 */ )
1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333 eval $ac_var=\$ac_val;;
252b5132 1334 esac
81ecdfbb
RW
1335 # Be sure to have absolute directory names.
1336 case $ac_val in
1337 [\\/$]* | ?:[\\/]* ) continue;;
1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339 esac
1340 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1341done
1342
6bf9431b
BE
1343# There might be people who depend on the old broken behavior: `$host'
1344# used to hold the argument of --host etc.
1345# FIXME: To remove some day.
1346build=$build_alias
1347host=$host_alias
1348target=$target_alias
1349
1350# FIXME: To remove some day.
1351if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
81ecdfbb 1354 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
6bf9431b
BE
1355 If a cross compiler is detected then cross compile mode will be used." >&2
1356 elif test "x$build_alias" != "x$host_alias"; then
1357 cross_compiling=yes
1358 fi
1359fi
252b5132 1360
6bf9431b
BE
1361ac_tool_prefix=
1362test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363
1364test "$silent" = yes && exec 6>/dev/null
252b5132 1365
252b5132 1366
81ecdfbb
RW
1367ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368ac_ls_di=`ls -di .` &&
1369ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370 as_fn_error "working directory cannot be determined"
1371test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1372 as_fn_error "pwd does not report name of working directory"
1373
1374
252b5132
RH
1375# Find the source files, if location was not specified.
1376if test -z "$srcdir"; then
1377 ac_srcdir_defaulted=yes
81ecdfbb
RW
1378 # Try the directory containing this script, then the parent directory.
1379 ac_confdir=`$as_dirname -- "$as_myself" ||
1380$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381 X"$as_myself" : 'X\(//\)[^/]' \| \
1382 X"$as_myself" : 'X\(//\)$' \| \
1383 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1384$as_echo X"$as_myself" |
1385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386 s//\1/
1387 q
1388 }
1389 /^X\(\/\/\)[^/].*/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\/\)$/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\).*/{
1398 s//\1/
1399 q
1400 }
1401 s/.*/./; q'`
252b5132 1402 srcdir=$ac_confdir
81ecdfbb 1403 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1404 srcdir=..
1405 fi
1406else
1407 ac_srcdir_defaulted=no
1408fi
81ecdfbb
RW
1409if test ! -r "$srcdir/$ac_unique_file"; then
1410 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1411 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1412fi
1413ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1414ac_abs_confdir=`(
1415 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1416 pwd)`
1417# When building in place, set srcdir=.
1418if test "$ac_abs_confdir" = "$ac_pwd"; then
1419 srcdir=.
1420fi
1421# Remove unnecessary trailing slashes from srcdir.
1422# Double slashes in file names in object file debugging info
1423# mess up M-x gdb in Emacs.
1424case $srcdir in
1425*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426esac
1427for ac_var in $ac_precious_vars; do
1428 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_env_${ac_var}_value=\$${ac_var}
1430 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1432done
252b5132 1433
6bf9431b
BE
1434#
1435# Report the --help message.
1436#
1437if test "$ac_init_help" = "long"; then
1438 # Omit some internal or obsolete options to make the list less imposing.
1439 # This message is too long to be a string in the A/UX 3.1 sh.
1440 cat <<_ACEOF
1441\`configure' configures this package to adapt to many kinds of systems.
252b5132 1442
6bf9431b 1443Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1444
6bf9431b
BE
1445To assign environment variables (e.g., CC, CFLAGS...), specify them as
1446VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1447
6bf9431b 1448Defaults for the options are specified in brackets.
ac48eca1 1449
6bf9431b
BE
1450Configuration:
1451 -h, --help display this help and exit
1452 --help=short display options specific to this package
1453 --help=recursive display the short help of all the included packages
1454 -V, --version display version information and exit
1455 -q, --quiet, --silent do not print \`checking...' messages
1456 --cache-file=FILE cache test results in FILE [disabled]
1457 -C, --config-cache alias for \`--cache-file=config.cache'
1458 -n, --no-create do not create output files
1459 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1460
6bf9431b
BE
1461Installation directories:
1462 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1463 [$ac_default_prefix]
6bf9431b 1464 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1465 [PREFIX]
ac48eca1 1466
6bf9431b
BE
1467By default, \`make install' will install all the files in
1468\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1469an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1470for instance \`--prefix=\$HOME'.
ac48eca1 1471
6bf9431b 1472For better control, use the options below.
ac48eca1 1473
6bf9431b 1474Fine tuning of the installation directories:
81ecdfbb
RW
1475 --bindir=DIR user executables [EPREFIX/bin]
1476 --sbindir=DIR system admin executables [EPREFIX/sbin]
1477 --libexecdir=DIR program executables [EPREFIX/libexec]
1478 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1479 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1480 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1481 --libdir=DIR object code libraries [EPREFIX/lib]
1482 --includedir=DIR C header files [PREFIX/include]
1483 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1484 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1485 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1486 --infodir=DIR info documentation [DATAROOTDIR/info]
1487 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1488 --mandir=DIR man documentation [DATAROOTDIR/man]
1489 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1490 --htmldir=DIR html documentation [DOCDIR]
1491 --dvidir=DIR dvi documentation [DOCDIR]
1492 --pdfdir=DIR pdf documentation [DOCDIR]
1493 --psdir=DIR ps documentation [DOCDIR]
6bf9431b 1494_ACEOF
ac48eca1 1495
6bf9431b 1496 cat <<\_ACEOF
252b5132 1497
6bf9431b
BE
1498Program names:
1499 --program-prefix=PREFIX prepend PREFIX to installed program names
1500 --program-suffix=SUFFIX append SUFFIX to installed program names
1501 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1502
6bf9431b
BE
1503System types:
1504 --build=BUILD configure for building on BUILD [guessed]
1505 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1506 --target=TARGET configure for building compilers for TARGET [HOST]
1507_ACEOF
252b5132 1508fi
252b5132 1509
6bf9431b 1510if test -n "$ac_init_help"; then
252b5132 1511
6bf9431b 1512 cat <<\_ACEOF
252b5132 1513
6bf9431b 1514Optional Features:
81ecdfbb 1515 --disable-option-checking ignore unrecognized --enable/--with options
6bf9431b
BE
1516 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1517 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1518 --disable-dependency-tracking speeds up one-time build
1519 --enable-dependency-tracking do not reject slow dependency extractors
d053aef8 1520 --disable-largefile omit support for large files
81ecdfbb
RW
1521 --enable-shared[=PKGS] build shared libraries [default=yes]
1522 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1523 --enable-fast-install[=PKGS]
1524 optimize for fast installation [default=yes]
6bf9431b
BE
1525 --disable-libtool-lock avoid locking (might break parallel builds)
1526 --disable-nls do not use Native Language Support
1527 --enable-maintainer-mode enable make rules and dependencies not useful
1528 (and sometimes confusing) to the casual installer
241a6c40
AM
1529 --enable-werror treat compile warnings as errors
1530 --enable-build-warnings enable build-time compiler warnings
6bf9431b
BE
1531
1532Optional Packages:
1533 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1534 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1535 --with-pic try to use only PIC/non-PIC objects [default=use
1536 both]
1537 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
252b5132 1538
6bf9431b
BE
1539Some influential environment variables:
1540 CC C compiler command
1541 CFLAGS C compiler flags
1542 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1543 nonstandard directory <lib dir>
81ecdfbb
RW
1544 LIBS libraries to pass to the linker, e.g. -l<library>
1545 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1546 you have headers in a nonstandard directory <include dir>
6bf9431b 1547 CPP C preprocessor
252b5132 1548
6bf9431b
BE
1549Use these variables to override the choices made by `configure' or to help
1550it to find libraries and programs with nonstandard names/locations.
1551
81ecdfbb 1552Report bugs to the package provider.
6bf9431b 1553_ACEOF
81ecdfbb 1554ac_status=$?
252b5132
RH
1555fi
1556
6bf9431b
BE
1557if test "$ac_init_help" = "recursive"; then
1558 # If there are subdirs, report their specific --help.
6bf9431b 1559 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1560 test -d "$ac_dir" ||
1561 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1562 continue
6bf9431b 1563 ac_builddir=.
252b5132 1564
81ecdfbb
RW
1565case "$ac_dir" in
1566.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567*)
1568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1569 # A ".." for each directory in $ac_dir_suffix.
1570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1571 case $ac_top_builddir_sub in
1572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574 esac ;;
1575esac
1576ac_abs_top_builddir=$ac_pwd
1577ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578# for backward compatibility:
1579ac_top_builddir=$ac_top_build_prefix
6bf9431b
BE
1580
1581case $srcdir in
81ecdfbb 1582 .) # We are building in place.
6bf9431b 1583 ac_srcdir=.
81ecdfbb
RW
1584 ac_top_srcdir=$ac_top_builddir_sub
1585 ac_abs_top_srcdir=$ac_pwd ;;
1586 [\\/]* | ?:[\\/]* ) # Absolute name.
6bf9431b 1587 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1588 ac_top_srcdir=$srcdir
1589 ac_abs_top_srcdir=$srcdir ;;
1590 *) # Relative name.
1591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592 ac_top_srcdir=$ac_top_build_prefix$srcdir
1593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
0ab6f085 1594esac
81ecdfbb
RW
1595ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1596
1597 cd "$ac_dir" || { ac_status=$?; continue; }
1598 # Check for guested configure.
1599 if test -f "$ac_srcdir/configure.gnu"; then
1600 echo &&
1601 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602 elif test -f "$ac_srcdir/configure"; then
1603 echo &&
1604 $SHELL "$ac_srcdir/configure" --help=recursive
6bf9431b 1605 else
81ecdfbb
RW
1606 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1607 fi || ac_status=$?
1608 cd "$ac_pwd" || { ac_status=$?; break; }
6bf9431b
BE
1609 done
1610fi
252b5132 1611
81ecdfbb 1612test -n "$ac_init_help" && exit $ac_status
6bf9431b
BE
1613if $ac_init_version; then
1614 cat <<\_ACEOF
81ecdfbb
RW
1615configure
1616generated by GNU Autoconf 2.64
252b5132 1617
81ecdfbb 1618Copyright (C) 2009 Free Software Foundation, Inc.
6bf9431b
BE
1619This configure script is free software; the Free Software Foundation
1620gives unlimited permission to copy, distribute and modify it.
1621_ACEOF
81ecdfbb 1622 exit
6bf9431b 1623fi
5d64ca4e 1624
81ecdfbb
RW
1625## ------------------------ ##
1626## Autoconf initialization. ##
1627## ------------------------ ##
5d64ca4e 1628
81ecdfbb
RW
1629# ac_fn_c_try_compile LINENO
1630# --------------------------
1631# Try to compile conftest.$ac_ext, and return whether this succeeded.
1632ac_fn_c_try_compile ()
6bf9431b 1633{
81ecdfbb
RW
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext
1636 if { { ac_try="$ac_compile"
1637case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640esac
1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642$as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_compile") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest.$ac_objext; then :
1655 ac_retval=0
1656else
1657 $as_echo "$as_me: failed program was:" >&5
1658sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 1659
81ecdfbb
RW
1660 ac_retval=1
1661fi
1662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663 return $ac_retval
6bf9431b 1664
81ecdfbb 1665} # ac_fn_c_try_compile
6bf9431b 1666
81ecdfbb
RW
1667# ac_fn_c_try_link LINENO
1668# -----------------------
1669# Try to link conftest.$ac_ext, and return whether this succeeded.
1670ac_fn_c_try_link ()
1671{
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext conftest$ac_exeext
1674 if { { ac_try="$ac_link"
1675case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678esac
1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680$as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>conftest.err
1682 ac_status=$?
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1687 fi
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest$ac_exeext && {
1693 test "$cross_compiling" = yes ||
1694 $as_test_x conftest$ac_exeext
1695 }; then :
1696 ac_retval=0
1697else
1698 $as_echo "$as_me: failed program was:" >&5
1699sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 1700
81ecdfbb
RW
1701 ac_retval=1
1702fi
1703 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1704 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1705 # interfere with the next link command; also delete a directory that is
1706 # left behind by Apple's compiler. We do this before executing the actions.
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709 return $ac_retval
6bf9431b 1710
81ecdfbb
RW
1711} # ac_fn_c_try_link
1712
1713# ac_fn_c_try_cpp LINENO
1714# ----------------------
1715# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1716ac_fn_c_try_cpp ()
1717{
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_cpp conftest.$ac_ext"
1720case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1732 fi
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } >/dev/null && {
1735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 }; then :
1738 ac_retval=0
1739else
1740 $as_echo "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1
1744fi
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746 return $ac_retval
1747
1748} # ac_fn_c_try_cpp
1749
1750# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1751# -------------------------------------------------------
1752# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1753# the include files in INCLUDES and setting the cache variable VAR
1754# accordingly.
1755ac_fn_c_check_header_mongrel ()
1756{
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760$as_echo_n "checking for $2... " >&6; }
1761if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1762 $as_echo_n "(cached) " >&6
1763fi
1764eval ac_res=\$$3
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766$as_echo "$ac_res" >&6; }
1767else
1768 # Is the header compilable?
1769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1770$as_echo_n "checking $2 usability... " >&6; }
1771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772/* end confdefs.h. */
1773$4
1774#include <$2>
1775_ACEOF
1776if ac_fn_c_try_compile "$LINENO"; then :
1777 ac_header_compiler=yes
1778else
1779 ac_header_compiler=no
1780fi
1781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1783$as_echo "$ac_header_compiler" >&6; }
1784
1785# Is the header present?
1786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1787$as_echo_n "checking $2 presence... " >&6; }
1788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789/* end confdefs.h. */
1790#include <$2>
1791_ACEOF
1792if ac_fn_c_try_cpp "$LINENO"; then :
1793 ac_header_preproc=yes
1794else
1795 ac_header_preproc=no
1796fi
1797rm -f conftest.err conftest.$ac_ext
1798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1799$as_echo "$ac_header_preproc" >&6; }
1800
1801# So? What about this header?
1802case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1803 yes:no: )
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1805$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1807$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1808 ;;
1809 no:yes:* )
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1811$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1813$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1815$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1817$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1820 ;;
1821esac
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823$as_echo_n "checking for $2... " >&6; }
1824if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1825 $as_echo_n "(cached) " >&6
1826else
1827 eval "$3=\$ac_header_compiler"
1828fi
1829eval ac_res=\$$3
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831$as_echo "$ac_res" >&6; }
1832fi
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834
1835} # ac_fn_c_check_header_mongrel
1836
1837# ac_fn_c_try_run LINENO
1838# ----------------------
1839# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1840# that executables *can* be run.
1841ac_fn_c_try_run ()
1842{
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 if { { ac_try="$ac_link"
1845case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848esac
1849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850$as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_link") 2>&5
1852 ac_status=$?
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1855 { { case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858esac
1859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860$as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_try") 2>&5
1862 ac_status=$?
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; }; }; then :
1865 ac_retval=0
1866else
1867 $as_echo "$as_me: program exited with status $ac_status" >&5
1868 $as_echo "$as_me: failed program was:" >&5
1869sed 's/^/| /' conftest.$ac_ext >&5
1870
1871 ac_retval=$ac_status
1872fi
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875 return $ac_retval
1876
1877} # ac_fn_c_try_run
1878
1879# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1880# -------------------------------------------------------
1881# Tests whether HEADER exists and can be compiled using the include files in
1882# INCLUDES, setting the cache variable VAR accordingly.
1883ac_fn_c_check_header_compile ()
1884{
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887$as_echo_n "checking for $2... " >&6; }
1888if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1889 $as_echo_n "(cached) " >&6
1890else
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892/* end confdefs.h. */
1893$4
1894#include <$2>
1895_ACEOF
1896if ac_fn_c_try_compile "$LINENO"; then :
1897 eval "$3=yes"
1898else
1899 eval "$3=no"
1900fi
1901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902fi
1903eval ac_res=\$$3
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905$as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1907
1908} # ac_fn_c_check_header_compile
1909
1910# ac_fn_c_check_func LINENO FUNC VAR
1911# ----------------------------------
1912# Tests whether FUNC exists, setting the cache variable VAR accordingly
1913ac_fn_c_check_func ()
1914{
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917$as_echo_n "checking for $2... " >&6; }
1918if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1919 $as_echo_n "(cached) " >&6
1920else
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922/* end confdefs.h. */
1923/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1925#define $2 innocuous_$2
1926
1927/* System header to define __stub macros and hopefully few prototypes,
1928 which can conflict with char $2 (); below.
1929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1930 <limits.h> exists even on freestanding compilers. */
1931
1932#ifdef __STDC__
1933# include <limits.h>
1934#else
1935# include <assert.h>
1936#endif
1937
1938#undef $2
1939
1940/* Override any GCC internal prototype to avoid an error.
1941 Use char because int might match the return type of a GCC
1942 builtin and then its argument prototype would still apply. */
1943#ifdef __cplusplus
1944extern "C"
1945#endif
1946char $2 ();
1947/* The GNU C library defines this for functions which it implements
1948 to always fail with ENOSYS. Some functions are actually named
1949 something starting with __ and the normal name is an alias. */
1950#if defined __stub_$2 || defined __stub___$2
1951choke me
1952#endif
1953
1954int
1955main ()
1956{
1957return $2 ();
1958 ;
1959 return 0;
1960}
1961_ACEOF
1962if ac_fn_c_try_link "$LINENO"; then :
1963 eval "$3=yes"
1964else
1965 eval "$3=no"
1966fi
1967rm -f core conftest.err conftest.$ac_objext \
1968 conftest$ac_exeext conftest.$ac_ext
1969fi
1970eval ac_res=\$$3
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972$as_echo "$ac_res" >&6; }
1973 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974
1975} # ac_fn_c_check_func
1976cat >config.log <<_ACEOF
1977This file contains any messages produced by compilers while
1978running configure, to aid debugging if configure makes a mistake.
1979
1980It was created by $as_me, which was
1981generated by GNU Autoconf 2.64. Invocation command line was
1982
1983 $ $0 $@
1984
1985_ACEOF
1986exec 5>>config.log
1987{
1988cat <<_ASUNAME
1989## --------- ##
1990## Platform. ##
1991## --------- ##
1992
1993hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1994uname -m = `(uname -m) 2>/dev/null || echo unknown`
1995uname -r = `(uname -r) 2>/dev/null || echo unknown`
1996uname -s = `(uname -s) 2>/dev/null || echo unknown`
1997uname -v = `(uname -v) 2>/dev/null || echo unknown`
1998
1999/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2000/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2001
2002/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2003/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2004/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2005/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2006/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2007/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2008/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2009
2010_ASUNAME
2011
2012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6bf9431b
BE
2013for as_dir in $PATH
2014do
2015 IFS=$as_save_IFS
2016 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2017 $as_echo "PATH: $as_dir"
2018 done
2019IFS=$as_save_IFS
5d64ca4e 2020
6bf9431b 2021} >&5
093872ec 2022
6bf9431b 2023cat >&5 <<_ACEOF
252b5132 2024
6bf9431b
BE
2025
2026## ----------- ##
2027## Core tests. ##
2028## ----------- ##
2029
2030_ACEOF
2031
2032
2033# Keep a trace of the command line.
2034# Strip out --no-create and --no-recursion so they do not pile up.
2035# Strip out --silent because we don't want to record it for future runs.
2036# Also quote any args containing shell meta-characters.
2037# Make two passes to allow for proper duplicate-argument suppression.
2038ac_configure_args=
2039ac_configure_args0=
2040ac_configure_args1=
6bf9431b
BE
2041ac_must_keep_next=false
2042for ac_pass in 1 2
2043do
2044 for ac_arg
2045 do
2046 case $ac_arg in
2047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2049 | -silent | --silent | --silen | --sile | --sil)
2050 continue ;;
81ecdfbb
RW
2051 *\'*)
2052 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6bf9431b
BE
2053 esac
2054 case $ac_pass in
81ecdfbb 2055 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
6bf9431b 2056 2)
81ecdfbb 2057 as_fn_append ac_configure_args1 " '$ac_arg'"
6bf9431b
BE
2058 if test $ac_must_keep_next = true; then
2059 ac_must_keep_next=false # Got value, back to normal.
2060 else
2061 case $ac_arg in
2062 *=* | --config-cache | -C | -disable-* | --disable-* \
2063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2065 | -with-* | --with-* | -without-* | --without-* | --x)
2066 case "$ac_configure_args0 " in
2067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2068 esac
2069 ;;
2070 -* ) ac_must_keep_next=true ;;
2071 esac
2072 fi
81ecdfbb 2073 as_fn_append ac_configure_args " '$ac_arg'"
6bf9431b
BE
2074 ;;
2075 esac
2076 done
2077done
81ecdfbb
RW
2078{ ac_configure_args0=; unset ac_configure_args0;}
2079{ ac_configure_args1=; unset ac_configure_args1;}
6bf9431b
BE
2080
2081# When interrupted or exit'd, cleanup temporary files, and complete
2082# config.log. We remove comments because anyway the quotes in there
2083# would cause problems or look ugly.
81ecdfbb
RW
2084# WARNING: Use '\'' to represent an apostrophe within the trap.
2085# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
6bf9431b
BE
2086trap 'exit_status=$?
2087 # Save into config.log some information that might help in debugging.
2088 {
2089 echo
2090
2091 cat <<\_ASBOX
2092## ---------------- ##
2093## Cache variables. ##
2094## ---------------- ##
2095_ASBOX
2096 echo
2097 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2098(
2099 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2100 eval ac_val=\$$ac_var
2101 case $ac_val in #(
2102 *${as_nl}*)
2103 case $ac_var in #(
2104 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2105$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2106 esac
2107 case $ac_var in #(
2108 _ | IFS | as_nl) ;; #(
2109 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2110 *) { eval $ac_var=; unset $ac_var;} ;;
2111 esac ;;
2112 esac
2113 done
6bf9431b 2114 (set) 2>&1 |
81ecdfbb
RW
2115 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2116 *${as_nl}ac_space=\ *)
6bf9431b 2117 sed -n \
81ecdfbb
RW
2118 "s/'\''/'\''\\\\'\'''\''/g;
2119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2120 ;; #(
6bf9431b 2121 *)
81ecdfbb 2122 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6bf9431b 2123 ;;
81ecdfbb
RW
2124 esac |
2125 sort
2126)
6bf9431b
BE
2127 echo
2128
2129 cat <<\_ASBOX
2130## ----------------- ##
2131## Output variables. ##
2132## ----------------- ##
2133_ASBOX
2134 echo
2135 for ac_var in $ac_subst_vars
2136 do
81ecdfbb
RW
2137 eval ac_val=\$$ac_var
2138 case $ac_val in
2139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140 esac
2141 $as_echo "$ac_var='\''$ac_val'\''"
6bf9431b
BE
2142 done | sort
2143 echo
2144
2145 if test -n "$ac_subst_files"; then
2146 cat <<\_ASBOX
81ecdfbb
RW
2147## ------------------- ##
2148## File substitutions. ##
2149## ------------------- ##
6bf9431b
BE
2150_ASBOX
2151 echo
2152 for ac_var in $ac_subst_files
2153 do
81ecdfbb
RW
2154 eval ac_val=\$$ac_var
2155 case $ac_val in
2156 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157 esac
2158 $as_echo "$ac_var='\''$ac_val'\''"
6bf9431b
BE
2159 done | sort
2160 echo
2161 fi
2162
2163 if test -s confdefs.h; then
2164 cat <<\_ASBOX
2165## ----------- ##
2166## confdefs.h. ##
2167## ----------- ##
2168_ASBOX
2169 echo
81ecdfbb 2170 cat confdefs.h
6bf9431b
BE
2171 echo
2172 fi
2173 test "$ac_signal" != 0 &&
81ecdfbb
RW
2174 $as_echo "$as_me: caught signal $ac_signal"
2175 $as_echo "$as_me: exit $exit_status"
6bf9431b 2176 } >&5
81ecdfbb
RW
2177 rm -f core *.core core.conftest.* &&
2178 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
6bf9431b 2179 exit $exit_status
81ecdfbb 2180' 0
6bf9431b 2181for ac_signal in 1 2 13 15; do
81ecdfbb 2182 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
6bf9431b
BE
2183done
2184ac_signal=0
2185
2186# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2187rm -f -r conftest* confdefs.h
2188
2189$as_echo "/* confdefs.h */" > confdefs.h
6bf9431b
BE
2190
2191# Predefined preprocessor variables.
2192
2193cat >>confdefs.h <<_ACEOF
2194#define PACKAGE_NAME "$PACKAGE_NAME"
2195_ACEOF
2196
6bf9431b
BE
2197cat >>confdefs.h <<_ACEOF
2198#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2199_ACEOF
2200
6bf9431b
BE
2201cat >>confdefs.h <<_ACEOF
2202#define PACKAGE_VERSION "$PACKAGE_VERSION"
2203_ACEOF
2204
6bf9431b
BE
2205cat >>confdefs.h <<_ACEOF
2206#define PACKAGE_STRING "$PACKAGE_STRING"
2207_ACEOF
2208
6bf9431b
BE
2209cat >>confdefs.h <<_ACEOF
2210#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2211_ACEOF
2212
81ecdfbb
RW
2213cat >>confdefs.h <<_ACEOF
2214#define PACKAGE_URL "$PACKAGE_URL"
2215_ACEOF
2216
6bf9431b
BE
2217
2218# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2219# Prefer an explicitly selected file to automatically selected ones.
2220ac_site_file1=NONE
2221ac_site_file2=NONE
2222if test -n "$CONFIG_SITE"; then
2223 ac_site_file1=$CONFIG_SITE
2224elif test "x$prefix" != xNONE; then
2225 ac_site_file1=$prefix/share/config.site
2226 ac_site_file2=$prefix/etc/config.site
2227else
2228 ac_site_file1=$ac_default_prefix/share/config.site
2229 ac_site_file2=$ac_default_prefix/etc/config.site
2230fi
2231for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2232do
2233 test "x$ac_site_file" = xNONE && continue
6bf9431b 2234 if test -r "$ac_site_file"; then
81ecdfbb
RW
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2236$as_echo "$as_me: loading site script $ac_site_file" >&6;}
6bf9431b
BE
2237 sed 's/^/| /' "$ac_site_file" >&5
2238 . "$ac_site_file"
2239 fi
2240done
2241
2242if test -r "$cache_file"; then
2243 # Some versions of bash will fail to source /dev/null (special
2244 # files actually), so we avoid doing that.
2245 if test -f "$cache_file"; then
81ecdfbb
RW
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2247$as_echo "$as_me: loading cache $cache_file" >&6;}
6bf9431b 2248 case $cache_file in
81ecdfbb
RW
2249 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2250 *) . "./$cache_file";;
6bf9431b
BE
2251 esac
2252 fi
2253else
81ecdfbb
RW
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2255$as_echo "$as_me: creating cache $cache_file" >&6;}
6bf9431b
BE
2256 >$cache_file
2257fi
2258
2259# Check that the precious variables saved in the cache have kept the same
2260# value.
2261ac_cache_corrupted=false
81ecdfbb 2262for ac_var in $ac_precious_vars; do
6bf9431b
BE
2263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2264 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2265 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2266 eval ac_new_val=\$ac_env_${ac_var}_value
6bf9431b
BE
2267 case $ac_old_set,$ac_new_set in
2268 set,)
81ecdfbb
RW
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2270$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
6bf9431b
BE
2271 ac_cache_corrupted=: ;;
2272 ,set)
81ecdfbb
RW
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2274$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
6bf9431b
BE
2275 ac_cache_corrupted=: ;;
2276 ,);;
2277 *)
2278 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2279 # differences in whitespace do not lead to failure.
2280 ac_old_val_w=`echo x $ac_old_val`
2281 ac_new_val_w=`echo x $ac_new_val`
2282 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2284$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2285 ac_cache_corrupted=:
2286 else
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2288$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2289 eval $ac_var=\$ac_old_val
2290 fi
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2292$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2294$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
6bf9431b
BE
2295 fi;;
2296 esac
2297 # Pass precious variables to config.status.
2298 if test "$ac_new_set" = set; then
2299 case $ac_new_val in
81ecdfbb 2300 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
6bf9431b
BE
2301 *) ac_arg=$ac_var=$ac_new_val ;;
2302 esac
2303 case " $ac_configure_args " in
2304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2305 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
6bf9431b
BE
2306 esac
2307 fi
2308done
2309if $ac_cache_corrupted; then
81ecdfbb
RW
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2313$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2314 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
6bf9431b 2315fi
81ecdfbb
RW
2316## -------------------- ##
2317## Main body of script. ##
2318## -------------------- ##
6bf9431b 2319
0ab6f085
AM
2320ac_ext=c
2321ac_cpp='$CPP $CPPFLAGS'
2322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2324ac_compiler_gnu=$ac_cv_c_compiler_gnu
2325
6bf9431b
BE
2326
2327
6bf9431b
BE
2328
2329
2330
2331
2332ac_aux_dir=
81ecdfbb
RW
2333for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2334 for ac_t in install-sh install.sh shtool; do
2335 if test -f "$ac_dir/$ac_t"; then
2336 ac_aux_dir=$ac_dir
2337 ac_install_sh="$ac_aux_dir/$ac_t -c"
2338 break 2
2339 fi
2340 done
6bf9431b
BE
2341done
2342if test -z "$ac_aux_dir"; then
81ecdfbb 2343 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6bf9431b 2344fi
81ecdfbb
RW
2345
2346# These three variables are undocumented and unsupported,
2347# and are intended to be withdrawn in a future Autoconf release.
2348# They can cause serious problems if a builder's source tree is in a directory
2349# whose full name contains unusual characters.
2350ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2351ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2352ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2353
6bf9431b
BE
2354
2355# Make sure we can run config.sub.
81ecdfbb
RW
2356$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2357 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2358
2359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2360$as_echo_n "checking build system type... " >&6; }
2361if test "${ac_cv_build+set}" = set; then :
2362 $as_echo_n "(cached) " >&6
2363else
2364 ac_build_alias=$build_alias
2365test "x$ac_build_alias" = x &&
2366 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2367test "x$ac_build_alias" = x &&
2368 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2369ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2370 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2371
2372fi
2373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2374$as_echo "$ac_cv_build" >&6; }
2375case $ac_cv_build in
2376*-*-*) ;;
2377*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2378esac
6bf9431b 2379build=$ac_cv_build
81ecdfbb
RW
2380ac_save_IFS=$IFS; IFS='-'
2381set x $ac_cv_build
2382shift
2383build_cpu=$1
2384build_vendor=$2
2385shift; shift
2386# Remember, the first character of IFS is used to create $*,
2387# except with old shells:
2388build_os=$*
2389IFS=$ac_save_IFS
2390case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
0ab6f085
AM
2391
2392
81ecdfbb
RW
2393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2394$as_echo_n "checking host system type... " >&6; }
2395if test "${ac_cv_host+set}" = set; then :
2396 $as_echo_n "(cached) " >&6
6bf9431b 2397else
81ecdfbb
RW
2398 if test "x$host_alias" = x; then
2399 ac_cv_host=$ac_cv_build
2400else
2401 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2402 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2403fi
6bf9431b
BE
2404
2405fi
81ecdfbb
RW
2406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2407$as_echo "$ac_cv_host" >&6; }
2408case $ac_cv_host in
2409*-*-*) ;;
2410*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2411esac
6bf9431b 2412host=$ac_cv_host
81ecdfbb
RW
2413ac_save_IFS=$IFS; IFS='-'
2414set x $ac_cv_host
2415shift
2416host_cpu=$1
2417host_vendor=$2
2418shift; shift
2419# Remember, the first character of IFS is used to create $*,
2420# except with old shells:
2421host_os=$*
2422IFS=$ac_save_IFS
2423case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
0ab6f085
AM
2424
2425
81ecdfbb
RW
2426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2427$as_echo_n "checking target system type... " >&6; }
2428if test "${ac_cv_target+set}" = set; then :
2429 $as_echo_n "(cached) " >&6
2430else
2431 if test "x$target_alias" = x; then
2432 ac_cv_target=$ac_cv_host
6bf9431b 2433else
81ecdfbb
RW
2434 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2435 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2436fi
6bf9431b
BE
2437
2438fi
81ecdfbb
RW
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2440$as_echo "$ac_cv_target" >&6; }
2441case $ac_cv_target in
2442*-*-*) ;;
2443*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2444esac
6bf9431b 2445target=$ac_cv_target
81ecdfbb
RW
2446ac_save_IFS=$IFS; IFS='-'
2447set x $ac_cv_target
2448shift
2449target_cpu=$1
2450target_vendor=$2
2451shift; shift
2452# Remember, the first character of IFS is used to create $*,
2453# except with old shells:
2454target_os=$*
2455IFS=$ac_save_IFS
2456case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6bf9431b
BE
2457
2458
2459# The aliases save the names the user supplied, while $host etc.
2460# will get canonicalized.
2461test -n "$target_alias" &&
2462 test "$program_prefix$program_suffix$program_transform_name" = \
2463 NONENONEs,x,x, &&
2464 program_prefix=${target_alias}-
2465ac_ext=c
2466ac_cpp='$CPP $CPPFLAGS'
2467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470if test -n "$ac_tool_prefix"; then
2471 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2472set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2474$as_echo_n "checking for $ac_word... " >&6; }
2475if test "${ac_cv_prog_CC+set}" = set; then :
2476 $as_echo_n "(cached) " >&6
6bf9431b
BE
2477else
2478 if test -n "$CC"; then
2479 ac_cv_prog_CC="$CC" # Let the user override the test.
2480else
2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482for as_dir in $PATH
2483do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2488 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2490 break 2
2491 fi
2492done
81ecdfbb
RW
2493 done
2494IFS=$as_save_IFS
6bf9431b
BE
2495
2496fi
2497fi
2498CC=$ac_cv_prog_CC
2499if test -n "$CC"; then
81ecdfbb
RW
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2501$as_echo "$CC" >&6; }
6bf9431b 2502else
81ecdfbb
RW
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2504$as_echo "no" >&6; }
6bf9431b
BE
2505fi
2506
81ecdfbb 2507
6bf9431b
BE
2508fi
2509if test -z "$ac_cv_prog_CC"; then
2510 ac_ct_CC=$CC
2511 # Extract the first word of "gcc", so it can be a program name with args.
2512set dummy gcc; ac_word=$2
81ecdfbb
RW
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2514$as_echo_n "checking for $ac_word... " >&6; }
2515if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2516 $as_echo_n "(cached) " >&6
6bf9431b
BE
2517else
2518 if test -n "$ac_ct_CC"; then
2519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2520else
2521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2528 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2530 break 2
2531 fi
2532done
81ecdfbb
RW
2533 done
2534IFS=$as_save_IFS
6bf9431b
BE
2535
2536fi
2537fi
2538ac_ct_CC=$ac_cv_prog_ac_ct_CC
2539if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2541$as_echo "$ac_ct_CC" >&6; }
6bf9431b 2542else
81ecdfbb
RW
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544$as_echo "no" >&6; }
6bf9431b
BE
2545fi
2546
81ecdfbb
RW
2547 if test "x$ac_ct_CC" = x; then
2548 CC=""
2549 else
2550 case $cross_compiling:$ac_tool_warned in
2551yes:)
2552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2554ac_tool_warned=yes ;;
2555esac
2556 CC=$ac_ct_CC
2557 fi
6bf9431b
BE
2558else
2559 CC="$ac_cv_prog_CC"
2560fi
2561
2562if test -z "$CC"; then
81ecdfbb
RW
2563 if test -n "$ac_tool_prefix"; then
2564 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6bf9431b 2565set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567$as_echo_n "checking for $ac_word... " >&6; }
2568if test "${ac_cv_prog_CC+set}" = set; then :
2569 $as_echo_n "(cached) " >&6
6bf9431b
BE
2570else
2571 if test -n "$CC"; then
2572 ac_cv_prog_CC="$CC" # Let the user override the test.
2573else
2574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575for as_dir in $PATH
2576do
2577 IFS=$as_save_IFS
2578 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2581 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2583 break 2
2584 fi
2585done
81ecdfbb
RW
2586 done
2587IFS=$as_save_IFS
6bf9431b
BE
2588
2589fi
2590fi
2591CC=$ac_cv_prog_CC
2592if test -n "$CC"; then
81ecdfbb
RW
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2594$as_echo "$CC" >&6; }
0ab6f085 2595else
81ecdfbb
RW
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597$as_echo "no" >&6; }
0ab6f085
AM
2598fi
2599
0ab6f085 2600
81ecdfbb 2601 fi
6bf9431b
BE
2602fi
2603if test -z "$CC"; then
2604 # Extract the first word of "cc", so it can be a program name with args.
2605set dummy cc; ac_word=$2
81ecdfbb
RW
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607$as_echo_n "checking for $ac_word... " >&6; }
2608if test "${ac_cv_prog_CC+set}" = set; then :
2609 $as_echo_n "(cached) " >&6
6bf9431b
BE
2610else
2611 if test -n "$CC"; then
2612 ac_cv_prog_CC="$CC" # Let the user override the test.
2613else
2614 ac_prog_rejected=no
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b
BE
2622 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2623 ac_prog_rejected=yes
2624 continue
2625 fi
2626 ac_cv_prog_CC="cc"
81ecdfbb 2627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2628 break 2
2629 fi
2630done
81ecdfbb
RW
2631 done
2632IFS=$as_save_IFS
6bf9431b
BE
2633
2634if test $ac_prog_rejected = yes; then
2635 # We found a bogon in the path, so make sure we never use it.
2636 set dummy $ac_cv_prog_CC
2637 shift
2638 if test $# != 0; then
2639 # We chose a different compiler from the bogus one.
2640 # However, it has the same basename, so the bogon will be chosen
2641 # first if we set CC to just the basename; use the full file name.
2642 shift
2643 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2644 fi
2645fi
2646fi
2647fi
2648CC=$ac_cv_prog_CC
2649if test -n "$CC"; then
81ecdfbb
RW
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2651$as_echo "$CC" >&6; }
6bf9431b 2652else
81ecdfbb
RW
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654$as_echo "no" >&6; }
6bf9431b
BE
2655fi
2656
81ecdfbb 2657
6bf9431b
BE
2658fi
2659if test -z "$CC"; then
2660 if test -n "$ac_tool_prefix"; then
81ecdfbb 2661 for ac_prog in cl.exe
6bf9431b
BE
2662 do
2663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2664set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666$as_echo_n "checking for $ac_word... " >&6; }
2667if test "${ac_cv_prog_CC+set}" = set; then :
2668 $as_echo_n "(cached) " >&6
6bf9431b
BE
2669else
2670 if test -n "$CC"; then
2671 ac_cv_prog_CC="$CC" # Let the user override the test.
2672else
2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2680 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2682 break 2
2683 fi
2684done
81ecdfbb
RW
2685 done
2686IFS=$as_save_IFS
6bf9431b
BE
2687
2688fi
2689fi
2690CC=$ac_cv_prog_CC
2691if test -n "$CC"; then
81ecdfbb
RW
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2693$as_echo "$CC" >&6; }
6bf9431b 2694else
81ecdfbb
RW
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696$as_echo "no" >&6; }
6bf9431b
BE
2697fi
2698
81ecdfbb 2699
6bf9431b
BE
2700 test -n "$CC" && break
2701 done
2702fi
2703if test -z "$CC"; then
2704 ac_ct_CC=$CC
81ecdfbb 2705 for ac_prog in cl.exe
6bf9431b
BE
2706do
2707 # Extract the first word of "$ac_prog", so it can be a program name with args.
2708set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710$as_echo_n "checking for $ac_word... " >&6; }
2711if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2712 $as_echo_n "(cached) " >&6
6bf9431b
BE
2713else
2714 if test -n "$ac_ct_CC"; then
2715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2716else
2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH
2719do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2724 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2726 break 2
2727 fi
2728done
81ecdfbb
RW
2729 done
2730IFS=$as_save_IFS
6bf9431b
BE
2731
2732fi
2733fi
2734ac_ct_CC=$ac_cv_prog_ac_ct_CC
2735if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2737$as_echo "$ac_ct_CC" >&6; }
6bf9431b 2738else
81ecdfbb
RW
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740$as_echo "no" >&6; }
6bf9431b
BE
2741fi
2742
81ecdfbb 2743
6bf9431b
BE
2744 test -n "$ac_ct_CC" && break
2745done
2746
81ecdfbb
RW
2747 if test "x$ac_ct_CC" = x; then
2748 CC=""
2749 else
2750 case $cross_compiling:$ac_tool_warned in
2751yes:)
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2754ac_tool_warned=yes ;;
2755esac
2756 CC=$ac_ct_CC
2757 fi
6bf9431b
BE
2758fi
2759
2760fi
2761
2762
81ecdfbb
RW
2763test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2765as_fn_error "no acceptable C compiler found in \$PATH
2766See \`config.log' for more details." "$LINENO" 5; }
6bf9431b
BE
2767
2768# Provide some information about the compiler.
81ecdfbb
RW
2769$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2770set X $ac_compile
2771ac_compiler=$2
2772for ac_option in --version -v -V -qversion; do
2773 { { ac_try="$ac_compiler $ac_option >&5"
2774case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2777esac
2778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2779$as_echo "$ac_try_echo"; } >&5
2780 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6bf9431b 2781 ac_status=$?
81ecdfbb
RW
2782 if test -s conftest.err; then
2783 sed '10a\
2784... rest of stderr output deleted ...
2785 10q' conftest.err >conftest.er1
2786 cat conftest.er1 >&5
2787 rm -f conftest.er1 conftest.err
2788 fi
2789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2790 test $ac_status = 0; }
2791done
6bf9431b 2792
81ecdfbb 2793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
2794/* end confdefs.h. */
2795
2796int
2797main ()
2798{
2799
2800 ;
2801 return 0;
2802}
2803_ACEOF
2804ac_clean_files_save=$ac_clean_files
81ecdfbb 2805ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
6bf9431b
BE
2806# Try to create an executable without -o first, disregard a.out.
2807# It will help us diagnose broken compilers, and finding out an intuition
2808# of exeext.
81ecdfbb
RW
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2810$as_echo_n "checking for C compiler default output file name... " >&6; }
2811ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2812
2813# The possible output files:
2814ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2815
2816ac_rmfiles=
2817for ac_file in $ac_files
2818do
2819 case $ac_file in
2820 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2821 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2822 esac
2823done
2824rm -f $ac_rmfiles
2825
2826if { { ac_try="$ac_link_default"
2827case "(($ac_try" in
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2830esac
2831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2832$as_echo "$ac_try_echo"; } >&5
2833 (eval "$ac_link_default") 2>&5
2834 ac_status=$?
2835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2836 test $ac_status = 0; }; then :
2837 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2838# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2839# in a Makefile. We should not override ac_cv_exeext if it was cached,
2840# so that the user can short-circuit this test for compilers unknown to
2841# Autoconf.
2842for ac_file in $ac_files ''
6bf9431b
BE
2843do
2844 test -f "$ac_file" || continue
2845 case $ac_file in
81ecdfbb 2846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6bf9431b
BE
2847 ;;
2848 [ab].out )
2849 # We found the default executable, but exeext='' is most
2850 # certainly right.
2851 break;;
2852 *.* )
81ecdfbb
RW
2853 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2854 then :; else
2855 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2856 fi
2857 # We set ac_cv_exeext here because the later test for it is not
2858 # safe: cross compilers may not add the suffix if given an `-o'
2859 # argument, so we may need to know it at that point already.
2860 # Even if this section looks crufty: it has the advantage of
2861 # actually working.
6bf9431b
BE
2862 break;;
2863 * )
2864 break;;
2865 esac
2866done
81ecdfbb
RW
2867test "$ac_cv_exeext" = no && ac_cv_exeext=
2868
6bf9431b 2869else
81ecdfbb
RW
2870 ac_file=''
2871fi
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2873$as_echo "$ac_file" >&6; }
2874if test -z "$ac_file"; then :
2875 $as_echo "$as_me: failed program was:" >&5
6bf9431b
BE
2876sed 's/^/| /' conftest.$ac_ext >&5
2877
81ecdfbb
RW
2878{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2879$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2880{ as_fn_set_status 77
2881as_fn_error "C compiler cannot create executables
2882See \`config.log' for more details." "$LINENO" 5; }; }
6bf9431b 2883fi
6bf9431b 2884ac_exeext=$ac_cv_exeext
6bf9431b 2885
81ecdfbb 2886# Check that the compiler produces executables we can run. If not, either
6bf9431b 2887# the compiler is broken, or we cross compile.
81ecdfbb
RW
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2889$as_echo_n "checking whether the C compiler works... " >&6; }
6bf9431b
BE
2890# If not cross compiling, check that we can run a simple program.
2891if test "$cross_compiling" != yes; then
2892 if { ac_try='./$ac_file'
81ecdfbb
RW
2893 { { case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896esac
2897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2898$as_echo "$ac_try_echo"; } >&5
2899 (eval "$ac_try") 2>&5
6bf9431b 2900 ac_status=$?
81ecdfbb
RW
2901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2902 test $ac_status = 0; }; }; then
6bf9431b
BE
2903 cross_compiling=no
2904 else
2905 if test "$cross_compiling" = maybe; then
2906 cross_compiling=yes
2907 else
81ecdfbb
RW
2908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2910as_fn_error "cannot run C compiled programs.
6bf9431b 2911If you meant to cross compile, use \`--host'.
81ecdfbb 2912See \`config.log' for more details." "$LINENO" 5; }
6bf9431b
BE
2913 fi
2914 fi
2915fi
81ecdfbb
RW
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2917$as_echo "yes" >&6; }
6bf9431b 2918
81ecdfbb 2919rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
6bf9431b 2920ac_clean_files=$ac_clean_files_save
81ecdfbb 2921# Check that the compiler produces executables we can run. If not, either
6bf9431b 2922# the compiler is broken, or we cross compile.
81ecdfbb
RW
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2924$as_echo_n "checking whether we are cross compiling... " >&6; }
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2926$as_echo "$cross_compiling" >&6; }
2927
2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2929$as_echo_n "checking for suffix of executables... " >&6; }
2930if { { ac_try="$ac_link"
2931case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934esac
2935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2936$as_echo "$ac_try_echo"; } >&5
2937 (eval "$ac_link") 2>&5
6bf9431b 2938 ac_status=$?
81ecdfbb
RW
2939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2940 test $ac_status = 0; }; then :
6bf9431b
BE
2941 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2942# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2943# work properly (i.e., refer to `conftest.exe'), while it won't with
2944# `rm'.
2945for ac_file in conftest.exe conftest conftest.*; do
2946 test -f "$ac_file" || continue
2947 case $ac_file in
81ecdfbb 2948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6bf9431b 2949 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6bf9431b
BE
2950 break;;
2951 * ) break;;
2952 esac
2953done
2954else
81ecdfbb
RW
2955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2956$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2957as_fn_error "cannot compute suffix of executables: cannot compile and link
2958See \`config.log' for more details." "$LINENO" 5; }
6bf9431b 2959fi
6bf9431b 2960rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2962$as_echo "$ac_cv_exeext" >&6; }
6bf9431b
BE
2963
2964rm -f conftest.$ac_ext
2965EXEEXT=$ac_cv_exeext
2966ac_exeext=$EXEEXT
81ecdfbb
RW
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2968$as_echo_n "checking for suffix of object files... " >&6; }
2969if test "${ac_cv_objext+set}" = set; then :
2970 $as_echo_n "(cached) " >&6
6bf9431b 2971else
81ecdfbb 2972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
2973/* end confdefs.h. */
2974
2975int
2976main ()
2977{
2978
2979 ;
2980 return 0;
2981}
2982_ACEOF
2983rm -f conftest.o conftest.obj
81ecdfbb
RW
2984if { { ac_try="$ac_compile"
2985case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988esac
2989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990$as_echo "$ac_try_echo"; } >&5
2991 (eval "$ac_compile") 2>&5
2992 ac_status=$?
2993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994 test $ac_status = 0; }; then :
2995 for ac_file in conftest.o conftest.obj conftest.*; do
2996 test -f "$ac_file" || continue;
6bf9431b 2997 case $ac_file in
81ecdfbb 2998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6bf9431b
BE
2999 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3000 break;;
3001 esac
3002done
3003else
81ecdfbb 3004 $as_echo "$as_me: failed program was:" >&5
6bf9431b
BE
3005sed 's/^/| /' conftest.$ac_ext >&5
3006
81ecdfbb
RW
3007{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3009as_fn_error "cannot compute suffix of object files: cannot compile
3010See \`config.log' for more details." "$LINENO" 5; }
6bf9431b 3011fi
6bf9431b
BE
3012rm -f conftest.$ac_cv_objext conftest.$ac_ext
3013fi
81ecdfbb
RW
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3015$as_echo "$ac_cv_objext" >&6; }
6bf9431b
BE
3016OBJEXT=$ac_cv_objext
3017ac_objext=$OBJEXT
81ecdfbb
RW
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3019$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3020if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3021 $as_echo_n "(cached) " >&6
6bf9431b 3022else
81ecdfbb 3023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
3024/* end confdefs.h. */
3025
3026int
3027main ()
3028{
3029#ifndef __GNUC__
3030 choke me
3031#endif
3032
3033 ;
3034 return 0;
3035}
3036_ACEOF
81ecdfbb 3037if ac_fn_c_try_compile "$LINENO"; then :
6bf9431b
BE
3038 ac_compiler_gnu=yes
3039else
81ecdfbb 3040 ac_compiler_gnu=no
6bf9431b 3041fi
81ecdfbb 3042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b
BE
3043ac_cv_c_compiler_gnu=$ac_compiler_gnu
3044
3045fi
81ecdfbb
RW
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3047$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3048if test $ac_compiler_gnu = yes; then
3049 GCC=yes
3050else
3051 GCC=
3052fi
6bf9431b
BE
3053ac_test_CFLAGS=${CFLAGS+set}
3054ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3056$as_echo_n "checking whether $CC accepts -g... " >&6; }
3057if test "${ac_cv_prog_cc_g+set}" = set; then :
3058 $as_echo_n "(cached) " >&6
3059else
3060 ac_save_c_werror_flag=$ac_c_werror_flag
3061 ac_c_werror_flag=yes
3062 ac_cv_prog_cc_g=no
3063 CFLAGS="-g"
3064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
3065/* end confdefs.h. */
3066
3067int
3068main ()
3069{
3070
3071 ;
3072 return 0;
3073}
3074_ACEOF
81ecdfbb 3075if ac_fn_c_try_compile "$LINENO"; then :
6bf9431b
BE
3076 ac_cv_prog_cc_g=yes
3077else
81ecdfbb
RW
3078 CFLAGS=""
3079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080/* end confdefs.h. */
3081
3082int
3083main ()
3084{
3085
3086 ;
3087 return 0;
3088}
3089_ACEOF
3090if ac_fn_c_try_compile "$LINENO"; then :
3091
3092else
3093 ac_c_werror_flag=$ac_save_c_werror_flag
3094 CFLAGS="-g"
3095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3096/* end confdefs.h. */
3097
3098int
3099main ()
3100{
6bf9431b 3101
81ecdfbb
RW
3102 ;
3103 return 0;
3104}
3105_ACEOF
3106if ac_fn_c_try_compile "$LINENO"; then :
3107 ac_cv_prog_cc_g=yes
3108fi
3109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b 3110fi
81ecdfbb 3111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b 3112fi
81ecdfbb
RW
3113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3114 ac_c_werror_flag=$ac_save_c_werror_flag
3115fi
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3117$as_echo "$ac_cv_prog_cc_g" >&6; }
6bf9431b
BE
3118if test "$ac_test_CFLAGS" = set; then
3119 CFLAGS=$ac_save_CFLAGS
3120elif test $ac_cv_prog_cc_g = yes; then
3121 if test "$GCC" = yes; then
3122 CFLAGS="-g -O2"
3123 else
3124 CFLAGS="-g"
3125 fi
3126else
3127 if test "$GCC" = yes; then
3128 CFLAGS="-O2"
3129 else
3130 CFLAGS=
3131 fi
3132fi
81ecdfbb
RW
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3134$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3135if test "${ac_cv_prog_cc_c89+set}" = set; then :
3136 $as_echo_n "(cached) " >&6
6bf9431b 3137else
81ecdfbb 3138 ac_cv_prog_cc_c89=no
6bf9431b 3139ac_save_CC=$CC
81ecdfbb 3140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
3141/* end confdefs.h. */
3142#include <stdarg.h>
3143#include <stdio.h>
3144#include <sys/types.h>
3145#include <sys/stat.h>
3146/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3147struct buf { int x; };
3148FILE * (*rcsopen) (struct buf *, struct stat *, int);
3149static char *e (p, i)
3150 char **p;
3151 int i;
3152{
3153 return p[i];
3154}
3155static char *f (char * (*g) (char **, int), char **p, ...)
3156{
3157 char *s;
3158 va_list v;
3159 va_start (v,p);
3160 s = g (p, va_arg (v,int));
3161 va_end (v);
3162 return s;
3163}
3164
3165/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3166 function prototypes and stuff, but not '\xHH' hex character constants.
3167 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3168 as 'x'. The following induces an error, until -std is added to get
6bf9431b
BE
3169 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3170 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3171 that's true only with -std. */
6bf9431b
BE
3172int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3173
81ecdfbb
RW
3174/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3175 inside strings and character constants. */
3176#define FOO(x) 'x'
3177int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3178
6bf9431b
BE
3179int test (int i, double x);
3180struct s1 {int (*f) (int a);};
3181struct s2 {int (*f) (double a);};
3182int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3183int argc;
3184char **argv;
3185int
3186main ()
3187{
3188return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3189 ;
3190 return 0;
3191}
3192_ACEOF
81ecdfbb
RW
3193for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3194 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6bf9431b
BE
3195do
3196 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3197 if ac_fn_c_try_compile "$LINENO"; then :
3198 ac_cv_prog_cc_c89=$ac_arg
6bf9431b 3199fi
81ecdfbb
RW
3200rm -f core conftest.err conftest.$ac_objext
3201 test "x$ac_cv_prog_cc_c89" != "xno" && break
6bf9431b 3202done
81ecdfbb 3203rm -f conftest.$ac_ext
6bf9431b
BE
3204CC=$ac_save_CC
3205
3206fi
81ecdfbb
RW
3207# AC_CACHE_VAL
3208case "x$ac_cv_prog_cc_c89" in
3209 x)
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3211$as_echo "none needed" >&6; } ;;
3212 xno)
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3214$as_echo "unsupported" >&6; } ;;
6bf9431b 3215 *)
81ecdfbb
RW
3216 CC="$CC $ac_cv_prog_cc_c89"
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3218$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6bf9431b 3219esac
81ecdfbb 3220if test "x$ac_cv_prog_cc_c89" != xno; then :
6bf9431b 3221
0ab6f085
AM
3222fi
3223
6bf9431b
BE
3224ac_ext=c
3225ac_cpp='$CPP $CPPFLAGS'
3226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228ac_compiler_gnu=$ac_cv_c_compiler_gnu
3229
3230
81ecdfbb
RW
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3232$as_echo_n "checking for library containing strerror... " >&6; }
3233if test "${ac_cv_search_strerror+set}" = set; then :
3234 $as_echo_n "(cached) " >&6
6bf9431b
BE
3235else
3236 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
3238/* end confdefs.h. */
3239
81ecdfbb
RW
3240/* Override any GCC internal prototype to avoid an error.
3241 Use char because int might match the return type of a GCC
3242 builtin and then its argument prototype would still apply. */
6bf9431b
BE
3243#ifdef __cplusplus
3244extern "C"
3245#endif
6bf9431b
BE
3246char strerror ();
3247int
3248main ()
3249{
81ecdfbb 3250return strerror ();
6bf9431b
BE
3251 ;
3252 return 0;
3253}
3254_ACEOF
81ecdfbb
RW
3255for ac_lib in '' cposix; do
3256 if test -z "$ac_lib"; then
3257 ac_res="none required"
3258 else
3259 ac_res=-l$ac_lib
0ab6f085 3260 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3261 fi
3262 if ac_fn_c_try_link "$LINENO"; then :
3263 ac_cv_search_strerror=$ac_res
3264fi
3265rm -f core conftest.err conftest.$ac_objext \
3266 conftest$ac_exeext
3267 if test "${ac_cv_search_strerror+set}" = set; then :
3268 break
3269fi
3270done
3271if test "${ac_cv_search_strerror+set}" = set; then :
6bf9431b 3272
1b9750d6 3273else
81ecdfbb 3274 ac_cv_search_strerror=no
6bf9431b 3275fi
81ecdfbb 3276rm conftest.$ac_ext
6bf9431b
BE
3277LIBS=$ac_func_search_save_LIBS
3278fi
81ecdfbb
RW
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3280$as_echo "$ac_cv_search_strerror" >&6; }
3281ac_res=$ac_cv_search_strerror
3282if test "$ac_res" != no; then :
3283 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6bf9431b
BE
3284
3285fi
3286
3287
3288BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
81ecdfbb
RW
3289am__api_version='1.11'
3290
6bf9431b
BE
3291# Find a good install program. We prefer a C program (faster),
3292# so one script is as good as another. But avoid the broken or
3293# incompatible versions:
3294# SysV /etc/install, /usr/sbin/install
3295# SunOS /usr/etc/install
3296# IRIX /sbin/install
3297# AIX /bin/install
3298# AmigaOS /C/install, which installs bootblocks on floppy discs
3299# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3300# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3301# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3302# OS/2's system install, which has a completely different semantic
3303# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3304# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3306$as_echo_n "checking for a BSD-compatible install... " >&6; }
6bf9431b 3307if test -z "$INSTALL"; then
81ecdfbb
RW
3308if test "${ac_cv_path_install+set}" = set; then :
3309 $as_echo_n "(cached) " >&6
6bf9431b
BE
3310else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312for as_dir in $PATH
3313do
3314 IFS=$as_save_IFS
3315 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3316 # Account for people who put trailing slashes in PATH elements.
3317case $as_dir/ in #((
3318 ./ | .// | /[cC]/* | \
6bf9431b 3319 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3320 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6bf9431b
BE
3321 /usr/ucb/* ) ;;
3322 *)
3323 # OSF1 and SCO ODT 3.0 have their own names for install.
3324 # Don't use installbsd from OSF since it installs stuff as root
3325 # by default.
3326 for ac_prog in ginstall scoinst install; do
3327 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3328 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6bf9431b
BE
3329 if test $ac_prog = install &&
3330 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3331 # AIX install. It has an incompatible calling convention.
3332 :
3333 elif test $ac_prog = install &&
3334 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3335 # program-specific install script used by HP pwplus--don't use.
3336 :
252b5132 3337 else
58c85be7
RW
3338 rm -rf conftest.one conftest.two conftest.dir
3339 echo one > conftest.one
3340 echo two > conftest.two
3341 mkdir conftest.dir
3342 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3343 test -s conftest.one && test -s conftest.two &&
3344 test -s conftest.dir/conftest.one &&
3345 test -s conftest.dir/conftest.two
3346 then
3347 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3348 break 3
3349 fi
252b5132
RH
3350 fi
3351 fi
3352 done
6bf9431b
BE
3353 done
3354 ;;
3355esac
81ecdfbb
RW
3356
3357 done
3358IFS=$as_save_IFS
6bf9431b 3359
58c85be7 3360rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3361
3362fi
3363 if test "${ac_cv_path_install+set}" = set; then
6bf9431b 3364 INSTALL=$ac_cv_path_install
252b5132 3365 else
58c85be7
RW
3366 # As a last resort, use the slow shell script. Don't cache a
3367 # value for INSTALL within a source directory, because that will
252b5132 3368 # break other packages using the cache if that directory is
58c85be7 3369 # removed, or if the value is a relative name.
6bf9431b 3370 INSTALL=$ac_install_sh
252b5132
RH
3371 fi
3372fi
81ecdfbb
RW
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3374$as_echo "$INSTALL" >&6; }
252b5132
RH
3375
3376# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3377# It thinks the first close brace ends the variable substitution.
3378test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3379
6bf9431b 3380test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3381
3382test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3383
81ecdfbb
RW
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3385$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3386# Just in case
3387sleep 1
6bf9431b 3388echo timestamp > conftest.file
81ecdfbb
RW
3389# Reject unsafe characters in $srcdir or the absolute working directory
3390# name. Accept space and tab only in the latter.
3391am_lf='
3392'
3393case `pwd` in
3394 *[\\\"\#\$\&\'\`$am_lf]*)
3395 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3396esac
3397case $srcdir in
3398 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3399 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3400esac
3401
252b5132
RH
3402# Do `set' in a subshell so we don't clobber the current shell's
3403# arguments. Must try -L first in case configure is actually a
3404# symlink; some systems play weird games with the mod time of symlinks
3405# (eg FreeBSD returns the mod time of the symlink's containing
3406# directory).
3407if (
81ecdfbb 3408 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3409 if test "$*" = "X"; then
3410 # -L didn't work.
81ecdfbb 3411 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3412 fi
6bf9431b
BE
3413 rm -f conftest.file
3414 if test "$*" != "X $srcdir/configure conftest.file" \
3415 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3416
3417 # If neither matched, then we have a broken ls. This can happen
3418 # if, for instance, CONFIG_SHELL is bash and it inherits a
3419 # broken ls alias from the environment. This has actually
3420 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3421 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3422alias in your environment" "$LINENO" 5
252b5132
RH
3423 fi
3424
6bf9431b 3425 test "$2" = conftest.file
252b5132
RH
3426 )
3427then
3428 # Ok.
3429 :
3430else
81ecdfbb
RW
3431 as_fn_error "newly created file is older than distributed files!
3432Check your system clock" "$LINENO" 5
252b5132 3433fi
81ecdfbb
RW
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3435$as_echo "yes" >&6; }
252b5132 3436test "$program_prefix" != NONE &&
81ecdfbb 3437 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3438# Use a double $ so make ignores it.
3439test "$program_suffix" != NONE &&
81ecdfbb
RW
3440 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3441# Double any \ or $.
6bf9431b 3442# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3443ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3444program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6bf9431b
BE
3445
3446# expand $ac_aux_dir to an absolute path
3447am_aux_dir=`cd $ac_aux_dir && pwd`
3448
81ecdfbb
RW
3449if test x"${MISSING+set}" != xset; then
3450 case $am_aux_dir in
3451 *\ * | *\ *)
3452 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3453 *)
3454 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3455 esac
3456fi
6bf9431b
BE
3457# Use eval to expand $SHELL
3458if eval "$MISSING --run true"; then
3459 am_missing_run="$MISSING --run "
3460else
3461 am_missing_run=
81ecdfbb
RW
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3463$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6bf9431b 3464fi
252b5132 3465
81ecdfbb
RW
3466if test x"${install_sh}" != xset; then
3467 case $am_aux_dir in
3468 *\ * | *\ *)
3469 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3470 *)
3471 install_sh="\${SHELL} $am_aux_dir/install-sh"
3472 esac
3473fi
3474
3475# Installed binaries are usually stripped using `strip' when the user
3476# run `make install-strip'. However `strip' might not be the right
3477# tool to use in cross-compilation environments, therefore Automake
3478# will honor the `STRIP' environment variable to overrule this program.
3479if test "$cross_compiling" != no; then
3480 if test -n "$ac_tool_prefix"; then
3481 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3482set dummy ${ac_tool_prefix}strip; ac_word=$2
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484$as_echo_n "checking for $ac_word... " >&6; }
3485if test "${ac_cv_prog_STRIP+set}" = set; then :
3486 $as_echo_n "(cached) " >&6
6bf9431b 3487else
81ecdfbb
RW
3488 if test -n "$STRIP"; then
3489 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6bf9431b
BE
3490else
3491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492for as_dir in $PATH
3493do
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3498 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
3500 break 2
3501 fi
3502done
81ecdfbb
RW
3503 done
3504IFS=$as_save_IFS
6bf9431b
BE
3505
3506fi
3507fi
81ecdfbb
RW
3508STRIP=$ac_cv_prog_STRIP
3509if test -n "$STRIP"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3511$as_echo "$STRIP" >&6; }
6bf9431b 3512else
81ecdfbb
RW
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514$as_echo "no" >&6; }
6bf9431b
BE
3515fi
3516
252b5132 3517
81ecdfbb
RW
3518fi
3519if test -z "$ac_cv_prog_STRIP"; then
3520 ac_ct_STRIP=$STRIP
3521 # Extract the first word of "strip", so it can be a program name with args.
3522set dummy strip; ac_word=$2
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524$as_echo_n "checking for $ac_word... " >&6; }
3525if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3526 $as_echo_n "(cached) " >&6
252b5132 3527else
81ecdfbb
RW
3528 if test -n "$ac_ct_STRIP"; then
3529 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
0ab6f085 3530else
81ecdfbb
RW
3531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532for as_dir in $PATH
3533do
3534 IFS=$as_save_IFS
3535 test -z "$as_dir" && as_dir=.
3536 for ac_exec_ext in '' $ac_executable_extensions; do
3537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3538 ac_cv_prog_ac_ct_STRIP="strip"
3539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 break 2
3541 fi
3542done
3543 done
3544IFS=$as_save_IFS
3545
0ab6f085 3546fi
252b5132 3547fi
81ecdfbb
RW
3548ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3549if test -n "$ac_ct_STRIP"; then
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3551$as_echo "$ac_ct_STRIP" >&6; }
252b5132 3552else
81ecdfbb
RW
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554$as_echo "no" >&6; }
252b5132
RH
3555fi
3556
81ecdfbb
RW
3557 if test "x$ac_ct_STRIP" = x; then
3558 STRIP=":"
3559 else
3560 case $cross_compiling:$ac_tool_warned in
3561yes:)
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3564ac_tool_warned=yes ;;
3565esac
3566 STRIP=$ac_ct_STRIP
3567 fi
3568else
3569 STRIP="$ac_cv_prog_STRIP"
3570fi
3571
3572fi
3573INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3574
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3576$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3577if test -z "$MKDIR_P"; then
3578 if test "${ac_cv_path_mkdir+set}" = set; then :
3579 $as_echo_n "(cached) " >&6
3580else
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3583do
3584 IFS=$as_save_IFS
3585 test -z "$as_dir" && as_dir=.
3586 for ac_prog in mkdir gmkdir; do
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3589 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3590 'mkdir (GNU coreutils) '* | \
3591 'mkdir (coreutils) '* | \
3592 'mkdir (fileutils) '4.1*)
3593 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3594 break 3;;
3595 esac
3596 done
3597 done
3598 done
3599IFS=$as_save_IFS
3600
3601fi
3602
3603 if test "${ac_cv_path_mkdir+set}" = set; then
3604 MKDIR_P="$ac_cv_path_mkdir -p"
3605 else
3606 # As a last resort, use the slow shell script. Don't cache a
3607 # value for MKDIR_P within a source directory, because that will
3608 # break other packages using the cache if that directory is
3609 # removed, or if the value is a relative name.
3610 test -d ./--version && rmdir ./--version
3611 MKDIR_P="$ac_install_sh -d"
3612 fi
3613fi
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3615$as_echo "$MKDIR_P" >&6; }
3616
3617mkdir_p="$MKDIR_P"
3618case $mkdir_p in
3619 [\\/$]* | ?:[\\/]*) ;;
3620 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3621esac
3622
3623for ac_prog in gawk mawk nawk awk
3624do
3625 # Extract the first word of "$ac_prog", so it can be a program name with args.
3626set dummy $ac_prog; ac_word=$2
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3628$as_echo_n "checking for $ac_word... " >&6; }
3629if test "${ac_cv_prog_AWK+set}" = set; then :
3630 $as_echo_n "(cached) " >&6
3631else
3632 if test -n "$AWK"; then
3633 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3634else
3635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636for as_dir in $PATH
3637do
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642 ac_cv_prog_AWK="$ac_prog"
3643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 break 2
3645 fi
3646done
3647 done
3648IFS=$as_save_IFS
3649
3650fi
3651fi
3652AWK=$ac_cv_prog_AWK
3653if test -n "$AWK"; then
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3655$as_echo "$AWK" >&6; }
3656else
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658$as_echo "no" >&6; }
3659fi
3660
3661
3662 test -n "$AWK" && break
3663done
3664
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3666$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3667set x ${MAKE-make}
3668ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3669if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3670 $as_echo_n "(cached) " >&6
3671else
3672 cat >conftest.make <<\_ACEOF
3673SHELL = /bin/sh
3674all:
3675 @echo '@@@%%%=$(MAKE)=@@@%%%'
3676_ACEOF
3677# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3678case `${MAKE-make} -f conftest.make 2>/dev/null` in
3679 *@@@%%%=?*=@@@%%%*)
3680 eval ac_cv_prog_make_${ac_make}_set=yes;;
3681 *)
3682 eval ac_cv_prog_make_${ac_make}_set=no;;
3683esac
3684rm -f conftest.make
3685fi
3686if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3688$as_echo "yes" >&6; }
3689 SET_MAKE=
3690else
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692$as_echo "no" >&6; }
3693 SET_MAKE="MAKE=${MAKE-make}"
3694fi
3695
3696rm -rf .tst 2>/dev/null
6bf9431b
BE
3697mkdir .tst 2>/dev/null
3698if test -d .tst; then
3699 am__leading_dot=.
3700else
3701 am__leading_dot=_
3702fi
3703rmdir .tst 2>/dev/null
3704
3705DEPDIR="${am__leading_dot}deps"
3706
81ecdfbb 3707ac_config_commands="$ac_config_commands depfiles"
6bf9431b
BE
3708
3709
3710am_make=${MAKE-make}
3711cat > confinc << 'END'
3712am__doit:
81ecdfbb 3713 @echo this is the am__doit target
6bf9431b
BE
3714.PHONY: am__doit
3715END
3716# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3718$as_echo_n "checking for style of include used by $am_make... " >&6; }
6bf9431b
BE
3719am__include="#"
3720am__quote=
3721_am_result=none
3722# First try GNU make style include.
3723echo "include confinc" > confmf
81ecdfbb
RW
3724# Ignore all kinds of additional output from `make'.
3725case `$am_make -s -f confmf 2> /dev/null` in #(
3726*the\ am__doit\ target*)
3727 am__include=include
3728 am__quote=
3729 _am_result=GNU
3730 ;;
3731esac
6bf9431b
BE
3732# Now try BSD make style include.
3733if test "$am__include" = "#"; then
3734 echo '.include "confinc"' > confmf
81ecdfbb
RW
3735 case `$am_make -s -f confmf 2> /dev/null` in #(
3736 *the\ am__doit\ target*)
3737 am__include=.include
3738 am__quote="\""
3739 _am_result=BSD
3740 ;;
3741 esac
6bf9431b
BE
3742fi
3743
252b5132 3744
81ecdfbb
RW
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3746$as_echo "$_am_result" >&6; }
6bf9431b 3747rm -f confinc confmf
252b5132 3748
81ecdfbb
RW
3749# Check whether --enable-dependency-tracking was given.
3750if test "${enable_dependency_tracking+set}" = set; then :
3751 enableval=$enable_dependency_tracking;
3752fi
252b5132 3753
6bf9431b
BE
3754if test "x$enable_dependency_tracking" != xno; then
3755 am_depcomp="$ac_aux_dir/depcomp"
3756 AMDEPBACKSLASH='\'
252b5132 3757fi
81ecdfbb 3758 if test "x$enable_dependency_tracking" != xno; then
6bf9431b
BE
3759 AMDEP_TRUE=
3760 AMDEP_FALSE='#'
3761else
3762 AMDEP_TRUE='#'
3763 AMDEP_FALSE=
3764fi
3765
3766
81ecdfbb
RW
3767if test "`cd $srcdir && pwd`" != "`pwd`"; then
3768 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3769 # is not polluted with repeated "-I."
3770 am__isrc=' -I$(srcdir)'
3771 # test to see if srcdir already configured
3772 if test -f $srcdir/config.status; then
3773 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3774 fi
6bf9431b
BE
3775fi
3776
3777# test whether we have cygpath
3778if test -z "$CYGPATH_W"; then
3779 if (cygpath --version) >/dev/null 2>/dev/null; then
3780 CYGPATH_W='cygpath -w'
3781 else
3782 CYGPATH_W=echo
3783 fi
3784fi
3785
3786
3787# Define the identity of the package.
3788 PACKAGE=gprof
3789 VERSION=${BFD_VERSION}
3790
3791
3792cat >>confdefs.h <<_ACEOF
252b5132 3793#define PACKAGE "$PACKAGE"
6bf9431b
BE
3794_ACEOF
3795
252b5132 3796
6bf9431b 3797cat >>confdefs.h <<_ACEOF
252b5132 3798#define VERSION "$VERSION"
6bf9431b
BE
3799_ACEOF
3800
3801# Some tools Automake needs.
3802
3803ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3804
3805
3806AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3807
3808
3809AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3810
3811
3812AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3813
3814
3815MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3816
6bf9431b
BE
3817# We need awk for the "check" target. The system "awk" is bad on
3818# some platforms.
df76639a
AM
3819# Always define AMTAR for backward compatibility.
3820
3821AMTAR=${AMTAR-"${am_missing_run}tar"}
3822
3823am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3824
3825
6bf9431b
BE
3826
3827
3828depcc="$CC" am_compiler_list=
3829
81ecdfbb
RW
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3831$as_echo_n "checking dependency style of $depcc... " >&6; }
3832if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3833 $as_echo_n "(cached) " >&6
6bf9431b
BE
3834else
3835 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3836 # We make a subdir and do the tests there. Otherwise we can end up
3837 # making bogus files that we don't know about and never remove. For
3838 # instance it was reported that on HP-UX the gcc test will end up
3839 # making a dummy file named `D' -- because `-MD' means `put the output
3840 # in D'.
3841 mkdir conftest.dir
3842 # Copy depcomp to subdir because otherwise we won't find it if we're
3843 # using a relative directory.
3844 cp "$am_depcomp" conftest.dir
3845 cd conftest.dir
3846 # We will build objects and dependencies in a subdirectory because
3847 # it helps to detect inapplicable dependency modes. For instance
3848 # both Tru64's cc and ICC support -MD to output dependencies as a
3849 # side effect of compilation, but ICC will put the dependencies in
3850 # the current directory while Tru64 will put them in the object
3851 # directory.
3852 mkdir sub
3853
3854 am_cv_CC_dependencies_compiler_type=none
3855 if test "$am_compiler_list" = ""; then
3856 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3857 fi
81ecdfbb
RW
3858 am__universal=false
3859 case " $depcc " in #(
3860 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3861 esac
3862
6bf9431b
BE
3863 for depmode in $am_compiler_list; do
3864 # Setup a source with many dependencies, because some compilers
3865 # like to wrap large dependency lists on column 80 (with \), and
3866 # we should not choose a depcomp mode which is confused by this.
3867 #
3868 # We need to recreate these files for each test, as the compiler may
3869 # overwrite some of them when testing with obscure command lines.
3870 # This happens at least with the AIX C compiler.
3871 : > sub/conftest.c
3872 for i in 1 2 3 4 5 6; do
3873 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3874 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3875 # Solaris 8's {/usr,}/bin/sh.
3876 touch sub/conftst$i.h
3877 done
3878 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3879
81ecdfbb
RW
3880 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3881 # mode. It turns out that the SunPro C++ compiler does not properly
3882 # handle `-M -o', and we need to detect this. Also, some Intel
3883 # versions had trouble with output in subdirs
3884 am__obj=sub/conftest.${OBJEXT-o}
3885 am__minus_obj="-o $am__obj"
6bf9431b 3886 case $depmode in
81ecdfbb
RW
3887 gcc)
3888 # This depmode causes a compiler race in universal mode.
3889 test "$am__universal" = false || continue
3890 ;;
6bf9431b
BE
3891 nosideeffect)
3892 # after this tag, mechanisms are not by side-effect, so they'll
3893 # only be used when explicitly requested
3894 if test "x$enable_dependency_tracking" = xyes; then
3895 continue
3896 else
3897 break
3898 fi
3899 ;;
81ecdfbb
RW
3900 msvisualcpp | msvcmsys)
3901 # This compiler won't grok `-c -o', but also, the minuso test has
3902 # not run yet. These depmodes are late enough in the game, and
3903 # so weak that their functioning should not be impacted.
3904 am__obj=conftest.${OBJEXT-o}
3905 am__minus_obj=
3906 ;;
6bf9431b
BE
3907 none) break ;;
3908 esac
6bf9431b 3909 if depmode=$depmode \
81ecdfbb 3910 source=sub/conftest.c object=$am__obj \
6bf9431b 3911 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 3912 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6bf9431b 3913 >/dev/null 2>conftest.err &&
81ecdfbb 3914 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6bf9431b 3915 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 3916 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6bf9431b
BE
3917 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3918 # icc doesn't choke on unknown options, it will just issue warnings
3919 # or remarks (even with -Werror). So we grep stderr for any message
3920 # that says an option was ignored or not supported.
3921 # When given -MP, icc 7.0 and 7.1 complain thusly:
3922 # icc: Command line warning: ignoring option '-M'; no argument required
3923 # The diagnosis changed in icc 8.0:
3924 # icc: Command line remark: option '-MP' not supported
3925 if (grep 'ignoring option' conftest.err ||
3926 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3927 am_cv_CC_dependencies_compiler_type=$depmode
3928 break
3929 fi
3930 fi
3931 done
3932
3933 cd ..
3934 rm -rf conftest.dir
252b5132 3935else
6bf9431b 3936 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3937fi
3938
252b5132 3939fi
81ecdfbb
RW
3940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3941$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6bf9431b
BE
3942CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3943
81ecdfbb 3944 if
6bf9431b
BE
3945 test "x$enable_dependency_tracking" != xno \
3946 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3947 am__fastdepCC_TRUE=
3948 am__fastdepCC_FALSE='#'
252b5132 3949else
6bf9431b
BE
3950 am__fastdepCC_TRUE='#'
3951 am__fastdepCC_FALSE=
252b5132
RH
3952fi
3953
3954
3955
6bf9431b 3956
81ecdfbb 3957ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
d7040cdb
SE
3958
3959
ce2cded5
L
3960ac_ext=c
3961ac_cpp='$CPP $CPPFLAGS'
3962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964ac_compiler_gnu=$ac_cv_c_compiler_gnu
3965if test -n "$ac_tool_prefix"; then
3966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3967set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3969$as_echo_n "checking for $ac_word... " >&6; }
3970if test "${ac_cv_prog_CC+set}" = set; then :
3971 $as_echo_n "(cached) " >&6
1b9750d6 3972else
ce2cded5
L
3973 if test -n "$CC"; then
3974 ac_cv_prog_CC="$CC" # Let the user override the test.
0ab6f085 3975else
ce2cded5
L
3976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977for as_dir in $PATH
3978do
3979 IFS=$as_save_IFS
3980 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3983 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
3985 break 2
3986 fi
3987done
81ecdfbb
RW
3988 done
3989IFS=$as_save_IFS
0ab6f085 3990
ce2cded5
L
3991fi
3992fi
3993CC=$ac_cv_prog_CC
3994if test -n "$CC"; then
81ecdfbb
RW
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3996$as_echo "$CC" >&6; }
0ab6f085 3997else
81ecdfbb
RW
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3999$as_echo "no" >&6; }
ce2cded5 4000fi
d7040cdb 4001
81ecdfbb 4002
ce2cded5
L
4003fi
4004if test -z "$ac_cv_prog_CC"; then
4005 ac_ct_CC=$CC
4006 # Extract the first word of "gcc", so it can be a program name with args.
4007set dummy gcc; ac_word=$2
81ecdfbb
RW
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009$as_echo_n "checking for $ac_word... " >&6; }
4010if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4011 $as_echo_n "(cached) " >&6
1b9750d6 4012else
ce2cded5
L
4013 if test -n "$ac_ct_CC"; then
4014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4015else
d7040cdb 4016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
0ab6f085 4017for as_dir in $PATH
d7040cdb
SE
4018do
4019 IFS=$as_save_IFS
4020 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4023 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 4025 break 2
0ab6f085 4026 fi
ce2cded5 4027done
81ecdfbb
RW
4028 done
4029IFS=$as_save_IFS
d7040cdb 4030
ce2cded5
L
4031fi
4032fi
4033ac_ct_CC=$ac_cv_prog_ac_ct_CC
4034if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4036$as_echo "$ac_ct_CC" >&6; }
ce2cded5 4037else
81ecdfbb
RW
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039$as_echo "no" >&6; }
1b9750d6 4040fi
d7040cdb 4041
81ecdfbb
RW
4042 if test "x$ac_ct_CC" = x; then
4043 CC=""
4044 else
4045 case $cross_compiling:$ac_tool_warned in
4046yes:)
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4049ac_tool_warned=yes ;;
4050esac
4051 CC=$ac_ct_CC
4052 fi
ce2cded5
L
4053else
4054 CC="$ac_cv_prog_CC"
4055fi
d7040cdb 4056
ce2cded5 4057if test -z "$CC"; then
81ecdfbb
RW
4058 if test -n "$ac_tool_prefix"; then
4059 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 4060set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4062$as_echo_n "checking for $ac_word... " >&6; }
4063if test "${ac_cv_prog_CC+set}" = set; then :
4064 $as_echo_n "(cached) " >&6
d7040cdb 4065else
ce2cded5
L
4066 if test -n "$CC"; then
4067 ac_cv_prog_CC="$CC" # Let the user override the test.
0ab6f085 4068else
ce2cded5
L
4069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070for as_dir in $PATH
4071do
4072 IFS=$as_save_IFS
4073 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4076 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4078 break 2
4079 fi
4080done
81ecdfbb
RW
4081 done
4082IFS=$as_save_IFS
d7040cdb 4083
252b5132
RH
4084fi
4085fi
ce2cded5
L
4086CC=$ac_cv_prog_CC
4087if test -n "$CC"; then
81ecdfbb
RW
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4089$as_echo "$CC" >&6; }
ce2cded5 4090else
81ecdfbb
RW
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4092$as_echo "no" >&6; }
d7040cdb 4093fi
6be7c12c 4094
ce2cded5 4095
81ecdfbb 4096 fi
ce2cded5
L
4097fi
4098if test -z "$CC"; then
4099 # Extract the first word of "cc", so it can be a program name with args.
4100set dummy cc; ac_word=$2
81ecdfbb
RW
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102$as_echo_n "checking for $ac_word... " >&6; }
4103if test "${ac_cv_prog_CC+set}" = set; then :
4104 $as_echo_n "(cached) " >&6
ce2cded5
L
4105else
4106 if test -n "$CC"; then
4107 ac_cv_prog_CC="$CC" # Let the user override the test.
4108else
4109 ac_prog_rejected=no
4110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111for as_dir in $PATH
4112do
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
4117 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4118 ac_prog_rejected=yes
4119 continue
4120 fi
4121 ac_cv_prog_CC="cc"
81ecdfbb 4122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4123 break 2
4124 fi
4125done
81ecdfbb
RW
4126 done
4127IFS=$as_save_IFS
ce2cded5
L
4128
4129if test $ac_prog_rejected = yes; then
4130 # We found a bogon in the path, so make sure we never use it.
4131 set dummy $ac_cv_prog_CC
4132 shift
4133 if test $# != 0; then
4134 # We chose a different compiler from the bogus one.
4135 # However, it has the same basename, so the bogon will be chosen
4136 # first if we set CC to just the basename; use the full file name.
4137 shift
4138 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4139 fi
4140fi
4141fi
4142fi
4143CC=$ac_cv_prog_CC
4144if test -n "$CC"; then
81ecdfbb
RW
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4146$as_echo "$CC" >&6; }
ce2cded5 4147else
81ecdfbb
RW
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149$as_echo "no" >&6; }
ce2cded5
L
4150fi
4151
81ecdfbb 4152
ce2cded5
L
4153fi
4154if test -z "$CC"; then
4155 if test -n "$ac_tool_prefix"; then
81ecdfbb 4156 for ac_prog in cl.exe
ce2cded5
L
4157 do
4158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4159set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4161$as_echo_n "checking for $ac_word... " >&6; }
4162if test "${ac_cv_prog_CC+set}" = set; then :
4163 $as_echo_n "(cached) " >&6
ce2cded5
L
4164else
4165 if test -n "$CC"; then
4166 ac_cv_prog_CC="$CC" # Let the user override the test.
4167else
4168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169for as_dir in $PATH
4170do
4171 IFS=$as_save_IFS
4172 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4175 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4177 break 2
4178 fi
4179done
81ecdfbb
RW
4180 done
4181IFS=$as_save_IFS
ce2cded5
L
4182
4183fi
4184fi
4185CC=$ac_cv_prog_CC
4186if test -n "$CC"; then
81ecdfbb
RW
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4188$as_echo "$CC" >&6; }
ce2cded5 4189else
81ecdfbb
RW
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191$as_echo "no" >&6; }
ce2cded5
L
4192fi
4193
81ecdfbb 4194
ce2cded5 4195 test -n "$CC" && break
d7040cdb
SE
4196 done
4197fi
ce2cded5
L
4198if test -z "$CC"; then
4199 ac_ct_CC=$CC
81ecdfbb 4200 for ac_prog in cl.exe
d7040cdb
SE
4201do
4202 # Extract the first word of "$ac_prog", so it can be a program name with args.
4203set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205$as_echo_n "checking for $ac_word... " >&6; }
4206if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4207 $as_echo_n "(cached) " >&6
d7040cdb 4208else
ce2cded5
L
4209 if test -n "$ac_ct_CC"; then
4210 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
4211else
4212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH
4214do
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4219 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 4221 break 2
ac48eca1 4222 fi
d7040cdb 4223done
81ecdfbb
RW
4224 done
4225IFS=$as_save_IFS
ac48eca1 4226
d7040cdb
SE
4227fi
4228fi
ce2cded5
L
4229ac_ct_CC=$ac_cv_prog_ac_ct_CC
4230if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4232$as_echo "$ac_ct_CC" >&6; }
d7040cdb 4233else
81ecdfbb
RW
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235$as_echo "no" >&6; }
d7040cdb 4236fi
ac48eca1 4237
81ecdfbb 4238
ce2cded5 4239 test -n "$ac_ct_CC" && break
d7040cdb 4240done
ac48eca1 4241
81ecdfbb
RW
4242 if test "x$ac_ct_CC" = x; then
4243 CC=""
4244 else
4245 case $cross_compiling:$ac_tool_warned in
4246yes:)
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4249ac_tool_warned=yes ;;
4250esac
4251 CC=$ac_ct_CC
4252 fi
d7040cdb 4253fi
ac48eca1 4254
d7040cdb 4255fi
ac48eca1 4256
ac48eca1 4257
81ecdfbb
RW
4258test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4260as_fn_error "no acceptable C compiler found in \$PATH
4261See \`config.log' for more details." "$LINENO" 5; }
6be7c12c 4262
ce2cded5 4263# Provide some information about the compiler.
81ecdfbb
RW
4264$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4265set X $ac_compile
4266ac_compiler=$2
4267for ac_option in --version -v -V -qversion; do
4268 { { ac_try="$ac_compiler $ac_option >&5"
4269case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272esac
4273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4274$as_echo "$ac_try_echo"; } >&5
4275 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4276 ac_status=$?
81ecdfbb
RW
4277 if test -s conftest.err; then
4278 sed '10a\
4279... rest of stderr output deleted ...
4280 10q' conftest.err >conftest.er1
4281 cat conftest.er1 >&5
4282 rm -f conftest.er1 conftest.err
4283 fi
4284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4285 test $ac_status = 0; }
4286done
ac48eca1 4287
81ecdfbb
RW
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4289$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4290if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4291 $as_echo_n "(cached) " >&6
d7040cdb 4292else
81ecdfbb 4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4294/* end confdefs.h. */
ac48eca1 4295
ce2cded5
L
4296int
4297main ()
4298{
4299#ifndef __GNUC__
4300 choke me
4301#endif
4302
4303 ;
4304 return 0;
4305}
4306_ACEOF
81ecdfbb 4307if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 4308 ac_compiler_gnu=yes
d7040cdb 4309else
81ecdfbb 4310 ac_compiler_gnu=no
d7040cdb 4311fi
81ecdfbb 4312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4313ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4314
ce2cded5 4315fi
81ecdfbb
RW
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4317$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4318if test $ac_compiler_gnu = yes; then
4319 GCC=yes
4320else
4321 GCC=
4322fi
ce2cded5
L
4323ac_test_CFLAGS=${CFLAGS+set}
4324ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4326$as_echo_n "checking whether $CC accepts -g... " >&6; }
4327if test "${ac_cv_prog_cc_g+set}" = set; then :
4328 $as_echo_n "(cached) " >&6
4329else
4330 ac_save_c_werror_flag=$ac_c_werror_flag
4331 ac_c_werror_flag=yes
4332 ac_cv_prog_cc_g=no
4333 CFLAGS="-g"
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4335/* end confdefs.h. */
d7040cdb 4336
ce2cded5
L
4337int
4338main ()
4339{
d7040cdb 4340
ce2cded5
L
4341 ;
4342 return 0;
4343}
4344_ACEOF
81ecdfbb 4345if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
4346 ac_cv_prog_cc_g=yes
4347else
81ecdfbb
RW
4348 CFLAGS=""
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350/* end confdefs.h. */
108a6f8e 4351
81ecdfbb
RW
4352int
4353main ()
4354{
4355
4356 ;
4357 return 0;
4358}
4359_ACEOF
4360if ac_fn_c_try_compile "$LINENO"; then :
4361
4362else
4363 ac_c_werror_flag=$ac_save_c_werror_flag
4364 CFLAGS="-g"
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366/* end confdefs.h. */
4367
4368int
4369main ()
4370{
4371
4372 ;
4373 return 0;
4374}
4375_ACEOF
4376if ac_fn_c_try_compile "$LINENO"; then :
4377 ac_cv_prog_cc_g=yes
4378fi
4379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380fi
4381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382fi
4383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384 ac_c_werror_flag=$ac_save_c_werror_flag
4385fi
4386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4387$as_echo "$ac_cv_prog_cc_g" >&6; }
4388if test "$ac_test_CFLAGS" = set; then
4389 CFLAGS=$ac_save_CFLAGS
4390elif test $ac_cv_prog_cc_g = yes; then
4391 if test "$GCC" = yes; then
4392 CFLAGS="-g -O2"
4393 else
ce2cded5
L
4394 CFLAGS="-g"
4395 fi
ac48eca1 4396else
ce2cded5
L
4397 if test "$GCC" = yes; then
4398 CFLAGS="-O2"
4399 else
4400 CFLAGS=
4401 fi
ac48eca1 4402fi
81ecdfbb
RW
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4404$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4405if test "${ac_cv_prog_cc_c89+set}" = set; then :
4406 $as_echo_n "(cached) " >&6
ac48eca1 4407else
81ecdfbb 4408 ac_cv_prog_cc_c89=no
ce2cded5 4409ac_save_CC=$CC
81ecdfbb 4410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
4411/* end confdefs.h. */
4412#include <stdarg.h>
4413#include <stdio.h>
4414#include <sys/types.h>
4415#include <sys/stat.h>
4416/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4417struct buf { int x; };
4418FILE * (*rcsopen) (struct buf *, struct stat *, int);
4419static char *e (p, i)
4420 char **p;
4421 int i;
4422{
4423 return p[i];
4424}
4425static char *f (char * (*g) (char **, int), char **p, ...)
4426{
4427 char *s;
4428 va_list v;
4429 va_start (v,p);
4430 s = g (p, va_arg (v,int));
4431 va_end (v);
4432 return s;
4433}
d7040cdb 4434
ce2cded5
L
4435/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4436 function prototypes and stuff, but not '\xHH' hex character constants.
4437 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4438 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
4439 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4440 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4441 that's true only with -std. */
ce2cded5 4442int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 4443
81ecdfbb
RW
4444/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4445 inside strings and character constants. */
4446#define FOO(x) 'x'
4447int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4448
ce2cded5
L
4449int test (int i, double x);
4450struct s1 {int (*f) (int a);};
4451struct s2 {int (*f) (double a);};
4452int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4453int argc;
4454char **argv;
4455int
4456main ()
4457{
4458return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4459 ;
4460 return 0;
4461}
4462_ACEOF
81ecdfbb
RW
4463for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4464 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
4465do
4466 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4467 if ac_fn_c_try_compile "$LINENO"; then :
4468 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 4469fi
81ecdfbb
RW
4470rm -f core conftest.err conftest.$ac_objext
4471 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 4472done
81ecdfbb 4473rm -f conftest.$ac_ext
ce2cded5 4474CC=$ac_save_CC
d7040cdb 4475
ce2cded5 4476fi
81ecdfbb
RW
4477# AC_CACHE_VAL
4478case "x$ac_cv_prog_cc_c89" in
4479 x)
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4481$as_echo "none needed" >&6; } ;;
4482 xno)
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4484$as_echo "unsupported" >&6; } ;;
ce2cded5 4485 *)
81ecdfbb
RW
4486 CC="$CC $ac_cv_prog_cc_c89"
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4488$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ce2cded5 4489esac
81ecdfbb 4490if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 4491
ce2cded5 4492fi
d7040cdb 4493
ce2cded5
L
4494ac_ext=c
4495ac_cpp='$CPP $CPPFLAGS'
4496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4499
7357c5b6
AM
4500ac_ext=c
4501ac_cpp='$CPP $CPPFLAGS'
4502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4506$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4507# On Suns, sometimes $CPP names a directory.
4508if test -n "$CPP" && test -d "$CPP"; then
4509 CPP=
4510fi
4511if test -z "$CPP"; then
81ecdfbb
RW
4512 if test "${ac_cv_prog_CPP+set}" = set; then :
4513 $as_echo_n "(cached) " >&6
ce2cded5 4514else
7357c5b6
AM
4515 # Double quotes because CPP needs to be expanded
4516 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4517 do
4518 ac_preproc_ok=false
4519for ac_c_preproc_warn_flag in '' yes
ce2cded5 4520do
7357c5b6
AM
4521 # Use a header file that comes with gcc, so configuring glibc
4522 # with a fresh cross-compiler works.
4523 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4524 # <limits.h> exists even on freestanding compilers.
4525 # On the NeXT, cc -E runs the code through the compiler's parser,
4526 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4528/* end confdefs.h. */
4529#ifdef __STDC__
4530# include <limits.h>
4531#else
4532# include <assert.h>
4533#endif
4534 Syntax error
4535_ACEOF
81ecdfbb 4536if ac_fn_c_try_cpp "$LINENO"; then :
6bf9431b 4537
81ecdfbb 4538else
7357c5b6
AM
4539 # Broken: fails on valid input.
4540continue
4541fi
4542rm -f conftest.err conftest.$ac_ext
ce2cded5 4543
81ecdfbb 4544 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4545 # can be detected and how.
81ecdfbb 4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4547/* end confdefs.h. */
4548#include <ac_nonexistent.h>
4549_ACEOF
81ecdfbb 4550if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4551 # Broken: success on invalid input.
4552continue
4553else
7357c5b6
AM
4554 # Passes both tests.
4555ac_preproc_ok=:
4556break
4557fi
4558rm -f conftest.err conftest.$ac_ext
6bf9431b 4559
7357c5b6
AM
4560done
4561# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4562rm -f conftest.err conftest.$ac_ext
81ecdfbb 4563if $ac_preproc_ok; then :
7357c5b6
AM
4564 break
4565fi
6bf9431b 4566
7357c5b6
AM
4567 done
4568 ac_cv_prog_CPP=$CPP
252b5132 4569
7357c5b6
AM
4570fi
4571 CPP=$ac_cv_prog_CPP
4572else
4573 ac_cv_prog_CPP=$CPP
4574fi
81ecdfbb
RW
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4576$as_echo "$CPP" >&6; }
7357c5b6
AM
4577ac_preproc_ok=false
4578for ac_c_preproc_warn_flag in '' yes
4579do
4580 # Use a header file that comes with gcc, so configuring glibc
4581 # with a fresh cross-compiler works.
4582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4583 # <limits.h> exists even on freestanding compilers.
4584 # On the NeXT, cc -E runs the code through the compiler's parser,
4585 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4587/* end confdefs.h. */
4588#ifdef __STDC__
4589# include <limits.h>
4590#else
4591# include <assert.h>
4592#endif
4593 Syntax error
4594_ACEOF
81ecdfbb 4595if ac_fn_c_try_cpp "$LINENO"; then :
6bf9431b 4596
81ecdfbb 4597else
7357c5b6
AM
4598 # Broken: fails on valid input.
4599continue
4600fi
4601rm -f conftest.err conftest.$ac_ext
252b5132 4602
81ecdfbb 4603 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4604 # can be detected and how.
81ecdfbb 4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4606/* end confdefs.h. */
4607#include <ac_nonexistent.h>
4608_ACEOF
81ecdfbb 4609if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4610 # Broken: success on invalid input.
4611continue
4612else
7357c5b6
AM
4613 # Passes both tests.
4614ac_preproc_ok=:
4615break
4616fi
4617rm -f conftest.err conftest.$ac_ext
252b5132 4618
7357c5b6
AM
4619done
4620# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4621rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
4622if $ac_preproc_ok; then :
4623
7357c5b6 4624else
81ecdfbb
RW
4625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4627as_fn_error "C preprocessor \"$CPP\" fails sanity check
4628See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 4629fi
6bf9431b 4630
7357c5b6
AM
4631ac_ext=c
4632ac_cpp='$CPP $CPPFLAGS'
4633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4635ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132 4636
252b5132 4637
81ecdfbb
RW
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4639$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4640if test "${ac_cv_path_GREP+set}" = set; then :
4641 $as_echo_n "(cached) " >&6
ce2cded5 4642else
81ecdfbb
RW
4643 if test -z "$GREP"; then
4644 ac_path_GREP_found=false
4645 # Loop through the user's path and test for each of PROGNAME-LIST
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4648do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_prog in grep ggrep; do
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4654 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4655# Check for GNU ac_path_GREP and select it if it is found.
4656 # Check for GNU $ac_path_GREP
4657case `"$ac_path_GREP" --version 2>&1` in
4658*GNU*)
4659 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4660*)
4661 ac_count=0
4662 $as_echo_n 0123456789 >"conftest.in"
4663 while :
4664 do
4665 cat "conftest.in" "conftest.in" >"conftest.tmp"
4666 mv "conftest.tmp" "conftest.in"
4667 cp "conftest.in" "conftest.nl"
4668 $as_echo 'GREP' >> "conftest.nl"
4669 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4671 as_fn_arith $ac_count + 1 && ac_count=$as_val
4672 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4673 # Best one so far, save it but keep looking for a better one
4674 ac_cv_path_GREP="$ac_path_GREP"
4675 ac_path_GREP_max=$ac_count
ce2cded5 4676 fi
81ecdfbb
RW
4677 # 10*(2^10) chars as input seems more than enough
4678 test $ac_count -gt 10 && break
4679 done
4680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4681esac
4682
4683 $ac_path_GREP_found && break 3
4684 done
4685 done
4686 done
4687IFS=$as_save_IFS
4688 if test -z "$ac_cv_path_GREP"; then
4689 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4690 fi
4691else
4692 ac_cv_path_GREP=$GREP
4693fi
4694
ce2cded5 4695fi
81ecdfbb
RW
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4697$as_echo "$ac_cv_path_GREP" >&6; }
4698 GREP="$ac_cv_path_GREP"
ce2cded5 4699
6bf9431b 4700
81ecdfbb
RW
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4702$as_echo_n "checking for egrep... " >&6; }
4703if test "${ac_cv_path_EGREP+set}" = set; then :
4704 $as_echo_n "(cached) " >&6
7357c5b6 4705else
81ecdfbb
RW
4706 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4707 then ac_cv_path_EGREP="$GREP -E"
4708 else
4709 if test -z "$EGREP"; then
4710 ac_path_EGREP_found=false
4711 # Loop through the user's path and test for each of PROGNAME-LIST
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4714do
4715 IFS=$as_save_IFS
4716 test -z "$as_dir" && as_dir=.
4717 for ac_prog in egrep; do
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4720 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4721# Check for GNU ac_path_EGREP and select it if it is found.
4722 # Check for GNU $ac_path_EGREP
4723case `"$ac_path_EGREP" --version 2>&1` in
4724*GNU*)
4725 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4726*)
4727 ac_count=0
4728 $as_echo_n 0123456789 >"conftest.in"
4729 while :
4730 do
4731 cat "conftest.in" "conftest.in" >"conftest.tmp"
4732 mv "conftest.tmp" "conftest.in"
4733 cp "conftest.in" "conftest.nl"
4734 $as_echo 'EGREP' >> "conftest.nl"
4735 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4737 as_fn_arith $ac_count + 1 && ac_count=$as_val
4738 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4739 # Best one so far, save it but keep looking for a better one
4740 ac_cv_path_EGREP="$ac_path_EGREP"
4741 ac_path_EGREP_max=$ac_count
4742 fi
4743 # 10*(2^10) chars as input seems more than enough
4744 test $ac_count -gt 10 && break
4745 done
4746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4747esac
4748
4749 $ac_path_EGREP_found && break 3
4750 done
4751 done
4752 done
4753IFS=$as_save_IFS
4754 if test -z "$ac_cv_path_EGREP"; then
4755 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4756 fi
4757else
4758 ac_cv_path_EGREP=$EGREP
4759fi
4760
4761 fi
4762fi
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4764$as_echo "$ac_cv_path_EGREP" >&6; }
4765 EGREP="$ac_cv_path_EGREP"
4766
4767
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4769$as_echo_n "checking for ANSI C header files... " >&6; }
4770if test "${ac_cv_header_stdc+set}" = set; then :
4771 $as_echo_n "(cached) " >&6
4772else
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4774/* end confdefs.h. */
4775#include <stdlib.h>
4776#include <stdarg.h>
4777#include <string.h>
4778#include <float.h>
4779
4780int
4781main ()
4782{
4783
4784 ;
4785 return 0;
4786}
4787_ACEOF
81ecdfbb 4788if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4789 ac_cv_header_stdc=yes
4790else
81ecdfbb 4791 ac_cv_header_stdc=no
7357c5b6 4792fi
81ecdfbb 4793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6
AM
4794
4795if test $ac_cv_header_stdc = yes; then
4796 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4798/* end confdefs.h. */
4799#include <string.h>
4800
4801_ACEOF
4802if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4803 $EGREP "memchr" >/dev/null 2>&1; then :
4804
7357c5b6
AM
4805else
4806 ac_cv_header_stdc=no
4807fi
4808rm -f conftest*
4809
4810fi
4811
4812if test $ac_cv_header_stdc = yes; then
4813 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4815/* end confdefs.h. */
4816#include <stdlib.h>
4817
4818_ACEOF
4819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4820 $EGREP "free" >/dev/null 2>&1; then :
4821
7357c5b6
AM
4822else
4823 ac_cv_header_stdc=no
4824fi
4825rm -f conftest*
4826
4827fi
4828
4829if test $ac_cv_header_stdc = yes; then
4830 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4831 if test "$cross_compiling" = yes; then :
7357c5b6 4832 :
ce2cded5 4833else
81ecdfbb 4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4835/* end confdefs.h. */
4836#include <ctype.h>
81ecdfbb 4837#include <stdlib.h>
7357c5b6
AM
4838#if ((' ' & 0x0FF) == 0x020)
4839# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4840# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4841#else
4842# define ISLOWER(c) \
4843 (('a' <= (c) && (c) <= 'i') \
4844 || ('j' <= (c) && (c) <= 'r') \
4845 || ('s' <= (c) && (c) <= 'z'))
4846# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4847#endif
6bf9431b 4848
7357c5b6
AM
4849#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4850int
4851main ()
4852{
4853 int i;
4854 for (i = 0; i < 256; i++)
4855 if (XOR (islower (i), ISLOWER (i))
4856 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4857 return 2;
4858 return 0;
7357c5b6
AM
4859}
4860_ACEOF
81ecdfbb 4861if ac_fn_c_try_run "$LINENO"; then :
6bf9431b 4862
81ecdfbb
RW
4863else
4864 ac_cv_header_stdc=no
7357c5b6 4865fi
81ecdfbb
RW
4866rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4867 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4868fi
81ecdfbb 4869
7357c5b6
AM
4870fi
4871fi
81ecdfbb
RW
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4873$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4874if test $ac_cv_header_stdc = yes; then
6bf9431b 4875
81ecdfbb 4876$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4877
7357c5b6 4878fi
d7040cdb 4879
7357c5b6 4880# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
4881for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4882 inttypes.h stdint.h unistd.h
81ecdfbb
RW
4883do :
4884 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4885ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4886"
4887eval as_val=\$$as_ac_Header
4888 if test "x$as_val" = x""yes; then :
7357c5b6 4889 cat >>confdefs.h <<_ACEOF
81ecdfbb 4890#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 4891_ACEOF
d7040cdb 4892
7357c5b6 4893fi
d7040cdb 4894
7357c5b6 4895done
d7040cdb
SE
4896
4897
4898
81ecdfbb
RW
4899 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4900if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
4901 MINIX=yes
4902else
4903 MINIX=
4904fi
d7040cdb
SE
4905
4906
7357c5b6 4907 if test "$MINIX" = yes; then
d7040cdb 4908
81ecdfbb 4909$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb 4910
d7040cdb 4911
81ecdfbb 4912$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb 4913
d7040cdb 4914
81ecdfbb 4915$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4916
ce2cded5 4917 fi
d7040cdb 4918
d7040cdb 4919
81ecdfbb
RW
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4921$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4922if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
ce2cded5 4924else
81ecdfbb 4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4926/* end confdefs.h. */
d7040cdb 4927
7357c5b6
AM
4928# define __EXTENSIONS__ 1
4929 $ac_includes_default
4930int
4931main ()
4932{
d7040cdb 4933
7357c5b6
AM
4934 ;
4935 return 0;
4936}
4937_ACEOF
81ecdfbb 4938if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4939 ac_cv_safe_to_define___extensions__=yes
4940else
81ecdfbb 4941 ac_cv_safe_to_define___extensions__=no
ce2cded5 4942fi
81ecdfbb 4943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4944fi
81ecdfbb
RW
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4946$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4947 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4948 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d7040cdb 4949
81ecdfbb 4950 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d7040cdb 4951
81ecdfbb 4952 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
d7040cdb 4953
81ecdfbb 4954 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d7040cdb 4955
81ecdfbb 4956 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d7040cdb 4957
d7040cdb 4958
d053aef8 4959
81ecdfbb
RW
4960
4961# Check whether --enable-largefile was given.
4962if test "${enable_largefile+set}" = set; then :
4963 enableval=$enable_largefile;
4964fi
4965
d053aef8
JK
4966if test "$enable_largefile" != no; then
4967
81ecdfbb
RW
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4969$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4970if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4971 $as_echo_n "(cached) " >&6
d053aef8
JK
4972else
4973 ac_cv_sys_largefile_CC=no
4974 if test "$GCC" != yes; then
4975 ac_save_CC=$CC
4976 while :; do
81ecdfbb
RW
4977 # IRIX 6.2 and later do not support large files by default,
4978 # so use the C compiler's -n32 option if that helps.
4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
4980/* end confdefs.h. */
4981#include <sys/types.h>
4982 /* Check that off_t can represent 2**63 - 1 correctly.
4983 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4984 since some C++ compilers masquerading as C compilers
4985 incorrectly reject 9223372036854775807. */
4986#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4987 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4988 && LARGE_OFF_T % 2147483647 == 1)
4989 ? 1 : -1];
4990int
4991main ()
4992{
4993
4994 ;
4995 return 0;
4996}
4997_ACEOF
81ecdfbb 4998 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 4999 break
d053aef8 5000fi
81ecdfbb
RW
5001rm -f core conftest.err conftest.$ac_objext
5002 CC="$CC -n32"
5003 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5004 ac_cv_sys_largefile_CC=' -n32'; break
d053aef8 5005fi
81ecdfbb 5006rm -f core conftest.err conftest.$ac_objext
d053aef8
JK
5007 break
5008 done
5009 CC=$ac_save_CC
5010 rm -f conftest.$ac_ext
5011 fi
5012fi
81ecdfbb
RW
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5014$as_echo "$ac_cv_sys_largefile_CC" >&6; }
d053aef8
JK
5015 if test "$ac_cv_sys_largefile_CC" != no; then
5016 CC=$CC$ac_cv_sys_largefile_CC
5017 fi
5018
81ecdfbb
RW
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5020$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5021if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
d053aef8
JK
5023else
5024 while :; do
81ecdfbb 5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5026/* end confdefs.h. */
5027#include <sys/types.h>
5028 /* Check that off_t can represent 2**63 - 1 correctly.
5029 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5030 since some C++ compilers masquerading as C compilers
5031 incorrectly reject 9223372036854775807. */
5032#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5033 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5034 && LARGE_OFF_T % 2147483647 == 1)
5035 ? 1 : -1];
5036int
5037main ()
5038{
5039
5040 ;
5041 return 0;
5042}
5043_ACEOF
81ecdfbb
RW
5044if ac_fn_c_try_compile "$LINENO"; then :
5045 ac_cv_sys_file_offset_bits=no; break
d053aef8 5046fi
81ecdfbb
RW
5047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5049/* end confdefs.h. */
5050#define _FILE_OFFSET_BITS 64
5051#include <sys/types.h>
5052 /* Check that off_t can represent 2**63 - 1 correctly.
5053 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5054 since some C++ compilers masquerading as C compilers
5055 incorrectly reject 9223372036854775807. */
5056#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5057 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5058 && LARGE_OFF_T % 2147483647 == 1)
5059 ? 1 : -1];
5060int
5061main ()
5062{
5063
5064 ;
5065 return 0;
5066}
5067_ACEOF
81ecdfbb 5068if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5069 ac_cv_sys_file_offset_bits=64; break
d053aef8 5070fi
81ecdfbb
RW
5071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5072 ac_cv_sys_file_offset_bits=unknown
d053aef8
JK
5073 break
5074done
5075fi
81ecdfbb
RW
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5077$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5078case $ac_cv_sys_file_offset_bits in #(
5079 no | unknown) ;;
5080 *)
d053aef8
JK
5081cat >>confdefs.h <<_ACEOF
5082#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5083_ACEOF
81ecdfbb
RW
5084;;
5085esac
5086rm -rf conftest*
5087 if test $ac_cv_sys_file_offset_bits = unknown; then
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5089$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5090if test "${ac_cv_sys_large_files+set}" = set; then :
5091 $as_echo_n "(cached) " >&6
d053aef8
JK
5092else
5093 while :; do
81ecdfbb 5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5095/* end confdefs.h. */
5096#include <sys/types.h>
5097 /* Check that off_t can represent 2**63 - 1 correctly.
5098 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5099 since some C++ compilers masquerading as C compilers
5100 incorrectly reject 9223372036854775807. */
5101#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5102 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5103 && LARGE_OFF_T % 2147483647 == 1)
5104 ? 1 : -1];
5105int
5106main ()
5107{
5108
5109 ;
5110 return 0;
5111}
5112_ACEOF
81ecdfbb
RW
5113if ac_fn_c_try_compile "$LINENO"; then :
5114 ac_cv_sys_large_files=no; break
d053aef8 5115fi
81ecdfbb
RW
5116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5118/* end confdefs.h. */
5119#define _LARGE_FILES 1
5120#include <sys/types.h>
5121 /* Check that off_t can represent 2**63 - 1 correctly.
5122 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5123 since some C++ compilers masquerading as C compilers
5124 incorrectly reject 9223372036854775807. */
5125#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5126 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5127 && LARGE_OFF_T % 2147483647 == 1)
5128 ? 1 : -1];
5129int
5130main ()
5131{
5132
5133 ;
5134 return 0;
5135}
81ecdfbb
RW
5136_ACEOF
5137if ac_fn_c_try_compile "$LINENO"; then :
5138 ac_cv_sys_large_files=1; break
d053aef8 5139fi
81ecdfbb
RW
5140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141 ac_cv_sys_large_files=unknown
d053aef8
JK
5142 break
5143done
5144fi
81ecdfbb
RW
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5146$as_echo "$ac_cv_sys_large_files" >&6; }
5147case $ac_cv_sys_large_files in #(
5148 no | unknown) ;;
5149 *)
d053aef8
JK
5150cat >>confdefs.h <<_ACEOF
5151#define _LARGE_FILES $ac_cv_sys_large_files
5152_ACEOF
81ecdfbb 5153;;
7357c5b6 5154esac
81ecdfbb 5155rm -rf conftest*
7357c5b6
AM
5156 fi
5157fi
d7040cdb 5158
d7040cdb 5159
ce2cded5 5160
b214d478
SE
5161case `pwd` in
5162 *\ * | *\ *)
81ecdfbb
RW
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5164$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
b214d478 5165esac
d7040cdb
SE
5166
5167
6bf9431b 5168
b214d478
SE
5169macro_version='2.2.6'
5170macro_revision='1.3012'
ce2cded5 5171
d7040cdb 5172
d7040cdb 5173
d7040cdb 5174
d7040cdb 5175
7357c5b6 5176
6bf9431b 5177
6bf9431b 5178
6bf9431b 5179
6bf9431b 5180
d7040cdb 5181
d7040cdb 5182
6bf9431b 5183
b214d478 5184ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 5185
81ecdfbb
RW
5186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5187$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5188if test "${ac_cv_path_SED+set}" = set; then :
5189 $as_echo_n "(cached) " >&6
5190else
5191 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5192 for ac_i in 1 2 3 4 5 6 7; do
5193 ac_script="$ac_script$as_nl$ac_script"
5194 done
5195 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5196 { ac_script=; unset ac_script;}
5197 if test -z "$SED"; then
5198 ac_path_SED_found=false
5199 # Loop through the user's path and test for each of PROGNAME-LIST
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5201for as_dir in $PATH
5202do
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
81ecdfbb 5205 for ac_prog in sed gsed; do
7357c5b6 5206 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5207 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5208 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5209# Check for GNU ac_path_SED and select it if it is found.
5210 # Check for GNU $ac_path_SED
5211case `"$ac_path_SED" --version 2>&1` in
5212*GNU*)
5213 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5214*)
5215 ac_count=0
5216 $as_echo_n 0123456789 >"conftest.in"
5217 while :
5218 do
5219 cat "conftest.in" "conftest.in" >"conftest.tmp"
5220 mv "conftest.tmp" "conftest.in"
5221 cp "conftest.in" "conftest.nl"
5222 $as_echo '' >> "conftest.nl"
5223 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5225 as_fn_arith $ac_count + 1 && ac_count=$as_val
5226 if test $ac_count -gt ${ac_path_SED_max-0}; then
5227 # Best one so far, save it but keep looking for a better one
5228 ac_cv_path_SED="$ac_path_SED"
5229 ac_path_SED_max=$ac_count
5230 fi
5231 # 10*(2^10) chars as input seems more than enough
5232 test $ac_count -gt 10 && break
5233 done
5234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5235esac
5236
5237 $ac_path_SED_found && break 3
7357c5b6
AM
5238 done
5239 done
81ecdfbb 5240 done
7357c5b6 5241IFS=$as_save_IFS
81ecdfbb
RW
5242 if test -z "$ac_cv_path_SED"; then
5243 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5244 fi
81ecdfbb
RW
5245else
5246 ac_cv_path_SED=$SED
7357c5b6
AM
5247fi
5248
81ecdfbb
RW
5249fi
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5251$as_echo "$ac_cv_path_SED" >&6; }
5252 SED="$ac_cv_path_SED"
5253 rm -f conftest.sed
7357c5b6
AM
5254
5255test -z "$SED" && SED=sed
5256Xsed="$SED -e 1s/^X//"
5257
5258
5259
d7040cdb 5260
d7040cdb 5261
d7040cdb 5262
d7040cdb 5263
d7040cdb 5264
d7040cdb 5265
d7040cdb 5266
6bf9431b 5267
81ecdfbb
RW
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5269$as_echo_n "checking for fgrep... " >&6; }
5270if test "${ac_cv_path_FGREP+set}" = set; then :
5271 $as_echo_n "(cached) " >&6
7357c5b6 5272else
81ecdfbb
RW
5273 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5274 then ac_cv_path_FGREP="$GREP -F"
5275 else
5276 if test -z "$FGREP"; then
5277 ac_path_FGREP_found=false
5278 # Loop through the user's path and test for each of PROGNAME-LIST
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5281do
5282 IFS=$as_save_IFS
5283 test -z "$as_dir" && as_dir=.
5284 for ac_prog in fgrep; do
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5287 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5288# Check for GNU ac_path_FGREP and select it if it is found.
5289 # Check for GNU $ac_path_FGREP
5290case `"$ac_path_FGREP" --version 2>&1` in
5291*GNU*)
5292 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5293*)
5294 ac_count=0
5295 $as_echo_n 0123456789 >"conftest.in"
5296 while :
5297 do
5298 cat "conftest.in" "conftest.in" >"conftest.tmp"
5299 mv "conftest.tmp" "conftest.in"
5300 cp "conftest.in" "conftest.nl"
5301 $as_echo 'FGREP' >> "conftest.nl"
5302 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5303 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5304 as_fn_arith $ac_count + 1 && ac_count=$as_val
5305 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5306 # Best one so far, save it but keep looking for a better one
5307 ac_cv_path_FGREP="$ac_path_FGREP"
5308 ac_path_FGREP_max=$ac_count
7357c5b6 5309 fi
81ecdfbb
RW
5310 # 10*(2^10) chars as input seems more than enough
5311 test $ac_count -gt 10 && break
5312 done
5313 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5314esac
5315
5316 $ac_path_FGREP_found && break 3
5317 done
5318 done
5319 done
5320IFS=$as_save_IFS
5321 if test -z "$ac_cv_path_FGREP"; then
5322 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5323 fi
5324else
5325 ac_cv_path_FGREP=$FGREP
5326fi
5327
5328 fi
6bf9431b 5329fi
81ecdfbb
RW
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5331$as_echo "$ac_cv_path_FGREP" >&6; }
5332 FGREP="$ac_cv_path_FGREP"
d7040cdb 5333
6bf9431b 5334
7357c5b6 5335test -z "$GREP" && GREP=grep
252b5132 5336
6bf9431b 5337
252b5132 5338
252b5132 5339
252b5132 5340
252b5132 5341
252b5132
RH
5342
5343
6bf9431b 5344
d7040cdb 5345
6bf9431b 5346
6bf9431b 5347
7357c5b6
AM
5348
5349
5350
5351
5352
5353
5354
81ecdfbb
RW
5355# Check whether --with-gnu-ld was given.
5356if test "${with_gnu_ld+set}" = set; then :
5357 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5358else
5359 with_gnu_ld=no
81ecdfbb
RW
5360fi
5361
7357c5b6
AM
5362ac_prog=ld
5363if test "$GCC" = yes; then
5364 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5366$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5367 case $host in
5368 *-*-mingw*)
5369 # gcc leaves a trailing carriage return which upsets mingw
5370 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5371 *)
5372 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5373 esac
5374 case $ac_prog in
5375 # Accept absolute paths.
5376 [\\/]* | ?:[\\/]*)
5377 re_direlt='/[^/][^/]*/\.\./'
5378 # Canonicalize the pathname of ld
5379 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5380 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5381 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5382 done
5383 test -z "$LD" && LD="$ac_prog"
5384 ;;
5385 "")
5386 # If it fails, then pretend we aren't using GCC.
5387 ac_prog=ld
5388 ;;
5389 *)
5390 # If it is relative, then search for the first ld in PATH.
5391 with_gnu_ld=unknown
5392 ;;
5393 esac
5394elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5396$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 5397else
81ecdfbb
RW
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5399$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5400fi
81ecdfbb
RW
5401if test "${lt_cv_path_LD+set}" = set; then :
5402 $as_echo_n "(cached) " >&6
d7040cdb 5403else
7357c5b6
AM
5404 if test -z "$LD"; then
5405 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5406 for ac_dir in $PATH; do
5407 IFS="$lt_save_ifs"
5408 test -z "$ac_dir" && ac_dir=.
5409 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5410 lt_cv_path_LD="$ac_dir/$ac_prog"
5411 # Check to see if the program is GNU ld. I'd rather use --version,
5412 # but apparently some variants of GNU ld only accept -v.
5413 # Break only if it was the GNU/non-GNU ld that we prefer.
5414 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5415 *GNU* | *'with BFD'*)
5416 test "$with_gnu_ld" != no && break
5417 ;;
5418 *)
5419 test "$with_gnu_ld" != yes && break
5420 ;;
5421 esac
5422 fi
5423 done
5424 IFS="$lt_save_ifs"
6bf9431b 5425else
7357c5b6 5426 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6bf9431b 5427fi
6bf9431b 5428fi
7357c5b6
AM
5429
5430LD="$lt_cv_path_LD"
5431if test -n "$LD"; then
81ecdfbb
RW
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5433$as_echo "$LD" >&6; }
ce2cded5 5434else
81ecdfbb
RW
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436$as_echo "no" >&6; }
6bf9431b 5437fi
81ecdfbb
RW
5438test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5440$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5441if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
ce2cded5 5443else
7357c5b6
AM
5444 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5445case `$LD -v 2>&1 </dev/null` in
5446*GNU* | *'with BFD'*)
5447 lt_cv_prog_gnu_ld=yes
5448 ;;
5449*)
5450 lt_cv_prog_gnu_ld=no
5451 ;;
5452esac
ce2cded5 5453fi
81ecdfbb
RW
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5455$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 5456with_gnu_ld=$lt_cv_prog_gnu_ld
20e95c23
DJ
5457
5458
5459
20e95c23 5460
d7040cdb
SE
5461
5462
5463
5464
5465
81ecdfbb
RW
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5467$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5468if test "${lt_cv_path_NM+set}" = set; then :
5469 $as_echo_n "(cached) " >&6
ce2cded5 5470else
7357c5b6
AM
5471 if test -n "$NM"; then
5472 # Let the user override the test.
5473 lt_cv_path_NM="$NM"
ce2cded5 5474else
7357c5b6
AM
5475 lt_nm_to_check="${ac_tool_prefix}nm"
5476 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5477 lt_nm_to_check="$lt_nm_to_check nm"
ce2cded5 5478 fi
7357c5b6
AM
5479 for lt_tmp_nm in $lt_nm_to_check; do
5480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5481 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5482 IFS="$lt_save_ifs"
5483 test -z "$ac_dir" && ac_dir=.
5484 tmp_nm="$ac_dir/$lt_tmp_nm"
5485 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5486 # Check to see if the nm accepts a BSD-compat flag.
5487 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5488 # nm: unknown option "B" ignored
5489 # Tru64's nm complains that /dev/null is an invalid object file
5490 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5491 */dev/null* | *'Invalid file or object type'*)
5492 lt_cv_path_NM="$tmp_nm -B"
5493 break
5494 ;;
5495 *)
5496 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5497 */dev/null*)
5498 lt_cv_path_NM="$tmp_nm -p"
5499 break
5500 ;;
5501 *)
5502 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5503 continue # so that we can try to find one that supports BSD flags
5504 ;;
5505 esac
5506 ;;
5507 esac
5508 fi
5509 done
5510 IFS="$lt_save_ifs"
5511 done
5512 : ${lt_cv_path_NM=no}
ce2cded5
L
5513fi
5514fi
81ecdfbb
RW
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5516$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
5517if test "$lt_cv_path_NM" != "no"; then
5518 NM="$lt_cv_path_NM"
ce2cded5 5519else
7357c5b6
AM
5520 # Didn't find any BSD compatible name lister, look for dumpbin.
5521 if test -n "$ac_tool_prefix"; then
5522 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5523 do
5524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5525set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527$as_echo_n "checking for $ac_word... " >&6; }
5528if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5529 $as_echo_n "(cached) " >&6
ce2cded5 5530else
7357c5b6
AM
5531 if test -n "$DUMPBIN"; then
5532 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
5533else
5534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535for as_dir in $PATH
5536do
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5541 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5543 break 2
5544 fi
5545done
81ecdfbb
RW
5546 done
5547IFS=$as_save_IFS
d7040cdb 5548
ce2cded5
L
5549fi
5550fi
7357c5b6
AM
5551DUMPBIN=$ac_cv_prog_DUMPBIN
5552if test -n "$DUMPBIN"; then
81ecdfbb
RW
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5554$as_echo "$DUMPBIN" >&6; }
ce2cded5 5555else
81ecdfbb
RW
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557$as_echo "no" >&6; }
ce2cded5 5558fi
d7040cdb 5559
81ecdfbb 5560
7357c5b6
AM
5561 test -n "$DUMPBIN" && break
5562 done
ce2cded5 5563fi
7357c5b6
AM
5564if test -z "$DUMPBIN"; then
5565 ac_ct_DUMPBIN=$DUMPBIN
5566 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5567do
5568 # Extract the first word of "$ac_prog", so it can be a program name with args.
5569set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571$as_echo_n "checking for $ac_word... " >&6; }
5572if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
ce2cded5 5574else
7357c5b6
AM
5575 if test -n "$ac_ct_DUMPBIN"; then
5576 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
5577else
5578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579for as_dir in $PATH
5580do
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5585 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5587 break 2
5588 fi
5589done
81ecdfbb
RW
5590 done
5591IFS=$as_save_IFS
d7040cdb 5592
ce2cded5
L
5593fi
5594fi
7357c5b6
AM
5595ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5596if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5598$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 5599else
81ecdfbb
RW
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601$as_echo "no" >&6; }
20e95c23 5602fi
20e95c23 5603
81ecdfbb 5604
7357c5b6 5605 test -n "$ac_ct_DUMPBIN" && break
ce2cded5
L
5606done
5607
81ecdfbb
RW
5608 if test "x$ac_ct_DUMPBIN" = x; then
5609 DUMPBIN=":"
5610 else
5611 case $cross_compiling:$ac_tool_warned in
5612yes:)
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5615ac_tool_warned=yes ;;
5616esac
5617 DUMPBIN=$ac_ct_DUMPBIN
5618 fi
d7040cdb 5619fi
7357c5b6
AM
5620
5621
5622 if test "$DUMPBIN" != ":"; then
5623 NM="$DUMPBIN"
5624 fi
20e95c23 5625fi
7357c5b6
AM
5626test -z "$NM" && NM=nm
5627
5628
5629
5630
5631
5632
81ecdfbb
RW
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5634$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5635if test "${lt_cv_nm_interface+set}" = set; then :
5636 $as_echo_n "(cached) " >&6
ce2cded5 5637else
7357c5b6
AM
5638 lt_cv_nm_interface="BSD nm"
5639 echo "int some_variable = 0;" > conftest.$ac_ext
81ecdfbb 5640 (eval echo "\"\$as_me:5640: $ac_compile\"" >&5)
7357c5b6
AM
5641 (eval "$ac_compile" 2>conftest.err)
5642 cat conftest.err >&5
81ecdfbb 5643 (eval echo "\"\$as_me:5643: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
5644 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5645 cat conftest.err >&5
81ecdfbb 5646 (eval echo "\"\$as_me:5646: output\"" >&5)
7357c5b6
AM
5647 cat conftest.out >&5
5648 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5649 lt_cv_nm_interface="MS dumpbin"
5650 fi
5651 rm -f conftest*
ce2cded5 5652fi
81ecdfbb
RW
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5654$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 5655
81ecdfbb
RW
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5657$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
5658LN_S=$as_ln_s
5659if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5661$as_echo "yes" >&6; }
ce2cded5 5662else
81ecdfbb
RW
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5664$as_echo "no, using $LN_S" >&6; }
ce2cded5 5665fi
d7040cdb 5666
7357c5b6 5667# find the maximum length of command line arguments
81ecdfbb
RW
5668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5669$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5670if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5671 $as_echo_n "(cached) " >&6
7357c5b6
AM
5672else
5673 i=0
5674 teststring="ABCD"
d7040cdb 5675
7357c5b6
AM
5676 case $build_os in
5677 msdosdjgpp*)
5678 # On DJGPP, this test can blow up pretty badly due to problems in libc
5679 # (any single argument exceeding 2000 bytes causes a buffer overrun
5680 # during glob expansion). Even if it were fixed, the result of this
5681 # check would be larger than it should be.
5682 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5683 ;;
d7040cdb 5684
7357c5b6
AM
5685 gnu*)
5686 # Under GNU Hurd, this test is not required because there is
5687 # no limit to the length of command line arguments.
5688 # Libtool will interpret -1 as no limit whatsoever
5689 lt_cv_sys_max_cmd_len=-1;
5690 ;;
d7040cdb 5691
b214d478 5692 cygwin* | mingw* | cegcc*)
7357c5b6
AM
5693 # On Win9x/ME, this test blows up -- it succeeds, but takes
5694 # about 5 minutes as the teststring grows exponentially.
5695 # Worse, since 9x/ME are not pre-emptively multitasking,
5696 # you end up with a "frozen" computer, even though with patience
5697 # the test eventually succeeds (with a max line length of 256k).
5698 # Instead, let's just punt: use the minimum linelength reported by
5699 # all of the supported platforms: 8192 (on NT/2K/XP).
5700 lt_cv_sys_max_cmd_len=8192;
5701 ;;
d7040cdb 5702
7357c5b6
AM
5703 amigaos*)
5704 # On AmigaOS with pdksh, this test takes hours, literally.
5705 # So we just punt and use a minimum line length of 8192.
5706 lt_cv_sys_max_cmd_len=8192;
5707 ;;
d7040cdb 5708
7357c5b6
AM
5709 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5710 # This has been around since 386BSD, at least. Likely further.
5711 if test -x /sbin/sysctl; then
5712 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5713 elif test -x /usr/sbin/sysctl; then
5714 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5715 else
5716 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5717 fi
5718 # And add a safety zone
5719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5721 ;;
d7040cdb 5722
7357c5b6
AM
5723 interix*)
5724 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5725 lt_cv_sys_max_cmd_len=196608
5726 ;;
d7040cdb 5727
7357c5b6
AM
5728 osf*)
5729 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5730 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5731 # nice to cause kernel panics so lets avoid the loop below.
5732 # First set a reasonable default.
5733 lt_cv_sys_max_cmd_len=16384
5734 #
5735 if test -x /sbin/sysconfig; then
5736 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5737 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5738 esac
5739 fi
5740 ;;
5741 sco3.2v5*)
5742 lt_cv_sys_max_cmd_len=102400
5743 ;;
5744 sysv5* | sco5v6* | sysv4.2uw2*)
5745 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5746 if test -n "$kargmax"; then
5747 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5748 else
5749 lt_cv_sys_max_cmd_len=32768
5750 fi
ce2cded5
L
5751 ;;
5752 *)
b214d478
SE
5753 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5754 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
5755 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5756 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5757 else
5758 # Make teststring a little bigger before we do anything with it.
5759 # a 1K string should be a reasonable start.
5760 for i in 1 2 3 4 5 6 7 8 ; do
5761 teststring=$teststring$teststring
5762 done
5763 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5764 # If test is not a shell built-in, we'll probably end up computing a
5765 # maximum length that is only half of the actual maximum length, but
5766 # we can't tell.
5767 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5768 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5769 test $i != 17 # 1/2 MB should be enough
5770 do
5771 i=`expr $i + 1`
5772 teststring=$teststring$teststring
5773 done
5774 # Only check the string length outside the loop.
5775 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5776 teststring=
5777 # Add a significant safety factor because C++ compilers can tack on
5778 # massive amounts of additional arguments before passing them to the
5779 # linker. It appears as though 1/2 is a usable value.
5780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5781 fi
ce2cded5
L
5782 ;;
5783 esac
d7040cdb 5784
7357c5b6 5785fi
d7040cdb 5786
7357c5b6 5787if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5789$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 5790else
81ecdfbb
RW
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5792$as_echo "none" >&6; }
7357c5b6
AM
5793fi
5794max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
5795
5796
5797
5798
5799
5800
7357c5b6
AM
5801: ${CP="cp -f"}
5802: ${MV="mv -f"}
5803: ${RM="rm -f"}
d7040cdb 5804
81ecdfbb
RW
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5806$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
5807# Try some XSI features
5808xsi_shell=no
5809( _lt_dummy="a/b/c"
5810 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
5811 = c,a/b,, \
5812 && eval 'test $(( 1 + 1 )) -eq 2 \
5813 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 5814 && xsi_shell=yes
81ecdfbb
RW
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5816$as_echo "$xsi_shell" >&6; }
d7040cdb
SE
5817
5818
81ecdfbb
RW
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5820$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
5821lt_shell_append=no
5822( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5823 >/dev/null 2>&1 \
5824 && lt_shell_append=yes
81ecdfbb
RW
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5826$as_echo "$lt_shell_append" >&6; }
d7040cdb 5827
d7040cdb 5828
7357c5b6
AM
5829if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5830 lt_unset=unset
5831else
5832 lt_unset=false
5833fi
d7040cdb 5834
d7040cdb 5835
d7040cdb 5836
d7040cdb 5837
d7040cdb 5838
7357c5b6
AM
5839# test EBCDIC or ASCII
5840case `echo X|tr X '\101'` in
5841 A) # ASCII based system
5842 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5843 lt_SP2NL='tr \040 \012'
5844 lt_NL2SP='tr \015\012 \040\040'
5845 ;;
5846 *) # EBCDIC based system
5847 lt_SP2NL='tr \100 \n'
5848 lt_NL2SP='tr \r\n \100\100'
5849 ;;
5850esac
d7040cdb 5851
d7040cdb 5852
d7040cdb 5853
d7040cdb 5854
d7040cdb 5855
d7040cdb
SE
5856
5857
5af11cab 5858
d7040cdb 5859
81ecdfbb
RW
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5861$as_echo_n "checking for $LD option to reload object files... " >&6; }
5862if test "${lt_cv_ld_reload_flag+set}" = set; then :
5863 $as_echo_n "(cached) " >&6
7357c5b6
AM
5864else
5865 lt_cv_ld_reload_flag='-r'
5866fi
81ecdfbb
RW
5867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5868$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
5869reload_flag=$lt_cv_ld_reload_flag
5870case $reload_flag in
5871"" | " "*) ;;
5872*) reload_flag=" $reload_flag" ;;
5873esac
5874reload_cmds='$LD$reload_flag -o $output$reload_objs'
5875case $host_os in
5876 darwin*)
5877 if test "$GCC" = yes; then
5878 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5879 else
5880 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5881 fi
5882 ;;
5883esac
20e95c23 5884
6bf9431b 5885
20e95c23
DJ
5886
5887
20e95c23 5888
20e95c23 5889
ce2cded5 5890
ce2cded5 5891
ce2cded5 5892
b214d478
SE
5893if test -n "$ac_tool_prefix"; then
5894 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5895set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897$as_echo_n "checking for $ac_word... " >&6; }
5898if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5899 $as_echo_n "(cached) " >&6
b214d478
SE
5900else
5901 if test -n "$OBJDUMP"; then
5902 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5903else
5904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905for as_dir in $PATH
5906do
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 5911 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
5913 break 2
5914 fi
5915done
81ecdfbb
RW
5916 done
5917IFS=$as_save_IFS
b214d478
SE
5918
5919fi
5920fi
5921OBJDUMP=$ac_cv_prog_OBJDUMP
5922if test -n "$OBJDUMP"; then
81ecdfbb
RW
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5924$as_echo "$OBJDUMP" >&6; }
b214d478 5925else
81ecdfbb
RW
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927$as_echo "no" >&6; }
b214d478
SE
5928fi
5929
81ecdfbb 5930
b214d478
SE
5931fi
5932if test -z "$ac_cv_prog_OBJDUMP"; then
5933 ac_ct_OBJDUMP=$OBJDUMP
5934 # Extract the first word of "objdump", so it can be a program name with args.
5935set dummy objdump; ac_word=$2
81ecdfbb
RW
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937$as_echo_n "checking for $ac_word... " >&6; }
5938if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5939 $as_echo_n "(cached) " >&6
b214d478
SE
5940else
5941 if test -n "$ac_ct_OBJDUMP"; then
5942 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5943else
5944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945for as_dir in $PATH
5946do
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 5951 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
5953 break 2
5954 fi
5955done
81ecdfbb
RW
5956 done
5957IFS=$as_save_IFS
b214d478 5958
b214d478
SE
5959fi
5960fi
5961ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5962if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5964$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 5965else
81ecdfbb
RW
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967$as_echo "no" >&6; }
b214d478
SE
5968fi
5969
81ecdfbb
RW
5970 if test "x$ac_ct_OBJDUMP" = x; then
5971 OBJDUMP="false"
5972 else
5973 case $cross_compiling:$ac_tool_warned in
5974yes:)
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5977ac_tool_warned=yes ;;
5978esac
5979 OBJDUMP=$ac_ct_OBJDUMP
5980 fi
b214d478
SE
5981else
5982 OBJDUMP="$ac_cv_prog_OBJDUMP"
5983fi
5984
5985test -z "$OBJDUMP" && OBJDUMP=objdump
5986
5987
5988
5989
5990
5991
5992
5993
ce2cded5 5994
81ecdfbb
RW
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5996$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5997if test "${lt_cv_deplibs_check_method+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
6bf9431b 5999else
7357c5b6
AM
6000 lt_cv_file_magic_cmd='$MAGIC_CMD'
6001lt_cv_file_magic_test_file=
6002lt_cv_deplibs_check_method='unknown'
6003# Need to set the preceding variable on all platforms that support
6004# interlibrary dependencies.
6005# 'none' -- dependencies not supported.
6006# `unknown' -- same as none, but documents that we really don't know.
6007# 'pass_all' -- all dependencies passed with no checks.
6008# 'test_compile' -- check by making test program.
6009# 'file_magic [[regex]]' -- check by looking for files in library path
6010# which responds to the $file_magic_cmd with a given extended regex.
6011# If you have `file' or equivalent on your system and you're not sure
6012# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 6013
ce2cded5 6014case $host_os in
7357c5b6
AM
6015aix[4-9]*)
6016 lt_cv_deplibs_check_method=pass_all
ce2cded5 6017 ;;
7357c5b6
AM
6018
6019beos*)
6020 lt_cv_deplibs_check_method=pass_all
ce2cded5 6021 ;;
7357c5b6
AM
6022
6023bsdi[45]*)
6024 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6025 lt_cv_file_magic_cmd='/usr/bin/file -L'
6026 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6027 ;;
7357c5b6
AM
6028
6029cygwin*)
6030 # func_win32_libid is a shell function defined in ltmain.sh
6031 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6032 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6033 ;;
7357c5b6
AM
6034
6035mingw* | pw32*)
6036 # Base MSYS/MinGW do not provide the 'file' command needed by
6037 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6038 # unless we find 'file', for example because we are cross-compiling.
6039 if ( file / ) >/dev/null 2>&1; then
6040 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6041 lt_cv_file_magic_cmd='func_win32_libid'
6042 else
6043 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6044 lt_cv_file_magic_cmd='$OBJDUMP -f'
6045 fi
ce2cded5 6046 ;;
7357c5b6 6047
b214d478
SE
6048cegcc)
6049 # use the weaker test based on 'objdump'. See mingw*.
6050 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6051 lt_cv_file_magic_cmd='$OBJDUMP -f'
6052 ;;
6053
7357c5b6
AM
6054darwin* | rhapsody*)
6055 lt_cv_deplibs_check_method=pass_all
d7040cdb 6056 ;;
d7040cdb 6057
7357c5b6
AM
6058freebsd* | dragonfly*)
6059 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6060 case $host_cpu in
6061 i*86 )
6062 # Not sure whether the presence of OpenBSD here was a mistake.
6063 # Let's accept both of them until this is cleared up.
6064 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6065 lt_cv_file_magic_cmd=/usr/bin/file
6066 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6067 ;;
6068 esac
6069 else
6070 lt_cv_deplibs_check_method=pass_all
6071 fi
6072 ;;
20e95c23 6073
7357c5b6
AM
6074gnu*)
6075 lt_cv_deplibs_check_method=pass_all
6076 ;;
20e95c23 6077
7357c5b6
AM
6078hpux10.20* | hpux11*)
6079 lt_cv_file_magic_cmd=/usr/bin/file
6080 case $host_cpu in
6081 ia64*)
6082 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6083 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6084 ;;
6085 hppa*64*)
6086 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]'
6087 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6088 ;;
6089 *)
6090 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6091 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6092 ;;
6093 esac
6094 ;;
5af11cab 6095
7357c5b6
AM
6096interix[3-9]*)
6097 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 6099 ;;
20e95c23 6100
7357c5b6
AM
6101irix5* | irix6* | nonstopux*)
6102 case $LD in
6103 *-32|*"-32 ") libmagic=32-bit;;
6104 *-n32|*"-n32 ") libmagic=N32;;
6105 *-64|*"-64 ") libmagic=64-bit;;
6106 *) libmagic=never-match;;
6107 esac
6108 lt_cv_deplibs_check_method=pass_all
6109 ;;
d7040cdb 6110
7357c5b6 6111# This must be Linux ELF.
58e24671 6112linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
6113 lt_cv_deplibs_check_method=pass_all
6114 ;;
d7040cdb 6115
7357c5b6
AM
6116netbsd*)
6117 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6118 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 6119 else
7357c5b6 6120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
ce2cded5 6121 fi
7357c5b6 6122 ;;
d7040cdb 6123
7357c5b6
AM
6124newos6*)
6125 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6126 lt_cv_file_magic_cmd=/usr/bin/file
6127 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6128 ;;
d7040cdb 6129
7357c5b6
AM
6130*nto* | *qnx*)
6131 lt_cv_deplibs_check_method=pass_all
6132 ;;
d7040cdb 6133
7357c5b6
AM
6134openbsd*)
6135 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6137 else
6138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6139 fi
6140 ;;
d7040cdb 6141
7357c5b6
AM
6142osf3* | osf4* | osf5*)
6143 lt_cv_deplibs_check_method=pass_all
6144 ;;
d7040cdb 6145
7357c5b6
AM
6146rdos*)
6147 lt_cv_deplibs_check_method=pass_all
6148 ;;
d7040cdb 6149
7357c5b6
AM
6150solaris*)
6151 lt_cv_deplibs_check_method=pass_all
6152 ;;
d7040cdb 6153
7357c5b6
AM
6154sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6155 lt_cv_deplibs_check_method=pass_all
6156 ;;
d7040cdb 6157
7357c5b6
AM
6158sysv4 | sysv4.3*)
6159 case $host_vendor in
6160 motorola)
6161 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]'
6162 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6163 ;;
6164 ncr)
6165 lt_cv_deplibs_check_method=pass_all
6166 ;;
6167 sequent)
6168 lt_cv_file_magic_cmd='/bin/file'
6169 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6170 ;;
6171 sni)
6172 lt_cv_file_magic_cmd='/bin/file'
6173 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6174 lt_cv_file_magic_test_file=/lib/libc.so
6175 ;;
6176 siemens)
6177 lt_cv_deplibs_check_method=pass_all
6178 ;;
6179 pc)
6180 lt_cv_deplibs_check_method=pass_all
6181 ;;
6182 esac
6183 ;;
d7040cdb 6184
7357c5b6
AM
6185tpf*)
6186 lt_cv_deplibs_check_method=pass_all
6187 ;;
6188esac
d7040cdb 6189
ce2cded5 6190fi
81ecdfbb
RW
6191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6192$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
6193file_magic_cmd=$lt_cv_file_magic_cmd
6194deplibs_check_method=$lt_cv_deplibs_check_method
6195test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 6196
d7040cdb 6197
d7040cdb 6198
d7040cdb 6199
5af11cab 6200
20e95c23 6201
20e95c23 6202
20e95c23 6203
20e95c23
DJ
6204
6205
6206
20e95c23 6207
7357c5b6
AM
6208if test -n "$ac_tool_prefix"; then
6209 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6210set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212$as_echo_n "checking for $ac_word... " >&6; }
6213if test "${ac_cv_prog_AR+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
7357c5b6
AM
6215else
6216 if test -n "$AR"; then
6217 ac_cv_prog_AR="$AR" # Let the user override the test.
6218else
6219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220for as_dir in $PATH
6221do
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6226 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6228 break 2
ce2cded5 6229 fi
7357c5b6 6230done
81ecdfbb
RW
6231 done
6232IFS=$as_save_IFS
d5fbea21 6233
7357c5b6
AM
6234fi
6235fi
6236AR=$ac_cv_prog_AR
6237if test -n "$AR"; then
81ecdfbb
RW
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6239$as_echo "$AR" >&6; }
7357c5b6 6240else
81ecdfbb
RW
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242$as_echo "no" >&6; }
7357c5b6 6243fi
d5fbea21 6244
81ecdfbb 6245
7357c5b6
AM
6246fi
6247if test -z "$ac_cv_prog_AR"; then
6248 ac_ct_AR=$AR
6249 # Extract the first word of "ar", so it can be a program name with args.
6250set dummy ar; ac_word=$2
81ecdfbb
RW
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252$as_echo_n "checking for $ac_word... " >&6; }
6253if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6254 $as_echo_n "(cached) " >&6
ce2cded5 6255else
7357c5b6
AM
6256 if test -n "$ac_ct_AR"; then
6257 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6258else
6259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260for as_dir in $PATH
6261do
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6266 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6268 break 2
6269 fi
6270done
81ecdfbb
RW
6271 done
6272IFS=$as_save_IFS
d7040cdb 6273
7357c5b6
AM
6274fi
6275fi
6276ac_ct_AR=$ac_cv_prog_ac_ct_AR
6277if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6279$as_echo "$ac_ct_AR" >&6; }
ce2cded5 6280else
81ecdfbb
RW
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282$as_echo "no" >&6; }
ce2cded5 6283fi
d7040cdb 6284
81ecdfbb
RW
6285 if test "x$ac_ct_AR" = x; then
6286 AR="false"
6287 else
6288 case $cross_compiling:$ac_tool_warned in
6289yes:)
6290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6292ac_tool_warned=yes ;;
6293esac
6294 AR=$ac_ct_AR
6295 fi
7357c5b6
AM
6296else
6297 AR="$ac_cv_prog_AR"
ce2cded5 6298fi
d7040cdb 6299
7357c5b6
AM
6300test -z "$AR" && AR=ar
6301test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb 6302
7357c5b6
AM
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313if test -n "$ac_tool_prefix"; then
6314 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6315set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317$as_echo_n "checking for $ac_word... " >&6; }
6318if test "${ac_cv_prog_STRIP+set}" = set; then :
6319 $as_echo_n "(cached) " >&6
252b5132 6320else
7357c5b6
AM
6321 if test -n "$STRIP"; then
6322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6323else
6324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325for as_dir in $PATH
ce2cded5 6326do
7357c5b6
AM
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6331 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6333 break 2
ce2cded5 6334 fi
7357c5b6 6335done
81ecdfbb
RW
6336 done
6337IFS=$as_save_IFS
7357c5b6 6338
252b5132 6339fi
7357c5b6
AM
6340fi
6341STRIP=$ac_cv_prog_STRIP
6342if test -n "$STRIP"; then
81ecdfbb
RW
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6344$as_echo "$STRIP" >&6; }
252b5132 6345else
81ecdfbb
RW
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347$as_echo "no" >&6; }
252b5132 6348fi
d7040cdb 6349
81ecdfbb 6350
6bf9431b 6351fi
7357c5b6
AM
6352if test -z "$ac_cv_prog_STRIP"; then
6353 ac_ct_STRIP=$STRIP
6354 # Extract the first word of "strip", so it can be a program name with args.
6355set dummy strip; ac_word=$2
81ecdfbb
RW
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357$as_echo_n "checking for $ac_word... " >&6; }
6358if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6359 $as_echo_n "(cached) " >&6
ac48eca1 6360else
7357c5b6
AM
6361 if test -n "$ac_ct_STRIP"; then
6362 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6363else
6364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365for as_dir in $PATH
6366do
6367 IFS=$as_save_IFS
6368 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6371 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6373 break 2
6374 fi
6375done
81ecdfbb
RW
6376 done
6377IFS=$as_save_IFS
6bf9431b 6378
7357c5b6
AM
6379fi
6380fi
6381ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6382if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6384$as_echo "$ac_ct_STRIP" >&6; }
7357c5b6 6385else
81ecdfbb
RW
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387$as_echo "no" >&6; }
6bf9431b 6388fi
6bf9431b 6389
81ecdfbb
RW
6390 if test "x$ac_ct_STRIP" = x; then
6391 STRIP=":"
6392 else
6393 case $cross_compiling:$ac_tool_warned in
6394yes:)
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6397ac_tool_warned=yes ;;
6398esac
6399 STRIP=$ac_ct_STRIP
6400 fi
7357c5b6
AM
6401else
6402 STRIP="$ac_cv_prog_STRIP"
ce2cded5 6403fi
6bf9431b 6404
7357c5b6
AM
6405test -z "$STRIP" && STRIP=:
6406
6407
6408
6409
6410
6411
6412if test -n "$ac_tool_prefix"; then
6413 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6414set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416$as_echo_n "checking for $ac_word... " >&6; }
6417if test "${ac_cv_prog_RANLIB+set}" = set; then :
6418 $as_echo_n "(cached) " >&6
7357c5b6
AM
6419else
6420 if test -n "$RANLIB"; then
6421 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6422else
6423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424for as_dir in $PATH
6425do
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6430 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6432 break 2
6433 fi
6434done
81ecdfbb
RW
6435 done
6436IFS=$as_save_IFS
6bf9431b 6437
ce2cded5 6438fi
7357c5b6
AM
6439fi
6440RANLIB=$ac_cv_prog_RANLIB
6441if test -n "$RANLIB"; then
81ecdfbb
RW
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6443$as_echo "$RANLIB" >&6; }
ac48eca1 6444else
81ecdfbb
RW
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446$as_echo "no" >&6; }
d7040cdb 6447fi
7357c5b6 6448
81ecdfbb 6449
7357c5b6
AM
6450fi
6451if test -z "$ac_cv_prog_RANLIB"; then
6452 ac_ct_RANLIB=$RANLIB
6453 # Extract the first word of "ranlib", so it can be a program name with args.
6454set dummy ranlib; ac_word=$2
81ecdfbb
RW
6455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456$as_echo_n "checking for $ac_word... " >&6; }
6457if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6458 $as_echo_n "(cached) " >&6
7357c5b6
AM
6459else
6460 if test -n "$ac_ct_RANLIB"; then
6461 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6462else
6463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464for as_dir in $PATH
ce2cded5 6465do
7357c5b6
AM
6466 IFS=$as_save_IFS
6467 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6470 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6472 break 2
ce2cded5 6473 fi
7357c5b6 6474done
81ecdfbb
RW
6475 done
6476IFS=$as_save_IFS
7357c5b6 6477
ce2cded5 6478fi
7357c5b6
AM
6479fi
6480ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6481if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6483$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 6484else
81ecdfbb
RW
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486$as_echo "no" >&6; }
ce2cded5 6487fi
d7040cdb 6488
81ecdfbb
RW
6489 if test "x$ac_ct_RANLIB" = x; then
6490 RANLIB=":"
6491 else
6492 case $cross_compiling:$ac_tool_warned in
6493yes:)
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6496ac_tool_warned=yes ;;
6497esac
6498 RANLIB=$ac_ct_RANLIB
6499 fi
d7040cdb 6500else
7357c5b6 6501 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb
SE
6502fi
6503
7357c5b6
AM
6504test -z "$RANLIB" && RANLIB=:
6505
6506
6507
6508
6509
6510
6511# Determine commands to create old-style static archives.
b214d478 6512old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
6513old_postinstall_cmds='chmod 644 $oldlib'
6514old_postuninstall_cmds=
6515
6516if test -n "$RANLIB"; then
6517 case $host_os in
6518 openbsd*)
6519 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6520 ;;
6521 *)
6522 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6523 ;;
6524 esac
6525 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 6526fi
d7040cdb
SE
6527
6528
6529
6530
6531
d7040cdb 6532
7357c5b6
AM
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561# If no C compiler was specified, use CC.
6562LTCC=${LTCC-"$CC"}
6563
6564# If no C compiler flags were specified, use CFLAGS.
6565LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6566
6567# Allow CC to be a program name with arguments.
6568compiler=$CC
6569
6570
6571# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6573$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6574if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6575 $as_echo_n "(cached) " >&6
7357c5b6
AM
6576else
6577
6578# These are sane defaults that work on at least a few old systems.
6579# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6580
6581# Character class describing NM global symbol codes.
6582symcode='[BCDEGRST]'
6583
6584# Regexp to match symbols that can be accessed directly from C.
6585sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6586
6587# Define system-specific variables.
6588case $host_os in
6589aix*)
6590 symcode='[BCDT]'
6591 ;;
b214d478 6592cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
6593 symcode='[ABCDGISTW]'
6594 ;;
6595hpux*)
6596 if test "$host_cpu" = ia64; then
6597 symcode='[ABCDEGRST]'
6598 fi
6599 ;;
6600irix* | nonstopux*)
6601 symcode='[BCDEGRST]'
6602 ;;
6603osf*)
6604 symcode='[BCDEGQRST]'
6605 ;;
6606solaris*)
6607 symcode='[BDRT]'
6608 ;;
6609sco3.2v5*)
6610 symcode='[DT]'
6611 ;;
6612sysv4.2uw2*)
6613 symcode='[DT]'
6614 ;;
6615sysv5* | sco5v6* | unixware* | OpenUNIX*)
6616 symcode='[ABDT]'
6617 ;;
6618sysv4)
6619 symcode='[DFNSTU]'
6620 ;;
6621esac
6622
6623# If we're using GNU nm, then use its standard symbol codes.
6624case `$NM -V 2>&1` in
6625*GNU* | *'with BFD'*)
6626 symcode='[ABCDGIRSTW]' ;;
6627esac
6628
6629# Transform an extracted symbol line into a proper C declaration.
6630# Some systems (esp. on ia64) link data and code symbols differently,
6631# so use this general approach.
6632lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6633
6634# Transform an extracted symbol line into symbol name and symbol address
6635lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 6636lt_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
6637
6638# Handle CRLF in mingw tool chain
6639opt_cr=
6640case $build_os in
6641mingw*)
6642 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6643 ;;
6644esac
6645
6646# Try without a prefix underscore, then with it.
6647for ac_symprfx in "" "_"; do
6648
6649 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6650 symxfrm="\\1 $ac_symprfx\\2 \\2"
6651
6652 # Write the raw and C identifiers.
6653 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6654 # Fake it for dumpbin and say T for any non-static function
6655 # and D for any global variable.
6656 # Also find C++ and __fastcall symbols from MSVC++,
6657 # which start with @ or ?.
6658 lt_cv_sys_global_symbol_pipe="$AWK '"\
6659" {last_section=section; section=\$ 3};"\
6660" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6661" \$ 0!~/External *\|/{next};"\
6662" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6663" {if(hide[section]) next};"\
6664" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6665" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6666" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6667" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6668" ' prfx=^$ac_symprfx"
6669 else
6670 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6671 fi
6672
6673 # Check to see that the pipe works correctly.
6674 pipe_works=no
6675
6676 rm -f conftest*
6677 cat > conftest.$ac_ext <<_LT_EOF
6678#ifdef __cplusplus
6679extern "C" {
6680#endif
6681char nm_test_var;
6682void nm_test_func(void);
6683void nm_test_func(void){}
6684#ifdef __cplusplus
ce2cded5 6685}
7357c5b6
AM
6686#endif
6687int main(){nm_test_var='a';nm_test_func();return(0);}
6688_LT_EOF
6689
81ecdfbb 6690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6691 (eval $ac_compile) 2>&5
ce2cded5 6692 ac_status=$?
81ecdfbb
RW
6693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6694 test $ac_status = 0; }; then
7357c5b6
AM
6695 # Now try to grab the symbols.
6696 nlist=conftest.nm
81ecdfbb 6697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7357c5b6 6698 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
ce2cded5 6699 ac_status=$?
81ecdfbb
RW
6700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6701 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6702 # Try sorting and uniquifying the output.
6703 if sort "$nlist" | uniq > "$nlist"T; then
6704 mv -f "$nlist"T "$nlist"
6705 else
6706 rm -f "$nlist"T
6707 fi
6bf9431b 6708
7357c5b6
AM
6709 # Make sure that we snagged all the symbols we need.
6710 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6711 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6712 cat <<_LT_EOF > conftest.$ac_ext
6713#ifdef __cplusplus
6714extern "C" {
6715#endif
d7040cdb 6716
7357c5b6
AM
6717_LT_EOF
6718 # Now generate the symbol file.
6719 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 6720
7357c5b6 6721 cat <<_LT_EOF >> conftest.$ac_ext
ac48eca1 6722
7357c5b6
AM
6723/* The mapping between symbol names and symbols. */
6724const struct {
6725 const char *name;
6726 void *address;
6727}
6728lt__PROGRAM__LTX_preloaded_symbols[] =
6729{
6730 { "@PROGRAM@", (void *) 0 },
6731_LT_EOF
6732 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6733 cat <<\_LT_EOF >> conftest.$ac_ext
6734 {0, (void *) 0}
6735};
d7040cdb 6736
7357c5b6
AM
6737/* This works around a problem in FreeBSD linker */
6738#ifdef FREEBSD_WORKAROUND
6739static const void *lt_preloaded_setup() {
6740 return lt__PROGRAM__LTX_preloaded_symbols;
6741}
ce2cded5 6742#endif
d7040cdb 6743
7357c5b6 6744#ifdef __cplusplus
ce2cded5 6745}
7357c5b6
AM
6746#endif
6747_LT_EOF
6748 # Now try linking the two files.
6749 mv conftest.$ac_objext conftstm.$ac_objext
6750 lt_save_LIBS="$LIBS"
6751 lt_save_CFLAGS="$CFLAGS"
6752 LIBS="conftstm.$ac_objext"
6753 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
6755 (eval $ac_link) 2>&5
6756 ac_status=$?
81ecdfbb
RW
6757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6758 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6759 pipe_works=yes
6760 fi
6761 LIBS="$lt_save_LIBS"
6762 CFLAGS="$lt_save_CFLAGS"
6763 else
6764 echo "cannot find nm_test_func in $nlist" >&5
6765 fi
6766 else
6767 echo "cannot find nm_test_var in $nlist" >&5
6768 fi
6769 else
6770 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6771 fi
6772 else
6773 echo "$progname: failed program was:" >&5
6774 cat conftest.$ac_ext >&5
6775 fi
b214d478 6776 rm -rf conftest* conftst*
7357c5b6
AM
6777
6778 # Do not use the global_symbol_pipe unless it works.
6779 if test "$pipe_works" = yes; then
6780 break
6781 else
6782 lt_cv_sys_global_symbol_pipe=
6783 fi
6784done
d7040cdb 6785
ce2cded5 6786fi
7357c5b6
AM
6787
6788if test -z "$lt_cv_sys_global_symbol_pipe"; then
6789 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 6790fi
7357c5b6 6791if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6793$as_echo "failed" >&6; }
7357c5b6 6794else
81ecdfbb
RW
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6796$as_echo "ok" >&6; }
ce2cded5 6797fi
d7040cdb 6798
d7040cdb 6799
d7040cdb 6800
d7040cdb 6801
d7040cdb 6802
d7040cdb 6803
d7040cdb 6804
d7040cdb 6805
d7040cdb 6806
d7040cdb 6807
d7040cdb 6808
d7040cdb 6809
7357c5b6
AM
6810
6811
6812
b214d478
SE
6813
6814
6815
6816
6817
7357c5b6
AM
6818
6819
81ecdfbb
RW
6820# Check whether --enable-libtool-lock was given.
6821if test "${enable_libtool_lock+set}" = set; then :
6822 enableval=$enable_libtool_lock;
6823fi
7357c5b6 6824
7357c5b6
AM
6825test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6826
6827# Some flags need to be propagated to the compiler or linker for good
6828# libtool support.
6829case $host in
6830ia64-*-hpux*)
6831 # Find out which ABI we are using.
6832 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6834 (eval $ac_compile) 2>&5
6835 ac_status=$?
81ecdfbb
RW
6836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6837 test $ac_status = 0; }; then
7357c5b6
AM
6838 case `/usr/bin/file conftest.$ac_objext` in
6839 *ELF-32*)
6840 HPUX_IA64_MODE="32"
6841 ;;
6842 *ELF-64*)
6843 HPUX_IA64_MODE="64"
6844 ;;
6845 esac
6846 fi
6847 rm -rf conftest*
6848 ;;
6849*-*-irix6*)
6850 # Find out which ABI we are using.
81ecdfbb
RW
6851 echo '#line 6851 "configure"' > conftest.$ac_ext
6852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6853 (eval $ac_compile) 2>&5
6854 ac_status=$?
81ecdfbb
RW
6855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6856 test $ac_status = 0; }; then
7357c5b6
AM
6857 if test "$lt_cv_prog_gnu_ld" = yes; then
6858 case `/usr/bin/file conftest.$ac_objext` in
6859 *32-bit*)
6860 LD="${LD-ld} -melf32bsmip"
6861 ;;
6862 *N32*)
6863 LD="${LD-ld} -melf32bmipn32"
6864 ;;
6865 *64-bit*)
6866 LD="${LD-ld} -melf64bmip"
6867 ;;
6868 esac
6869 else
6870 case `/usr/bin/file conftest.$ac_objext` in
6871 *32-bit*)
6872 LD="${LD-ld} -32"
6873 ;;
6874 *N32*)
6875 LD="${LD-ld} -n32"
6876 ;;
6877 *64-bit*)
6878 LD="${LD-ld} -64"
6879 ;;
6880 esac
6881 fi
6882 fi
6883 rm -rf conftest*
6884 ;;
6885
6886x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6887s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6888 # Find out which ABI we are using.
6889 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6891 (eval $ac_compile) 2>&5
6892 ac_status=$?
81ecdfbb
RW
6893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6894 test $ac_status = 0; }; then
7357c5b6
AM
6895 case `/usr/bin/file conftest.o` in
6896 *32-bit*)
6897 case $host in
6898 x86_64-*kfreebsd*-gnu)
6899 LD="${LD-ld} -m elf_i386_fbsd"
6900 ;;
6901 x86_64-*linux*)
6902 LD="${LD-ld} -m elf_i386"
6903 ;;
6904 ppc64-*linux*|powerpc64-*linux*)
6905 LD="${LD-ld} -m elf32ppclinux"
6906 ;;
6907 s390x-*linux*)
6908 LD="${LD-ld} -m elf_s390"
6909 ;;
6910 sparc64-*linux*)
6911 LD="${LD-ld} -m elf32_sparc"
6912 ;;
6913 esac
6914 ;;
6915 *64-bit*)
6916 case $host in
6917 x86_64-*kfreebsd*-gnu)
6918 LD="${LD-ld} -m elf_x86_64_fbsd"
6919 ;;
6920 x86_64-*linux*)
6921 LD="${LD-ld} -m elf_x86_64"
6922 ;;
6923 ppc*-*linux*|powerpc*-*linux*)
6924 LD="${LD-ld} -m elf64ppc"
6925 ;;
6926 s390*-*linux*|s390*-*tpf*)
6927 LD="${LD-ld} -m elf64_s390"
6928 ;;
6929 sparc*-*linux*)
6930 LD="${LD-ld} -m elf64_sparc"
6931 ;;
6932 esac
6933 ;;
6934 esac
6935 fi
6936 rm -rf conftest*
6937 ;;
6938
6939*-*-sco3.2v5*)
6940 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6941 SAVE_CFLAGS="$CFLAGS"
6942 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6944$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6945if test "${lt_cv_cc_needs_belf+set}" = set; then :
6946 $as_echo_n "(cached) " >&6
ce2cded5 6947else
7357c5b6
AM
6948 ac_ext=c
6949ac_cpp='$CPP $CPPFLAGS'
6950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952ac_compiler_gnu=$ac_cv_c_compiler_gnu
6953
81ecdfbb 6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b 6955/* end confdefs.h. */
20e95c23 6956
7357c5b6
AM
6957int
6958main ()
6959{
6960
6961 ;
6962 return 0;
6963}
6bf9431b 6964_ACEOF
81ecdfbb 6965if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 6966 lt_cv_cc_needs_belf=yes
6bf9431b 6967else
81ecdfbb 6968 lt_cv_cc_needs_belf=no
ce2cded5 6969fi
81ecdfbb
RW
6970rm -f core conftest.err conftest.$ac_objext \
6971 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
6972 ac_ext=c
6973ac_cpp='$CPP $CPPFLAGS'
6974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6976ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 6977
b214d478 6978fi
81ecdfbb
RW
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6980$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
6981 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6982 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6983 CFLAGS="$SAVE_CFLAGS"
6984 fi
6985 ;;
6986sparc*-*solaris*)
6987 # Find out which ABI we are using.
6988 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
6990 (eval $ac_compile) 2>&5
6991 ac_status=$?
81ecdfbb
RW
6992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6993 test $ac_status = 0; }; then
b214d478
SE
6994 case `/usr/bin/file conftest.o` in
6995 *64-bit*)
6996 case $lt_cv_prog_gnu_ld in
6997 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6998 *)
6999 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7000 LD="${LD-ld} -64"
7001 fi
7002 ;;
7003 esac
7004 ;;
7005 esac
7006 fi
7007 rm -rf conftest*
7008 ;;
7009esac
7010
7011need_locks="$enable_libtool_lock"
7012
7013
7014 case $host_os in
7015 rhapsody* | darwin*)
7016 if test -n "$ac_tool_prefix"; then
7017 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7018set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020$as_echo_n "checking for $ac_word... " >&6; }
7021if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7022 $as_echo_n "(cached) " >&6
b214d478
SE
7023else
7024 if test -n "$DSYMUTIL"; then
7025 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7026else
7027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028for as_dir in $PATH
7029do
7030 IFS=$as_save_IFS
7031 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7034 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7036 break 2
7037 fi
7038done
81ecdfbb
RW
7039 done
7040IFS=$as_save_IFS
b214d478
SE
7041
7042fi
7043fi
7044DSYMUTIL=$ac_cv_prog_DSYMUTIL
7045if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7047$as_echo "$DSYMUTIL" >&6; }
b214d478 7048else
81ecdfbb
RW
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050$as_echo "no" >&6; }
b214d478
SE
7051fi
7052
81ecdfbb 7053
b214d478
SE
7054fi
7055if test -z "$ac_cv_prog_DSYMUTIL"; then
7056 ac_ct_DSYMUTIL=$DSYMUTIL
7057 # Extract the first word of "dsymutil", so it can be a program name with args.
7058set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060$as_echo_n "checking for $ac_word... " >&6; }
7061if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7062 $as_echo_n "(cached) " >&6
b214d478
SE
7063else
7064 if test -n "$ac_ct_DSYMUTIL"; then
7065 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7066else
7067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068for as_dir in $PATH
7069do
7070 IFS=$as_save_IFS
7071 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7074 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7076 break 2
7077 fi
7078done
81ecdfbb
RW
7079 done
7080IFS=$as_save_IFS
b214d478 7081
b214d478
SE
7082fi
7083fi
7084ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7085if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7087$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 7088else
81ecdfbb
RW
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090$as_echo "no" >&6; }
b214d478
SE
7091fi
7092
81ecdfbb
RW
7093 if test "x$ac_ct_DSYMUTIL" = x; then
7094 DSYMUTIL=":"
7095 else
7096 case $cross_compiling:$ac_tool_warned in
7097yes:)
7098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7100ac_tool_warned=yes ;;
7101esac
7102 DSYMUTIL=$ac_ct_DSYMUTIL
7103 fi
b214d478
SE
7104else
7105 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7106fi
7107
7108 if test -n "$ac_tool_prefix"; then
7109 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7110set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112$as_echo_n "checking for $ac_word... " >&6; }
7113if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7114 $as_echo_n "(cached) " >&6
b214d478
SE
7115else
7116 if test -n "$NMEDIT"; then
7117 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7118else
7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120for as_dir in $PATH
7121do
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7126 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7128 break 2
7129 fi
7130done
81ecdfbb
RW
7131 done
7132IFS=$as_save_IFS
b214d478
SE
7133
7134fi
7135fi
7136NMEDIT=$ac_cv_prog_NMEDIT
7137if test -n "$NMEDIT"; then
81ecdfbb
RW
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7139$as_echo "$NMEDIT" >&6; }
b214d478 7140else
81ecdfbb
RW
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142$as_echo "no" >&6; }
b214d478
SE
7143fi
7144
81ecdfbb 7145
b214d478
SE
7146fi
7147if test -z "$ac_cv_prog_NMEDIT"; then
7148 ac_ct_NMEDIT=$NMEDIT
7149 # Extract the first word of "nmedit", so it can be a program name with args.
7150set dummy nmedit; ac_word=$2
81ecdfbb
RW
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7152$as_echo_n "checking for $ac_word... " >&6; }
7153if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7154 $as_echo_n "(cached) " >&6
b214d478
SE
7155else
7156 if test -n "$ac_ct_NMEDIT"; then
7157 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7158else
7159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160for as_dir in $PATH
7161do
7162 IFS=$as_save_IFS
7163 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7164 for ac_exec_ext in '' $ac_executable_extensions; do
7165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7166 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7168 break 2
7169 fi
7170done
81ecdfbb
RW
7171 done
7172IFS=$as_save_IFS
b214d478 7173
b214d478
SE
7174fi
7175fi
7176ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7177if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7179$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 7180else
81ecdfbb
RW
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182$as_echo "no" >&6; }
b214d478
SE
7183fi
7184
81ecdfbb
RW
7185 if test "x$ac_ct_NMEDIT" = x; then
7186 NMEDIT=":"
7187 else
7188 case $cross_compiling:$ac_tool_warned in
7189yes:)
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7192ac_tool_warned=yes ;;
7193esac
7194 NMEDIT=$ac_ct_NMEDIT
7195 fi
b214d478
SE
7196else
7197 NMEDIT="$ac_cv_prog_NMEDIT"
7198fi
7199
7200 if test -n "$ac_tool_prefix"; then
7201 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7202set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204$as_echo_n "checking for $ac_word... " >&6; }
7205if test "${ac_cv_prog_LIPO+set}" = set; then :
7206 $as_echo_n "(cached) " >&6
b214d478
SE
7207else
7208 if test -n "$LIPO"; then
7209 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7210else
7211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212for as_dir in $PATH
7213do
7214 IFS=$as_save_IFS
7215 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7218 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7220 break 2
7221 fi
7222done
81ecdfbb
RW
7223 done
7224IFS=$as_save_IFS
b214d478
SE
7225
7226fi
7227fi
7228LIPO=$ac_cv_prog_LIPO
7229if test -n "$LIPO"; then
81ecdfbb
RW
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7231$as_echo "$LIPO" >&6; }
b214d478 7232else
81ecdfbb
RW
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234$as_echo "no" >&6; }
b214d478
SE
7235fi
7236
81ecdfbb 7237
b214d478
SE
7238fi
7239if test -z "$ac_cv_prog_LIPO"; then
7240 ac_ct_LIPO=$LIPO
7241 # Extract the first word of "lipo", so it can be a program name with args.
7242set dummy lipo; ac_word=$2
81ecdfbb
RW
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244$as_echo_n "checking for $ac_word... " >&6; }
7245if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7246 $as_echo_n "(cached) " >&6
b214d478
SE
7247else
7248 if test -n "$ac_ct_LIPO"; then
7249 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7250else
7251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252for as_dir in $PATH
7253do
7254 IFS=$as_save_IFS
7255 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7258 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7260 break 2
7261 fi
7262done
81ecdfbb
RW
7263 done
7264IFS=$as_save_IFS
b214d478 7265
b214d478
SE
7266fi
7267fi
7268ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7269if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7271$as_echo "$ac_ct_LIPO" >&6; }
b214d478 7272else
81ecdfbb
RW
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274$as_echo "no" >&6; }
b214d478
SE
7275fi
7276
81ecdfbb
RW
7277 if test "x$ac_ct_LIPO" = x; then
7278 LIPO=":"
7279 else
7280 case $cross_compiling:$ac_tool_warned in
7281yes:)
7282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7284ac_tool_warned=yes ;;
7285esac
7286 LIPO=$ac_ct_LIPO
7287 fi
b214d478
SE
7288else
7289 LIPO="$ac_cv_prog_LIPO"
7290fi
7291
7292 if test -n "$ac_tool_prefix"; then
7293 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7294set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296$as_echo_n "checking for $ac_word... " >&6; }
7297if test "${ac_cv_prog_OTOOL+set}" = set; then :
7298 $as_echo_n "(cached) " >&6
b214d478
SE
7299else
7300 if test -n "$OTOOL"; then
7301 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7302else
7303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304for as_dir in $PATH
7305do
7306 IFS=$as_save_IFS
7307 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7310 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7312 break 2
7313 fi
7314done
81ecdfbb
RW
7315 done
7316IFS=$as_save_IFS
b214d478
SE
7317
7318fi
7319fi
7320OTOOL=$ac_cv_prog_OTOOL
7321if test -n "$OTOOL"; then
81ecdfbb
RW
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7323$as_echo "$OTOOL" >&6; }
b214d478 7324else
81ecdfbb
RW
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326$as_echo "no" >&6; }
b214d478
SE
7327fi
7328
81ecdfbb 7329
b214d478
SE
7330fi
7331if test -z "$ac_cv_prog_OTOOL"; then
7332 ac_ct_OTOOL=$OTOOL
7333 # Extract the first word of "otool", so it can be a program name with args.
7334set dummy otool; ac_word=$2
81ecdfbb
RW
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336$as_echo_n "checking for $ac_word... " >&6; }
7337if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7338 $as_echo_n "(cached) " >&6
b214d478
SE
7339else
7340 if test -n "$ac_ct_OTOOL"; then
7341 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7342else
7343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344for as_dir in $PATH
7345do
7346 IFS=$as_save_IFS
7347 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7350 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7352 break 2
7353 fi
7354done
81ecdfbb
RW
7355 done
7356IFS=$as_save_IFS
b214d478 7357
b214d478
SE
7358fi
7359fi
7360ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7361if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7363$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 7364else
81ecdfbb
RW
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366$as_echo "no" >&6; }
b214d478
SE
7367fi
7368
81ecdfbb
RW
7369 if test "x$ac_ct_OTOOL" = x; then
7370 OTOOL=":"
7371 else
7372 case $cross_compiling:$ac_tool_warned in
7373yes:)
7374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7376ac_tool_warned=yes ;;
7377esac
7378 OTOOL=$ac_ct_OTOOL
7379 fi
b214d478
SE
7380else
7381 OTOOL="$ac_cv_prog_OTOOL"
7382fi
7383
7384 if test -n "$ac_tool_prefix"; then
7385 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7386set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388$as_echo_n "checking for $ac_word... " >&6; }
7389if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7390 $as_echo_n "(cached) " >&6
b214d478
SE
7391else
7392 if test -n "$OTOOL64"; then
7393 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7394else
7395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396for as_dir in $PATH
7397do
7398 IFS=$as_save_IFS
7399 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7402 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7404 break 2
7405 fi
7406done
81ecdfbb
RW
7407 done
7408IFS=$as_save_IFS
b214d478
SE
7409
7410fi
7411fi
7412OTOOL64=$ac_cv_prog_OTOOL64
7413if test -n "$OTOOL64"; then
81ecdfbb
RW
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7415$as_echo "$OTOOL64" >&6; }
b214d478 7416else
81ecdfbb
RW
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418$as_echo "no" >&6; }
b214d478
SE
7419fi
7420
81ecdfbb 7421
b214d478
SE
7422fi
7423if test -z "$ac_cv_prog_OTOOL64"; then
7424 ac_ct_OTOOL64=$OTOOL64
7425 # Extract the first word of "otool64", so it can be a program name with args.
7426set dummy otool64; ac_word=$2
81ecdfbb
RW
7427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428$as_echo_n "checking for $ac_word... " >&6; }
7429if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7430 $as_echo_n "(cached) " >&6
b214d478
SE
7431else
7432 if test -n "$ac_ct_OTOOL64"; then
7433 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7434else
7435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436for as_dir in $PATH
7437do
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7442 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7444 break 2
7445 fi
7446done
81ecdfbb
RW
7447 done
7448IFS=$as_save_IFS
b214d478 7449
b214d478
SE
7450fi
7451fi
7452ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7453if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7455$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 7456else
81ecdfbb
RW
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458$as_echo "no" >&6; }
b214d478
SE
7459fi
7460
81ecdfbb
RW
7461 if test "x$ac_ct_OTOOL64" = x; then
7462 OTOOL64=":"
7463 else
7464 case $cross_compiling:$ac_tool_warned in
7465yes:)
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7468ac_tool_warned=yes ;;
7469esac
7470 OTOOL64=$ac_ct_OTOOL64
7471 fi
b214d478
SE
7472else
7473 OTOOL64="$ac_cv_prog_OTOOL64"
7474fi
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
81ecdfbb
RW
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7503$as_echo_n "checking for -single_module linker flag... " >&6; }
7504if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7505 $as_echo_n "(cached) " >&6
b214d478
SE
7506else
7507 lt_cv_apple_cc_single_mod=no
7508 if test -z "${LT_MULTI_MODULE}"; then
7509 # By default we will add the -single_module flag. You can override
7510 # by either setting the environment variable LT_MULTI_MODULE
7511 # non-empty at configure time, or by adding -multi_module to the
7512 # link flags.
7513 rm -rf libconftest.dylib*
7514 echo "int foo(void){return 1;}" > conftest.c
7515 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7516-dynamiclib -Wl,-single_module conftest.c" >&5
7517 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7518 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7519 _lt_result=$?
7520 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7521 lt_cv_apple_cc_single_mod=yes
7522 else
7523 cat conftest.err >&5
7524 fi
7525 rm -rf libconftest.dylib*
7526 rm -f conftest.*
7527 fi
7528fi
81ecdfbb
RW
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7530$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7532$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7533if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
b214d478
SE
7535else
7536 lt_cv_ld_exported_symbols_list=no
7537 save_LDFLAGS=$LDFLAGS
7538 echo "_main" > conftest.sym
7539 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
7541/* end confdefs.h. */
7542
7543int
7544main ()
7545{
7546
7547 ;
7548 return 0;
7549}
7550_ACEOF
81ecdfbb 7551if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
7552 lt_cv_ld_exported_symbols_list=yes
7553else
81ecdfbb 7554 lt_cv_ld_exported_symbols_list=no
b214d478 7555fi
81ecdfbb
RW
7556rm -f core conftest.err conftest.$ac_objext \
7557 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
7558 LDFLAGS="$save_LDFLAGS"
7559
7560fi
81ecdfbb
RW
7561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7562$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
b214d478
SE
7563 case $host_os in
7564 rhapsody* | darwin1.[012])
7565 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7566 darwin1.*)
7567 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7568 darwin*) # darwin 5.x on
7569 # if running on 10.5 or later, the deployment target defaults
7570 # to the OS version, if on x86, and 10.4, the deployment
7571 # target defaults to 10.4. Don't you love it?
7572 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7573 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7574 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7575 10.[012]*)
7576 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7577 10.*)
7578 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7579 esac
7580 ;;
7581 esac
7582 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7583 _lt_dar_single_mod='$single_module'
7584 fi
7585 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7586 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7587 else
7588 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7589 fi
7590 if test "$DSYMUTIL" != ":"; then
7591 _lt_dsymutil='~$DSYMUTIL $lib || :'
7592 else
7593 _lt_dsymutil=
7594 fi
7595 ;;
7596 esac
7597
b214d478 7598for ac_header in dlfcn.h
81ecdfbb
RW
7599do :
7600 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7601"
7602if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
b214d478 7603 cat >>confdefs.h <<_ACEOF
81ecdfbb 7604#define HAVE_DLFCN_H 1
b214d478
SE
7605_ACEOF
7606
7607fi
7608
7609done
7610
7611
7612
7613# Set options
7614
7615
7616
7617 enable_dlopen=no
7618
7619
7620 enable_win32_dll=no
7621
7622
81ecdfbb
RW
7623 # Check whether --enable-shared was given.
7624if test "${enable_shared+set}" = set; then :
7625 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
7626 case $enableval in
7627 yes) enable_shared=yes ;;
7628 no) enable_shared=no ;;
7629 *)
7630 enable_shared=no
7631 # Look at the argument we got. We use all the common list separators.
7632 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7633 for pkg in $enableval; do
7634 IFS="$lt_save_ifs"
7635 if test "X$pkg" = "X$p"; then
7636 enable_shared=yes
7637 fi
7638 done
7639 IFS="$lt_save_ifs"
7640 ;;
7641 esac
7642else
7643 enable_shared=yes
81ecdfbb
RW
7644fi
7645
b214d478
SE
7646
7647
7648
7649
7650
7651
7652
7653
81ecdfbb
RW
7654 # Check whether --enable-static was given.
7655if test "${enable_static+set}" = set; then :
7656 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
7657 case $enableval in
7658 yes) enable_static=yes ;;
7659 no) enable_static=no ;;
7660 *)
7661 enable_static=no
7662 # Look at the argument we got. We use all the common list separators.
7663 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7664 for pkg in $enableval; do
7665 IFS="$lt_save_ifs"
7666 if test "X$pkg" = "X$p"; then
7667 enable_static=yes
7668 fi
7669 done
7670 IFS="$lt_save_ifs"
7671 ;;
7672 esac
7673else
7674 enable_static=yes
81ecdfbb
RW
7675fi
7676
b214d478
SE
7677
7678
7679
7680
7681
7682
7683
7684
7685
81ecdfbb
RW
7686# Check whether --with-pic was given.
7687if test "${with_pic+set}" = set; then :
7688 withval=$with_pic; pic_mode="$withval"
b214d478
SE
7689else
7690 pic_mode=default
81ecdfbb
RW
7691fi
7692
b214d478
SE
7693
7694test -z "$pic_mode" && pic_mode=default
7695
7696
7697
7698
7699
7700
7701
81ecdfbb
RW
7702 # Check whether --enable-fast-install was given.
7703if test "${enable_fast_install+set}" = set; then :
7704 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
7705 case $enableval in
7706 yes) enable_fast_install=yes ;;
7707 no) enable_fast_install=no ;;
7708 *)
7709 enable_fast_install=no
7710 # Look at the argument we got. We use all the common list separators.
7711 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7712 for pkg in $enableval; do
7713 IFS="$lt_save_ifs"
7714 if test "X$pkg" = "X$p"; then
7715 enable_fast_install=yes
7716 fi
7717 done
7718 IFS="$lt_save_ifs"
7357c5b6
AM
7719 ;;
7720 esac
b214d478
SE
7721else
7722 enable_fast_install=yes
81ecdfbb
RW
7723fi
7724
d7040cdb 7725
ce2cded5
L
7726
7727
ce2cded5 7728
252b5132 7729
d7040cdb 7730
252b5132 7731
6bf9431b 7732
252b5132 7733
6bf9431b 7734
ce2cded5
L
7735# This can be used to rebuild libtool when needed
7736LIBTOOL_DEPS="$ltmain"
6bf9431b 7737
ce2cded5
L
7738# Always use our own libtool.
7739LIBTOOL='$(SHELL) $(top_builddir)/libtool'
252b5132 7740
6bf9431b 7741
252b5132 7742
6bf9431b 7743
252b5132 7744
252b5132 7745
d7040cdb 7746
6bf9431b 7747
252b5132 7748
d7040cdb 7749
d7040cdb 7750
d7040cdb 7751
d7040cdb 7752
d7040cdb 7753
d7040cdb 7754
d7040cdb 7755
d7040cdb 7756
d7040cdb 7757
d7040cdb 7758
d7040cdb 7759
d7040cdb
SE
7760
7761
7762
7763
7764
ce2cded5 7765test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
ce2cded5
L
7780if test -n "${ZSH_VERSION+set}" ; then
7781 setopt NO_GLOB_SUBST
7782fi
d7040cdb 7783
81ecdfbb
RW
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7785$as_echo_n "checking for objdir... " >&6; }
7786if test "${lt_cv_objdir+set}" = set; then :
7787 $as_echo_n "(cached) " >&6
ce2cded5
L
7788else
7789 rm -f .libs 2>/dev/null
7790mkdir .libs 2>/dev/null
7791if test -d .libs; then
7792 lt_cv_objdir=.libs
7793else
7794 # MS-DOS does not allow filenames that begin with a dot.
7795 lt_cv_objdir=_libs
7796fi
7797rmdir .libs 2>/dev/null
7798fi
81ecdfbb
RW
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7800$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 7801objdir=$lt_cv_objdir
d7040cdb
SE
7802
7803
7804
7805
7806
ce2cded5
L
7807cat >>confdefs.h <<_ACEOF
7808#define LT_OBJDIR "$lt_cv_objdir/"
7809_ACEOF
d7040cdb
SE
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
ce2cded5
L
7827case $host_os in
7828aix3*)
7829 # AIX sometimes has problems with the GCC collect2 program. For some
7830 # reason, if we set the COLLECT_NAMES environment variable, the problems
7831 # vanish in a puff of smoke.
7832 if test "X${COLLECT_NAMES+set}" != Xset; then
7833 COLLECT_NAMES=
7834 export COLLECT_NAMES
7835 fi
7836 ;;
7837esac
d7040cdb 7838
ce2cded5
L
7839# Sed substitution that helps us do robust quoting. It backslashifies
7840# metacharacters that are still active within double-quoted strings.
7841sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 7842
ce2cded5
L
7843# Same as above, but do not quote variable references.
7844double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 7845
ce2cded5
L
7846# Sed substitution to delay expansion of an escaped shell variable in a
7847# double_quote_subst'ed string.
7848delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 7849
ce2cded5
L
7850# Sed substitution to delay expansion of an escaped single quote.
7851delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 7852
ce2cded5
L
7853# Sed substitution to avoid accidental globbing in evaled expressions
7854no_glob_subst='s/\*/\\\*/g'
d7040cdb 7855
ce2cded5
L
7856# Global variables:
7857ofile=libtool
7858can_build_shared=yes
d7040cdb 7859
ce2cded5
L
7860# All known linkers require a `.a' archive for static linking (except MSVC,
7861# which needs '.lib').
7862libext=a
d7040cdb 7863
ce2cded5 7864with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7865
ce2cded5
L
7866old_CC="$CC"
7867old_CFLAGS="$CFLAGS"
d7040cdb 7868
ce2cded5
L
7869# Set sane defaults for various variables
7870test -z "$CC" && CC=cc
7871test -z "$LTCC" && LTCC=$CC
7872test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7873test -z "$LD" && LD=ld
7874test -z "$ac_objext" && ac_objext=o
d7040cdb 7875
ce2cded5
L
7876for cc_temp in $compiler""; do
7877 case $cc_temp in
7878 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7879 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7880 \-*) ;;
7881 *) break;;
7882 esac
7883done
7884cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d7040cdb
SE
7885
7886
ce2cded5
L
7887# Only perform the check for file, if the check method requires it
7888test -z "$MAGIC_CMD" && MAGIC_CMD=file
7889case $deplibs_check_method in
7890file_magic*)
7891 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7893$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7894if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7895 $as_echo_n "(cached) " >&6
ce2cded5
L
7896else
7897 case $MAGIC_CMD in
7898[\\/*] | ?:[\\/]*)
7899 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7900 ;;
7901*)
7902 lt_save_MAGIC_CMD="$MAGIC_CMD"
7903 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7904 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7905 for ac_dir in $ac_dummy; do
7906 IFS="$lt_save_ifs"
7907 test -z "$ac_dir" && ac_dir=.
7908 if test -f $ac_dir/${ac_tool_prefix}file; then
7909 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7910 if test -n "$file_magic_test_file"; then
7911 case $deplibs_check_method in
7912 "file_magic "*)
7913 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7914 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7915 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7916 $EGREP "$file_magic_regex" > /dev/null; then
7917 :
7918 else
7919 cat <<_LT_EOF 1>&2
d7040cdb 7920
ce2cded5
L
7921*** Warning: the command libtool uses to detect shared libraries,
7922*** $file_magic_cmd, produces output that libtool cannot recognize.
7923*** The result is that libtool may fail to recognize shared libraries
7924*** as such. This will affect the creation of libtool libraries that
7925*** depend on shared libraries, but programs linked with such libtool
7926*** libraries will work regardless of this problem. Nevertheless, you
7927*** may want to report the problem to your system manager and/or to
7928*** bug-libtool@gnu.org
d7040cdb 7929
ce2cded5
L
7930_LT_EOF
7931 fi ;;
7932 esac
7933 fi
7934 break
7935 fi
7936 done
7937 IFS="$lt_save_ifs"
7938 MAGIC_CMD="$lt_save_MAGIC_CMD"
7939 ;;
7940esac
7941fi
d7040cdb 7942
ce2cded5
L
7943MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7944if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7946$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 7947else
81ecdfbb
RW
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949$as_echo "no" >&6; }
ce2cded5 7950fi
d7040cdb
SE
7951
7952
7953
7954
7955
ce2cded5
L
7956if test -z "$lt_cv_path_MAGIC_CMD"; then
7957 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7959$as_echo_n "checking for file... " >&6; }
7960if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7961 $as_echo_n "(cached) " >&6
ce2cded5
L
7962else
7963 case $MAGIC_CMD in
7964[\\/*] | ?:[\\/]*)
7965 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7966 ;;
7967*)
7968 lt_save_MAGIC_CMD="$MAGIC_CMD"
7969 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7970 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7971 for ac_dir in $ac_dummy; do
7972 IFS="$lt_save_ifs"
7973 test -z "$ac_dir" && ac_dir=.
7974 if test -f $ac_dir/file; then
7975 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7976 if test -n "$file_magic_test_file"; then
7977 case $deplibs_check_method in
7978 "file_magic "*)
7979 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7981 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7982 $EGREP "$file_magic_regex" > /dev/null; then
7983 :
7984 else
7985 cat <<_LT_EOF 1>&2
d7040cdb 7986
ce2cded5
L
7987*** Warning: the command libtool uses to detect shared libraries,
7988*** $file_magic_cmd, produces output that libtool cannot recognize.
7989*** The result is that libtool may fail to recognize shared libraries
7990*** as such. This will affect the creation of libtool libraries that
7991*** depend on shared libraries, but programs linked with such libtool
7992*** libraries will work regardless of this problem. Nevertheless, you
7993*** may want to report the problem to your system manager and/or to
7994*** bug-libtool@gnu.org
d7040cdb 7995
ce2cded5
L
7996_LT_EOF
7997 fi ;;
7998 esac
7999 fi
8000 break
8001 fi
8002 done
8003 IFS="$lt_save_ifs"
8004 MAGIC_CMD="$lt_save_MAGIC_CMD"
8005 ;;
8006esac
8007fi
d7040cdb 8008
ce2cded5
L
8009MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8010if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8012$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8013else
81ecdfbb
RW
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015$as_echo "no" >&6; }
ce2cded5 8016fi
d7040cdb
SE
8017
8018
ce2cded5
L
8019 else
8020 MAGIC_CMD=:
8021 fi
8022fi
d7040cdb 8023
ce2cded5
L
8024 fi
8025 ;;
8026esac
d7040cdb 8027
ce2cded5 8028# Use C for the default configuration in the libtool script
d7040cdb 8029
ce2cded5
L
8030lt_save_CC="$CC"
8031ac_ext=c
8032ac_cpp='$CPP $CPPFLAGS'
8033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8035ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8036
8037
ce2cded5
L
8038# Source file extension for C test sources.
8039ac_ext=c
d7040cdb 8040
ce2cded5
L
8041# Object file extension for compiled C test sources.
8042objext=o
8043objext=$objext
d7040cdb 8044
ce2cded5
L
8045# Code to be used in simple compile tests
8046lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 8047
ce2cded5
L
8048# Code to be used in simple link tests
8049lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
8050
8051
8052
8053
8054
8055
8056
ce2cded5
L
8057# If no C compiler was specified, use CC.
8058LTCC=${LTCC-"$CC"}
d7040cdb 8059
ce2cded5
L
8060# If no C compiler flags were specified, use CFLAGS.
8061LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 8062
ce2cded5
L
8063# Allow CC to be a program name with arguments.
8064compiler=$CC
d7040cdb 8065
ce2cded5
L
8066# Save the default compiler, since it gets overwritten when the other
8067# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8068compiler_DEFAULT=$CC
d7040cdb 8069
ce2cded5
L
8070# save warnings/boilerplate of simple test code
8071ac_outfile=conftest.$ac_objext
8072echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8073eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8074_lt_compiler_boilerplate=`cat conftest.err`
8075$RM conftest*
d7040cdb 8076
ce2cded5
L
8077ac_outfile=conftest.$ac_objext
8078echo "$lt_simple_link_test_code" >conftest.$ac_ext
8079eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8080_lt_linker_boilerplate=`cat conftest.err`
b214d478 8081$RM -r conftest*
d7040cdb
SE
8082
8083
ce2cded5
L
8084## CAVEAT EMPTOR:
8085## There is no encapsulation within the following macros, do not change
8086## the running order or otherwise move them around unless you know exactly
8087## what you are doing...
8088if test -n "$compiler"; then
d7040cdb 8089
ce2cded5 8090lt_prog_compiler_no_builtin_flag=
d7040cdb 8091
ce2cded5
L
8092if test "$GCC" = yes; then
8093 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d7040cdb 8094
81ecdfbb
RW
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8096$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8097if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8098 $as_echo_n "(cached) " >&6
ce2cded5
L
8099else
8100 lt_cv_prog_compiler_rtti_exceptions=no
8101 ac_outfile=conftest.$ac_objext
8102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8103 lt_compiler_flag="-fno-rtti -fno-exceptions"
8104 # Insert the option either (1) after the last *FLAGS variable, or
8105 # (2) before a word containing "conftest.", or (3) at the end.
8106 # Note that $ac_compile itself does not contain backslashes and begins
8107 # with a dollar sign (not a hyphen), so the echo should work correctly.
8108 # The option is referenced via a variable to avoid confusing sed.
8109 lt_compile=`echo "$ac_compile" | $SED \
8110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8112 -e 's:$: $lt_compiler_flag:'`
81ecdfbb 8113 (eval echo "\"\$as_me:8113: $lt_compile\"" >&5)
ce2cded5
L
8114 (eval "$lt_compile" 2>conftest.err)
8115 ac_status=$?
8116 cat conftest.err >&5
81ecdfbb 8117 echo "$as_me:8117: \$? = $ac_status" >&5
ce2cded5
L
8118 if (exit $ac_status) && test -s "$ac_outfile"; then
8119 # The compiler can only warn and ignore the option if not recognized
8120 # So say no if there are warnings other than the usual output.
8121 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8123 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8124 lt_cv_prog_compiler_rtti_exceptions=yes
8125 fi
8126 fi
8127 $RM conftest*
d7040cdb 8128
ce2cded5 8129fi
81ecdfbb
RW
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8131$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 8132
ce2cded5
L
8133if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8134 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8135else
8136 :
8137fi
d7040cdb 8138
ce2cded5 8139fi
d7040cdb
SE
8140
8141
8142
8143
8144
8145
ce2cded5
L
8146 lt_prog_compiler_wl=
8147lt_prog_compiler_pic=
8148lt_prog_compiler_static=
d7040cdb 8149
81ecdfbb
RW
8150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8151$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 8152
ce2cded5
L
8153 if test "$GCC" = yes; then
8154 lt_prog_compiler_wl='-Wl,'
8155 lt_prog_compiler_static='-static'
d7040cdb 8156
ce2cded5
L
8157 case $host_os in
8158 aix*)
8159 # All AIX code is PIC.
8160 if test "$host_cpu" = ia64; then
8161 # AIX 5 now supports IA64 processor
8162 lt_prog_compiler_static='-Bstatic'
8163 fi
8164 ;;
d7040cdb 8165
ce2cded5 8166 amigaos*)
b214d478
SE
8167 case $host_cpu in
8168 powerpc)
8169 # see comment about AmigaOS4 .so support
8170 lt_prog_compiler_pic='-fPIC'
8171 ;;
8172 m68k)
8173 # FIXME: we need at least 68020 code to build shared libraries, but
8174 # adding the `-m68020' flag to GCC prevents building anything better,
8175 # like `-m68040'.
8176 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8177 ;;
8178 esac
ce2cded5 8179 ;;
d7040cdb 8180
ce2cded5
L
8181 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8182 # PIC is the default for these OSes.
8183 ;;
d7040cdb 8184
b214d478 8185 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8186 # This hack is so that the source file can tell whether it is being
8187 # built for inclusion in a dll (and should export symbols for example).
8188 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8189 # (--disable-auto-import) libraries
8190 lt_prog_compiler_pic='-DDLL_EXPORT'
8191 ;;
d7040cdb 8192
ce2cded5
L
8193 darwin* | rhapsody*)
8194 # PIC is the default on this platform
8195 # Common symbols not allowed in MH_DYLIB files
8196 lt_prog_compiler_pic='-fno-common'
8197 ;;
d7040cdb 8198
ce2cded5 8199 hpux*)
b214d478
SE
8200 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8201 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8202 # sets the default TLS model and affects inlining.
ce2cded5 8203 case $host_cpu in
b214d478 8204 hppa*64*)
ce2cded5
L
8205 # +Z the default
8206 ;;
8207 *)
8208 lt_prog_compiler_pic='-fPIC'
8209 ;;
8210 esac
8211 ;;
d7040cdb 8212
ce2cded5
L
8213 interix[3-9]*)
8214 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8215 # Instead, we relocate shared libraries at runtime.
8216 ;;
d7040cdb 8217
ce2cded5
L
8218 msdosdjgpp*)
8219 # Just because we use GCC doesn't mean we suddenly get shared libraries
8220 # on systems that don't support them.
8221 lt_prog_compiler_can_build_shared=no
8222 enable_shared=no
8223 ;;
d7040cdb 8224
ce2cded5
L
8225 *nto* | *qnx*)
8226 # QNX uses GNU C++, but need to define -shared option too, otherwise
8227 # it will coredump.
8228 lt_prog_compiler_pic='-fPIC -shared'
8229 ;;
d7040cdb 8230
ce2cded5
L
8231 sysv4*MP*)
8232 if test -d /usr/nec; then
8233 lt_prog_compiler_pic=-Kconform_pic
8234 fi
8235 ;;
d7040cdb 8236
ce2cded5
L
8237 *)
8238 lt_prog_compiler_pic='-fPIC'
8239 ;;
8240 esac
8241 else
8242 # PORTME Check for flag to pass linker flags through the system compiler.
8243 case $host_os in
8244 aix*)
8245 lt_prog_compiler_wl='-Wl,'
8246 if test "$host_cpu" = ia64; then
8247 # AIX 5 now supports IA64 processor
8248 lt_prog_compiler_static='-Bstatic'
8249 else
8250 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8251 fi
8252 ;;
d7040cdb 8253
b214d478 8254 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8255 # This hack is so that the source file can tell whether it is being
8256 # built for inclusion in a dll (and should export symbols for example).
8257 lt_prog_compiler_pic='-DDLL_EXPORT'
8258 ;;
d7040cdb 8259
ce2cded5
L
8260 hpux9* | hpux10* | hpux11*)
8261 lt_prog_compiler_wl='-Wl,'
8262 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8263 # not for PA HP-UX.
8264 case $host_cpu in
8265 hppa*64*|ia64*)
8266 # +Z the default
8267 ;;
8268 *)
8269 lt_prog_compiler_pic='+Z'
8270 ;;
8271 esac
8272 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8273 lt_prog_compiler_static='${wl}-a ${wl}archive'
8274 ;;
d7040cdb 8275
ce2cded5
L
8276 irix5* | irix6* | nonstopux*)
8277 lt_prog_compiler_wl='-Wl,'
8278 # PIC (with -KPIC) is the default.
8279 lt_prog_compiler_static='-non_shared'
8280 ;;
d7040cdb 8281
58e24671 8282 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8283 case $cc_basename in
b214d478
SE
8284 # old Intel for x86_64 which still supported -KPIC.
8285 ecc*)
ce2cded5
L
8286 lt_prog_compiler_wl='-Wl,'
8287 lt_prog_compiler_pic='-KPIC'
8288 lt_prog_compiler_static='-static'
8289 ;;
b214d478
SE
8290 # icc used to be incompatible with GCC.
8291 # ICC 10 doesn't accept -KPIC any more.
8292 icc* | ifort*)
8293 lt_prog_compiler_wl='-Wl,'
8294 lt_prog_compiler_pic='-fPIC'
8295 lt_prog_compiler_static='-static'
8296 ;;
8297 # Lahey Fortran 8.1.
8298 lf95*)
8299 lt_prog_compiler_wl='-Wl,'
8300 lt_prog_compiler_pic='--shared'
8301 lt_prog_compiler_static='--static'
8302 ;;
ce2cded5
L
8303 pgcc* | pgf77* | pgf90* | pgf95*)
8304 # Portland Group compilers (*not* the Pentium gcc compiler,
8305 # which looks to be a dead project)
8306 lt_prog_compiler_wl='-Wl,'
8307 lt_prog_compiler_pic='-fpic'
8308 lt_prog_compiler_static='-Bstatic'
8309 ;;
8310 ccc*)
8311 lt_prog_compiler_wl='-Wl,'
8312 # All Alpha code is PIC.
8313 lt_prog_compiler_static='-non_shared'
8314 ;;
b214d478
SE
8315 xl*)
8316 # IBM XL C 8.0/Fortran 10.1 on PPC
8317 lt_prog_compiler_wl='-Wl,'
8318 lt_prog_compiler_pic='-qpic'
8319 lt_prog_compiler_static='-qstaticlink'
8320 ;;
ce2cded5
L
8321 *)
8322 case `$CC -V 2>&1 | sed 5q` in
8323 *Sun\ C*)
8324 # Sun C 5.9
8325 lt_prog_compiler_pic='-KPIC'
8326 lt_prog_compiler_static='-Bstatic'
8327 lt_prog_compiler_wl='-Wl,'
8328 ;;
8329 *Sun\ F*)
8330 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8331 lt_prog_compiler_pic='-KPIC'
8332 lt_prog_compiler_static='-Bstatic'
8333 lt_prog_compiler_wl=''
8334 ;;
8335 esac
8336 ;;
8337 esac
8338 ;;
d7040cdb 8339
ce2cded5
L
8340 newsos6)
8341 lt_prog_compiler_pic='-KPIC'
8342 lt_prog_compiler_static='-Bstatic'
8343 ;;
d7040cdb 8344
ce2cded5
L
8345 *nto* | *qnx*)
8346 # QNX uses GNU C++, but need to define -shared option too, otherwise
8347 # it will coredump.
8348 lt_prog_compiler_pic='-fPIC -shared'
8349 ;;
d7040cdb 8350
ce2cded5
L
8351 osf3* | osf4* | osf5*)
8352 lt_prog_compiler_wl='-Wl,'
8353 # All OSF/1 code is PIC.
8354 lt_prog_compiler_static='-non_shared'
8355 ;;
d7040cdb 8356
ce2cded5
L
8357 rdos*)
8358 lt_prog_compiler_static='-non_shared'
8359 ;;
d7040cdb 8360
ce2cded5
L
8361 solaris*)
8362 lt_prog_compiler_pic='-KPIC'
8363 lt_prog_compiler_static='-Bstatic'
8364 case $cc_basename in
8365 f77* | f90* | f95*)
8366 lt_prog_compiler_wl='-Qoption ld ';;
8367 *)
8368 lt_prog_compiler_wl='-Wl,';;
8369 esac
8370 ;;
d7040cdb 8371
ce2cded5
L
8372 sunos4*)
8373 lt_prog_compiler_wl='-Qoption ld '
8374 lt_prog_compiler_pic='-PIC'
8375 lt_prog_compiler_static='-Bstatic'
8376 ;;
d7040cdb 8377
ce2cded5
L
8378 sysv4 | sysv4.2uw2* | sysv4.3*)
8379 lt_prog_compiler_wl='-Wl,'
8380 lt_prog_compiler_pic='-KPIC'
8381 lt_prog_compiler_static='-Bstatic'
8382 ;;
d7040cdb 8383
ce2cded5
L
8384 sysv4*MP*)
8385 if test -d /usr/nec ;then
8386 lt_prog_compiler_pic='-Kconform_pic'
8387 lt_prog_compiler_static='-Bstatic'
8388 fi
8389 ;;
d7040cdb 8390
ce2cded5
L
8391 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8392 lt_prog_compiler_wl='-Wl,'
8393 lt_prog_compiler_pic='-KPIC'
8394 lt_prog_compiler_static='-Bstatic'
8395 ;;
d7040cdb 8396
ce2cded5
L
8397 unicos*)
8398 lt_prog_compiler_wl='-Wl,'
8399 lt_prog_compiler_can_build_shared=no
8400 ;;
d7040cdb 8401
ce2cded5
L
8402 uts4*)
8403 lt_prog_compiler_pic='-pic'
8404 lt_prog_compiler_static='-Bstatic'
8405 ;;
d7040cdb 8406
ce2cded5
L
8407 *)
8408 lt_prog_compiler_can_build_shared=no
8409 ;;
8410 esac
8411 fi
d7040cdb 8412
ce2cded5
L
8413case $host_os in
8414 # For platforms which do not support PIC, -DPIC is meaningless:
8415 *djgpp*)
8416 lt_prog_compiler_pic=
8417 ;;
8418 *)
8419 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8420 ;;
8421esac
81ecdfbb
RW
8422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8423$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8424
8425
8426
8427
8428
8429
ce2cded5
L
8430#
8431# Check to make sure the PIC flag actually works.
8432#
8433if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8435$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8436if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8437 $as_echo_n "(cached) " >&6
ce2cded5 8438else
b214d478 8439 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8440 ac_outfile=conftest.$ac_objext
8441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8442 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8443 # Insert the option either (1) after the last *FLAGS variable, or
8444 # (2) before a word containing "conftest.", or (3) at the end.
8445 # Note that $ac_compile itself does not contain backslashes and begins
8446 # with a dollar sign (not a hyphen), so the echo should work correctly.
8447 # The option is referenced via a variable to avoid confusing sed.
8448 lt_compile=`echo "$ac_compile" | $SED \
8449 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8451 -e 's:$: $lt_compiler_flag:'`
81ecdfbb 8452 (eval echo "\"\$as_me:8452: $lt_compile\"" >&5)
ce2cded5
L
8453 (eval "$lt_compile" 2>conftest.err)
8454 ac_status=$?
8455 cat conftest.err >&5
81ecdfbb 8456 echo "$as_me:8456: \$? = $ac_status" >&5
ce2cded5
L
8457 if (exit $ac_status) && test -s "$ac_outfile"; then
8458 # The compiler can only warn and ignore the option if not recognized
8459 # So say no if there are warnings other than the usual output.
8460 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8462 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8463 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8464 fi
8465 fi
8466 $RM conftest*
d7040cdb 8467
ce2cded5 8468fi
81ecdfbb
RW
8469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8470$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8471
b214d478 8472if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8473 case $lt_prog_compiler_pic in
8474 "" | " "*) ;;
8475 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8476 esac
8477else
8478 lt_prog_compiler_pic=
8479 lt_prog_compiler_can_build_shared=no
8480fi
d7040cdb 8481
ce2cded5 8482fi
d7040cdb
SE
8483
8484
8485
8486
8487
8488
ce2cded5
L
8489#
8490# Check to make sure the static flag actually works.
8491#
8492wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8494$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8495if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8496 $as_echo_n "(cached) " >&6
ce2cded5 8497else
b214d478 8498 lt_cv_prog_compiler_static_works=no
ce2cded5
L
8499 save_LDFLAGS="$LDFLAGS"
8500 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8501 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8502 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8503 # The linker can only warn and ignore the option if not recognized
8504 # So say no if there are warnings
8505 if test -s conftest.err; then
8506 # Append any errors to the config.log.
8507 cat conftest.err 1>&5
8508 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8510 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8511 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8512 fi
8513 else
b214d478 8514 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8515 fi
8516 fi
b214d478 8517 $RM -r conftest*
ce2cded5 8518 LDFLAGS="$save_LDFLAGS"
d7040cdb 8519
ce2cded5 8520fi
81ecdfbb
RW
8521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8522$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8523
b214d478 8524if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
8525 :
8526else
8527 lt_prog_compiler_static=
8528fi
d7040cdb
SE
8529
8530
8531
8532
8533
8534
8535
81ecdfbb
RW
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8537$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8538if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8539 $as_echo_n "(cached) " >&6
ce2cded5
L
8540else
8541 lt_cv_prog_compiler_c_o=no
8542 $RM -r conftest 2>/dev/null
8543 mkdir conftest
8544 cd conftest
8545 mkdir out
8546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8547
ce2cded5
L
8548 lt_compiler_flag="-o out/conftest2.$ac_objext"
8549 # Insert the option either (1) after the last *FLAGS variable, or
8550 # (2) before a word containing "conftest.", or (3) at the end.
8551 # Note that $ac_compile itself does not contain backslashes and begins
8552 # with a dollar sign (not a hyphen), so the echo should work correctly.
8553 lt_compile=`echo "$ac_compile" | $SED \
8554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8556 -e 's:$: $lt_compiler_flag:'`
81ecdfbb 8557 (eval echo "\"\$as_me:8557: $lt_compile\"" >&5)
ce2cded5
L
8558 (eval "$lt_compile" 2>out/conftest.err)
8559 ac_status=$?
8560 cat out/conftest.err >&5
81ecdfbb 8561 echo "$as_me:8561: \$? = $ac_status" >&5
ce2cded5
L
8562 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8563 then
8564 # The compiler can only warn and ignore the option if not recognized
8565 # So say no if there are warnings
8566 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8567 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8568 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8569 lt_cv_prog_compiler_c_o=yes
8570 fi
8571 fi
8572 chmod u+w . 2>&5
8573 $RM conftest*
8574 # SGI C++ compiler will create directory out/ii_files/ for
8575 # template instantiation
8576 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8577 $RM out/* && rmdir out
8578 cd ..
8579 $RM -r conftest
8580 $RM conftest*
8581
8582fi
81ecdfbb
RW
8583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8584$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
8585
8586
8587
8588
8589
8590
81ecdfbb
RW
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8592$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8593if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8594 $as_echo_n "(cached) " >&6
d7040cdb 8595else
ce2cded5
L
8596 lt_cv_prog_compiler_c_o=no
8597 $RM -r conftest 2>/dev/null
8598 mkdir conftest
8599 cd conftest
8600 mkdir out
8601 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8602
8603 lt_compiler_flag="-o out/conftest2.$ac_objext"
8604 # Insert the option either (1) after the last *FLAGS variable, or
8605 # (2) before a word containing "conftest.", or (3) at the end.
8606 # Note that $ac_compile itself does not contain backslashes and begins
8607 # with a dollar sign (not a hyphen), so the echo should work correctly.
8608 lt_compile=`echo "$ac_compile" | $SED \
8609 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8611 -e 's:$: $lt_compiler_flag:'`
81ecdfbb 8612 (eval echo "\"\$as_me:8612: $lt_compile\"" >&5)
ce2cded5
L
8613 (eval "$lt_compile" 2>out/conftest.err)
8614 ac_status=$?
8615 cat out/conftest.err >&5
81ecdfbb 8616 echo "$as_me:8616: \$? = $ac_status" >&5
ce2cded5
L
8617 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8618 then
8619 # The compiler can only warn and ignore the option if not recognized
8620 # So say no if there are warnings
8621 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8622 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8623 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8624 lt_cv_prog_compiler_c_o=yes
8625 fi
8626 fi
8627 chmod u+w . 2>&5
8628 $RM conftest*
8629 # SGI C++ compiler will create directory out/ii_files/ for
8630 # template instantiation
8631 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8632 $RM out/* && rmdir out
8633 cd ..
8634 $RM -r conftest
8635 $RM conftest*
8636
d7040cdb 8637fi
81ecdfbb
RW
8638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8639$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb 8640
d7040cdb 8641
d7040cdb 8642
d7040cdb 8643
ce2cded5
L
8644hard_links="nottested"
8645if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8646 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8648$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
8649 hard_links=yes
8650 $RM conftest*
8651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8652 touch conftest.a
8653 ln conftest.a conftest.b 2>&5 || hard_links=no
8654 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8656$as_echo "$hard_links" >&6; }
ce2cded5 8657 if test "$hard_links" = no; then
81ecdfbb
RW
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8659$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 8660 need_locks=warn
d7040cdb 8661 fi
ce2cded5
L
8662else
8663 need_locks=no
8664fi
d7040cdb 8665
d7040cdb 8666
d7040cdb 8667
d7040cdb 8668
d7040cdb 8669
d7040cdb 8670
81ecdfbb
RW
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8672$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 8673
ce2cded5
L
8674 runpath_var=
8675 allow_undefined_flag=
8676 always_export_symbols=no
8677 archive_cmds=
8678 archive_expsym_cmds=
8679 compiler_needs_object=no
8680 enable_shared_with_static_runtimes=no
8681 export_dynamic_flag_spec=
8682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8683 hardcode_automatic=no
8684 hardcode_direct=no
8685 hardcode_direct_absolute=no
8686 hardcode_libdir_flag_spec=
8687 hardcode_libdir_flag_spec_ld=
8688 hardcode_libdir_separator=
8689 hardcode_minus_L=no
8690 hardcode_shlibpath_var=unsupported
8691 inherit_rpath=no
8692 link_all_deplibs=unknown
8693 module_cmds=
8694 module_expsym_cmds=
8695 old_archive_from_new_cmds=
8696 old_archive_from_expsyms_cmds=
8697 thread_safe_flag_spec=
8698 whole_archive_flag_spec=
8699 # include_expsyms should be a list of space-separated symbols to be *always*
8700 # included in the symbol list
8701 include_expsyms=
8702 # exclude_expsyms can be an extended regexp of symbols to exclude
8703 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8704 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8705 # as well as any symbol that contains `d'.
b214d478 8706 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
8707 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8708 # platforms (ab)use it in PIC code, but their linkers get confused if
8709 # the symbol is explicitly referenced. Since portable code cannot
8710 # rely on this symbol name, it's probably fine to never include it in
8711 # preloaded symbol tables.
b214d478 8712 # Exclude shared library initialization/finalization symbols.
ce2cded5 8713 extract_expsyms_cmds=
d7040cdb 8714
d7040cdb 8715 case $host_os in
b214d478 8716 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8717 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8718 # When not using gcc, we currently assume that we are using
8719 # Microsoft Visual C++.
8720 if test "$GCC" != yes; then
8721 with_gnu_ld=no
8722 fi
d7040cdb 8723 ;;
ce2cded5
L
8724 interix*)
8725 # we just hope/assume this is gcc and not c89 (= MSVC++)
8726 with_gnu_ld=yes
d7040cdb 8727 ;;
ce2cded5
L
8728 openbsd*)
8729 with_gnu_ld=no
d7040cdb
SE
8730 ;;
8731 esac
d7040cdb 8732
ce2cded5
L
8733 ld_shlibs=yes
8734 if test "$with_gnu_ld" = yes; then
8735 # If archive_cmds runs LD, not CC, wlarc should be empty
8736 wlarc='${wl}'
d7040cdb 8737
ce2cded5
L
8738 # Set some defaults for GNU ld with shared library support. These
8739 # are reset later if shared libraries are not supported. Putting them
8740 # here allows them to be overridden if necessary.
8741 runpath_var=LD_RUN_PATH
8742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8743 export_dynamic_flag_spec='${wl}--export-dynamic'
8744 # ancient GNU ld didn't support --whole-archive et. al.
8745 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8746 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
d7040cdb 8747 else
ce2cded5 8748 whole_archive_flag_spec=
d7040cdb 8749 fi
ce2cded5
L
8750 supports_anon_versioning=no
8751 case `$LD -v 2>&1` in
8752 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8753 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8754 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8755 *\ 2.11.*) ;; # other 2.11 versions
8756 *) supports_anon_versioning=yes ;;
8757 esac
d7040cdb 8758
ce2cded5
L
8759 # See if GNU ld supports shared libraries.
8760 case $host_os in
50e7d84b 8761 aix[3-9]*)
ce2cded5
L
8762 # On AIX/PPC, the GNU linker is very broken
8763 if test "$host_cpu" != ia64; then
8764 ld_shlibs=no
8765 cat <<_LT_EOF 1>&2
d7040cdb 8766
ce2cded5
L
8767*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8768*** to be unable to reliably create shared libraries on AIX.
8769*** Therefore, libtool is disabling shared libraries support. If you
8770*** really care for shared libraries, you may want to modify your PATH
8771*** so that a non-GNU linker is found, and then restart.
d7040cdb 8772
ce2cded5
L
8773_LT_EOF
8774 fi
8775 ;;
d7040cdb 8776
ce2cded5 8777 amigaos*)
b214d478
SE
8778 case $host_cpu in
8779 powerpc)
8780 # see comment about AmigaOS4 .so support
8781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8782 archive_expsym_cmds=''
8783 ;;
8784 m68k)
8785 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)'
8786 hardcode_libdir_flag_spec='-L$libdir'
8787 hardcode_minus_L=yes
8788 ;;
8789 esac
ce2cded5 8790 ;;
d7040cdb 8791
ce2cded5
L
8792 beos*)
8793 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8794 allow_undefined_flag=unsupported
8795 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8796 # support --undefined. This deserves some investigation. FIXME
8797 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8798 else
8799 ld_shlibs=no
8800 fi
8801 ;;
d7040cdb 8802
b214d478 8803 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8804 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8805 # as there is no search path for DLLs.
8806 hardcode_libdir_flag_spec='-L$libdir'
8807 allow_undefined_flag=unsupported
8808 always_export_symbols=no
8809 enable_shared_with_static_runtimes=yes
8810 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 8811
ce2cded5
L
8812 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8813 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8814 # If the export-symbols file already is a .def file (1st line
8815 # is EXPORTS), use it as is; otherwise, prepend...
8816 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8817 cp $export_symbols $output_objdir/$soname.def;
8818 else
8819 echo EXPORTS > $output_objdir/$soname.def;
8820 cat $export_symbols >> $output_objdir/$soname.def;
8821 fi~
8822 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8823 else
8824 ld_shlibs=no
8825 fi
8826 ;;
d7040cdb 8827
ce2cded5
L
8828 interix[3-9]*)
8829 hardcode_direct=no
8830 hardcode_shlibpath_var=no
8831 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8832 export_dynamic_flag_spec='${wl}-E'
8833 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8834 # Instead, shared libraries are loaded at an image base (0x10000000 by
8835 # default) and relocated if they conflict, which is a slow very memory
8836 # consuming and fragmenting process. To avoid this, we pick a random,
8837 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8838 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8839 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8840 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'
8841 ;;
d7040cdb 8842
58e24671 8843 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
8844 tmp_diet=no
8845 if test "$host_os" = linux-dietlibc; then
8846 case $cc_basename in
8847 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8848 esac
8849 fi
8850 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8851 && test "$tmp_diet" = no
8852 then
8853 tmp_addflag=
b214d478 8854 tmp_sharedflag='-shared'
ce2cded5
L
8855 case $cc_basename,$host_cpu in
8856 pgcc*) # Portland Group C compiler
8857 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'
8858 tmp_addflag=' $pic_flag'
8859 ;;
8860 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8861 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'
8862 tmp_addflag=' $pic_flag -Mnomain' ;;
8863 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8864 tmp_addflag=' -i_dynamic' ;;
8865 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8866 tmp_addflag=' -i_dynamic -nofor_main' ;;
8867 ifc* | ifort*) # Intel Fortran compiler
8868 tmp_addflag=' -nofor_main' ;;
b214d478
SE
8869 lf95*) # Lahey Fortran 8.1
8870 whole_archive_flag_spec=
8871 tmp_sharedflag='--shared' ;;
8872 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8873 tmp_sharedflag='-qmkshrobj'
8874 tmp_addflag= ;;
ce2cded5
L
8875 esac
8876 case `$CC -V 2>&1 | sed 5q` in
8877 *Sun\ C*) # Sun C 5.9
8878 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'
8879 compiler_needs_object=yes
8880 tmp_sharedflag='-G' ;;
8881 *Sun\ F*) # Sun Fortran 8.3
8882 tmp_sharedflag='-G' ;;
ce2cded5
L
8883 esac
8884 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 8885
ce2cded5
L
8886 if test "x$supports_anon_versioning" = xyes; then
8887 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8888 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8889 echo "local: *; };" >> $output_objdir/$libname.ver~
8890 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8891 fi
b214d478
SE
8892
8893 case $cc_basename in
8894 xlf*)
8895 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8896 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8897 hardcode_libdir_flag_spec=
8898 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8899 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8900 if test "x$supports_anon_versioning" = xyes; then
8901 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8902 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8903 echo "local: *; };" >> $output_objdir/$libname.ver~
8904 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8905 fi
8906 ;;
8907 esac
ce2cded5
L
8908 else
8909 ld_shlibs=no
8910 fi
8911 ;;
d7040cdb 8912
ce2cded5
L
8913 netbsd*)
8914 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8915 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8916 wlarc=
8917 else
8918 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8919 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8920 fi
8921 ;;
d7040cdb 8922
ce2cded5
L
8923 solaris*)
8924 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8925 ld_shlibs=no
8926 cat <<_LT_EOF 1>&2
d7040cdb 8927
ce2cded5
L
8928*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8929*** create shared libraries on Solaris systems. Therefore, libtool
8930*** is disabling shared libraries support. We urge you to upgrade GNU
8931*** binutils to release 2.9.1 or newer. Another option is to modify
8932*** your PATH or compiler configuration so that the native linker is
8933*** used, and then restart.
d7040cdb 8934
ce2cded5
L
8935_LT_EOF
8936 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8938 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8939 else
8940 ld_shlibs=no
8941 fi
8942 ;;
d7040cdb 8943
ce2cded5
L
8944 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8945 case `$LD -v 2>&1` in
8946 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8947 ld_shlibs=no
8948 cat <<_LT_EOF 1>&2
d7040cdb 8949
ce2cded5
L
8950*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8951*** reliably create shared libraries on SCO systems. Therefore, libtool
8952*** is disabling shared libraries support. We urge you to upgrade GNU
8953*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8954*** your PATH or compiler configuration so that the native linker is
8955*** used, and then restart.
d7040cdb 8956
ce2cded5
L
8957_LT_EOF
8958 ;;
8959 *)
8960 # For security reasons, it is highly recommended that you always
8961 # use absolute paths for naming shared libraries, and exclude the
8962 # DT_RUNPATH tag from executables and libraries. But doing so
8963 # requires that you compile everything twice, which is a pain.
8964 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8965 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8966 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8967 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8968 else
8969 ld_shlibs=no
8970 fi
8971 ;;
8972 esac
d7040cdb 8973 ;;
ce2cded5
L
8974
8975 sunos4*)
8976 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8977 wlarc=
8978 hardcode_direct=yes
8979 hardcode_shlibpath_var=no
d7040cdb 8980 ;;
d7040cdb 8981
ce2cded5
L
8982 *)
8983 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8985 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8986 else
8987 ld_shlibs=no
8988 fi
8989 ;;
8990 esac
d7040cdb 8991
ce2cded5
L
8992 if test "$ld_shlibs" = no; then
8993 runpath_var=
8994 hardcode_libdir_flag_spec=
8995 export_dynamic_flag_spec=
8996 whole_archive_flag_spec=
8997 fi
d7040cdb 8998 else
ce2cded5 8999 # PORTME fill in a description of your system's linker (not GNU ld)
d7040cdb 9000 case $host_os in
ce2cded5
L
9001 aix3*)
9002 allow_undefined_flag=unsupported
9003 always_export_symbols=yes
9004 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'
9005 # Note: this linker hardcodes the directories in LIBPATH if there
9006 # are no directories specified by -L.
9007 hardcode_minus_L=yes
9008 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9009 # Neither direct hardcoding nor static linking is supported with a
9010 # broken collect2.
9011 hardcode_direct=unsupported
9012 fi
9013 ;;
d7040cdb 9014
50e7d84b 9015 aix[4-9]*)
ce2cded5
L
9016 if test "$host_cpu" = ia64; then
9017 # On IA64, the linker does run time linking by default, so we don't
9018 # have to do anything special.
9019 aix_use_runtimelinking=no
9020 exp_sym_flag='-Bexport'
9021 no_entry_flag=""
9022 else
9023 # If we're using GNU nm, then we don't want the "-C" option.
9024 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9025 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9026 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'
9027 else
9028 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'
9029 fi
9030 aix_use_runtimelinking=no
d7040cdb 9031
ce2cded5
L
9032 # Test if we are trying to use run time linking or normal
9033 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9034 # need to do runtime linking.
50e7d84b 9035 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9036 for ld_flag in $LDFLAGS; do
9037 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9038 aix_use_runtimelinking=yes
9039 break
9040 fi
9041 done
9042 ;;
9043 esac
d7040cdb 9044
ce2cded5
L
9045 exp_sym_flag='-bexport'
9046 no_entry_flag='-bnoentry'
9047 fi
d7040cdb 9048
ce2cded5
L
9049 # When large executables or shared objects are built, AIX ld can
9050 # have problems creating the table of contents. If linking a library
9051 # or program results in "error TOC overflow" add -mminimal-toc to
9052 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9053 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 9054
ce2cded5
L
9055 archive_cmds=''
9056 hardcode_direct=yes
9057 hardcode_direct_absolute=yes
9058 hardcode_libdir_separator=':'
9059 link_all_deplibs=yes
9060 file_list_spec='${wl}-f,'
d7040cdb 9061
ce2cded5
L
9062 if test "$GCC" = yes; then
9063 case $host_os in aix4.[012]|aix4.[012].*)
9064 # We only want to do this on AIX 4.2 and lower, the check
9065 # below for broken collect2 doesn't work under 4.3+
9066 collect2name=`${CC} -print-prog-name=collect2`
9067 if test -f "$collect2name" &&
9068 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9069 then
9070 # We have reworked collect2
9071 :
9072 else
9073 # We have old collect2
9074 hardcode_direct=unsupported
9075 # It fails to find uninstalled libraries when the uninstalled
9076 # path is not listed in the libpath. Setting hardcode_minus_L
9077 # to unsupported forces relinking
9078 hardcode_minus_L=yes
9079 hardcode_libdir_flag_spec='-L$libdir'
9080 hardcode_libdir_separator=
9081 fi
9082 ;;
9083 esac
9084 shared_flag='-shared'
9085 if test "$aix_use_runtimelinking" = yes; then
9086 shared_flag="$shared_flag "'${wl}-G'
9087 fi
9088 else
9089 # not using gcc
9090 if test "$host_cpu" = ia64; then
9091 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9092 # chokes on -Wl,-G. The following line is correct:
9093 shared_flag='-G'
9094 else
9095 if test "$aix_use_runtimelinking" = yes; then
9096 shared_flag='${wl}-G'
9097 else
9098 shared_flag='${wl}-bM:SRE'
9099 fi
9100 fi
9101 fi
d7040cdb 9102
b214d478 9103 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9104 # It seems that -bexpall does not export symbols beginning with
9105 # underscore (_), so it is better to generate a list of symbols to export.
9106 always_export_symbols=yes
9107 if test "$aix_use_runtimelinking" = yes; then
9108 # Warning - without using the other runtime loading flags (-brtl),
9109 # -berok will link without error, but may produce a broken library.
9110 allow_undefined_flag='-berok'
9111 # Determine the default libpath from the value encoded in an
9112 # empty executable.
81ecdfbb 9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9114/* end confdefs.h. */
9115
d7040cdb
SE
9116int
9117main ()
9118{
ce2cded5 9119
d7040cdb
SE
9120 ;
9121 return 0;
9122}
9123_ACEOF
81ecdfbb 9124if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9125
ce2cded5
L
9126lt_aix_libpath_sed='
9127 /Import File Strings/,/^$/ {
9128 /^0/ {
9129 s/^0 *\(.*\)$/\1/
9130 p
9131 }
9132 }'
9133aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9134# Check for a 64-bit object if we didn't find anything.
9135if test -z "$aix_libpath"; then
9136 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d7040cdb 9137fi
d7040cdb 9138fi
81ecdfbb
RW
9139rm -f core conftest.err conftest.$ac_objext \
9140 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
9141if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9142
9143 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9144 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"
9145 else
9146 if test "$host_cpu" = ia64; then
9147 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9148 allow_undefined_flag="-z nodefs"
9149 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"
9150 else
9151 # Determine the default libpath from the value encoded in an
9152 # empty executable.
81ecdfbb 9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9154/* end confdefs.h. */
9155
d7040cdb
SE
9156int
9157main ()
9158{
ce2cded5 9159
d7040cdb
SE
9160 ;
9161 return 0;
9162}
9163_ACEOF
81ecdfbb 9164if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
9165
9166lt_aix_libpath_sed='
9167 /Import File Strings/,/^$/ {
9168 /^0/ {
9169 s/^0 *\(.*\)$/\1/
9170 p
9171 }
9172 }'
9173aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9174# Check for a 64-bit object if we didn't find anything.
9175if test -z "$aix_libpath"; then
9176 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9177fi
d7040cdb 9178fi
81ecdfbb
RW
9179rm -f core conftest.err conftest.$ac_objext \
9180 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9181if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9182
ce2cded5
L
9183 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9184 # Warning - without using the other run time loading flags,
9185 # -berok will link without error, but may produce a broken library.
9186 no_undefined_flag=' ${wl}-bernotok'
9187 allow_undefined_flag=' ${wl}-berok'
9188 # Exported symbols can be pulled into shared objects from archives
9189 whole_archive_flag_spec='$convenience'
9190 archive_cmds_need_lc=yes
9191 # This is similar to how AIX traditionally builds its shared libraries.
9192 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'
9193 fi
9194 fi
9195 ;;
d7040cdb 9196
ce2cded5 9197 amigaos*)
b214d478
SE
9198 case $host_cpu in
9199 powerpc)
9200 # see comment about AmigaOS4 .so support
9201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202 archive_expsym_cmds=''
9203 ;;
9204 m68k)
9205 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)'
9206 hardcode_libdir_flag_spec='-L$libdir'
9207 hardcode_minus_L=yes
9208 ;;
9209 esac
ce2cded5 9210 ;;
d7040cdb 9211
ce2cded5
L
9212 bsdi[45]*)
9213 export_dynamic_flag_spec=-rdynamic
9214 ;;
d7040cdb 9215
b214d478 9216 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9217 # When not using gcc, we currently assume that we are using
9218 # Microsoft Visual C++.
9219 # hardcode_libdir_flag_spec is actually meaningless, as there is
9220 # no search path for DLLs.
9221 hardcode_libdir_flag_spec=' '
9222 allow_undefined_flag=unsupported
9223 # Tell ltmain to make .lib files, not .a files.
9224 libext=lib
9225 # Tell ltmain to make .dll files, not .so files.
9226 shrext_cmds=".dll"
9227 # FIXME: Setting linknames here is a bad hack.
9228 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9229 # The linker will automatically build a .lib file if we build a DLL.
9230 old_archive_from_new_cmds='true'
9231 # FIXME: Should let the user specify the lib program.
9232 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9233 fix_srcfile_path='`cygpath -w "$srcfile"`'
9234 enable_shared_with_static_runtimes=yes
9235 ;;
d7040cdb 9236
ce2cded5 9237 darwin* | rhapsody*)
ce2cded5 9238
b214d478
SE
9239
9240 archive_cmds_need_lc=no
9241 hardcode_direct=no
9242 hardcode_automatic=yes
9243 hardcode_shlibpath_var=unsupported
9244 whole_archive_flag_spec=''
9245 link_all_deplibs=yes
9246 allow_undefined_flag="$_lt_dar_allow_undefined"
9247 case $cc_basename in
9248 ifort*) _lt_dar_can_shared=yes ;;
9249 *) _lt_dar_can_shared=$GCC ;;
9250 esac
9251 if test "$_lt_dar_can_shared" = "yes"; then
9252 output_verbose_link_cmd=echo
9253 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9254 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9255 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}"
9256 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}"
9257
9258 else
9259 ld_shlibs=no
9260 fi
9261
ce2cded5
L
9262 ;;
9263
9264 dgux*)
9265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9266 hardcode_libdir_flag_spec='-L$libdir'
9267 hardcode_shlibpath_var=no
9268 ;;
9269
9270 freebsd1*)
9271 ld_shlibs=no
9272 ;;
9273
9274 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9275 # support. Future versions do this automatically, but an explicit c++rt0.o
9276 # does not break anything, and helps significantly (at the cost of a little
9277 # extra space).
9278 freebsd2.2*)
9279 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9280 hardcode_libdir_flag_spec='-R$libdir'
9281 hardcode_direct=yes
9282 hardcode_shlibpath_var=no
9283 ;;
9284
9285 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9286 freebsd2*)
9287 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9288 hardcode_direct=yes
9289 hardcode_minus_L=yes
9290 hardcode_shlibpath_var=no
9291 ;;
9292
9293 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9294 freebsd* | dragonfly*)
9295 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9296 hardcode_libdir_flag_spec='-R$libdir'
9297 hardcode_direct=yes
9298 hardcode_shlibpath_var=no
9299 ;;
9300
9301 hpux9*)
9302 if test "$GCC" = yes; then
9303 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'
9304 else
9305 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'
9306 fi
9307 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9308 hardcode_libdir_separator=:
9309 hardcode_direct=yes
9310
9311 # hardcode_minus_L: Not really in the search PATH,
9312 # but as the default location of the library.
9313 hardcode_minus_L=yes
9314 export_dynamic_flag_spec='${wl}-E'
9315 ;;
9316
9317 hpux10*)
9318 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9319 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9320 else
9321 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9322 fi
9323 if test "$with_gnu_ld" = no; then
9324 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9325 hardcode_libdir_flag_spec_ld='+b $libdir'
9326 hardcode_libdir_separator=:
9327 hardcode_direct=yes
9328 hardcode_direct_absolute=yes
9329 export_dynamic_flag_spec='${wl}-E'
9330 # hardcode_minus_L: Not really in the search PATH,
9331 # but as the default location of the library.
9332 hardcode_minus_L=yes
9333 fi
9334 ;;
9335
9336 hpux11*)
9337 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9338 case $host_cpu in
9339 hppa*64*)
9340 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9341 ;;
9342 ia64*)
b214d478 9343 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9344 ;;
9345 *)
9346 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9347 ;;
9348 esac
9349 else
9350 case $host_cpu in
9351 hppa*64*)
9352 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9353 ;;
9354 ia64*)
9355 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9356 ;;
9357 *)
9358 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9359 ;;
9360 esac
9361 fi
9362 if test "$with_gnu_ld" = no; then
9363 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9364 hardcode_libdir_separator=:
9365
9366 case $host_cpu in
9367 hppa*64*|ia64*)
9368 hardcode_direct=no
9369 hardcode_shlibpath_var=no
9370 ;;
9371 *)
9372 hardcode_direct=yes
9373 hardcode_direct_absolute=yes
9374 export_dynamic_flag_spec='${wl}-E'
9375
9376 # hardcode_minus_L: Not really in the search PATH,
9377 # but as the default location of the library.
9378 hardcode_minus_L=yes
9379 ;;
9380 esac
9381 fi
9382 ;;
9383
9384 irix5* | irix6* | nonstopux*)
9385 if test "$GCC" = yes; then
9386 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'
9387 # Try to use the -exported_symbol ld option, if it does not
9388 # work, assume that -exports_file does not work either and
9389 # implicitly export all symbols.
9390 save_LDFLAGS="$LDFLAGS"
9391 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393/* end confdefs.h. */
ce2cded5 9394int foo(void) {}
d7040cdb 9395_ACEOF
81ecdfbb 9396if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
9397 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'
9398
d7040cdb 9399fi
81ecdfbb
RW
9400rm -f core conftest.err conftest.$ac_objext \
9401 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
9402 LDFLAGS="$save_LDFLAGS"
9403 else
9404 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'
9405 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'
9406 fi
9407 archive_cmds_need_lc='no'
9408 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9409 hardcode_libdir_separator=:
9410 inherit_rpath=yes
9411 link_all_deplibs=yes
9412 ;;
9413
9414 netbsd*)
9415 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9416 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9417 else
9418 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9419 fi
9420 hardcode_libdir_flag_spec='-R$libdir'
9421 hardcode_direct=yes
9422 hardcode_shlibpath_var=no
9423 ;;
9424
9425 newsos6)
9426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9427 hardcode_direct=yes
9428 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9429 hardcode_libdir_separator=:
9430 hardcode_shlibpath_var=no
9431 ;;
9432
9433 *nto* | *qnx*)
9434 ;;
9435
9436 openbsd*)
b214d478
SE
9437 if test -f /usr/libexec/ld.so; then
9438 hardcode_direct=yes
9439 hardcode_shlibpath_var=no
9440 hardcode_direct_absolute=yes
9441 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 9442 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 9443 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 9444 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
9445 export_dynamic_flag_spec='${wl}-E'
9446 else
9447 case $host_os in
9448 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9450 hardcode_libdir_flag_spec='-R$libdir'
9451 ;;
9452 *)
9453 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9454 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9455 ;;
9456 esac
9457 fi
9458 else
9459 ld_shlibs=no
ce2cded5
L
9460 fi
9461 ;;
9462
9463 os2*)
9464 hardcode_libdir_flag_spec='-L$libdir'
9465 hardcode_minus_L=yes
9466 allow_undefined_flag=unsupported
9467 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'
9468 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9469 ;;
9470
9471 osf3*)
9472 if test "$GCC" = yes; then
9473 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9474 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'
9475 else
9476 allow_undefined_flag=' -expect_unresolved \*'
9477 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'
9478 fi
9479 archive_cmds_need_lc='no'
9480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9481 hardcode_libdir_separator=:
9482 ;;
9483
9484 osf4* | osf5*) # as osf3* with the addition of -msym flag
9485 if test "$GCC" = yes; then
9486 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9487 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'
9488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9489 else
9490 allow_undefined_flag=' -expect_unresolved \*'
9491 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'
9492 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~
9493 $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'
9494
9495 # Both c and cxx compiler support -rpath directly
9496 hardcode_libdir_flag_spec='-rpath $libdir'
9497 fi
9498 archive_cmds_need_lc='no'
9499 hardcode_libdir_separator=:
9500 ;;
9501
9502 solaris*)
9503 no_undefined_flag=' -z defs'
9504 if test "$GCC" = yes; then
9505 wlarc='${wl}'
9506 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9507 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9508 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9509 else
9510 case `$CC -V 2>&1` in
9511 *"Compilers 5.0"*)
9512 wlarc=''
9513 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9514 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9515 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9516 ;;
9517 *)
9518 wlarc='${wl}'
9519 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9520 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9521 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9522 ;;
9523 esac
9524 fi
9525 hardcode_libdir_flag_spec='-R$libdir'
9526 hardcode_shlibpath_var=no
9527 case $host_os in
9528 solaris2.[0-5] | solaris2.[0-5].*) ;;
9529 *)
9530 # The compiler driver will combine and reorder linker options,
9531 # but understands `-z linker_flag'. GCC discards it without `$wl',
9532 # but is careful enough not to reorder.
9533 # Supported since Solaris 2.6 (maybe 2.5.1?)
9534 if test "$GCC" = yes; then
9535 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9536 else
9537 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9538 fi
9539 ;;
9540 esac
9541 link_all_deplibs=yes
9542 ;;
9543
9544 sunos4*)
9545 if test "x$host_vendor" = xsequent; then
9546 # Use $CC to link under sequent, because it throws in some extra .o
9547 # files that make .init and .fini sections work.
9548 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9549 else
9550 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9551 fi
9552 hardcode_libdir_flag_spec='-L$libdir'
9553 hardcode_direct=yes
9554 hardcode_minus_L=yes
9555 hardcode_shlibpath_var=no
9556 ;;
9557
9558 sysv4)
9559 case $host_vendor in
9560 sni)
9561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9562 hardcode_direct=yes # is this really true???
9563 ;;
9564 siemens)
9565 ## LD is ld it makes a PLAMLIB
9566 ## CC just makes a GrossModule.
9567 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9568 reload_cmds='$CC -r -o $output$reload_objs'
9569 hardcode_direct=no
9570 ;;
9571 motorola)
9572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9573 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9574 ;;
9575 esac
9576 runpath_var='LD_RUN_PATH'
9577 hardcode_shlibpath_var=no
9578 ;;
9579
9580 sysv4.3*)
9581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9582 hardcode_shlibpath_var=no
9583 export_dynamic_flag_spec='-Bexport'
9584 ;;
9585
9586 sysv4*MP*)
9587 if test -d /usr/nec; then
9588 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9589 hardcode_shlibpath_var=no
9590 runpath_var=LD_RUN_PATH
9591 hardcode_runpath_var=yes
9592 ld_shlibs=yes
9593 fi
9594 ;;
9595
9596 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9597 no_undefined_flag='${wl}-z,text'
9598 archive_cmds_need_lc=no
9599 hardcode_shlibpath_var=no
9600 runpath_var='LD_RUN_PATH'
9601
9602 if test "$GCC" = yes; then
9603 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9604 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9605 else
9606 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9607 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9608 fi
9609 ;;
9610
9611 sysv5* | sco3.2v5* | sco5v6*)
9612 # Note: We can NOT use -z defs as we might desire, because we do not
9613 # link with -lc, and that would cause any symbols used from libc to
9614 # always be unresolved, which means just about no library would
9615 # ever link correctly. If we're not using GNU ld we use -z text
9616 # though, which does catch some bad symbols but isn't as heavy-handed
9617 # as -z defs.
9618 no_undefined_flag='${wl}-z,text'
9619 allow_undefined_flag='${wl}-z,nodefs'
9620 archive_cmds_need_lc=no
9621 hardcode_shlibpath_var=no
9622 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9623 hardcode_libdir_separator=':'
9624 link_all_deplibs=yes
9625 export_dynamic_flag_spec='${wl}-Bexport'
9626 runpath_var='LD_RUN_PATH'
9627
9628 if test "$GCC" = yes; then
9629 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9630 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9631 else
9632 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9633 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9634 fi
9635 ;;
9636
9637 uts4*)
9638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9639 hardcode_libdir_flag_spec='-L$libdir'
9640 hardcode_shlibpath_var=no
9641 ;;
9642
9643 *)
9644 ld_shlibs=no
9645 ;;
9646 esac
9647
9648 if test x$host_vendor = xsni; then
9649 case $host in
9650 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9651 export_dynamic_flag_spec='${wl}-Blargedynsym'
9652 ;;
9653 esac
9654 fi
9655 fi
9656
81ecdfbb
RW
9657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9658$as_echo "$ld_shlibs" >&6; }
ce2cded5
L
9659test "$ld_shlibs" = no && can_build_shared=no
9660
9661with_gnu_ld=$with_gnu_ld
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677#
9678# Do we need to explicitly link libc?
9679#
9680case "x$archive_cmds_need_lc" in
9681x|xyes)
9682 # Assume -lc should be added
9683 archive_cmds_need_lc=yes
9684
9685 if test "$enable_shared" = yes && test "$GCC" = yes; then
9686 case $archive_cmds in
9687 *'~'*)
9688 # FIXME: we may have to deal with multi-command sequences.
9689 ;;
9690 '$CC '*)
9691 # Test whether the compiler implicitly links with -lc since on some
9692 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9693 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9695$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9696if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9697 $as_echo_n "(cached) " >&6
39144654
RW
9698else
9699 $RM conftest*
9700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
ce2cded5 9701
81ecdfbb 9702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
9703 (eval $ac_compile) 2>&5
9704 ac_status=$?
81ecdfbb
RW
9705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9706 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9707 soname=conftest
9708 lib=conftest
9709 libobjs=conftest.$ac_objext
9710 deplibs=
9711 wl=$lt_prog_compiler_wl
9712 pic_flag=$lt_prog_compiler_pic
9713 compiler_flags=-v
9714 linker_flags=-v
9715 verstring=
9716 output_objdir=.
9717 libname=conftest
9718 lt_save_allow_undefined_flag=$allow_undefined_flag
9719 allow_undefined_flag=
81ecdfbb 9720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
9721 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9722 ac_status=$?
81ecdfbb
RW
9723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9724 test $ac_status = 0; }
39144654
RW
9725 then
9726 lt_cv_archive_cmds_need_lc=no
9727 else
9728 lt_cv_archive_cmds_need_lc=yes
9729 fi
9730 allow_undefined_flag=$lt_save_allow_undefined_flag
9731 else
9732 cat conftest.err 1>&5
9733 fi
9734 $RM conftest*
9735
9736fi
81ecdfbb
RW
9737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9738$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9739 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
9740 ;;
9741 esac
9742 fi
9743 ;;
9744esac
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
81ecdfbb
RW
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9903$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
9904
9905if test "$GCC" = yes; then
ce2cded5
L
9906 case $host_os in
9907 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9908 *) lt_awk_arg="/^libraries:/" ;;
9909 esac
9910 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9911 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9912 # if the path contains ";" then we assume it to be the separator
9913 # otherwise default to the standard path separator (i.e. ":") - it is
9914 # assumed that no part of a normal pathname contains ";" but that should
9915 # okay in the real world where ";" in dirpaths is itself problematic.
9916 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9917 else
9918 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9919 fi
9920 # Ok, now we have the path, separated by spaces, we can step through it
9921 # and add multilib dir if necessary.
9922 lt_tmp_lt_search_path_spec=
9923 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9924 for lt_sys_path in $lt_search_path_spec; do
9925 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9926 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9927 else
9928 test -d "$lt_sys_path" && \
9929 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9930 fi
9931 done
9932 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9933BEGIN {RS=" "; FS="/|\n";} {
9934 lt_foo="";
9935 lt_count=0;
9936 for (lt_i = NF; lt_i > 0; lt_i--) {
9937 if ($lt_i != "" && $lt_i != ".") {
9938 if ($lt_i == "..") {
9939 lt_count++;
9940 } else {
9941 if (lt_count == 0) {
9942 lt_foo="/" $lt_i lt_foo;
9943 } else {
9944 lt_count--;
9945 }
9946 }
9947 }
9948 }
9949 if (lt_foo != "") { lt_freq[lt_foo]++; }
9950 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9951}'`
9952 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9953else
9954 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9955fi
9956library_names_spec=
9957libname_spec='lib$name'
9958soname_spec=
9959shrext_cmds=".so"
9960postinstall_cmds=
9961postuninstall_cmds=
9962finish_cmds=
9963finish_eval=
9964shlibpath_var=
9965shlibpath_overrides_runpath=unknown
9966version_type=none
9967dynamic_linker="$host_os ld.so"
9968sys_lib_dlsearch_path_spec="/lib /usr/lib"
9969need_lib_prefix=unknown
9970hardcode_into_libs=no
9971
9972# when you set need_version to no, make sure it does not cause -set_version
9973# flags to be left without arguments
9974need_version=unknown
9975
9976case $host_os in
9977aix3*)
9978 version_type=linux
9979 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9980 shlibpath_var=LIBPATH
9981
9982 # AIX 3 has no versioning support, so we append a major version to the name.
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 ;;
9985
50e7d84b 9986aix[4-9]*)
ce2cded5
L
9987 version_type=linux
9988 need_lib_prefix=no
9989 need_version=no
9990 hardcode_into_libs=yes
9991 if test "$host_cpu" = ia64; then
9992 # AIX 5 supports IA64
9993 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9994 shlibpath_var=LD_LIBRARY_PATH
9995 else
9996 # With GCC up to 2.95.x, collect2 would create an import file
9997 # for dependence libraries. The import file would start with
9998 # the line `#! .'. This would cause the generated library to
9999 # depend on `.', always an invalid library. This was fixed in
10000 # development snapshots of GCC prior to 3.0.
10001 case $host_os in
10002 aix4 | aix4.[01] | aix4.[01].*)
10003 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10004 echo ' yes '
10005 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10006 :
10007 else
10008 can_build_shared=no
10009 fi
10010 ;;
10011 esac
10012 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10013 # soname into executable. Probably we can add versioning support to
10014 # collect2, so additional links can be useful in future.
10015 if test "$aix_use_runtimelinking" = yes; then
10016 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10017 # instead of lib<name>.a to let people know that these are not
10018 # typical AIX shared libraries.
10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10020 else
10021 # We preserve .a as extension for shared libraries through AIX4.2
10022 # and later when we are not doing run time linking.
10023 library_names_spec='${libname}${release}.a $libname.a'
10024 soname_spec='${libname}${release}${shared_ext}$major'
10025 fi
10026 shlibpath_var=LIBPATH
10027 fi
10028 ;;
10029
10030amigaos*)
b214d478
SE
10031 case $host_cpu in
10032 powerpc)
10033 # Since July 2007 AmigaOS4 officially supports .so libraries.
10034 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10036 ;;
10037 m68k)
ce2cded5
L
10038 library_names_spec='$libname.ixlibrary $libname.a'
10039 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10040 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
10041 ;;
10042 esac
ce2cded5
L
10043 ;;
10044
10045beos*)
10046 library_names_spec='${libname}${shared_ext}'
10047 dynamic_linker="$host_os ld.so"
10048 shlibpath_var=LIBRARY_PATH
10049 ;;
10050
10051bsdi[45]*)
10052 version_type=linux
10053 need_version=no
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10055 soname_spec='${libname}${release}${shared_ext}$major'
10056 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10057 shlibpath_var=LD_LIBRARY_PATH
10058 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10059 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10060 # the default ld.so.conf also contains /usr/contrib/lib and
10061 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10062 # libtool to hard-code these into programs
10063 ;;
10064
b214d478 10065cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10066 version_type=windows
10067 shrext_cmds=".dll"
10068 need_version=no
10069 need_lib_prefix=no
10070
b214d478
SE
10071 case $GCC,$host_os in
10072 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10073 library_names_spec='$libname.dll.a'
10074 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10075 postinstall_cmds='base_file=`basename \${file}`~
10076 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10077 dldir=$destdir/`dirname \$dlpath`~
10078 test -d \$dldir || mkdir -p \$dldir~
10079 $install_prog $dir/$dlname \$dldir/$dlname~
10080 chmod a+x \$dldir/$dlname~
10081 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10082 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10083 fi'
10084 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10085 dlpath=$dir/\$dldll~
10086 $RM \$dlpath'
10087 shlibpath_overrides_runpath=yes
10088
10089 case $host_os in
10090 cygwin*)
10091 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10092 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10093 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10094 ;;
b214d478 10095 mingw* | cegcc*)
ce2cded5
L
10096 # MinGW DLLs use traditional 'lib' prefix
10097 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10098 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10099 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10100 # It is most probably a Windows format PATH printed by
10101 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10102 # path with ; separators, and with drive letters. We can handle the
10103 # drive letters (cygwin fileutils understands them), so leave them,
10104 # especially as we might pass files found there to a mingw objdump,
10105 # which wouldn't understand a cygwinified path. Ahh.
10106 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10107 else
10108 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10109 fi
10110 ;;
10111 pw32*)
10112 # pw32 DLLs use 'pw' prefix rather than 'lib'
10113 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10114 ;;
10115 esac
10116 ;;
10117
10118 *)
10119 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10120 ;;
10121 esac
10122 dynamic_linker='Win32 ld.exe'
10123 # FIXME: first we should search . and the directory the executable is in
10124 shlibpath_var=PATH
10125 ;;
10126
10127darwin* | rhapsody*)
10128 dynamic_linker="$host_os dyld"
10129 version_type=darwin
10130 need_lib_prefix=no
10131 need_version=no
10132 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10133 soname_spec='${libname}${release}${major}$shared_ext'
10134 shlibpath_overrides_runpath=yes
10135 shlibpath_var=DYLD_LIBRARY_PATH
10136 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10137
10138 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10139 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10140 ;;
10141
10142dgux*)
10143 version_type=linux
10144 need_lib_prefix=no
10145 need_version=no
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10147 soname_spec='${libname}${release}${shared_ext}$major'
10148 shlibpath_var=LD_LIBRARY_PATH
10149 ;;
10150
10151freebsd1*)
10152 dynamic_linker=no
10153 ;;
10154
10155freebsd* | dragonfly*)
10156 # DragonFly does not have aout. When/if they implement a new
10157 # versioning mechanism, adjust this.
10158 if test -x /usr/bin/objformat; then
10159 objformat=`/usr/bin/objformat`
10160 else
10161 case $host_os in
10162 freebsd[123]*) objformat=aout ;;
10163 *) objformat=elf ;;
10164 esac
10165 fi
10166 version_type=freebsd-$objformat
10167 case $version_type in
10168 freebsd-elf*)
10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10170 need_version=no
10171 need_lib_prefix=no
10172 ;;
10173 freebsd-*)
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10175 need_version=yes
10176 ;;
10177 esac
10178 shlibpath_var=LD_LIBRARY_PATH
10179 case $host_os in
10180 freebsd2*)
10181 shlibpath_overrides_runpath=yes
10182 ;;
10183 freebsd3.[01]* | freebsdelf3.[01]*)
10184 shlibpath_overrides_runpath=yes
10185 hardcode_into_libs=yes
10186 ;;
10187 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10188 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10189 shlibpath_overrides_runpath=no
10190 hardcode_into_libs=yes
10191 ;;
10192 *) # from 4.6 on, and DragonFly
10193 shlibpath_overrides_runpath=yes
10194 hardcode_into_libs=yes
10195 ;;
10196 esac
10197 ;;
10198
10199gnu*)
10200 version_type=linux
10201 need_lib_prefix=no
10202 need_version=no
10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10204 soname_spec='${libname}${release}${shared_ext}$major'
10205 shlibpath_var=LD_LIBRARY_PATH
10206 hardcode_into_libs=yes
10207 ;;
10208
10209hpux9* | hpux10* | hpux11*)
10210 # Give a soname corresponding to the major version so that dld.sl refuses to
10211 # link against other versions.
10212 version_type=sunos
10213 need_lib_prefix=no
10214 need_version=no
10215 case $host_cpu in
10216 ia64*)
10217 shrext_cmds='.so'
10218 hardcode_into_libs=yes
10219 dynamic_linker="$host_os dld.so"
10220 shlibpath_var=LD_LIBRARY_PATH
10221 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10223 soname_spec='${libname}${release}${shared_ext}$major'
10224 if test "X$HPUX_IA64_MODE" = X32; then
10225 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10226 else
10227 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10228 fi
10229 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10230 ;;
10231 hppa*64*)
10232 shrext_cmds='.sl'
10233 hardcode_into_libs=yes
10234 dynamic_linker="$host_os dld.sl"
10235 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10236 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238 soname_spec='${libname}${release}${shared_ext}$major'
10239 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10241 ;;
10242 *)
10243 shrext_cmds='.sl'
10244 dynamic_linker="$host_os dld.sl"
10245 shlibpath_var=SHLIB_PATH
10246 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248 soname_spec='${libname}${release}${shared_ext}$major'
10249 ;;
10250 esac
10251 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10252 postinstall_cmds='chmod 555 $lib'
10253 ;;
10254
10255interix[3-9]*)
10256 version_type=linux
10257 need_lib_prefix=no
10258 need_version=no
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10262 shlibpath_var=LD_LIBRARY_PATH
10263 shlibpath_overrides_runpath=no
10264 hardcode_into_libs=yes
10265 ;;
d7040cdb 10266
ce2cded5
L
10267irix5* | irix6* | nonstopux*)
10268 case $host_os in
10269 nonstopux*) version_type=nonstopux ;;
10270 *)
10271 if test "$lt_cv_prog_gnu_ld" = yes; then
10272 version_type=linux
10273 else
10274 version_type=irix
10275 fi ;;
10276 esac
10277 need_lib_prefix=no
10278 need_version=no
10279 soname_spec='${libname}${release}${shared_ext}$major'
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10281 case $host_os in
10282 irix5* | nonstopux*)
10283 libsuff= shlibsuff=
10284 ;;
10285 *)
10286 case $LD in # libtool.m4 will add one of these switches to LD
10287 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10288 libsuff= shlibsuff= libmagic=32-bit;;
10289 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10290 libsuff=32 shlibsuff=N32 libmagic=N32;;
10291 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10292 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10293 *) libsuff= shlibsuff= libmagic=never-match;;
10294 esac
10295 ;;
10296 esac
10297 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10298 shlibpath_overrides_runpath=no
10299 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10300 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10301 hardcode_into_libs=yes
10302 ;;
d7040cdb 10303
ce2cded5
L
10304# No shared lib support for Linux oldld, aout, or coff.
10305linux*oldld* | linux*aout* | linux*coff*)
10306 dynamic_linker=no
10307 ;;
10308
10309# This must be Linux ELF.
58e24671 10310linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
10311 version_type=linux
10312 need_lib_prefix=no
10313 need_version=no
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10315 soname_spec='${libname}${release}${shared_ext}$major'
10316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10317 shlibpath_var=LD_LIBRARY_PATH
10318 shlibpath_overrides_runpath=no
39144654 10319
ce2cded5 10320 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10321 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10322 $as_echo_n "(cached) " >&6
39144654
RW
10323else
10324 lt_cv_shlibpath_overrides_runpath=no
10325 save_LDFLAGS=$LDFLAGS
10326 save_libdir=$libdir
10327 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10328 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10330/* end confdefs.h. */
10331
d7040cdb
SE
10332int
10333main ()
10334{
ce2cded5 10335
d7040cdb
SE
10336 ;
10337 return 0;
10338}
10339_ACEOF
81ecdfbb
RW
10340if ac_fn_c_try_link "$LINENO"; then :
10341 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10342 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10343fi
d7040cdb 10344fi
81ecdfbb
RW
10345rm -f core conftest.err conftest.$ac_objext \
10346 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10347 LDFLAGS=$save_LDFLAGS
10348 libdir=$save_libdir
10349
10350fi
10351
10352 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 10353
ce2cded5
L
10354 # This implies no fast_install, which is unacceptable.
10355 # Some rework will be needed to allow for fast_install
10356 # before this can be enabled.
10357 hardcode_into_libs=yes
d7040cdb 10358
ce2cded5
L
10359 # Append ld.so.conf contents to the search path
10360 if test -f /etc/ld.so.conf; then
b214d478 10361 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
10362 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10363 fi
d7040cdb 10364
ce2cded5
L
10365 # We used to test for /lib/ld.so.1 and disable shared libraries on
10366 # powerpc, because MkLinux only supported shared libraries with the
10367 # GNU dynamic linker. Since this was broken with cross compilers,
10368 # most powerpc-linux boxes support dynamic linking these days and
10369 # people can always --disable-shared, the test was removed, and we
10370 # assume the GNU/Linux dynamic linker is in use.
10371 dynamic_linker='GNU/Linux ld.so'
10372 ;;
d7040cdb 10373
ce2cded5
L
10374netbsd*)
10375 version_type=sunos
10376 need_lib_prefix=no
10377 need_version=no
10378 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10381 dynamic_linker='NetBSD (a.out) ld.so'
10382 else
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10384 soname_spec='${libname}${release}${shared_ext}$major'
10385 dynamic_linker='NetBSD ld.elf_so'
10386 fi
10387 shlibpath_var=LD_LIBRARY_PATH
10388 shlibpath_overrides_runpath=yes
10389 hardcode_into_libs=yes
10390 ;;
d7040cdb 10391
ce2cded5
L
10392newsos6)
10393 version_type=linux
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395 shlibpath_var=LD_LIBRARY_PATH
10396 shlibpath_overrides_runpath=yes
10397 ;;
d7040cdb 10398
ce2cded5
L
10399*nto* | *qnx*)
10400 version_type=qnx
10401 need_lib_prefix=no
10402 need_version=no
10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10404 soname_spec='${libname}${release}${shared_ext}$major'
10405 shlibpath_var=LD_LIBRARY_PATH
10406 shlibpath_overrides_runpath=no
10407 hardcode_into_libs=yes
10408 dynamic_linker='ldqnx.so'
10409 ;;
d7040cdb 10410
ce2cded5
L
10411openbsd*)
10412 version_type=sunos
10413 sys_lib_dlsearch_path_spec="/usr/lib"
10414 need_lib_prefix=no
10415 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10416 case $host_os in
10417 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10418 *) need_version=no ;;
d7040cdb 10419 esac
ce2cded5
L
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10422 shlibpath_var=LD_LIBRARY_PATH
10423 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10424 case $host_os in
10425 openbsd2.[89] | openbsd2.[89].*)
10426 shlibpath_overrides_runpath=no
10427 ;;
10428 *)
10429 shlibpath_overrides_runpath=yes
10430 ;;
10431 esac
d7040cdb 10432 else
ce2cded5 10433 shlibpath_overrides_runpath=yes
d7040cdb 10434 fi
ce2cded5 10435 ;;
d7040cdb 10436
ce2cded5
L
10437os2*)
10438 libname_spec='$name'
10439 shrext_cmds=".dll"
10440 need_lib_prefix=no
10441 library_names_spec='$libname${shared_ext} $libname.a'
10442 dynamic_linker='OS/2 ld.exe'
10443 shlibpath_var=LIBPATH
10444 ;;
d7040cdb 10445
ce2cded5
L
10446osf3* | osf4* | osf5*)
10447 version_type=osf
10448 need_lib_prefix=no
10449 need_version=no
10450 soname_spec='${libname}${release}${shared_ext}$major'
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452 shlibpath_var=LD_LIBRARY_PATH
10453 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10454 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10455 ;;
d7040cdb 10456
ce2cded5
L
10457rdos*)
10458 dynamic_linker=no
10459 ;;
d7040cdb 10460
ce2cded5
L
10461solaris*)
10462 version_type=linux
10463 need_lib_prefix=no
10464 need_version=no
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466 soname_spec='${libname}${release}${shared_ext}$major'
10467 shlibpath_var=LD_LIBRARY_PATH
10468 shlibpath_overrides_runpath=yes
10469 hardcode_into_libs=yes
10470 # ldd complains unless libraries are executable
10471 postinstall_cmds='chmod +x $lib'
10472 ;;
d7040cdb 10473
ce2cded5
L
10474sunos4*)
10475 version_type=sunos
10476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10477 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10478 shlibpath_var=LD_LIBRARY_PATH
10479 shlibpath_overrides_runpath=yes
10480 if test "$with_gnu_ld" = yes; then
10481 need_lib_prefix=no
10482 fi
10483 need_version=yes
10484 ;;
d7040cdb 10485
ce2cded5
L
10486sysv4 | sysv4.3*)
10487 version_type=linux
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10489 soname_spec='${libname}${release}${shared_ext}$major'
10490 shlibpath_var=LD_LIBRARY_PATH
10491 case $host_vendor in
10492 sni)
10493 shlibpath_overrides_runpath=no
10494 need_lib_prefix=no
10495 runpath_var=LD_RUN_PATH
10496 ;;
10497 siemens)
10498 need_lib_prefix=no
10499 ;;
10500 motorola)
10501 need_lib_prefix=no
10502 need_version=no
10503 shlibpath_overrides_runpath=no
10504 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10505 ;;
10506 esac
10507 ;;
d7040cdb 10508
ce2cded5
L
10509sysv4*MP*)
10510 if test -d /usr/nec ;then
10511 version_type=linux
10512 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10513 soname_spec='$libname${shared_ext}.$major'
10514 shlibpath_var=LD_LIBRARY_PATH
10515 fi
10516 ;;
d7040cdb 10517
ce2cded5
L
10518sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10519 version_type=freebsd-elf
10520 need_lib_prefix=no
10521 need_version=no
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10523 soname_spec='${libname}${release}${shared_ext}$major'
10524 shlibpath_var=LD_LIBRARY_PATH
10525 shlibpath_overrides_runpath=yes
10526 hardcode_into_libs=yes
10527 if test "$with_gnu_ld" = yes; then
10528 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10529 else
10530 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10531 case $host_os in
10532 sco3.2v5*)
10533 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10534 ;;
10535 esac
10536 fi
10537 sys_lib_dlsearch_path_spec='/usr/lib'
10538 ;;
d7040cdb 10539
ce2cded5
L
10540tpf*)
10541 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10542 version_type=linux
10543 need_lib_prefix=no
10544 need_version=no
b214d478 10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
10546 shlibpath_var=LD_LIBRARY_PATH
10547 shlibpath_overrides_runpath=no
10548 hardcode_into_libs=yes
10549 ;;
d7040cdb 10550
ce2cded5
L
10551uts4*)
10552 version_type=linux
10553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10554 soname_spec='${libname}${release}${shared_ext}$major'
10555 shlibpath_var=LD_LIBRARY_PATH
10556 ;;
d7040cdb 10557
ce2cded5
L
10558*)
10559 dynamic_linker=no
10560 ;;
10561esac
81ecdfbb
RW
10562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10563$as_echo "$dynamic_linker" >&6; }
ce2cded5 10564test "$dynamic_linker" = no && can_build_shared=no
d7040cdb 10565
ce2cded5
L
10566variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10567if test "$GCC" = yes; then
10568 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10569fi
d7040cdb 10570
b214d478
SE
10571if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10572 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10573fi
10574if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10575 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10576fi
10577
d7040cdb 10578
d7040cdb 10579
d7040cdb 10580
d7040cdb 10581
d7040cdb 10582
d7040cdb 10583
d7040cdb 10584
d7040cdb 10585
d7040cdb 10586
d7040cdb 10587
d7040cdb
SE
10588
10589
d7040cdb 10590
d7040cdb 10591
d7040cdb 10592
d7040cdb
SE
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
d7040cdb
SE
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
d7040cdb 10622
d7040cdb 10623
d7040cdb 10624
d7040cdb 10625
d7040cdb
SE
10626
10627
10628
10629
d7040cdb 10630
d7040cdb
SE
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
d7040cdb
SE
10644
10645
10646
10647
d7040cdb
SE
10648
10649
10650
d7040cdb
SE
10651
10652
d7040cdb 10653
d7040cdb 10654
d7040cdb 10655
ce2cded5
L
10656
10657
10658
10659
10660
10661
10662
10663
81ecdfbb
RW
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10665$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
10666hardcode_action=
10667if test -n "$hardcode_libdir_flag_spec" ||
10668 test -n "$runpath_var" ||
10669 test "X$hardcode_automatic" = "Xyes" ; then
10670
10671 # We can hardcode non-existent directories.
10672 if test "$hardcode_direct" != no &&
10673 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10674 # have to relink, otherwise we might link with an installed library
10675 # when we should be linking with a yet-to-be-installed one
10676 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10677 test "$hardcode_minus_L" != no; then
10678 # Linking always hardcodes the temporary library directory.
10679 hardcode_action=relink
10680 else
10681 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10682 hardcode_action=immediate
10683 fi
d7040cdb 10684else
ce2cded5
L
10685 # We cannot hardcode anything, or else we can only hardcode existing
10686 # directories.
10687 hardcode_action=unsupported
d7040cdb 10688fi
81ecdfbb
RW
10689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10690$as_echo "$hardcode_action" >&6; }
d7040cdb 10691
ce2cded5
L
10692if test "$hardcode_action" = relink ||
10693 test "$inherit_rpath" = yes; then
10694 # Fast installation is not supported
10695 enable_fast_install=no
10696elif test "$shlibpath_overrides_runpath" = yes ||
10697 test "$enable_shared" = no; then
10698 # Fast installation is not necessary
10699 enable_fast_install=needless
d7040cdb
SE
10700fi
10701
d7040cdb 10702
d7040cdb 10703
0ab6f085 10704
0ab6f085 10705
0ab6f085 10706
ce2cded5
L
10707 if test "x$enable_dlopen" != xyes; then
10708 enable_dlopen=unknown
10709 enable_dlopen_self=unknown
10710 enable_dlopen_self_static=unknown
d7040cdb 10711else
ce2cded5
L
10712 lt_cv_dlopen=no
10713 lt_cv_dlopen_libs=
d7040cdb 10714
ce2cded5
L
10715 case $host_os in
10716 beos*)
10717 lt_cv_dlopen="load_add_on"
10718 lt_cv_dlopen_libs=
10719 lt_cv_dlopen_self=yes
10720 ;;
d7040cdb 10721
b214d478 10722 mingw* | pw32* | cegcc*)
ce2cded5
L
10723 lt_cv_dlopen="LoadLibrary"
10724 lt_cv_dlopen_libs=
10725 ;;
10726
10727 cygwin*)
10728 lt_cv_dlopen="dlopen"
10729 lt_cv_dlopen_libs=
10730 ;;
10731
10732 darwin*)
10733 # if libdl is installed we need to link against it
81ecdfbb
RW
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10735$as_echo_n "checking for dlopen in -ldl... " >&6; }
10736if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10737 $as_echo_n "(cached) " >&6
d7040cdb 10738else
ce2cded5
L
10739 ac_check_lib_save_LIBS=$LIBS
10740LIBS="-ldl $LIBS"
81ecdfbb 10741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
10742/* end confdefs.h. */
10743
81ecdfbb
RW
10744/* Override any GCC internal prototype to avoid an error.
10745 Use char because int might match the return type of a GCC
10746 builtin and then its argument prototype would still apply. */
ce2cded5
L
10747#ifdef __cplusplus
10748extern "C"
10749#endif
ce2cded5
L
10750char dlopen ();
10751int
10752main ()
10753{
81ecdfbb 10754return dlopen ();
ce2cded5
L
10755 ;
10756 return 0;
10757}
10758_ACEOF
81ecdfbb 10759if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10760 ac_cv_lib_dl_dlopen=yes
10761else
81ecdfbb 10762 ac_cv_lib_dl_dlopen=no
d7040cdb 10763fi
81ecdfbb
RW
10764rm -f core conftest.err conftest.$ac_objext \
10765 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10766LIBS=$ac_check_lib_save_LIBS
d7040cdb 10767fi
81ecdfbb
RW
10768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10769$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10770if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 10771 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10772else
d7040cdb 10773
ce2cded5
L
10774 lt_cv_dlopen="dyld"
10775 lt_cv_dlopen_libs=
10776 lt_cv_dlopen_self=yes
10777
d7040cdb 10778fi
ce2cded5
L
10779
10780 ;;
10781
10782 *)
81ecdfbb
RW
10783 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10784if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
10785 lt_cv_dlopen="shl_load"
10786else
81ecdfbb
RW
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10788$as_echo_n "checking for shl_load in -ldld... " >&6; }
10789if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10790 $as_echo_n "(cached) " >&6
ce2cded5
L
10791else
10792 ac_check_lib_save_LIBS=$LIBS
10793LIBS="-ldld $LIBS"
81ecdfbb 10794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10795/* end confdefs.h. */
d7040cdb 10796
81ecdfbb
RW
10797/* Override any GCC internal prototype to avoid an error.
10798 Use char because int might match the return type of a GCC
10799 builtin and then its argument prototype would still apply. */
ce2cded5
L
10800#ifdef __cplusplus
10801extern "C"
10802#endif
ce2cded5
L
10803char shl_load ();
10804int
10805main ()
10806{
81ecdfbb 10807return shl_load ();
ce2cded5
L
10808 ;
10809 return 0;
10810}
10811_ACEOF
81ecdfbb 10812if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10813 ac_cv_lib_dld_shl_load=yes
10814else
81ecdfbb 10815 ac_cv_lib_dld_shl_load=no
ce2cded5 10816fi
81ecdfbb
RW
10817rm -f core conftest.err conftest.$ac_objext \
10818 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10819LIBS=$ac_check_lib_save_LIBS
10820fi
81ecdfbb
RW
10821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10822$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10823if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
b214d478 10824 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 10825else
81ecdfbb
RW
10826 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10827if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
10828 lt_cv_dlopen="dlopen"
10829else
81ecdfbb
RW
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10831$as_echo_n "checking for dlopen in -ldl... " >&6; }
10832if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10833 $as_echo_n "(cached) " >&6
d7040cdb 10834else
ce2cded5
L
10835 ac_check_lib_save_LIBS=$LIBS
10836LIBS="-ldl $LIBS"
81ecdfbb 10837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10838/* end confdefs.h. */
10839
81ecdfbb
RW
10840/* Override any GCC internal prototype to avoid an error.
10841 Use char because int might match the return type of a GCC
10842 builtin and then its argument prototype would still apply. */
ce2cded5
L
10843#ifdef __cplusplus
10844extern "C"
10845#endif
ce2cded5 10846char dlopen ();
d7040cdb
SE
10847int
10848main ()
10849{
81ecdfbb 10850return dlopen ();
d7040cdb
SE
10851 ;
10852 return 0;
10853}
10854_ACEOF
81ecdfbb 10855if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 10856 ac_cv_lib_dl_dlopen=yes
d7040cdb 10857else
81ecdfbb 10858 ac_cv_lib_dl_dlopen=no
1b9750d6 10859fi
81ecdfbb
RW
10860rm -f core conftest.err conftest.$ac_objext \
10861 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10862LIBS=$ac_check_lib_save_LIBS
d7040cdb 10863fi
81ecdfbb
RW
10864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10865$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10866if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 10867 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10868else
81ecdfbb
RW
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10870$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10871if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10872 $as_echo_n "(cached) " >&6
d7040cdb 10873else
ce2cded5
L
10874 ac_check_lib_save_LIBS=$LIBS
10875LIBS="-lsvld $LIBS"
81ecdfbb 10876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10877/* end confdefs.h. */
d7040cdb 10878
81ecdfbb
RW
10879/* Override any GCC internal prototype to avoid an error.
10880 Use char because int might match the return type of a GCC
10881 builtin and then its argument prototype would still apply. */
ce2cded5
L
10882#ifdef __cplusplus
10883extern "C"
10884#endif
ce2cded5 10885char dlopen ();
d7040cdb
SE
10886int
10887main ()
10888{
81ecdfbb 10889return dlopen ();
d7040cdb
SE
10890 ;
10891 return 0;
10892}
10893_ACEOF
81ecdfbb 10894if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 10895 ac_cv_lib_svld_dlopen=yes
0ab6f085 10896else
81ecdfbb 10897 ac_cv_lib_svld_dlopen=no
0ab6f085 10898fi
81ecdfbb
RW
10899rm -f core conftest.err conftest.$ac_objext \
10900 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10901LIBS=$ac_check_lib_save_LIBS
0ab6f085 10902fi
81ecdfbb
RW
10903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10904$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10905if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
10906 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10907else
81ecdfbb
RW
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10909$as_echo_n "checking for dld_link in -ldld... " >&6; }
10910if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10911 $as_echo_n "(cached) " >&6
ce2cded5
L
10912else
10913 ac_check_lib_save_LIBS=$LIBS
10914LIBS="-ldld $LIBS"
81ecdfbb 10915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0ab6f085 10916/* end confdefs.h. */
ce2cded5 10917
81ecdfbb
RW
10918/* Override any GCC internal prototype to avoid an error.
10919 Use char because int might match the return type of a GCC
10920 builtin and then its argument prototype would still apply. */
ce2cded5
L
10921#ifdef __cplusplus
10922extern "C"
10923#endif
ce2cded5 10924char dld_link ();
0ab6f085
AM
10925int
10926main ()
10927{
81ecdfbb 10928return dld_link ();
0ab6f085
AM
10929 ;
10930 return 0;
10931}
10932_ACEOF
81ecdfbb 10933if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 10934 ac_cv_lib_dld_dld_link=yes
0ab6f085 10935else
81ecdfbb 10936 ac_cv_lib_dld_dld_link=no
0ab6f085 10937fi
81ecdfbb
RW
10938rm -f core conftest.err conftest.$ac_objext \
10939 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10940LIBS=$ac_check_lib_save_LIBS
10941fi
81ecdfbb
RW
10942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10943$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10944if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
b214d478 10945 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
10946fi
10947
10948
10949fi
10950
10951
10952fi
10953
10954
10955fi
10956
10957
10958fi
10959
10960
10961fi
10962
10963 ;;
10964 esac
10965
10966 if test "x$lt_cv_dlopen" != xno; then
10967 enable_dlopen=yes
10968 else
10969 enable_dlopen=no
10970 fi
10971
10972 case $lt_cv_dlopen in
10973 dlopen)
10974 save_CPPFLAGS="$CPPFLAGS"
10975 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10976
10977 save_LDFLAGS="$LDFLAGS"
10978 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10979
10980 save_LIBS="$LIBS"
10981 LIBS="$lt_cv_dlopen_libs $LIBS"
10982
81ecdfbb
RW
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10984$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10985if test "${lt_cv_dlopen_self+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
ce2cded5
L
10987else
10988 if test "$cross_compiling" = yes; then :
10989 lt_cv_dlopen_self=cross
10990else
10991 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10992 lt_status=$lt_dlunknown
10993 cat > conftest.$ac_ext <<_LT_EOF
81ecdfbb 10994#line 10994 "configure"
ce2cded5
L
10995#include "confdefs.h"
10996
10997#if HAVE_DLFCN_H
10998#include <dlfcn.h>
10999#endif
11000
11001#include <stdio.h>
11002
11003#ifdef RTLD_GLOBAL
11004# define LT_DLGLOBAL RTLD_GLOBAL
11005#else
11006# ifdef DL_GLOBAL
11007# define LT_DLGLOBAL DL_GLOBAL
11008# else
11009# define LT_DLGLOBAL 0
11010# endif
11011#endif
11012
11013/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11014 find out it does not work in some platform. */
11015#ifndef LT_DLLAZY_OR_NOW
11016# ifdef RTLD_LAZY
11017# define LT_DLLAZY_OR_NOW RTLD_LAZY
11018# else
11019# ifdef DL_LAZY
11020# define LT_DLLAZY_OR_NOW DL_LAZY
11021# else
11022# ifdef RTLD_NOW
11023# define LT_DLLAZY_OR_NOW RTLD_NOW
11024# else
11025# ifdef DL_NOW
11026# define LT_DLLAZY_OR_NOW DL_NOW
11027# else
11028# define LT_DLLAZY_OR_NOW 0
11029# endif
11030# endif
11031# endif
11032# endif
11033#endif
11034
ce2cded5
L
11035void fnord() { int i=42;}
11036int main ()
0ab6f085 11037{
ce2cded5
L
11038 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11039 int status = $lt_dlunknown;
11040
11041 if (self)
11042 {
11043 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11044 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11045 /* dlclose (self); */
11046 }
11047 else
11048 puts (dlerror ());
11049
b214d478 11050 return status;
ce2cded5
L
11051}
11052_LT_EOF
81ecdfbb 11053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
11054 (eval $ac_link) 2>&5
11055 ac_status=$?
81ecdfbb
RW
11056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11057 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11058 (./conftest; exit; ) >&5 2>/dev/null
11059 lt_status=$?
11060 case x$lt_status in
11061 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11062 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11063 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11064 esac
11065 else :
11066 # compilation failed
11067 lt_cv_dlopen_self=no
11068 fi
11069fi
11070rm -fr conftest*
11071
11072
11073fi
81ecdfbb
RW
11074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11075$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11076
11077 if test "x$lt_cv_dlopen_self" = xyes; then
11078 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11080$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11081if test "${lt_cv_dlopen_self_static+set}" = set; then :
11082 $as_echo_n "(cached) " >&6
ce2cded5
L
11083else
11084 if test "$cross_compiling" = yes; then :
11085 lt_cv_dlopen_self_static=cross
11086else
11087 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11088 lt_status=$lt_dlunknown
11089 cat > conftest.$ac_ext <<_LT_EOF
81ecdfbb 11090#line 11090 "configure"
ce2cded5
L
11091#include "confdefs.h"
11092
11093#if HAVE_DLFCN_H
11094#include <dlfcn.h>
11095#endif
11096
11097#include <stdio.h>
11098
11099#ifdef RTLD_GLOBAL
11100# define LT_DLGLOBAL RTLD_GLOBAL
11101#else
11102# ifdef DL_GLOBAL
11103# define LT_DLGLOBAL DL_GLOBAL
11104# else
11105# define LT_DLGLOBAL 0
11106# endif
11107#endif
11108
11109/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11110 find out it does not work in some platform. */
11111#ifndef LT_DLLAZY_OR_NOW
11112# ifdef RTLD_LAZY
11113# define LT_DLLAZY_OR_NOW RTLD_LAZY
11114# else
11115# ifdef DL_LAZY
11116# define LT_DLLAZY_OR_NOW DL_LAZY
11117# else
11118# ifdef RTLD_NOW
11119# define LT_DLLAZY_OR_NOW RTLD_NOW
11120# else
11121# ifdef DL_NOW
11122# define LT_DLLAZY_OR_NOW DL_NOW
11123# else
11124# define LT_DLLAZY_OR_NOW 0
11125# endif
11126# endif
11127# endif
11128# endif
11129#endif
11130
ce2cded5
L
11131void fnord() { int i=42;}
11132int main ()
11133{
11134 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11135 int status = $lt_dlunknown;
11136
11137 if (self)
11138 {
11139 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11140 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11141 /* dlclose (self); */
11142 }
11143 else
11144 puts (dlerror ());
11145
b214d478 11146 return status;
0ab6f085 11147}
ce2cded5 11148_LT_EOF
81ecdfbb 11149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11150 (eval $ac_link) 2>&5
0ab6f085 11151 ac_status=$?
81ecdfbb
RW
11152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11153 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11154 (./conftest; exit; ) >&5 2>/dev/null
11155 lt_status=$?
11156 case x$lt_status in
11157 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11158 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11159 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11160 esac
11161 else :
11162 # compilation failed
11163 lt_cv_dlopen_self_static=no
11164 fi
11165fi
11166rm -fr conftest*
11167
d7040cdb
SE
11168
11169fi
81ecdfbb
RW
11170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11171$as_echo "$lt_cv_dlopen_self_static" >&6; }
ce2cded5
L
11172 fi
11173
11174 CPPFLAGS="$save_CPPFLAGS"
11175 LDFLAGS="$save_LDFLAGS"
11176 LIBS="$save_LIBS"
11177 ;;
11178 esac
11179
11180 case $lt_cv_dlopen_self in
11181 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11182 *) enable_dlopen_self=unknown ;;
11183 esac
11184
11185 case $lt_cv_dlopen_self_static in
11186 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11187 *) enable_dlopen_self_static=unknown ;;
11188 esac
d7040cdb
SE
11189fi
11190
ce2cded5
L
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207striplib=
11208old_striplib=
81ecdfbb
RW
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11210$as_echo_n "checking whether stripping libraries is possible... " >&6; }
ce2cded5
L
11211if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11212 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11213 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11215$as_echo "yes" >&6; }
0ab6f085 11216else
ce2cded5
L
11217# FIXME - insert some real tests, host_os isn't really good enough
11218 case $host_os in
11219 darwin*)
11220 if test -n "$STRIP" ; then
11221 striplib="$STRIP -x"
11222 old_striplib="$STRIP -S"
81ecdfbb
RW
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11224$as_echo "yes" >&6; }
ce2cded5 11225 else
81ecdfbb
RW
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227$as_echo "no" >&6; }
ce2cded5
L
11228 fi
11229 ;;
11230 *)
81ecdfbb
RW
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232$as_echo "no" >&6; }
ce2cded5
L
11233 ;;
11234 esac
11235fi
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248 # Report which library types will actually be built
81ecdfbb
RW
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11250$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11252$as_echo "$can_build_shared" >&6; }
ce2cded5 11253
81ecdfbb
RW
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11255$as_echo_n "checking whether to build shared libraries... " >&6; }
ce2cded5
L
11256 test "$can_build_shared" = "no" && enable_shared=no
11257
11258 # On AIX, shared libraries and static libraries use the same namespace, and
11259 # are all built from PIC.
11260 case $host_os in
11261 aix3*)
11262 test "$enable_shared" = yes && enable_static=no
11263 if test -n "$RANLIB"; then
11264 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11265 postinstall_cmds='$RANLIB $lib'
11266 fi
11267 ;;
11268
50e7d84b 11269 aix[4-9]*)
ce2cded5
L
11270 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11271 test "$enable_shared" = yes && enable_static=no
11272 fi
11273 ;;
11274 esac
81ecdfbb
RW
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11276$as_echo "$enable_shared" >&6; }
ce2cded5 11277
81ecdfbb
RW
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11279$as_echo_n "checking whether to build static libraries... " >&6; }
ce2cded5
L
11280 # Make sure either enable_shared or enable_static is yes.
11281 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11283$as_echo "$enable_static" >&6; }
ce2cded5
L
11284
11285
11286
d7040cdb 11287
0ab6f085 11288fi
d7040cdb
SE
11289ac_ext=c
11290ac_cpp='$CPP $CPPFLAGS'
11291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11293ac_compiler_gnu=$ac_cv_c_compiler_gnu
11294
ce2cded5 11295CC="$lt_save_CC"
0ab6f085 11296
0ab6f085
AM
11297
11298
d7040cdb
SE
11299
11300
d7040cdb 11301
d7040cdb 11302
d7040cdb 11303
ce2cded5
L
11304
11305
11306
11307
11308
81ecdfbb 11309 ac_config_commands="$ac_config_commands libtool"
ce2cded5
L
11310
11311
11312
11313
11314# Only expand once:
11315
d7040cdb
SE
11316
11317
d7040cdb 11318for ac_func in setmode
81ecdfbb
RW
11319do :
11320 ac_fn_c_check_func "$LINENO" "setmode" "ac_cv_func_setmode"
11321if test "x$ac_cv_func_setmode" = x""yes; then :
d7040cdb 11322 cat >>confdefs.h <<_ACEOF
81ecdfbb 11323#define HAVE_SETMODE 1
d7040cdb
SE
11324_ACEOF
11325
11326fi
11327done
11328
11329
789169e5 11330ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi nl"
d7040cdb
SE
11331# If we haven't got the data from the intl directory,
11332# assume NLS is disabled.
11333USE_NLS=no
11334LIBINTL=
11335LIBINTL_DEP=
11336INCINTL=
11337XGETTEXT=
11338GMSGFMT=
11339POSUB=
11340
11341if test -f ../intl/config.intl; then
11342 . ../intl/config.intl
11343fi
81ecdfbb
RW
11344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11345$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 11346if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348$as_echo "no" >&6; }
d7040cdb 11349else
81ecdfbb
RW
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11351$as_echo "yes" >&6; }
d7040cdb 11352
81ecdfbb 11353$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
11354
11355
81ecdfbb
RW
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11357$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
11358 # Look for .po and .gmo files in the source directory.
11359 CATALOGS=
11360 XLINGUAS=
11361 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11362 # If there aren't any .gmo files the shell will give us the
11363 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11364 # weeded out.
11365 case "$cat" in *\**)
11366 continue;;
11367 esac
11368 # The quadruple backslash is collapsed to a double backslash
11369 # by the backticks, then collapsed again by the double quotes,
11370 # leaving us with one backslash in the sed expression (right
11371 # before the dot that mustn't act as a wildcard).
11372 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11373 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11374 # The user is allowed to set LINGUAS to a list of languages to
11375 # install catalogs for. If it's empty that means "all of them."
11376 if test "x$LINGUAS" = x; then
11377 CATALOGS="$CATALOGS $cat"
11378 XLINGUAS="$XLINGUAS $lang"
11379 else
11380 case "$LINGUAS" in *$lang*)
11381 CATALOGS="$CATALOGS $cat"
11382 XLINGUAS="$XLINGUAS $lang"
11383 ;;
11384 esac
11385 fi
11386 done
11387 LINGUAS="$XLINGUAS"
81ecdfbb
RW
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11389$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
11390
11391
11392 DATADIRNAME=share
11393
11394 INSTOBJEXT=.mo
11395
11396 GENCAT=gencat
11397
11398 CATOBJEXT=.gmo
11399
11400fi
11401
11402 MKINSTALLDIRS=
11403 if test -n "$ac_aux_dir"; then
11404 case "$ac_aux_dir" in
11405 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11406 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11407 esac
11408 fi
11409 if test -z "$MKINSTALLDIRS"; then
11410 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11411 fi
11412
11413
11414
81ecdfbb
RW
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11416$as_echo_n "checking whether NLS is requested... " >&6; }
11417 # Check whether --enable-nls was given.
11418if test "${enable_nls+set}" = set; then :
11419 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
11420else
11421 USE_NLS=yes
81ecdfbb
RW
11422fi
11423
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11425$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
11426
11427
11428
11429
11430
11431
11432# Prepare PATH_SEPARATOR.
11433# The user is always right.
11434if test "${PATH_SEPARATOR+set}" != set; then
11435 echo "#! /bin/sh" >conf$$.sh
11436 echo "exit 0" >>conf$$.sh
11437 chmod +x conf$$.sh
11438 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11439 PATH_SEPARATOR=';'
11440 else
11441 PATH_SEPARATOR=:
11442 fi
11443 rm -f conf$$.sh
11444fi
11445
11446# Find out how to test for executable files. Don't use a zero-byte file,
11447# as systems may use methods other than mode bits to determine executability.
11448cat >conf$$.file <<_ASEOF
11449#! /bin/sh
11450exit 0
11451_ASEOF
11452chmod +x conf$$.file
11453if test -x conf$$.file >/dev/null 2>&1; then
11454 ac_executable_p="test -x"
11455else
11456 ac_executable_p="test -f"
11457fi
11458rm -f conf$$.file
11459
11460# Extract the first word of "msgfmt", so it can be a program name with args.
11461set dummy msgfmt; ac_word=$2
81ecdfbb
RW
11462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11463$as_echo_n "checking for $ac_word... " >&6; }
11464if test "${ac_cv_path_MSGFMT+set}" = set; then :
11465 $as_echo_n "(cached) " >&6
d7040cdb
SE
11466else
11467 case "$MSGFMT" in
11468 [\\/]* | ?:[\\/]*)
11469 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11470 ;;
11471 *)
11472 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11473 for ac_dir in $PATH; do
11474 IFS="$ac_save_IFS"
11475 test -z "$ac_dir" && ac_dir=.
11476 for ac_exec_ext in '' $ac_executable_extensions; do
11477 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11478 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11479 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11480 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11481 break 2
11482 fi
11483 fi
11484 done
11485 done
11486 IFS="$ac_save_IFS"
11487 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11488 ;;
11489esac
11490fi
11491MSGFMT="$ac_cv_path_MSGFMT"
11492if test "$MSGFMT" != ":"; then
81ecdfbb
RW
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11494$as_echo "$MSGFMT" >&6; }
d7040cdb 11495else
81ecdfbb
RW
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497$as_echo "no" >&6; }
d7040cdb
SE
11498fi
11499
11500 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11501set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
11502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11503$as_echo_n "checking for $ac_word... " >&6; }
11504if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11505 $as_echo_n "(cached) " >&6
d7040cdb
SE
11506else
11507 case $GMSGFMT in
11508 [\\/]* | ?:[\\/]*)
11509 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11510 ;;
11511 *)
11512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513for as_dir in $PATH
11514do
11515 IFS=$as_save_IFS
11516 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11517 for ac_exec_ext in '' $ac_executable_extensions; do
11518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 11519 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
11521 break 2
11522 fi
11523done
81ecdfbb
RW
11524 done
11525IFS=$as_save_IFS
d7040cdb
SE
11526
11527 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11528 ;;
11529esac
11530fi
11531GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 11532if test -n "$GMSGFMT"; then
81ecdfbb
RW
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11534$as_echo "$GMSGFMT" >&6; }
d7040cdb 11535else
81ecdfbb
RW
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537$as_echo "no" >&6; }
d7040cdb
SE
11538fi
11539
11540
11541
81ecdfbb 11542
d7040cdb
SE
11543# Prepare PATH_SEPARATOR.
11544# The user is always right.
11545if test "${PATH_SEPARATOR+set}" != set; then
11546 echo "#! /bin/sh" >conf$$.sh
11547 echo "exit 0" >>conf$$.sh
11548 chmod +x conf$$.sh
11549 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11550 PATH_SEPARATOR=';'
11551 else
11552 PATH_SEPARATOR=:
11553 fi
11554 rm -f conf$$.sh
11555fi
11556
11557# Find out how to test for executable files. Don't use a zero-byte file,
11558# as systems may use methods other than mode bits to determine executability.
11559cat >conf$$.file <<_ASEOF
11560#! /bin/sh
11561exit 0
11562_ASEOF
11563chmod +x conf$$.file
11564if test -x conf$$.file >/dev/null 2>&1; then
11565 ac_executable_p="test -x"
11566else
11567 ac_executable_p="test -f"
11568fi
11569rm -f conf$$.file
11570
11571# Extract the first word of "xgettext", so it can be a program name with args.
11572set dummy xgettext; ac_word=$2
81ecdfbb
RW
11573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11574$as_echo_n "checking for $ac_word... " >&6; }
11575if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11576 $as_echo_n "(cached) " >&6
d7040cdb
SE
11577else
11578 case "$XGETTEXT" in
11579 [\\/]* | ?:[\\/]*)
11580 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11581 ;;
11582 *)
11583 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11584 for ac_dir in $PATH; do
11585 IFS="$ac_save_IFS"
11586 test -z "$ac_dir" && ac_dir=.
11587 for ac_exec_ext in '' $ac_executable_extensions; do
11588 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11589 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11590 (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
11591 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11592 break 2
11593 fi
11594 fi
11595 done
11596 done
11597 IFS="$ac_save_IFS"
11598 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11599 ;;
11600esac
11601fi
11602XGETTEXT="$ac_cv_path_XGETTEXT"
11603if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11605$as_echo "$XGETTEXT" >&6; }
d7040cdb 11606else
81ecdfbb
RW
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608$as_echo "no" >&6; }
d7040cdb
SE
11609fi
11610
11611 rm -f messages.po
11612
11613
11614# Prepare PATH_SEPARATOR.
11615# The user is always right.
11616if test "${PATH_SEPARATOR+set}" != set; then
11617 echo "#! /bin/sh" >conf$$.sh
11618 echo "exit 0" >>conf$$.sh
11619 chmod +x conf$$.sh
11620 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11621 PATH_SEPARATOR=';'
11622 else
11623 PATH_SEPARATOR=:
11624 fi
11625 rm -f conf$$.sh
11626fi
11627
11628# Find out how to test for executable files. Don't use a zero-byte file,
11629# as systems may use methods other than mode bits to determine executability.
11630cat >conf$$.file <<_ASEOF
11631#! /bin/sh
11632exit 0
11633_ASEOF
11634chmod +x conf$$.file
11635if test -x conf$$.file >/dev/null 2>&1; then
11636 ac_executable_p="test -x"
11637else
11638 ac_executable_p="test -f"
11639fi
11640rm -f conf$$.file
11641
11642# Extract the first word of "msgmerge", so it can be a program name with args.
11643set dummy msgmerge; ac_word=$2
81ecdfbb
RW
11644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11645$as_echo_n "checking for $ac_word... " >&6; }
11646if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11647 $as_echo_n "(cached) " >&6
d7040cdb
SE
11648else
11649 case "$MSGMERGE" in
11650 [\\/]* | ?:[\\/]*)
11651 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11652 ;;
11653 *)
11654 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11655 for ac_dir in $PATH; do
11656 IFS="$ac_save_IFS"
11657 test -z "$ac_dir" && ac_dir=.
11658 for ac_exec_ext in '' $ac_executable_extensions; do
11659 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11660 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11661 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11662 break 2
11663 fi
11664 fi
11665 done
11666 done
11667 IFS="$ac_save_IFS"
11668 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11669 ;;
11670esac
11671fi
11672MSGMERGE="$ac_cv_path_MSGMERGE"
11673if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11675$as_echo "$MSGMERGE" >&6; }
d7040cdb 11676else
81ecdfbb
RW
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678$as_echo "no" >&6; }
d7040cdb
SE
11679fi
11680
11681
11682 if test "$GMSGFMT" != ":"; then
11683 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11684 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11685 : ;
11686 else
11687 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11689$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
11690 GMSGFMT=":"
11691 fi
11692 fi
11693
11694 if test "$XGETTEXT" != ":"; then
11695 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11696 (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
11697 : ;
11698 else
81ecdfbb
RW
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11700$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
11701 XGETTEXT=":"
11702 fi
11703 rm -f messages.po
11704 fi
11705
81ecdfbb
RW
11706 ac_config_commands="$ac_config_commands default-1"
11707
d7040cdb
SE
11708
11709
11710
81ecdfbb
RW
11711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11712$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11713 # Check whether --enable-maintainer-mode was given.
11714if test "${enable_maintainer_mode+set}" = set; then :
11715 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 11716else
d7040cdb 11717 USE_MAINTAINER_MODE=no
81ecdfbb 11718fi
d7040cdb 11719
81ecdfbb
RW
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11721$as_echo "$USE_MAINTAINER_MODE" >&6; }
11722 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
11723 MAINTAINER_MODE_TRUE=
11724 MAINTAINER_MODE_FALSE='#'
11725else
11726 MAINTAINER_MODE_TRUE='#'
11727 MAINTAINER_MODE_FALSE=
20e95c23 11728fi
6bf9431b 11729
d7040cdb
SE
11730 MAINT=$MAINTAINER_MODE_TRUE
11731
11732
81ecdfbb 11733 if false; then
d7040cdb
SE
11734 GENINSRC_NEVER_TRUE=
11735 GENINSRC_NEVER_FALSE='#'
11736else
11737 GENINSRC_NEVER_TRUE='#'
11738 GENINSRC_NEVER_FALSE=
20e95c23 11739fi
6bf9431b
BE
11740
11741
11742
6bf9431b 11743for ac_header in sys/gmon_out.h
81ecdfbb
RW
11744do :
11745 ac_fn_c_check_header_mongrel "$LINENO" "sys/gmon_out.h" "ac_cv_header_sys_gmon_out_h" "$ac_includes_default"
11746if test "x$ac_cv_header_sys_gmon_out_h" = x""yes; then :
6bf9431b 11747 cat >>confdefs.h <<_ACEOF
81ecdfbb 11748#define HAVE_SYS_GMON_OUT_H 1
6bf9431b
BE
11749_ACEOF
11750
11751fi
11752
11753done
11754
11755
81ecdfbb
RW
11756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
11757$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
11758if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then :
11759 $as_echo_n "(cached) " >&6
34875e64 11760else
81ecdfbb 11761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34875e64
NC
11762/* end confdefs.h. */
11763#include <unistd.h>
11764int
11765main ()
11766{
11767extern int getopt (int, char *const*, const char *);
11768 ;
11769 return 0;
11770}
11771_ACEOF
81ecdfbb 11772if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
11773 gprof_cv_decl_getopt_unistd_h=yes
11774else
81ecdfbb 11775 gprof_cv_decl_getopt_unistd_h=no
34875e64 11776fi
81ecdfbb 11777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
11778fi
11779
81ecdfbb
RW
11780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gprof_cv_decl_getopt_unistd_h" >&5
11781$as_echo "$gprof_cv_decl_getopt_unistd_h" >&6; }
34875e64
NC
11782if test $gprof_cv_decl_getopt_unistd_h = yes; then
11783
81ecdfbb 11784$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
11785
11786fi
11787
1b9750d6 11788# Some systems have fabs only in -lm, not in -lc.
81ecdfbb
RW
11789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
11790$as_echo_n "checking for library containing fabs... " >&6; }
11791if test "${ac_cv_search_fabs+set}" = set; then :
11792 $as_echo_n "(cached) " >&6
1b9750d6
NC
11793else
11794 ac_func_search_save_LIBS=$LIBS
81ecdfbb 11795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1b9750d6
NC
11796/* end confdefs.h. */
11797
81ecdfbb
RW
11798/* Override any GCC internal prototype to avoid an error.
11799 Use char because int might match the return type of a GCC
11800 builtin and then its argument prototype would still apply. */
1b9750d6
NC
11801#ifdef __cplusplus
11802extern "C"
11803#endif
11804char fabs ();
11805int
11806main ()
11807{
81ecdfbb 11808return fabs ();
1b9750d6
NC
11809 ;
11810 return 0;
11811}
11812_ACEOF
81ecdfbb
RW
11813for ac_lib in '' m; do
11814 if test -z "$ac_lib"; then
11815 ac_res="none required"
11816 else
11817 ac_res=-l$ac_lib
0ab6f085 11818 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
11819 fi
11820 if ac_fn_c_try_link "$LINENO"; then :
11821 ac_cv_search_fabs=$ac_res
11822fi
11823rm -f core conftest.err conftest.$ac_objext \
11824 conftest$ac_exeext
11825 if test "${ac_cv_search_fabs+set}" = set; then :
11826 break
11827fi
11828done
11829if test "${ac_cv_search_fabs+set}" = set; then :
1b9750d6 11830
1b9750d6 11831else
81ecdfbb 11832 ac_cv_search_fabs=no
1b9750d6 11833fi
81ecdfbb 11834rm conftest.$ac_ext
1b9750d6
NC
11835LIBS=$ac_func_search_save_LIBS
11836fi
81ecdfbb
RW
11837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
11838$as_echo "$ac_cv_search_fabs" >&6; }
11839ac_res=$ac_cv_search_fabs
11840if test "$ac_res" != no; then :
11841 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1b9750d6
NC
11842
11843fi
11844
11845
9e9b66a9 11846
a541e3ce 11847GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 11848
81ecdfbb
RW
11849# Check whether --enable-werror was given.
11850if test "${enable_werror+set}" = set; then :
11851 enableval=$enable_werror; case "${enableval}" in
1ad12f97
NC
11852 yes | y) ERROR_ON_WARNING="yes" ;;
11853 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 11854 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
1ad12f97 11855 esac
81ecdfbb
RW
11856fi
11857
1ad12f97 11858
32b1cf22
L
11859# Enable -Wno-format by default when using gcc on mingw
11860case "${host}" in
11861 *-*-mingw32*)
11862 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11863 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11864 fi
11865 ;;
11866 *) ;;
11867esac
11868
9e9b66a9
AM
11869# Enable -Werror by default when using gcc
11870if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11871 ERROR_ON_WARNING=yes
11872fi
11873
11874NO_WERROR=
11875if test "${ERROR_ON_WARNING}" = yes ; then
a541e3ce 11876 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9 11877 NO_WERROR="-Wno-error"
1ad12f97
NC
11878fi
11879
a541e3ce
SE
11880if test "${GCC}" = yes ; then
11881 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11882fi
11883
81ecdfbb
RW
11884# Check whether --enable-build-warnings was given.
11885if test "${enable_build_warnings+set}" = set; then :
11886 enableval=$enable_build_warnings; case "${enableval}" in
a541e3ce
SE
11887 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11888 no) if test "${GCC}" = yes ; then
11889 WARN_CFLAGS="-w"
11890 fi;;
6bf9431b 11891 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 11892 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
6bf9431b 11893 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 11894 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 11895 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6bf9431b 11896esac
81ecdfbb
RW
11897fi
11898
9e9b66a9
AM
11899
11900if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11901 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
6bf9431b
BE
11902fi
11903
11904
9e9b66a9
AM
11905
11906
11907
108a6f8e
CD
11908
11909
11910
11911
31dd3154 11912
81ecdfbb 11913ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
6bf9431b 11914
6bf9431b
BE
11915cat >confcache <<\_ACEOF
11916# This file is a shell script that caches the results of configure
11917# tests run on this system so they can be shared between configure
11918# scripts and configure runs, see configure's option --config-cache.
11919# It is not useful on other systems. If it contains results you don't
11920# want to keep, you may remove or edit it.
11921#
11922# config.status only pays attention to the cache file if you give it
11923# the --recheck option to rerun configure.
11924#
11925# `ac_cv_env_foo' variables (set or unset) will be overridden when
11926# loading this file, other *unset* `ac_cv_foo' will be assigned the
11927# following values.
11928
11929_ACEOF
11930
11931# The following way of writing the cache mishandles newlines in values,
11932# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 11933# So, we kill variables containing newlines.
6bf9431b
BE
11934# Ultrix sh set writes to stderr and can't be redirected directly,
11935# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
11936(
11937 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11938 eval ac_val=\$$ac_var
11939 case $ac_val in #(
11940 *${as_nl}*)
11941 case $ac_var in #(
11942 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11943$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11944 esac
11945 case $ac_var in #(
11946 _ | IFS | as_nl) ;; #(
11947 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11948 *) { eval $ac_var=; unset $ac_var;} ;;
11949 esac ;;
11950 esac
11951 done
11952
6bf9431b 11953 (set) 2>&1 |
81ecdfbb
RW
11954 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11955 *${as_nl}ac_space=\ *)
11956 # `set' does not quote correctly, so add quotes: double-quote
11957 # substitution turns \\\\ into \\, and sed turns \\ into \.
6bf9431b
BE
11958 sed -n \
11959 "s/'/'\\\\''/g;
11960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 11961 ;; #(
6bf9431b
BE
11962 *)
11963 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 11964 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6bf9431b 11965 ;;
81ecdfbb
RW
11966 esac |
11967 sort
11968) |
6bf9431b 11969 sed '
81ecdfbb 11970 /^ac_cv_env_/b end
6bf9431b 11971 t clear
81ecdfbb 11972 :clear
6bf9431b
BE
11973 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11974 t end
81ecdfbb
RW
11975 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11976 :end' >>confcache
11977if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11978 if test -w "$cache_file"; then
11979 test "x$cache_file" != "x/dev/null" &&
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11981$as_echo "$as_me: updating cache $cache_file" >&6;}
6bf9431b
BE
11982 cat confcache >$cache_file
11983 else
81ecdfbb
RW
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11985$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6bf9431b
BE
11986 fi
11987fi
11988rm -f confcache
11989
11990test "x$prefix" = xNONE && prefix=$ac_default_prefix
11991# Let make expand exec_prefix.
11992test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11993
6bf9431b
BE
11994DEFS=-DHAVE_CONFIG_H
11995
11996ac_libobjs=
11997ac_ltlibobjs=
11998for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11999 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
12000 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12001 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12002 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12003 # will be set to the directory where LIBOBJS objects are built.
12004 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12005 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6bf9431b
BE
12006done
12007LIBOBJS=$ac_libobjs
12008
12009LTLIBOBJS=$ac_ltlibobjs
12010
12011
12012if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
12013 as_fn_error "conditional \"AMDEP\" was never defined.
12014Usually this means the macro was only invoked conditionally." "$LINENO" 5
6bf9431b
BE
12015fi
12016if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
12017 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12018Usually this means the macro was only invoked conditionally." "$LINENO" 5
12019fi
12020 if test -n "$EXEEXT"; then
12021 am__EXEEXT_TRUE=
12022 am__EXEEXT_FALSE='#'
12023else
12024 am__EXEEXT_TRUE='#'
12025 am__EXEEXT_FALSE=
6bf9431b 12026fi
81ecdfbb 12027
6bf9431b 12028if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
12029 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12030Usually this means the macro was only invoked conditionally." "$LINENO" 5
6bf9431b 12031fi
d5fbea21 12032if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
12033 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
12034Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 12035fi
6bf9431b
BE
12036
12037: ${CONFIG_STATUS=./config.status}
81ecdfbb 12038ac_write_fail=0
6bf9431b
BE
12039ac_clean_files_save=$ac_clean_files
12040ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
12041{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12042$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12043as_write_fail=0
12044cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6bf9431b
BE
12045#! $SHELL
12046# Generated by $as_me.
12047# Run this file to recreate the current configuration.
12048# Compiler output produced by configure, useful for debugging
12049# configure, is in config.log if it exists.
12050
12051debug=false
12052ac_cs_recheck=false
12053ac_cs_silent=false
6bf9431b 12054
81ecdfbb
RW
12055SHELL=\${CONFIG_SHELL-$SHELL}
12056export SHELL
12057_ASEOF
12058cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12059## -------------------- ##
12060## M4sh Initialization. ##
12061## -------------------- ##
6bf9431b 12062
81ecdfbb
RW
12063# Be more Bourne compatible
12064DUALCASE=1; export DUALCASE # for MKS sh
12065if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6bf9431b
BE
12066 emulate sh
12067 NULLCMD=:
81ecdfbb 12068 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6bf9431b
BE
12069 # is contrary to our usage. Disable this feature.
12070 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
12071 setopt NO_GLOB_SUBST
12072else
12073 case `(set -o) 2>/dev/null` in #(
12074 *posix*) :
12075 set -o posix ;; #(
12076 *) :
12077 ;;
12078esac
6bf9431b 12079fi
6bf9431b 12080
81ecdfbb
RW
12081
12082as_nl='
12083'
12084export as_nl
12085# Printing a long string crashes Solaris 7 /usr/bin/printf.
12086as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12087as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12088as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12089# Prefer a ksh shell builtin over an external printf program on Solaris,
12090# but without wasting forks for bash or zsh.
12091if test -z "$BASH_VERSION$ZSH_VERSION" \
12092 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12093 as_echo='print -r --'
12094 as_echo_n='print -rn --'
12095elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12096 as_echo='printf %s\n'
12097 as_echo_n='printf %s'
12098else
12099 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12100 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12101 as_echo_n='/usr/ucb/echo -n'
12102 else
12103 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12104 as_echo_n_body='eval
12105 arg=$1;
12106 case $arg in #(
12107 *"$as_nl"*)
12108 expr "X$arg" : "X\\(.*\\)$as_nl";
12109 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12110 esac;
12111 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12112 '
12113 export as_echo_n_body
12114 as_echo_n='sh -c $as_echo_n_body as_echo'
12115 fi
12116 export as_echo_body
12117 as_echo='sh -c $as_echo_body as_echo'
12118fi
12119
12120# The user is always right.
12121if test "${PATH_SEPARATOR+set}" != set; then
12122 PATH_SEPARATOR=:
12123 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12124 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12125 PATH_SEPARATOR=';'
12126 }
6bf9431b
BE
12127fi
12128
12129
81ecdfbb
RW
12130# IFS
12131# We need space, tab and new line, in precisely that order. Quoting is
12132# there to prevent editors from complaining about space-tab.
12133# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12134# splitting by setting IFS to empty value.)
12135IFS=" "" $as_nl"
12136
12137# Find who we are. Look in the path if we contain no directory separator.
12138case $0 in #((
12139 *[\\/]* ) as_myself=$0 ;;
12140 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141for as_dir in $PATH
12142do
12143 IFS=$as_save_IFS
12144 test -z "$as_dir" && as_dir=.
12145 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12146 done
12147IFS=$as_save_IFS
12148
12149 ;;
12150esac
12151# We did not find ourselves, most probably we were run as `sh COMMAND'
12152# in which case we are not to be found in the path.
12153if test "x$as_myself" = x; then
12154 as_myself=$0
12155fi
12156if test ! -f "$as_myself"; then
12157 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12158 exit 1
12159fi
12160
12161# Unset variables that we do not need and which cause bugs (e.g. in
12162# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12163# suppresses any "Segmentation fault" message there. '((' could
12164# trigger a bug in pdksh 5.2.14.
12165for as_var in BASH_ENV ENV MAIL MAILPATH
12166do eval test x\${$as_var+set} = xset \
12167 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12168done
6bf9431b
BE
12169PS1='$ '
12170PS2='> '
12171PS4='+ '
12172
12173# NLS nuisances.
81ecdfbb
RW
12174LC_ALL=C
12175export LC_ALL
12176LANGUAGE=C
12177export LANGUAGE
12178
12179# CDPATH.
12180(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12181
12182
12183# as_fn_error ERROR [LINENO LOG_FD]
12184# ---------------------------------
12185# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12186# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12187# script with status $?, using 1 if that was 0.
12188as_fn_error ()
12189{
12190 as_status=$?; test $as_status -eq 0 && as_status=1
12191 if test "$3"; then
12192 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12193 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6bf9431b 12194 fi
81ecdfbb
RW
12195 $as_echo "$as_me: error: $1" >&2
12196 as_fn_exit $as_status
12197} # as_fn_error
12198
12199
12200# as_fn_set_status STATUS
12201# -----------------------
12202# Set $? to STATUS, without forking.
12203as_fn_set_status ()
12204{
12205 return $1
12206} # as_fn_set_status
6bf9431b 12207
81ecdfbb
RW
12208# as_fn_exit STATUS
12209# -----------------
12210# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12211as_fn_exit ()
12212{
12213 set +e
12214 as_fn_set_status $1
12215 exit $1
12216} # as_fn_exit
12217
12218# as_fn_unset VAR
12219# ---------------
12220# Portably unset VAR.
12221as_fn_unset ()
12222{
12223 { eval $1=; unset $1;}
12224}
12225as_unset=as_fn_unset
12226# as_fn_append VAR VALUE
12227# ----------------------
12228# Append the text in VALUE to the end of the definition contained in VAR. Take
12229# advantage of any shell optimizations that allow amortized linear growth over
12230# repeated appends, instead of the typical quadratic growth present in naive
12231# implementations.
12232if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12233 eval 'as_fn_append ()
12234 {
12235 eval $1+=\$2
12236 }'
12237else
12238 as_fn_append ()
12239 {
12240 eval $1=\$$1\$2
12241 }
12242fi # as_fn_append
12243
12244# as_fn_arith ARG...
12245# ------------------
12246# Perform arithmetic evaluation on the ARGs, and store the result in the
12247# global $as_val. Take advantage of shells that can avoid forks. The arguments
12248# must be portable across $(()) and expr.
12249if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12250 eval 'as_fn_arith ()
12251 {
12252 as_val=$(( $* ))
12253 }'
12254else
12255 as_fn_arith ()
12256 {
12257 as_val=`expr "$@" || test $? -eq 1`
12258 }
12259fi # as_fn_arith
12260
12261
12262if expr a : '\(a\)' >/dev/null 2>&1 &&
12263 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6bf9431b
BE
12264 as_expr=expr
12265else
12266 as_expr=false
12267fi
12268
81ecdfbb 12269if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6bf9431b
BE
12270 as_basename=basename
12271else
12272 as_basename=false
252b5132 12273fi
252b5132 12274
81ecdfbb
RW
12275if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12276 as_dirname=dirname
12277else
12278 as_dirname=false
12279fi
252b5132 12280
81ecdfbb 12281as_me=`$as_basename -- "$0" ||
6bf9431b
BE
12282$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12283 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
12284 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12285$as_echo X/"$0" |
12286 sed '/^.*\/\([^/][^/]*\)\/*$/{
12287 s//\1/
12288 q
12289 }
12290 /^X\/\(\/\/\)$/{
12291 s//\1/
12292 q
12293 }
12294 /^X\/\(\/\).*/{
12295 s//\1/
12296 q
12297 }
12298 s/.*/./; q'`
0ab6f085 12299
0ab6f085
AM
12300# Avoid depending upon Character Ranges.
12301as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12302as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12303as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12304as_cr_digits='0123456789'
12305as_cr_alnum=$as_cr_Letters$as_cr_digits
12306
81ecdfbb
RW
12307ECHO_C= ECHO_N= ECHO_T=
12308case `echo -n x` in #(((((
12309-n*)
12310 case `echo 'xy\c'` in
12311 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12312 xy) ECHO_C='\c';;
12313 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12314 ECHO_T=' ';;
12315 esac;;
12316*)
12317 ECHO_N='-n';;
6bf9431b
BE
12318esac
12319
81ecdfbb
RW
12320rm -f conf$$ conf$$.exe conf$$.file
12321if test -d conf$$.dir; then
12322 rm -f conf$$.dir/conf$$.file
0eee5820 12323else
81ecdfbb
RW
12324 rm -f conf$$.dir
12325 mkdir conf$$.dir 2>/dev/null
0eee5820 12326fi
81ecdfbb
RW
12327if (echo >conf$$.file) 2>/dev/null; then
12328 if ln -s conf$$.file conf$$ 2>/dev/null; then
0ab6f085 12329 as_ln_s='ln -s'
81ecdfbb
RW
12330 # ... but there are two gotchas:
12331 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12332 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12333 # In both cases, we have to default to `cp -p'.
12334 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12335 as_ln_s='cp -p'
12336 elif ln conf$$.file conf$$ 2>/dev/null; then
12337 as_ln_s=ln
12338 else
12339 as_ln_s='cp -p'
0ab6f085 12340 fi
6bf9431b
BE
12341else
12342 as_ln_s='cp -p'
0eee5820 12343fi
81ecdfbb
RW
12344rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12345rmdir conf$$.dir 2>/dev/null
12346
12347
12348# as_fn_mkdir_p
12349# -------------
12350# Create "$as_dir" as a directory, including parents if necessary.
12351as_fn_mkdir_p ()
12352{
12353
12354 case $as_dir in #(
12355 -*) as_dir=./$as_dir;;
12356 esac
12357 test -d "$as_dir" || eval $as_mkdir_p || {
12358 as_dirs=
12359 while :; do
12360 case $as_dir in #(
12361 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12362 *) as_qdir=$as_dir;;
12363 esac
12364 as_dirs="'$as_qdir' $as_dirs"
12365 as_dir=`$as_dirname -- "$as_dir" ||
12366$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12367 X"$as_dir" : 'X\(//\)[^/]' \| \
12368 X"$as_dir" : 'X\(//\)$' \| \
12369 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12370$as_echo X"$as_dir" |
12371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12372 s//\1/
12373 q
12374 }
12375 /^X\(\/\/\)[^/].*/{
12376 s//\1/
12377 q
12378 }
12379 /^X\(\/\/\)$/{
12380 s//\1/
12381 q
12382 }
12383 /^X\(\/\).*/{
12384 s//\1/
12385 q
12386 }
12387 s/.*/./; q'`
12388 test -d "$as_dir" && break
12389 done
12390 test -z "$as_dirs" || eval "mkdir $as_dirs"
12391 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6bf9431b 12392
81ecdfbb
RW
12393
12394} # as_fn_mkdir_p
6bf9431b 12395if mkdir -p . 2>/dev/null; then
81ecdfbb 12396 as_mkdir_p='mkdir -p "$as_dir"'
0ab6f085
AM
12397else
12398 test -d ./-p && rmdir ./-p
12399 as_mkdir_p=false
1b9750d6 12400fi
0ab6f085 12401
81ecdfbb
RW
12402if test -x / >/dev/null 2>&1; then
12403 as_test_x='test -x'
12404else
12405 if ls -dL / >/dev/null 2>&1; then
12406 as_ls_L_option=L
12407 else
12408 as_ls_L_option=
12409 fi
12410 as_test_x='
12411 eval sh -c '\''
12412 if test -d "$1"; then
12413 test -d "$1/.";
12414 else
12415 case $1 in #(
12416 -*)set "./$1";;
12417 esac;
12418 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12419 ???[sx]*):;;*)false;;esac;fi
12420 '\'' sh
12421 '
12422fi
12423as_executable_p=$as_test_x
0eee5820 12424
6bf9431b
BE
12425# Sed expression to map a string onto a valid CPP name.
12426as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12427
12428# Sed expression to map a string onto a valid variable name.
12429as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12430
1b9750d6 12431
6bf9431b 12432exec 6>&1
81ecdfbb
RW
12433## ----------------------------------- ##
12434## Main body of $CONFIG_STATUS script. ##
12435## ----------------------------------- ##
12436_ASEOF
12437test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6bf9431b 12438
81ecdfbb
RW
12439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12440# Save the log message, to keep $0 and so on meaningful, and to
6bf9431b 12441# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
12442# values after options handling.
12443ac_log="
6bf9431b 12444This file was extended by $as_me, which was
81ecdfbb 12445generated by GNU Autoconf 2.64. Invocation command line was
6bf9431b
BE
12446
12447 CONFIG_FILES = $CONFIG_FILES
12448 CONFIG_HEADERS = $CONFIG_HEADERS
12449 CONFIG_LINKS = $CONFIG_LINKS
12450 CONFIG_COMMANDS = $CONFIG_COMMANDS
12451 $ $0 $@
12452
81ecdfbb
RW
12453on `(hostname || uname -n) 2>/dev/null | sed 1q`
12454"
12455
6bf9431b
BE
12456_ACEOF
12457
81ecdfbb
RW
12458case $ac_config_files in *"
12459"*) set x $ac_config_files; shift; ac_config_files=$*;;
12460esac
a2d91340 12461
81ecdfbb
RW
12462case $ac_config_headers in *"
12463"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12464esac
0ab6f085 12465
0ab6f085 12466
81ecdfbb
RW
12467cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12468# Files that config.status was made for.
12469config_files="$ac_config_files"
12470config_headers="$ac_config_headers"
12471config_commands="$ac_config_commands"
a2d91340 12472
81ecdfbb 12473_ACEOF
0ab6f085 12474
81ecdfbb 12475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6bf9431b 12476ac_cs_usage="\
81ecdfbb
RW
12477\`$as_me' instantiates files and other configuration actions
12478from templates according to the current configuration. Unless the files
12479and actions are specified as TAGs, all are instantiated by default.
6bf9431b 12480
81ecdfbb 12481Usage: $0 [OPTION]... [TAG]...
6bf9431b
BE
12482
12483 -h, --help print this help, then exit
81ecdfbb
RW
12484 -V, --version print version number and configuration settings, then exit
12485 -q, --quiet, --silent
12486 do not print progress messages
6bf9431b
BE
12487 -d, --debug don't remove temporary files
12488 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
12489 --file=FILE[:TEMPLATE]
12490 instantiate the configuration file FILE
12491 --header=FILE[:TEMPLATE]
12492 instantiate the configuration header FILE
6bf9431b
BE
12493
12494Configuration files:
12495$config_files
12496
12497Configuration headers:
12498$config_headers
12499
12500Configuration commands:
12501$config_commands
12502
81ecdfbb 12503Report bugs to the package provider."
0ab6f085 12504
81ecdfbb
RW
12505_ACEOF
12506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6bf9431b
BE
12507ac_cs_version="\\
12508config.status
81ecdfbb
RW
12509configured by $0, generated by GNU Autoconf 2.64,
12510 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6bf9431b 12511
81ecdfbb 12512Copyright (C) 2009 Free Software Foundation, Inc.
6bf9431b
BE
12513This config.status script is free software; the Free Software Foundation
12514gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
12515
12516ac_pwd='$ac_pwd'
12517srcdir='$srcdir'
12518INSTALL='$INSTALL'
12519MKDIR_P='$MKDIR_P'
12520AWK='$AWK'
12521test -n "\$AWK" || AWK=awk
6bf9431b
BE
12522_ACEOF
12523
81ecdfbb
RW
12524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12525# The default lists apply if the user does not specify any file.
6bf9431b
BE
12526ac_need_defaults=:
12527while test $# != 0
12528do
12529 case $1 in
12530 --*=*)
81ecdfbb
RW
12531 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12532 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6bf9431b 12533 ac_shift=:
252b5132 12534 ;;
81ecdfbb 12535 *)
6bf9431b
BE
12536 ac_option=$1
12537 ac_optarg=$2
12538 ac_shift=shift
252b5132 12539 ;;
6bf9431b 12540 esac
252b5132 12541
6bf9431b
BE
12542 case $ac_option in
12543 # Handling of the options.
6bf9431b
BE
12544 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12545 ac_cs_recheck=: ;;
81ecdfbb
RW
12546 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12547 $as_echo "$ac_cs_version"; exit ;;
12548 --debug | --debu | --deb | --de | --d | -d )
6bf9431b
BE
12549 debug=: ;;
12550 --file | --fil | --fi | --f )
12551 $ac_shift
81ecdfbb
RW
12552 case $ac_optarg in
12553 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12554 esac
12555 as_fn_append CONFIG_FILES " '$ac_optarg'"
6bf9431b
BE
12556 ac_need_defaults=false;;
12557 --header | --heade | --head | --hea )
12558 $ac_shift
81ecdfbb
RW
12559 case $ac_optarg in
12560 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12561 esac
12562 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6bf9431b 12563 ac_need_defaults=false;;
81ecdfbb
RW
12564 --he | --h)
12565 # Conflict between --help and --header
12566 as_fn_error "ambiguous option: \`$1'
12567Try \`$0 --help' for more information.";;
12568 --help | --hel | -h )
12569 $as_echo "$ac_cs_usage"; exit ;;
6bf9431b
BE
12570 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12571 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12572 ac_cs_silent=: ;;
252b5132 12573
6bf9431b 12574 # This is an error.
81ecdfbb
RW
12575 -*) as_fn_error "unrecognized option: \`$1'
12576Try \`$0 --help' for more information." ;;
252b5132 12577
81ecdfbb
RW
12578 *) as_fn_append ac_config_targets " $1"
12579 ac_need_defaults=false ;;
252b5132 12580
6bf9431b
BE
12581 esac
12582 shift
12583done
252b5132 12584
6bf9431b 12585ac_configure_extra_args=
252b5132 12586
6bf9431b
BE
12587if $ac_cs_silent; then
12588 exec 6>/dev/null
12589 ac_configure_extra_args="$ac_configure_extra_args --silent"
12590fi
252b5132 12591
6bf9431b 12592_ACEOF
81ecdfbb 12593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6bf9431b 12594if \$ac_cs_recheck; then
81ecdfbb
RW
12595 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12596 shift
12597 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12598 CONFIG_SHELL='$SHELL'
12599 export CONFIG_SHELL
12600 exec "\$@"
6bf9431b
BE
12601fi
12602
12603_ACEOF
81ecdfbb
RW
12604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12605exec 5>>config.log
12606{
12607 echo
12608 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12609## Running $as_me. ##
12610_ASBOX
12611 $as_echo "$ac_log"
12612} >&5
6bf9431b 12613
81ecdfbb
RW
12614_ACEOF
12615cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 12616#
81ecdfbb 12617# INIT-COMMANDS
252b5132 12618#
6bf9431b 12619AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
12620
12621
12622# The HP-UX ksh and POSIX shell print the target directory to stdout
12623# if CDPATH is set.
12624(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12625
12626sed_quote_subst='$sed_quote_subst'
12627double_quote_subst='$double_quote_subst'
12628delay_variable_subst='$delay_variable_subst'
12629macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12630macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12631enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12632enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12633pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12634enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12635host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12636host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12637host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12638build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12639build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12640build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12641SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12642Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12643GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12644EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12645FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12646LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12647NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12648LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12649max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12650ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12651exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12652lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12653lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12654lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12655reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12656reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
b214d478 12657OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
12658deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12659file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12660AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12661AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12662STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12663RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12664old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12665old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12666old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12667CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12668CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12669compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12670GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12671lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12672lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12673lt_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 12674lt_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
12675objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12676SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12677ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12678MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12679lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12680lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12681lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12682lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12683lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12684need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
b214d478
SE
12685DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12686NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12687LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12688OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12689OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
12690libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12691shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12692extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12693archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12694enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12695export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12696whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12697compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12698old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12699old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12700archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12701archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12702module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12703module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12704with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12705allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12706no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12707hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12708hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12709hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12710hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12711hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12712hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12713hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12714hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12715inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12716link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12717fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12718always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12719export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12720exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12721include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12722prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12723file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12724variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12725need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12726need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12727version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12728runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12729shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12730shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12731libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12732library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12733soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12734postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12735postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12736finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12737finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12738hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12739sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12740sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12741hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12742enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12743enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12744enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12745old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12746striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12747
12748LTCC='$LTCC'
12749LTCFLAGS='$LTCFLAGS'
12750compiler='$compiler_DEFAULT'
12751
12752# Quote evaled strings.
12753for var in SED \
12754GREP \
12755EGREP \
12756FGREP \
12757LD \
12758NM \
12759LN_S \
12760lt_SP2NL \
12761lt_NL2SP \
12762reload_flag \
b214d478 12763OBJDUMP \
d7040cdb
SE
12764deplibs_check_method \
12765file_magic_cmd \
12766AR \
12767AR_FLAGS \
12768STRIP \
12769RANLIB \
12770CC \
12771CFLAGS \
12772compiler \
12773lt_cv_sys_global_symbol_pipe \
12774lt_cv_sys_global_symbol_to_cdecl \
12775lt_cv_sys_global_symbol_to_c_name_address \
b214d478 12776lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
12777SHELL \
12778ECHO \
12779lt_prog_compiler_no_builtin_flag \
12780lt_prog_compiler_wl \
12781lt_prog_compiler_pic \
12782lt_prog_compiler_static \
12783lt_cv_prog_compiler_c_o \
12784need_locks \
b214d478
SE
12785DSYMUTIL \
12786NMEDIT \
12787LIPO \
12788OTOOL \
12789OTOOL64 \
d7040cdb
SE
12790shrext_cmds \
12791export_dynamic_flag_spec \
12792whole_archive_flag_spec \
12793compiler_needs_object \
12794with_gnu_ld \
12795allow_undefined_flag \
12796no_undefined_flag \
12797hardcode_libdir_flag_spec \
12798hardcode_libdir_flag_spec_ld \
12799hardcode_libdir_separator \
12800fix_srcfile_path \
12801exclude_expsyms \
12802include_expsyms \
12803file_list_spec \
12804variables_saved_for_relink \
12805libname_spec \
12806library_names_spec \
12807soname_spec \
12808finish_eval \
12809old_striplib \
12810striplib; do
12811 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12812 *[\\\\\\\`\\"\\\$]*)
12813 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12814 ;;
12815 *)
12816 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12817 ;;
12818 esac
12819done
12820
12821# Double-quote double-evaled strings.
12822for var in reload_cmds \
12823old_postinstall_cmds \
12824old_postuninstall_cmds \
12825old_archive_cmds \
12826extract_expsyms_cmds \
12827old_archive_from_new_cmds \
12828old_archive_from_expsyms_cmds \
12829archive_cmds \
12830archive_expsym_cmds \
12831module_cmds \
12832module_expsym_cmds \
12833export_symbols_cmds \
12834prelink_cmds \
12835postinstall_cmds \
12836postuninstall_cmds \
12837finish_cmds \
12838sys_lib_search_path_spec \
12839sys_lib_dlsearch_path_spec; do
12840 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12841 *[\\\\\\\`\\"\\\$]*)
12842 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12843 ;;
12844 *)
12845 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12846 ;;
12847 esac
12848done
12849
12850# Fix-up fallback echo if it was mangled by the above quoting rules.
12851case \$lt_ECHO in
12852*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12853 ;;
12854esac
12855
12856ac_aux_dir='$ac_aux_dir'
12857xsi_shell='$xsi_shell'
12858lt_shell_append='$lt_shell_append'
12859
12860# See if we are running on zsh, and set the options which allow our
12861# commands through without removal of \ escapes INIT.
12862if test -n "\${ZSH_VERSION+set}" ; then
12863 setopt NO_GLOB_SUBST
12864fi
12865
12866
12867 PACKAGE='$PACKAGE'
12868 VERSION='$VERSION'
12869 TIMESTAMP='$TIMESTAMP'
12870 RM='$RM'
12871 ofile='$ofile'
12872
12873
12874
20e95c23
DJ
12875# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12876 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12877 # from automake.
12878 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12879 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12880 LINGUAS="${LINGUAS-%UNSET%}"
6bf9431b
BE
12881
12882
12883_ACEOF
12884
81ecdfbb 12885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1b9750d6 12886
81ecdfbb 12887# Handling of arguments.
6bf9431b 12888for ac_config_target in $ac_config_targets
252b5132 12889do
81ecdfbb
RW
12890 case $ac_config_target in
12891 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12892 "gconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
12893 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12894 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12895 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12896 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12897
12898 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
12899 esac
12900done
12901
81ecdfbb 12902
6bf9431b
BE
12903# If the user did not use the arguments to specify the items to instantiate,
12904# then the envvar interface is used. Set only those that are not.
12905# We use the long form for the default assignment because of an extremely
12906# bizarre bug on SunOS 4.1.3.
12907if $ac_need_defaults; then
12908 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12909 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12910 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12911fi
12912
12913# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 12914# simply because there is no reason against having it here, and in addition,
6bf9431b 12915# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
12916# Hook for its removal unless debugging.
12917# Note that there is a small window in which the directory will not be cleaned:
12918# after its creation but before its name has been assigned to `$tmp'.
6bf9431b
BE
12919$debug ||
12920{
81ecdfbb
RW
12921 tmp=
12922 trap 'exit_status=$?
12923 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12924' 0
12925 trap 'as_fn_exit 1' 1 2 13 15
6bf9431b 12926}
6bf9431b 12927# Create a (secure) tmp directory for tmp files.
252b5132 12928
6bf9431b 12929{
81ecdfbb 12930 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6bf9431b
BE
12931 test -n "$tmp" && test -d "$tmp"
12932} ||
12933{
81ecdfbb
RW
12934 tmp=./conf$$-$RANDOM
12935 (umask 077 && mkdir "$tmp")
12936} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12937
12938# Set up the scripts for CONFIG_FILES section.
12939# No need to generate them if there are no CONFIG_FILES.
12940# This happens for instance with `./config.status config.h'.
12941if test -n "$CONFIG_FILES"; then
12942
12943
12944ac_cr=`echo X | tr X '\015'`
12945# On cygwin, bash can eat \r inside `` if the user requested igncr.
12946# But we know of no other shell where ac_cr would be empty at this
12947# point, so we can use a bashism as a fallback.
12948if test "x$ac_cr" = x; then
12949 eval ac_cr=\$\'\\r\'
12950fi
12951ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12952if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12953 ac_cs_awk_cr='\r'
12954else
12955 ac_cs_awk_cr=$ac_cr
12956fi
12957
12958echo 'BEGIN {' >"$tmp/subs1.awk" &&
12959_ACEOF
12960
12961
12962{
12963 echo "cat >conf$$subs.awk <<_ACEOF" &&
12964 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12965 echo "_ACEOF"
12966} >conf$$subs.sh ||
12967 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12968ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12969ac_delim='%!_!# '
12970for ac_last_try in false false false false false :; do
12971 . ./conf$$subs.sh ||
12972 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12973
12974 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12975 if test $ac_delim_n = $ac_delim_num; then
12976 break
12977 elif $ac_last_try; then
12978 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12979 else
12980 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12981 fi
12982done
12983rm -f conf$$subs.sh
12984
12985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12986cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12987_ACEOF
12988sed -n '
12989h
12990s/^/S["/; s/!.*/"]=/
12991p
12992g
12993s/^[^!]*!//
12994:repl
12995t repl
12996s/'"$ac_delim"'$//
12997t delim
12998:nl
12999h
13000s/\(.\{148\}\).*/\1/
13001t more1
13002s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13003p
13004n
13005b repl
13006:more1
13007s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13008p
13009g
13010s/.\{148\}//
13011t nl
13012:delim
13013h
13014s/\(.\{148\}\).*/\1/
13015t more2
13016s/["\\]/\\&/g; s/^/"/; s/$/"/
13017p
13018b
13019:more2
13020s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13021p
13022g
13023s/.\{148\}//
13024t delim
13025' <conf$$subs.awk | sed '
13026/^[^""]/{
13027 N
13028 s/\n//
13029}
13030' >>$CONFIG_STATUS || ac_write_fail=1
13031rm -f conf$$subs.awk
13032cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13033_ACAWK
13034cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13035 for (key in S) S_is_set[key] = 1
13036 FS = "\a"
13037
13038}
6bf9431b 13039{
81ecdfbb
RW
13040 line = $ 0
13041 nfields = split(line, field, "@")
13042 substed = 0
13043 len = length(field[1])
13044 for (i = 2; i < nfields; i++) {
13045 key = field[i]
13046 keylen = length(key)
13047 if (S_is_set[key]) {
13048 value = S[key]
13049 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13050 len += length(value) + length(field[++i])
13051 substed = 1
13052 } else
13053 len += 1 + keylen
13054 }
13055
13056 print line
6bf9431b 13057}
252b5132 13058
81ecdfbb
RW
13059_ACAWK
13060_ACEOF
13061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13062if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13063 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13064else
13065 cat
13066fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13067 || as_fn_error "could not setup config files machinery" "$LINENO" 5
0ab6f085
AM
13068_ACEOF
13069
81ecdfbb
RW
13070# VPATH may cause trouble with some makes, so we remove $(srcdir),
13071# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13072# trailing colons and then remove the whole line if VPATH becomes empty
13073# (actually we leave an empty line to preserve line numbers).
13074if test "x$srcdir" = x.; then
13075 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13076s/:*\$(srcdir):*/:/
13077s/:*\${srcdir}:*/:/
13078s/:*@srcdir@:*/:/
13079s/^\([^=]*=[ ]*\):*/\1/
13080s/:*$//
13081s/^[^=]*=[ ]*$//
13082}'
13083fi
13084
13085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13086fi # test -n "$CONFIG_FILES"
0ab6f085 13087
81ecdfbb
RW
13088# Set up the scripts for CONFIG_HEADERS section.
13089# No need to generate them if there are no CONFIG_HEADERS.
13090# This happens for instance with `./config.status Makefile'.
13091if test -n "$CONFIG_HEADERS"; then
13092cat >"$tmp/defines.awk" <<\_ACAWK ||
13093BEGIN {
13094_ACEOF
6bf9431b 13095
81ecdfbb
RW
13096# Transform confdefs.h into an awk script `defines.awk', embedded as
13097# here-document in config.status, that substitutes the proper values into
13098# config.h.in to produce config.h.
1b9750d6 13099
81ecdfbb
RW
13100# Create a delimiter string that does not exist in confdefs.h, to ease
13101# handling of long lines.
13102ac_delim='%!_!# '
13103for ac_last_try in false false :; do
13104 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13105 if test -z "$ac_t"; then
13106 break
13107 elif $ac_last_try; then
13108 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13109 else
13110 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13111 fi
13112done
13113
13114# For the awk script, D is an array of macro values keyed by name,
13115# likewise P contains macro parameters if any. Preserve backslash
13116# newline sequences.
13117
13118ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13119sed -n '
13120s/.\{148\}/&'"$ac_delim"'/g
13121t rset
13122:rset
13123s/^[ ]*#[ ]*define[ ][ ]*/ /
13124t def
13125d
13126:def
13127s/\\$//
13128t bsnl
13129s/["\\]/\\&/g
13130s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13131D["\1"]=" \3"/p
13132s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13133d
13134:bsnl
13135s/["\\]/\\&/g
13136s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13137D["\1"]=" \3\\\\\\n"\\/p
13138t cont
13139s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13140t cont
13141d
13142:cont
13143n
13144s/.\{148\}/&'"$ac_delim"'/g
13145t clear
13146:clear
13147s/\\$//
13148t bsnlc
13149s/["\\]/\\&/g; s/^/"/; s/$/"/p
13150d
13151:bsnlc
13152s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13153b cont
13154' <confdefs.h | sed '
13155s/'"$ac_delim"'/"\\\
13156"/g' >>$CONFIG_STATUS || ac_write_fail=1
13157
13158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13159 for (key in D) D_is_set[key] = 1
13160 FS = "\a"
13161}
13162/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13163 line = \$ 0
13164 split(line, arg, " ")
13165 if (arg[1] == "#") {
13166 defundef = arg[2]
13167 mac1 = arg[3]
13168 } else {
13169 defundef = substr(arg[1], 2)
13170 mac1 = arg[2]
13171 }
13172 split(mac1, mac2, "(") #)
13173 macro = mac2[1]
13174 prefix = substr(line, 1, index(line, defundef) - 1)
13175 if (D_is_set[macro]) {
13176 # Preserve the white space surrounding the "#".
13177 print prefix "define", macro P[macro] D[macro]
13178 next
13179 } else {
13180 # Replace #undef with comments. This is necessary, for example,
13181 # in the case of _POSIX_SOURCE, which is predefined and required
13182 # on some systems where configure will not decide to define it.
13183 if (defundef == "undef") {
13184 print "/*", prefix defundef, macro, "*/"
13185 next
13186 }
13187 }
13188}
13189{ print }
13190_ACAWK
1b9750d6 13191_ACEOF
81ecdfbb
RW
13192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13193 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13194fi # test -n "$CONFIG_HEADERS"
1b9750d6 13195
81ecdfbb
RW
13196
13197eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13198shift
13199for ac_tag
13200do
13201 case $ac_tag in
13202 :[FHLC]) ac_mode=$ac_tag; continue;;
13203 esac
13204 case $ac_mode$ac_tag in
13205 :[FHL]*:*);;
13206 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13207 :[FH]-) ac_tag=-:-;;
13208 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13209 esac
13210 ac_save_IFS=$IFS
13211 IFS=:
13212 set x $ac_tag
13213 IFS=$ac_save_IFS
13214 shift
13215 ac_file=$1
13216 shift
13217
13218 case $ac_mode in
13219 :L) ac_source=$1;;
13220 :[FH])
13221 ac_file_inputs=
13222 for ac_f
13223 do
13224 case $ac_f in
13225 -) ac_f="$tmp/stdin";;
13226 *) # Look for the file first in the build tree, then in the source tree
13227 # (if the path is not absolute). The absolute path cannot be DOS-style,
13228 # because $ac_f cannot contain `:'.
13229 test -f "$ac_f" ||
13230 case $ac_f in
13231 [\\/$]*) false;;
13232 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13233 esac ||
13234 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13235 esac
13236 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13237 as_fn_append ac_file_inputs " '$ac_f'"
13238 done
13239
13240 # Let's still pretend it is `configure' which instantiates (i.e., don't
13241 # use $as_me), people would be surprised to read:
13242 # /* config.h. Generated by config.status. */
13243 configure_input='Generated from '`
13244 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13245 `' by configure.'
13246 if test x"$ac_file" != x-; then
13247 configure_input="$ac_file. $configure_input"
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13249$as_echo "$as_me: creating $ac_file" >&6;}
0ab6f085 13250 fi
81ecdfbb
RW
13251 # Neutralize special characters interpreted by sed in replacement strings.
13252 case $configure_input in #(
13253 *\&* | *\|* | *\\* )
13254 ac_sed_conf_input=`$as_echo "$configure_input" |
13255 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13256 *) ac_sed_conf_input=$configure_input;;
13257 esac
1b9750d6 13258
81ecdfbb
RW
13259 case $ac_tag in
13260 *:-:* | *:-) cat >"$tmp/stdin" \
13261 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13262 esac
13263 ;;
252b5132
RH
13264 esac
13265
81ecdfbb 13266 ac_dir=`$as_dirname -- "$ac_file" ||
6bf9431b
BE
13267$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13268 X"$ac_file" : 'X\(//\)[^/]' \| \
13269 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
13270 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13271$as_echo X"$ac_file" |
13272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13273 s//\1/
13274 q
13275 }
13276 /^X\(\/\/\)[^/].*/{
13277 s//\1/
13278 q
13279 }
13280 /^X\(\/\/\)$/{
13281 s//\1/
13282 q
13283 }
13284 /^X\(\/\).*/{
13285 s//\1/
13286 q
13287 }
13288 s/.*/./; q'`
13289 as_dir="$ac_dir"; as_fn_mkdir_p
6bf9431b
BE
13290 ac_builddir=.
13291
81ecdfbb
RW
13292case "$ac_dir" in
13293.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13294*)
13295 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13296 # A ".." for each directory in $ac_dir_suffix.
13297 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13298 case $ac_top_builddir_sub in
13299 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13300 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13301 esac ;;
13302esac
13303ac_abs_top_builddir=$ac_pwd
13304ac_abs_builddir=$ac_pwd$ac_dir_suffix
13305# for backward compatibility:
13306ac_top_builddir=$ac_top_build_prefix
252b5132 13307
6bf9431b 13308case $srcdir in
81ecdfbb 13309 .) # We are building in place.
6bf9431b 13310 ac_srcdir=.
81ecdfbb
RW
13311 ac_top_srcdir=$ac_top_builddir_sub
13312 ac_abs_top_srcdir=$ac_pwd ;;
13313 [\\/]* | ?:[\\/]* ) # Absolute name.
6bf9431b 13314 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
13315 ac_top_srcdir=$srcdir
13316 ac_abs_top_srcdir=$srcdir ;;
13317 *) # Relative name.
13318 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13319 ac_top_srcdir=$ac_top_build_prefix$srcdir
13320 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6bf9431b 13321esac
81ecdfbb 13322ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 13323
252b5132 13324
81ecdfbb
RW
13325 case $ac_mode in
13326 :F)
13327 #
13328 # CONFIG_FILE
13329 #
6bf9431b
BE
13330
13331 case $INSTALL in
13332 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
13333 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13334 esac
13335 ac_MKDIR_P=$MKDIR_P
13336 case $MKDIR_P in
13337 [\\/$]* | ?:[\\/]* ) ;;
13338 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
252b5132 13339 esac
81ecdfbb 13340_ACEOF
1b9750d6 13341
81ecdfbb
RW
13342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13343# If the template does not know about datarootdir, expand it.
13344# FIXME: This hack should be removed a few years after 2.60.
13345ac_datarootdir_hack=; ac_datarootdir_seen=
13346ac_sed_dataroot='
13347/datarootdir/ {
13348 p
13349 q
13350}
13351/@datadir@/p
13352/@docdir@/p
13353/@infodir@/p
13354/@localedir@/p
13355/@mandir@/p'
13356case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13357*datarootdir*) ac_datarootdir_seen=yes;;
13358*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13360$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13361_ACEOF
13362cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13363 ac_datarootdir_hack='
13364 s&@datadir@&$datadir&g
13365 s&@docdir@&$docdir&g
13366 s&@infodir@&$infodir&g
13367 s&@localedir@&$localedir&g
13368 s&@mandir@&$mandir&g
13369 s&\\\${datarootdir}&$datarootdir&g' ;;
13370esac
6bf9431b 13371_ACEOF
81ecdfbb
RW
13372
13373# Neutralize VPATH when `$srcdir' = `.'.
13374# Shell code in configure.ac might set extrasub.
13375# FIXME: do we really want to maintain this feature?
13376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13377ac_sed_extra="$ac_vpsub
6bf9431b
BE
13378$extrasub
13379_ACEOF
81ecdfbb 13380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6bf9431b
BE
13381:t
13382/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
13383s|@configure_input@|$ac_sed_conf_input|;t t
13384s&@top_builddir@&$ac_top_builddir_sub&;t t
13385s&@top_build_prefix@&$ac_top_build_prefix&;t t
13386s&@srcdir@&$ac_srcdir&;t t
13387s&@abs_srcdir@&$ac_abs_srcdir&;t t
13388s&@top_srcdir@&$ac_top_srcdir&;t t
13389s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13390s&@builddir@&$ac_builddir&;t t
13391s&@abs_builddir@&$ac_abs_builddir&;t t
13392s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13393s&@INSTALL@&$ac_INSTALL&;t t
13394s&@MKDIR_P@&$ac_MKDIR_P&;t t
13395$ac_datarootdir_hack
13396"
13397eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13398 || as_fn_error "could not create $ac_file" "$LINENO" 5
13399
13400test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13401 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13402 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13404which seems to be undefined. Please make sure it is defined." >&5
13405$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13406which seems to be undefined. Please make sure it is defined." >&2;}
13407
13408 rm -f "$tmp/stdin"
6bf9431b 13409 case $ac_file in
81ecdfbb
RW
13410 -) cat "$tmp/out" && rm -f "$tmp/out";;
13411 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13412 esac \
13413 || as_fn_error "could not create $ac_file" "$LINENO" 5
13414 ;;
13415 :H)
13416 #
13417 # CONFIG_HEADER
13418 #
6bf9431b 13419 if test x"$ac_file" != x-; then
81ecdfbb
RW
13420 {
13421 $as_echo "/* $configure_input */" \
13422 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13423 } >"$tmp/config.h" \
13424 || as_fn_error "could not create $ac_file" "$LINENO" 5
13425 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13427$as_echo "$as_me: $ac_file is unchanged" >&6;}
6bf9431b 13428 else
81ecdfbb
RW
13429 rm -f "$ac_file"
13430 mv "$tmp/config.h" "$ac_file" \
13431 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 13432 fi
6bf9431b 13433 else
81ecdfbb
RW
13434 $as_echo "/* $configure_input */" \
13435 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13436 || as_fn_error "could not create -" "$LINENO" 5
252b5132 13437 fi
81ecdfbb
RW
13438# Compute "$ac_file"'s index in $config_headers.
13439_am_arg="$ac_file"
6bf9431b
BE
13440_am_stamp_count=1
13441for _am_header in $config_headers :; do
13442 case $_am_header in
81ecdfbb 13443 $_am_arg | $_am_arg:* )
6bf9431b
BE
13444 break ;;
13445 * )
13446 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13447 esac
13448done
81ecdfbb
RW
13449echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13450$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13451 X"$_am_arg" : 'X\(//\)[^/]' \| \
13452 X"$_am_arg" : 'X\(//\)$' \| \
13453 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13454$as_echo X"$_am_arg" |
13455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13456 s//\1/
13457 q
13458 }
13459 /^X\(\/\/\)[^/].*/{
13460 s//\1/
13461 q
13462 }
13463 /^X\(\/\/\)$/{
13464 s//\1/
13465 q
13466 }
13467 /^X\(\/\).*/{
13468 s//\1/
13469 q
13470 }
13471 s/.*/./; q'`/stamp-h$_am_stamp_count
13472 ;;
0ab6f085 13473
81ecdfbb
RW
13474 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13475$as_echo "$as_me: executing $ac_file commands" >&6;}
13476 ;;
13477 esac
6bf9431b
BE
13478
13479
81ecdfbb
RW
13480 case $ac_file$ac_mode in
13481 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13482 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13483 # are listed without --file. Let's play safe and only enable the eval
13484 # if we detect the quoting.
13485 case $CONFIG_FILES in
13486 *\'*) eval set x "$CONFIG_FILES" ;;
13487 *) set x $CONFIG_FILES ;;
13488 esac
13489 shift
13490 for mf
13491 do
13492 # Strip MF so we end up with the name of the file.
13493 mf=`echo "$mf" | sed -e 's/:.*$//'`
13494 # Check whether this is an Automake generated Makefile or not.
13495 # We used to match only the files named `Makefile.in', but
13496 # some people rename them; so instead we look at the file content.
13497 # Grep'ing the first line is not enough: some people post-process
13498 # each Makefile.in and add a new line on top of each file to say so.
13499 # Grep'ing the whole file is not good either: AIX grep has a line
13500 # limit of 2048, but all sed's we know have understand at least 4000.
13501 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13502 dirpart=`$as_dirname -- "$mf" ||
6bf9431b
BE
13503$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13504 X"$mf" : 'X\(//\)[^/]' \| \
13505 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
13506 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13507$as_echo X"$mf" |
13508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13509 s//\1/
13510 q
13511 }
13512 /^X\(\/\/\)[^/].*/{
13513 s//\1/
13514 q
13515 }
13516 /^X\(\/\/\)$/{
13517 s//\1/
13518 q
13519 }
13520 /^X\(\/\).*/{
13521 s//\1/
13522 q
13523 }
13524 s/.*/./; q'`
13525 else
13526 continue
13527 fi
13528 # Extract the definition of DEPDIR, am__include, and am__quote
13529 # from the Makefile without running `make'.
13530 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13531 test -z "$DEPDIR" && continue
13532 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13533 test -z "am__include" && continue
13534 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13535 # When using ansi2knr, U may be empty or an underscore; expand it
13536 U=`sed -n 's/^U = //p' < "$mf"`
13537 # Find all dependency output files, they are included files with
13538 # $(DEPDIR) in their names. We invoke sed twice because it is the
13539 # simplest approach to changing $(DEPDIR) to its actual value in the
13540 # expansion.
13541 for file in `sed -n "
13542 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13543 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13544 # Make sure the directory exists.
13545 test -f "$dirpart/$file" && continue
13546 fdir=`$as_dirname -- "$file" ||
6bf9431b
BE
13547$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13548 X"$file" : 'X\(//\)[^/]' \| \
13549 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
13550 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13551$as_echo X"$file" |
13552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13553 s//\1/
13554 q
13555 }
13556 /^X\(\/\/\)[^/].*/{
13557 s//\1/
13558 q
13559 }
13560 /^X\(\/\/\)$/{
13561 s//\1/
13562 q
13563 }
13564 /^X\(\/\).*/{
13565 s//\1/
13566 q
13567 }
13568 s/.*/./; q'`
13569 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13570 # echo "creating $dirpart/$file"
13571 echo '# dummy' > "$dirpart/$file"
6bf9431b 13572 done
6bf9431b 13573 done
81ecdfbb 13574}
d7040cdb 13575 ;;
81ecdfbb 13576 "libtool":C)
d7040cdb
SE
13577
13578 # See if we are running on zsh, and set the options which allow our
13579 # commands through without removal of \ escapes.
13580 if test -n "${ZSH_VERSION+set}" ; then
13581 setopt NO_GLOB_SUBST
13582 fi
13583
13584 cfgfile="${ofile}T"
13585 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13586 $RM "$cfgfile"
13587
13588 cat <<_LT_EOF >> "$cfgfile"
13589#! $SHELL
13590
13591# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 13592# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
13593# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13594# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13595#
b214d478
SE
13596# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13597# 2006, 2007, 2008 Free Software Foundation, Inc.
13598# Written by Gordon Matzigkeit, 1996
d7040cdb 13599#
b214d478 13600# This file is part of GNU Libtool.
d7040cdb 13601#
b214d478
SE
13602# GNU Libtool is free software; you can redistribute it and/or
13603# modify it under the terms of the GNU General Public License as
13604# published by the Free Software Foundation; either version 2 of
13605# the License, or (at your option) any later version.
d7040cdb 13606#
b214d478
SE
13607# As a special exception to the GNU General Public License,
13608# if you distribute this file as part of a program or library that
13609# is built using GNU Libtool, you may include this file under the
13610# same distribution terms that you use for the rest of that program.
d7040cdb 13611#
b214d478
SE
13612# GNU Libtool is distributed in the hope that it will be useful,
13613# but WITHOUT ANY WARRANTY; without even the implied warranty of
13614# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13615# GNU General Public License for more details.
d7040cdb 13616#
b214d478
SE
13617# You should have received a copy of the GNU General Public License
13618# along with GNU Libtool; see the file COPYING. If not, a copy
13619# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13620# obtained by writing to the Free Software Foundation, Inc.,
13621# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
13622
13623
13624# The names of the tagged configurations supported by this script.
13625available_tags=""
13626
13627# ### BEGIN LIBTOOL CONFIG
13628
13629# Which release of libtool.m4 was used?
13630macro_version=$macro_version
13631macro_revision=$macro_revision
13632
13633# Whether or not to build shared libraries.
13634build_libtool_libs=$enable_shared
13635
13636# Whether or not to build static libraries.
13637build_old_libs=$enable_static
13638
13639# What type of objects to build.
13640pic_mode=$pic_mode
13641
13642# Whether or not to optimize for fast installation.
13643fast_install=$enable_fast_install
13644
13645# The host system.
13646host_alias=$host_alias
13647host=$host
13648host_os=$host_os
13649
13650# The build system.
13651build_alias=$build_alias
13652build=$build
13653build_os=$build_os
13654
13655# A sed program that does not truncate output.
13656SED=$lt_SED
13657
13658# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13659Xsed="\$SED -e 1s/^X//"
13660
13661# A grep program that handles long lines.
13662GREP=$lt_GREP
13663
13664# An ERE matcher.
13665EGREP=$lt_EGREP
13666
13667# A literal string matcher.
13668FGREP=$lt_FGREP
13669
13670# A BSD- or MS-compatible name lister.
13671NM=$lt_NM
13672
13673# Whether we need soft or hard links.
13674LN_S=$lt_LN_S
13675
13676# What is the maximum length of a command?
13677max_cmd_len=$max_cmd_len
13678
13679# Object file suffix (normally "o").
13680objext=$ac_objext
13681
13682# Executable file suffix (normally "").
13683exeext=$exeext
13684
13685# whether the shell understands "unset".
13686lt_unset=$lt_unset
13687
13688# turn spaces into newlines.
13689SP2NL=$lt_lt_SP2NL
13690
13691# turn newlines into spaces.
13692NL2SP=$lt_lt_NL2SP
13693
13694# How to create reloadable object files.
13695reload_flag=$lt_reload_flag
13696reload_cmds=$lt_reload_cmds
13697
b214d478
SE
13698# An object symbol dumper.
13699OBJDUMP=$lt_OBJDUMP
13700
d7040cdb
SE
13701# Method to check whether dependent libraries are shared objects.
13702deplibs_check_method=$lt_deplibs_check_method
13703
13704# Command to use when deplibs_check_method == "file_magic".
13705file_magic_cmd=$lt_file_magic_cmd
13706
13707# The archiver.
13708AR=$lt_AR
13709AR_FLAGS=$lt_AR_FLAGS
13710
13711# A symbol stripping program.
13712STRIP=$lt_STRIP
13713
13714# Commands used to install an old-style archive.
13715RANLIB=$lt_RANLIB
13716old_postinstall_cmds=$lt_old_postinstall_cmds
13717old_postuninstall_cmds=$lt_old_postuninstall_cmds
13718
13719# A C compiler.
13720LTCC=$lt_CC
13721
13722# LTCC compiler flags.
13723LTCFLAGS=$lt_CFLAGS
13724
13725# Take the output of nm and produce a listing of raw symbols and C names.
13726global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13727
13728# Transform the output of nm in a proper C declaration.
13729global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13730
13731# Transform the output of nm in a C name address pair.
13732global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13733
b214d478
SE
13734# Transform the output of nm in a C name address pair when lib prefix is needed.
13735global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13736
d7040cdb
SE
13737# The name of the directory that contains temporary libtool files.
13738objdir=$objdir
13739
13740# Shell to use when invoking shell scripts.
13741SHELL=$lt_SHELL
13742
13743# An echo program that does not interpret backslashes.
13744ECHO=$lt_ECHO
13745
13746# Used to examine libraries when file_magic_cmd begins with "file".
13747MAGIC_CMD=$MAGIC_CMD
13748
13749# Must we lock files when doing compilation?
13750need_locks=$lt_need_locks
13751
b214d478
SE
13752# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13753DSYMUTIL=$lt_DSYMUTIL
13754
13755# Tool to change global to local symbols on Mac OS X.
13756NMEDIT=$lt_NMEDIT
13757
13758# Tool to manipulate fat objects and archives on Mac OS X.
13759LIPO=$lt_LIPO
13760
13761# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13762OTOOL=$lt_OTOOL
13763
13764# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13765OTOOL64=$lt_OTOOL64
13766
d7040cdb
SE
13767# Old archive suffix (normally "a").
13768libext=$libext
13769
13770# Shared library suffix (normally ".so").
13771shrext_cmds=$lt_shrext_cmds
13772
13773# The commands to extract the exported symbol list from a shared archive.
13774extract_expsyms_cmds=$lt_extract_expsyms_cmds
13775
13776# Variables whose values should be saved in libtool wrapper scripts and
13777# restored at link time.
13778variables_saved_for_relink=$lt_variables_saved_for_relink
13779
13780# Do we need the "lib" prefix for modules?
13781need_lib_prefix=$need_lib_prefix
13782
13783# Do we need a version for libraries?
13784need_version=$need_version
13785
13786# Library versioning type.
13787version_type=$version_type
13788
13789# Shared library runtime path variable.
13790runpath_var=$runpath_var
13791
13792# Shared library path variable.
13793shlibpath_var=$shlibpath_var
13794
13795# Is shlibpath searched before the hard-coded library search path?
13796shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13797
13798# Format of library name prefix.
13799libname_spec=$lt_libname_spec
13800
13801# List of archive names. First name is the real one, the rest are links.
13802# The last name is the one that the linker finds with -lNAME
13803library_names_spec=$lt_library_names_spec
13804
13805# The coded name of the library, if different from the real name.
13806soname_spec=$lt_soname_spec
13807
13808# Command to use after installation of a shared archive.
13809postinstall_cmds=$lt_postinstall_cmds
13810
13811# Command to use after uninstallation of a shared archive.
13812postuninstall_cmds=$lt_postuninstall_cmds
13813
13814# Commands used to finish a libtool library installation in a directory.
13815finish_cmds=$lt_finish_cmds
13816
13817# As "finish_cmds", except a single script fragment to be evaled but
13818# not shown.
13819finish_eval=$lt_finish_eval
13820
13821# Whether we should hardcode library paths into libraries.
13822hardcode_into_libs=$hardcode_into_libs
13823
13824# Compile-time system search path for libraries.
13825sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13826
13827# Run-time system search path for libraries.
13828sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13829
13830# Whether dlopen is supported.
13831dlopen_support=$enable_dlopen
13832
13833# Whether dlopen of programs is supported.
13834dlopen_self=$enable_dlopen_self
13835
13836# Whether dlopen of statically linked programs is supported.
13837dlopen_self_static=$enable_dlopen_self_static
13838
13839# Commands to strip libraries.
13840old_striplib=$lt_old_striplib
13841striplib=$lt_striplib
13842
13843
13844# The linker used to build libraries.
13845LD=$lt_LD
13846
13847# Commands used to build an old-style archive.
13848old_archive_cmds=$lt_old_archive_cmds
13849
13850# A language specific compiler.
13851CC=$lt_compiler
13852
13853# Is the compiler the GNU compiler?
13854with_gcc=$GCC
13855
13856# Compiler flag to turn off builtin functions.
13857no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13858
13859# How to pass a linker flag through the compiler.
13860wl=$lt_lt_prog_compiler_wl
13861
13862# Additional compiler flags for building library objects.
13863pic_flag=$lt_lt_prog_compiler_pic
13864
13865# Compiler flag to prevent dynamic linking.
13866link_static_flag=$lt_lt_prog_compiler_static
13867
13868# Does compiler simultaneously support -c and -o options?
13869compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13870
13871# Whether or not to add -lc for building shared libraries.
13872build_libtool_need_lc=$archive_cmds_need_lc
13873
13874# Whether or not to disallow shared libs when runtime libs are static.
13875allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13876
13877# Compiler flag to allow reflexive dlopens.
13878export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13879
13880# Compiler flag to generate shared objects directly from archives.
13881whole_archive_flag_spec=$lt_whole_archive_flag_spec
13882
13883# Whether the compiler copes with passing no objects directly.
13884compiler_needs_object=$lt_compiler_needs_object
13885
13886# Create an old-style archive from a shared archive.
13887old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13888
13889# Create a temporary old-style archive to link instead of a shared archive.
13890old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13891
13892# Commands used to build a shared archive.
13893archive_cmds=$lt_archive_cmds
13894archive_expsym_cmds=$lt_archive_expsym_cmds
13895
13896# Commands used to build a loadable module if different from building
13897# a shared archive.
13898module_cmds=$lt_module_cmds
13899module_expsym_cmds=$lt_module_expsym_cmds
13900
13901# Whether we are building with GNU ld or not.
13902with_gnu_ld=$lt_with_gnu_ld
13903
13904# Flag that allows shared libraries with undefined symbols to be built.
13905allow_undefined_flag=$lt_allow_undefined_flag
13906
13907# Flag that enforces no undefined symbols.
13908no_undefined_flag=$lt_no_undefined_flag
13909
13910# Flag to hardcode \$libdir into a binary during linking.
13911# This must work even if \$libdir does not exist
13912hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13913
13914# If ld is used when linking, flag to hardcode \$libdir into a binary
13915# during linking. This must work even if \$libdir does not exist.
13916hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13917
13918# Whether we need a single "-rpath" flag with a separated argument.
13919hardcode_libdir_separator=$lt_hardcode_libdir_separator
13920
13921# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13922# DIR into the resulting binary.
13923hardcode_direct=$hardcode_direct
13924
13925# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13926# DIR into the resulting binary and the resulting library dependency is
13927# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13928# library is relocated.
13929hardcode_direct_absolute=$hardcode_direct_absolute
13930
13931# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13932# into the resulting binary.
13933hardcode_minus_L=$hardcode_minus_L
13934
13935# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13936# into the resulting binary.
13937hardcode_shlibpath_var=$hardcode_shlibpath_var
13938
13939# Set to "yes" if building a shared library automatically hardcodes DIR
13940# into the library and all subsequent libraries and executables linked
13941# against it.
13942hardcode_automatic=$hardcode_automatic
13943
13944# Set to yes if linker adds runtime paths of dependent libraries
13945# to runtime path list.
13946inherit_rpath=$inherit_rpath
13947
13948# Whether libtool must link a program against all its dependency libraries.
13949link_all_deplibs=$link_all_deplibs
13950
13951# Fix the shell variable \$srcfile for the compiler.
13952fix_srcfile_path=$lt_fix_srcfile_path
13953
13954# Set to "yes" if exported symbols are required.
13955always_export_symbols=$always_export_symbols
13956
13957# The commands to list exported symbols.
13958export_symbols_cmds=$lt_export_symbols_cmds
13959
13960# Symbols that should not be listed in the preloaded symbols.
13961exclude_expsyms=$lt_exclude_expsyms
13962
13963# Symbols that must always be exported.
13964include_expsyms=$lt_include_expsyms
13965
13966# Commands necessary for linking programs (against libraries) with templates.
13967prelink_cmds=$lt_prelink_cmds
13968
13969# Specify filename containing input files.
13970file_list_spec=$lt_file_list_spec
13971
13972# How to hardcode a shared library path into an executable.
13973hardcode_action=$hardcode_action
13974
13975# ### END LIBTOOL CONFIG
13976
13977_LT_EOF
13978
13979 case $host_os in
13980 aix3*)
13981 cat <<\_LT_EOF >> "$cfgfile"
13982# AIX sometimes has problems with the GCC collect2 program. For some
13983# reason, if we set the COLLECT_NAMES environment variable, the problems
13984# vanish in a puff of smoke.
13985if test "X${COLLECT_NAMES+set}" != Xset; then
13986 COLLECT_NAMES=
13987 export COLLECT_NAMES
13988fi
13989_LT_EOF
13990 ;;
13991 esac
13992
13993
13994ltmain="$ac_aux_dir/ltmain.sh"
13995
13996
13997 # We use sed instead of cat because bash on DJGPP gets confused if
13998 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13999 # text mode, it properly converts lines to CR/LF. This bash problem
14000 # is reportedly fixed, but why not run on old versions too?
14001 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14002 || (rm -f "$cfgfile"; exit 1)
14003
14004 case $xsi_shell in
14005 yes)
14006 cat << \_LT_EOF >> "$cfgfile"
b214d478 14007
d7040cdb
SE
14008# func_dirname file append nondir_replacement
14009# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14010# otherwise set result to NONDIR_REPLACEMENT.
14011func_dirname ()
14012{
14013 case ${1} in
14014 */*) func_dirname_result="${1%/*}${2}" ;;
14015 * ) func_dirname_result="${3}" ;;
14016 esac
14017}
14018
14019# func_basename file
14020func_basename ()
14021{
14022 func_basename_result="${1##*/}"
14023}
14024
b214d478
SE
14025# func_dirname_and_basename file append nondir_replacement
14026# perform func_basename and func_dirname in a single function
14027# call:
14028# dirname: Compute the dirname of FILE. If nonempty,
14029# add APPEND to the result, otherwise set result
14030# to NONDIR_REPLACEMENT.
14031# value returned in "$func_dirname_result"
14032# basename: Compute filename of FILE.
14033# value retuned in "$func_basename_result"
14034# Implementation must be kept synchronized with func_dirname
14035# and func_basename. For efficiency, we do not delegate to
14036# those functions but instead duplicate the functionality here.
14037func_dirname_and_basename ()
14038{
14039 case ${1} in
14040 */*) func_dirname_result="${1%/*}${2}" ;;
14041 * ) func_dirname_result="${3}" ;;
14042 esac
14043 func_basename_result="${1##*/}"
14044}
14045
d7040cdb
SE
14046# func_stripname prefix suffix name
14047# strip PREFIX and SUFFIX off of NAME.
14048# PREFIX and SUFFIX must not contain globbing or regex special
14049# characters, hashes, percent signs, but SUFFIX may contain a leading
14050# dot (in which case that matches only a dot).
14051func_stripname ()
14052{
14053 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14054 # positional parameters, so assign one to ordinary parameter first.
14055 func_stripname_result=${3}
14056 func_stripname_result=${func_stripname_result#"${1}"}
14057 func_stripname_result=${func_stripname_result%"${2}"}
14058}
14059
14060# func_opt_split
14061func_opt_split ()
14062{
14063 func_opt_split_opt=${1%%=*}
14064 func_opt_split_arg=${1#*=}
14065}
14066
14067# func_lo2o object
14068func_lo2o ()
14069{
14070 case ${1} in
14071 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14072 *) func_lo2o_result=${1} ;;
14073 esac
14074}
b214d478
SE
14075
14076# func_xform libobj-or-source
14077func_xform ()
14078{
14079 func_xform_result=${1%.*}.lo
14080}
14081
14082# func_arith arithmetic-term...
14083func_arith ()
14084{
14085 func_arith_result=$(( $* ))
14086}
14087
14088# func_len string
14089# STRING may not start with a hyphen.
14090func_len ()
14091{
14092 func_len_result=${#1}
14093}
14094
d7040cdb
SE
14095_LT_EOF
14096 ;;
14097 *) # Bourne compatible functions.
14098 cat << \_LT_EOF >> "$cfgfile"
b214d478 14099
d7040cdb
SE
14100# func_dirname file append nondir_replacement
14101# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14102# otherwise set result to NONDIR_REPLACEMENT.
14103func_dirname ()
14104{
14105 # Extract subdirectory from the argument.
14106 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14107 if test "X$func_dirname_result" = "X${1}"; then
14108 func_dirname_result="${3}"
14109 else
14110 func_dirname_result="$func_dirname_result${2}"
14111 fi
14112}
14113
14114# func_basename file
14115func_basename ()
14116{
14117 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14118}
14119
b214d478 14120
d7040cdb
SE
14121# func_stripname prefix suffix name
14122# strip PREFIX and SUFFIX off of NAME.
14123# PREFIX and SUFFIX must not contain globbing or regex special
14124# characters, hashes, percent signs, but SUFFIX may contain a leading
14125# dot (in which case that matches only a dot).
14126# func_strip_suffix prefix name
14127func_stripname ()
14128{
14129 case ${2} in
14130 .*) func_stripname_result=`$ECHO "X${3}" \
14131 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14132 *) func_stripname_result=`$ECHO "X${3}" \
14133 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14134 esac
14135}
14136
14137# sed scripts:
14138my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14139my_sed_long_arg='1s/^-[^=]*=//'
14140
14141# func_opt_split
14142func_opt_split ()
14143{
14144 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14145 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14146}
14147
14148# func_lo2o object
14149func_lo2o ()
14150{
14151 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14152}
b214d478
SE
14153
14154# func_xform libobj-or-source
14155func_xform ()
14156{
14157 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14158}
14159
14160# func_arith arithmetic-term...
14161func_arith ()
14162{
14163 func_arith_result=`expr "$@"`
14164}
14165
14166# func_len string
14167# STRING may not start with a hyphen.
14168func_len ()
14169{
14170 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14171}
14172
d7040cdb
SE
14173_LT_EOF
14174esac
14175
14176case $lt_shell_append in
14177 yes)
14178 cat << \_LT_EOF >> "$cfgfile"
14179
14180# func_append var value
14181# Append VALUE to the end of shell variable VAR.
14182func_append ()
14183{
14184 eval "$1+=\$2"
14185}
14186_LT_EOF
14187 ;;
14188 *)
14189 cat << \_LT_EOF >> "$cfgfile"
14190
14191# func_append var value
14192# Append VALUE to the end of shell variable VAR.
14193func_append ()
14194{
14195 eval "$1=\$$1\$2"
14196}
b214d478 14197
d7040cdb
SE
14198_LT_EOF
14199 ;;
14200 esac
14201
14202
14203 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14204 || (rm -f "$cfgfile"; exit 1)
14205
14206 mv -f "$cfgfile" "$ofile" ||
14207 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14208 chmod +x "$ofile"
14209
6bf9431b 14210 ;;
81ecdfbb 14211 "default-1":C)
20e95c23
DJ
14212 for ac_file in $CONFIG_FILES; do
14213 # Support "outfile[:infile[:infile...]]"
14214 case "$ac_file" in
14215 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14216 esac
14217 # PO directories have a Makefile.in generated from Makefile.in.in.
14218 case "$ac_file" in */Makefile.in)
14219 # Adjust a relative srcdir.
14220 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14221 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14222 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14223 # In autoconf-2.13 it is called $ac_given_srcdir.
14224 # In autoconf-2.50 it is called $srcdir.
14225 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14226 case "$ac_given_srcdir" in
14227 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14228 /*) top_srcdir="$ac_given_srcdir" ;;
14229 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14230 esac
14231 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14232 rm -f "$ac_dir/POTFILES"
14233 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14234 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14235 POMAKEFILEDEPS="POTFILES.in"
14236 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14237 # on $ac_dir but don't depend on user-specified configuration
14238 # parameters.
14239 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14240 # The LINGUAS file contains the set of available languages.
14241 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14242 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14243 fi
14244 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14245 # Hide the ALL_LINGUAS assigment from automake.
14246 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14247 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14248 else
14249 # The set of available languages was given in configure.in.
14250 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14251 fi
14252 case "$ac_given_srcdir" in
14253 .) srcdirpre= ;;
14254 *) srcdirpre='$(srcdir)/' ;;
14255 esac
14256 POFILES=
14257 GMOFILES=
14258 UPDATEPOFILES=
14259 DUMMYPOFILES=
14260 for lang in $ALL_LINGUAS; do
14261 POFILES="$POFILES $srcdirpre$lang.po"
14262 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14263 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14264 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14265 done
14266 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14267 # environment variable.
14268 INST_LINGUAS=
14269 if test -n "$ALL_LINGUAS"; then
14270 for presentlang in $ALL_LINGUAS; do
14271 useit=no
14272 if test "%UNSET%" != "$LINGUAS"; then
14273 desiredlanguages="$LINGUAS"
14274 else
14275 desiredlanguages="$ALL_LINGUAS"
14276 fi
14277 for desiredlang in $desiredlanguages; do
14278 # Use the presentlang catalog if desiredlang is
14279 # a. equal to presentlang, or
14280 # b. a variant of presentlang (because in this case,
14281 # presentlang can be used as a fallback for messages
14282 # which are not translated in the desiredlang catalog).
14283 case "$desiredlang" in
14284 "$presentlang"*) useit=yes;;
14285 esac
14286 done
14287 if test $useit = yes; then
14288 INST_LINGUAS="$INST_LINGUAS $presentlang"
14289 fi
14290 done
14291 fi
14292 CATALOGS=
14293 if test -n "$INST_LINGUAS"; then
14294 for lang in $INST_LINGUAS; do
14295 CATALOGS="$CATALOGS $lang.gmo"
14296 done
14297 fi
14298 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14299 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"
14300 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14301 if test -f "$f"; then
14302 case "$f" in
14303 *.orig | *.bak | *~) ;;
14304 *) cat "$f" >> "$ac_dir/Makefile" ;;
14305 esac
14306 fi
14307 done
14308 fi
14309 ;;
14310 esac
14311 done ;;
81ecdfbb 14312
6bf9431b 14313 esac
81ecdfbb 14314done # for ac_tag
6bf9431b 14315
6bf9431b 14316
81ecdfbb 14317as_fn_exit 0
6bf9431b 14318_ACEOF
6bf9431b
BE
14319ac_clean_files=$ac_clean_files_save
14320
81ecdfbb
RW
14321test $ac_write_fail = 0 ||
14322 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14323
6bf9431b
BE
14324
14325# configure is writing to config.log, and then calls config.status.
14326# config.status does its own redirection, appending to config.log.
14327# Unfortunately, on DOS this fails, as config.log is still kept open
14328# by configure, so config.status won't be able to write to it; its
14329# output is simply discarded. So we exec the FD to /dev/null,
14330# effectively closing config.log, so it can be properly (re)opened and
14331# appended to by config.status. When coming back to configure, we
14332# need to make the FD available again.
14333if test "$no_create" != yes; then
14334 ac_cs_success=:
14335 ac_config_status_args=
14336 test "$silent" = yes &&
14337 ac_config_status_args="$ac_config_status_args --quiet"
14338 exec 5>/dev/null
14339 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14340 exec 5>>config.log
14341 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14342 # would make configure fail if this is the last instruction.
81ecdfbb
RW
14343 $ac_cs_success || as_fn_exit $?
14344fi
14345if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14347$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6bf9431b 14348fi
252b5132 14349
This page took 1.140433 seconds and 4 git commands to generate.