Add -Wshadow to the gcc command line options used when compiling the binutils.
[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
da2f07f1 879enable_plugins
81ecdfbb
RW
880enable_largefile
881enable_shared
882enable_static
883with_pic
884enable_fast_install
885with_gnu_ld
886enable_libtool_lock
887enable_nls
888enable_maintainer_mode
889enable_werror
890enable_build_warnings
891'
892 ac_precious_vars='build_alias
893host_alias
894target_alias
895CC
896CFLAGS
897LDFLAGS
898LIBS
899CPPFLAGS
900CPP'
901
252b5132
RH
902
903# Initialize some variables set by options.
6bf9431b
BE
904ac_init_help=
905ac_init_version=false
81ecdfbb
RW
906ac_unrecognized_opts=
907ac_unrecognized_sep=
252b5132
RH
908# The variables have the same names as the options, with
909# dashes changed to underlines.
6bf9431b 910cache_file=/dev/null
252b5132 911exec_prefix=NONE
252b5132 912no_create=
252b5132
RH
913no_recursion=
914prefix=NONE
915program_prefix=NONE
916program_suffix=NONE
917program_transform_name=s,x,x,
918silent=
919site=
920srcdir=
252b5132
RH
921verbose=
922x_includes=NONE
923x_libraries=NONE
6bf9431b
BE
924
925# Installation directory options.
926# These are left unexpanded so users can "make install exec_prefix=/foo"
927# and all the variables that are supposed to be based on exec_prefix
928# by default will actually change.
929# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 930# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
931bindir='${exec_prefix}/bin'
932sbindir='${exec_prefix}/sbin'
933libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
934datarootdir='${prefix}/share'
935datadir='${datarootdir}'
252b5132
RH
936sysconfdir='${prefix}/etc'
937sharedstatedir='${prefix}/com'
938localstatedir='${prefix}/var'
252b5132
RH
939includedir='${prefix}/include'
940oldincludedir='/usr/include'
81ecdfbb
RW
941docdir='${datarootdir}/doc/${PACKAGE}'
942infodir='${datarootdir}/info'
943htmldir='${docdir}'
944dvidir='${docdir}'
945pdfdir='${docdir}'
946psdir='${docdir}'
947libdir='${exec_prefix}/lib'
948localedir='${datarootdir}/locale'
949mandir='${datarootdir}/man'
252b5132 950
252b5132 951ac_prev=
81ecdfbb 952ac_dashdash=
252b5132
RH
953for ac_option
954do
252b5132
RH
955 # If the previous option needs an argument, assign it.
956 if test -n "$ac_prev"; then
81ecdfbb 957 eval $ac_prev=\$ac_option
252b5132
RH
958 ac_prev=
959 continue
960 fi
961
81ecdfbb
RW
962 case $ac_option in
963 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964 *) ac_optarg=yes ;;
965 esac
252b5132
RH
966
967 # Accept the important Cygnus configure options, so we can diagnose typos.
968
81ecdfbb
RW
969 case $ac_dashdash$ac_option in
970 --)
971 ac_dashdash=yes ;;
252b5132
RH
972
973 -bindir | --bindir | --bindi | --bind | --bin | --bi)
974 ac_prev=bindir ;;
975 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
6bf9431b 976 bindir=$ac_optarg ;;
252b5132
RH
977
978 -build | --build | --buil | --bui | --bu)
6bf9431b 979 ac_prev=build_alias ;;
252b5132 980 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
6bf9431b 981 build_alias=$ac_optarg ;;
252b5132
RH
982
983 -cache-file | --cache-file | --cache-fil | --cache-fi \
984 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985 ac_prev=cache_file ;;
986 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6bf9431b
BE
988 cache_file=$ac_optarg ;;
989
990 --config-cache | -C)
991 cache_file=config.cache ;;
252b5132 992
81ecdfbb 993 -datadir | --datadir | --datadi | --datad)
252b5132 994 ac_prev=datadir ;;
81ecdfbb 995 -datadir=* | --datadir=* | --datadi=* | --datad=*)
6bf9431b 996 datadir=$ac_optarg ;;
252b5132 997
81ecdfbb
RW
998 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999 | --dataroo | --dataro | --datar)
1000 ac_prev=datarootdir ;;
1001 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003 datarootdir=$ac_optarg ;;
1004
252b5132 1005 -disable-* | --disable-*)
81ecdfbb 1006 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 1007 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009 as_fn_error "invalid feature name: $ac_useropt"
1010 ac_useropt_orig=$ac_useropt
1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1013 *"
1014"enable_$ac_useropt"
1015"*) ;;
1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1017 ac_unrecognized_sep=', ';;
1018 esac
1019 eval enable_$ac_useropt=no ;;
1020
1021 -docdir | --docdir | --docdi | --doc | --do)
1022 ac_prev=docdir ;;
1023 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1024 docdir=$ac_optarg ;;
1025
1026 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1027 ac_prev=dvidir ;;
1028 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1029 dvidir=$ac_optarg ;;
252b5132
RH
1030
1031 -enable-* | --enable-*)
81ecdfbb 1032 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 1033 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 as_fn_error "invalid feature name: $ac_useropt"
1036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1039 *"
1040"enable_$ac_useropt"
1041"*) ;;
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
0ab6f085 1044 esac
81ecdfbb 1045 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1046
1047 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1048 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1049 | --exec | --exe | --ex)
1050 ac_prev=exec_prefix ;;
1051 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1052 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1053 | --exec=* | --exe=* | --ex=*)
6bf9431b 1054 exec_prefix=$ac_optarg ;;
252b5132
RH
1055
1056 -gas | --gas | --ga | --g)
1057 # Obsolete; use --with-gas.
1058 with_gas=yes ;;
1059
6bf9431b
BE
1060 -help | --help | --hel | --he | -h)
1061 ac_init_help=long ;;
1062 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1063 ac_init_help=recursive ;;
1064 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1065 ac_init_help=short ;;
252b5132
RH
1066
1067 -host | --host | --hos | --ho)
6bf9431b 1068 ac_prev=host_alias ;;
252b5132 1069 -host=* | --host=* | --hos=* | --ho=*)
6bf9431b 1070 host_alias=$ac_optarg ;;
252b5132 1071
81ecdfbb
RW
1072 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1073 ac_prev=htmldir ;;
1074 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1075 | --ht=*)
1076 htmldir=$ac_optarg ;;
1077
252b5132
RH
1078 -includedir | --includedir | --includedi | --included | --include \
1079 | --includ | --inclu | --incl | --inc)
1080 ac_prev=includedir ;;
1081 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1082 | --includ=* | --inclu=* | --incl=* | --inc=*)
6bf9431b 1083 includedir=$ac_optarg ;;
252b5132
RH
1084
1085 -infodir | --infodir | --infodi | --infod | --info | --inf)
1086 ac_prev=infodir ;;
1087 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
6bf9431b 1088 infodir=$ac_optarg ;;
252b5132
RH
1089
1090 -libdir | --libdir | --libdi | --libd)
1091 ac_prev=libdir ;;
1092 -libdir=* | --libdir=* | --libdi=* | --libd=*)
6bf9431b 1093 libdir=$ac_optarg ;;
252b5132
RH
1094
1095 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1096 | --libexe | --libex | --libe)
1097 ac_prev=libexecdir ;;
1098 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1099 | --libexe=* | --libex=* | --libe=*)
6bf9431b 1100 libexecdir=$ac_optarg ;;
252b5132 1101
81ecdfbb
RW
1102 -localedir | --localedir | --localedi | --localed | --locale)
1103 ac_prev=localedir ;;
1104 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1105 localedir=$ac_optarg ;;
1106
252b5132 1107 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1108 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1109 ac_prev=localstatedir ;;
1110 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1111 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
6bf9431b 1112 localstatedir=$ac_optarg ;;
252b5132
RH
1113
1114 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1115 ac_prev=mandir ;;
1116 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
6bf9431b 1117 mandir=$ac_optarg ;;
252b5132
RH
1118
1119 -nfp | --nfp | --nf)
1120 # Obsolete; use --without-fp.
1121 with_fp=no ;;
1122
1123 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
6bf9431b 1124 | --no-cr | --no-c | -n)
252b5132
RH
1125 no_create=yes ;;
1126
1127 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1128 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129 no_recursion=yes ;;
1130
1131 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1132 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1133 | --oldin | --oldi | --old | --ol | --o)
1134 ac_prev=oldincludedir ;;
1135 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1136 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1137 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
6bf9431b 1138 oldincludedir=$ac_optarg ;;
252b5132
RH
1139
1140 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1141 ac_prev=prefix ;;
1142 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6bf9431b 1143 prefix=$ac_optarg ;;
252b5132
RH
1144
1145 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1146 | --program-pre | --program-pr | --program-p)
1147 ac_prev=program_prefix ;;
1148 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1149 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
6bf9431b 1150 program_prefix=$ac_optarg ;;
252b5132
RH
1151
1152 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1153 | --program-suf | --program-su | --program-s)
1154 ac_prev=program_suffix ;;
1155 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1156 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
6bf9431b 1157 program_suffix=$ac_optarg ;;
252b5132
RH
1158
1159 -program-transform-name | --program-transform-name \
1160 | --program-transform-nam | --program-transform-na \
1161 | --program-transform-n | --program-transform- \
1162 | --program-transform | --program-transfor \
1163 | --program-transfo | --program-transf \
1164 | --program-trans | --program-tran \
1165 | --progr-tra | --program-tr | --program-t)
1166 ac_prev=program_transform_name ;;
1167 -program-transform-name=* | --program-transform-name=* \
1168 | --program-transform-nam=* | --program-transform-na=* \
1169 | --program-transform-n=* | --program-transform-=* \
1170 | --program-transform=* | --program-transfor=* \
1171 | --program-transfo=* | --program-transf=* \
1172 | --program-trans=* | --program-tran=* \
1173 | --progr-tra=* | --program-tr=* | --program-t=*)
6bf9431b 1174 program_transform_name=$ac_optarg ;;
252b5132 1175
81ecdfbb
RW
1176 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1177 ac_prev=pdfdir ;;
1178 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1179 pdfdir=$ac_optarg ;;
1180
1181 -psdir | --psdir | --psdi | --psd | --ps)
1182 ac_prev=psdir ;;
1183 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1184 psdir=$ac_optarg ;;
1185
252b5132
RH
1186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1187 | -silent | --silent | --silen | --sile | --sil)
1188 silent=yes ;;
1189
1190 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1191 ac_prev=sbindir ;;
1192 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1193 | --sbi=* | --sb=*)
6bf9431b 1194 sbindir=$ac_optarg ;;
252b5132
RH
1195
1196 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1197 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1198 | --sharedst | --shareds | --shared | --share | --shar \
1199 | --sha | --sh)
1200 ac_prev=sharedstatedir ;;
1201 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1202 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1203 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1204 | --sha=* | --sh=*)
6bf9431b 1205 sharedstatedir=$ac_optarg ;;
252b5132
RH
1206
1207 -site | --site | --sit)
1208 ac_prev=site ;;
1209 -site=* | --site=* | --sit=*)
6bf9431b 1210 site=$ac_optarg ;;
093872ec 1211
252b5132
RH
1212 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1213 ac_prev=srcdir ;;
1214 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6bf9431b 1215 srcdir=$ac_optarg ;;
252b5132
RH
1216
1217 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1218 | --syscon | --sysco | --sysc | --sys | --sy)
1219 ac_prev=sysconfdir ;;
1220 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1221 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
6bf9431b 1222 sysconfdir=$ac_optarg ;;
252b5132
RH
1223
1224 -target | --target | --targe | --targ | --tar | --ta | --t)
6bf9431b 1225 ac_prev=target_alias ;;
252b5132 1226 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
6bf9431b 1227 target_alias=$ac_optarg ;;
252b5132
RH
1228
1229 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1230 verbose=yes ;;
1231
6bf9431b
BE
1232 -version | --version | --versio | --versi | --vers | -V)
1233 ac_init_version=: ;;
252b5132
RH
1234
1235 -with-* | --with-*)
81ecdfbb 1236 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1237 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239 as_fn_error "invalid package name: $ac_useropt"
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1243 *"
1244"with_$ac_useropt"
1245"*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
0ab6f085 1248 esac
81ecdfbb 1249 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1250
1251 -without-* | --without-*)
81ecdfbb 1252 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1253 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255 as_fn_error "invalid package name: $ac_useropt"
1256 ac_useropt_orig=$ac_useropt
1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1259 *"
1260"with_$ac_useropt"
1261"*) ;;
1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1263 ac_unrecognized_sep=', ';;
1264 esac
1265 eval with_$ac_useropt=no ;;
252b5132
RH
1266
1267 --x)
1268 # Obsolete; use --with-x.
1269 with_x=yes ;;
1270
1271 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272 | --x-incl | --x-inc | --x-in | --x-i)
1273 ac_prev=x_includes ;;
1274 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
6bf9431b 1276 x_includes=$ac_optarg ;;
252b5132
RH
1277
1278 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280 ac_prev=x_libraries ;;
1281 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
6bf9431b 1283 x_libraries=$ac_optarg ;;
252b5132 1284
81ecdfbb
RW
1285 -*) as_fn_error "unrecognized option: \`$ac_option'
1286Try \`$0 --help' for more information."
252b5132
RH
1287 ;;
1288
6bf9431b
BE
1289 *=*)
1290 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1291 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1292 case $ac_envvar in #(
1293 '' | [0-9]* | *[!_$as_cr_alnum]* )
1294 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1295 esac
1296 eval $ac_envvar=\$ac_optarg
6bf9431b
BE
1297 export $ac_envvar ;;
1298
252b5132 1299 *)
6bf9431b 1300 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1301 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
6bf9431b 1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1303 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
6bf9431b 1304 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1305 ;;
1306
1307 esac
1308done
1309
1310if test -n "$ac_prev"; then
6bf9431b 1311 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1312 as_fn_error "missing argument to $ac_option"
252b5132
RH
1313fi
1314
81ecdfbb
RW
1315if test -n "$ac_unrecognized_opts"; then
1316 case $enable_option_checking in
1317 no) ;;
1318 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1319 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
0ab6f085 1320 esac
81ecdfbb 1321fi
0ab6f085 1322
81ecdfbb
RW
1323# Check all directory arguments for consistency.
1324for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1325 datadir sysconfdir sharedstatedir localstatedir includedir \
1326 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1327 libdir localedir mandir
0ab6f085 1328do
81ecdfbb
RW
1329 eval ac_val=\$$ac_var
1330 # Remove trailing slashes.
0ab6f085 1331 case $ac_val in
81ecdfbb
RW
1332 */ )
1333 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1334 eval $ac_var=\$ac_val;;
252b5132 1335 esac
81ecdfbb
RW
1336 # Be sure to have absolute directory names.
1337 case $ac_val in
1338 [\\/$]* | ?:[\\/]* ) continue;;
1339 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1340 esac
1341 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1342done
1343
6bf9431b
BE
1344# There might be people who depend on the old broken behavior: `$host'
1345# used to hold the argument of --host etc.
1346# FIXME: To remove some day.
1347build=$build_alias
1348host=$host_alias
1349target=$target_alias
1350
1351# FIXME: To remove some day.
1352if test "x$host_alias" != x; then
1353 if test "x$build_alias" = x; then
1354 cross_compiling=maybe
81ecdfbb 1355 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
6bf9431b
BE
1356 If a cross compiler is detected then cross compile mode will be used." >&2
1357 elif test "x$build_alias" != "x$host_alias"; then
1358 cross_compiling=yes
1359 fi
1360fi
252b5132 1361
6bf9431b
BE
1362ac_tool_prefix=
1363test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364
1365test "$silent" = yes && exec 6>/dev/null
252b5132 1366
252b5132 1367
81ecdfbb
RW
1368ac_pwd=`pwd` && test -n "$ac_pwd" &&
1369ac_ls_di=`ls -di .` &&
1370ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1371 as_fn_error "working directory cannot be determined"
1372test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373 as_fn_error "pwd does not report name of working directory"
1374
1375
252b5132
RH
1376# Find the source files, if location was not specified.
1377if test -z "$srcdir"; then
1378 ac_srcdir_defaulted=yes
81ecdfbb
RW
1379 # Try the directory containing this script, then the parent directory.
1380 ac_confdir=`$as_dirname -- "$as_myself" ||
1381$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1382 X"$as_myself" : 'X\(//\)[^/]' \| \
1383 X"$as_myself" : 'X\(//\)$' \| \
1384 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1385$as_echo X"$as_myself" |
1386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1387 s//\1/
1388 q
1389 }
1390 /^X\(\/\/\)[^/].*/{
1391 s//\1/
1392 q
1393 }
1394 /^X\(\/\/\)$/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\).*/{
1399 s//\1/
1400 q
1401 }
1402 s/.*/./; q'`
252b5132 1403 srcdir=$ac_confdir
81ecdfbb 1404 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1405 srcdir=..
1406 fi
1407else
1408 ac_srcdir_defaulted=no
1409fi
81ecdfbb
RW
1410if test ! -r "$srcdir/$ac_unique_file"; then
1411 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1412 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1413fi
1414ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1415ac_abs_confdir=`(
1416 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1417 pwd)`
1418# When building in place, set srcdir=.
1419if test "$ac_abs_confdir" = "$ac_pwd"; then
1420 srcdir=.
1421fi
1422# Remove unnecessary trailing slashes from srcdir.
1423# Double slashes in file names in object file debugging info
1424# mess up M-x gdb in Emacs.
1425case $srcdir in
1426*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1427esac
1428for ac_var in $ac_precious_vars; do
1429 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1430 eval ac_env_${ac_var}_value=\$${ac_var}
1431 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1432 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1433done
252b5132 1434
6bf9431b
BE
1435#
1436# Report the --help message.
1437#
1438if test "$ac_init_help" = "long"; then
1439 # Omit some internal or obsolete options to make the list less imposing.
1440 # This message is too long to be a string in the A/UX 3.1 sh.
1441 cat <<_ACEOF
1442\`configure' configures this package to adapt to many kinds of systems.
252b5132 1443
6bf9431b 1444Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1445
6bf9431b
BE
1446To assign environment variables (e.g., CC, CFLAGS...), specify them as
1447VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1448
6bf9431b 1449Defaults for the options are specified in brackets.
ac48eca1 1450
6bf9431b
BE
1451Configuration:
1452 -h, --help display this help and exit
1453 --help=short display options specific to this package
1454 --help=recursive display the short help of all the included packages
1455 -V, --version display version information and exit
1456 -q, --quiet, --silent do not print \`checking...' messages
1457 --cache-file=FILE cache test results in FILE [disabled]
1458 -C, --config-cache alias for \`--cache-file=config.cache'
1459 -n, --no-create do not create output files
1460 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1461
6bf9431b
BE
1462Installation directories:
1463 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1464 [$ac_default_prefix]
6bf9431b 1465 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1466 [PREFIX]
ac48eca1 1467
6bf9431b
BE
1468By default, \`make install' will install all the files in
1469\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1470an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1471for instance \`--prefix=\$HOME'.
ac48eca1 1472
6bf9431b 1473For better control, use the options below.
ac48eca1 1474
6bf9431b 1475Fine tuning of the installation directories:
81ecdfbb
RW
1476 --bindir=DIR user executables [EPREFIX/bin]
1477 --sbindir=DIR system admin executables [EPREFIX/sbin]
1478 --libexecdir=DIR program executables [EPREFIX/libexec]
1479 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1480 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1481 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1482 --libdir=DIR object code libraries [EPREFIX/lib]
1483 --includedir=DIR C header files [PREFIX/include]
1484 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1485 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1486 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1487 --infodir=DIR info documentation [DATAROOTDIR/info]
1488 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1489 --mandir=DIR man documentation [DATAROOTDIR/man]
1490 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1491 --htmldir=DIR html documentation [DOCDIR]
1492 --dvidir=DIR dvi documentation [DOCDIR]
1493 --pdfdir=DIR pdf documentation [DOCDIR]
1494 --psdir=DIR ps documentation [DOCDIR]
6bf9431b 1495_ACEOF
ac48eca1 1496
6bf9431b 1497 cat <<\_ACEOF
252b5132 1498
6bf9431b
BE
1499Program names:
1500 --program-prefix=PREFIX prepend PREFIX to installed program names
1501 --program-suffix=SUFFIX append SUFFIX to installed program names
1502 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1503
6bf9431b
BE
1504System types:
1505 --build=BUILD configure for building on BUILD [guessed]
1506 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1507 --target=TARGET configure for building compilers for TARGET [HOST]
1508_ACEOF
252b5132 1509fi
252b5132 1510
6bf9431b 1511if test -n "$ac_init_help"; then
252b5132 1512
6bf9431b 1513 cat <<\_ACEOF
252b5132 1514
6bf9431b 1515Optional Features:
81ecdfbb 1516 --disable-option-checking ignore unrecognized --enable/--with options
6bf9431b
BE
1517 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1518 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1519 --disable-dependency-tracking speeds up one-time build
1520 --enable-dependency-tracking do not reject slow dependency extractors
da2f07f1 1521 --enable-plugins Enable support for plugins (defaults no)
d053aef8 1522 --disable-largefile omit support for large files
81ecdfbb
RW
1523 --enable-shared[=PKGS] build shared libraries [default=yes]
1524 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1525 --enable-fast-install[=PKGS]
1526 optimize for fast installation [default=yes]
6bf9431b
BE
1527 --disable-libtool-lock avoid locking (might break parallel builds)
1528 --disable-nls do not use Native Language Support
1529 --enable-maintainer-mode enable make rules and dependencies not useful
1530 (and sometimes confusing) to the casual installer
241a6c40
AM
1531 --enable-werror treat compile warnings as errors
1532 --enable-build-warnings enable build-time compiler warnings
6bf9431b
BE
1533
1534Optional Packages:
1535 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1536 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1537 --with-pic try to use only PIC/non-PIC objects [default=use
1538 both]
1539 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
252b5132 1540
6bf9431b
BE
1541Some influential environment variables:
1542 CC C compiler command
1543 CFLAGS C compiler flags
1544 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1545 nonstandard directory <lib dir>
81ecdfbb
RW
1546 LIBS libraries to pass to the linker, e.g. -l<library>
1547 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1548 you have headers in a nonstandard directory <include dir>
6bf9431b 1549 CPP C preprocessor
252b5132 1550
6bf9431b
BE
1551Use these variables to override the choices made by `configure' or to help
1552it to find libraries and programs with nonstandard names/locations.
1553
81ecdfbb 1554Report bugs to the package provider.
6bf9431b 1555_ACEOF
81ecdfbb 1556ac_status=$?
252b5132
RH
1557fi
1558
6bf9431b
BE
1559if test "$ac_init_help" = "recursive"; then
1560 # If there are subdirs, report their specific --help.
6bf9431b 1561 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1562 test -d "$ac_dir" ||
1563 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1564 continue
6bf9431b 1565 ac_builddir=.
252b5132 1566
81ecdfbb
RW
1567case "$ac_dir" in
1568.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569*)
1570 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1571 # A ".." for each directory in $ac_dir_suffix.
1572 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1573 case $ac_top_builddir_sub in
1574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576 esac ;;
1577esac
1578ac_abs_top_builddir=$ac_pwd
1579ac_abs_builddir=$ac_pwd$ac_dir_suffix
1580# for backward compatibility:
1581ac_top_builddir=$ac_top_build_prefix
6bf9431b
BE
1582
1583case $srcdir in
81ecdfbb 1584 .) # We are building in place.
6bf9431b 1585 ac_srcdir=.
81ecdfbb
RW
1586 ac_top_srcdir=$ac_top_builddir_sub
1587 ac_abs_top_srcdir=$ac_pwd ;;
1588 [\\/]* | ?:[\\/]* ) # Absolute name.
6bf9431b 1589 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1590 ac_top_srcdir=$srcdir
1591 ac_abs_top_srcdir=$srcdir ;;
1592 *) # Relative name.
1593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1594 ac_top_srcdir=$ac_top_build_prefix$srcdir
1595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
0ab6f085 1596esac
81ecdfbb
RW
1597ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598
1599 cd "$ac_dir" || { ac_status=$?; continue; }
1600 # Check for guested configure.
1601 if test -f "$ac_srcdir/configure.gnu"; then
1602 echo &&
1603 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604 elif test -f "$ac_srcdir/configure"; then
1605 echo &&
1606 $SHELL "$ac_srcdir/configure" --help=recursive
6bf9431b 1607 else
81ecdfbb
RW
1608 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609 fi || ac_status=$?
1610 cd "$ac_pwd" || { ac_status=$?; break; }
6bf9431b
BE
1611 done
1612fi
252b5132 1613
81ecdfbb 1614test -n "$ac_init_help" && exit $ac_status
6bf9431b
BE
1615if $ac_init_version; then
1616 cat <<\_ACEOF
81ecdfbb
RW
1617configure
1618generated by GNU Autoconf 2.64
252b5132 1619
81ecdfbb 1620Copyright (C) 2009 Free Software Foundation, Inc.
6bf9431b
BE
1621This configure script is free software; the Free Software Foundation
1622gives unlimited permission to copy, distribute and modify it.
1623_ACEOF
81ecdfbb 1624 exit
6bf9431b 1625fi
5d64ca4e 1626
81ecdfbb
RW
1627## ------------------------ ##
1628## Autoconf initialization. ##
1629## ------------------------ ##
5d64ca4e 1630
81ecdfbb
RW
1631# ac_fn_c_try_compile LINENO
1632# --------------------------
1633# Try to compile conftest.$ac_ext, and return whether this succeeded.
1634ac_fn_c_try_compile ()
6bf9431b 1635{
81ecdfbb
RW
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext
1638 if { { ac_try="$ac_compile"
1639case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644$as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_compile") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1651 fi
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_c_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest.$ac_objext; then :
1657 ac_retval=0
1658else
1659 $as_echo "$as_me: failed program was:" >&5
1660sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 1661
81ecdfbb
RW
1662 ac_retval=1
1663fi
1664 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1665 return $ac_retval
6bf9431b 1666
81ecdfbb 1667} # ac_fn_c_try_compile
6bf9431b 1668
81ecdfbb
RW
1669# ac_fn_c_try_link LINENO
1670# -----------------------
1671# Try to link conftest.$ac_ext, and return whether this succeeded.
1672ac_fn_c_try_link ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext conftest$ac_exeext
1676 if { { ac_try="$ac_link"
1677case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_link") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest$ac_exeext && {
1695 test "$cross_compiling" = yes ||
1696 $as_test_x conftest$ac_exeext
1697 }; then :
1698 ac_retval=0
1699else
1700 $as_echo "$as_me: failed program was:" >&5
1701sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 1702
81ecdfbb
RW
1703 ac_retval=1
1704fi
1705 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1706 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1707 # interfere with the next link command; also delete a directory that is
1708 # left behind by Apple's compiler. We do this before executing the actions.
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1711 return $ac_retval
6bf9431b 1712
81ecdfbb
RW
1713} # ac_fn_c_try_link
1714
1715# ac_fn_c_try_cpp LINENO
1716# ----------------------
1717# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1718ac_fn_c_try_cpp ()
1719{
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_cpp conftest.$ac_ext"
1722case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1734 fi
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } >/dev/null && {
1737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 }; then :
1740 ac_retval=0
1741else
1742 $as_echo "$as_me: failed program was:" >&5
1743sed 's/^/| /' conftest.$ac_ext >&5
1744
1745 ac_retval=1
1746fi
1747 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748 return $ac_retval
1749
1750} # ac_fn_c_try_cpp
1751
1752# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1753# -------------------------------------------------------
1754# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1755# the include files in INCLUDES and setting the cache variable VAR
1756# accordingly.
1757ac_fn_c_check_header_mongrel ()
1758{
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762$as_echo_n "checking for $2... " >&6; }
1763if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1764 $as_echo_n "(cached) " >&6
1765fi
1766eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768$as_echo "$ac_res" >&6; }
1769else
1770 # Is the header compilable?
1771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1772$as_echo_n "checking $2 usability... " >&6; }
1773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774/* end confdefs.h. */
1775$4
1776#include <$2>
1777_ACEOF
1778if ac_fn_c_try_compile "$LINENO"; then :
1779 ac_header_compiler=yes
1780else
1781 ac_header_compiler=no
1782fi
1783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1785$as_echo "$ac_header_compiler" >&6; }
1786
1787# Is the header present?
1788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1789$as_echo_n "checking $2 presence... " >&6; }
1790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791/* end confdefs.h. */
1792#include <$2>
1793_ACEOF
1794if ac_fn_c_try_cpp "$LINENO"; then :
1795 ac_header_preproc=yes
1796else
1797 ac_header_preproc=no
1798fi
1799rm -f conftest.err conftest.$ac_ext
1800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1801$as_echo "$ac_header_preproc" >&6; }
1802
1803# So? What about this header?
1804case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1805 yes:no: )
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1807$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1809$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1810 ;;
1811 no:yes:* )
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1813$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1815$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1817$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1819$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822 ;;
1823esac
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825$as_echo_n "checking for $2... " >&6; }
1826if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1827 $as_echo_n "(cached) " >&6
1828else
1829 eval "$3=\$ac_header_compiler"
1830fi
1831eval ac_res=\$$3
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833$as_echo "$ac_res" >&6; }
1834fi
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836
1837} # ac_fn_c_check_header_mongrel
1838
1839# ac_fn_c_try_run LINENO
1840# ----------------------
1841# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1842# that executables *can* be run.
1843ac_fn_c_try_run ()
1844{
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if { { ac_try="$ac_link"
1847case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850esac
1851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852$as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_link") 2>&5
1854 ac_status=$?
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1857 { { case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860esac
1861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862$as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_try") 2>&5
1864 ac_status=$?
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; }; }; then :
1867 ac_retval=0
1868else
1869 $as_echo "$as_me: program exited with status $ac_status" >&5
1870 $as_echo "$as_me: failed program was:" >&5
1871sed 's/^/| /' conftest.$ac_ext >&5
1872
1873 ac_retval=$ac_status
1874fi
1875 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877 return $ac_retval
1878
1879} # ac_fn_c_try_run
1880
1881# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1882# -------------------------------------------------------
1883# Tests whether HEADER exists and can be compiled using the include files in
1884# INCLUDES, setting the cache variable VAR accordingly.
1885ac_fn_c_check_header_compile ()
1886{
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889$as_echo_n "checking for $2... " >&6; }
1890if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891 $as_echo_n "(cached) " >&6
1892else
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894/* end confdefs.h. */
1895$4
1896#include <$2>
1897_ACEOF
1898if ac_fn_c_try_compile "$LINENO"; then :
1899 eval "$3=yes"
1900else
1901 eval "$3=no"
1902fi
1903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904fi
1905eval ac_res=\$$3
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907$as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909
1910} # ac_fn_c_check_header_compile
1911
1912# ac_fn_c_check_func LINENO FUNC VAR
1913# ----------------------------------
1914# Tests whether FUNC exists, setting the cache variable VAR accordingly
1915ac_fn_c_check_func ()
1916{
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919$as_echo_n "checking for $2... " >&6; }
1920if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1921 $as_echo_n "(cached) " >&6
1922else
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h. */
1925/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1927#define $2 innocuous_$2
1928
1929/* System header to define __stub macros and hopefully few prototypes,
1930 which can conflict with char $2 (); below.
1931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1932 <limits.h> exists even on freestanding compilers. */
1933
1934#ifdef __STDC__
1935# include <limits.h>
1936#else
1937# include <assert.h>
1938#endif
1939
1940#undef $2
1941
1942/* Override any GCC internal prototype to avoid an error.
1943 Use char because int might match the return type of a GCC
1944 builtin and then its argument prototype would still apply. */
1945#ifdef __cplusplus
1946extern "C"
1947#endif
1948char $2 ();
1949/* The GNU C library defines this for functions which it implements
1950 to always fail with ENOSYS. Some functions are actually named
1951 something starting with __ and the normal name is an alias. */
1952#if defined __stub_$2 || defined __stub___$2
1953choke me
1954#endif
1955
1956int
1957main ()
1958{
1959return $2 ();
1960 ;
1961 return 0;
1962}
1963_ACEOF
1964if ac_fn_c_try_link "$LINENO"; then :
1965 eval "$3=yes"
1966else
1967 eval "$3=no"
1968fi
1969rm -f core conftest.err conftest.$ac_objext \
1970 conftest$ac_exeext conftest.$ac_ext
1971fi
1972eval ac_res=\$$3
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974$as_echo "$ac_res" >&6; }
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976
1977} # ac_fn_c_check_func
1978cat >config.log <<_ACEOF
1979This file contains any messages produced by compilers while
1980running configure, to aid debugging if configure makes a mistake.
1981
1982It was created by $as_me, which was
1983generated by GNU Autoconf 2.64. Invocation command line was
1984
1985 $ $0 $@
1986
1987_ACEOF
1988exec 5>>config.log
1989{
1990cat <<_ASUNAME
1991## --------- ##
1992## Platform. ##
1993## --------- ##
1994
1995hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1996uname -m = `(uname -m) 2>/dev/null || echo unknown`
1997uname -r = `(uname -r) 2>/dev/null || echo unknown`
1998uname -s = `(uname -s) 2>/dev/null || echo unknown`
1999uname -v = `(uname -v) 2>/dev/null || echo unknown`
2000
2001/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2002/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2003
2004/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2005/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2006/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2007/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2008/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2009/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2010/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2011
2012_ASUNAME
2013
2014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6bf9431b
BE
2015for as_dir in $PATH
2016do
2017 IFS=$as_save_IFS
2018 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2019 $as_echo "PATH: $as_dir"
2020 done
2021IFS=$as_save_IFS
5d64ca4e 2022
6bf9431b 2023} >&5
093872ec 2024
6bf9431b 2025cat >&5 <<_ACEOF
252b5132 2026
6bf9431b
BE
2027
2028## ----------- ##
2029## Core tests. ##
2030## ----------- ##
2031
2032_ACEOF
2033
2034
2035# Keep a trace of the command line.
2036# Strip out --no-create and --no-recursion so they do not pile up.
2037# Strip out --silent because we don't want to record it for future runs.
2038# Also quote any args containing shell meta-characters.
2039# Make two passes to allow for proper duplicate-argument suppression.
2040ac_configure_args=
2041ac_configure_args0=
2042ac_configure_args1=
6bf9431b
BE
2043ac_must_keep_next=false
2044for ac_pass in 1 2
2045do
2046 for ac_arg
2047 do
2048 case $ac_arg in
2049 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2051 | -silent | --silent | --silen | --sile | --sil)
2052 continue ;;
81ecdfbb
RW
2053 *\'*)
2054 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6bf9431b
BE
2055 esac
2056 case $ac_pass in
81ecdfbb 2057 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
6bf9431b 2058 2)
81ecdfbb 2059 as_fn_append ac_configure_args1 " '$ac_arg'"
6bf9431b
BE
2060 if test $ac_must_keep_next = true; then
2061 ac_must_keep_next=false # Got value, back to normal.
2062 else
2063 case $ac_arg in
2064 *=* | --config-cache | -C | -disable-* | --disable-* \
2065 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2066 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2067 | -with-* | --with-* | -without-* | --without-* | --x)
2068 case "$ac_configure_args0 " in
2069 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2070 esac
2071 ;;
2072 -* ) ac_must_keep_next=true ;;
2073 esac
2074 fi
81ecdfbb 2075 as_fn_append ac_configure_args " '$ac_arg'"
6bf9431b
BE
2076 ;;
2077 esac
2078 done
2079done
81ecdfbb
RW
2080{ ac_configure_args0=; unset ac_configure_args0;}
2081{ ac_configure_args1=; unset ac_configure_args1;}
6bf9431b
BE
2082
2083# When interrupted or exit'd, cleanup temporary files, and complete
2084# config.log. We remove comments because anyway the quotes in there
2085# would cause problems or look ugly.
81ecdfbb
RW
2086# WARNING: Use '\'' to represent an apostrophe within the trap.
2087# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
6bf9431b
BE
2088trap 'exit_status=$?
2089 # Save into config.log some information that might help in debugging.
2090 {
2091 echo
2092
2093 cat <<\_ASBOX
2094## ---------------- ##
2095## Cache variables. ##
2096## ---------------- ##
2097_ASBOX
2098 echo
2099 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2100(
2101 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2102 eval ac_val=\$$ac_var
2103 case $ac_val in #(
2104 *${as_nl}*)
2105 case $ac_var in #(
2106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2107$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2108 esac
2109 case $ac_var in #(
2110 _ | IFS | as_nl) ;; #(
2111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2112 *) { eval $ac_var=; unset $ac_var;} ;;
2113 esac ;;
2114 esac
2115 done
6bf9431b 2116 (set) 2>&1 |
81ecdfbb
RW
2117 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2118 *${as_nl}ac_space=\ *)
6bf9431b 2119 sed -n \
81ecdfbb
RW
2120 "s/'\''/'\''\\\\'\'''\''/g;
2121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2122 ;; #(
6bf9431b 2123 *)
81ecdfbb 2124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6bf9431b 2125 ;;
81ecdfbb
RW
2126 esac |
2127 sort
2128)
6bf9431b
BE
2129 echo
2130
2131 cat <<\_ASBOX
2132## ----------------- ##
2133## Output variables. ##
2134## ----------------- ##
2135_ASBOX
2136 echo
2137 for ac_var in $ac_subst_vars
2138 do
81ecdfbb
RW
2139 eval ac_val=\$$ac_var
2140 case $ac_val in
2141 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142 esac
2143 $as_echo "$ac_var='\''$ac_val'\''"
6bf9431b
BE
2144 done | sort
2145 echo
2146
2147 if test -n "$ac_subst_files"; then
2148 cat <<\_ASBOX
81ecdfbb
RW
2149## ------------------- ##
2150## File substitutions. ##
2151## ------------------- ##
6bf9431b
BE
2152_ASBOX
2153 echo
2154 for ac_var in $ac_subst_files
2155 do
81ecdfbb
RW
2156 eval ac_val=\$$ac_var
2157 case $ac_val in
2158 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2159 esac
2160 $as_echo "$ac_var='\''$ac_val'\''"
6bf9431b
BE
2161 done | sort
2162 echo
2163 fi
2164
2165 if test -s confdefs.h; then
2166 cat <<\_ASBOX
2167## ----------- ##
2168## confdefs.h. ##
2169## ----------- ##
2170_ASBOX
2171 echo
81ecdfbb 2172 cat confdefs.h
6bf9431b
BE
2173 echo
2174 fi
2175 test "$ac_signal" != 0 &&
81ecdfbb
RW
2176 $as_echo "$as_me: caught signal $ac_signal"
2177 $as_echo "$as_me: exit $exit_status"
6bf9431b 2178 } >&5
81ecdfbb
RW
2179 rm -f core *.core core.conftest.* &&
2180 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
6bf9431b 2181 exit $exit_status
81ecdfbb 2182' 0
6bf9431b 2183for ac_signal in 1 2 13 15; do
81ecdfbb 2184 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
6bf9431b
BE
2185done
2186ac_signal=0
2187
2188# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2189rm -f -r conftest* confdefs.h
2190
2191$as_echo "/* confdefs.h */" > confdefs.h
6bf9431b
BE
2192
2193# Predefined preprocessor variables.
2194
2195cat >>confdefs.h <<_ACEOF
2196#define PACKAGE_NAME "$PACKAGE_NAME"
2197_ACEOF
2198
6bf9431b
BE
2199cat >>confdefs.h <<_ACEOF
2200#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2201_ACEOF
2202
6bf9431b
BE
2203cat >>confdefs.h <<_ACEOF
2204#define PACKAGE_VERSION "$PACKAGE_VERSION"
2205_ACEOF
2206
6bf9431b
BE
2207cat >>confdefs.h <<_ACEOF
2208#define PACKAGE_STRING "$PACKAGE_STRING"
2209_ACEOF
2210
6bf9431b
BE
2211cat >>confdefs.h <<_ACEOF
2212#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2213_ACEOF
2214
81ecdfbb
RW
2215cat >>confdefs.h <<_ACEOF
2216#define PACKAGE_URL "$PACKAGE_URL"
2217_ACEOF
2218
6bf9431b
BE
2219
2220# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2221# Prefer an explicitly selected file to automatically selected ones.
2222ac_site_file1=NONE
2223ac_site_file2=NONE
2224if test -n "$CONFIG_SITE"; then
2225 ac_site_file1=$CONFIG_SITE
2226elif test "x$prefix" != xNONE; then
2227 ac_site_file1=$prefix/share/config.site
2228 ac_site_file2=$prefix/etc/config.site
2229else
2230 ac_site_file1=$ac_default_prefix/share/config.site
2231 ac_site_file2=$ac_default_prefix/etc/config.site
2232fi
2233for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2234do
2235 test "x$ac_site_file" = xNONE && continue
6bf9431b 2236 if test -r "$ac_site_file"; then
81ecdfbb
RW
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2238$as_echo "$as_me: loading site script $ac_site_file" >&6;}
6bf9431b
BE
2239 sed 's/^/| /' "$ac_site_file" >&5
2240 . "$ac_site_file"
2241 fi
2242done
2243
2244if test -r "$cache_file"; then
2245 # Some versions of bash will fail to source /dev/null (special
2246 # files actually), so we avoid doing that.
2247 if test -f "$cache_file"; then
81ecdfbb
RW
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2249$as_echo "$as_me: loading cache $cache_file" >&6;}
6bf9431b 2250 case $cache_file in
81ecdfbb
RW
2251 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2252 *) . "./$cache_file";;
6bf9431b
BE
2253 esac
2254 fi
2255else
81ecdfbb
RW
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2257$as_echo "$as_me: creating cache $cache_file" >&6;}
6bf9431b
BE
2258 >$cache_file
2259fi
2260
2261# Check that the precious variables saved in the cache have kept the same
2262# value.
2263ac_cache_corrupted=false
81ecdfbb 2264for ac_var in $ac_precious_vars; do
6bf9431b
BE
2265 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2266 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2267 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2268 eval ac_new_val=\$ac_env_${ac_var}_value
6bf9431b
BE
2269 case $ac_old_set,$ac_new_set in
2270 set,)
81ecdfbb
RW
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2272$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
6bf9431b
BE
2273 ac_cache_corrupted=: ;;
2274 ,set)
81ecdfbb
RW
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2276$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
6bf9431b
BE
2277 ac_cache_corrupted=: ;;
2278 ,);;
2279 *)
2280 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2281 # differences in whitespace do not lead to failure.
2282 ac_old_val_w=`echo x $ac_old_val`
2283 ac_new_val_w=`echo x $ac_new_val`
2284 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2286$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2287 ac_cache_corrupted=:
2288 else
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2290$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2291 eval $ac_var=\$ac_old_val
2292 fi
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2294$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2296$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
6bf9431b
BE
2297 fi;;
2298 esac
2299 # Pass precious variables to config.status.
2300 if test "$ac_new_set" = set; then
2301 case $ac_new_val in
81ecdfbb 2302 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
6bf9431b
BE
2303 *) ac_arg=$ac_var=$ac_new_val ;;
2304 esac
2305 case " $ac_configure_args " in
2306 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2307 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
6bf9431b
BE
2308 esac
2309 fi
2310done
2311if $ac_cache_corrupted; then
81ecdfbb
RW
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2315$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2316 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
6bf9431b 2317fi
81ecdfbb
RW
2318## -------------------- ##
2319## Main body of script. ##
2320## -------------------- ##
6bf9431b 2321
0ab6f085
AM
2322ac_ext=c
2323ac_cpp='$CPP $CPPFLAGS'
2324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2326ac_compiler_gnu=$ac_cv_c_compiler_gnu
2327
6bf9431b
BE
2328
2329
6bf9431b
BE
2330
2331
2332
2333
2334ac_aux_dir=
81ecdfbb
RW
2335for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2336 for ac_t in install-sh install.sh shtool; do
2337 if test -f "$ac_dir/$ac_t"; then
2338 ac_aux_dir=$ac_dir
2339 ac_install_sh="$ac_aux_dir/$ac_t -c"
2340 break 2
2341 fi
2342 done
6bf9431b
BE
2343done
2344if test -z "$ac_aux_dir"; then
81ecdfbb 2345 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6bf9431b 2346fi
81ecdfbb
RW
2347
2348# These three variables are undocumented and unsupported,
2349# and are intended to be withdrawn in a future Autoconf release.
2350# They can cause serious problems if a builder's source tree is in a directory
2351# whose full name contains unusual characters.
2352ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2353ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2354ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2355
6bf9431b
BE
2356
2357# Make sure we can run config.sub.
81ecdfbb
RW
2358$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2359 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2360
2361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2362$as_echo_n "checking build system type... " >&6; }
2363if test "${ac_cv_build+set}" = set; then :
2364 $as_echo_n "(cached) " >&6
2365else
2366 ac_build_alias=$build_alias
2367test "x$ac_build_alias" = x &&
2368 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2369test "x$ac_build_alias" = x &&
2370 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2371ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2372 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2373
2374fi
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2376$as_echo "$ac_cv_build" >&6; }
2377case $ac_cv_build in
2378*-*-*) ;;
2379*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2380esac
6bf9431b 2381build=$ac_cv_build
81ecdfbb
RW
2382ac_save_IFS=$IFS; IFS='-'
2383set x $ac_cv_build
2384shift
2385build_cpu=$1
2386build_vendor=$2
2387shift; shift
2388# Remember, the first character of IFS is used to create $*,
2389# except with old shells:
2390build_os=$*
2391IFS=$ac_save_IFS
2392case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
0ab6f085
AM
2393
2394
81ecdfbb
RW
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2396$as_echo_n "checking host system type... " >&6; }
2397if test "${ac_cv_host+set}" = set; then :
2398 $as_echo_n "(cached) " >&6
6bf9431b 2399else
81ecdfbb
RW
2400 if test "x$host_alias" = x; then
2401 ac_cv_host=$ac_cv_build
2402else
2403 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2404 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2405fi
6bf9431b
BE
2406
2407fi
81ecdfbb
RW
2408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2409$as_echo "$ac_cv_host" >&6; }
2410case $ac_cv_host in
2411*-*-*) ;;
2412*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2413esac
6bf9431b 2414host=$ac_cv_host
81ecdfbb
RW
2415ac_save_IFS=$IFS; IFS='-'
2416set x $ac_cv_host
2417shift
2418host_cpu=$1
2419host_vendor=$2
2420shift; shift
2421# Remember, the first character of IFS is used to create $*,
2422# except with old shells:
2423host_os=$*
2424IFS=$ac_save_IFS
2425case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
0ab6f085
AM
2426
2427
81ecdfbb
RW
2428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2429$as_echo_n "checking target system type... " >&6; }
2430if test "${ac_cv_target+set}" = set; then :
2431 $as_echo_n "(cached) " >&6
2432else
2433 if test "x$target_alias" = x; then
2434 ac_cv_target=$ac_cv_host
6bf9431b 2435else
81ecdfbb
RW
2436 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2437 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2438fi
6bf9431b
BE
2439
2440fi
81ecdfbb
RW
2441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2442$as_echo "$ac_cv_target" >&6; }
2443case $ac_cv_target in
2444*-*-*) ;;
2445*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2446esac
6bf9431b 2447target=$ac_cv_target
81ecdfbb
RW
2448ac_save_IFS=$IFS; IFS='-'
2449set x $ac_cv_target
2450shift
2451target_cpu=$1
2452target_vendor=$2
2453shift; shift
2454# Remember, the first character of IFS is used to create $*,
2455# except with old shells:
2456target_os=$*
2457IFS=$ac_save_IFS
2458case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6bf9431b
BE
2459
2460
2461# The aliases save the names the user supplied, while $host etc.
2462# will get canonicalized.
2463test -n "$target_alias" &&
2464 test "$program_prefix$program_suffix$program_transform_name" = \
2465 NONENONEs,x,x, &&
2466 program_prefix=${target_alias}-
2467ac_ext=c
2468ac_cpp='$CPP $CPPFLAGS'
2469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2471ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472if test -n "$ac_tool_prefix"; then
2473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2474set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2476$as_echo_n "checking for $ac_word... " >&6; }
2477if test "${ac_cv_prog_CC+set}" = set; then :
2478 $as_echo_n "(cached) " >&6
6bf9431b
BE
2479else
2480 if test -n "$CC"; then
2481 ac_cv_prog_CC="$CC" # Let the user override the test.
2482else
2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484for as_dir in $PATH
2485do
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2492 break 2
2493 fi
2494done
81ecdfbb
RW
2495 done
2496IFS=$as_save_IFS
6bf9431b
BE
2497
2498fi
2499fi
2500CC=$ac_cv_prog_CC
2501if test -n "$CC"; then
81ecdfbb
RW
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2503$as_echo "$CC" >&6; }
6bf9431b 2504else
81ecdfbb
RW
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2506$as_echo "no" >&6; }
6bf9431b
BE
2507fi
2508
81ecdfbb 2509
6bf9431b
BE
2510fi
2511if test -z "$ac_cv_prog_CC"; then
2512 ac_ct_CC=$CC
2513 # Extract the first word of "gcc", so it can be a program name with args.
2514set dummy gcc; ac_word=$2
81ecdfbb
RW
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516$as_echo_n "checking for $ac_word... " >&6; }
2517if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2518 $as_echo_n "(cached) " >&6
6bf9431b
BE
2519else
2520 if test -n "$ac_ct_CC"; then
2521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2522else
2523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524for as_dir in $PATH
2525do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2530 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2532 break 2
2533 fi
2534done
81ecdfbb
RW
2535 done
2536IFS=$as_save_IFS
6bf9431b
BE
2537
2538fi
2539fi
2540ac_ct_CC=$ac_cv_prog_ac_ct_CC
2541if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2543$as_echo "$ac_ct_CC" >&6; }
6bf9431b 2544else
81ecdfbb
RW
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546$as_echo "no" >&6; }
6bf9431b
BE
2547fi
2548
81ecdfbb
RW
2549 if test "x$ac_ct_CC" = x; then
2550 CC=""
2551 else
2552 case $cross_compiling:$ac_tool_warned in
2553yes:)
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2556ac_tool_warned=yes ;;
2557esac
2558 CC=$ac_ct_CC
2559 fi
6bf9431b
BE
2560else
2561 CC="$ac_cv_prog_CC"
2562fi
2563
2564if test -z "$CC"; then
81ecdfbb
RW
2565 if test -n "$ac_tool_prefix"; then
2566 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6bf9431b 2567set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569$as_echo_n "checking for $ac_word... " >&6; }
2570if test "${ac_cv_prog_CC+set}" = set; then :
2571 $as_echo_n "(cached) " >&6
6bf9431b
BE
2572else
2573 if test -n "$CC"; then
2574 ac_cv_prog_CC="$CC" # Let the user override the test.
2575else
2576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577for as_dir in $PATH
2578do
2579 IFS=$as_save_IFS
2580 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2583 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2585 break 2
2586 fi
2587done
81ecdfbb
RW
2588 done
2589IFS=$as_save_IFS
6bf9431b
BE
2590
2591fi
2592fi
2593CC=$ac_cv_prog_CC
2594if test -n "$CC"; then
81ecdfbb
RW
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2596$as_echo "$CC" >&6; }
0ab6f085 2597else
81ecdfbb
RW
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599$as_echo "no" >&6; }
0ab6f085
AM
2600fi
2601
0ab6f085 2602
81ecdfbb 2603 fi
6bf9431b
BE
2604fi
2605if test -z "$CC"; then
2606 # Extract the first word of "cc", so it can be a program name with args.
2607set dummy cc; ac_word=$2
81ecdfbb
RW
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609$as_echo_n "checking for $ac_word... " >&6; }
2610if test "${ac_cv_prog_CC+set}" = set; then :
2611 $as_echo_n "(cached) " >&6
6bf9431b
BE
2612else
2613 if test -n "$CC"; then
2614 ac_cv_prog_CC="$CC" # Let the user override the test.
2615else
2616 ac_prog_rejected=no
2617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618for as_dir in $PATH
2619do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b
BE
2624 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2625 ac_prog_rejected=yes
2626 continue
2627 fi
2628 ac_cv_prog_CC="cc"
81ecdfbb 2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2630 break 2
2631 fi
2632done
81ecdfbb
RW
2633 done
2634IFS=$as_save_IFS
6bf9431b
BE
2635
2636if test $ac_prog_rejected = yes; then
2637 # We found a bogon in the path, so make sure we never use it.
2638 set dummy $ac_cv_prog_CC
2639 shift
2640 if test $# != 0; then
2641 # We chose a different compiler from the bogus one.
2642 # However, it has the same basename, so the bogon will be chosen
2643 # first if we set CC to just the basename; use the full file name.
2644 shift
2645 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2646 fi
2647fi
2648fi
2649fi
2650CC=$ac_cv_prog_CC
2651if test -n "$CC"; then
81ecdfbb
RW
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2653$as_echo "$CC" >&6; }
6bf9431b 2654else
81ecdfbb
RW
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656$as_echo "no" >&6; }
6bf9431b
BE
2657fi
2658
81ecdfbb 2659
6bf9431b
BE
2660fi
2661if test -z "$CC"; then
2662 if test -n "$ac_tool_prefix"; then
81ecdfbb 2663 for ac_prog in cl.exe
6bf9431b
BE
2664 do
2665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2666set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668$as_echo_n "checking for $ac_word... " >&6; }
2669if test "${ac_cv_prog_CC+set}" = set; then :
2670 $as_echo_n "(cached) " >&6
6bf9431b
BE
2671else
2672 if test -n "$CC"; then
2673 ac_cv_prog_CC="$CC" # Let the user override the test.
2674else
2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676for as_dir in $PATH
2677do
2678 IFS=$as_save_IFS
2679 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2682 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2684 break 2
2685 fi
2686done
81ecdfbb
RW
2687 done
2688IFS=$as_save_IFS
6bf9431b
BE
2689
2690fi
2691fi
2692CC=$ac_cv_prog_CC
2693if test -n "$CC"; then
81ecdfbb
RW
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2695$as_echo "$CC" >&6; }
6bf9431b 2696else
81ecdfbb
RW
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698$as_echo "no" >&6; }
6bf9431b
BE
2699fi
2700
81ecdfbb 2701
6bf9431b
BE
2702 test -n "$CC" && break
2703 done
2704fi
2705if test -z "$CC"; then
2706 ac_ct_CC=$CC
81ecdfbb 2707 for ac_prog in cl.exe
6bf9431b
BE
2708do
2709 # Extract the first word of "$ac_prog", so it can be a program name with args.
2710set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712$as_echo_n "checking for $ac_word... " >&6; }
2713if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2714 $as_echo_n "(cached) " >&6
6bf9431b
BE
2715else
2716 if test -n "$ac_ct_CC"; then
2717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2718else
2719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720for as_dir in $PATH
2721do
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b 2726 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
2728 break 2
2729 fi
2730done
81ecdfbb
RW
2731 done
2732IFS=$as_save_IFS
6bf9431b
BE
2733
2734fi
2735fi
2736ac_ct_CC=$ac_cv_prog_ac_ct_CC
2737if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2739$as_echo "$ac_ct_CC" >&6; }
6bf9431b 2740else
81ecdfbb
RW
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742$as_echo "no" >&6; }
6bf9431b
BE
2743fi
2744
81ecdfbb 2745
6bf9431b
BE
2746 test -n "$ac_ct_CC" && break
2747done
2748
81ecdfbb
RW
2749 if test "x$ac_ct_CC" = x; then
2750 CC=""
2751 else
2752 case $cross_compiling:$ac_tool_warned in
2753yes:)
2754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2756ac_tool_warned=yes ;;
2757esac
2758 CC=$ac_ct_CC
2759 fi
6bf9431b
BE
2760fi
2761
2762fi
2763
2764
81ecdfbb
RW
2765test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2767as_fn_error "no acceptable C compiler found in \$PATH
2768See \`config.log' for more details." "$LINENO" 5; }
6bf9431b
BE
2769
2770# Provide some information about the compiler.
81ecdfbb
RW
2771$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2772set X $ac_compile
2773ac_compiler=$2
2774for ac_option in --version -v -V -qversion; do
2775 { { ac_try="$ac_compiler $ac_option >&5"
2776case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779esac
2780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2781$as_echo "$ac_try_echo"; } >&5
2782 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6bf9431b 2783 ac_status=$?
81ecdfbb
RW
2784 if test -s conftest.err; then
2785 sed '10a\
2786... rest of stderr output deleted ...
2787 10q' conftest.err >conftest.er1
2788 cat conftest.er1 >&5
2789 rm -f conftest.er1 conftest.err
2790 fi
2791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2792 test $ac_status = 0; }
2793done
6bf9431b 2794
81ecdfbb 2795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
2796/* end confdefs.h. */
2797
2798int
2799main ()
2800{
2801
2802 ;
2803 return 0;
2804}
2805_ACEOF
2806ac_clean_files_save=$ac_clean_files
81ecdfbb 2807ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
6bf9431b
BE
2808# Try to create an executable without -o first, disregard a.out.
2809# It will help us diagnose broken compilers, and finding out an intuition
2810# of exeext.
81ecdfbb
RW
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2812$as_echo_n "checking for C compiler default output file name... " >&6; }
2813ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2814
2815# The possible output files:
2816ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2817
2818ac_rmfiles=
2819for ac_file in $ac_files
2820do
2821 case $ac_file in
2822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2823 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2824 esac
2825done
2826rm -f $ac_rmfiles
2827
2828if { { ac_try="$ac_link_default"
2829case "(($ac_try" in
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2832esac
2833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2834$as_echo "$ac_try_echo"; } >&5
2835 (eval "$ac_link_default") 2>&5
2836 ac_status=$?
2837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2838 test $ac_status = 0; }; then :
2839 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2840# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2841# in a Makefile. We should not override ac_cv_exeext if it was cached,
2842# so that the user can short-circuit this test for compilers unknown to
2843# Autoconf.
2844for ac_file in $ac_files ''
6bf9431b
BE
2845do
2846 test -f "$ac_file" || continue
2847 case $ac_file in
81ecdfbb 2848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6bf9431b
BE
2849 ;;
2850 [ab].out )
2851 # We found the default executable, but exeext='' is most
2852 # certainly right.
2853 break;;
2854 *.* )
81ecdfbb
RW
2855 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2856 then :; else
2857 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2858 fi
2859 # We set ac_cv_exeext here because the later test for it is not
2860 # safe: cross compilers may not add the suffix if given an `-o'
2861 # argument, so we may need to know it at that point already.
2862 # Even if this section looks crufty: it has the advantage of
2863 # actually working.
6bf9431b
BE
2864 break;;
2865 * )
2866 break;;
2867 esac
2868done
81ecdfbb
RW
2869test "$ac_cv_exeext" = no && ac_cv_exeext=
2870
6bf9431b 2871else
81ecdfbb
RW
2872 ac_file=''
2873fi
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2875$as_echo "$ac_file" >&6; }
2876if test -z "$ac_file"; then :
2877 $as_echo "$as_me: failed program was:" >&5
6bf9431b
BE
2878sed 's/^/| /' conftest.$ac_ext >&5
2879
81ecdfbb
RW
2880{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2882{ as_fn_set_status 77
2883as_fn_error "C compiler cannot create executables
2884See \`config.log' for more details." "$LINENO" 5; }; }
6bf9431b 2885fi
6bf9431b 2886ac_exeext=$ac_cv_exeext
6bf9431b 2887
81ecdfbb 2888# Check that the compiler produces executables we can run. If not, either
6bf9431b 2889# the compiler is broken, or we cross compile.
81ecdfbb
RW
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2891$as_echo_n "checking whether the C compiler works... " >&6; }
6bf9431b
BE
2892# If not cross compiling, check that we can run a simple program.
2893if test "$cross_compiling" != yes; then
2894 if { ac_try='./$ac_file'
81ecdfbb
RW
2895 { { case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898esac
2899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2900$as_echo "$ac_try_echo"; } >&5
2901 (eval "$ac_try") 2>&5
6bf9431b 2902 ac_status=$?
81ecdfbb
RW
2903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2904 test $ac_status = 0; }; }; then
6bf9431b
BE
2905 cross_compiling=no
2906 else
2907 if test "$cross_compiling" = maybe; then
2908 cross_compiling=yes
2909 else
81ecdfbb
RW
2910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2912as_fn_error "cannot run C compiled programs.
6bf9431b 2913If you meant to cross compile, use \`--host'.
81ecdfbb 2914See \`config.log' for more details." "$LINENO" 5; }
6bf9431b
BE
2915 fi
2916 fi
2917fi
81ecdfbb
RW
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2919$as_echo "yes" >&6; }
6bf9431b 2920
81ecdfbb 2921rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
6bf9431b 2922ac_clean_files=$ac_clean_files_save
81ecdfbb 2923# Check that the compiler produces executables we can run. If not, either
6bf9431b 2924# the compiler is broken, or we cross compile.
81ecdfbb
RW
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2926$as_echo_n "checking whether we are cross compiling... " >&6; }
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2928$as_echo "$cross_compiling" >&6; }
2929
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2931$as_echo_n "checking for suffix of executables... " >&6; }
2932if { { ac_try="$ac_link"
2933case "(($ac_try" in
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2936esac
2937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2938$as_echo "$ac_try_echo"; } >&5
2939 (eval "$ac_link") 2>&5
6bf9431b 2940 ac_status=$?
81ecdfbb
RW
2941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2942 test $ac_status = 0; }; then :
6bf9431b
BE
2943 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2944# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2945# work properly (i.e., refer to `conftest.exe'), while it won't with
2946# `rm'.
2947for ac_file in conftest.exe conftest conftest.*; do
2948 test -f "$ac_file" || continue
2949 case $ac_file in
81ecdfbb 2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6bf9431b 2951 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6bf9431b
BE
2952 break;;
2953 * ) break;;
2954 esac
2955done
2956else
81ecdfbb
RW
2957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2959as_fn_error "cannot compute suffix of executables: cannot compile and link
2960See \`config.log' for more details." "$LINENO" 5; }
6bf9431b 2961fi
6bf9431b 2962rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2964$as_echo "$ac_cv_exeext" >&6; }
6bf9431b
BE
2965
2966rm -f conftest.$ac_ext
2967EXEEXT=$ac_cv_exeext
2968ac_exeext=$EXEEXT
81ecdfbb
RW
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2970$as_echo_n "checking for suffix of object files... " >&6; }
2971if test "${ac_cv_objext+set}" = set; then :
2972 $as_echo_n "(cached) " >&6
6bf9431b 2973else
81ecdfbb 2974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
2975/* end confdefs.h. */
2976
2977int
2978main ()
2979{
2980
2981 ;
2982 return 0;
2983}
2984_ACEOF
2985rm -f conftest.o conftest.obj
81ecdfbb
RW
2986if { { ac_try="$ac_compile"
2987case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990esac
2991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2992$as_echo "$ac_try_echo"; } >&5
2993 (eval "$ac_compile") 2>&5
2994 ac_status=$?
2995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2996 test $ac_status = 0; }; then :
2997 for ac_file in conftest.o conftest.obj conftest.*; do
2998 test -f "$ac_file" || continue;
6bf9431b 2999 case $ac_file in
81ecdfbb 3000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6bf9431b
BE
3001 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3002 break;;
3003 esac
3004done
3005else
81ecdfbb 3006 $as_echo "$as_me: failed program was:" >&5
6bf9431b
BE
3007sed 's/^/| /' conftest.$ac_ext >&5
3008
81ecdfbb
RW
3009{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3011as_fn_error "cannot compute suffix of object files: cannot compile
3012See \`config.log' for more details." "$LINENO" 5; }
6bf9431b 3013fi
6bf9431b
BE
3014rm -f conftest.$ac_cv_objext conftest.$ac_ext
3015fi
81ecdfbb
RW
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3017$as_echo "$ac_cv_objext" >&6; }
6bf9431b
BE
3018OBJEXT=$ac_cv_objext
3019ac_objext=$OBJEXT
81ecdfbb
RW
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3021$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3022if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3023 $as_echo_n "(cached) " >&6
6bf9431b 3024else
81ecdfbb 3025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
3026/* end confdefs.h. */
3027
3028int
3029main ()
3030{
3031#ifndef __GNUC__
3032 choke me
3033#endif
3034
3035 ;
3036 return 0;
3037}
3038_ACEOF
81ecdfbb 3039if ac_fn_c_try_compile "$LINENO"; then :
6bf9431b
BE
3040 ac_compiler_gnu=yes
3041else
81ecdfbb 3042 ac_compiler_gnu=no
6bf9431b 3043fi
81ecdfbb 3044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b
BE
3045ac_cv_c_compiler_gnu=$ac_compiler_gnu
3046
3047fi
81ecdfbb
RW
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3049$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3050if test $ac_compiler_gnu = yes; then
3051 GCC=yes
3052else
3053 GCC=
3054fi
6bf9431b
BE
3055ac_test_CFLAGS=${CFLAGS+set}
3056ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3058$as_echo_n "checking whether $CC accepts -g... " >&6; }
3059if test "${ac_cv_prog_cc_g+set}" = set; then :
3060 $as_echo_n "(cached) " >&6
3061else
3062 ac_save_c_werror_flag=$ac_c_werror_flag
3063 ac_c_werror_flag=yes
3064 ac_cv_prog_cc_g=no
3065 CFLAGS="-g"
3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
3067/* end confdefs.h. */
3068
3069int
3070main ()
3071{
3072
3073 ;
3074 return 0;
3075}
3076_ACEOF
81ecdfbb 3077if ac_fn_c_try_compile "$LINENO"; then :
6bf9431b
BE
3078 ac_cv_prog_cc_g=yes
3079else
81ecdfbb
RW
3080 CFLAGS=""
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082/* end confdefs.h. */
3083
3084int
3085main ()
3086{
3087
3088 ;
3089 return 0;
3090}
3091_ACEOF
3092if ac_fn_c_try_compile "$LINENO"; then :
3093
3094else
3095 ac_c_werror_flag=$ac_save_c_werror_flag
3096 CFLAGS="-g"
3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098/* end confdefs.h. */
3099
3100int
3101main ()
3102{
6bf9431b 3103
81ecdfbb
RW
3104 ;
3105 return 0;
3106}
3107_ACEOF
3108if ac_fn_c_try_compile "$LINENO"; then :
3109 ac_cv_prog_cc_g=yes
3110fi
3111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b 3112fi
81ecdfbb 3113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b 3114fi
81ecdfbb
RW
3115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3116 ac_c_werror_flag=$ac_save_c_werror_flag
3117fi
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3119$as_echo "$ac_cv_prog_cc_g" >&6; }
6bf9431b
BE
3120if test "$ac_test_CFLAGS" = set; then
3121 CFLAGS=$ac_save_CFLAGS
3122elif test $ac_cv_prog_cc_g = yes; then
3123 if test "$GCC" = yes; then
3124 CFLAGS="-g -O2"
3125 else
3126 CFLAGS="-g"
3127 fi
3128else
3129 if test "$GCC" = yes; then
3130 CFLAGS="-O2"
3131 else
3132 CFLAGS=
3133 fi
3134fi
81ecdfbb
RW
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3136$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3137if test "${ac_cv_prog_cc_c89+set}" = set; then :
3138 $as_echo_n "(cached) " >&6
6bf9431b 3139else
81ecdfbb 3140 ac_cv_prog_cc_c89=no
6bf9431b 3141ac_save_CC=$CC
81ecdfbb 3142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
3143/* end confdefs.h. */
3144#include <stdarg.h>
3145#include <stdio.h>
3146#include <sys/types.h>
3147#include <sys/stat.h>
3148/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3149struct buf { int x; };
3150FILE * (*rcsopen) (struct buf *, struct stat *, int);
3151static char *e (p, i)
3152 char **p;
3153 int i;
3154{
3155 return p[i];
3156}
3157static char *f (char * (*g) (char **, int), char **p, ...)
3158{
3159 char *s;
3160 va_list v;
3161 va_start (v,p);
3162 s = g (p, va_arg (v,int));
3163 va_end (v);
3164 return s;
3165}
3166
3167/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3168 function prototypes and stuff, but not '\xHH' hex character constants.
3169 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3170 as 'x'. The following induces an error, until -std is added to get
6bf9431b
BE
3171 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3172 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3173 that's true only with -std. */
6bf9431b
BE
3174int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3175
81ecdfbb
RW
3176/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3177 inside strings and character constants. */
3178#define FOO(x) 'x'
3179int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3180
6bf9431b
BE
3181int test (int i, double x);
3182struct s1 {int (*f) (int a);};
3183struct s2 {int (*f) (double a);};
3184int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3185int argc;
3186char **argv;
3187int
3188main ()
3189{
3190return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3191 ;
3192 return 0;
3193}
3194_ACEOF
81ecdfbb
RW
3195for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3196 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6bf9431b
BE
3197do
3198 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3199 if ac_fn_c_try_compile "$LINENO"; then :
3200 ac_cv_prog_cc_c89=$ac_arg
6bf9431b 3201fi
81ecdfbb
RW
3202rm -f core conftest.err conftest.$ac_objext
3203 test "x$ac_cv_prog_cc_c89" != "xno" && break
6bf9431b 3204done
81ecdfbb 3205rm -f conftest.$ac_ext
6bf9431b
BE
3206CC=$ac_save_CC
3207
3208fi
81ecdfbb
RW
3209# AC_CACHE_VAL
3210case "x$ac_cv_prog_cc_c89" in
3211 x)
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3213$as_echo "none needed" >&6; } ;;
3214 xno)
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3216$as_echo "unsupported" >&6; } ;;
6bf9431b 3217 *)
81ecdfbb
RW
3218 CC="$CC $ac_cv_prog_cc_c89"
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3220$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6bf9431b 3221esac
81ecdfbb 3222if test "x$ac_cv_prog_cc_c89" != xno; then :
6bf9431b 3223
0ab6f085
AM
3224fi
3225
6bf9431b
BE
3226ac_ext=c
3227ac_cpp='$CPP $CPPFLAGS'
3228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231
3232
81ecdfbb
RW
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3234$as_echo_n "checking for library containing strerror... " >&6; }
3235if test "${ac_cv_search_strerror+set}" = set; then :
3236 $as_echo_n "(cached) " >&6
6bf9431b
BE
3237else
3238 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b
BE
3240/* end confdefs.h. */
3241
81ecdfbb
RW
3242/* Override any GCC internal prototype to avoid an error.
3243 Use char because int might match the return type of a GCC
3244 builtin and then its argument prototype would still apply. */
6bf9431b
BE
3245#ifdef __cplusplus
3246extern "C"
3247#endif
6bf9431b
BE
3248char strerror ();
3249int
3250main ()
3251{
81ecdfbb 3252return strerror ();
6bf9431b
BE
3253 ;
3254 return 0;
3255}
3256_ACEOF
81ecdfbb
RW
3257for ac_lib in '' cposix; do
3258 if test -z "$ac_lib"; then
3259 ac_res="none required"
3260 else
3261 ac_res=-l$ac_lib
0ab6f085 3262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3263 fi
3264 if ac_fn_c_try_link "$LINENO"; then :
3265 ac_cv_search_strerror=$ac_res
3266fi
3267rm -f core conftest.err conftest.$ac_objext \
3268 conftest$ac_exeext
3269 if test "${ac_cv_search_strerror+set}" = set; then :
3270 break
3271fi
3272done
3273if test "${ac_cv_search_strerror+set}" = set; then :
6bf9431b 3274
1b9750d6 3275else
81ecdfbb 3276 ac_cv_search_strerror=no
6bf9431b 3277fi
81ecdfbb 3278rm conftest.$ac_ext
6bf9431b
BE
3279LIBS=$ac_func_search_save_LIBS
3280fi
81ecdfbb
RW
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3282$as_echo "$ac_cv_search_strerror" >&6; }
3283ac_res=$ac_cv_search_strerror
3284if test "$ac_res" != no; then :
3285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6bf9431b
BE
3286
3287fi
3288
3289
3290BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
81ecdfbb
RW
3291am__api_version='1.11'
3292
6bf9431b
BE
3293# Find a good install program. We prefer a C program (faster),
3294# so one script is as good as another. But avoid the broken or
3295# incompatible versions:
3296# SysV /etc/install, /usr/sbin/install
3297# SunOS /usr/etc/install
3298# IRIX /sbin/install
3299# AIX /bin/install
3300# AmigaOS /C/install, which installs bootblocks on floppy discs
3301# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3302# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3303# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3304# OS/2's system install, which has a completely different semantic
3305# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3306# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3308$as_echo_n "checking for a BSD-compatible install... " >&6; }
6bf9431b 3309if test -z "$INSTALL"; then
81ecdfbb
RW
3310if test "${ac_cv_path_install+set}" = set; then :
3311 $as_echo_n "(cached) " >&6
6bf9431b
BE
3312else
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314for as_dir in $PATH
3315do
3316 IFS=$as_save_IFS
3317 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3318 # Account for people who put trailing slashes in PATH elements.
3319case $as_dir/ in #((
3320 ./ | .// | /[cC]/* | \
6bf9431b 3321 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3322 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6bf9431b
BE
3323 /usr/ucb/* ) ;;
3324 *)
3325 # OSF1 and SCO ODT 3.0 have their own names for install.
3326 # Don't use installbsd from OSF since it installs stuff as root
3327 # by default.
3328 for ac_prog in ginstall scoinst install; do
3329 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3330 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6bf9431b
BE
3331 if test $ac_prog = install &&
3332 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3333 # AIX install. It has an incompatible calling convention.
3334 :
3335 elif test $ac_prog = install &&
3336 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3337 # program-specific install script used by HP pwplus--don't use.
3338 :
252b5132 3339 else
58c85be7
RW
3340 rm -rf conftest.one conftest.two conftest.dir
3341 echo one > conftest.one
3342 echo two > conftest.two
3343 mkdir conftest.dir
3344 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3345 test -s conftest.one && test -s conftest.two &&
3346 test -s conftest.dir/conftest.one &&
3347 test -s conftest.dir/conftest.two
3348 then
3349 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3350 break 3
3351 fi
252b5132
RH
3352 fi
3353 fi
3354 done
6bf9431b
BE
3355 done
3356 ;;
3357esac
81ecdfbb
RW
3358
3359 done
3360IFS=$as_save_IFS
6bf9431b 3361
58c85be7 3362rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3363
3364fi
3365 if test "${ac_cv_path_install+set}" = set; then
6bf9431b 3366 INSTALL=$ac_cv_path_install
252b5132 3367 else
58c85be7
RW
3368 # As a last resort, use the slow shell script. Don't cache a
3369 # value for INSTALL within a source directory, because that will
252b5132 3370 # break other packages using the cache if that directory is
58c85be7 3371 # removed, or if the value is a relative name.
6bf9431b 3372 INSTALL=$ac_install_sh
252b5132
RH
3373 fi
3374fi
81ecdfbb
RW
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3376$as_echo "$INSTALL" >&6; }
252b5132
RH
3377
3378# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3379# It thinks the first close brace ends the variable substitution.
3380test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3381
6bf9431b 3382test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3383
3384test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3385
81ecdfbb
RW
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3387$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3388# Just in case
3389sleep 1
6bf9431b 3390echo timestamp > conftest.file
81ecdfbb
RW
3391# Reject unsafe characters in $srcdir or the absolute working directory
3392# name. Accept space and tab only in the latter.
3393am_lf='
3394'
3395case `pwd` in
3396 *[\\\"\#\$\&\'\`$am_lf]*)
3397 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3398esac
3399case $srcdir in
3400 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3401 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3402esac
3403
252b5132
RH
3404# Do `set' in a subshell so we don't clobber the current shell's
3405# arguments. Must try -L first in case configure is actually a
3406# symlink; some systems play weird games with the mod time of symlinks
3407# (eg FreeBSD returns the mod time of the symlink's containing
3408# directory).
3409if (
81ecdfbb 3410 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3411 if test "$*" = "X"; then
3412 # -L didn't work.
81ecdfbb 3413 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3414 fi
6bf9431b
BE
3415 rm -f conftest.file
3416 if test "$*" != "X $srcdir/configure conftest.file" \
3417 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3418
3419 # If neither matched, then we have a broken ls. This can happen
3420 # if, for instance, CONFIG_SHELL is bash and it inherits a
3421 # broken ls alias from the environment. This has actually
3422 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3423 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3424alias in your environment" "$LINENO" 5
252b5132
RH
3425 fi
3426
6bf9431b 3427 test "$2" = conftest.file
252b5132
RH
3428 )
3429then
3430 # Ok.
3431 :
3432else
81ecdfbb
RW
3433 as_fn_error "newly created file is older than distributed files!
3434Check your system clock" "$LINENO" 5
252b5132 3435fi
81ecdfbb
RW
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3437$as_echo "yes" >&6; }
252b5132 3438test "$program_prefix" != NONE &&
81ecdfbb 3439 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3440# Use a double $ so make ignores it.
3441test "$program_suffix" != NONE &&
81ecdfbb
RW
3442 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3443# Double any \ or $.
6bf9431b 3444# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3445ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3446program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6bf9431b
BE
3447
3448# expand $ac_aux_dir to an absolute path
3449am_aux_dir=`cd $ac_aux_dir && pwd`
3450
81ecdfbb
RW
3451if test x"${MISSING+set}" != xset; then
3452 case $am_aux_dir in
3453 *\ * | *\ *)
3454 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3455 *)
3456 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3457 esac
3458fi
6bf9431b
BE
3459# Use eval to expand $SHELL
3460if eval "$MISSING --run true"; then
3461 am_missing_run="$MISSING --run "
3462else
3463 am_missing_run=
81ecdfbb
RW
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3465$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6bf9431b 3466fi
252b5132 3467
81ecdfbb
RW
3468if test x"${install_sh}" != xset; then
3469 case $am_aux_dir in
3470 *\ * | *\ *)
3471 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3472 *)
3473 install_sh="\${SHELL} $am_aux_dir/install-sh"
3474 esac
3475fi
3476
3477# Installed binaries are usually stripped using `strip' when the user
3478# run `make install-strip'. However `strip' might not be the right
3479# tool to use in cross-compilation environments, therefore Automake
3480# will honor the `STRIP' environment variable to overrule this program.
3481if test "$cross_compiling" != no; then
3482 if test -n "$ac_tool_prefix"; then
3483 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3484set dummy ${ac_tool_prefix}strip; ac_word=$2
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486$as_echo_n "checking for $ac_word... " >&6; }
3487if test "${ac_cv_prog_STRIP+set}" = set; then :
3488 $as_echo_n "(cached) " >&6
6bf9431b 3489else
81ecdfbb
RW
3490 if test -n "$STRIP"; then
3491 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6bf9431b
BE
3492else
3493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494for as_dir in $PATH
3495do
3496 IFS=$as_save_IFS
3497 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3500 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bf9431b
BE
3502 break 2
3503 fi
3504done
81ecdfbb
RW
3505 done
3506IFS=$as_save_IFS
6bf9431b
BE
3507
3508fi
3509fi
81ecdfbb
RW
3510STRIP=$ac_cv_prog_STRIP
3511if test -n "$STRIP"; then
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3513$as_echo "$STRIP" >&6; }
6bf9431b 3514else
81ecdfbb
RW
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516$as_echo "no" >&6; }
6bf9431b
BE
3517fi
3518
252b5132 3519
81ecdfbb
RW
3520fi
3521if test -z "$ac_cv_prog_STRIP"; then
3522 ac_ct_STRIP=$STRIP
3523 # Extract the first word of "strip", so it can be a program name with args.
3524set dummy strip; ac_word=$2
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526$as_echo_n "checking for $ac_word... " >&6; }
3527if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3528 $as_echo_n "(cached) " >&6
252b5132 3529else
81ecdfbb
RW
3530 if test -n "$ac_ct_STRIP"; then
3531 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
0ab6f085 3532else
81ecdfbb
RW
3533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534for as_dir in $PATH
3535do
3536 IFS=$as_save_IFS
3537 test -z "$as_dir" && as_dir=.
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3540 ac_cv_prog_ac_ct_STRIP="strip"
3541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542 break 2
3543 fi
3544done
3545 done
3546IFS=$as_save_IFS
3547
0ab6f085 3548fi
252b5132 3549fi
81ecdfbb
RW
3550ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3551if test -n "$ac_ct_STRIP"; then
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3553$as_echo "$ac_ct_STRIP" >&6; }
252b5132 3554else
81ecdfbb
RW
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556$as_echo "no" >&6; }
252b5132
RH
3557fi
3558
81ecdfbb
RW
3559 if test "x$ac_ct_STRIP" = x; then
3560 STRIP=":"
3561 else
3562 case $cross_compiling:$ac_tool_warned in
3563yes:)
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3566ac_tool_warned=yes ;;
3567esac
3568 STRIP=$ac_ct_STRIP
3569 fi
3570else
3571 STRIP="$ac_cv_prog_STRIP"
3572fi
3573
3574fi
3575INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3576
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3578$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3579if test -z "$MKDIR_P"; then
3580 if test "${ac_cv_path_mkdir+set}" = set; then :
3581 $as_echo_n "(cached) " >&6
3582else
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3585do
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_prog in mkdir gmkdir; do
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3591 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3592 'mkdir (GNU coreutils) '* | \
3593 'mkdir (coreutils) '* | \
3594 'mkdir (fileutils) '4.1*)
3595 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3596 break 3;;
3597 esac
3598 done
3599 done
3600 done
3601IFS=$as_save_IFS
3602
3603fi
3604
3605 if test "${ac_cv_path_mkdir+set}" = set; then
3606 MKDIR_P="$ac_cv_path_mkdir -p"
3607 else
3608 # As a last resort, use the slow shell script. Don't cache a
3609 # value for MKDIR_P within a source directory, because that will
3610 # break other packages using the cache if that directory is
3611 # removed, or if the value is a relative name.
3612 test -d ./--version && rmdir ./--version
3613 MKDIR_P="$ac_install_sh -d"
3614 fi
3615fi
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3617$as_echo "$MKDIR_P" >&6; }
3618
3619mkdir_p="$MKDIR_P"
3620case $mkdir_p in
3621 [\\/$]* | ?:[\\/]*) ;;
3622 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3623esac
3624
3625for ac_prog in gawk mawk nawk awk
3626do
3627 # Extract the first word of "$ac_prog", so it can be a program name with args.
3628set dummy $ac_prog; ac_word=$2
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630$as_echo_n "checking for $ac_word... " >&6; }
3631if test "${ac_cv_prog_AWK+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3633else
3634 if test -n "$AWK"; then
3635 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3636else
3637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638for as_dir in $PATH
3639do
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644 ac_cv_prog_AWK="$ac_prog"
3645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 break 2
3647 fi
3648done
3649 done
3650IFS=$as_save_IFS
3651
3652fi
3653fi
3654AWK=$ac_cv_prog_AWK
3655if test -n "$AWK"; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3657$as_echo "$AWK" >&6; }
3658else
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660$as_echo "no" >&6; }
3661fi
3662
3663
3664 test -n "$AWK" && break
3665done
3666
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3668$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3669set x ${MAKE-make}
3670ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3671if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3672 $as_echo_n "(cached) " >&6
3673else
3674 cat >conftest.make <<\_ACEOF
3675SHELL = /bin/sh
3676all:
3677 @echo '@@@%%%=$(MAKE)=@@@%%%'
3678_ACEOF
3679# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3680case `${MAKE-make} -f conftest.make 2>/dev/null` in
3681 *@@@%%%=?*=@@@%%%*)
3682 eval ac_cv_prog_make_${ac_make}_set=yes;;
3683 *)
3684 eval ac_cv_prog_make_${ac_make}_set=no;;
3685esac
3686rm -f conftest.make
3687fi
3688if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3690$as_echo "yes" >&6; }
3691 SET_MAKE=
3692else
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694$as_echo "no" >&6; }
3695 SET_MAKE="MAKE=${MAKE-make}"
3696fi
3697
3698rm -rf .tst 2>/dev/null
6bf9431b
BE
3699mkdir .tst 2>/dev/null
3700if test -d .tst; then
3701 am__leading_dot=.
3702else
3703 am__leading_dot=_
3704fi
3705rmdir .tst 2>/dev/null
3706
3707DEPDIR="${am__leading_dot}deps"
3708
81ecdfbb 3709ac_config_commands="$ac_config_commands depfiles"
6bf9431b
BE
3710
3711
3712am_make=${MAKE-make}
3713cat > confinc << 'END'
3714am__doit:
81ecdfbb 3715 @echo this is the am__doit target
6bf9431b
BE
3716.PHONY: am__doit
3717END
3718# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3720$as_echo_n "checking for style of include used by $am_make... " >&6; }
6bf9431b
BE
3721am__include="#"
3722am__quote=
3723_am_result=none
3724# First try GNU make style include.
3725echo "include confinc" > confmf
81ecdfbb
RW
3726# Ignore all kinds of additional output from `make'.
3727case `$am_make -s -f confmf 2> /dev/null` in #(
3728*the\ am__doit\ target*)
3729 am__include=include
3730 am__quote=
3731 _am_result=GNU
3732 ;;
3733esac
6bf9431b
BE
3734# Now try BSD make style include.
3735if test "$am__include" = "#"; then
3736 echo '.include "confinc"' > confmf
81ecdfbb
RW
3737 case `$am_make -s -f confmf 2> /dev/null` in #(
3738 *the\ am__doit\ target*)
3739 am__include=.include
3740 am__quote="\""
3741 _am_result=BSD
3742 ;;
3743 esac
6bf9431b
BE
3744fi
3745
252b5132 3746
81ecdfbb
RW
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3748$as_echo "$_am_result" >&6; }
6bf9431b 3749rm -f confinc confmf
252b5132 3750
81ecdfbb
RW
3751# Check whether --enable-dependency-tracking was given.
3752if test "${enable_dependency_tracking+set}" = set; then :
3753 enableval=$enable_dependency_tracking;
3754fi
252b5132 3755
6bf9431b
BE
3756if test "x$enable_dependency_tracking" != xno; then
3757 am_depcomp="$ac_aux_dir/depcomp"
3758 AMDEPBACKSLASH='\'
252b5132 3759fi
81ecdfbb 3760 if test "x$enable_dependency_tracking" != xno; then
6bf9431b
BE
3761 AMDEP_TRUE=
3762 AMDEP_FALSE='#'
3763else
3764 AMDEP_TRUE='#'
3765 AMDEP_FALSE=
3766fi
3767
3768
81ecdfbb
RW
3769if test "`cd $srcdir && pwd`" != "`pwd`"; then
3770 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3771 # is not polluted with repeated "-I."
3772 am__isrc=' -I$(srcdir)'
3773 # test to see if srcdir already configured
3774 if test -f $srcdir/config.status; then
3775 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3776 fi
6bf9431b
BE
3777fi
3778
3779# test whether we have cygpath
3780if test -z "$CYGPATH_W"; then
3781 if (cygpath --version) >/dev/null 2>/dev/null; then
3782 CYGPATH_W='cygpath -w'
3783 else
3784 CYGPATH_W=echo
3785 fi
3786fi
3787
3788
3789# Define the identity of the package.
3790 PACKAGE=gprof
3791 VERSION=${BFD_VERSION}
3792
3793
3794cat >>confdefs.h <<_ACEOF
252b5132 3795#define PACKAGE "$PACKAGE"
6bf9431b
BE
3796_ACEOF
3797
252b5132 3798
6bf9431b 3799cat >>confdefs.h <<_ACEOF
252b5132 3800#define VERSION "$VERSION"
6bf9431b
BE
3801_ACEOF
3802
3803# Some tools Automake needs.
3804
3805ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3806
3807
3808AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3809
3810
3811AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3812
3813
3814AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3815
3816
3817MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3818
6bf9431b
BE
3819# We need awk for the "check" target. The system "awk" is bad on
3820# some platforms.
df76639a
AM
3821# Always define AMTAR for backward compatibility.
3822
3823AMTAR=${AMTAR-"${am_missing_run}tar"}
3824
3825am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3826
3827
6bf9431b
BE
3828
3829
3830depcc="$CC" am_compiler_list=
3831
81ecdfbb
RW
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3833$as_echo_n "checking dependency style of $depcc... " >&6; }
3834if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3835 $as_echo_n "(cached) " >&6
6bf9431b
BE
3836else
3837 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3838 # We make a subdir and do the tests there. Otherwise we can end up
3839 # making bogus files that we don't know about and never remove. For
3840 # instance it was reported that on HP-UX the gcc test will end up
3841 # making a dummy file named `D' -- because `-MD' means `put the output
3842 # in D'.
3843 mkdir conftest.dir
3844 # Copy depcomp to subdir because otherwise we won't find it if we're
3845 # using a relative directory.
3846 cp "$am_depcomp" conftest.dir
3847 cd conftest.dir
3848 # We will build objects and dependencies in a subdirectory because
3849 # it helps to detect inapplicable dependency modes. For instance
3850 # both Tru64's cc and ICC support -MD to output dependencies as a
3851 # side effect of compilation, but ICC will put the dependencies in
3852 # the current directory while Tru64 will put them in the object
3853 # directory.
3854 mkdir sub
3855
3856 am_cv_CC_dependencies_compiler_type=none
3857 if test "$am_compiler_list" = ""; then
3858 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3859 fi
81ecdfbb
RW
3860 am__universal=false
3861 case " $depcc " in #(
3862 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3863 esac
3864
6bf9431b
BE
3865 for depmode in $am_compiler_list; do
3866 # Setup a source with many dependencies, because some compilers
3867 # like to wrap large dependency lists on column 80 (with \), and
3868 # we should not choose a depcomp mode which is confused by this.
3869 #
3870 # We need to recreate these files for each test, as the compiler may
3871 # overwrite some of them when testing with obscure command lines.
3872 # This happens at least with the AIX C compiler.
3873 : > sub/conftest.c
3874 for i in 1 2 3 4 5 6; do
3875 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3876 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3877 # Solaris 8's {/usr,}/bin/sh.
3878 touch sub/conftst$i.h
3879 done
3880 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3881
81ecdfbb
RW
3882 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3883 # mode. It turns out that the SunPro C++ compiler does not properly
3884 # handle `-M -o', and we need to detect this. Also, some Intel
3885 # versions had trouble with output in subdirs
3886 am__obj=sub/conftest.${OBJEXT-o}
3887 am__minus_obj="-o $am__obj"
6bf9431b 3888 case $depmode in
81ecdfbb
RW
3889 gcc)
3890 # This depmode causes a compiler race in universal mode.
3891 test "$am__universal" = false || continue
3892 ;;
6bf9431b
BE
3893 nosideeffect)
3894 # after this tag, mechanisms are not by side-effect, so they'll
3895 # only be used when explicitly requested
3896 if test "x$enable_dependency_tracking" = xyes; then
3897 continue
3898 else
3899 break
3900 fi
3901 ;;
81ecdfbb
RW
3902 msvisualcpp | msvcmsys)
3903 # This compiler won't grok `-c -o', but also, the minuso test has
3904 # not run yet. These depmodes are late enough in the game, and
3905 # so weak that their functioning should not be impacted.
3906 am__obj=conftest.${OBJEXT-o}
3907 am__minus_obj=
3908 ;;
6bf9431b
BE
3909 none) break ;;
3910 esac
6bf9431b 3911 if depmode=$depmode \
81ecdfbb 3912 source=sub/conftest.c object=$am__obj \
6bf9431b 3913 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 3914 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6bf9431b 3915 >/dev/null 2>conftest.err &&
81ecdfbb 3916 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6bf9431b 3917 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 3918 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6bf9431b
BE
3919 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3920 # icc doesn't choke on unknown options, it will just issue warnings
3921 # or remarks (even with -Werror). So we grep stderr for any message
3922 # that says an option was ignored or not supported.
3923 # When given -MP, icc 7.0 and 7.1 complain thusly:
3924 # icc: Command line warning: ignoring option '-M'; no argument required
3925 # The diagnosis changed in icc 8.0:
3926 # icc: Command line remark: option '-MP' not supported
3927 if (grep 'ignoring option' conftest.err ||
3928 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3929 am_cv_CC_dependencies_compiler_type=$depmode
3930 break
3931 fi
3932 fi
3933 done
3934
3935 cd ..
3936 rm -rf conftest.dir
252b5132 3937else
6bf9431b 3938 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3939fi
3940
252b5132 3941fi
81ecdfbb
RW
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3943$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6bf9431b
BE
3944CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3945
81ecdfbb 3946 if
6bf9431b
BE
3947 test "x$enable_dependency_tracking" != xno \
3948 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3949 am__fastdepCC_TRUE=
3950 am__fastdepCC_FALSE='#'
252b5132 3951else
6bf9431b
BE
3952 am__fastdepCC_TRUE='#'
3953 am__fastdepCC_FALSE=
252b5132
RH
3954fi
3955
3956
3957
6bf9431b 3958
81ecdfbb 3959ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
d7040cdb
SE
3960
3961
ce2cded5
L
3962ac_ext=c
3963ac_cpp='$CPP $CPPFLAGS'
3964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3966ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967if test -n "$ac_tool_prefix"; then
3968 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3969set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971$as_echo_n "checking for $ac_word... " >&6; }
3972if test "${ac_cv_prog_CC+set}" = set; then :
3973 $as_echo_n "(cached) " >&6
1b9750d6 3974else
ce2cded5
L
3975 if test -n "$CC"; then
3976 ac_cv_prog_CC="$CC" # Let the user override the test.
0ab6f085 3977else
ce2cded5
L
3978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979for as_dir in $PATH
3980do
3981 IFS=$as_save_IFS
3982 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3985 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
3987 break 2
3988 fi
3989done
81ecdfbb
RW
3990 done
3991IFS=$as_save_IFS
0ab6f085 3992
ce2cded5
L
3993fi
3994fi
3995CC=$ac_cv_prog_CC
3996if test -n "$CC"; then
81ecdfbb
RW
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3998$as_echo "$CC" >&6; }
0ab6f085 3999else
81ecdfbb
RW
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001$as_echo "no" >&6; }
ce2cded5 4002fi
d7040cdb 4003
81ecdfbb 4004
ce2cded5
L
4005fi
4006if test -z "$ac_cv_prog_CC"; then
4007 ac_ct_CC=$CC
4008 # Extract the first word of "gcc", so it can be a program name with args.
4009set dummy gcc; ac_word=$2
81ecdfbb
RW
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011$as_echo_n "checking for $ac_word... " >&6; }
4012if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4013 $as_echo_n "(cached) " >&6
1b9750d6 4014else
ce2cded5
L
4015 if test -n "$ac_ct_CC"; then
4016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4017else
d7040cdb 4018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
0ab6f085 4019for as_dir in $PATH
d7040cdb
SE
4020do
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4025 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 4027 break 2
0ab6f085 4028 fi
ce2cded5 4029done
81ecdfbb
RW
4030 done
4031IFS=$as_save_IFS
d7040cdb 4032
ce2cded5
L
4033fi
4034fi
4035ac_ct_CC=$ac_cv_prog_ac_ct_CC
4036if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4038$as_echo "$ac_ct_CC" >&6; }
ce2cded5 4039else
81ecdfbb
RW
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041$as_echo "no" >&6; }
1b9750d6 4042fi
d7040cdb 4043
81ecdfbb
RW
4044 if test "x$ac_ct_CC" = x; then
4045 CC=""
4046 else
4047 case $cross_compiling:$ac_tool_warned in
4048yes:)
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4051ac_tool_warned=yes ;;
4052esac
4053 CC=$ac_ct_CC
4054 fi
ce2cded5
L
4055else
4056 CC="$ac_cv_prog_CC"
4057fi
d7040cdb 4058
ce2cded5 4059if test -z "$CC"; then
81ecdfbb
RW
4060 if test -n "$ac_tool_prefix"; then
4061 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 4062set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4064$as_echo_n "checking for $ac_word... " >&6; }
4065if test "${ac_cv_prog_CC+set}" = set; then :
4066 $as_echo_n "(cached) " >&6
d7040cdb 4067else
ce2cded5
L
4068 if test -n "$CC"; then
4069 ac_cv_prog_CC="$CC" # Let the user override the test.
0ab6f085 4070else
ce2cded5
L
4071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072for as_dir in $PATH
4073do
4074 IFS=$as_save_IFS
4075 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4078 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4080 break 2
4081 fi
4082done
81ecdfbb
RW
4083 done
4084IFS=$as_save_IFS
d7040cdb 4085
252b5132
RH
4086fi
4087fi
ce2cded5
L
4088CC=$ac_cv_prog_CC
4089if test -n "$CC"; then
81ecdfbb
RW
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4091$as_echo "$CC" >&6; }
ce2cded5 4092else
81ecdfbb
RW
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094$as_echo "no" >&6; }
d7040cdb 4095fi
6be7c12c 4096
ce2cded5 4097
81ecdfbb 4098 fi
ce2cded5
L
4099fi
4100if test -z "$CC"; then
4101 # Extract the first word of "cc", so it can be a program name with args.
4102set dummy cc; ac_word=$2
81ecdfbb
RW
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104$as_echo_n "checking for $ac_word... " >&6; }
4105if test "${ac_cv_prog_CC+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
ce2cded5
L
4107else
4108 if test -n "$CC"; then
4109 ac_cv_prog_CC="$CC" # Let the user override the test.
4110else
4111 ac_prog_rejected=no
4112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113for as_dir in $PATH
4114do
4115 IFS=$as_save_IFS
4116 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
4119 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4120 ac_prog_rejected=yes
4121 continue
4122 fi
4123 ac_cv_prog_CC="cc"
81ecdfbb 4124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4125 break 2
4126 fi
4127done
81ecdfbb
RW
4128 done
4129IFS=$as_save_IFS
ce2cded5
L
4130
4131if test $ac_prog_rejected = yes; then
4132 # We found a bogon in the path, so make sure we never use it.
4133 set dummy $ac_cv_prog_CC
4134 shift
4135 if test $# != 0; then
4136 # We chose a different compiler from the bogus one.
4137 # However, it has the same basename, so the bogon will be chosen
4138 # first if we set CC to just the basename; use the full file name.
4139 shift
4140 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4141 fi
4142fi
4143fi
4144fi
4145CC=$ac_cv_prog_CC
4146if test -n "$CC"; then
81ecdfbb
RW
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4148$as_echo "$CC" >&6; }
ce2cded5 4149else
81ecdfbb
RW
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151$as_echo "no" >&6; }
ce2cded5
L
4152fi
4153
81ecdfbb 4154
ce2cded5
L
4155fi
4156if test -z "$CC"; then
4157 if test -n "$ac_tool_prefix"; then
81ecdfbb 4158 for ac_prog in cl.exe
ce2cded5
L
4159 do
4160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4161set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163$as_echo_n "checking for $ac_word... " >&6; }
4164if test "${ac_cv_prog_CC+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
ce2cded5
L
4166else
4167 if test -n "$CC"; then
4168 ac_cv_prog_CC="$CC" # Let the user override the test.
4169else
4170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH
4172do
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4177 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4179 break 2
4180 fi
4181done
81ecdfbb
RW
4182 done
4183IFS=$as_save_IFS
ce2cded5
L
4184
4185fi
4186fi
4187CC=$ac_cv_prog_CC
4188if test -n "$CC"; then
81ecdfbb
RW
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4190$as_echo "$CC" >&6; }
ce2cded5 4191else
81ecdfbb
RW
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193$as_echo "no" >&6; }
ce2cded5
L
4194fi
4195
81ecdfbb 4196
ce2cded5 4197 test -n "$CC" && break
d7040cdb
SE
4198 done
4199fi
ce2cded5
L
4200if test -z "$CC"; then
4201 ac_ct_CC=$CC
81ecdfbb 4202 for ac_prog in cl.exe
d7040cdb
SE
4203do
4204 # Extract the first word of "$ac_prog", so it can be a program name with args.
4205set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207$as_echo_n "checking for $ac_word... " >&6; }
4208if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4209 $as_echo_n "(cached) " >&6
d7040cdb 4210else
ce2cded5
L
4211 if test -n "$ac_ct_CC"; then
4212 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
4213else
4214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215for as_dir in $PATH
4216do
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4221 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 4223 break 2
ac48eca1 4224 fi
d7040cdb 4225done
81ecdfbb
RW
4226 done
4227IFS=$as_save_IFS
ac48eca1 4228
d7040cdb
SE
4229fi
4230fi
ce2cded5
L
4231ac_ct_CC=$ac_cv_prog_ac_ct_CC
4232if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4234$as_echo "$ac_ct_CC" >&6; }
d7040cdb 4235else
81ecdfbb
RW
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237$as_echo "no" >&6; }
d7040cdb 4238fi
ac48eca1 4239
81ecdfbb 4240
ce2cded5 4241 test -n "$ac_ct_CC" && break
d7040cdb 4242done
ac48eca1 4243
81ecdfbb
RW
4244 if test "x$ac_ct_CC" = x; then
4245 CC=""
4246 else
4247 case $cross_compiling:$ac_tool_warned in
4248yes:)
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4251ac_tool_warned=yes ;;
4252esac
4253 CC=$ac_ct_CC
4254 fi
d7040cdb 4255fi
ac48eca1 4256
d7040cdb 4257fi
ac48eca1 4258
ac48eca1 4259
81ecdfbb
RW
4260test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4262as_fn_error "no acceptable C compiler found in \$PATH
4263See \`config.log' for more details." "$LINENO" 5; }
6be7c12c 4264
ce2cded5 4265# Provide some information about the compiler.
81ecdfbb
RW
4266$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4267set X $ac_compile
4268ac_compiler=$2
4269for ac_option in --version -v -V -qversion; do
4270 { { ac_try="$ac_compiler $ac_option >&5"
4271case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274esac
4275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4276$as_echo "$ac_try_echo"; } >&5
4277 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4278 ac_status=$?
81ecdfbb
RW
4279 if test -s conftest.err; then
4280 sed '10a\
4281... rest of stderr output deleted ...
4282 10q' conftest.err >conftest.er1
4283 cat conftest.er1 >&5
4284 rm -f conftest.er1 conftest.err
4285 fi
4286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4287 test $ac_status = 0; }
4288done
ac48eca1 4289
81ecdfbb
RW
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4291$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4292if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4293 $as_echo_n "(cached) " >&6
d7040cdb 4294else
81ecdfbb 4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4296/* end confdefs.h. */
ac48eca1 4297
ce2cded5
L
4298int
4299main ()
4300{
4301#ifndef __GNUC__
4302 choke me
4303#endif
4304
4305 ;
4306 return 0;
4307}
4308_ACEOF
81ecdfbb 4309if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 4310 ac_compiler_gnu=yes
d7040cdb 4311else
81ecdfbb 4312 ac_compiler_gnu=no
d7040cdb 4313fi
81ecdfbb 4314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4315ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4316
ce2cded5 4317fi
81ecdfbb
RW
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4319$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4320if test $ac_compiler_gnu = yes; then
4321 GCC=yes
4322else
4323 GCC=
4324fi
ce2cded5
L
4325ac_test_CFLAGS=${CFLAGS+set}
4326ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4328$as_echo_n "checking whether $CC accepts -g... " >&6; }
4329if test "${ac_cv_prog_cc_g+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4331else
4332 ac_save_c_werror_flag=$ac_c_werror_flag
4333 ac_c_werror_flag=yes
4334 ac_cv_prog_cc_g=no
4335 CFLAGS="-g"
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4337/* end confdefs.h. */
d7040cdb 4338
ce2cded5
L
4339int
4340main ()
4341{
d7040cdb 4342
ce2cded5
L
4343 ;
4344 return 0;
4345}
4346_ACEOF
81ecdfbb 4347if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
4348 ac_cv_prog_cc_g=yes
4349else
81ecdfbb
RW
4350 CFLAGS=""
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352/* end confdefs.h. */
108a6f8e 4353
81ecdfbb
RW
4354int
4355main ()
4356{
4357
4358 ;
4359 return 0;
4360}
4361_ACEOF
4362if ac_fn_c_try_compile "$LINENO"; then :
4363
4364else
4365 ac_c_werror_flag=$ac_save_c_werror_flag
4366 CFLAGS="-g"
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368/* end confdefs.h. */
4369
4370int
4371main ()
4372{
4373
4374 ;
4375 return 0;
4376}
4377_ACEOF
4378if ac_fn_c_try_compile "$LINENO"; then :
4379 ac_cv_prog_cc_g=yes
4380fi
4381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382fi
4383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384fi
4385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 ac_c_werror_flag=$ac_save_c_werror_flag
4387fi
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4389$as_echo "$ac_cv_prog_cc_g" >&6; }
4390if test "$ac_test_CFLAGS" = set; then
4391 CFLAGS=$ac_save_CFLAGS
4392elif test $ac_cv_prog_cc_g = yes; then
4393 if test "$GCC" = yes; then
4394 CFLAGS="-g -O2"
4395 else
ce2cded5
L
4396 CFLAGS="-g"
4397 fi
ac48eca1 4398else
ce2cded5
L
4399 if test "$GCC" = yes; then
4400 CFLAGS="-O2"
4401 else
4402 CFLAGS=
4403 fi
ac48eca1 4404fi
81ecdfbb
RW
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4406$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4407if test "${ac_cv_prog_cc_c89+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
ac48eca1 4409else
81ecdfbb 4410 ac_cv_prog_cc_c89=no
ce2cded5 4411ac_save_CC=$CC
81ecdfbb 4412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
4413/* end confdefs.h. */
4414#include <stdarg.h>
4415#include <stdio.h>
4416#include <sys/types.h>
4417#include <sys/stat.h>
4418/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4419struct buf { int x; };
4420FILE * (*rcsopen) (struct buf *, struct stat *, int);
4421static char *e (p, i)
4422 char **p;
4423 int i;
4424{
4425 return p[i];
4426}
4427static char *f (char * (*g) (char **, int), char **p, ...)
4428{
4429 char *s;
4430 va_list v;
4431 va_start (v,p);
4432 s = g (p, va_arg (v,int));
4433 va_end (v);
4434 return s;
4435}
d7040cdb 4436
ce2cded5
L
4437/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4438 function prototypes and stuff, but not '\xHH' hex character constants.
4439 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4440 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
4441 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4442 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4443 that's true only with -std. */
ce2cded5 4444int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 4445
81ecdfbb
RW
4446/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4447 inside strings and character constants. */
4448#define FOO(x) 'x'
4449int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4450
ce2cded5
L
4451int test (int i, double x);
4452struct s1 {int (*f) (int a);};
4453struct s2 {int (*f) (double a);};
4454int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4455int argc;
4456char **argv;
4457int
4458main ()
4459{
4460return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4461 ;
4462 return 0;
4463}
4464_ACEOF
81ecdfbb
RW
4465for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4466 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
4467do
4468 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4469 if ac_fn_c_try_compile "$LINENO"; then :
4470 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 4471fi
81ecdfbb
RW
4472rm -f core conftest.err conftest.$ac_objext
4473 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 4474done
81ecdfbb 4475rm -f conftest.$ac_ext
ce2cded5 4476CC=$ac_save_CC
d7040cdb 4477
ce2cded5 4478fi
81ecdfbb
RW
4479# AC_CACHE_VAL
4480case "x$ac_cv_prog_cc_c89" in
4481 x)
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4483$as_echo "none needed" >&6; } ;;
4484 xno)
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4486$as_echo "unsupported" >&6; } ;;
ce2cded5 4487 *)
81ecdfbb
RW
4488 CC="$CC $ac_cv_prog_cc_c89"
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4490$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ce2cded5 4491esac
81ecdfbb 4492if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 4493
ce2cded5 4494fi
d7040cdb 4495
ce2cded5
L
4496ac_ext=c
4497ac_cpp='$CPP $CPPFLAGS'
4498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4501
7357c5b6
AM
4502ac_ext=c
4503ac_cpp='$CPP $CPPFLAGS'
4504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4508$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4509# On Suns, sometimes $CPP names a directory.
4510if test -n "$CPP" && test -d "$CPP"; then
4511 CPP=
4512fi
4513if test -z "$CPP"; then
81ecdfbb
RW
4514 if test "${ac_cv_prog_CPP+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
ce2cded5 4516else
7357c5b6
AM
4517 # Double quotes because CPP needs to be expanded
4518 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4519 do
4520 ac_preproc_ok=false
4521for ac_c_preproc_warn_flag in '' yes
ce2cded5 4522do
7357c5b6
AM
4523 # Use a header file that comes with gcc, so configuring glibc
4524 # with a fresh cross-compiler works.
4525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4526 # <limits.h> exists even on freestanding compilers.
4527 # On the NeXT, cc -E runs the code through the compiler's parser,
4528 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4530/* end confdefs.h. */
4531#ifdef __STDC__
4532# include <limits.h>
4533#else
4534# include <assert.h>
4535#endif
4536 Syntax error
4537_ACEOF
81ecdfbb 4538if ac_fn_c_try_cpp "$LINENO"; then :
6bf9431b 4539
81ecdfbb 4540else
7357c5b6
AM
4541 # Broken: fails on valid input.
4542continue
4543fi
4544rm -f conftest.err conftest.$ac_ext
ce2cded5 4545
81ecdfbb 4546 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4547 # can be detected and how.
81ecdfbb 4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4549/* end confdefs.h. */
4550#include <ac_nonexistent.h>
4551_ACEOF
81ecdfbb 4552if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4553 # Broken: success on invalid input.
4554continue
4555else
7357c5b6
AM
4556 # Passes both tests.
4557ac_preproc_ok=:
4558break
4559fi
4560rm -f conftest.err conftest.$ac_ext
6bf9431b 4561
7357c5b6
AM
4562done
4563# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4564rm -f conftest.err conftest.$ac_ext
81ecdfbb 4565if $ac_preproc_ok; then :
7357c5b6
AM
4566 break
4567fi
6bf9431b 4568
7357c5b6
AM
4569 done
4570 ac_cv_prog_CPP=$CPP
252b5132 4571
7357c5b6
AM
4572fi
4573 CPP=$ac_cv_prog_CPP
4574else
4575 ac_cv_prog_CPP=$CPP
4576fi
81ecdfbb
RW
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4578$as_echo "$CPP" >&6; }
7357c5b6
AM
4579ac_preproc_ok=false
4580for ac_c_preproc_warn_flag in '' yes
4581do
4582 # Use a header file that comes with gcc, so configuring glibc
4583 # with a fresh cross-compiler works.
4584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4585 # <limits.h> exists even on freestanding compilers.
4586 # On the NeXT, cc -E runs the code through the compiler's parser,
4587 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4589/* end confdefs.h. */
4590#ifdef __STDC__
4591# include <limits.h>
4592#else
4593# include <assert.h>
4594#endif
4595 Syntax error
4596_ACEOF
81ecdfbb 4597if ac_fn_c_try_cpp "$LINENO"; then :
6bf9431b 4598
81ecdfbb 4599else
7357c5b6
AM
4600 # Broken: fails on valid input.
4601continue
4602fi
4603rm -f conftest.err conftest.$ac_ext
252b5132 4604
81ecdfbb 4605 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4606 # can be detected and how.
81ecdfbb 4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4608/* end confdefs.h. */
4609#include <ac_nonexistent.h>
4610_ACEOF
81ecdfbb 4611if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4612 # Broken: success on invalid input.
4613continue
4614else
7357c5b6
AM
4615 # Passes both tests.
4616ac_preproc_ok=:
4617break
4618fi
4619rm -f conftest.err conftest.$ac_ext
252b5132 4620
7357c5b6
AM
4621done
4622# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4623rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
4624if $ac_preproc_ok; then :
4625
7357c5b6 4626else
81ecdfbb
RW
4627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4629as_fn_error "C preprocessor \"$CPP\" fails sanity check
4630See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 4631fi
6bf9431b 4632
7357c5b6
AM
4633ac_ext=c
4634ac_cpp='$CPP $CPPFLAGS'
4635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132 4638
252b5132 4639
81ecdfbb
RW
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4641$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4642if test "${ac_cv_path_GREP+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
ce2cded5 4644else
81ecdfbb
RW
4645 if test -z "$GREP"; then
4646 ac_path_GREP_found=false
4647 # Loop through the user's path and test for each of PROGNAME-LIST
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4650do
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_prog in grep ggrep; do
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4656 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4657# Check for GNU ac_path_GREP and select it if it is found.
4658 # Check for GNU $ac_path_GREP
4659case `"$ac_path_GREP" --version 2>&1` in
4660*GNU*)
4661 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4662*)
4663 ac_count=0
4664 $as_echo_n 0123456789 >"conftest.in"
4665 while :
4666 do
4667 cat "conftest.in" "conftest.in" >"conftest.tmp"
4668 mv "conftest.tmp" "conftest.in"
4669 cp "conftest.in" "conftest.nl"
4670 $as_echo 'GREP' >> "conftest.nl"
4671 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4673 as_fn_arith $ac_count + 1 && ac_count=$as_val
4674 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4675 # Best one so far, save it but keep looking for a better one
4676 ac_cv_path_GREP="$ac_path_GREP"
4677 ac_path_GREP_max=$ac_count
ce2cded5 4678 fi
81ecdfbb
RW
4679 # 10*(2^10) chars as input seems more than enough
4680 test $ac_count -gt 10 && break
4681 done
4682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4683esac
4684
4685 $ac_path_GREP_found && break 3
4686 done
4687 done
4688 done
4689IFS=$as_save_IFS
4690 if test -z "$ac_cv_path_GREP"; then
4691 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4692 fi
4693else
4694 ac_cv_path_GREP=$GREP
4695fi
4696
ce2cded5 4697fi
81ecdfbb
RW
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4699$as_echo "$ac_cv_path_GREP" >&6; }
4700 GREP="$ac_cv_path_GREP"
ce2cded5 4701
6bf9431b 4702
81ecdfbb
RW
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4704$as_echo_n "checking for egrep... " >&6; }
4705if test "${ac_cv_path_EGREP+set}" = set; then :
4706 $as_echo_n "(cached) " >&6
7357c5b6 4707else
81ecdfbb
RW
4708 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4709 then ac_cv_path_EGREP="$GREP -E"
4710 else
4711 if test -z "$EGREP"; then
4712 ac_path_EGREP_found=false
4713 # Loop through the user's path and test for each of PROGNAME-LIST
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4716do
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_prog in egrep; do
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4722 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4723# Check for GNU ac_path_EGREP and select it if it is found.
4724 # Check for GNU $ac_path_EGREP
4725case `"$ac_path_EGREP" --version 2>&1` in
4726*GNU*)
4727 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4728*)
4729 ac_count=0
4730 $as_echo_n 0123456789 >"conftest.in"
4731 while :
4732 do
4733 cat "conftest.in" "conftest.in" >"conftest.tmp"
4734 mv "conftest.tmp" "conftest.in"
4735 cp "conftest.in" "conftest.nl"
4736 $as_echo 'EGREP' >> "conftest.nl"
4737 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4738 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4739 as_fn_arith $ac_count + 1 && ac_count=$as_val
4740 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4741 # Best one so far, save it but keep looking for a better one
4742 ac_cv_path_EGREP="$ac_path_EGREP"
4743 ac_path_EGREP_max=$ac_count
4744 fi
4745 # 10*(2^10) chars as input seems more than enough
4746 test $ac_count -gt 10 && break
4747 done
4748 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4749esac
4750
4751 $ac_path_EGREP_found && break 3
4752 done
4753 done
4754 done
4755IFS=$as_save_IFS
4756 if test -z "$ac_cv_path_EGREP"; then
4757 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4758 fi
4759else
4760 ac_cv_path_EGREP=$EGREP
4761fi
4762
4763 fi
4764fi
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4766$as_echo "$ac_cv_path_EGREP" >&6; }
4767 EGREP="$ac_cv_path_EGREP"
4768
4769
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4771$as_echo_n "checking for ANSI C header files... " >&6; }
4772if test "${ac_cv_header_stdc+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4774else
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4776/* end confdefs.h. */
4777#include <stdlib.h>
4778#include <stdarg.h>
4779#include <string.h>
4780#include <float.h>
4781
4782int
4783main ()
4784{
4785
4786 ;
4787 return 0;
4788}
4789_ACEOF
81ecdfbb 4790if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4791 ac_cv_header_stdc=yes
4792else
81ecdfbb 4793 ac_cv_header_stdc=no
7357c5b6 4794fi
81ecdfbb 4795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6
AM
4796
4797if test $ac_cv_header_stdc = yes; then
4798 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4800/* end confdefs.h. */
4801#include <string.h>
4802
4803_ACEOF
4804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4805 $EGREP "memchr" >/dev/null 2>&1; then :
4806
7357c5b6
AM
4807else
4808 ac_cv_header_stdc=no
4809fi
4810rm -f conftest*
4811
4812fi
4813
4814if test $ac_cv_header_stdc = yes; then
4815 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4817/* end confdefs.h. */
4818#include <stdlib.h>
4819
4820_ACEOF
4821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4822 $EGREP "free" >/dev/null 2>&1; then :
4823
7357c5b6
AM
4824else
4825 ac_cv_header_stdc=no
4826fi
4827rm -f conftest*
4828
4829fi
4830
4831if test $ac_cv_header_stdc = yes; then
4832 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4833 if test "$cross_compiling" = yes; then :
7357c5b6 4834 :
ce2cded5 4835else
81ecdfbb 4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4837/* end confdefs.h. */
4838#include <ctype.h>
81ecdfbb 4839#include <stdlib.h>
7357c5b6
AM
4840#if ((' ' & 0x0FF) == 0x020)
4841# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4842# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4843#else
4844# define ISLOWER(c) \
4845 (('a' <= (c) && (c) <= 'i') \
4846 || ('j' <= (c) && (c) <= 'r') \
4847 || ('s' <= (c) && (c) <= 'z'))
4848# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4849#endif
6bf9431b 4850
7357c5b6
AM
4851#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4852int
4853main ()
4854{
4855 int i;
4856 for (i = 0; i < 256; i++)
4857 if (XOR (islower (i), ISLOWER (i))
4858 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4859 return 2;
4860 return 0;
7357c5b6
AM
4861}
4862_ACEOF
81ecdfbb 4863if ac_fn_c_try_run "$LINENO"; then :
6bf9431b 4864
81ecdfbb
RW
4865else
4866 ac_cv_header_stdc=no
7357c5b6 4867fi
81ecdfbb
RW
4868rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4869 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4870fi
81ecdfbb 4871
7357c5b6
AM
4872fi
4873fi
81ecdfbb
RW
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4875$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4876if test $ac_cv_header_stdc = yes; then
6bf9431b 4877
81ecdfbb 4878$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4879
7357c5b6 4880fi
d7040cdb 4881
7357c5b6 4882# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
4883for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4884 inttypes.h stdint.h unistd.h
81ecdfbb
RW
4885do :
4886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4887ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4888"
4889eval as_val=\$$as_ac_Header
4890 if test "x$as_val" = x""yes; then :
7357c5b6 4891 cat >>confdefs.h <<_ACEOF
81ecdfbb 4892#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 4893_ACEOF
d7040cdb 4894
7357c5b6 4895fi
d7040cdb 4896
7357c5b6 4897done
d7040cdb
SE
4898
4899
4900
81ecdfbb
RW
4901 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4902if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
4903 MINIX=yes
4904else
4905 MINIX=
4906fi
d7040cdb
SE
4907
4908
7357c5b6 4909 if test "$MINIX" = yes; then
d7040cdb 4910
81ecdfbb 4911$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb 4912
d7040cdb 4913
81ecdfbb 4914$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb 4915
d7040cdb 4916
81ecdfbb 4917$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4918
ce2cded5 4919 fi
d7040cdb 4920
d7040cdb 4921
81ecdfbb
RW
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4923$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4924if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
ce2cded5 4926else
81ecdfbb 4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4928/* end confdefs.h. */
d7040cdb 4929
7357c5b6
AM
4930# define __EXTENSIONS__ 1
4931 $ac_includes_default
4932int
4933main ()
4934{
d7040cdb 4935
7357c5b6
AM
4936 ;
4937 return 0;
4938}
4939_ACEOF
81ecdfbb 4940if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4941 ac_cv_safe_to_define___extensions__=yes
4942else
81ecdfbb 4943 ac_cv_safe_to_define___extensions__=no
ce2cded5 4944fi
81ecdfbb 4945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4946fi
81ecdfbb
RW
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4948$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4949 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4950 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d7040cdb 4951
81ecdfbb 4952 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d7040cdb 4953
81ecdfbb 4954 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
d7040cdb 4955
81ecdfbb 4956 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d7040cdb 4957
81ecdfbb 4958 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d7040cdb 4959
d7040cdb 4960
d053aef8 4961
81ecdfbb 4962
da2f07f1 4963
3388710e
JM
4964# The tests for host and target for $enable_largefile require
4965# canonical names.
4966
4967
4968
da2f07f1
JK
4969# As the $enable_largefile decision depends on --enable-plugins we must set it
4970# even in directories otherwise not depending on the $plugins option.
4971
4972
4973# Check whether --enable-plugins was given.
4974if test "${enable_plugins+set}" = set; then :
4975 enableval=$enable_plugins; case "${enableval}" in
4976 yes | "") plugins=yes ;;
4977 no) plugins=no ;;
4978 *) plugins=yes ;;
4979 esac
4980else
4981 plugins=no
4982fi
4983
4984
4985
4986case "${host}" in
4987 sparc-*-solaris*|i[3-7]86-*-solaris*)
4988 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4989 # are mutually exclusive; and without procfs support, the bfd/ elf module
4990 # cannot provide certain routines such as elfcore_write_prpsinfo
4991 # or elfcore_write_prstatus. So unless the user explicitly requested
4992 # large-file support through the --enable-largefile switch, disable
4993 # large-file support in favor of procfs support.
4994 test "${target}" = "${host}" -a "x$plugins" = xno \
4995 && : ${enable_largefile="no"}
4996 ;;
4997esac
4998
81ecdfbb
RW
4999# Check whether --enable-largefile was given.
5000if test "${enable_largefile+set}" = set; then :
5001 enableval=$enable_largefile;
5002fi
5003
d053aef8
JK
5004if test "$enable_largefile" != no; then
5005
81ecdfbb
RW
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5007$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5008if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5009 $as_echo_n "(cached) " >&6
d053aef8
JK
5010else
5011 ac_cv_sys_largefile_CC=no
5012 if test "$GCC" != yes; then
5013 ac_save_CC=$CC
5014 while :; do
81ecdfbb
RW
5015 # IRIX 6.2 and later do not support large files by default,
5016 # so use the C compiler's -n32 option if that helps.
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5018/* end confdefs.h. */
5019#include <sys/types.h>
5020 /* Check that off_t can represent 2**63 - 1 correctly.
5021 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5022 since some C++ compilers masquerading as C compilers
5023 incorrectly reject 9223372036854775807. */
5024#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5025 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5026 && LARGE_OFF_T % 2147483647 == 1)
5027 ? 1 : -1];
5028int
5029main ()
5030{
5031
5032 ;
5033 return 0;
5034}
5035_ACEOF
81ecdfbb 5036 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5037 break
d053aef8 5038fi
81ecdfbb
RW
5039rm -f core conftest.err conftest.$ac_objext
5040 CC="$CC -n32"
5041 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5042 ac_cv_sys_largefile_CC=' -n32'; break
d053aef8 5043fi
81ecdfbb 5044rm -f core conftest.err conftest.$ac_objext
d053aef8
JK
5045 break
5046 done
5047 CC=$ac_save_CC
5048 rm -f conftest.$ac_ext
5049 fi
5050fi
81ecdfbb
RW
5051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5052$as_echo "$ac_cv_sys_largefile_CC" >&6; }
d053aef8
JK
5053 if test "$ac_cv_sys_largefile_CC" != no; then
5054 CC=$CC$ac_cv_sys_largefile_CC
5055 fi
5056
81ecdfbb
RW
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5058$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5059if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5060 $as_echo_n "(cached) " >&6
d053aef8
JK
5061else
5062 while :; do
81ecdfbb 5063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5064/* end confdefs.h. */
5065#include <sys/types.h>
5066 /* Check that off_t can represent 2**63 - 1 correctly.
5067 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5068 since some C++ compilers masquerading as C compilers
5069 incorrectly reject 9223372036854775807. */
5070#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5071 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5072 && LARGE_OFF_T % 2147483647 == 1)
5073 ? 1 : -1];
5074int
5075main ()
5076{
5077
5078 ;
5079 return 0;
5080}
5081_ACEOF
81ecdfbb
RW
5082if ac_fn_c_try_compile "$LINENO"; then :
5083 ac_cv_sys_file_offset_bits=no; break
d053aef8 5084fi
81ecdfbb
RW
5085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5087/* end confdefs.h. */
5088#define _FILE_OFFSET_BITS 64
5089#include <sys/types.h>
5090 /* Check that off_t can represent 2**63 - 1 correctly.
5091 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5092 since some C++ compilers masquerading as C compilers
5093 incorrectly reject 9223372036854775807. */
5094#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5095 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5096 && LARGE_OFF_T % 2147483647 == 1)
5097 ? 1 : -1];
5098int
5099main ()
5100{
5101
5102 ;
5103 return 0;
5104}
5105_ACEOF
81ecdfbb 5106if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5107 ac_cv_sys_file_offset_bits=64; break
d053aef8 5108fi
81ecdfbb
RW
5109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110 ac_cv_sys_file_offset_bits=unknown
d053aef8
JK
5111 break
5112done
5113fi
81ecdfbb
RW
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5115$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5116case $ac_cv_sys_file_offset_bits in #(
5117 no | unknown) ;;
5118 *)
d053aef8
JK
5119cat >>confdefs.h <<_ACEOF
5120#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5121_ACEOF
81ecdfbb
RW
5122;;
5123esac
5124rm -rf conftest*
5125 if test $ac_cv_sys_file_offset_bits = unknown; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5127$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5128if test "${ac_cv_sys_large_files+set}" = set; then :
5129 $as_echo_n "(cached) " >&6
d053aef8
JK
5130else
5131 while :; do
81ecdfbb 5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5133/* end confdefs.h. */
5134#include <sys/types.h>
5135 /* Check that off_t can represent 2**63 - 1 correctly.
5136 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5137 since some C++ compilers masquerading as C compilers
5138 incorrectly reject 9223372036854775807. */
5139#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5140 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5141 && LARGE_OFF_T % 2147483647 == 1)
5142 ? 1 : -1];
5143int
5144main ()
5145{
5146
5147 ;
5148 return 0;
5149}
5150_ACEOF
81ecdfbb
RW
5151if ac_fn_c_try_compile "$LINENO"; then :
5152 ac_cv_sys_large_files=no; break
d053aef8 5153fi
81ecdfbb
RW
5154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5156/* end confdefs.h. */
5157#define _LARGE_FILES 1
5158#include <sys/types.h>
5159 /* Check that off_t can represent 2**63 - 1 correctly.
5160 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5161 since some C++ compilers masquerading as C compilers
5162 incorrectly reject 9223372036854775807. */
5163#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5164 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5165 && LARGE_OFF_T % 2147483647 == 1)
5166 ? 1 : -1];
5167int
5168main ()
5169{
5170
5171 ;
5172 return 0;
5173}
81ecdfbb
RW
5174_ACEOF
5175if ac_fn_c_try_compile "$LINENO"; then :
5176 ac_cv_sys_large_files=1; break
d053aef8 5177fi
81ecdfbb
RW
5178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179 ac_cv_sys_large_files=unknown
d053aef8
JK
5180 break
5181done
5182fi
81ecdfbb
RW
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5184$as_echo "$ac_cv_sys_large_files" >&6; }
5185case $ac_cv_sys_large_files in #(
5186 no | unknown) ;;
5187 *)
d053aef8
JK
5188cat >>confdefs.h <<_ACEOF
5189#define _LARGE_FILES $ac_cv_sys_large_files
5190_ACEOF
81ecdfbb 5191;;
7357c5b6 5192esac
81ecdfbb 5193rm -rf conftest*
7357c5b6
AM
5194 fi
5195fi
d7040cdb 5196
d7040cdb 5197
ce2cded5 5198
da2f07f1 5199
b214d478
SE
5200case `pwd` in
5201 *\ * | *\ *)
81ecdfbb
RW
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5203$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
b214d478 5204esac
d7040cdb
SE
5205
5206
6bf9431b 5207
b214d478
SE
5208macro_version='2.2.6'
5209macro_revision='1.3012'
ce2cded5 5210
d7040cdb 5211
d7040cdb 5212
d7040cdb 5213
d7040cdb 5214
7357c5b6 5215
6bf9431b 5216
6bf9431b 5217
6bf9431b 5218
6bf9431b 5219
d7040cdb 5220
d7040cdb 5221
6bf9431b 5222
b214d478 5223ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 5224
81ecdfbb
RW
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5226$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5227if test "${ac_cv_path_SED+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
5229else
5230 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5231 for ac_i in 1 2 3 4 5 6 7; do
5232 ac_script="$ac_script$as_nl$ac_script"
5233 done
5234 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5235 { ac_script=; unset ac_script;}
5236 if test -z "$SED"; then
5237 ac_path_SED_found=false
5238 # Loop through the user's path and test for each of PROGNAME-LIST
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5240for as_dir in $PATH
5241do
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
81ecdfbb 5244 for ac_prog in sed gsed; do
7357c5b6 5245 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5246 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5247 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5248# Check for GNU ac_path_SED and select it if it is found.
5249 # Check for GNU $ac_path_SED
5250case `"$ac_path_SED" --version 2>&1` in
5251*GNU*)
5252 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5253*)
5254 ac_count=0
5255 $as_echo_n 0123456789 >"conftest.in"
5256 while :
5257 do
5258 cat "conftest.in" "conftest.in" >"conftest.tmp"
5259 mv "conftest.tmp" "conftest.in"
5260 cp "conftest.in" "conftest.nl"
5261 $as_echo '' >> "conftest.nl"
5262 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5264 as_fn_arith $ac_count + 1 && ac_count=$as_val
5265 if test $ac_count -gt ${ac_path_SED_max-0}; then
5266 # Best one so far, save it but keep looking for a better one
5267 ac_cv_path_SED="$ac_path_SED"
5268 ac_path_SED_max=$ac_count
5269 fi
5270 # 10*(2^10) chars as input seems more than enough
5271 test $ac_count -gt 10 && break
5272 done
5273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5274esac
5275
5276 $ac_path_SED_found && break 3
7357c5b6
AM
5277 done
5278 done
81ecdfbb 5279 done
7357c5b6 5280IFS=$as_save_IFS
81ecdfbb
RW
5281 if test -z "$ac_cv_path_SED"; then
5282 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5283 fi
81ecdfbb
RW
5284else
5285 ac_cv_path_SED=$SED
7357c5b6
AM
5286fi
5287
81ecdfbb
RW
5288fi
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5290$as_echo "$ac_cv_path_SED" >&6; }
5291 SED="$ac_cv_path_SED"
5292 rm -f conftest.sed
7357c5b6
AM
5293
5294test -z "$SED" && SED=sed
5295Xsed="$SED -e 1s/^X//"
5296
5297
5298
d7040cdb 5299
d7040cdb 5300
d7040cdb 5301
d7040cdb 5302
d7040cdb 5303
d7040cdb 5304
d7040cdb 5305
6bf9431b 5306
81ecdfbb
RW
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5308$as_echo_n "checking for fgrep... " >&6; }
5309if test "${ac_cv_path_FGREP+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
7357c5b6 5311else
81ecdfbb
RW
5312 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5313 then ac_cv_path_FGREP="$GREP -F"
5314 else
5315 if test -z "$FGREP"; then
5316 ac_path_FGREP_found=false
5317 # Loop through the user's path and test for each of PROGNAME-LIST
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5320do
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_prog in fgrep; do
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5326 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5327# Check for GNU ac_path_FGREP and select it if it is found.
5328 # Check for GNU $ac_path_FGREP
5329case `"$ac_path_FGREP" --version 2>&1` in
5330*GNU*)
5331 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5332*)
5333 ac_count=0
5334 $as_echo_n 0123456789 >"conftest.in"
5335 while :
5336 do
5337 cat "conftest.in" "conftest.in" >"conftest.tmp"
5338 mv "conftest.tmp" "conftest.in"
5339 cp "conftest.in" "conftest.nl"
5340 $as_echo 'FGREP' >> "conftest.nl"
5341 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5342 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5343 as_fn_arith $ac_count + 1 && ac_count=$as_val
5344 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5345 # Best one so far, save it but keep looking for a better one
5346 ac_cv_path_FGREP="$ac_path_FGREP"
5347 ac_path_FGREP_max=$ac_count
7357c5b6 5348 fi
81ecdfbb
RW
5349 # 10*(2^10) chars as input seems more than enough
5350 test $ac_count -gt 10 && break
5351 done
5352 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5353esac
5354
5355 $ac_path_FGREP_found && break 3
5356 done
5357 done
5358 done
5359IFS=$as_save_IFS
5360 if test -z "$ac_cv_path_FGREP"; then
5361 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5362 fi
5363else
5364 ac_cv_path_FGREP=$FGREP
5365fi
5366
5367 fi
6bf9431b 5368fi
81ecdfbb
RW
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5370$as_echo "$ac_cv_path_FGREP" >&6; }
5371 FGREP="$ac_cv_path_FGREP"
d7040cdb 5372
6bf9431b 5373
7357c5b6 5374test -z "$GREP" && GREP=grep
252b5132 5375
6bf9431b 5376
252b5132 5377
252b5132 5378
252b5132 5379
252b5132 5380
252b5132
RH
5381
5382
6bf9431b 5383
d7040cdb 5384
6bf9431b 5385
6bf9431b 5386
7357c5b6
AM
5387
5388
5389
5390
5391
5392
5393
81ecdfbb
RW
5394# Check whether --with-gnu-ld was given.
5395if test "${with_gnu_ld+set}" = set; then :
5396 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5397else
5398 with_gnu_ld=no
81ecdfbb
RW
5399fi
5400
7357c5b6
AM
5401ac_prog=ld
5402if test "$GCC" = yes; then
5403 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5405$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5406 case $host in
5407 *-*-mingw*)
5408 # gcc leaves a trailing carriage return which upsets mingw
5409 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5410 *)
5411 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5412 esac
5413 case $ac_prog in
5414 # Accept absolute paths.
5415 [\\/]* | ?:[\\/]*)
5416 re_direlt='/[^/][^/]*/\.\./'
5417 # Canonicalize the pathname of ld
5418 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5419 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5420 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5421 done
5422 test -z "$LD" && LD="$ac_prog"
5423 ;;
5424 "")
5425 # If it fails, then pretend we aren't using GCC.
5426 ac_prog=ld
5427 ;;
5428 *)
5429 # If it is relative, then search for the first ld in PATH.
5430 with_gnu_ld=unknown
5431 ;;
5432 esac
5433elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5435$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 5436else
81ecdfbb
RW
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5438$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5439fi
81ecdfbb
RW
5440if test "${lt_cv_path_LD+set}" = set; then :
5441 $as_echo_n "(cached) " >&6
d7040cdb 5442else
7357c5b6
AM
5443 if test -z "$LD"; then
5444 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5445 for ac_dir in $PATH; do
5446 IFS="$lt_save_ifs"
5447 test -z "$ac_dir" && ac_dir=.
5448 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5449 lt_cv_path_LD="$ac_dir/$ac_prog"
5450 # Check to see if the program is GNU ld. I'd rather use --version,
5451 # but apparently some variants of GNU ld only accept -v.
5452 # Break only if it was the GNU/non-GNU ld that we prefer.
5453 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5454 *GNU* | *'with BFD'*)
5455 test "$with_gnu_ld" != no && break
5456 ;;
5457 *)
5458 test "$with_gnu_ld" != yes && break
5459 ;;
5460 esac
5461 fi
5462 done
5463 IFS="$lt_save_ifs"
6bf9431b 5464else
7357c5b6 5465 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6bf9431b 5466fi
6bf9431b 5467fi
7357c5b6
AM
5468
5469LD="$lt_cv_path_LD"
5470if test -n "$LD"; then
81ecdfbb
RW
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5472$as_echo "$LD" >&6; }
ce2cded5 5473else
81ecdfbb
RW
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475$as_echo "no" >&6; }
6bf9431b 5476fi
81ecdfbb
RW
5477test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5479$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5480if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5481 $as_echo_n "(cached) " >&6
ce2cded5 5482else
7357c5b6
AM
5483 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5484case `$LD -v 2>&1 </dev/null` in
5485*GNU* | *'with BFD'*)
5486 lt_cv_prog_gnu_ld=yes
5487 ;;
5488*)
5489 lt_cv_prog_gnu_ld=no
5490 ;;
5491esac
ce2cded5 5492fi
81ecdfbb
RW
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5494$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 5495with_gnu_ld=$lt_cv_prog_gnu_ld
20e95c23
DJ
5496
5497
5498
20e95c23 5499
d7040cdb
SE
5500
5501
5502
5503
5504
81ecdfbb
RW
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5506$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5507if test "${lt_cv_path_NM+set}" = set; then :
5508 $as_echo_n "(cached) " >&6
ce2cded5 5509else
7357c5b6
AM
5510 if test -n "$NM"; then
5511 # Let the user override the test.
5512 lt_cv_path_NM="$NM"
ce2cded5 5513else
7357c5b6
AM
5514 lt_nm_to_check="${ac_tool_prefix}nm"
5515 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5516 lt_nm_to_check="$lt_nm_to_check nm"
ce2cded5 5517 fi
7357c5b6
AM
5518 for lt_tmp_nm in $lt_nm_to_check; do
5519 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5520 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5521 IFS="$lt_save_ifs"
5522 test -z "$ac_dir" && ac_dir=.
5523 tmp_nm="$ac_dir/$lt_tmp_nm"
5524 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5525 # Check to see if the nm accepts a BSD-compat flag.
5526 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5527 # nm: unknown option "B" ignored
5528 # Tru64's nm complains that /dev/null is an invalid object file
5529 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5530 */dev/null* | *'Invalid file or object type'*)
5531 lt_cv_path_NM="$tmp_nm -B"
5532 break
5533 ;;
5534 *)
5535 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5536 */dev/null*)
5537 lt_cv_path_NM="$tmp_nm -p"
5538 break
5539 ;;
5540 *)
5541 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5542 continue # so that we can try to find one that supports BSD flags
5543 ;;
5544 esac
5545 ;;
5546 esac
5547 fi
5548 done
5549 IFS="$lt_save_ifs"
5550 done
5551 : ${lt_cv_path_NM=no}
ce2cded5
L
5552fi
5553fi
81ecdfbb
RW
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5555$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
5556if test "$lt_cv_path_NM" != "no"; then
5557 NM="$lt_cv_path_NM"
ce2cded5 5558else
7357c5b6
AM
5559 # Didn't find any BSD compatible name lister, look for dumpbin.
5560 if test -n "$ac_tool_prefix"; then
5561 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5562 do
5563 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5564set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566$as_echo_n "checking for $ac_word... " >&6; }
5567if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
ce2cded5 5569else
7357c5b6
AM
5570 if test -n "$DUMPBIN"; then
5571 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
5572else
5573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574for as_dir in $PATH
5575do
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5580 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5582 break 2
5583 fi
5584done
81ecdfbb
RW
5585 done
5586IFS=$as_save_IFS
d7040cdb 5587
ce2cded5
L
5588fi
5589fi
7357c5b6
AM
5590DUMPBIN=$ac_cv_prog_DUMPBIN
5591if test -n "$DUMPBIN"; then
81ecdfbb
RW
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5593$as_echo "$DUMPBIN" >&6; }
ce2cded5 5594else
81ecdfbb
RW
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596$as_echo "no" >&6; }
ce2cded5 5597fi
d7040cdb 5598
81ecdfbb 5599
7357c5b6
AM
5600 test -n "$DUMPBIN" && break
5601 done
ce2cded5 5602fi
7357c5b6
AM
5603if test -z "$DUMPBIN"; then
5604 ac_ct_DUMPBIN=$DUMPBIN
5605 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5606do
5607 # Extract the first word of "$ac_prog", so it can be a program name with args.
5608set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610$as_echo_n "checking for $ac_word... " >&6; }
5611if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5612 $as_echo_n "(cached) " >&6
ce2cded5 5613else
7357c5b6
AM
5614 if test -n "$ac_ct_DUMPBIN"; then
5615 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
5616else
5617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618for as_dir in $PATH
5619do
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5624 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5626 break 2
5627 fi
5628done
81ecdfbb
RW
5629 done
5630IFS=$as_save_IFS
d7040cdb 5631
ce2cded5
L
5632fi
5633fi
7357c5b6
AM
5634ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5635if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5637$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 5638else
81ecdfbb
RW
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640$as_echo "no" >&6; }
20e95c23 5641fi
20e95c23 5642
81ecdfbb 5643
7357c5b6 5644 test -n "$ac_ct_DUMPBIN" && break
ce2cded5
L
5645done
5646
81ecdfbb
RW
5647 if test "x$ac_ct_DUMPBIN" = x; then
5648 DUMPBIN=":"
5649 else
5650 case $cross_compiling:$ac_tool_warned in
5651yes:)
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5654ac_tool_warned=yes ;;
5655esac
5656 DUMPBIN=$ac_ct_DUMPBIN
5657 fi
d7040cdb 5658fi
7357c5b6
AM
5659
5660
5661 if test "$DUMPBIN" != ":"; then
5662 NM="$DUMPBIN"
5663 fi
20e95c23 5664fi
7357c5b6
AM
5665test -z "$NM" && NM=nm
5666
5667
5668
5669
5670
5671
81ecdfbb
RW
5672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5673$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5674if test "${lt_cv_nm_interface+set}" = set; then :
5675 $as_echo_n "(cached) " >&6
ce2cded5 5676else
7357c5b6
AM
5677 lt_cv_nm_interface="BSD nm"
5678 echo "int some_variable = 0;" > conftest.$ac_ext
3388710e 5679 (eval echo "\"\$as_me:5679: $ac_compile\"" >&5)
7357c5b6
AM
5680 (eval "$ac_compile" 2>conftest.err)
5681 cat conftest.err >&5
3388710e 5682 (eval echo "\"\$as_me:5682: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
5683 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5684 cat conftest.err >&5
3388710e 5685 (eval echo "\"\$as_me:5685: output\"" >&5)
7357c5b6
AM
5686 cat conftest.out >&5
5687 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5688 lt_cv_nm_interface="MS dumpbin"
5689 fi
5690 rm -f conftest*
ce2cded5 5691fi
81ecdfbb
RW
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5693$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 5694
81ecdfbb
RW
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5696$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
5697LN_S=$as_ln_s
5698if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5700$as_echo "yes" >&6; }
ce2cded5 5701else
81ecdfbb
RW
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5703$as_echo "no, using $LN_S" >&6; }
ce2cded5 5704fi
d7040cdb 5705
7357c5b6 5706# find the maximum length of command line arguments
81ecdfbb
RW
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5708$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5709if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5710 $as_echo_n "(cached) " >&6
7357c5b6
AM
5711else
5712 i=0
5713 teststring="ABCD"
d7040cdb 5714
7357c5b6
AM
5715 case $build_os in
5716 msdosdjgpp*)
5717 # On DJGPP, this test can blow up pretty badly due to problems in libc
5718 # (any single argument exceeding 2000 bytes causes a buffer overrun
5719 # during glob expansion). Even if it were fixed, the result of this
5720 # check would be larger than it should be.
5721 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5722 ;;
d7040cdb 5723
7357c5b6
AM
5724 gnu*)
5725 # Under GNU Hurd, this test is not required because there is
5726 # no limit to the length of command line arguments.
5727 # Libtool will interpret -1 as no limit whatsoever
5728 lt_cv_sys_max_cmd_len=-1;
5729 ;;
d7040cdb 5730
b214d478 5731 cygwin* | mingw* | cegcc*)
7357c5b6
AM
5732 # On Win9x/ME, this test blows up -- it succeeds, but takes
5733 # about 5 minutes as the teststring grows exponentially.
5734 # Worse, since 9x/ME are not pre-emptively multitasking,
5735 # you end up with a "frozen" computer, even though with patience
5736 # the test eventually succeeds (with a max line length of 256k).
5737 # Instead, let's just punt: use the minimum linelength reported by
5738 # all of the supported platforms: 8192 (on NT/2K/XP).
5739 lt_cv_sys_max_cmd_len=8192;
5740 ;;
d7040cdb 5741
7357c5b6
AM
5742 amigaos*)
5743 # On AmigaOS with pdksh, this test takes hours, literally.
5744 # So we just punt and use a minimum line length of 8192.
5745 lt_cv_sys_max_cmd_len=8192;
5746 ;;
d7040cdb 5747
7357c5b6
AM
5748 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5749 # This has been around since 386BSD, at least. Likely further.
5750 if test -x /sbin/sysctl; then
5751 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5752 elif test -x /usr/sbin/sysctl; then
5753 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5754 else
5755 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5756 fi
5757 # And add a safety zone
5758 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5760 ;;
d7040cdb 5761
7357c5b6
AM
5762 interix*)
5763 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5764 lt_cv_sys_max_cmd_len=196608
5765 ;;
d7040cdb 5766
7357c5b6
AM
5767 osf*)
5768 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5769 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5770 # nice to cause kernel panics so lets avoid the loop below.
5771 # First set a reasonable default.
5772 lt_cv_sys_max_cmd_len=16384
5773 #
5774 if test -x /sbin/sysconfig; then
5775 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5776 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5777 esac
5778 fi
5779 ;;
5780 sco3.2v5*)
5781 lt_cv_sys_max_cmd_len=102400
5782 ;;
5783 sysv5* | sco5v6* | sysv4.2uw2*)
5784 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5785 if test -n "$kargmax"; then
5786 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5787 else
5788 lt_cv_sys_max_cmd_len=32768
5789 fi
ce2cded5
L
5790 ;;
5791 *)
b214d478
SE
5792 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5793 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
5794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5795 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5796 else
5797 # Make teststring a little bigger before we do anything with it.
5798 # a 1K string should be a reasonable start.
5799 for i in 1 2 3 4 5 6 7 8 ; do
5800 teststring=$teststring$teststring
5801 done
5802 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5803 # If test is not a shell built-in, we'll probably end up computing a
5804 # maximum length that is only half of the actual maximum length, but
5805 # we can't tell.
5806 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5807 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5808 test $i != 17 # 1/2 MB should be enough
5809 do
5810 i=`expr $i + 1`
5811 teststring=$teststring$teststring
5812 done
5813 # Only check the string length outside the loop.
5814 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5815 teststring=
5816 # Add a significant safety factor because C++ compilers can tack on
5817 # massive amounts of additional arguments before passing them to the
5818 # linker. It appears as though 1/2 is a usable value.
5819 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5820 fi
ce2cded5
L
5821 ;;
5822 esac
d7040cdb 5823
7357c5b6 5824fi
d7040cdb 5825
7357c5b6 5826if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5828$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 5829else
81ecdfbb
RW
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5831$as_echo "none" >&6; }
7357c5b6
AM
5832fi
5833max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
5834
5835
5836
5837
5838
5839
7357c5b6
AM
5840: ${CP="cp -f"}
5841: ${MV="mv -f"}
5842: ${RM="rm -f"}
d7040cdb 5843
81ecdfbb
RW
5844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5845$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
5846# Try some XSI features
5847xsi_shell=no
5848( _lt_dummy="a/b/c"
5849 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
5850 = c,a/b,, \
5851 && eval 'test $(( 1 + 1 )) -eq 2 \
5852 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 5853 && xsi_shell=yes
81ecdfbb
RW
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5855$as_echo "$xsi_shell" >&6; }
d7040cdb
SE
5856
5857
81ecdfbb
RW
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5859$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
5860lt_shell_append=no
5861( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5862 >/dev/null 2>&1 \
5863 && lt_shell_append=yes
81ecdfbb
RW
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5865$as_echo "$lt_shell_append" >&6; }
d7040cdb 5866
d7040cdb 5867
7357c5b6
AM
5868if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5869 lt_unset=unset
5870else
5871 lt_unset=false
5872fi
d7040cdb 5873
d7040cdb 5874
d7040cdb 5875
d7040cdb 5876
d7040cdb 5877
7357c5b6
AM
5878# test EBCDIC or ASCII
5879case `echo X|tr X '\101'` in
5880 A) # ASCII based system
5881 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5882 lt_SP2NL='tr \040 \012'
5883 lt_NL2SP='tr \015\012 \040\040'
5884 ;;
5885 *) # EBCDIC based system
5886 lt_SP2NL='tr \100 \n'
5887 lt_NL2SP='tr \r\n \100\100'
5888 ;;
5889esac
d7040cdb 5890
d7040cdb 5891
d7040cdb 5892
d7040cdb 5893
d7040cdb 5894
d7040cdb
SE
5895
5896
5af11cab 5897
d7040cdb 5898
81ecdfbb
RW
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5900$as_echo_n "checking for $LD option to reload object files... " >&6; }
5901if test "${lt_cv_ld_reload_flag+set}" = set; then :
5902 $as_echo_n "(cached) " >&6
7357c5b6
AM
5903else
5904 lt_cv_ld_reload_flag='-r'
5905fi
81ecdfbb
RW
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5907$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
5908reload_flag=$lt_cv_ld_reload_flag
5909case $reload_flag in
5910"" | " "*) ;;
5911*) reload_flag=" $reload_flag" ;;
5912esac
5913reload_cmds='$LD$reload_flag -o $output$reload_objs'
5914case $host_os in
5915 darwin*)
5916 if test "$GCC" = yes; then
5917 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5918 else
5919 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5920 fi
5921 ;;
5922esac
20e95c23 5923
6bf9431b 5924
20e95c23
DJ
5925
5926
20e95c23 5927
20e95c23 5928
ce2cded5 5929
ce2cded5 5930
ce2cded5 5931
b214d478
SE
5932if test -n "$ac_tool_prefix"; then
5933 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5934set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936$as_echo_n "checking for $ac_word... " >&6; }
5937if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
b214d478
SE
5939else
5940 if test -n "$OBJDUMP"; then
5941 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5942else
5943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944for as_dir in $PATH
5945do
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 5950 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
5952 break 2
5953 fi
5954done
81ecdfbb
RW
5955 done
5956IFS=$as_save_IFS
b214d478
SE
5957
5958fi
5959fi
5960OBJDUMP=$ac_cv_prog_OBJDUMP
5961if test -n "$OBJDUMP"; then
81ecdfbb
RW
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5963$as_echo "$OBJDUMP" >&6; }
b214d478 5964else
81ecdfbb
RW
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966$as_echo "no" >&6; }
b214d478
SE
5967fi
5968
81ecdfbb 5969
b214d478
SE
5970fi
5971if test -z "$ac_cv_prog_OBJDUMP"; then
5972 ac_ct_OBJDUMP=$OBJDUMP
5973 # Extract the first word of "objdump", so it can be a program name with args.
5974set dummy objdump; ac_word=$2
81ecdfbb
RW
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976$as_echo_n "checking for $ac_word... " >&6; }
5977if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5978 $as_echo_n "(cached) " >&6
b214d478
SE
5979else
5980 if test -n "$ac_ct_OBJDUMP"; then
5981 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5982else
5983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984for as_dir in $PATH
5985do
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 5990 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
5992 break 2
5993 fi
5994done
81ecdfbb
RW
5995 done
5996IFS=$as_save_IFS
b214d478 5997
b214d478
SE
5998fi
5999fi
6000ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6001if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6003$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 6004else
81ecdfbb
RW
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006$as_echo "no" >&6; }
b214d478
SE
6007fi
6008
81ecdfbb
RW
6009 if test "x$ac_ct_OBJDUMP" = x; then
6010 OBJDUMP="false"
6011 else
6012 case $cross_compiling:$ac_tool_warned in
6013yes:)
6014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6016ac_tool_warned=yes ;;
6017esac
6018 OBJDUMP=$ac_ct_OBJDUMP
6019 fi
b214d478
SE
6020else
6021 OBJDUMP="$ac_cv_prog_OBJDUMP"
6022fi
6023
6024test -z "$OBJDUMP" && OBJDUMP=objdump
6025
6026
6027
6028
6029
6030
6031
6032
ce2cded5 6033
81ecdfbb
RW
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6035$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6036if test "${lt_cv_deplibs_check_method+set}" = set; then :
6037 $as_echo_n "(cached) " >&6
6bf9431b 6038else
7357c5b6
AM
6039 lt_cv_file_magic_cmd='$MAGIC_CMD'
6040lt_cv_file_magic_test_file=
6041lt_cv_deplibs_check_method='unknown'
6042# Need to set the preceding variable on all platforms that support
6043# interlibrary dependencies.
6044# 'none' -- dependencies not supported.
6045# `unknown' -- same as none, but documents that we really don't know.
6046# 'pass_all' -- all dependencies passed with no checks.
6047# 'test_compile' -- check by making test program.
6048# 'file_magic [[regex]]' -- check by looking for files in library path
6049# which responds to the $file_magic_cmd with a given extended regex.
6050# If you have `file' or equivalent on your system and you're not sure
6051# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 6052
ce2cded5 6053case $host_os in
7357c5b6
AM
6054aix[4-9]*)
6055 lt_cv_deplibs_check_method=pass_all
ce2cded5 6056 ;;
7357c5b6
AM
6057
6058beos*)
6059 lt_cv_deplibs_check_method=pass_all
ce2cded5 6060 ;;
7357c5b6
AM
6061
6062bsdi[45]*)
6063 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6064 lt_cv_file_magic_cmd='/usr/bin/file -L'
6065 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6066 ;;
7357c5b6
AM
6067
6068cygwin*)
6069 # func_win32_libid is a shell function defined in ltmain.sh
6070 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6071 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6072 ;;
7357c5b6
AM
6073
6074mingw* | pw32*)
6075 # Base MSYS/MinGW do not provide the 'file' command needed by
6076 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6077 # unless we find 'file', for example because we are cross-compiling.
6078 if ( file / ) >/dev/null 2>&1; then
6079 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6080 lt_cv_file_magic_cmd='func_win32_libid'
6081 else
6082 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6083 lt_cv_file_magic_cmd='$OBJDUMP -f'
6084 fi
ce2cded5 6085 ;;
7357c5b6 6086
b214d478
SE
6087cegcc)
6088 # use the weaker test based on 'objdump'. See mingw*.
6089 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6090 lt_cv_file_magic_cmd='$OBJDUMP -f'
6091 ;;
6092
7357c5b6
AM
6093darwin* | rhapsody*)
6094 lt_cv_deplibs_check_method=pass_all
d7040cdb 6095 ;;
d7040cdb 6096
7357c5b6
AM
6097freebsd* | dragonfly*)
6098 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6099 case $host_cpu in
6100 i*86 )
6101 # Not sure whether the presence of OpenBSD here was a mistake.
6102 # Let's accept both of them until this is cleared up.
6103 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6104 lt_cv_file_magic_cmd=/usr/bin/file
6105 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6106 ;;
6107 esac
6108 else
6109 lt_cv_deplibs_check_method=pass_all
6110 fi
6111 ;;
20e95c23 6112
7357c5b6
AM
6113gnu*)
6114 lt_cv_deplibs_check_method=pass_all
6115 ;;
20e95c23 6116
7357c5b6
AM
6117hpux10.20* | hpux11*)
6118 lt_cv_file_magic_cmd=/usr/bin/file
6119 case $host_cpu in
6120 ia64*)
6121 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6122 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6123 ;;
6124 hppa*64*)
6125 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]'
6126 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6127 ;;
6128 *)
6129 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6130 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6131 ;;
6132 esac
6133 ;;
5af11cab 6134
7357c5b6
AM
6135interix[3-9]*)
6136 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6137 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 6138 ;;
20e95c23 6139
7357c5b6
AM
6140irix5* | irix6* | nonstopux*)
6141 case $LD in
6142 *-32|*"-32 ") libmagic=32-bit;;
6143 *-n32|*"-n32 ") libmagic=N32;;
6144 *-64|*"-64 ") libmagic=64-bit;;
6145 *) libmagic=never-match;;
6146 esac
6147 lt_cv_deplibs_check_method=pass_all
6148 ;;
d7040cdb 6149
7357c5b6 6150# This must be Linux ELF.
58e24671 6151linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
6152 lt_cv_deplibs_check_method=pass_all
6153 ;;
d7040cdb 6154
7357c5b6
AM
6155netbsd*)
6156 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6157 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 6158 else
7357c5b6 6159 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
ce2cded5 6160 fi
7357c5b6 6161 ;;
d7040cdb 6162
7357c5b6
AM
6163newos6*)
6164 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6165 lt_cv_file_magic_cmd=/usr/bin/file
6166 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6167 ;;
d7040cdb 6168
7357c5b6
AM
6169*nto* | *qnx*)
6170 lt_cv_deplibs_check_method=pass_all
6171 ;;
d7040cdb 6172
7357c5b6
AM
6173openbsd*)
6174 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6175 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6176 else
6177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6178 fi
6179 ;;
d7040cdb 6180
7357c5b6
AM
6181osf3* | osf4* | osf5*)
6182 lt_cv_deplibs_check_method=pass_all
6183 ;;
d7040cdb 6184
7357c5b6
AM
6185rdos*)
6186 lt_cv_deplibs_check_method=pass_all
6187 ;;
d7040cdb 6188
7357c5b6
AM
6189solaris*)
6190 lt_cv_deplibs_check_method=pass_all
6191 ;;
d7040cdb 6192
7357c5b6
AM
6193sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6194 lt_cv_deplibs_check_method=pass_all
6195 ;;
d7040cdb 6196
7357c5b6
AM
6197sysv4 | sysv4.3*)
6198 case $host_vendor in
6199 motorola)
6200 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]'
6201 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6202 ;;
6203 ncr)
6204 lt_cv_deplibs_check_method=pass_all
6205 ;;
6206 sequent)
6207 lt_cv_file_magic_cmd='/bin/file'
6208 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6209 ;;
6210 sni)
6211 lt_cv_file_magic_cmd='/bin/file'
6212 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6213 lt_cv_file_magic_test_file=/lib/libc.so
6214 ;;
6215 siemens)
6216 lt_cv_deplibs_check_method=pass_all
6217 ;;
6218 pc)
6219 lt_cv_deplibs_check_method=pass_all
6220 ;;
6221 esac
6222 ;;
d7040cdb 6223
7357c5b6
AM
6224tpf*)
6225 lt_cv_deplibs_check_method=pass_all
6226 ;;
6227esac
d7040cdb 6228
ce2cded5 6229fi
81ecdfbb
RW
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6231$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
6232file_magic_cmd=$lt_cv_file_magic_cmd
6233deplibs_check_method=$lt_cv_deplibs_check_method
6234test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 6235
d7040cdb 6236
d7040cdb 6237
d7040cdb 6238
5af11cab 6239
20e95c23 6240
20e95c23 6241
20e95c23 6242
20e95c23
DJ
6243
6244
6245
20e95c23 6246
7357c5b6
AM
6247if test -n "$ac_tool_prefix"; then
6248 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6249set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251$as_echo_n "checking for $ac_word... " >&6; }
6252if test "${ac_cv_prog_AR+set}" = set; then :
6253 $as_echo_n "(cached) " >&6
7357c5b6
AM
6254else
6255 if test -n "$AR"; then
6256 ac_cv_prog_AR="$AR" # Let the user override the test.
6257else
6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259for as_dir in $PATH
6260do
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6265 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6267 break 2
ce2cded5 6268 fi
7357c5b6 6269done
81ecdfbb
RW
6270 done
6271IFS=$as_save_IFS
d5fbea21 6272
7357c5b6
AM
6273fi
6274fi
6275AR=$ac_cv_prog_AR
6276if test -n "$AR"; then
81ecdfbb
RW
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6278$as_echo "$AR" >&6; }
7357c5b6 6279else
81ecdfbb
RW
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281$as_echo "no" >&6; }
7357c5b6 6282fi
d5fbea21 6283
81ecdfbb 6284
7357c5b6
AM
6285fi
6286if test -z "$ac_cv_prog_AR"; then
6287 ac_ct_AR=$AR
6288 # Extract the first word of "ar", so it can be a program name with args.
6289set dummy ar; ac_word=$2
81ecdfbb
RW
6290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291$as_echo_n "checking for $ac_word... " >&6; }
6292if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6293 $as_echo_n "(cached) " >&6
ce2cded5 6294else
7357c5b6
AM
6295 if test -n "$ac_ct_AR"; then
6296 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6297else
6298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299for as_dir in $PATH
6300do
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6305 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6307 break 2
6308 fi
6309done
81ecdfbb
RW
6310 done
6311IFS=$as_save_IFS
d7040cdb 6312
7357c5b6
AM
6313fi
6314fi
6315ac_ct_AR=$ac_cv_prog_ac_ct_AR
6316if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6318$as_echo "$ac_ct_AR" >&6; }
ce2cded5 6319else
81ecdfbb
RW
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321$as_echo "no" >&6; }
ce2cded5 6322fi
d7040cdb 6323
81ecdfbb
RW
6324 if test "x$ac_ct_AR" = x; then
6325 AR="false"
6326 else
6327 case $cross_compiling:$ac_tool_warned in
6328yes:)
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6331ac_tool_warned=yes ;;
6332esac
6333 AR=$ac_ct_AR
6334 fi
7357c5b6
AM
6335else
6336 AR="$ac_cv_prog_AR"
ce2cded5 6337fi
d7040cdb 6338
7357c5b6
AM
6339test -z "$AR" && AR=ar
6340test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb 6341
7357c5b6
AM
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352if test -n "$ac_tool_prefix"; then
6353 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6354set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356$as_echo_n "checking for $ac_word... " >&6; }
6357if test "${ac_cv_prog_STRIP+set}" = set; then :
6358 $as_echo_n "(cached) " >&6
252b5132 6359else
7357c5b6
AM
6360 if test -n "$STRIP"; then
6361 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6362else
6363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364for as_dir in $PATH
ce2cded5 6365do
7357c5b6
AM
6366 IFS=$as_save_IFS
6367 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6370 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6372 break 2
ce2cded5 6373 fi
7357c5b6 6374done
81ecdfbb
RW
6375 done
6376IFS=$as_save_IFS
7357c5b6 6377
252b5132 6378fi
7357c5b6
AM
6379fi
6380STRIP=$ac_cv_prog_STRIP
6381if test -n "$STRIP"; then
81ecdfbb
RW
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6383$as_echo "$STRIP" >&6; }
252b5132 6384else
81ecdfbb
RW
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386$as_echo "no" >&6; }
252b5132 6387fi
d7040cdb 6388
81ecdfbb 6389
6bf9431b 6390fi
7357c5b6
AM
6391if test -z "$ac_cv_prog_STRIP"; then
6392 ac_ct_STRIP=$STRIP
6393 # Extract the first word of "strip", so it can be a program name with args.
6394set dummy strip; ac_word=$2
81ecdfbb
RW
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396$as_echo_n "checking for $ac_word... " >&6; }
6397if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6398 $as_echo_n "(cached) " >&6
ac48eca1 6399else
7357c5b6
AM
6400 if test -n "$ac_ct_STRIP"; then
6401 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6402else
6403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404for as_dir in $PATH
6405do
6406 IFS=$as_save_IFS
6407 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6410 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6412 break 2
6413 fi
6414done
81ecdfbb
RW
6415 done
6416IFS=$as_save_IFS
6bf9431b 6417
7357c5b6
AM
6418fi
6419fi
6420ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6421if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6423$as_echo "$ac_ct_STRIP" >&6; }
7357c5b6 6424else
81ecdfbb
RW
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426$as_echo "no" >&6; }
6bf9431b 6427fi
6bf9431b 6428
81ecdfbb
RW
6429 if test "x$ac_ct_STRIP" = x; then
6430 STRIP=":"
6431 else
6432 case $cross_compiling:$ac_tool_warned in
6433yes:)
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6436ac_tool_warned=yes ;;
6437esac
6438 STRIP=$ac_ct_STRIP
6439 fi
7357c5b6
AM
6440else
6441 STRIP="$ac_cv_prog_STRIP"
ce2cded5 6442fi
6bf9431b 6443
7357c5b6
AM
6444test -z "$STRIP" && STRIP=:
6445
6446
6447
6448
6449
6450
6451if test -n "$ac_tool_prefix"; then
6452 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6453set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455$as_echo_n "checking for $ac_word... " >&6; }
6456if test "${ac_cv_prog_RANLIB+set}" = set; then :
6457 $as_echo_n "(cached) " >&6
7357c5b6
AM
6458else
6459 if test -n "$RANLIB"; then
6460 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6461else
6462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463for as_dir in $PATH
6464do
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6469 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6471 break 2
6472 fi
6473done
81ecdfbb
RW
6474 done
6475IFS=$as_save_IFS
6bf9431b 6476
ce2cded5 6477fi
7357c5b6
AM
6478fi
6479RANLIB=$ac_cv_prog_RANLIB
6480if test -n "$RANLIB"; then
81ecdfbb
RW
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6482$as_echo "$RANLIB" >&6; }
ac48eca1 6483else
81ecdfbb
RW
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485$as_echo "no" >&6; }
d7040cdb 6486fi
7357c5b6 6487
81ecdfbb 6488
7357c5b6
AM
6489fi
6490if test -z "$ac_cv_prog_RANLIB"; then
6491 ac_ct_RANLIB=$RANLIB
6492 # Extract the first word of "ranlib", so it can be a program name with args.
6493set dummy ranlib; ac_word=$2
81ecdfbb
RW
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495$as_echo_n "checking for $ac_word... " >&6; }
6496if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6497 $as_echo_n "(cached) " >&6
7357c5b6
AM
6498else
6499 if test -n "$ac_ct_RANLIB"; then
6500 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6501else
6502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503for as_dir in $PATH
ce2cded5 6504do
7357c5b6
AM
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6509 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6511 break 2
ce2cded5 6512 fi
7357c5b6 6513done
81ecdfbb
RW
6514 done
6515IFS=$as_save_IFS
7357c5b6 6516
ce2cded5 6517fi
7357c5b6
AM
6518fi
6519ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6520if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6522$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 6523else
81ecdfbb
RW
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525$as_echo "no" >&6; }
ce2cded5 6526fi
d7040cdb 6527
81ecdfbb
RW
6528 if test "x$ac_ct_RANLIB" = x; then
6529 RANLIB=":"
6530 else
6531 case $cross_compiling:$ac_tool_warned in
6532yes:)
6533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6535ac_tool_warned=yes ;;
6536esac
6537 RANLIB=$ac_ct_RANLIB
6538 fi
d7040cdb 6539else
7357c5b6 6540 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb
SE
6541fi
6542
7357c5b6
AM
6543test -z "$RANLIB" && RANLIB=:
6544
6545
6546
6547
6548
6549
6550# Determine commands to create old-style static archives.
b214d478 6551old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
6552old_postinstall_cmds='chmod 644 $oldlib'
6553old_postuninstall_cmds=
6554
6555if test -n "$RANLIB"; then
6556 case $host_os in
6557 openbsd*)
6558 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6559 ;;
6560 *)
6561 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6562 ;;
6563 esac
6564 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 6565fi
d7040cdb
SE
6566
6567
6568
6569
6570
d7040cdb 6571
7357c5b6
AM
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600# If no C compiler was specified, use CC.
6601LTCC=${LTCC-"$CC"}
6602
6603# If no C compiler flags were specified, use CFLAGS.
6604LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6605
6606# Allow CC to be a program name with arguments.
6607compiler=$CC
6608
6609
6610# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6612$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6613if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6614 $as_echo_n "(cached) " >&6
7357c5b6
AM
6615else
6616
6617# These are sane defaults that work on at least a few old systems.
6618# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6619
6620# Character class describing NM global symbol codes.
6621symcode='[BCDEGRST]'
6622
6623# Regexp to match symbols that can be accessed directly from C.
6624sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6625
6626# Define system-specific variables.
6627case $host_os in
6628aix*)
6629 symcode='[BCDT]'
6630 ;;
b214d478 6631cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
6632 symcode='[ABCDGISTW]'
6633 ;;
6634hpux*)
6635 if test "$host_cpu" = ia64; then
6636 symcode='[ABCDEGRST]'
6637 fi
6638 ;;
6639irix* | nonstopux*)
6640 symcode='[BCDEGRST]'
6641 ;;
6642osf*)
6643 symcode='[BCDEGQRST]'
6644 ;;
6645solaris*)
6646 symcode='[BDRT]'
6647 ;;
6648sco3.2v5*)
6649 symcode='[DT]'
6650 ;;
6651sysv4.2uw2*)
6652 symcode='[DT]'
6653 ;;
6654sysv5* | sco5v6* | unixware* | OpenUNIX*)
6655 symcode='[ABDT]'
6656 ;;
6657sysv4)
6658 symcode='[DFNSTU]'
6659 ;;
6660esac
6661
6662# If we're using GNU nm, then use its standard symbol codes.
6663case `$NM -V 2>&1` in
6664*GNU* | *'with BFD'*)
6665 symcode='[ABCDGIRSTW]' ;;
6666esac
6667
6668# Transform an extracted symbol line into a proper C declaration.
6669# Some systems (esp. on ia64) link data and code symbols differently,
6670# so use this general approach.
6671lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6672
6673# Transform an extracted symbol line into symbol name and symbol address
6674lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 6675lt_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
6676
6677# Handle CRLF in mingw tool chain
6678opt_cr=
6679case $build_os in
6680mingw*)
6681 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6682 ;;
6683esac
6684
6685# Try without a prefix underscore, then with it.
6686for ac_symprfx in "" "_"; do
6687
6688 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6689 symxfrm="\\1 $ac_symprfx\\2 \\2"
6690
6691 # Write the raw and C identifiers.
6692 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6693 # Fake it for dumpbin and say T for any non-static function
6694 # and D for any global variable.
6695 # Also find C++ and __fastcall symbols from MSVC++,
6696 # which start with @ or ?.
6697 lt_cv_sys_global_symbol_pipe="$AWK '"\
6698" {last_section=section; section=\$ 3};"\
6699" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6700" \$ 0!~/External *\|/{next};"\
6701" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6702" {if(hide[section]) next};"\
6703" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6704" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6705" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6706" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6707" ' prfx=^$ac_symprfx"
6708 else
6709 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6710 fi
6711
6712 # Check to see that the pipe works correctly.
6713 pipe_works=no
6714
6715 rm -f conftest*
6716 cat > conftest.$ac_ext <<_LT_EOF
6717#ifdef __cplusplus
6718extern "C" {
6719#endif
6720char nm_test_var;
6721void nm_test_func(void);
6722void nm_test_func(void){}
6723#ifdef __cplusplus
ce2cded5 6724}
7357c5b6
AM
6725#endif
6726int main(){nm_test_var='a';nm_test_func();return(0);}
6727_LT_EOF
6728
81ecdfbb 6729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6730 (eval $ac_compile) 2>&5
ce2cded5 6731 ac_status=$?
81ecdfbb
RW
6732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6733 test $ac_status = 0; }; then
7357c5b6
AM
6734 # Now try to grab the symbols.
6735 nlist=conftest.nm
81ecdfbb 6736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7357c5b6 6737 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
ce2cded5 6738 ac_status=$?
81ecdfbb
RW
6739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6740 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6741 # Try sorting and uniquifying the output.
6742 if sort "$nlist" | uniq > "$nlist"T; then
6743 mv -f "$nlist"T "$nlist"
6744 else
6745 rm -f "$nlist"T
6746 fi
6bf9431b 6747
7357c5b6
AM
6748 # Make sure that we snagged all the symbols we need.
6749 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6750 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6751 cat <<_LT_EOF > conftest.$ac_ext
6752#ifdef __cplusplus
6753extern "C" {
6754#endif
d7040cdb 6755
7357c5b6
AM
6756_LT_EOF
6757 # Now generate the symbol file.
6758 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 6759
7357c5b6 6760 cat <<_LT_EOF >> conftest.$ac_ext
ac48eca1 6761
7357c5b6
AM
6762/* The mapping between symbol names and symbols. */
6763const struct {
6764 const char *name;
6765 void *address;
6766}
6767lt__PROGRAM__LTX_preloaded_symbols[] =
6768{
6769 { "@PROGRAM@", (void *) 0 },
6770_LT_EOF
6771 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6772 cat <<\_LT_EOF >> conftest.$ac_ext
6773 {0, (void *) 0}
6774};
d7040cdb 6775
7357c5b6
AM
6776/* This works around a problem in FreeBSD linker */
6777#ifdef FREEBSD_WORKAROUND
6778static const void *lt_preloaded_setup() {
6779 return lt__PROGRAM__LTX_preloaded_symbols;
6780}
ce2cded5 6781#endif
d7040cdb 6782
7357c5b6 6783#ifdef __cplusplus
ce2cded5 6784}
7357c5b6
AM
6785#endif
6786_LT_EOF
6787 # Now try linking the two files.
6788 mv conftest.$ac_objext conftstm.$ac_objext
6789 lt_save_LIBS="$LIBS"
6790 lt_save_CFLAGS="$CFLAGS"
6791 LIBS="conftstm.$ac_objext"
6792 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
6794 (eval $ac_link) 2>&5
6795 ac_status=$?
81ecdfbb
RW
6796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6798 pipe_works=yes
6799 fi
6800 LIBS="$lt_save_LIBS"
6801 CFLAGS="$lt_save_CFLAGS"
6802 else
6803 echo "cannot find nm_test_func in $nlist" >&5
6804 fi
6805 else
6806 echo "cannot find nm_test_var in $nlist" >&5
6807 fi
6808 else
6809 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6810 fi
6811 else
6812 echo "$progname: failed program was:" >&5
6813 cat conftest.$ac_ext >&5
6814 fi
b214d478 6815 rm -rf conftest* conftst*
7357c5b6
AM
6816
6817 # Do not use the global_symbol_pipe unless it works.
6818 if test "$pipe_works" = yes; then
6819 break
6820 else
6821 lt_cv_sys_global_symbol_pipe=
6822 fi
6823done
d7040cdb 6824
ce2cded5 6825fi
7357c5b6
AM
6826
6827if test -z "$lt_cv_sys_global_symbol_pipe"; then
6828 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 6829fi
7357c5b6 6830if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6832$as_echo "failed" >&6; }
7357c5b6 6833else
81ecdfbb
RW
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6835$as_echo "ok" >&6; }
ce2cded5 6836fi
d7040cdb 6837
d7040cdb 6838
d7040cdb 6839
d7040cdb 6840
d7040cdb 6841
d7040cdb 6842
d7040cdb 6843
d7040cdb 6844
d7040cdb 6845
d7040cdb 6846
d7040cdb 6847
d7040cdb 6848
7357c5b6
AM
6849
6850
6851
b214d478
SE
6852
6853
6854
6855
6856
7357c5b6
AM
6857
6858
81ecdfbb
RW
6859# Check whether --enable-libtool-lock was given.
6860if test "${enable_libtool_lock+set}" = set; then :
6861 enableval=$enable_libtool_lock;
6862fi
7357c5b6 6863
7357c5b6
AM
6864test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6865
6866# Some flags need to be propagated to the compiler or linker for good
6867# libtool support.
6868case $host in
6869ia64-*-hpux*)
6870 # Find out which ABI we are using.
6871 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6873 (eval $ac_compile) 2>&5
6874 ac_status=$?
81ecdfbb
RW
6875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6876 test $ac_status = 0; }; then
7357c5b6
AM
6877 case `/usr/bin/file conftest.$ac_objext` in
6878 *ELF-32*)
6879 HPUX_IA64_MODE="32"
6880 ;;
6881 *ELF-64*)
6882 HPUX_IA64_MODE="64"
6883 ;;
6884 esac
6885 fi
6886 rm -rf conftest*
6887 ;;
6888*-*-irix6*)
6889 # Find out which ABI we are using.
3388710e 6890 echo '#line 6890 "configure"' > conftest.$ac_ext
81ecdfbb 6891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6892 (eval $ac_compile) 2>&5
6893 ac_status=$?
81ecdfbb
RW
6894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6895 test $ac_status = 0; }; then
7357c5b6
AM
6896 if test "$lt_cv_prog_gnu_ld" = yes; then
6897 case `/usr/bin/file conftest.$ac_objext` in
6898 *32-bit*)
6899 LD="${LD-ld} -melf32bsmip"
6900 ;;
6901 *N32*)
6902 LD="${LD-ld} -melf32bmipn32"
6903 ;;
6904 *64-bit*)
6905 LD="${LD-ld} -melf64bmip"
6906 ;;
6907 esac
6908 else
6909 case `/usr/bin/file conftest.$ac_objext` in
6910 *32-bit*)
6911 LD="${LD-ld} -32"
6912 ;;
6913 *N32*)
6914 LD="${LD-ld} -n32"
6915 ;;
6916 *64-bit*)
6917 LD="${LD-ld} -64"
6918 ;;
6919 esac
6920 fi
6921 fi
6922 rm -rf conftest*
6923 ;;
6924
6925x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6926s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6927 # Find out which ABI we are using.
6928 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6930 (eval $ac_compile) 2>&5
6931 ac_status=$?
81ecdfbb
RW
6932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6933 test $ac_status = 0; }; then
7357c5b6
AM
6934 case `/usr/bin/file conftest.o` in
6935 *32-bit*)
6936 case $host in
6937 x86_64-*kfreebsd*-gnu)
6938 LD="${LD-ld} -m elf_i386_fbsd"
6939 ;;
6940 x86_64-*linux*)
6941 LD="${LD-ld} -m elf_i386"
6942 ;;
6943 ppc64-*linux*|powerpc64-*linux*)
6944 LD="${LD-ld} -m elf32ppclinux"
6945 ;;
6946 s390x-*linux*)
6947 LD="${LD-ld} -m elf_s390"
6948 ;;
6949 sparc64-*linux*)
6950 LD="${LD-ld} -m elf32_sparc"
6951 ;;
6952 esac
6953 ;;
6954 *64-bit*)
6955 case $host in
6956 x86_64-*kfreebsd*-gnu)
6957 LD="${LD-ld} -m elf_x86_64_fbsd"
6958 ;;
6959 x86_64-*linux*)
6960 LD="${LD-ld} -m elf_x86_64"
6961 ;;
6962 ppc*-*linux*|powerpc*-*linux*)
6963 LD="${LD-ld} -m elf64ppc"
6964 ;;
6965 s390*-*linux*|s390*-*tpf*)
6966 LD="${LD-ld} -m elf64_s390"
6967 ;;
6968 sparc*-*linux*)
6969 LD="${LD-ld} -m elf64_sparc"
6970 ;;
6971 esac
6972 ;;
6973 esac
6974 fi
6975 rm -rf conftest*
6976 ;;
6977
6978*-*-sco3.2v5*)
6979 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6980 SAVE_CFLAGS="$CFLAGS"
6981 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6983$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6984if test "${lt_cv_cc_needs_belf+set}" = set; then :
6985 $as_echo_n "(cached) " >&6
ce2cded5 6986else
7357c5b6
AM
6987 ac_ext=c
6988ac_cpp='$CPP $CPPFLAGS'
6989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6991ac_compiler_gnu=$ac_cv_c_compiler_gnu
6992
81ecdfbb 6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6bf9431b 6994/* end confdefs.h. */
20e95c23 6995
7357c5b6
AM
6996int
6997main ()
6998{
6999
7000 ;
7001 return 0;
7002}
6bf9431b 7003_ACEOF
81ecdfbb 7004if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7005 lt_cv_cc_needs_belf=yes
6bf9431b 7006else
81ecdfbb 7007 lt_cv_cc_needs_belf=no
ce2cded5 7008fi
81ecdfbb
RW
7009rm -f core conftest.err conftest.$ac_objext \
7010 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7011 ac_ext=c
7012ac_cpp='$CPP $CPPFLAGS'
7013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7015ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 7016
b214d478 7017fi
81ecdfbb
RW
7018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7019$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
7020 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7021 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7022 CFLAGS="$SAVE_CFLAGS"
7023 fi
7024 ;;
7025sparc*-*solaris*)
7026 # Find out which ABI we are using.
7027 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
7029 (eval $ac_compile) 2>&5
7030 ac_status=$?
81ecdfbb
RW
7031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7032 test $ac_status = 0; }; then
b214d478
SE
7033 case `/usr/bin/file conftest.o` in
7034 *64-bit*)
7035 case $lt_cv_prog_gnu_ld in
7036 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7037 *)
7038 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7039 LD="${LD-ld} -64"
7040 fi
7041 ;;
7042 esac
7043 ;;
7044 esac
7045 fi
7046 rm -rf conftest*
7047 ;;
7048esac
7049
7050need_locks="$enable_libtool_lock"
7051
7052
7053 case $host_os in
7054 rhapsody* | darwin*)
7055 if test -n "$ac_tool_prefix"; then
7056 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7057set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059$as_echo_n "checking for $ac_word... " >&6; }
7060if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7061 $as_echo_n "(cached) " >&6
b214d478
SE
7062else
7063 if test -n "$DSYMUTIL"; then
7064 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7065else
7066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067for as_dir in $PATH
7068do
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7073 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7075 break 2
7076 fi
7077done
81ecdfbb
RW
7078 done
7079IFS=$as_save_IFS
b214d478
SE
7080
7081fi
7082fi
7083DSYMUTIL=$ac_cv_prog_DSYMUTIL
7084if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7086$as_echo "$DSYMUTIL" >&6; }
b214d478 7087else
81ecdfbb
RW
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089$as_echo "no" >&6; }
b214d478
SE
7090fi
7091
81ecdfbb 7092
b214d478
SE
7093fi
7094if test -z "$ac_cv_prog_DSYMUTIL"; then
7095 ac_ct_DSYMUTIL=$DSYMUTIL
7096 # Extract the first word of "dsymutil", so it can be a program name with args.
7097set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099$as_echo_n "checking for $ac_word... " >&6; }
7100if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7101 $as_echo_n "(cached) " >&6
b214d478
SE
7102else
7103 if test -n "$ac_ct_DSYMUTIL"; then
7104 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7105else
7106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107for as_dir in $PATH
7108do
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7113 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7115 break 2
7116 fi
7117done
81ecdfbb
RW
7118 done
7119IFS=$as_save_IFS
b214d478 7120
b214d478
SE
7121fi
7122fi
7123ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7124if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7126$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 7127else
81ecdfbb
RW
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129$as_echo "no" >&6; }
b214d478
SE
7130fi
7131
81ecdfbb
RW
7132 if test "x$ac_ct_DSYMUTIL" = x; then
7133 DSYMUTIL=":"
7134 else
7135 case $cross_compiling:$ac_tool_warned in
7136yes:)
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7139ac_tool_warned=yes ;;
7140esac
7141 DSYMUTIL=$ac_ct_DSYMUTIL
7142 fi
b214d478
SE
7143else
7144 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7145fi
7146
7147 if test -n "$ac_tool_prefix"; then
7148 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7149set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151$as_echo_n "checking for $ac_word... " >&6; }
7152if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7153 $as_echo_n "(cached) " >&6
b214d478
SE
7154else
7155 if test -n "$NMEDIT"; then
7156 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7157else
7158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH
7160do
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7165 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7167 break 2
7168 fi
7169done
81ecdfbb
RW
7170 done
7171IFS=$as_save_IFS
b214d478
SE
7172
7173fi
7174fi
7175NMEDIT=$ac_cv_prog_NMEDIT
7176if test -n "$NMEDIT"; then
81ecdfbb
RW
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7178$as_echo "$NMEDIT" >&6; }
b214d478 7179else
81ecdfbb
RW
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181$as_echo "no" >&6; }
b214d478
SE
7182fi
7183
81ecdfbb 7184
b214d478
SE
7185fi
7186if test -z "$ac_cv_prog_NMEDIT"; then
7187 ac_ct_NMEDIT=$NMEDIT
7188 # Extract the first word of "nmedit", so it can be a program name with args.
7189set dummy nmedit; ac_word=$2
81ecdfbb
RW
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191$as_echo_n "checking for $ac_word... " >&6; }
7192if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7193 $as_echo_n "(cached) " >&6
b214d478
SE
7194else
7195 if test -n "$ac_ct_NMEDIT"; then
7196 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7197else
7198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199for as_dir in $PATH
7200do
7201 IFS=$as_save_IFS
7202 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7205 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7207 break 2
7208 fi
7209done
81ecdfbb
RW
7210 done
7211IFS=$as_save_IFS
b214d478 7212
b214d478
SE
7213fi
7214fi
7215ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7216if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7218$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 7219else
81ecdfbb
RW
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221$as_echo "no" >&6; }
b214d478
SE
7222fi
7223
81ecdfbb
RW
7224 if test "x$ac_ct_NMEDIT" = x; then
7225 NMEDIT=":"
7226 else
7227 case $cross_compiling:$ac_tool_warned in
7228yes:)
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7231ac_tool_warned=yes ;;
7232esac
7233 NMEDIT=$ac_ct_NMEDIT
7234 fi
b214d478
SE
7235else
7236 NMEDIT="$ac_cv_prog_NMEDIT"
7237fi
7238
7239 if test -n "$ac_tool_prefix"; then
7240 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7241set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243$as_echo_n "checking for $ac_word... " >&6; }
7244if test "${ac_cv_prog_LIPO+set}" = set; then :
7245 $as_echo_n "(cached) " >&6
b214d478
SE
7246else
7247 if test -n "$LIPO"; then
7248 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7249else
7250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251for as_dir in $PATH
7252do
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7257 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7259 break 2
7260 fi
7261done
81ecdfbb
RW
7262 done
7263IFS=$as_save_IFS
b214d478
SE
7264
7265fi
7266fi
7267LIPO=$ac_cv_prog_LIPO
7268if test -n "$LIPO"; then
81ecdfbb
RW
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7270$as_echo "$LIPO" >&6; }
b214d478 7271else
81ecdfbb
RW
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273$as_echo "no" >&6; }
b214d478
SE
7274fi
7275
81ecdfbb 7276
b214d478
SE
7277fi
7278if test -z "$ac_cv_prog_LIPO"; then
7279 ac_ct_LIPO=$LIPO
7280 # Extract the first word of "lipo", so it can be a program name with args.
7281set dummy lipo; ac_word=$2
81ecdfbb
RW
7282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283$as_echo_n "checking for $ac_word... " >&6; }
7284if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7285 $as_echo_n "(cached) " >&6
b214d478
SE
7286else
7287 if test -n "$ac_ct_LIPO"; then
7288 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7289else
7290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291for as_dir in $PATH
7292do
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7297 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7299 break 2
7300 fi
7301done
81ecdfbb
RW
7302 done
7303IFS=$as_save_IFS
b214d478 7304
b214d478
SE
7305fi
7306fi
7307ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7308if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7310$as_echo "$ac_ct_LIPO" >&6; }
b214d478 7311else
81ecdfbb
RW
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313$as_echo "no" >&6; }
b214d478
SE
7314fi
7315
81ecdfbb
RW
7316 if test "x$ac_ct_LIPO" = x; then
7317 LIPO=":"
7318 else
7319 case $cross_compiling:$ac_tool_warned in
7320yes:)
7321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7323ac_tool_warned=yes ;;
7324esac
7325 LIPO=$ac_ct_LIPO
7326 fi
b214d478
SE
7327else
7328 LIPO="$ac_cv_prog_LIPO"
7329fi
7330
7331 if test -n "$ac_tool_prefix"; then
7332 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7333set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335$as_echo_n "checking for $ac_word... " >&6; }
7336if test "${ac_cv_prog_OTOOL+set}" = set; then :
7337 $as_echo_n "(cached) " >&6
b214d478
SE
7338else
7339 if test -n "$OTOOL"; then
7340 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7341else
7342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343for as_dir in $PATH
7344do
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7349 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7351 break 2
7352 fi
7353done
81ecdfbb
RW
7354 done
7355IFS=$as_save_IFS
b214d478
SE
7356
7357fi
7358fi
7359OTOOL=$ac_cv_prog_OTOOL
7360if test -n "$OTOOL"; then
81ecdfbb
RW
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7362$as_echo "$OTOOL" >&6; }
b214d478 7363else
81ecdfbb
RW
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365$as_echo "no" >&6; }
b214d478
SE
7366fi
7367
81ecdfbb 7368
b214d478
SE
7369fi
7370if test -z "$ac_cv_prog_OTOOL"; then
7371 ac_ct_OTOOL=$OTOOL
7372 # Extract the first word of "otool", so it can be a program name with args.
7373set dummy otool; ac_word=$2
81ecdfbb
RW
7374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375$as_echo_n "checking for $ac_word... " >&6; }
7376if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7377 $as_echo_n "(cached) " >&6
b214d478
SE
7378else
7379 if test -n "$ac_ct_OTOOL"; then
7380 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7381else
7382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383for as_dir in $PATH
7384do
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7389 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7391 break 2
7392 fi
7393done
81ecdfbb
RW
7394 done
7395IFS=$as_save_IFS
b214d478 7396
b214d478
SE
7397fi
7398fi
7399ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7400if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7402$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 7403else
81ecdfbb
RW
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405$as_echo "no" >&6; }
b214d478
SE
7406fi
7407
81ecdfbb
RW
7408 if test "x$ac_ct_OTOOL" = x; then
7409 OTOOL=":"
7410 else
7411 case $cross_compiling:$ac_tool_warned in
7412yes:)
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7415ac_tool_warned=yes ;;
7416esac
7417 OTOOL=$ac_ct_OTOOL
7418 fi
b214d478
SE
7419else
7420 OTOOL="$ac_cv_prog_OTOOL"
7421fi
7422
7423 if test -n "$ac_tool_prefix"; then
7424 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7425set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7427$as_echo_n "checking for $ac_word... " >&6; }
7428if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7429 $as_echo_n "(cached) " >&6
b214d478
SE
7430else
7431 if test -n "$OTOOL64"; then
7432 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7433else
7434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435for as_dir in $PATH
7436do
7437 IFS=$as_save_IFS
7438 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7441 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7443 break 2
7444 fi
7445done
81ecdfbb
RW
7446 done
7447IFS=$as_save_IFS
b214d478
SE
7448
7449fi
7450fi
7451OTOOL64=$ac_cv_prog_OTOOL64
7452if test -n "$OTOOL64"; then
81ecdfbb
RW
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7454$as_echo "$OTOOL64" >&6; }
b214d478 7455else
81ecdfbb
RW
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457$as_echo "no" >&6; }
b214d478
SE
7458fi
7459
81ecdfbb 7460
b214d478
SE
7461fi
7462if test -z "$ac_cv_prog_OTOOL64"; then
7463 ac_ct_OTOOL64=$OTOOL64
7464 # Extract the first word of "otool64", so it can be a program name with args.
7465set dummy otool64; ac_word=$2
81ecdfbb
RW
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467$as_echo_n "checking for $ac_word... " >&6; }
7468if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7469 $as_echo_n "(cached) " >&6
b214d478
SE
7470else
7471 if test -n "$ac_ct_OTOOL64"; then
7472 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7473else
7474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7481 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7483 break 2
7484 fi
7485done
81ecdfbb
RW
7486 done
7487IFS=$as_save_IFS
b214d478 7488
b214d478
SE
7489fi
7490fi
7491ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7492if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7494$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 7495else
81ecdfbb
RW
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497$as_echo "no" >&6; }
b214d478
SE
7498fi
7499
81ecdfbb
RW
7500 if test "x$ac_ct_OTOOL64" = x; then
7501 OTOOL64=":"
7502 else
7503 case $cross_compiling:$ac_tool_warned in
7504yes:)
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7507ac_tool_warned=yes ;;
7508esac
7509 OTOOL64=$ac_ct_OTOOL64
7510 fi
b214d478
SE
7511else
7512 OTOOL64="$ac_cv_prog_OTOOL64"
7513fi
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
81ecdfbb
RW
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7542$as_echo_n "checking for -single_module linker flag... " >&6; }
7543if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7544 $as_echo_n "(cached) " >&6
b214d478
SE
7545else
7546 lt_cv_apple_cc_single_mod=no
7547 if test -z "${LT_MULTI_MODULE}"; then
7548 # By default we will add the -single_module flag. You can override
7549 # by either setting the environment variable LT_MULTI_MODULE
7550 # non-empty at configure time, or by adding -multi_module to the
7551 # link flags.
7552 rm -rf libconftest.dylib*
7553 echo "int foo(void){return 1;}" > conftest.c
7554 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7555-dynamiclib -Wl,-single_module conftest.c" >&5
7556 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7557 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7558 _lt_result=$?
7559 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7560 lt_cv_apple_cc_single_mod=yes
7561 else
7562 cat conftest.err >&5
7563 fi
7564 rm -rf libconftest.dylib*
7565 rm -f conftest.*
7566 fi
7567fi
81ecdfbb
RW
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7569$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7571$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7572if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7573 $as_echo_n "(cached) " >&6
b214d478
SE
7574else
7575 lt_cv_ld_exported_symbols_list=no
7576 save_LDFLAGS=$LDFLAGS
7577 echo "_main" > conftest.sym
7578 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
7580/* end confdefs.h. */
7581
7582int
7583main ()
7584{
7585
7586 ;
7587 return 0;
7588}
7589_ACEOF
81ecdfbb 7590if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
7591 lt_cv_ld_exported_symbols_list=yes
7592else
81ecdfbb 7593 lt_cv_ld_exported_symbols_list=no
b214d478 7594fi
81ecdfbb
RW
7595rm -f core conftest.err conftest.$ac_objext \
7596 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
7597 LDFLAGS="$save_LDFLAGS"
7598
7599fi
81ecdfbb
RW
7600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7601$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
b214d478
SE
7602 case $host_os in
7603 rhapsody* | darwin1.[012])
7604 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7605 darwin1.*)
7606 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7607 darwin*) # darwin 5.x on
7608 # if running on 10.5 or later, the deployment target defaults
7609 # to the OS version, if on x86, and 10.4, the deployment
7610 # target defaults to 10.4. Don't you love it?
7611 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7612 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7613 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7614 10.[012]*)
7615 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7616 10.*)
7617 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7618 esac
7619 ;;
7620 esac
7621 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7622 _lt_dar_single_mod='$single_module'
7623 fi
7624 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7625 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7626 else
7627 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7628 fi
7629 if test "$DSYMUTIL" != ":"; then
7630 _lt_dsymutil='~$DSYMUTIL $lib || :'
7631 else
7632 _lt_dsymutil=
7633 fi
7634 ;;
7635 esac
7636
b214d478 7637for ac_header in dlfcn.h
81ecdfbb
RW
7638do :
7639 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7640"
7641if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
b214d478 7642 cat >>confdefs.h <<_ACEOF
81ecdfbb 7643#define HAVE_DLFCN_H 1
b214d478
SE
7644_ACEOF
7645
7646fi
7647
7648done
7649
7650
7651
7652# Set options
7653
7654
7655
7656 enable_dlopen=no
7657
7658
7659 enable_win32_dll=no
7660
7661
81ecdfbb
RW
7662 # Check whether --enable-shared was given.
7663if test "${enable_shared+set}" = set; then :
7664 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
7665 case $enableval in
7666 yes) enable_shared=yes ;;
7667 no) enable_shared=no ;;
7668 *)
7669 enable_shared=no
7670 # Look at the argument we got. We use all the common list separators.
7671 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7672 for pkg in $enableval; do
7673 IFS="$lt_save_ifs"
7674 if test "X$pkg" = "X$p"; then
7675 enable_shared=yes
7676 fi
7677 done
7678 IFS="$lt_save_ifs"
7679 ;;
7680 esac
7681else
7682 enable_shared=yes
81ecdfbb
RW
7683fi
7684
b214d478
SE
7685
7686
7687
7688
7689
7690
7691
7692
81ecdfbb
RW
7693 # Check whether --enable-static was given.
7694if test "${enable_static+set}" = set; then :
7695 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
7696 case $enableval in
7697 yes) enable_static=yes ;;
7698 no) enable_static=no ;;
7699 *)
7700 enable_static=no
7701 # Look at the argument we got. We use all the common list separators.
7702 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7703 for pkg in $enableval; do
7704 IFS="$lt_save_ifs"
7705 if test "X$pkg" = "X$p"; then
7706 enable_static=yes
7707 fi
7708 done
7709 IFS="$lt_save_ifs"
7710 ;;
7711 esac
7712else
7713 enable_static=yes
81ecdfbb
RW
7714fi
7715
b214d478
SE
7716
7717
7718
7719
7720
7721
7722
7723
7724
81ecdfbb
RW
7725# Check whether --with-pic was given.
7726if test "${with_pic+set}" = set; then :
7727 withval=$with_pic; pic_mode="$withval"
b214d478
SE
7728else
7729 pic_mode=default
81ecdfbb
RW
7730fi
7731
b214d478
SE
7732
7733test -z "$pic_mode" && pic_mode=default
7734
7735
7736
7737
7738
7739
7740
81ecdfbb
RW
7741 # Check whether --enable-fast-install was given.
7742if test "${enable_fast_install+set}" = set; then :
7743 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
7744 case $enableval in
7745 yes) enable_fast_install=yes ;;
7746 no) enable_fast_install=no ;;
7747 *)
7748 enable_fast_install=no
7749 # Look at the argument we got. We use all the common list separators.
7750 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7751 for pkg in $enableval; do
7752 IFS="$lt_save_ifs"
7753 if test "X$pkg" = "X$p"; then
7754 enable_fast_install=yes
7755 fi
7756 done
7757 IFS="$lt_save_ifs"
7357c5b6
AM
7758 ;;
7759 esac
b214d478
SE
7760else
7761 enable_fast_install=yes
81ecdfbb
RW
7762fi
7763
d7040cdb 7764
ce2cded5
L
7765
7766
ce2cded5 7767
252b5132 7768
d7040cdb 7769
252b5132 7770
6bf9431b 7771
252b5132 7772
6bf9431b 7773
ce2cded5
L
7774# This can be used to rebuild libtool when needed
7775LIBTOOL_DEPS="$ltmain"
6bf9431b 7776
ce2cded5
L
7777# Always use our own libtool.
7778LIBTOOL='$(SHELL) $(top_builddir)/libtool'
252b5132 7779
6bf9431b 7780
252b5132 7781
6bf9431b 7782
252b5132 7783
252b5132 7784
d7040cdb 7785
6bf9431b 7786
252b5132 7787
d7040cdb 7788
d7040cdb 7789
d7040cdb 7790
d7040cdb 7791
d7040cdb 7792
d7040cdb 7793
d7040cdb 7794
d7040cdb 7795
d7040cdb 7796
d7040cdb 7797
d7040cdb 7798
d7040cdb
SE
7799
7800
7801
7802
7803
ce2cded5 7804test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
ce2cded5
L
7819if test -n "${ZSH_VERSION+set}" ; then
7820 setopt NO_GLOB_SUBST
7821fi
d7040cdb 7822
81ecdfbb
RW
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7824$as_echo_n "checking for objdir... " >&6; }
7825if test "${lt_cv_objdir+set}" = set; then :
7826 $as_echo_n "(cached) " >&6
ce2cded5
L
7827else
7828 rm -f .libs 2>/dev/null
7829mkdir .libs 2>/dev/null
7830if test -d .libs; then
7831 lt_cv_objdir=.libs
7832else
7833 # MS-DOS does not allow filenames that begin with a dot.
7834 lt_cv_objdir=_libs
7835fi
7836rmdir .libs 2>/dev/null
7837fi
81ecdfbb
RW
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7839$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 7840objdir=$lt_cv_objdir
d7040cdb
SE
7841
7842
7843
7844
7845
ce2cded5
L
7846cat >>confdefs.h <<_ACEOF
7847#define LT_OBJDIR "$lt_cv_objdir/"
7848_ACEOF
d7040cdb
SE
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
ce2cded5
L
7866case $host_os in
7867aix3*)
7868 # AIX sometimes has problems with the GCC collect2 program. For some
7869 # reason, if we set the COLLECT_NAMES environment variable, the problems
7870 # vanish in a puff of smoke.
7871 if test "X${COLLECT_NAMES+set}" != Xset; then
7872 COLLECT_NAMES=
7873 export COLLECT_NAMES
7874 fi
7875 ;;
7876esac
d7040cdb 7877
ce2cded5
L
7878# Sed substitution that helps us do robust quoting. It backslashifies
7879# metacharacters that are still active within double-quoted strings.
7880sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 7881
ce2cded5
L
7882# Same as above, but do not quote variable references.
7883double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 7884
ce2cded5
L
7885# Sed substitution to delay expansion of an escaped shell variable in a
7886# double_quote_subst'ed string.
7887delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 7888
ce2cded5
L
7889# Sed substitution to delay expansion of an escaped single quote.
7890delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 7891
ce2cded5
L
7892# Sed substitution to avoid accidental globbing in evaled expressions
7893no_glob_subst='s/\*/\\\*/g'
d7040cdb 7894
ce2cded5
L
7895# Global variables:
7896ofile=libtool
7897can_build_shared=yes
d7040cdb 7898
ce2cded5
L
7899# All known linkers require a `.a' archive for static linking (except MSVC,
7900# which needs '.lib').
7901libext=a
d7040cdb 7902
ce2cded5 7903with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7904
ce2cded5
L
7905old_CC="$CC"
7906old_CFLAGS="$CFLAGS"
d7040cdb 7907
ce2cded5
L
7908# Set sane defaults for various variables
7909test -z "$CC" && CC=cc
7910test -z "$LTCC" && LTCC=$CC
7911test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7912test -z "$LD" && LD=ld
7913test -z "$ac_objext" && ac_objext=o
d7040cdb 7914
ce2cded5
L
7915for cc_temp in $compiler""; do
7916 case $cc_temp in
7917 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7918 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7919 \-*) ;;
7920 *) break;;
7921 esac
7922done
7923cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d7040cdb
SE
7924
7925
ce2cded5
L
7926# Only perform the check for file, if the check method requires it
7927test -z "$MAGIC_CMD" && MAGIC_CMD=file
7928case $deplibs_check_method in
7929file_magic*)
7930 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7932$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7933if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7934 $as_echo_n "(cached) " >&6
ce2cded5
L
7935else
7936 case $MAGIC_CMD in
7937[\\/*] | ?:[\\/]*)
7938 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7939 ;;
7940*)
7941 lt_save_MAGIC_CMD="$MAGIC_CMD"
7942 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7943 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7944 for ac_dir in $ac_dummy; do
7945 IFS="$lt_save_ifs"
7946 test -z "$ac_dir" && ac_dir=.
7947 if test -f $ac_dir/${ac_tool_prefix}file; then
7948 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7949 if test -n "$file_magic_test_file"; then
7950 case $deplibs_check_method in
7951 "file_magic "*)
7952 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7953 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7954 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7955 $EGREP "$file_magic_regex" > /dev/null; then
7956 :
7957 else
7958 cat <<_LT_EOF 1>&2
d7040cdb 7959
ce2cded5
L
7960*** Warning: the command libtool uses to detect shared libraries,
7961*** $file_magic_cmd, produces output that libtool cannot recognize.
7962*** The result is that libtool may fail to recognize shared libraries
7963*** as such. This will affect the creation of libtool libraries that
7964*** depend on shared libraries, but programs linked with such libtool
7965*** libraries will work regardless of this problem. Nevertheless, you
7966*** may want to report the problem to your system manager and/or to
7967*** bug-libtool@gnu.org
d7040cdb 7968
ce2cded5
L
7969_LT_EOF
7970 fi ;;
7971 esac
7972 fi
7973 break
7974 fi
7975 done
7976 IFS="$lt_save_ifs"
7977 MAGIC_CMD="$lt_save_MAGIC_CMD"
7978 ;;
7979esac
7980fi
d7040cdb 7981
ce2cded5
L
7982MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7983if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7985$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 7986else
81ecdfbb
RW
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7988$as_echo "no" >&6; }
ce2cded5 7989fi
d7040cdb
SE
7990
7991
7992
7993
7994
ce2cded5
L
7995if test -z "$lt_cv_path_MAGIC_CMD"; then
7996 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7998$as_echo_n "checking for file... " >&6; }
7999if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8000 $as_echo_n "(cached) " >&6
ce2cded5
L
8001else
8002 case $MAGIC_CMD in
8003[\\/*] | ?:[\\/]*)
8004 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8005 ;;
8006*)
8007 lt_save_MAGIC_CMD="$MAGIC_CMD"
8008 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8009 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8010 for ac_dir in $ac_dummy; do
8011 IFS="$lt_save_ifs"
8012 test -z "$ac_dir" && ac_dir=.
8013 if test -f $ac_dir/file; then
8014 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8015 if test -n "$file_magic_test_file"; then
8016 case $deplibs_check_method in
8017 "file_magic "*)
8018 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8020 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8021 $EGREP "$file_magic_regex" > /dev/null; then
8022 :
8023 else
8024 cat <<_LT_EOF 1>&2
d7040cdb 8025
ce2cded5
L
8026*** Warning: the command libtool uses to detect shared libraries,
8027*** $file_magic_cmd, produces output that libtool cannot recognize.
8028*** The result is that libtool may fail to recognize shared libraries
8029*** as such. This will affect the creation of libtool libraries that
8030*** depend on shared libraries, but programs linked with such libtool
8031*** libraries will work regardless of this problem. Nevertheless, you
8032*** may want to report the problem to your system manager and/or to
8033*** bug-libtool@gnu.org
d7040cdb 8034
ce2cded5
L
8035_LT_EOF
8036 fi ;;
8037 esac
8038 fi
8039 break
8040 fi
8041 done
8042 IFS="$lt_save_ifs"
8043 MAGIC_CMD="$lt_save_MAGIC_CMD"
8044 ;;
8045esac
8046fi
d7040cdb 8047
ce2cded5
L
8048MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8049if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8051$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8052else
81ecdfbb
RW
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054$as_echo "no" >&6; }
ce2cded5 8055fi
d7040cdb
SE
8056
8057
ce2cded5
L
8058 else
8059 MAGIC_CMD=:
8060 fi
8061fi
d7040cdb 8062
ce2cded5
L
8063 fi
8064 ;;
8065esac
d7040cdb 8066
ce2cded5 8067# Use C for the default configuration in the libtool script
d7040cdb 8068
ce2cded5
L
8069lt_save_CC="$CC"
8070ac_ext=c
8071ac_cpp='$CPP $CPPFLAGS'
8072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8074ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8075
8076
ce2cded5
L
8077# Source file extension for C test sources.
8078ac_ext=c
d7040cdb 8079
ce2cded5
L
8080# Object file extension for compiled C test sources.
8081objext=o
8082objext=$objext
d7040cdb 8083
ce2cded5
L
8084# Code to be used in simple compile tests
8085lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 8086
ce2cded5
L
8087# Code to be used in simple link tests
8088lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
8089
8090
8091
8092
8093
8094
8095
ce2cded5
L
8096# If no C compiler was specified, use CC.
8097LTCC=${LTCC-"$CC"}
d7040cdb 8098
ce2cded5
L
8099# If no C compiler flags were specified, use CFLAGS.
8100LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 8101
ce2cded5
L
8102# Allow CC to be a program name with arguments.
8103compiler=$CC
d7040cdb 8104
ce2cded5
L
8105# Save the default compiler, since it gets overwritten when the other
8106# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8107compiler_DEFAULT=$CC
d7040cdb 8108
ce2cded5
L
8109# save warnings/boilerplate of simple test code
8110ac_outfile=conftest.$ac_objext
8111echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8112eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8113_lt_compiler_boilerplate=`cat conftest.err`
8114$RM conftest*
d7040cdb 8115
ce2cded5
L
8116ac_outfile=conftest.$ac_objext
8117echo "$lt_simple_link_test_code" >conftest.$ac_ext
8118eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8119_lt_linker_boilerplate=`cat conftest.err`
b214d478 8120$RM -r conftest*
d7040cdb
SE
8121
8122
ce2cded5
L
8123## CAVEAT EMPTOR:
8124## There is no encapsulation within the following macros, do not change
8125## the running order or otherwise move them around unless you know exactly
8126## what you are doing...
8127if test -n "$compiler"; then
d7040cdb 8128
ce2cded5 8129lt_prog_compiler_no_builtin_flag=
d7040cdb 8130
ce2cded5
L
8131if test "$GCC" = yes; then
8132 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d7040cdb 8133
81ecdfbb
RW
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8135$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8136if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8137 $as_echo_n "(cached) " >&6
ce2cded5
L
8138else
8139 lt_cv_prog_compiler_rtti_exceptions=no
8140 ac_outfile=conftest.$ac_objext
8141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8142 lt_compiler_flag="-fno-rtti -fno-exceptions"
8143 # Insert the option either (1) after the last *FLAGS variable, or
8144 # (2) before a word containing "conftest.", or (3) at the end.
8145 # Note that $ac_compile itself does not contain backslashes and begins
8146 # with a dollar sign (not a hyphen), so the echo should work correctly.
8147 # The option is referenced via a variable to avoid confusing sed.
8148 lt_compile=`echo "$ac_compile" | $SED \
8149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8151 -e 's:$: $lt_compiler_flag:'`
3388710e 8152 (eval echo "\"\$as_me:8152: $lt_compile\"" >&5)
ce2cded5
L
8153 (eval "$lt_compile" 2>conftest.err)
8154 ac_status=$?
8155 cat conftest.err >&5
3388710e 8156 echo "$as_me:8156: \$? = $ac_status" >&5
ce2cded5
L
8157 if (exit $ac_status) && test -s "$ac_outfile"; then
8158 # The compiler can only warn and ignore the option if not recognized
8159 # So say no if there are warnings other than the usual output.
8160 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8162 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8163 lt_cv_prog_compiler_rtti_exceptions=yes
8164 fi
8165 fi
8166 $RM conftest*
d7040cdb 8167
ce2cded5 8168fi
81ecdfbb
RW
8169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8170$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 8171
ce2cded5
L
8172if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8173 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8174else
8175 :
8176fi
d7040cdb 8177
ce2cded5 8178fi
d7040cdb
SE
8179
8180
8181
8182
8183
8184
ce2cded5
L
8185 lt_prog_compiler_wl=
8186lt_prog_compiler_pic=
8187lt_prog_compiler_static=
d7040cdb 8188
81ecdfbb
RW
8189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8190$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 8191
ce2cded5
L
8192 if test "$GCC" = yes; then
8193 lt_prog_compiler_wl='-Wl,'
8194 lt_prog_compiler_static='-static'
d7040cdb 8195
ce2cded5
L
8196 case $host_os in
8197 aix*)
8198 # All AIX code is PIC.
8199 if test "$host_cpu" = ia64; then
8200 # AIX 5 now supports IA64 processor
8201 lt_prog_compiler_static='-Bstatic'
8202 fi
8203 ;;
d7040cdb 8204
ce2cded5 8205 amigaos*)
b214d478
SE
8206 case $host_cpu in
8207 powerpc)
8208 # see comment about AmigaOS4 .so support
8209 lt_prog_compiler_pic='-fPIC'
8210 ;;
8211 m68k)
8212 # FIXME: we need at least 68020 code to build shared libraries, but
8213 # adding the `-m68020' flag to GCC prevents building anything better,
8214 # like `-m68040'.
8215 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8216 ;;
8217 esac
ce2cded5 8218 ;;
d7040cdb 8219
ce2cded5
L
8220 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8221 # PIC is the default for these OSes.
8222 ;;
d7040cdb 8223
b214d478 8224 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8225 # This hack is so that the source file can tell whether it is being
8226 # built for inclusion in a dll (and should export symbols for example).
8227 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8228 # (--disable-auto-import) libraries
8229 lt_prog_compiler_pic='-DDLL_EXPORT'
8230 ;;
d7040cdb 8231
ce2cded5
L
8232 darwin* | rhapsody*)
8233 # PIC is the default on this platform
8234 # Common symbols not allowed in MH_DYLIB files
8235 lt_prog_compiler_pic='-fno-common'
8236 ;;
d7040cdb 8237
ce2cded5 8238 hpux*)
b214d478
SE
8239 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8240 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8241 # sets the default TLS model and affects inlining.
ce2cded5 8242 case $host_cpu in
b214d478 8243 hppa*64*)
ce2cded5
L
8244 # +Z the default
8245 ;;
8246 *)
8247 lt_prog_compiler_pic='-fPIC'
8248 ;;
8249 esac
8250 ;;
d7040cdb 8251
ce2cded5
L
8252 interix[3-9]*)
8253 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8254 # Instead, we relocate shared libraries at runtime.
8255 ;;
d7040cdb 8256
ce2cded5
L
8257 msdosdjgpp*)
8258 # Just because we use GCC doesn't mean we suddenly get shared libraries
8259 # on systems that don't support them.
8260 lt_prog_compiler_can_build_shared=no
8261 enable_shared=no
8262 ;;
d7040cdb 8263
ce2cded5
L
8264 *nto* | *qnx*)
8265 # QNX uses GNU C++, but need to define -shared option too, otherwise
8266 # it will coredump.
8267 lt_prog_compiler_pic='-fPIC -shared'
8268 ;;
d7040cdb 8269
ce2cded5
L
8270 sysv4*MP*)
8271 if test -d /usr/nec; then
8272 lt_prog_compiler_pic=-Kconform_pic
8273 fi
8274 ;;
d7040cdb 8275
ce2cded5
L
8276 *)
8277 lt_prog_compiler_pic='-fPIC'
8278 ;;
8279 esac
8280 else
8281 # PORTME Check for flag to pass linker flags through the system compiler.
8282 case $host_os in
8283 aix*)
8284 lt_prog_compiler_wl='-Wl,'
8285 if test "$host_cpu" = ia64; then
8286 # AIX 5 now supports IA64 processor
8287 lt_prog_compiler_static='-Bstatic'
8288 else
8289 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8290 fi
8291 ;;
d7040cdb 8292
b214d478 8293 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8294 # This hack is so that the source file can tell whether it is being
8295 # built for inclusion in a dll (and should export symbols for example).
8296 lt_prog_compiler_pic='-DDLL_EXPORT'
8297 ;;
d7040cdb 8298
ce2cded5
L
8299 hpux9* | hpux10* | hpux11*)
8300 lt_prog_compiler_wl='-Wl,'
8301 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8302 # not for PA HP-UX.
8303 case $host_cpu in
8304 hppa*64*|ia64*)
8305 # +Z the default
8306 ;;
8307 *)
8308 lt_prog_compiler_pic='+Z'
8309 ;;
8310 esac
8311 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8312 lt_prog_compiler_static='${wl}-a ${wl}archive'
8313 ;;
d7040cdb 8314
ce2cded5
L
8315 irix5* | irix6* | nonstopux*)
8316 lt_prog_compiler_wl='-Wl,'
8317 # PIC (with -KPIC) is the default.
8318 lt_prog_compiler_static='-non_shared'
8319 ;;
d7040cdb 8320
58e24671 8321 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8322 case $cc_basename in
b214d478
SE
8323 # old Intel for x86_64 which still supported -KPIC.
8324 ecc*)
ce2cded5
L
8325 lt_prog_compiler_wl='-Wl,'
8326 lt_prog_compiler_pic='-KPIC'
8327 lt_prog_compiler_static='-static'
8328 ;;
b214d478
SE
8329 # icc used to be incompatible with GCC.
8330 # ICC 10 doesn't accept -KPIC any more.
8331 icc* | ifort*)
8332 lt_prog_compiler_wl='-Wl,'
8333 lt_prog_compiler_pic='-fPIC'
8334 lt_prog_compiler_static='-static'
8335 ;;
8336 # Lahey Fortran 8.1.
8337 lf95*)
8338 lt_prog_compiler_wl='-Wl,'
8339 lt_prog_compiler_pic='--shared'
8340 lt_prog_compiler_static='--static'
8341 ;;
ce2cded5
L
8342 pgcc* | pgf77* | pgf90* | pgf95*)
8343 # Portland Group compilers (*not* the Pentium gcc compiler,
8344 # which looks to be a dead project)
8345 lt_prog_compiler_wl='-Wl,'
8346 lt_prog_compiler_pic='-fpic'
8347 lt_prog_compiler_static='-Bstatic'
8348 ;;
8349 ccc*)
8350 lt_prog_compiler_wl='-Wl,'
8351 # All Alpha code is PIC.
8352 lt_prog_compiler_static='-non_shared'
8353 ;;
b214d478
SE
8354 xl*)
8355 # IBM XL C 8.0/Fortran 10.1 on PPC
8356 lt_prog_compiler_wl='-Wl,'
8357 lt_prog_compiler_pic='-qpic'
8358 lt_prog_compiler_static='-qstaticlink'
8359 ;;
ce2cded5
L
8360 *)
8361 case `$CC -V 2>&1 | sed 5q` in
8362 *Sun\ C*)
8363 # Sun C 5.9
8364 lt_prog_compiler_pic='-KPIC'
8365 lt_prog_compiler_static='-Bstatic'
8366 lt_prog_compiler_wl='-Wl,'
8367 ;;
8368 *Sun\ F*)
8369 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8370 lt_prog_compiler_pic='-KPIC'
8371 lt_prog_compiler_static='-Bstatic'
8372 lt_prog_compiler_wl=''
8373 ;;
8374 esac
8375 ;;
8376 esac
8377 ;;
d7040cdb 8378
ce2cded5
L
8379 newsos6)
8380 lt_prog_compiler_pic='-KPIC'
8381 lt_prog_compiler_static='-Bstatic'
8382 ;;
d7040cdb 8383
ce2cded5
L
8384 *nto* | *qnx*)
8385 # QNX uses GNU C++, but need to define -shared option too, otherwise
8386 # it will coredump.
8387 lt_prog_compiler_pic='-fPIC -shared'
8388 ;;
d7040cdb 8389
ce2cded5
L
8390 osf3* | osf4* | osf5*)
8391 lt_prog_compiler_wl='-Wl,'
8392 # All OSF/1 code is PIC.
8393 lt_prog_compiler_static='-non_shared'
8394 ;;
d7040cdb 8395
ce2cded5
L
8396 rdos*)
8397 lt_prog_compiler_static='-non_shared'
8398 ;;
d7040cdb 8399
ce2cded5
L
8400 solaris*)
8401 lt_prog_compiler_pic='-KPIC'
8402 lt_prog_compiler_static='-Bstatic'
8403 case $cc_basename in
8404 f77* | f90* | f95*)
8405 lt_prog_compiler_wl='-Qoption ld ';;
8406 *)
8407 lt_prog_compiler_wl='-Wl,';;
8408 esac
8409 ;;
d7040cdb 8410
ce2cded5
L
8411 sunos4*)
8412 lt_prog_compiler_wl='-Qoption ld '
8413 lt_prog_compiler_pic='-PIC'
8414 lt_prog_compiler_static='-Bstatic'
8415 ;;
d7040cdb 8416
ce2cded5
L
8417 sysv4 | sysv4.2uw2* | sysv4.3*)
8418 lt_prog_compiler_wl='-Wl,'
8419 lt_prog_compiler_pic='-KPIC'
8420 lt_prog_compiler_static='-Bstatic'
8421 ;;
d7040cdb 8422
ce2cded5
L
8423 sysv4*MP*)
8424 if test -d /usr/nec ;then
8425 lt_prog_compiler_pic='-Kconform_pic'
8426 lt_prog_compiler_static='-Bstatic'
8427 fi
8428 ;;
d7040cdb 8429
ce2cded5
L
8430 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8431 lt_prog_compiler_wl='-Wl,'
8432 lt_prog_compiler_pic='-KPIC'
8433 lt_prog_compiler_static='-Bstatic'
8434 ;;
d7040cdb 8435
ce2cded5
L
8436 unicos*)
8437 lt_prog_compiler_wl='-Wl,'
8438 lt_prog_compiler_can_build_shared=no
8439 ;;
d7040cdb 8440
ce2cded5
L
8441 uts4*)
8442 lt_prog_compiler_pic='-pic'
8443 lt_prog_compiler_static='-Bstatic'
8444 ;;
d7040cdb 8445
ce2cded5
L
8446 *)
8447 lt_prog_compiler_can_build_shared=no
8448 ;;
8449 esac
8450 fi
d7040cdb 8451
ce2cded5
L
8452case $host_os in
8453 # For platforms which do not support PIC, -DPIC is meaningless:
8454 *djgpp*)
8455 lt_prog_compiler_pic=
8456 ;;
8457 *)
8458 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8459 ;;
8460esac
81ecdfbb
RW
8461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8462$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8463
8464
8465
8466
8467
8468
ce2cded5
L
8469#
8470# Check to make sure the PIC flag actually works.
8471#
8472if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8474$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8475if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8476 $as_echo_n "(cached) " >&6
ce2cded5 8477else
b214d478 8478 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8479 ac_outfile=conftest.$ac_objext
8480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8481 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8482 # Insert the option either (1) after the last *FLAGS variable, or
8483 # (2) before a word containing "conftest.", or (3) at the end.
8484 # Note that $ac_compile itself does not contain backslashes and begins
8485 # with a dollar sign (not a hyphen), so the echo should work correctly.
8486 # The option is referenced via a variable to avoid confusing sed.
8487 lt_compile=`echo "$ac_compile" | $SED \
8488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8490 -e 's:$: $lt_compiler_flag:'`
3388710e 8491 (eval echo "\"\$as_me:8491: $lt_compile\"" >&5)
ce2cded5
L
8492 (eval "$lt_compile" 2>conftest.err)
8493 ac_status=$?
8494 cat conftest.err >&5
3388710e 8495 echo "$as_me:8495: \$? = $ac_status" >&5
ce2cded5
L
8496 if (exit $ac_status) && test -s "$ac_outfile"; then
8497 # The compiler can only warn and ignore the option if not recognized
8498 # So say no if there are warnings other than the usual output.
8499 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8501 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8502 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8503 fi
8504 fi
8505 $RM conftest*
d7040cdb 8506
ce2cded5 8507fi
81ecdfbb
RW
8508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8509$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8510
b214d478 8511if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8512 case $lt_prog_compiler_pic in
8513 "" | " "*) ;;
8514 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8515 esac
8516else
8517 lt_prog_compiler_pic=
8518 lt_prog_compiler_can_build_shared=no
8519fi
d7040cdb 8520
ce2cded5 8521fi
d7040cdb
SE
8522
8523
8524
8525
8526
8527
ce2cded5
L
8528#
8529# Check to make sure the static flag actually works.
8530#
8531wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8533$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8534if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8535 $as_echo_n "(cached) " >&6
ce2cded5 8536else
b214d478 8537 lt_cv_prog_compiler_static_works=no
ce2cded5
L
8538 save_LDFLAGS="$LDFLAGS"
8539 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8540 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8541 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8542 # The linker can only warn and ignore the option if not recognized
8543 # So say no if there are warnings
8544 if test -s conftest.err; then
8545 # Append any errors to the config.log.
8546 cat conftest.err 1>&5
8547 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8548 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8549 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8550 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8551 fi
8552 else
b214d478 8553 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8554 fi
8555 fi
b214d478 8556 $RM -r conftest*
ce2cded5 8557 LDFLAGS="$save_LDFLAGS"
d7040cdb 8558
ce2cded5 8559fi
81ecdfbb
RW
8560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8561$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8562
b214d478 8563if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
8564 :
8565else
8566 lt_prog_compiler_static=
8567fi
d7040cdb
SE
8568
8569
8570
8571
8572
8573
8574
81ecdfbb
RW
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8576$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8577if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
ce2cded5
L
8579else
8580 lt_cv_prog_compiler_c_o=no
8581 $RM -r conftest 2>/dev/null
8582 mkdir conftest
8583 cd conftest
8584 mkdir out
8585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8586
ce2cded5
L
8587 lt_compiler_flag="-o out/conftest2.$ac_objext"
8588 # Insert the option either (1) after the last *FLAGS variable, or
8589 # (2) before a word containing "conftest.", or (3) at the end.
8590 # Note that $ac_compile itself does not contain backslashes and begins
8591 # with a dollar sign (not a hyphen), so the echo should work correctly.
8592 lt_compile=`echo "$ac_compile" | $SED \
8593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8595 -e 's:$: $lt_compiler_flag:'`
3388710e 8596 (eval echo "\"\$as_me:8596: $lt_compile\"" >&5)
ce2cded5
L
8597 (eval "$lt_compile" 2>out/conftest.err)
8598 ac_status=$?
8599 cat out/conftest.err >&5
3388710e 8600 echo "$as_me:8600: \$? = $ac_status" >&5
ce2cded5
L
8601 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8602 then
8603 # The compiler can only warn and ignore the option if not recognized
8604 # So say no if there are warnings
8605 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8606 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8607 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8608 lt_cv_prog_compiler_c_o=yes
8609 fi
8610 fi
8611 chmod u+w . 2>&5
8612 $RM conftest*
8613 # SGI C++ compiler will create directory out/ii_files/ for
8614 # template instantiation
8615 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8616 $RM out/* && rmdir out
8617 cd ..
8618 $RM -r conftest
8619 $RM conftest*
8620
8621fi
81ecdfbb
RW
8622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8623$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
8624
8625
8626
8627
8628
8629
81ecdfbb
RW
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8631$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8632if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8633 $as_echo_n "(cached) " >&6
d7040cdb 8634else
ce2cded5
L
8635 lt_cv_prog_compiler_c_o=no
8636 $RM -r conftest 2>/dev/null
8637 mkdir conftest
8638 cd conftest
8639 mkdir out
8640 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8641
8642 lt_compiler_flag="-o out/conftest2.$ac_objext"
8643 # Insert the option either (1) after the last *FLAGS variable, or
8644 # (2) before a word containing "conftest.", or (3) at the end.
8645 # Note that $ac_compile itself does not contain backslashes and begins
8646 # with a dollar sign (not a hyphen), so the echo should work correctly.
8647 lt_compile=`echo "$ac_compile" | $SED \
8648 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8650 -e 's:$: $lt_compiler_flag:'`
3388710e 8651 (eval echo "\"\$as_me:8651: $lt_compile\"" >&5)
ce2cded5
L
8652 (eval "$lt_compile" 2>out/conftest.err)
8653 ac_status=$?
8654 cat out/conftest.err >&5
3388710e 8655 echo "$as_me:8655: \$? = $ac_status" >&5
ce2cded5
L
8656 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8657 then
8658 # The compiler can only warn and ignore the option if not recognized
8659 # So say no if there are warnings
8660 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8661 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8662 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8663 lt_cv_prog_compiler_c_o=yes
8664 fi
8665 fi
8666 chmod u+w . 2>&5
8667 $RM conftest*
8668 # SGI C++ compiler will create directory out/ii_files/ for
8669 # template instantiation
8670 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8671 $RM out/* && rmdir out
8672 cd ..
8673 $RM -r conftest
8674 $RM conftest*
8675
d7040cdb 8676fi
81ecdfbb
RW
8677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8678$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb 8679
d7040cdb 8680
d7040cdb 8681
d7040cdb 8682
ce2cded5
L
8683hard_links="nottested"
8684if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8685 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8687$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
8688 hard_links=yes
8689 $RM conftest*
8690 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8691 touch conftest.a
8692 ln conftest.a conftest.b 2>&5 || hard_links=no
8693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8695$as_echo "$hard_links" >&6; }
ce2cded5 8696 if test "$hard_links" = no; then
81ecdfbb
RW
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8698$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 8699 need_locks=warn
d7040cdb 8700 fi
ce2cded5
L
8701else
8702 need_locks=no
8703fi
d7040cdb 8704
d7040cdb 8705
d7040cdb 8706
d7040cdb 8707
d7040cdb 8708
d7040cdb 8709
81ecdfbb
RW
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8711$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 8712
ce2cded5
L
8713 runpath_var=
8714 allow_undefined_flag=
8715 always_export_symbols=no
8716 archive_cmds=
8717 archive_expsym_cmds=
8718 compiler_needs_object=no
8719 enable_shared_with_static_runtimes=no
8720 export_dynamic_flag_spec=
8721 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8722 hardcode_automatic=no
8723 hardcode_direct=no
8724 hardcode_direct_absolute=no
8725 hardcode_libdir_flag_spec=
8726 hardcode_libdir_flag_spec_ld=
8727 hardcode_libdir_separator=
8728 hardcode_minus_L=no
8729 hardcode_shlibpath_var=unsupported
8730 inherit_rpath=no
8731 link_all_deplibs=unknown
8732 module_cmds=
8733 module_expsym_cmds=
8734 old_archive_from_new_cmds=
8735 old_archive_from_expsyms_cmds=
8736 thread_safe_flag_spec=
8737 whole_archive_flag_spec=
8738 # include_expsyms should be a list of space-separated symbols to be *always*
8739 # included in the symbol list
8740 include_expsyms=
8741 # exclude_expsyms can be an extended regexp of symbols to exclude
8742 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8743 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8744 # as well as any symbol that contains `d'.
b214d478 8745 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
8746 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8747 # platforms (ab)use it in PIC code, but their linkers get confused if
8748 # the symbol is explicitly referenced. Since portable code cannot
8749 # rely on this symbol name, it's probably fine to never include it in
8750 # preloaded symbol tables.
b214d478 8751 # Exclude shared library initialization/finalization symbols.
ce2cded5 8752 extract_expsyms_cmds=
d7040cdb 8753
d7040cdb 8754 case $host_os in
b214d478 8755 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8756 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8757 # When not using gcc, we currently assume that we are using
8758 # Microsoft Visual C++.
8759 if test "$GCC" != yes; then
8760 with_gnu_ld=no
8761 fi
d7040cdb 8762 ;;
ce2cded5
L
8763 interix*)
8764 # we just hope/assume this is gcc and not c89 (= MSVC++)
8765 with_gnu_ld=yes
d7040cdb 8766 ;;
ce2cded5
L
8767 openbsd*)
8768 with_gnu_ld=no
d7040cdb
SE
8769 ;;
8770 esac
d7040cdb 8771
ce2cded5
L
8772 ld_shlibs=yes
8773 if test "$with_gnu_ld" = yes; then
8774 # If archive_cmds runs LD, not CC, wlarc should be empty
8775 wlarc='${wl}'
d7040cdb 8776
ce2cded5
L
8777 # Set some defaults for GNU ld with shared library support. These
8778 # are reset later if shared libraries are not supported. Putting them
8779 # here allows them to be overridden if necessary.
8780 runpath_var=LD_RUN_PATH
8781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8782 export_dynamic_flag_spec='${wl}--export-dynamic'
8783 # ancient GNU ld didn't support --whole-archive et. al.
8784 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8785 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
d7040cdb 8786 else
ce2cded5 8787 whole_archive_flag_spec=
d7040cdb 8788 fi
ce2cded5
L
8789 supports_anon_versioning=no
8790 case `$LD -v 2>&1` in
8791 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8792 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8793 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8794 *\ 2.11.*) ;; # other 2.11 versions
8795 *) supports_anon_versioning=yes ;;
8796 esac
d7040cdb 8797
ce2cded5
L
8798 # See if GNU ld supports shared libraries.
8799 case $host_os in
50e7d84b 8800 aix[3-9]*)
ce2cded5
L
8801 # On AIX/PPC, the GNU linker is very broken
8802 if test "$host_cpu" != ia64; then
8803 ld_shlibs=no
8804 cat <<_LT_EOF 1>&2
d7040cdb 8805
ce2cded5
L
8806*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8807*** to be unable to reliably create shared libraries on AIX.
8808*** Therefore, libtool is disabling shared libraries support. If you
8809*** really care for shared libraries, you may want to modify your PATH
8810*** so that a non-GNU linker is found, and then restart.
d7040cdb 8811
ce2cded5
L
8812_LT_EOF
8813 fi
8814 ;;
d7040cdb 8815
ce2cded5 8816 amigaos*)
b214d478
SE
8817 case $host_cpu in
8818 powerpc)
8819 # see comment about AmigaOS4 .so support
8820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8821 archive_expsym_cmds=''
8822 ;;
8823 m68k)
8824 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)'
8825 hardcode_libdir_flag_spec='-L$libdir'
8826 hardcode_minus_L=yes
8827 ;;
8828 esac
ce2cded5 8829 ;;
d7040cdb 8830
ce2cded5
L
8831 beos*)
8832 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8833 allow_undefined_flag=unsupported
8834 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8835 # support --undefined. This deserves some investigation. FIXME
8836 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8837 else
8838 ld_shlibs=no
8839 fi
8840 ;;
d7040cdb 8841
b214d478 8842 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8843 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8844 # as there is no search path for DLLs.
8845 hardcode_libdir_flag_spec='-L$libdir'
8846 allow_undefined_flag=unsupported
8847 always_export_symbols=no
8848 enable_shared_with_static_runtimes=yes
8849 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 8850
ce2cded5
L
8851 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8852 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8853 # If the export-symbols file already is a .def file (1st line
8854 # is EXPORTS), use it as is; otherwise, prepend...
8855 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8856 cp $export_symbols $output_objdir/$soname.def;
8857 else
8858 echo EXPORTS > $output_objdir/$soname.def;
8859 cat $export_symbols >> $output_objdir/$soname.def;
8860 fi~
8861 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8862 else
8863 ld_shlibs=no
8864 fi
8865 ;;
d7040cdb 8866
ce2cded5
L
8867 interix[3-9]*)
8868 hardcode_direct=no
8869 hardcode_shlibpath_var=no
8870 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8871 export_dynamic_flag_spec='${wl}-E'
8872 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8873 # Instead, shared libraries are loaded at an image base (0x10000000 by
8874 # default) and relocated if they conflict, which is a slow very memory
8875 # consuming and fragmenting process. To avoid this, we pick a random,
8876 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8877 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8878 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8879 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'
8880 ;;
d7040cdb 8881
58e24671 8882 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
8883 tmp_diet=no
8884 if test "$host_os" = linux-dietlibc; then
8885 case $cc_basename in
8886 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8887 esac
8888 fi
8889 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8890 && test "$tmp_diet" = no
8891 then
8892 tmp_addflag=
b214d478 8893 tmp_sharedflag='-shared'
ce2cded5
L
8894 case $cc_basename,$host_cpu in
8895 pgcc*) # Portland Group C compiler
8896 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'
8897 tmp_addflag=' $pic_flag'
8898 ;;
8899 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8900 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'
8901 tmp_addflag=' $pic_flag -Mnomain' ;;
8902 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8903 tmp_addflag=' -i_dynamic' ;;
8904 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8905 tmp_addflag=' -i_dynamic -nofor_main' ;;
8906 ifc* | ifort*) # Intel Fortran compiler
8907 tmp_addflag=' -nofor_main' ;;
b214d478
SE
8908 lf95*) # Lahey Fortran 8.1
8909 whole_archive_flag_spec=
8910 tmp_sharedflag='--shared' ;;
8911 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8912 tmp_sharedflag='-qmkshrobj'
8913 tmp_addflag= ;;
ce2cded5
L
8914 esac
8915 case `$CC -V 2>&1 | sed 5q` in
8916 *Sun\ C*) # Sun C 5.9
8917 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'
8918 compiler_needs_object=yes
8919 tmp_sharedflag='-G' ;;
8920 *Sun\ F*) # Sun Fortran 8.3
8921 tmp_sharedflag='-G' ;;
ce2cded5
L
8922 esac
8923 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 8924
ce2cded5
L
8925 if test "x$supports_anon_versioning" = xyes; then
8926 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8927 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8928 echo "local: *; };" >> $output_objdir/$libname.ver~
8929 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8930 fi
b214d478
SE
8931
8932 case $cc_basename in
8933 xlf*)
8934 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8935 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8936 hardcode_libdir_flag_spec=
8937 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8938 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8939 if test "x$supports_anon_versioning" = xyes; then
8940 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8941 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8942 echo "local: *; };" >> $output_objdir/$libname.ver~
8943 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8944 fi
8945 ;;
8946 esac
ce2cded5
L
8947 else
8948 ld_shlibs=no
8949 fi
8950 ;;
d7040cdb 8951
ce2cded5
L
8952 netbsd*)
8953 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8954 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8955 wlarc=
8956 else
8957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8958 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8959 fi
8960 ;;
d7040cdb 8961
ce2cded5
L
8962 solaris*)
8963 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8964 ld_shlibs=no
8965 cat <<_LT_EOF 1>&2
d7040cdb 8966
ce2cded5
L
8967*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8968*** create shared libraries on Solaris systems. Therefore, libtool
8969*** is disabling shared libraries support. We urge you to upgrade GNU
8970*** binutils to release 2.9.1 or newer. Another option is to modify
8971*** your PATH or compiler configuration so that the native linker is
8972*** used, and then restart.
d7040cdb 8973
ce2cded5
L
8974_LT_EOF
8975 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8976 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8977 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8978 else
8979 ld_shlibs=no
8980 fi
8981 ;;
d7040cdb 8982
ce2cded5
L
8983 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8984 case `$LD -v 2>&1` in
8985 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8986 ld_shlibs=no
8987 cat <<_LT_EOF 1>&2
d7040cdb 8988
ce2cded5
L
8989*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8990*** reliably create shared libraries on SCO systems. Therefore, libtool
8991*** is disabling shared libraries support. We urge you to upgrade GNU
8992*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8993*** your PATH or compiler configuration so that the native linker is
8994*** used, and then restart.
d7040cdb 8995
ce2cded5
L
8996_LT_EOF
8997 ;;
8998 *)
8999 # For security reasons, it is highly recommended that you always
9000 # use absolute paths for naming shared libraries, and exclude the
9001 # DT_RUNPATH tag from executables and libraries. But doing so
9002 # requires that you compile everything twice, which is a pain.
9003 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9004 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9006 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9007 else
9008 ld_shlibs=no
9009 fi
9010 ;;
9011 esac
d7040cdb 9012 ;;
ce2cded5
L
9013
9014 sunos4*)
9015 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9016 wlarc=
9017 hardcode_direct=yes
9018 hardcode_shlibpath_var=no
d7040cdb 9019 ;;
d7040cdb 9020
ce2cded5
L
9021 *)
9022 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9024 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9025 else
9026 ld_shlibs=no
9027 fi
9028 ;;
9029 esac
d7040cdb 9030
ce2cded5
L
9031 if test "$ld_shlibs" = no; then
9032 runpath_var=
9033 hardcode_libdir_flag_spec=
9034 export_dynamic_flag_spec=
9035 whole_archive_flag_spec=
9036 fi
d7040cdb 9037 else
ce2cded5 9038 # PORTME fill in a description of your system's linker (not GNU ld)
d7040cdb 9039 case $host_os in
ce2cded5
L
9040 aix3*)
9041 allow_undefined_flag=unsupported
9042 always_export_symbols=yes
9043 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'
9044 # Note: this linker hardcodes the directories in LIBPATH if there
9045 # are no directories specified by -L.
9046 hardcode_minus_L=yes
9047 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9048 # Neither direct hardcoding nor static linking is supported with a
9049 # broken collect2.
9050 hardcode_direct=unsupported
9051 fi
9052 ;;
d7040cdb 9053
50e7d84b 9054 aix[4-9]*)
ce2cded5
L
9055 if test "$host_cpu" = ia64; then
9056 # On IA64, the linker does run time linking by default, so we don't
9057 # have to do anything special.
9058 aix_use_runtimelinking=no
9059 exp_sym_flag='-Bexport'
9060 no_entry_flag=""
9061 else
9062 # If we're using GNU nm, then we don't want the "-C" option.
9063 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9064 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9065 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'
9066 else
9067 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'
9068 fi
9069 aix_use_runtimelinking=no
d7040cdb 9070
ce2cded5
L
9071 # Test if we are trying to use run time linking or normal
9072 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9073 # need to do runtime linking.
50e7d84b 9074 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9075 for ld_flag in $LDFLAGS; do
9076 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9077 aix_use_runtimelinking=yes
9078 break
9079 fi
9080 done
9081 ;;
9082 esac
d7040cdb 9083
ce2cded5
L
9084 exp_sym_flag='-bexport'
9085 no_entry_flag='-bnoentry'
9086 fi
d7040cdb 9087
ce2cded5
L
9088 # When large executables or shared objects are built, AIX ld can
9089 # have problems creating the table of contents. If linking a library
9090 # or program results in "error TOC overflow" add -mminimal-toc to
9091 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9092 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 9093
ce2cded5
L
9094 archive_cmds=''
9095 hardcode_direct=yes
9096 hardcode_direct_absolute=yes
9097 hardcode_libdir_separator=':'
9098 link_all_deplibs=yes
9099 file_list_spec='${wl}-f,'
d7040cdb 9100
ce2cded5
L
9101 if test "$GCC" = yes; then
9102 case $host_os in aix4.[012]|aix4.[012].*)
9103 # We only want to do this on AIX 4.2 and lower, the check
9104 # below for broken collect2 doesn't work under 4.3+
9105 collect2name=`${CC} -print-prog-name=collect2`
9106 if test -f "$collect2name" &&
9107 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9108 then
9109 # We have reworked collect2
9110 :
9111 else
9112 # We have old collect2
9113 hardcode_direct=unsupported
9114 # It fails to find uninstalled libraries when the uninstalled
9115 # path is not listed in the libpath. Setting hardcode_minus_L
9116 # to unsupported forces relinking
9117 hardcode_minus_L=yes
9118 hardcode_libdir_flag_spec='-L$libdir'
9119 hardcode_libdir_separator=
9120 fi
9121 ;;
9122 esac
9123 shared_flag='-shared'
9124 if test "$aix_use_runtimelinking" = yes; then
9125 shared_flag="$shared_flag "'${wl}-G'
9126 fi
9127 else
9128 # not using gcc
9129 if test "$host_cpu" = ia64; then
9130 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9131 # chokes on -Wl,-G. The following line is correct:
9132 shared_flag='-G'
9133 else
9134 if test "$aix_use_runtimelinking" = yes; then
9135 shared_flag='${wl}-G'
9136 else
9137 shared_flag='${wl}-bM:SRE'
9138 fi
9139 fi
9140 fi
d7040cdb 9141
b214d478 9142 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9143 # It seems that -bexpall does not export symbols beginning with
9144 # underscore (_), so it is better to generate a list of symbols to export.
9145 always_export_symbols=yes
9146 if test "$aix_use_runtimelinking" = yes; then
9147 # Warning - without using the other runtime loading flags (-brtl),
9148 # -berok will link without error, but may produce a broken library.
9149 allow_undefined_flag='-berok'
9150 # Determine the default libpath from the value encoded in an
9151 # empty executable.
81ecdfbb 9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9153/* end confdefs.h. */
9154
d7040cdb
SE
9155int
9156main ()
9157{
ce2cded5 9158
d7040cdb
SE
9159 ;
9160 return 0;
9161}
9162_ACEOF
81ecdfbb 9163if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9164
ce2cded5
L
9165lt_aix_libpath_sed='
9166 /Import File Strings/,/^$/ {
9167 /^0/ {
9168 s/^0 *\(.*\)$/\1/
9169 p
9170 }
9171 }'
9172aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9173# Check for a 64-bit object if we didn't find anything.
9174if test -z "$aix_libpath"; then
9175 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d7040cdb 9176fi
d7040cdb 9177fi
81ecdfbb
RW
9178rm -f core conftest.err conftest.$ac_objext \
9179 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
9180if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9181
9182 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9183 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"
9184 else
9185 if test "$host_cpu" = ia64; then
9186 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9187 allow_undefined_flag="-z nodefs"
9188 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"
9189 else
9190 # Determine the default libpath from the value encoded in an
9191 # empty executable.
81ecdfbb 9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9193/* end confdefs.h. */
9194
d7040cdb
SE
9195int
9196main ()
9197{
ce2cded5 9198
d7040cdb
SE
9199 ;
9200 return 0;
9201}
9202_ACEOF
81ecdfbb 9203if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
9204
9205lt_aix_libpath_sed='
9206 /Import File Strings/,/^$/ {
9207 /^0/ {
9208 s/^0 *\(.*\)$/\1/
9209 p
9210 }
9211 }'
9212aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9213# Check for a 64-bit object if we didn't find anything.
9214if test -z "$aix_libpath"; then
9215 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9216fi
d7040cdb 9217fi
81ecdfbb
RW
9218rm -f core conftest.err conftest.$ac_objext \
9219 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9220if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9221
ce2cded5
L
9222 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9223 # Warning - without using the other run time loading flags,
9224 # -berok will link without error, but may produce a broken library.
9225 no_undefined_flag=' ${wl}-bernotok'
9226 allow_undefined_flag=' ${wl}-berok'
9227 # Exported symbols can be pulled into shared objects from archives
9228 whole_archive_flag_spec='$convenience'
9229 archive_cmds_need_lc=yes
9230 # This is similar to how AIX traditionally builds its shared libraries.
9231 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'
9232 fi
9233 fi
9234 ;;
d7040cdb 9235
ce2cded5 9236 amigaos*)
b214d478
SE
9237 case $host_cpu in
9238 powerpc)
9239 # see comment about AmigaOS4 .so support
9240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9241 archive_expsym_cmds=''
9242 ;;
9243 m68k)
9244 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)'
9245 hardcode_libdir_flag_spec='-L$libdir'
9246 hardcode_minus_L=yes
9247 ;;
9248 esac
ce2cded5 9249 ;;
d7040cdb 9250
ce2cded5
L
9251 bsdi[45]*)
9252 export_dynamic_flag_spec=-rdynamic
9253 ;;
d7040cdb 9254
b214d478 9255 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9256 # When not using gcc, we currently assume that we are using
9257 # Microsoft Visual C++.
9258 # hardcode_libdir_flag_spec is actually meaningless, as there is
9259 # no search path for DLLs.
9260 hardcode_libdir_flag_spec=' '
9261 allow_undefined_flag=unsupported
9262 # Tell ltmain to make .lib files, not .a files.
9263 libext=lib
9264 # Tell ltmain to make .dll files, not .so files.
9265 shrext_cmds=".dll"
9266 # FIXME: Setting linknames here is a bad hack.
9267 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9268 # The linker will automatically build a .lib file if we build a DLL.
9269 old_archive_from_new_cmds='true'
9270 # FIXME: Should let the user specify the lib program.
9271 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9272 fix_srcfile_path='`cygpath -w "$srcfile"`'
9273 enable_shared_with_static_runtimes=yes
9274 ;;
d7040cdb 9275
ce2cded5 9276 darwin* | rhapsody*)
ce2cded5 9277
b214d478
SE
9278
9279 archive_cmds_need_lc=no
9280 hardcode_direct=no
9281 hardcode_automatic=yes
9282 hardcode_shlibpath_var=unsupported
9283 whole_archive_flag_spec=''
9284 link_all_deplibs=yes
9285 allow_undefined_flag="$_lt_dar_allow_undefined"
9286 case $cc_basename in
9287 ifort*) _lt_dar_can_shared=yes ;;
9288 *) _lt_dar_can_shared=$GCC ;;
9289 esac
9290 if test "$_lt_dar_can_shared" = "yes"; then
9291 output_verbose_link_cmd=echo
9292 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9293 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9294 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}"
9295 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}"
9296
9297 else
9298 ld_shlibs=no
9299 fi
9300
ce2cded5
L
9301 ;;
9302
9303 dgux*)
9304 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9305 hardcode_libdir_flag_spec='-L$libdir'
9306 hardcode_shlibpath_var=no
9307 ;;
9308
9309 freebsd1*)
9310 ld_shlibs=no
9311 ;;
9312
9313 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9314 # support. Future versions do this automatically, but an explicit c++rt0.o
9315 # does not break anything, and helps significantly (at the cost of a little
9316 # extra space).
9317 freebsd2.2*)
9318 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9319 hardcode_libdir_flag_spec='-R$libdir'
9320 hardcode_direct=yes
9321 hardcode_shlibpath_var=no
9322 ;;
9323
9324 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9325 freebsd2*)
9326 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9327 hardcode_direct=yes
9328 hardcode_minus_L=yes
9329 hardcode_shlibpath_var=no
9330 ;;
9331
9332 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9333 freebsd* | dragonfly*)
9334 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9335 hardcode_libdir_flag_spec='-R$libdir'
9336 hardcode_direct=yes
9337 hardcode_shlibpath_var=no
9338 ;;
9339
9340 hpux9*)
9341 if test "$GCC" = yes; then
9342 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'
9343 else
9344 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'
9345 fi
9346 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9347 hardcode_libdir_separator=:
9348 hardcode_direct=yes
9349
9350 # hardcode_minus_L: Not really in the search PATH,
9351 # but as the default location of the library.
9352 hardcode_minus_L=yes
9353 export_dynamic_flag_spec='${wl}-E'
9354 ;;
9355
9356 hpux10*)
9357 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9358 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9359 else
9360 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9361 fi
9362 if test "$with_gnu_ld" = no; then
9363 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9364 hardcode_libdir_flag_spec_ld='+b $libdir'
9365 hardcode_libdir_separator=:
9366 hardcode_direct=yes
9367 hardcode_direct_absolute=yes
9368 export_dynamic_flag_spec='${wl}-E'
9369 # hardcode_minus_L: Not really in the search PATH,
9370 # but as the default location of the library.
9371 hardcode_minus_L=yes
9372 fi
9373 ;;
9374
9375 hpux11*)
9376 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9377 case $host_cpu in
9378 hppa*64*)
9379 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9380 ;;
9381 ia64*)
b214d478 9382 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9383 ;;
9384 *)
9385 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9386 ;;
9387 esac
9388 else
9389 case $host_cpu in
9390 hppa*64*)
9391 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9392 ;;
9393 ia64*)
9394 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9395 ;;
9396 *)
9397 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9398 ;;
9399 esac
9400 fi
9401 if test "$with_gnu_ld" = no; then
9402 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9403 hardcode_libdir_separator=:
9404
9405 case $host_cpu in
9406 hppa*64*|ia64*)
9407 hardcode_direct=no
9408 hardcode_shlibpath_var=no
9409 ;;
9410 *)
9411 hardcode_direct=yes
9412 hardcode_direct_absolute=yes
9413 export_dynamic_flag_spec='${wl}-E'
9414
9415 # hardcode_minus_L: Not really in the search PATH,
9416 # but as the default location of the library.
9417 hardcode_minus_L=yes
9418 ;;
9419 esac
9420 fi
9421 ;;
9422
9423 irix5* | irix6* | nonstopux*)
9424 if test "$GCC" = yes; then
9425 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'
9426 # Try to use the -exported_symbol ld option, if it does not
9427 # work, assume that -exports_file does not work either and
9428 # implicitly export all symbols.
9429 save_LDFLAGS="$LDFLAGS"
9430 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432/* end confdefs.h. */
ce2cded5 9433int foo(void) {}
d7040cdb 9434_ACEOF
81ecdfbb 9435if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
9436 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'
9437
d7040cdb 9438fi
81ecdfbb
RW
9439rm -f core conftest.err conftest.$ac_objext \
9440 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
9441 LDFLAGS="$save_LDFLAGS"
9442 else
9443 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'
9444 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'
9445 fi
9446 archive_cmds_need_lc='no'
9447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9448 hardcode_libdir_separator=:
9449 inherit_rpath=yes
9450 link_all_deplibs=yes
9451 ;;
9452
9453 netbsd*)
9454 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9455 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9456 else
9457 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9458 fi
9459 hardcode_libdir_flag_spec='-R$libdir'
9460 hardcode_direct=yes
9461 hardcode_shlibpath_var=no
9462 ;;
9463
9464 newsos6)
9465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9466 hardcode_direct=yes
9467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9468 hardcode_libdir_separator=:
9469 hardcode_shlibpath_var=no
9470 ;;
9471
9472 *nto* | *qnx*)
9473 ;;
9474
9475 openbsd*)
b214d478
SE
9476 if test -f /usr/libexec/ld.so; then
9477 hardcode_direct=yes
9478 hardcode_shlibpath_var=no
9479 hardcode_direct_absolute=yes
9480 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 9481 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 9482 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 9483 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
9484 export_dynamic_flag_spec='${wl}-E'
9485 else
9486 case $host_os in
9487 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9488 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9489 hardcode_libdir_flag_spec='-R$libdir'
9490 ;;
9491 *)
9492 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9493 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9494 ;;
9495 esac
9496 fi
9497 else
9498 ld_shlibs=no
ce2cded5
L
9499 fi
9500 ;;
9501
9502 os2*)
9503 hardcode_libdir_flag_spec='-L$libdir'
9504 hardcode_minus_L=yes
9505 allow_undefined_flag=unsupported
9506 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'
9507 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9508 ;;
9509
9510 osf3*)
9511 if test "$GCC" = yes; then
9512 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9513 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'
9514 else
9515 allow_undefined_flag=' -expect_unresolved \*'
9516 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'
9517 fi
9518 archive_cmds_need_lc='no'
9519 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9520 hardcode_libdir_separator=:
9521 ;;
9522
9523 osf4* | osf5*) # as osf3* with the addition of -msym flag
9524 if test "$GCC" = yes; then
9525 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9526 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'
9527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9528 else
9529 allow_undefined_flag=' -expect_unresolved \*'
9530 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'
9531 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~
9532 $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'
9533
9534 # Both c and cxx compiler support -rpath directly
9535 hardcode_libdir_flag_spec='-rpath $libdir'
9536 fi
9537 archive_cmds_need_lc='no'
9538 hardcode_libdir_separator=:
9539 ;;
9540
9541 solaris*)
9542 no_undefined_flag=' -z defs'
9543 if test "$GCC" = yes; then
9544 wlarc='${wl}'
9545 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9546 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9547 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9548 else
9549 case `$CC -V 2>&1` in
9550 *"Compilers 5.0"*)
9551 wlarc=''
9552 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9553 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9554 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9555 ;;
9556 *)
9557 wlarc='${wl}'
9558 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9559 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9560 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9561 ;;
9562 esac
9563 fi
9564 hardcode_libdir_flag_spec='-R$libdir'
9565 hardcode_shlibpath_var=no
9566 case $host_os in
9567 solaris2.[0-5] | solaris2.[0-5].*) ;;
9568 *)
9569 # The compiler driver will combine and reorder linker options,
9570 # but understands `-z linker_flag'. GCC discards it without `$wl',
9571 # but is careful enough not to reorder.
9572 # Supported since Solaris 2.6 (maybe 2.5.1?)
9573 if test "$GCC" = yes; then
9574 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9575 else
9576 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9577 fi
9578 ;;
9579 esac
9580 link_all_deplibs=yes
9581 ;;
9582
9583 sunos4*)
9584 if test "x$host_vendor" = xsequent; then
9585 # Use $CC to link under sequent, because it throws in some extra .o
9586 # files that make .init and .fini sections work.
9587 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9588 else
9589 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9590 fi
9591 hardcode_libdir_flag_spec='-L$libdir'
9592 hardcode_direct=yes
9593 hardcode_minus_L=yes
9594 hardcode_shlibpath_var=no
9595 ;;
9596
9597 sysv4)
9598 case $host_vendor in
9599 sni)
9600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9601 hardcode_direct=yes # is this really true???
9602 ;;
9603 siemens)
9604 ## LD is ld it makes a PLAMLIB
9605 ## CC just makes a GrossModule.
9606 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9607 reload_cmds='$CC -r -o $output$reload_objs'
9608 hardcode_direct=no
9609 ;;
9610 motorola)
9611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9612 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9613 ;;
9614 esac
9615 runpath_var='LD_RUN_PATH'
9616 hardcode_shlibpath_var=no
9617 ;;
9618
9619 sysv4.3*)
9620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9621 hardcode_shlibpath_var=no
9622 export_dynamic_flag_spec='-Bexport'
9623 ;;
9624
9625 sysv4*MP*)
9626 if test -d /usr/nec; then
9627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9628 hardcode_shlibpath_var=no
9629 runpath_var=LD_RUN_PATH
9630 hardcode_runpath_var=yes
9631 ld_shlibs=yes
9632 fi
9633 ;;
9634
9635 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9636 no_undefined_flag='${wl}-z,text'
9637 archive_cmds_need_lc=no
9638 hardcode_shlibpath_var=no
9639 runpath_var='LD_RUN_PATH'
9640
9641 if test "$GCC" = yes; then
9642 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9643 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9644 else
9645 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9646 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9647 fi
9648 ;;
9649
9650 sysv5* | sco3.2v5* | sco5v6*)
9651 # Note: We can NOT use -z defs as we might desire, because we do not
9652 # link with -lc, and that would cause any symbols used from libc to
9653 # always be unresolved, which means just about no library would
9654 # ever link correctly. If we're not using GNU ld we use -z text
9655 # though, which does catch some bad symbols but isn't as heavy-handed
9656 # as -z defs.
9657 no_undefined_flag='${wl}-z,text'
9658 allow_undefined_flag='${wl}-z,nodefs'
9659 archive_cmds_need_lc=no
9660 hardcode_shlibpath_var=no
9661 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9662 hardcode_libdir_separator=':'
9663 link_all_deplibs=yes
9664 export_dynamic_flag_spec='${wl}-Bexport'
9665 runpath_var='LD_RUN_PATH'
9666
9667 if test "$GCC" = yes; then
9668 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9669 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9670 else
9671 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9672 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9673 fi
9674 ;;
9675
9676 uts4*)
9677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9678 hardcode_libdir_flag_spec='-L$libdir'
9679 hardcode_shlibpath_var=no
9680 ;;
9681
9682 *)
9683 ld_shlibs=no
9684 ;;
9685 esac
9686
9687 if test x$host_vendor = xsni; then
9688 case $host in
9689 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9690 export_dynamic_flag_spec='${wl}-Blargedynsym'
9691 ;;
9692 esac
9693 fi
9694 fi
9695
81ecdfbb
RW
9696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9697$as_echo "$ld_shlibs" >&6; }
ce2cded5
L
9698test "$ld_shlibs" = no && can_build_shared=no
9699
9700with_gnu_ld=$with_gnu_ld
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716#
9717# Do we need to explicitly link libc?
9718#
9719case "x$archive_cmds_need_lc" in
9720x|xyes)
9721 # Assume -lc should be added
9722 archive_cmds_need_lc=yes
9723
9724 if test "$enable_shared" = yes && test "$GCC" = yes; then
9725 case $archive_cmds in
9726 *'~'*)
9727 # FIXME: we may have to deal with multi-command sequences.
9728 ;;
9729 '$CC '*)
9730 # Test whether the compiler implicitly links with -lc since on some
9731 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9732 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9734$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9735if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9736 $as_echo_n "(cached) " >&6
39144654
RW
9737else
9738 $RM conftest*
9739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
ce2cded5 9740
81ecdfbb 9741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
9742 (eval $ac_compile) 2>&5
9743 ac_status=$?
81ecdfbb
RW
9744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9745 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9746 soname=conftest
9747 lib=conftest
9748 libobjs=conftest.$ac_objext
9749 deplibs=
9750 wl=$lt_prog_compiler_wl
9751 pic_flag=$lt_prog_compiler_pic
9752 compiler_flags=-v
9753 linker_flags=-v
9754 verstring=
9755 output_objdir=.
9756 libname=conftest
9757 lt_save_allow_undefined_flag=$allow_undefined_flag
9758 allow_undefined_flag=
81ecdfbb 9759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
9760 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9761 ac_status=$?
81ecdfbb
RW
9762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9763 test $ac_status = 0; }
39144654
RW
9764 then
9765 lt_cv_archive_cmds_need_lc=no
9766 else
9767 lt_cv_archive_cmds_need_lc=yes
9768 fi
9769 allow_undefined_flag=$lt_save_allow_undefined_flag
9770 else
9771 cat conftest.err 1>&5
9772 fi
9773 $RM conftest*
9774
9775fi
81ecdfbb
RW
9776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9777$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9778 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
9779 ;;
9780 esac
9781 fi
9782 ;;
9783esac
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
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
81ecdfbb
RW
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9942$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
9943
9944if test "$GCC" = yes; then
ce2cded5
L
9945 case $host_os in
9946 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9947 *) lt_awk_arg="/^libraries:/" ;;
9948 esac
9949 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9950 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9951 # if the path contains ";" then we assume it to be the separator
9952 # otherwise default to the standard path separator (i.e. ":") - it is
9953 # assumed that no part of a normal pathname contains ";" but that should
9954 # okay in the real world where ";" in dirpaths is itself problematic.
9955 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9956 else
9957 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9958 fi
9959 # Ok, now we have the path, separated by spaces, we can step through it
9960 # and add multilib dir if necessary.
9961 lt_tmp_lt_search_path_spec=
9962 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9963 for lt_sys_path in $lt_search_path_spec; do
9964 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9965 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9966 else
9967 test -d "$lt_sys_path" && \
9968 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9969 fi
9970 done
9971 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9972BEGIN {RS=" "; FS="/|\n";} {
9973 lt_foo="";
9974 lt_count=0;
9975 for (lt_i = NF; lt_i > 0; lt_i--) {
9976 if ($lt_i != "" && $lt_i != ".") {
9977 if ($lt_i == "..") {
9978 lt_count++;
9979 } else {
9980 if (lt_count == 0) {
9981 lt_foo="/" $lt_i lt_foo;
9982 } else {
9983 lt_count--;
9984 }
9985 }
9986 }
9987 }
9988 if (lt_foo != "") { lt_freq[lt_foo]++; }
9989 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9990}'`
9991 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9992else
9993 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9994fi
9995library_names_spec=
9996libname_spec='lib$name'
9997soname_spec=
9998shrext_cmds=".so"
9999postinstall_cmds=
10000postuninstall_cmds=
10001finish_cmds=
10002finish_eval=
10003shlibpath_var=
10004shlibpath_overrides_runpath=unknown
10005version_type=none
10006dynamic_linker="$host_os ld.so"
10007sys_lib_dlsearch_path_spec="/lib /usr/lib"
10008need_lib_prefix=unknown
10009hardcode_into_libs=no
10010
10011# when you set need_version to no, make sure it does not cause -set_version
10012# flags to be left without arguments
10013need_version=unknown
10014
10015case $host_os in
10016aix3*)
10017 version_type=linux
10018 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10019 shlibpath_var=LIBPATH
10020
10021 # AIX 3 has no versioning support, so we append a major version to the name.
10022 soname_spec='${libname}${release}${shared_ext}$major'
10023 ;;
10024
50e7d84b 10025aix[4-9]*)
ce2cded5
L
10026 version_type=linux
10027 need_lib_prefix=no
10028 need_version=no
10029 hardcode_into_libs=yes
10030 if test "$host_cpu" = ia64; then
10031 # AIX 5 supports IA64
10032 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10033 shlibpath_var=LD_LIBRARY_PATH
10034 else
10035 # With GCC up to 2.95.x, collect2 would create an import file
10036 # for dependence libraries. The import file would start with
10037 # the line `#! .'. This would cause the generated library to
10038 # depend on `.', always an invalid library. This was fixed in
10039 # development snapshots of GCC prior to 3.0.
10040 case $host_os in
10041 aix4 | aix4.[01] | aix4.[01].*)
10042 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10043 echo ' yes '
10044 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10045 :
10046 else
10047 can_build_shared=no
10048 fi
10049 ;;
10050 esac
10051 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10052 # soname into executable. Probably we can add versioning support to
10053 # collect2, so additional links can be useful in future.
10054 if test "$aix_use_runtimelinking" = yes; then
10055 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10056 # instead of lib<name>.a to let people know that these are not
10057 # typical AIX shared libraries.
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059 else
10060 # We preserve .a as extension for shared libraries through AIX4.2
10061 # and later when we are not doing run time linking.
10062 library_names_spec='${libname}${release}.a $libname.a'
10063 soname_spec='${libname}${release}${shared_ext}$major'
10064 fi
10065 shlibpath_var=LIBPATH
10066 fi
10067 ;;
10068
10069amigaos*)
b214d478
SE
10070 case $host_cpu in
10071 powerpc)
10072 # Since July 2007 AmigaOS4 officially supports .so libraries.
10073 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075 ;;
10076 m68k)
ce2cded5
L
10077 library_names_spec='$libname.ixlibrary $libname.a'
10078 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10079 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
10080 ;;
10081 esac
ce2cded5
L
10082 ;;
10083
10084beos*)
10085 library_names_spec='${libname}${shared_ext}'
10086 dynamic_linker="$host_os ld.so"
10087 shlibpath_var=LIBRARY_PATH
10088 ;;
10089
10090bsdi[45]*)
10091 version_type=linux
10092 need_version=no
10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10094 soname_spec='${libname}${release}${shared_ext}$major'
10095 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10096 shlibpath_var=LD_LIBRARY_PATH
10097 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10098 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10099 # the default ld.so.conf also contains /usr/contrib/lib and
10100 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10101 # libtool to hard-code these into programs
10102 ;;
10103
b214d478 10104cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10105 version_type=windows
10106 shrext_cmds=".dll"
10107 need_version=no
10108 need_lib_prefix=no
10109
b214d478
SE
10110 case $GCC,$host_os in
10111 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10112 library_names_spec='$libname.dll.a'
10113 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10114 postinstall_cmds='base_file=`basename \${file}`~
10115 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10116 dldir=$destdir/`dirname \$dlpath`~
10117 test -d \$dldir || mkdir -p \$dldir~
10118 $install_prog $dir/$dlname \$dldir/$dlname~
10119 chmod a+x \$dldir/$dlname~
10120 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10121 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10122 fi'
10123 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10124 dlpath=$dir/\$dldll~
10125 $RM \$dlpath'
10126 shlibpath_overrides_runpath=yes
10127
10128 case $host_os in
10129 cygwin*)
10130 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10131 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10132 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10133 ;;
b214d478 10134 mingw* | cegcc*)
ce2cded5
L
10135 # MinGW DLLs use traditional 'lib' prefix
10136 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10137 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10138 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10139 # It is most probably a Windows format PATH printed by
10140 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10141 # path with ; separators, and with drive letters. We can handle the
10142 # drive letters (cygwin fileutils understands them), so leave them,
10143 # especially as we might pass files found there to a mingw objdump,
10144 # which wouldn't understand a cygwinified path. Ahh.
10145 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10146 else
10147 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10148 fi
10149 ;;
10150 pw32*)
10151 # pw32 DLLs use 'pw' prefix rather than 'lib'
10152 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10153 ;;
10154 esac
10155 ;;
10156
10157 *)
10158 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10159 ;;
10160 esac
10161 dynamic_linker='Win32 ld.exe'
10162 # FIXME: first we should search . and the directory the executable is in
10163 shlibpath_var=PATH
10164 ;;
10165
10166darwin* | rhapsody*)
10167 dynamic_linker="$host_os dyld"
10168 version_type=darwin
10169 need_lib_prefix=no
10170 need_version=no
10171 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10172 soname_spec='${libname}${release}${major}$shared_ext'
10173 shlibpath_overrides_runpath=yes
10174 shlibpath_var=DYLD_LIBRARY_PATH
10175 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10176
10177 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10178 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10179 ;;
10180
10181dgux*)
10182 version_type=linux
10183 need_lib_prefix=no
10184 need_version=no
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10186 soname_spec='${libname}${release}${shared_ext}$major'
10187 shlibpath_var=LD_LIBRARY_PATH
10188 ;;
10189
10190freebsd1*)
10191 dynamic_linker=no
10192 ;;
10193
10194freebsd* | dragonfly*)
10195 # DragonFly does not have aout. When/if they implement a new
10196 # versioning mechanism, adjust this.
10197 if test -x /usr/bin/objformat; then
10198 objformat=`/usr/bin/objformat`
10199 else
10200 case $host_os in
10201 freebsd[123]*) objformat=aout ;;
10202 *) objformat=elf ;;
10203 esac
10204 fi
10205 version_type=freebsd-$objformat
10206 case $version_type in
10207 freebsd-elf*)
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10209 need_version=no
10210 need_lib_prefix=no
10211 ;;
10212 freebsd-*)
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10214 need_version=yes
10215 ;;
10216 esac
10217 shlibpath_var=LD_LIBRARY_PATH
10218 case $host_os in
10219 freebsd2*)
10220 shlibpath_overrides_runpath=yes
10221 ;;
10222 freebsd3.[01]* | freebsdelf3.[01]*)
10223 shlibpath_overrides_runpath=yes
10224 hardcode_into_libs=yes
10225 ;;
10226 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10227 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10228 shlibpath_overrides_runpath=no
10229 hardcode_into_libs=yes
10230 ;;
10231 *) # from 4.6 on, and DragonFly
10232 shlibpath_overrides_runpath=yes
10233 hardcode_into_libs=yes
10234 ;;
10235 esac
10236 ;;
10237
10238gnu*)
10239 version_type=linux
10240 need_lib_prefix=no
10241 need_version=no
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10243 soname_spec='${libname}${release}${shared_ext}$major'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 hardcode_into_libs=yes
10246 ;;
10247
10248hpux9* | hpux10* | hpux11*)
10249 # Give a soname corresponding to the major version so that dld.sl refuses to
10250 # link against other versions.
10251 version_type=sunos
10252 need_lib_prefix=no
10253 need_version=no
10254 case $host_cpu in
10255 ia64*)
10256 shrext_cmds='.so'
10257 hardcode_into_libs=yes
10258 dynamic_linker="$host_os dld.so"
10259 shlibpath_var=LD_LIBRARY_PATH
10260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10262 soname_spec='${libname}${release}${shared_ext}$major'
10263 if test "X$HPUX_IA64_MODE" = X32; then
10264 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10265 else
10266 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10267 fi
10268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10269 ;;
10270 hppa*64*)
10271 shrext_cmds='.sl'
10272 hardcode_into_libs=yes
10273 dynamic_linker="$host_os dld.sl"
10274 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277 soname_spec='${libname}${release}${shared_ext}$major'
10278 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10280 ;;
10281 *)
10282 shrext_cmds='.sl'
10283 dynamic_linker="$host_os dld.sl"
10284 shlibpath_var=SHLIB_PATH
10285 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287 soname_spec='${libname}${release}${shared_ext}$major'
10288 ;;
10289 esac
10290 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10291 postinstall_cmds='chmod 555 $lib'
10292 ;;
10293
10294interix[3-9]*)
10295 version_type=linux
10296 need_lib_prefix=no
10297 need_version=no
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10301 shlibpath_var=LD_LIBRARY_PATH
10302 shlibpath_overrides_runpath=no
10303 hardcode_into_libs=yes
10304 ;;
d7040cdb 10305
ce2cded5
L
10306irix5* | irix6* | nonstopux*)
10307 case $host_os in
10308 nonstopux*) version_type=nonstopux ;;
10309 *)
10310 if test "$lt_cv_prog_gnu_ld" = yes; then
10311 version_type=linux
10312 else
10313 version_type=irix
10314 fi ;;
10315 esac
10316 need_lib_prefix=no
10317 need_version=no
10318 soname_spec='${libname}${release}${shared_ext}$major'
10319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10320 case $host_os in
10321 irix5* | nonstopux*)
10322 libsuff= shlibsuff=
10323 ;;
10324 *)
10325 case $LD in # libtool.m4 will add one of these switches to LD
10326 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10327 libsuff= shlibsuff= libmagic=32-bit;;
10328 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10329 libsuff=32 shlibsuff=N32 libmagic=N32;;
10330 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10331 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10332 *) libsuff= shlibsuff= libmagic=never-match;;
10333 esac
10334 ;;
10335 esac
10336 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10337 shlibpath_overrides_runpath=no
10338 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10339 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10340 hardcode_into_libs=yes
10341 ;;
d7040cdb 10342
ce2cded5
L
10343# No shared lib support for Linux oldld, aout, or coff.
10344linux*oldld* | linux*aout* | linux*coff*)
10345 dynamic_linker=no
10346 ;;
10347
10348# This must be Linux ELF.
58e24671 10349linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
10350 version_type=linux
10351 need_lib_prefix=no
10352 need_version=no
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10356 shlibpath_var=LD_LIBRARY_PATH
10357 shlibpath_overrides_runpath=no
39144654 10358
ce2cded5 10359 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10360 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10361 $as_echo_n "(cached) " >&6
39144654
RW
10362else
10363 lt_cv_shlibpath_overrides_runpath=no
10364 save_LDFLAGS=$LDFLAGS
10365 save_libdir=$libdir
10366 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10367 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10369/* end confdefs.h. */
10370
d7040cdb
SE
10371int
10372main ()
10373{
ce2cded5 10374
d7040cdb
SE
10375 ;
10376 return 0;
10377}
10378_ACEOF
81ecdfbb
RW
10379if ac_fn_c_try_link "$LINENO"; then :
10380 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10381 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10382fi
d7040cdb 10383fi
81ecdfbb
RW
10384rm -f core conftest.err conftest.$ac_objext \
10385 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10386 LDFLAGS=$save_LDFLAGS
10387 libdir=$save_libdir
10388
10389fi
10390
10391 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 10392
ce2cded5
L
10393 # This implies no fast_install, which is unacceptable.
10394 # Some rework will be needed to allow for fast_install
10395 # before this can be enabled.
10396 hardcode_into_libs=yes
d7040cdb 10397
ce2cded5
L
10398 # Append ld.so.conf contents to the search path
10399 if test -f /etc/ld.so.conf; then
b214d478 10400 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
10401 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10402 fi
d7040cdb 10403
ce2cded5
L
10404 # We used to test for /lib/ld.so.1 and disable shared libraries on
10405 # powerpc, because MkLinux only supported shared libraries with the
10406 # GNU dynamic linker. Since this was broken with cross compilers,
10407 # most powerpc-linux boxes support dynamic linking these days and
10408 # people can always --disable-shared, the test was removed, and we
10409 # assume the GNU/Linux dynamic linker is in use.
10410 dynamic_linker='GNU/Linux ld.so'
10411 ;;
d7040cdb 10412
ce2cded5
L
10413netbsd*)
10414 version_type=sunos
10415 need_lib_prefix=no
10416 need_version=no
10417 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10420 dynamic_linker='NetBSD (a.out) ld.so'
10421 else
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10423 soname_spec='${libname}${release}${shared_ext}$major'
10424 dynamic_linker='NetBSD ld.elf_so'
10425 fi
10426 shlibpath_var=LD_LIBRARY_PATH
10427 shlibpath_overrides_runpath=yes
10428 hardcode_into_libs=yes
10429 ;;
d7040cdb 10430
ce2cded5
L
10431newsos6)
10432 version_type=linux
10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434 shlibpath_var=LD_LIBRARY_PATH
10435 shlibpath_overrides_runpath=yes
10436 ;;
d7040cdb 10437
ce2cded5
L
10438*nto* | *qnx*)
10439 version_type=qnx
10440 need_lib_prefix=no
10441 need_version=no
10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10443 soname_spec='${libname}${release}${shared_ext}$major'
10444 shlibpath_var=LD_LIBRARY_PATH
10445 shlibpath_overrides_runpath=no
10446 hardcode_into_libs=yes
10447 dynamic_linker='ldqnx.so'
10448 ;;
d7040cdb 10449
ce2cded5
L
10450openbsd*)
10451 version_type=sunos
10452 sys_lib_dlsearch_path_spec="/usr/lib"
10453 need_lib_prefix=no
10454 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10455 case $host_os in
10456 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10457 *) need_version=no ;;
d7040cdb 10458 esac
ce2cded5
L
10459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10461 shlibpath_var=LD_LIBRARY_PATH
10462 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10463 case $host_os in
10464 openbsd2.[89] | openbsd2.[89].*)
10465 shlibpath_overrides_runpath=no
10466 ;;
10467 *)
10468 shlibpath_overrides_runpath=yes
10469 ;;
10470 esac
d7040cdb 10471 else
ce2cded5 10472 shlibpath_overrides_runpath=yes
d7040cdb 10473 fi
ce2cded5 10474 ;;
d7040cdb 10475
ce2cded5
L
10476os2*)
10477 libname_spec='$name'
10478 shrext_cmds=".dll"
10479 need_lib_prefix=no
10480 library_names_spec='$libname${shared_ext} $libname.a'
10481 dynamic_linker='OS/2 ld.exe'
10482 shlibpath_var=LIBPATH
10483 ;;
d7040cdb 10484
ce2cded5
L
10485osf3* | osf4* | osf5*)
10486 version_type=osf
10487 need_lib_prefix=no
10488 need_version=no
10489 soname_spec='${libname}${release}${shared_ext}$major'
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10491 shlibpath_var=LD_LIBRARY_PATH
10492 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10493 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10494 ;;
d7040cdb 10495
ce2cded5
L
10496rdos*)
10497 dynamic_linker=no
10498 ;;
d7040cdb 10499
ce2cded5
L
10500solaris*)
10501 version_type=linux
10502 need_lib_prefix=no
10503 need_version=no
10504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10505 soname_spec='${libname}${release}${shared_ext}$major'
10506 shlibpath_var=LD_LIBRARY_PATH
10507 shlibpath_overrides_runpath=yes
10508 hardcode_into_libs=yes
10509 # ldd complains unless libraries are executable
10510 postinstall_cmds='chmod +x $lib'
10511 ;;
d7040cdb 10512
ce2cded5
L
10513sunos4*)
10514 version_type=sunos
10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10516 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10517 shlibpath_var=LD_LIBRARY_PATH
10518 shlibpath_overrides_runpath=yes
10519 if test "$with_gnu_ld" = yes; then
10520 need_lib_prefix=no
10521 fi
10522 need_version=yes
10523 ;;
d7040cdb 10524
ce2cded5
L
10525sysv4 | sysv4.3*)
10526 version_type=linux
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528 soname_spec='${libname}${release}${shared_ext}$major'
10529 shlibpath_var=LD_LIBRARY_PATH
10530 case $host_vendor in
10531 sni)
10532 shlibpath_overrides_runpath=no
10533 need_lib_prefix=no
10534 runpath_var=LD_RUN_PATH
10535 ;;
10536 siemens)
10537 need_lib_prefix=no
10538 ;;
10539 motorola)
10540 need_lib_prefix=no
10541 need_version=no
10542 shlibpath_overrides_runpath=no
10543 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10544 ;;
10545 esac
10546 ;;
d7040cdb 10547
ce2cded5
L
10548sysv4*MP*)
10549 if test -d /usr/nec ;then
10550 version_type=linux
10551 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10552 soname_spec='$libname${shared_ext}.$major'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 fi
10555 ;;
d7040cdb 10556
ce2cded5
L
10557sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10558 version_type=freebsd-elf
10559 need_lib_prefix=no
10560 need_version=no
10561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10562 soname_spec='${libname}${release}${shared_ext}$major'
10563 shlibpath_var=LD_LIBRARY_PATH
10564 shlibpath_overrides_runpath=yes
10565 hardcode_into_libs=yes
10566 if test "$with_gnu_ld" = yes; then
10567 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10568 else
10569 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10570 case $host_os in
10571 sco3.2v5*)
10572 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10573 ;;
10574 esac
10575 fi
10576 sys_lib_dlsearch_path_spec='/usr/lib'
10577 ;;
d7040cdb 10578
ce2cded5
L
10579tpf*)
10580 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10581 version_type=linux
10582 need_lib_prefix=no
10583 need_version=no
b214d478 10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
10585 shlibpath_var=LD_LIBRARY_PATH
10586 shlibpath_overrides_runpath=no
10587 hardcode_into_libs=yes
10588 ;;
d7040cdb 10589
ce2cded5
L
10590uts4*)
10591 version_type=linux
10592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10593 soname_spec='${libname}${release}${shared_ext}$major'
10594 shlibpath_var=LD_LIBRARY_PATH
10595 ;;
d7040cdb 10596
ce2cded5
L
10597*)
10598 dynamic_linker=no
10599 ;;
10600esac
81ecdfbb
RW
10601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10602$as_echo "$dynamic_linker" >&6; }
ce2cded5 10603test "$dynamic_linker" = no && can_build_shared=no
d7040cdb 10604
ce2cded5
L
10605variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10606if test "$GCC" = yes; then
10607 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10608fi
d7040cdb 10609
b214d478
SE
10610if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10611 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10612fi
10613if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10614 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10615fi
10616
d7040cdb 10617
d7040cdb 10618
d7040cdb 10619
d7040cdb 10620
d7040cdb 10621
d7040cdb 10622
d7040cdb 10623
d7040cdb 10624
d7040cdb 10625
d7040cdb 10626
d7040cdb
SE
10627
10628
d7040cdb 10629
d7040cdb 10630
d7040cdb 10631
d7040cdb
SE
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
d7040cdb
SE
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
d7040cdb 10661
d7040cdb 10662
d7040cdb 10663
d7040cdb 10664
d7040cdb
SE
10665
10666
10667
10668
d7040cdb 10669
d7040cdb
SE
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
d7040cdb
SE
10683
10684
10685
10686
d7040cdb
SE
10687
10688
10689
d7040cdb
SE
10690
10691
d7040cdb 10692
d7040cdb 10693
d7040cdb 10694
ce2cded5
L
10695
10696
10697
10698
10699
10700
10701
10702
81ecdfbb
RW
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10704$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
10705hardcode_action=
10706if test -n "$hardcode_libdir_flag_spec" ||
10707 test -n "$runpath_var" ||
10708 test "X$hardcode_automatic" = "Xyes" ; then
10709
10710 # We can hardcode non-existent directories.
10711 if test "$hardcode_direct" != no &&
10712 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10713 # have to relink, otherwise we might link with an installed library
10714 # when we should be linking with a yet-to-be-installed one
10715 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10716 test "$hardcode_minus_L" != no; then
10717 # Linking always hardcodes the temporary library directory.
10718 hardcode_action=relink
10719 else
10720 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10721 hardcode_action=immediate
10722 fi
d7040cdb 10723else
ce2cded5
L
10724 # We cannot hardcode anything, or else we can only hardcode existing
10725 # directories.
10726 hardcode_action=unsupported
d7040cdb 10727fi
81ecdfbb
RW
10728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10729$as_echo "$hardcode_action" >&6; }
d7040cdb 10730
ce2cded5
L
10731if test "$hardcode_action" = relink ||
10732 test "$inherit_rpath" = yes; then
10733 # Fast installation is not supported
10734 enable_fast_install=no
10735elif test "$shlibpath_overrides_runpath" = yes ||
10736 test "$enable_shared" = no; then
10737 # Fast installation is not necessary
10738 enable_fast_install=needless
d7040cdb
SE
10739fi
10740
d7040cdb 10741
d7040cdb 10742
0ab6f085 10743
0ab6f085 10744
0ab6f085 10745
ce2cded5
L
10746 if test "x$enable_dlopen" != xyes; then
10747 enable_dlopen=unknown
10748 enable_dlopen_self=unknown
10749 enable_dlopen_self_static=unknown
d7040cdb 10750else
ce2cded5
L
10751 lt_cv_dlopen=no
10752 lt_cv_dlopen_libs=
d7040cdb 10753
ce2cded5
L
10754 case $host_os in
10755 beos*)
10756 lt_cv_dlopen="load_add_on"
10757 lt_cv_dlopen_libs=
10758 lt_cv_dlopen_self=yes
10759 ;;
d7040cdb 10760
b214d478 10761 mingw* | pw32* | cegcc*)
ce2cded5
L
10762 lt_cv_dlopen="LoadLibrary"
10763 lt_cv_dlopen_libs=
10764 ;;
10765
10766 cygwin*)
10767 lt_cv_dlopen="dlopen"
10768 lt_cv_dlopen_libs=
10769 ;;
10770
10771 darwin*)
10772 # if libdl is installed we need to link against it
81ecdfbb
RW
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10774$as_echo_n "checking for dlopen in -ldl... " >&6; }
10775if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10776 $as_echo_n "(cached) " >&6
d7040cdb 10777else
ce2cded5
L
10778 ac_check_lib_save_LIBS=$LIBS
10779LIBS="-ldl $LIBS"
81ecdfbb 10780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
10781/* end confdefs.h. */
10782
81ecdfbb
RW
10783/* Override any GCC internal prototype to avoid an error.
10784 Use char because int might match the return type of a GCC
10785 builtin and then its argument prototype would still apply. */
ce2cded5
L
10786#ifdef __cplusplus
10787extern "C"
10788#endif
ce2cded5
L
10789char dlopen ();
10790int
10791main ()
10792{
81ecdfbb 10793return dlopen ();
ce2cded5
L
10794 ;
10795 return 0;
10796}
10797_ACEOF
81ecdfbb 10798if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10799 ac_cv_lib_dl_dlopen=yes
10800else
81ecdfbb 10801 ac_cv_lib_dl_dlopen=no
d7040cdb 10802fi
81ecdfbb
RW
10803rm -f core conftest.err conftest.$ac_objext \
10804 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10805LIBS=$ac_check_lib_save_LIBS
d7040cdb 10806fi
81ecdfbb
RW
10807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10808$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10809if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 10810 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10811else
d7040cdb 10812
ce2cded5
L
10813 lt_cv_dlopen="dyld"
10814 lt_cv_dlopen_libs=
10815 lt_cv_dlopen_self=yes
10816
d7040cdb 10817fi
ce2cded5
L
10818
10819 ;;
10820
10821 *)
81ecdfbb
RW
10822 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10823if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
10824 lt_cv_dlopen="shl_load"
10825else
81ecdfbb
RW
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10827$as_echo_n "checking for shl_load in -ldld... " >&6; }
10828if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10829 $as_echo_n "(cached) " >&6
ce2cded5
L
10830else
10831 ac_check_lib_save_LIBS=$LIBS
10832LIBS="-ldld $LIBS"
81ecdfbb 10833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10834/* end confdefs.h. */
d7040cdb 10835
81ecdfbb
RW
10836/* Override any GCC internal prototype to avoid an error.
10837 Use char because int might match the return type of a GCC
10838 builtin and then its argument prototype would still apply. */
ce2cded5
L
10839#ifdef __cplusplus
10840extern "C"
10841#endif
ce2cded5
L
10842char shl_load ();
10843int
10844main ()
10845{
81ecdfbb 10846return shl_load ();
ce2cded5
L
10847 ;
10848 return 0;
10849}
10850_ACEOF
81ecdfbb 10851if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10852 ac_cv_lib_dld_shl_load=yes
10853else
81ecdfbb 10854 ac_cv_lib_dld_shl_load=no
ce2cded5 10855fi
81ecdfbb
RW
10856rm -f core conftest.err conftest.$ac_objext \
10857 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10858LIBS=$ac_check_lib_save_LIBS
10859fi
81ecdfbb
RW
10860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10861$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10862if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
b214d478 10863 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 10864else
81ecdfbb
RW
10865 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10866if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
10867 lt_cv_dlopen="dlopen"
10868else
81ecdfbb
RW
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10870$as_echo_n "checking for dlopen in -ldl... " >&6; }
10871if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10872 $as_echo_n "(cached) " >&6
d7040cdb 10873else
ce2cded5
L
10874 ac_check_lib_save_LIBS=$LIBS
10875LIBS="-ldl $LIBS"
81ecdfbb 10876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10877/* end confdefs.h. */
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_dl_dlopen=yes
d7040cdb 10896else
81ecdfbb 10897 ac_cv_lib_dl_dlopen=no
1b9750d6 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
d7040cdb 10902fi
81ecdfbb
RW
10903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10904$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10905if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 10906 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10907else
81ecdfbb
RW
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10909$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10910if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10911 $as_echo_n "(cached) " >&6
d7040cdb 10912else
ce2cded5
L
10913 ac_check_lib_save_LIBS=$LIBS
10914LIBS="-lsvld $LIBS"
81ecdfbb 10915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10916/* end confdefs.h. */
d7040cdb 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 dlopen ();
d7040cdb
SE
10925int
10926main ()
10927{
81ecdfbb 10928return dlopen ();
d7040cdb
SE
10929 ;
10930 return 0;
10931}
10932_ACEOF
81ecdfbb 10933if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 10934 ac_cv_lib_svld_dlopen=yes
0ab6f085 10935else
81ecdfbb 10936 ac_cv_lib_svld_dlopen=no
0ab6f085 10937fi
81ecdfbb
RW
10938rm -f core conftest.err conftest.$ac_objext \
10939 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10940LIBS=$ac_check_lib_save_LIBS
0ab6f085 10941fi
81ecdfbb
RW
10942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10943$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10944if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
10945 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10946else
81ecdfbb
RW
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10948$as_echo_n "checking for dld_link in -ldld... " >&6; }
10949if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10950 $as_echo_n "(cached) " >&6
ce2cded5
L
10951else
10952 ac_check_lib_save_LIBS=$LIBS
10953LIBS="-ldld $LIBS"
81ecdfbb 10954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0ab6f085 10955/* end confdefs.h. */
ce2cded5 10956
81ecdfbb
RW
10957/* Override any GCC internal prototype to avoid an error.
10958 Use char because int might match the return type of a GCC
10959 builtin and then its argument prototype would still apply. */
ce2cded5
L
10960#ifdef __cplusplus
10961extern "C"
10962#endif
ce2cded5 10963char dld_link ();
0ab6f085
AM
10964int
10965main ()
10966{
81ecdfbb 10967return dld_link ();
0ab6f085
AM
10968 ;
10969 return 0;
10970}
10971_ACEOF
81ecdfbb 10972if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 10973 ac_cv_lib_dld_dld_link=yes
0ab6f085 10974else
81ecdfbb 10975 ac_cv_lib_dld_dld_link=no
0ab6f085 10976fi
81ecdfbb
RW
10977rm -f core conftest.err conftest.$ac_objext \
10978 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10979LIBS=$ac_check_lib_save_LIBS
10980fi
81ecdfbb
RW
10981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10982$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10983if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
b214d478 10984 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
10985fi
10986
10987
10988fi
10989
10990
10991fi
10992
10993
10994fi
10995
10996
10997fi
10998
10999
11000fi
11001
11002 ;;
11003 esac
11004
11005 if test "x$lt_cv_dlopen" != xno; then
11006 enable_dlopen=yes
11007 else
11008 enable_dlopen=no
11009 fi
11010
11011 case $lt_cv_dlopen in
11012 dlopen)
11013 save_CPPFLAGS="$CPPFLAGS"
11014 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11015
11016 save_LDFLAGS="$LDFLAGS"
11017 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11018
11019 save_LIBS="$LIBS"
11020 LIBS="$lt_cv_dlopen_libs $LIBS"
11021
81ecdfbb
RW
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11023$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11024if test "${lt_cv_dlopen_self+set}" = set; then :
11025 $as_echo_n "(cached) " >&6
ce2cded5
L
11026else
11027 if test "$cross_compiling" = yes; then :
11028 lt_cv_dlopen_self=cross
11029else
11030 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11031 lt_status=$lt_dlunknown
11032 cat > conftest.$ac_ext <<_LT_EOF
3388710e 11033#line 11033 "configure"
ce2cded5
L
11034#include "confdefs.h"
11035
11036#if HAVE_DLFCN_H
11037#include <dlfcn.h>
11038#endif
11039
11040#include <stdio.h>
11041
11042#ifdef RTLD_GLOBAL
11043# define LT_DLGLOBAL RTLD_GLOBAL
11044#else
11045# ifdef DL_GLOBAL
11046# define LT_DLGLOBAL DL_GLOBAL
11047# else
11048# define LT_DLGLOBAL 0
11049# endif
11050#endif
11051
11052/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11053 find out it does not work in some platform. */
11054#ifndef LT_DLLAZY_OR_NOW
11055# ifdef RTLD_LAZY
11056# define LT_DLLAZY_OR_NOW RTLD_LAZY
11057# else
11058# ifdef DL_LAZY
11059# define LT_DLLAZY_OR_NOW DL_LAZY
11060# else
11061# ifdef RTLD_NOW
11062# define LT_DLLAZY_OR_NOW RTLD_NOW
11063# else
11064# ifdef DL_NOW
11065# define LT_DLLAZY_OR_NOW DL_NOW
11066# else
11067# define LT_DLLAZY_OR_NOW 0
11068# endif
11069# endif
11070# endif
11071# endif
11072#endif
11073
ce2cded5
L
11074void fnord() { int i=42;}
11075int main ()
0ab6f085 11076{
ce2cded5
L
11077 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11078 int status = $lt_dlunknown;
11079
11080 if (self)
11081 {
11082 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11083 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11084 /* dlclose (self); */
11085 }
11086 else
11087 puts (dlerror ());
11088
b214d478 11089 return status;
ce2cded5
L
11090}
11091_LT_EOF
81ecdfbb 11092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
11093 (eval $ac_link) 2>&5
11094 ac_status=$?
81ecdfbb
RW
11095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11096 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11097 (./conftest; exit; ) >&5 2>/dev/null
11098 lt_status=$?
11099 case x$lt_status in
11100 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11101 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11102 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11103 esac
11104 else :
11105 # compilation failed
11106 lt_cv_dlopen_self=no
11107 fi
11108fi
11109rm -fr conftest*
11110
11111
11112fi
81ecdfbb
RW
11113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11114$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11115
11116 if test "x$lt_cv_dlopen_self" = xyes; then
11117 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11119$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11120if test "${lt_cv_dlopen_self_static+set}" = set; then :
11121 $as_echo_n "(cached) " >&6
ce2cded5
L
11122else
11123 if test "$cross_compiling" = yes; then :
11124 lt_cv_dlopen_self_static=cross
11125else
11126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11127 lt_status=$lt_dlunknown
11128 cat > conftest.$ac_ext <<_LT_EOF
3388710e 11129#line 11129 "configure"
ce2cded5
L
11130#include "confdefs.h"
11131
11132#if HAVE_DLFCN_H
11133#include <dlfcn.h>
11134#endif
11135
11136#include <stdio.h>
11137
11138#ifdef RTLD_GLOBAL
11139# define LT_DLGLOBAL RTLD_GLOBAL
11140#else
11141# ifdef DL_GLOBAL
11142# define LT_DLGLOBAL DL_GLOBAL
11143# else
11144# define LT_DLGLOBAL 0
11145# endif
11146#endif
11147
11148/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11149 find out it does not work in some platform. */
11150#ifndef LT_DLLAZY_OR_NOW
11151# ifdef RTLD_LAZY
11152# define LT_DLLAZY_OR_NOW RTLD_LAZY
11153# else
11154# ifdef DL_LAZY
11155# define LT_DLLAZY_OR_NOW DL_LAZY
11156# else
11157# ifdef RTLD_NOW
11158# define LT_DLLAZY_OR_NOW RTLD_NOW
11159# else
11160# ifdef DL_NOW
11161# define LT_DLLAZY_OR_NOW DL_NOW
11162# else
11163# define LT_DLLAZY_OR_NOW 0
11164# endif
11165# endif
11166# endif
11167# endif
11168#endif
11169
ce2cded5
L
11170void fnord() { int i=42;}
11171int main ()
11172{
11173 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11174 int status = $lt_dlunknown;
11175
11176 if (self)
11177 {
11178 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11179 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11180 /* dlclose (self); */
11181 }
11182 else
11183 puts (dlerror ());
11184
b214d478 11185 return status;
0ab6f085 11186}
ce2cded5 11187_LT_EOF
81ecdfbb 11188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11189 (eval $ac_link) 2>&5
0ab6f085 11190 ac_status=$?
81ecdfbb
RW
11191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11192 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11193 (./conftest; exit; ) >&5 2>/dev/null
11194 lt_status=$?
11195 case x$lt_status in
11196 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11197 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11198 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11199 esac
11200 else :
11201 # compilation failed
11202 lt_cv_dlopen_self_static=no
11203 fi
11204fi
11205rm -fr conftest*
11206
d7040cdb
SE
11207
11208fi
81ecdfbb
RW
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11210$as_echo "$lt_cv_dlopen_self_static" >&6; }
ce2cded5
L
11211 fi
11212
11213 CPPFLAGS="$save_CPPFLAGS"
11214 LDFLAGS="$save_LDFLAGS"
11215 LIBS="$save_LIBS"
11216 ;;
11217 esac
11218
11219 case $lt_cv_dlopen_self in
11220 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11221 *) enable_dlopen_self=unknown ;;
11222 esac
11223
11224 case $lt_cv_dlopen_self_static in
11225 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11226 *) enable_dlopen_self_static=unknown ;;
11227 esac
d7040cdb
SE
11228fi
11229
ce2cded5
L
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246striplib=
11247old_striplib=
81ecdfbb
RW
11248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11249$as_echo_n "checking whether stripping libraries is possible... " >&6; }
ce2cded5
L
11250if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11251 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11252 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11254$as_echo "yes" >&6; }
0ab6f085 11255else
ce2cded5
L
11256# FIXME - insert some real tests, host_os isn't really good enough
11257 case $host_os in
11258 darwin*)
11259 if test -n "$STRIP" ; then
11260 striplib="$STRIP -x"
11261 old_striplib="$STRIP -S"
81ecdfbb
RW
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11263$as_echo "yes" >&6; }
ce2cded5 11264 else
81ecdfbb
RW
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11266$as_echo "no" >&6; }
ce2cded5
L
11267 fi
11268 ;;
11269 *)
81ecdfbb
RW
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271$as_echo "no" >&6; }
ce2cded5
L
11272 ;;
11273 esac
11274fi
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287 # Report which library types will actually be built
81ecdfbb
RW
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11289$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11291$as_echo "$can_build_shared" >&6; }
ce2cded5 11292
81ecdfbb
RW
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11294$as_echo_n "checking whether to build shared libraries... " >&6; }
ce2cded5
L
11295 test "$can_build_shared" = "no" && enable_shared=no
11296
11297 # On AIX, shared libraries and static libraries use the same namespace, and
11298 # are all built from PIC.
11299 case $host_os in
11300 aix3*)
11301 test "$enable_shared" = yes && enable_static=no
11302 if test -n "$RANLIB"; then
11303 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11304 postinstall_cmds='$RANLIB $lib'
11305 fi
11306 ;;
11307
50e7d84b 11308 aix[4-9]*)
ce2cded5
L
11309 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11310 test "$enable_shared" = yes && enable_static=no
11311 fi
11312 ;;
11313 esac
81ecdfbb
RW
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11315$as_echo "$enable_shared" >&6; }
ce2cded5 11316
81ecdfbb
RW
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11318$as_echo_n "checking whether to build static libraries... " >&6; }
ce2cded5
L
11319 # Make sure either enable_shared or enable_static is yes.
11320 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11322$as_echo "$enable_static" >&6; }
ce2cded5
L
11323
11324
11325
d7040cdb 11326
0ab6f085 11327fi
d7040cdb
SE
11328ac_ext=c
11329ac_cpp='$CPP $CPPFLAGS'
11330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11332ac_compiler_gnu=$ac_cv_c_compiler_gnu
11333
ce2cded5 11334CC="$lt_save_CC"
0ab6f085 11335
0ab6f085
AM
11336
11337
d7040cdb
SE
11338
11339
d7040cdb 11340
d7040cdb 11341
d7040cdb 11342
ce2cded5
L
11343
11344
11345
11346
11347
81ecdfbb 11348 ac_config_commands="$ac_config_commands libtool"
ce2cded5
L
11349
11350
11351
11352
11353# Only expand once:
11354
d7040cdb
SE
11355
11356
d7040cdb 11357for ac_func in setmode
81ecdfbb
RW
11358do :
11359 ac_fn_c_check_func "$LINENO" "setmode" "ac_cv_func_setmode"
11360if test "x$ac_cv_func_setmode" = x""yes; then :
d7040cdb 11361 cat >>confdefs.h <<_ACEOF
81ecdfbb 11362#define HAVE_SETMODE 1
d7040cdb
SE
11363_ACEOF
11364
11365fi
11366done
11367
11368
5b912322 11369ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi nl bg"
d7040cdb
SE
11370# If we haven't got the data from the intl directory,
11371# assume NLS is disabled.
11372USE_NLS=no
11373LIBINTL=
11374LIBINTL_DEP=
11375INCINTL=
11376XGETTEXT=
11377GMSGFMT=
11378POSUB=
11379
11380if test -f ../intl/config.intl; then
11381 . ../intl/config.intl
11382fi
81ecdfbb
RW
11383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11384$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 11385if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387$as_echo "no" >&6; }
d7040cdb 11388else
81ecdfbb
RW
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11390$as_echo "yes" >&6; }
d7040cdb 11391
81ecdfbb 11392$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
11393
11394
81ecdfbb
RW
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11396$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
11397 # Look for .po and .gmo files in the source directory.
11398 CATALOGS=
11399 XLINGUAS=
11400 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11401 # If there aren't any .gmo files the shell will give us the
11402 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11403 # weeded out.
11404 case "$cat" in *\**)
11405 continue;;
11406 esac
11407 # The quadruple backslash is collapsed to a double backslash
11408 # by the backticks, then collapsed again by the double quotes,
11409 # leaving us with one backslash in the sed expression (right
11410 # before the dot that mustn't act as a wildcard).
11411 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11412 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11413 # The user is allowed to set LINGUAS to a list of languages to
11414 # install catalogs for. If it's empty that means "all of them."
11415 if test "x$LINGUAS" = x; then
11416 CATALOGS="$CATALOGS $cat"
11417 XLINGUAS="$XLINGUAS $lang"
11418 else
11419 case "$LINGUAS" in *$lang*)
11420 CATALOGS="$CATALOGS $cat"
11421 XLINGUAS="$XLINGUAS $lang"
11422 ;;
11423 esac
11424 fi
11425 done
11426 LINGUAS="$XLINGUAS"
81ecdfbb
RW
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11428$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
11429
11430
11431 DATADIRNAME=share
11432
11433 INSTOBJEXT=.mo
11434
11435 GENCAT=gencat
11436
11437 CATOBJEXT=.gmo
11438
11439fi
11440
11441 MKINSTALLDIRS=
11442 if test -n "$ac_aux_dir"; then
11443 case "$ac_aux_dir" in
11444 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11445 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11446 esac
11447 fi
11448 if test -z "$MKINSTALLDIRS"; then
11449 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11450 fi
11451
11452
11453
81ecdfbb
RW
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11455$as_echo_n "checking whether NLS is requested... " >&6; }
11456 # Check whether --enable-nls was given.
11457if test "${enable_nls+set}" = set; then :
11458 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
11459else
11460 USE_NLS=yes
81ecdfbb
RW
11461fi
11462
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11464$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
11465
11466
11467
11468
11469
11470
11471# Prepare PATH_SEPARATOR.
11472# The user is always right.
11473if test "${PATH_SEPARATOR+set}" != set; then
11474 echo "#! /bin/sh" >conf$$.sh
11475 echo "exit 0" >>conf$$.sh
11476 chmod +x conf$$.sh
11477 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11478 PATH_SEPARATOR=';'
11479 else
11480 PATH_SEPARATOR=:
11481 fi
11482 rm -f conf$$.sh
11483fi
11484
11485# Find out how to test for executable files. Don't use a zero-byte file,
11486# as systems may use methods other than mode bits to determine executability.
11487cat >conf$$.file <<_ASEOF
11488#! /bin/sh
11489exit 0
11490_ASEOF
11491chmod +x conf$$.file
11492if test -x conf$$.file >/dev/null 2>&1; then
11493 ac_executable_p="test -x"
11494else
11495 ac_executable_p="test -f"
11496fi
11497rm -f conf$$.file
11498
11499# Extract the first word of "msgfmt", so it can be a program name with args.
11500set dummy msgfmt; ac_word=$2
81ecdfbb
RW
11501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11502$as_echo_n "checking for $ac_word... " >&6; }
11503if test "${ac_cv_path_MSGFMT+set}" = set; then :
11504 $as_echo_n "(cached) " >&6
d7040cdb
SE
11505else
11506 case "$MSGFMT" in
11507 [\\/]* | ?:[\\/]*)
11508 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11509 ;;
11510 *)
11511 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11512 for ac_dir in $PATH; do
11513 IFS="$ac_save_IFS"
11514 test -z "$ac_dir" && ac_dir=.
11515 for ac_exec_ext in '' $ac_executable_extensions; do
11516 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11517 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11518 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11519 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11520 break 2
11521 fi
11522 fi
11523 done
11524 done
11525 IFS="$ac_save_IFS"
11526 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11527 ;;
11528esac
11529fi
11530MSGFMT="$ac_cv_path_MSGFMT"
11531if test "$MSGFMT" != ":"; then
81ecdfbb
RW
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11533$as_echo "$MSGFMT" >&6; }
d7040cdb 11534else
81ecdfbb
RW
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536$as_echo "no" >&6; }
d7040cdb
SE
11537fi
11538
11539 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11540set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
11541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11542$as_echo_n "checking for $ac_word... " >&6; }
11543if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11544 $as_echo_n "(cached) " >&6
d7040cdb
SE
11545else
11546 case $GMSGFMT in
11547 [\\/]* | ?:[\\/]*)
11548 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11549 ;;
11550 *)
11551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552for as_dir in $PATH
11553do
11554 IFS=$as_save_IFS
11555 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11556 for ac_exec_ext in '' $ac_executable_extensions; do
11557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 11558 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
11560 break 2
11561 fi
11562done
81ecdfbb
RW
11563 done
11564IFS=$as_save_IFS
d7040cdb
SE
11565
11566 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11567 ;;
11568esac
11569fi
11570GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 11571if test -n "$GMSGFMT"; then
81ecdfbb
RW
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11573$as_echo "$GMSGFMT" >&6; }
d7040cdb 11574else
81ecdfbb
RW
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11576$as_echo "no" >&6; }
d7040cdb
SE
11577fi
11578
11579
11580
81ecdfbb 11581
d7040cdb
SE
11582# Prepare PATH_SEPARATOR.
11583# The user is always right.
11584if test "${PATH_SEPARATOR+set}" != set; then
11585 echo "#! /bin/sh" >conf$$.sh
11586 echo "exit 0" >>conf$$.sh
11587 chmod +x conf$$.sh
11588 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11589 PATH_SEPARATOR=';'
11590 else
11591 PATH_SEPARATOR=:
11592 fi
11593 rm -f conf$$.sh
11594fi
11595
11596# Find out how to test for executable files. Don't use a zero-byte file,
11597# as systems may use methods other than mode bits to determine executability.
11598cat >conf$$.file <<_ASEOF
11599#! /bin/sh
11600exit 0
11601_ASEOF
11602chmod +x conf$$.file
11603if test -x conf$$.file >/dev/null 2>&1; then
11604 ac_executable_p="test -x"
11605else
11606 ac_executable_p="test -f"
11607fi
11608rm -f conf$$.file
11609
11610# Extract the first word of "xgettext", so it can be a program name with args.
11611set dummy xgettext; ac_word=$2
81ecdfbb
RW
11612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11613$as_echo_n "checking for $ac_word... " >&6; }
11614if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11615 $as_echo_n "(cached) " >&6
d7040cdb
SE
11616else
11617 case "$XGETTEXT" in
11618 [\\/]* | ?:[\\/]*)
11619 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11620 ;;
11621 *)
11622 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11623 for ac_dir in $PATH; do
11624 IFS="$ac_save_IFS"
11625 test -z "$ac_dir" && ac_dir=.
11626 for ac_exec_ext in '' $ac_executable_extensions; do
11627 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11628 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11629 (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
11630 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11631 break 2
11632 fi
11633 fi
11634 done
11635 done
11636 IFS="$ac_save_IFS"
11637 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11638 ;;
11639esac
11640fi
11641XGETTEXT="$ac_cv_path_XGETTEXT"
11642if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11644$as_echo "$XGETTEXT" >&6; }
d7040cdb 11645else
81ecdfbb
RW
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11647$as_echo "no" >&6; }
d7040cdb
SE
11648fi
11649
11650 rm -f messages.po
11651
11652
11653# Prepare PATH_SEPARATOR.
11654# The user is always right.
11655if test "${PATH_SEPARATOR+set}" != set; then
11656 echo "#! /bin/sh" >conf$$.sh
11657 echo "exit 0" >>conf$$.sh
11658 chmod +x conf$$.sh
11659 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11660 PATH_SEPARATOR=';'
11661 else
11662 PATH_SEPARATOR=:
11663 fi
11664 rm -f conf$$.sh
11665fi
11666
11667# Find out how to test for executable files. Don't use a zero-byte file,
11668# as systems may use methods other than mode bits to determine executability.
11669cat >conf$$.file <<_ASEOF
11670#! /bin/sh
11671exit 0
11672_ASEOF
11673chmod +x conf$$.file
11674if test -x conf$$.file >/dev/null 2>&1; then
11675 ac_executable_p="test -x"
11676else
11677 ac_executable_p="test -f"
11678fi
11679rm -f conf$$.file
11680
11681# Extract the first word of "msgmerge", so it can be a program name with args.
11682set dummy msgmerge; ac_word=$2
81ecdfbb
RW
11683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684$as_echo_n "checking for $ac_word... " >&6; }
11685if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11686 $as_echo_n "(cached) " >&6
d7040cdb
SE
11687else
11688 case "$MSGMERGE" in
11689 [\\/]* | ?:[\\/]*)
11690 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11691 ;;
11692 *)
11693 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11694 for ac_dir in $PATH; do
11695 IFS="$ac_save_IFS"
11696 test -z "$ac_dir" && ac_dir=.
11697 for ac_exec_ext in '' $ac_executable_extensions; do
11698 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11699 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11700 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11701 break 2
11702 fi
11703 fi
11704 done
11705 done
11706 IFS="$ac_save_IFS"
11707 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11708 ;;
11709esac
11710fi
11711MSGMERGE="$ac_cv_path_MSGMERGE"
11712if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11714$as_echo "$MSGMERGE" >&6; }
d7040cdb 11715else
81ecdfbb
RW
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717$as_echo "no" >&6; }
d7040cdb
SE
11718fi
11719
11720
11721 if test "$GMSGFMT" != ":"; then
11722 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11723 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11724 : ;
11725 else
11726 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11728$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
11729 GMSGFMT=":"
11730 fi
11731 fi
11732
11733 if test "$XGETTEXT" != ":"; then
11734 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11735 (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
11736 : ;
11737 else
81ecdfbb
RW
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11739$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
11740 XGETTEXT=":"
11741 fi
11742 rm -f messages.po
11743 fi
11744
81ecdfbb
RW
11745 ac_config_commands="$ac_config_commands default-1"
11746
d7040cdb
SE
11747
11748
11749
81ecdfbb
RW
11750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11751$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11752 # Check whether --enable-maintainer-mode was given.
11753if test "${enable_maintainer_mode+set}" = set; then :
11754 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 11755else
d7040cdb 11756 USE_MAINTAINER_MODE=no
81ecdfbb 11757fi
d7040cdb 11758
81ecdfbb
RW
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11760$as_echo "$USE_MAINTAINER_MODE" >&6; }
11761 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
11762 MAINTAINER_MODE_TRUE=
11763 MAINTAINER_MODE_FALSE='#'
11764else
11765 MAINTAINER_MODE_TRUE='#'
11766 MAINTAINER_MODE_FALSE=
20e95c23 11767fi
6bf9431b 11768
d7040cdb
SE
11769 MAINT=$MAINTAINER_MODE_TRUE
11770
11771
81ecdfbb 11772 if false; then
d7040cdb
SE
11773 GENINSRC_NEVER_TRUE=
11774 GENINSRC_NEVER_FALSE='#'
11775else
11776 GENINSRC_NEVER_TRUE='#'
11777 GENINSRC_NEVER_FALSE=
20e95c23 11778fi
6bf9431b
BE
11779
11780
11781
6bf9431b 11782for ac_header in sys/gmon_out.h
81ecdfbb
RW
11783do :
11784 ac_fn_c_check_header_mongrel "$LINENO" "sys/gmon_out.h" "ac_cv_header_sys_gmon_out_h" "$ac_includes_default"
11785if test "x$ac_cv_header_sys_gmon_out_h" = x""yes; then :
6bf9431b 11786 cat >>confdefs.h <<_ACEOF
81ecdfbb 11787#define HAVE_SYS_GMON_OUT_H 1
6bf9431b
BE
11788_ACEOF
11789
11790fi
11791
11792done
11793
11794
81ecdfbb
RW
11795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
11796$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
11797if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then :
11798 $as_echo_n "(cached) " >&6
34875e64 11799else
81ecdfbb 11800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34875e64
NC
11801/* end confdefs.h. */
11802#include <unistd.h>
11803int
11804main ()
11805{
11806extern int getopt (int, char *const*, const char *);
11807 ;
11808 return 0;
11809}
11810_ACEOF
81ecdfbb 11811if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
11812 gprof_cv_decl_getopt_unistd_h=yes
11813else
81ecdfbb 11814 gprof_cv_decl_getopt_unistd_h=no
34875e64 11815fi
81ecdfbb 11816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
11817fi
11818
81ecdfbb
RW
11819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gprof_cv_decl_getopt_unistd_h" >&5
11820$as_echo "$gprof_cv_decl_getopt_unistd_h" >&6; }
34875e64
NC
11821if test $gprof_cv_decl_getopt_unistd_h = yes; then
11822
81ecdfbb 11823$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
11824
11825fi
11826
1b9750d6 11827# Some systems have fabs only in -lm, not in -lc.
81ecdfbb
RW
11828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
11829$as_echo_n "checking for library containing fabs... " >&6; }
11830if test "${ac_cv_search_fabs+set}" = set; then :
11831 $as_echo_n "(cached) " >&6
1b9750d6
NC
11832else
11833 ac_func_search_save_LIBS=$LIBS
81ecdfbb 11834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1b9750d6
NC
11835/* end confdefs.h. */
11836
81ecdfbb
RW
11837/* Override any GCC internal prototype to avoid an error.
11838 Use char because int might match the return type of a GCC
11839 builtin and then its argument prototype would still apply. */
1b9750d6
NC
11840#ifdef __cplusplus
11841extern "C"
11842#endif
11843char fabs ();
11844int
11845main ()
11846{
81ecdfbb 11847return fabs ();
1b9750d6
NC
11848 ;
11849 return 0;
11850}
11851_ACEOF
81ecdfbb
RW
11852for ac_lib in '' m; do
11853 if test -z "$ac_lib"; then
11854 ac_res="none required"
11855 else
11856 ac_res=-l$ac_lib
0ab6f085 11857 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
11858 fi
11859 if ac_fn_c_try_link "$LINENO"; then :
11860 ac_cv_search_fabs=$ac_res
11861fi
11862rm -f core conftest.err conftest.$ac_objext \
11863 conftest$ac_exeext
11864 if test "${ac_cv_search_fabs+set}" = set; then :
11865 break
11866fi
11867done
11868if test "${ac_cv_search_fabs+set}" = set; then :
1b9750d6 11869
1b9750d6 11870else
81ecdfbb 11871 ac_cv_search_fabs=no
1b9750d6 11872fi
81ecdfbb 11873rm conftest.$ac_ext
1b9750d6
NC
11874LIBS=$ac_func_search_save_LIBS
11875fi
81ecdfbb
RW
11876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
11877$as_echo "$ac_cv_search_fabs" >&6; }
11878ac_res=$ac_cv_search_fabs
11879if test "$ac_res" != no; then :
11880 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1b9750d6
NC
11881
11882fi
11883
11884
9e9b66a9 11885
91d6fa6a 11886GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow"
1ad12f97 11887
81ecdfbb
RW
11888# Check whether --enable-werror was given.
11889if test "${enable_werror+set}" = set; then :
11890 enableval=$enable_werror; case "${enableval}" in
1ad12f97
NC
11891 yes | y) ERROR_ON_WARNING="yes" ;;
11892 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 11893 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
1ad12f97 11894 esac
81ecdfbb
RW
11895fi
11896
1ad12f97 11897
32b1cf22
L
11898# Enable -Wno-format by default when using gcc on mingw
11899case "${host}" in
11900 *-*-mingw32*)
11901 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11902 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11903 fi
11904 ;;
11905 *) ;;
11906esac
11907
9e9b66a9
AM
11908# Enable -Werror by default when using gcc
11909if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11910 ERROR_ON_WARNING=yes
11911fi
11912
11913NO_WERROR=
11914if test "${ERROR_ON_WARNING}" = yes ; then
a541e3ce 11915 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9 11916 NO_WERROR="-Wno-error"
1ad12f97
NC
11917fi
11918
a541e3ce
SE
11919if test "${GCC}" = yes ; then
11920 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11921fi
11922
81ecdfbb
RW
11923# Check whether --enable-build-warnings was given.
11924if test "${enable_build_warnings+set}" = set; then :
11925 enableval=$enable_build_warnings; case "${enableval}" in
a541e3ce
SE
11926 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11927 no) if test "${GCC}" = yes ; then
11928 WARN_CFLAGS="-w"
11929 fi;;
6bf9431b 11930 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 11931 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
6bf9431b 11932 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 11933 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 11934 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6bf9431b 11935esac
81ecdfbb
RW
11936fi
11937
9e9b66a9
AM
11938
11939if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11940 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
6bf9431b
BE
11941fi
11942
11943
9e9b66a9
AM
11944
11945
11946
108a6f8e
CD
11947
11948
11949
11950
31dd3154 11951
81ecdfbb 11952ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
6bf9431b 11953
6bf9431b
BE
11954cat >confcache <<\_ACEOF
11955# This file is a shell script that caches the results of configure
11956# tests run on this system so they can be shared between configure
11957# scripts and configure runs, see configure's option --config-cache.
11958# It is not useful on other systems. If it contains results you don't
11959# want to keep, you may remove or edit it.
11960#
11961# config.status only pays attention to the cache file if you give it
11962# the --recheck option to rerun configure.
11963#
11964# `ac_cv_env_foo' variables (set or unset) will be overridden when
11965# loading this file, other *unset* `ac_cv_foo' will be assigned the
11966# following values.
11967
11968_ACEOF
11969
11970# The following way of writing the cache mishandles newlines in values,
11971# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 11972# So, we kill variables containing newlines.
6bf9431b
BE
11973# Ultrix sh set writes to stderr and can't be redirected directly,
11974# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
11975(
11976 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11977 eval ac_val=\$$ac_var
11978 case $ac_val in #(
11979 *${as_nl}*)
11980 case $ac_var in #(
11981 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11982$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11983 esac
11984 case $ac_var in #(
11985 _ | IFS | as_nl) ;; #(
11986 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11987 *) { eval $ac_var=; unset $ac_var;} ;;
11988 esac ;;
11989 esac
11990 done
11991
6bf9431b 11992 (set) 2>&1 |
81ecdfbb
RW
11993 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11994 *${as_nl}ac_space=\ *)
11995 # `set' does not quote correctly, so add quotes: double-quote
11996 # substitution turns \\\\ into \\, and sed turns \\ into \.
6bf9431b
BE
11997 sed -n \
11998 "s/'/'\\\\''/g;
11999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 12000 ;; #(
6bf9431b
BE
12001 *)
12002 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 12003 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6bf9431b 12004 ;;
81ecdfbb
RW
12005 esac |
12006 sort
12007) |
6bf9431b 12008 sed '
81ecdfbb 12009 /^ac_cv_env_/b end
6bf9431b 12010 t clear
81ecdfbb 12011 :clear
6bf9431b
BE
12012 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12013 t end
81ecdfbb
RW
12014 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12015 :end' >>confcache
12016if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12017 if test -w "$cache_file"; then
12018 test "x$cache_file" != "x/dev/null" &&
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12020$as_echo "$as_me: updating cache $cache_file" >&6;}
6bf9431b
BE
12021 cat confcache >$cache_file
12022 else
81ecdfbb
RW
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12024$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6bf9431b
BE
12025 fi
12026fi
12027rm -f confcache
12028
12029test "x$prefix" = xNONE && prefix=$ac_default_prefix
12030# Let make expand exec_prefix.
12031test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12032
6bf9431b
BE
12033DEFS=-DHAVE_CONFIG_H
12034
12035ac_libobjs=
12036ac_ltlibobjs=
12037for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12038 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
12039 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12040 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12041 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12042 # will be set to the directory where LIBOBJS objects are built.
12043 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12044 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6bf9431b
BE
12045done
12046LIBOBJS=$ac_libobjs
12047
12048LTLIBOBJS=$ac_ltlibobjs
12049
12050
12051if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
12052 as_fn_error "conditional \"AMDEP\" was never defined.
12053Usually this means the macro was only invoked conditionally." "$LINENO" 5
6bf9431b
BE
12054fi
12055if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
12056 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12057Usually this means the macro was only invoked conditionally." "$LINENO" 5
12058fi
12059 if test -n "$EXEEXT"; then
12060 am__EXEEXT_TRUE=
12061 am__EXEEXT_FALSE='#'
12062else
12063 am__EXEEXT_TRUE='#'
12064 am__EXEEXT_FALSE=
6bf9431b 12065fi
81ecdfbb 12066
6bf9431b 12067if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
12068 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12069Usually this means the macro was only invoked conditionally." "$LINENO" 5
6bf9431b 12070fi
d5fbea21 12071if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
12072 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
12073Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 12074fi
6bf9431b
BE
12075
12076: ${CONFIG_STATUS=./config.status}
81ecdfbb 12077ac_write_fail=0
6bf9431b
BE
12078ac_clean_files_save=$ac_clean_files
12079ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
12080{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12081$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12082as_write_fail=0
12083cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6bf9431b
BE
12084#! $SHELL
12085# Generated by $as_me.
12086# Run this file to recreate the current configuration.
12087# Compiler output produced by configure, useful for debugging
12088# configure, is in config.log if it exists.
12089
12090debug=false
12091ac_cs_recheck=false
12092ac_cs_silent=false
6bf9431b 12093
81ecdfbb
RW
12094SHELL=\${CONFIG_SHELL-$SHELL}
12095export SHELL
12096_ASEOF
12097cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12098## -------------------- ##
12099## M4sh Initialization. ##
12100## -------------------- ##
6bf9431b 12101
81ecdfbb
RW
12102# Be more Bourne compatible
12103DUALCASE=1; export DUALCASE # for MKS sh
12104if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6bf9431b
BE
12105 emulate sh
12106 NULLCMD=:
81ecdfbb 12107 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6bf9431b
BE
12108 # is contrary to our usage. Disable this feature.
12109 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
12110 setopt NO_GLOB_SUBST
12111else
12112 case `(set -o) 2>/dev/null` in #(
12113 *posix*) :
12114 set -o posix ;; #(
12115 *) :
12116 ;;
12117esac
6bf9431b 12118fi
6bf9431b 12119
81ecdfbb
RW
12120
12121as_nl='
12122'
12123export as_nl
12124# Printing a long string crashes Solaris 7 /usr/bin/printf.
12125as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12126as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12127as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12128# Prefer a ksh shell builtin over an external printf program on Solaris,
12129# but without wasting forks for bash or zsh.
12130if test -z "$BASH_VERSION$ZSH_VERSION" \
12131 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12132 as_echo='print -r --'
12133 as_echo_n='print -rn --'
12134elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12135 as_echo='printf %s\n'
12136 as_echo_n='printf %s'
12137else
12138 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12139 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12140 as_echo_n='/usr/ucb/echo -n'
12141 else
12142 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12143 as_echo_n_body='eval
12144 arg=$1;
12145 case $arg in #(
12146 *"$as_nl"*)
12147 expr "X$arg" : "X\\(.*\\)$as_nl";
12148 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12149 esac;
12150 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12151 '
12152 export as_echo_n_body
12153 as_echo_n='sh -c $as_echo_n_body as_echo'
12154 fi
12155 export as_echo_body
12156 as_echo='sh -c $as_echo_body as_echo'
12157fi
12158
12159# The user is always right.
12160if test "${PATH_SEPARATOR+set}" != set; then
12161 PATH_SEPARATOR=:
12162 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12163 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12164 PATH_SEPARATOR=';'
12165 }
6bf9431b
BE
12166fi
12167
12168
81ecdfbb
RW
12169# IFS
12170# We need space, tab and new line, in precisely that order. Quoting is
12171# there to prevent editors from complaining about space-tab.
12172# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12173# splitting by setting IFS to empty value.)
12174IFS=" "" $as_nl"
12175
12176# Find who we are. Look in the path if we contain no directory separator.
12177case $0 in #((
12178 *[\\/]* ) as_myself=$0 ;;
12179 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180for as_dir in $PATH
12181do
12182 IFS=$as_save_IFS
12183 test -z "$as_dir" && as_dir=.
12184 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12185 done
12186IFS=$as_save_IFS
12187
12188 ;;
12189esac
12190# We did not find ourselves, most probably we were run as `sh COMMAND'
12191# in which case we are not to be found in the path.
12192if test "x$as_myself" = x; then
12193 as_myself=$0
12194fi
12195if test ! -f "$as_myself"; then
12196 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12197 exit 1
12198fi
12199
12200# Unset variables that we do not need and which cause bugs (e.g. in
12201# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12202# suppresses any "Segmentation fault" message there. '((' could
12203# trigger a bug in pdksh 5.2.14.
12204for as_var in BASH_ENV ENV MAIL MAILPATH
12205do eval test x\${$as_var+set} = xset \
12206 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12207done
6bf9431b
BE
12208PS1='$ '
12209PS2='> '
12210PS4='+ '
12211
12212# NLS nuisances.
81ecdfbb
RW
12213LC_ALL=C
12214export LC_ALL
12215LANGUAGE=C
12216export LANGUAGE
12217
12218# CDPATH.
12219(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12220
12221
12222# as_fn_error ERROR [LINENO LOG_FD]
12223# ---------------------------------
12224# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12225# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12226# script with status $?, using 1 if that was 0.
12227as_fn_error ()
12228{
12229 as_status=$?; test $as_status -eq 0 && as_status=1
12230 if test "$3"; then
12231 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12232 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6bf9431b 12233 fi
81ecdfbb
RW
12234 $as_echo "$as_me: error: $1" >&2
12235 as_fn_exit $as_status
12236} # as_fn_error
12237
12238
12239# as_fn_set_status STATUS
12240# -----------------------
12241# Set $? to STATUS, without forking.
12242as_fn_set_status ()
12243{
12244 return $1
12245} # as_fn_set_status
6bf9431b 12246
81ecdfbb
RW
12247# as_fn_exit STATUS
12248# -----------------
12249# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12250as_fn_exit ()
12251{
12252 set +e
12253 as_fn_set_status $1
12254 exit $1
12255} # as_fn_exit
12256
12257# as_fn_unset VAR
12258# ---------------
12259# Portably unset VAR.
12260as_fn_unset ()
12261{
12262 { eval $1=; unset $1;}
12263}
12264as_unset=as_fn_unset
12265# as_fn_append VAR VALUE
12266# ----------------------
12267# Append the text in VALUE to the end of the definition contained in VAR. Take
12268# advantage of any shell optimizations that allow amortized linear growth over
12269# repeated appends, instead of the typical quadratic growth present in naive
12270# implementations.
12271if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12272 eval 'as_fn_append ()
12273 {
12274 eval $1+=\$2
12275 }'
12276else
12277 as_fn_append ()
12278 {
12279 eval $1=\$$1\$2
12280 }
12281fi # as_fn_append
12282
12283# as_fn_arith ARG...
12284# ------------------
12285# Perform arithmetic evaluation on the ARGs, and store the result in the
12286# global $as_val. Take advantage of shells that can avoid forks. The arguments
12287# must be portable across $(()) and expr.
12288if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12289 eval 'as_fn_arith ()
12290 {
12291 as_val=$(( $* ))
12292 }'
12293else
12294 as_fn_arith ()
12295 {
12296 as_val=`expr "$@" || test $? -eq 1`
12297 }
12298fi # as_fn_arith
12299
12300
12301if expr a : '\(a\)' >/dev/null 2>&1 &&
12302 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6bf9431b
BE
12303 as_expr=expr
12304else
12305 as_expr=false
12306fi
12307
81ecdfbb 12308if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6bf9431b
BE
12309 as_basename=basename
12310else
12311 as_basename=false
252b5132 12312fi
252b5132 12313
81ecdfbb
RW
12314if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12315 as_dirname=dirname
12316else
12317 as_dirname=false
12318fi
252b5132 12319
81ecdfbb 12320as_me=`$as_basename -- "$0" ||
6bf9431b
BE
12321$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12322 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
12323 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12324$as_echo X/"$0" |
12325 sed '/^.*\/\([^/][^/]*\)\/*$/{
12326 s//\1/
12327 q
12328 }
12329 /^X\/\(\/\/\)$/{
12330 s//\1/
12331 q
12332 }
12333 /^X\/\(\/\).*/{
12334 s//\1/
12335 q
12336 }
12337 s/.*/./; q'`
0ab6f085 12338
0ab6f085
AM
12339# Avoid depending upon Character Ranges.
12340as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12341as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12342as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12343as_cr_digits='0123456789'
12344as_cr_alnum=$as_cr_Letters$as_cr_digits
12345
81ecdfbb
RW
12346ECHO_C= ECHO_N= ECHO_T=
12347case `echo -n x` in #(((((
12348-n*)
12349 case `echo 'xy\c'` in
12350 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12351 xy) ECHO_C='\c';;
12352 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12353 ECHO_T=' ';;
12354 esac;;
12355*)
12356 ECHO_N='-n';;
6bf9431b
BE
12357esac
12358
81ecdfbb
RW
12359rm -f conf$$ conf$$.exe conf$$.file
12360if test -d conf$$.dir; then
12361 rm -f conf$$.dir/conf$$.file
0eee5820 12362else
81ecdfbb
RW
12363 rm -f conf$$.dir
12364 mkdir conf$$.dir 2>/dev/null
0eee5820 12365fi
81ecdfbb
RW
12366if (echo >conf$$.file) 2>/dev/null; then
12367 if ln -s conf$$.file conf$$ 2>/dev/null; then
0ab6f085 12368 as_ln_s='ln -s'
81ecdfbb
RW
12369 # ... but there are two gotchas:
12370 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12371 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12372 # In both cases, we have to default to `cp -p'.
12373 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12374 as_ln_s='cp -p'
12375 elif ln conf$$.file conf$$ 2>/dev/null; then
12376 as_ln_s=ln
12377 else
12378 as_ln_s='cp -p'
0ab6f085 12379 fi
6bf9431b
BE
12380else
12381 as_ln_s='cp -p'
0eee5820 12382fi
81ecdfbb
RW
12383rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12384rmdir conf$$.dir 2>/dev/null
12385
12386
12387# as_fn_mkdir_p
12388# -------------
12389# Create "$as_dir" as a directory, including parents if necessary.
12390as_fn_mkdir_p ()
12391{
12392
12393 case $as_dir in #(
12394 -*) as_dir=./$as_dir;;
12395 esac
12396 test -d "$as_dir" || eval $as_mkdir_p || {
12397 as_dirs=
12398 while :; do
12399 case $as_dir in #(
12400 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12401 *) as_qdir=$as_dir;;
12402 esac
12403 as_dirs="'$as_qdir' $as_dirs"
12404 as_dir=`$as_dirname -- "$as_dir" ||
12405$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12406 X"$as_dir" : 'X\(//\)[^/]' \| \
12407 X"$as_dir" : 'X\(//\)$' \| \
12408 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12409$as_echo X"$as_dir" |
12410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12411 s//\1/
12412 q
12413 }
12414 /^X\(\/\/\)[^/].*/{
12415 s//\1/
12416 q
12417 }
12418 /^X\(\/\/\)$/{
12419 s//\1/
12420 q
12421 }
12422 /^X\(\/\).*/{
12423 s//\1/
12424 q
12425 }
12426 s/.*/./; q'`
12427 test -d "$as_dir" && break
12428 done
12429 test -z "$as_dirs" || eval "mkdir $as_dirs"
12430 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6bf9431b 12431
81ecdfbb
RW
12432
12433} # as_fn_mkdir_p
6bf9431b 12434if mkdir -p . 2>/dev/null; then
81ecdfbb 12435 as_mkdir_p='mkdir -p "$as_dir"'
0ab6f085
AM
12436else
12437 test -d ./-p && rmdir ./-p
12438 as_mkdir_p=false
1b9750d6 12439fi
0ab6f085 12440
81ecdfbb
RW
12441if test -x / >/dev/null 2>&1; then
12442 as_test_x='test -x'
12443else
12444 if ls -dL / >/dev/null 2>&1; then
12445 as_ls_L_option=L
12446 else
12447 as_ls_L_option=
12448 fi
12449 as_test_x='
12450 eval sh -c '\''
12451 if test -d "$1"; then
12452 test -d "$1/.";
12453 else
12454 case $1 in #(
12455 -*)set "./$1";;
12456 esac;
12457 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12458 ???[sx]*):;;*)false;;esac;fi
12459 '\'' sh
12460 '
12461fi
12462as_executable_p=$as_test_x
0eee5820 12463
6bf9431b
BE
12464# Sed expression to map a string onto a valid CPP name.
12465as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12466
12467# Sed expression to map a string onto a valid variable name.
12468as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12469
1b9750d6 12470
6bf9431b 12471exec 6>&1
81ecdfbb
RW
12472## ----------------------------------- ##
12473## Main body of $CONFIG_STATUS script. ##
12474## ----------------------------------- ##
12475_ASEOF
12476test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6bf9431b 12477
81ecdfbb
RW
12478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12479# Save the log message, to keep $0 and so on meaningful, and to
6bf9431b 12480# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
12481# values after options handling.
12482ac_log="
6bf9431b 12483This file was extended by $as_me, which was
81ecdfbb 12484generated by GNU Autoconf 2.64. Invocation command line was
6bf9431b
BE
12485
12486 CONFIG_FILES = $CONFIG_FILES
12487 CONFIG_HEADERS = $CONFIG_HEADERS
12488 CONFIG_LINKS = $CONFIG_LINKS
12489 CONFIG_COMMANDS = $CONFIG_COMMANDS
12490 $ $0 $@
12491
81ecdfbb
RW
12492on `(hostname || uname -n) 2>/dev/null | sed 1q`
12493"
12494
6bf9431b
BE
12495_ACEOF
12496
81ecdfbb
RW
12497case $ac_config_files in *"
12498"*) set x $ac_config_files; shift; ac_config_files=$*;;
12499esac
a2d91340 12500
81ecdfbb
RW
12501case $ac_config_headers in *"
12502"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12503esac
0ab6f085 12504
0ab6f085 12505
81ecdfbb
RW
12506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12507# Files that config.status was made for.
12508config_files="$ac_config_files"
12509config_headers="$ac_config_headers"
12510config_commands="$ac_config_commands"
a2d91340 12511
81ecdfbb 12512_ACEOF
0ab6f085 12513
81ecdfbb 12514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6bf9431b 12515ac_cs_usage="\
81ecdfbb
RW
12516\`$as_me' instantiates files and other configuration actions
12517from templates according to the current configuration. Unless the files
12518and actions are specified as TAGs, all are instantiated by default.
6bf9431b 12519
81ecdfbb 12520Usage: $0 [OPTION]... [TAG]...
6bf9431b
BE
12521
12522 -h, --help print this help, then exit
81ecdfbb
RW
12523 -V, --version print version number and configuration settings, then exit
12524 -q, --quiet, --silent
12525 do not print progress messages
6bf9431b
BE
12526 -d, --debug don't remove temporary files
12527 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
12528 --file=FILE[:TEMPLATE]
12529 instantiate the configuration file FILE
12530 --header=FILE[:TEMPLATE]
12531 instantiate the configuration header FILE
6bf9431b
BE
12532
12533Configuration files:
12534$config_files
12535
12536Configuration headers:
12537$config_headers
12538
12539Configuration commands:
12540$config_commands
12541
81ecdfbb 12542Report bugs to the package provider."
0ab6f085 12543
81ecdfbb
RW
12544_ACEOF
12545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6bf9431b
BE
12546ac_cs_version="\\
12547config.status
81ecdfbb
RW
12548configured by $0, generated by GNU Autoconf 2.64,
12549 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6bf9431b 12550
81ecdfbb 12551Copyright (C) 2009 Free Software Foundation, Inc.
6bf9431b
BE
12552This config.status script is free software; the Free Software Foundation
12553gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
12554
12555ac_pwd='$ac_pwd'
12556srcdir='$srcdir'
12557INSTALL='$INSTALL'
12558MKDIR_P='$MKDIR_P'
12559AWK='$AWK'
12560test -n "\$AWK" || AWK=awk
6bf9431b
BE
12561_ACEOF
12562
81ecdfbb
RW
12563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12564# The default lists apply if the user does not specify any file.
6bf9431b
BE
12565ac_need_defaults=:
12566while test $# != 0
12567do
12568 case $1 in
12569 --*=*)
81ecdfbb
RW
12570 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12571 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6bf9431b 12572 ac_shift=:
252b5132 12573 ;;
81ecdfbb 12574 *)
6bf9431b
BE
12575 ac_option=$1
12576 ac_optarg=$2
12577 ac_shift=shift
252b5132 12578 ;;
6bf9431b 12579 esac
252b5132 12580
6bf9431b
BE
12581 case $ac_option in
12582 # Handling of the options.
6bf9431b
BE
12583 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12584 ac_cs_recheck=: ;;
81ecdfbb
RW
12585 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12586 $as_echo "$ac_cs_version"; exit ;;
12587 --debug | --debu | --deb | --de | --d | -d )
6bf9431b
BE
12588 debug=: ;;
12589 --file | --fil | --fi | --f )
12590 $ac_shift
81ecdfbb
RW
12591 case $ac_optarg in
12592 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12593 esac
12594 as_fn_append CONFIG_FILES " '$ac_optarg'"
6bf9431b
BE
12595 ac_need_defaults=false;;
12596 --header | --heade | --head | --hea )
12597 $ac_shift
81ecdfbb
RW
12598 case $ac_optarg in
12599 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12600 esac
12601 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6bf9431b 12602 ac_need_defaults=false;;
81ecdfbb
RW
12603 --he | --h)
12604 # Conflict between --help and --header
12605 as_fn_error "ambiguous option: \`$1'
12606Try \`$0 --help' for more information.";;
12607 --help | --hel | -h )
12608 $as_echo "$ac_cs_usage"; exit ;;
6bf9431b
BE
12609 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12610 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12611 ac_cs_silent=: ;;
252b5132 12612
6bf9431b 12613 # This is an error.
81ecdfbb
RW
12614 -*) as_fn_error "unrecognized option: \`$1'
12615Try \`$0 --help' for more information." ;;
252b5132 12616
81ecdfbb
RW
12617 *) as_fn_append ac_config_targets " $1"
12618 ac_need_defaults=false ;;
252b5132 12619
6bf9431b
BE
12620 esac
12621 shift
12622done
252b5132 12623
6bf9431b 12624ac_configure_extra_args=
252b5132 12625
6bf9431b
BE
12626if $ac_cs_silent; then
12627 exec 6>/dev/null
12628 ac_configure_extra_args="$ac_configure_extra_args --silent"
12629fi
252b5132 12630
6bf9431b 12631_ACEOF
81ecdfbb 12632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6bf9431b 12633if \$ac_cs_recheck; then
81ecdfbb
RW
12634 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12635 shift
12636 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12637 CONFIG_SHELL='$SHELL'
12638 export CONFIG_SHELL
12639 exec "\$@"
6bf9431b
BE
12640fi
12641
12642_ACEOF
81ecdfbb
RW
12643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12644exec 5>>config.log
12645{
12646 echo
12647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12648## Running $as_me. ##
12649_ASBOX
12650 $as_echo "$ac_log"
12651} >&5
6bf9431b 12652
81ecdfbb
RW
12653_ACEOF
12654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 12655#
81ecdfbb 12656# INIT-COMMANDS
252b5132 12657#
6bf9431b 12658AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
12659
12660
12661# The HP-UX ksh and POSIX shell print the target directory to stdout
12662# if CDPATH is set.
12663(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12664
12665sed_quote_subst='$sed_quote_subst'
12666double_quote_subst='$double_quote_subst'
12667delay_variable_subst='$delay_variable_subst'
12668macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12669macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12670enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12671enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12672pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12673enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12674host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12675host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12676host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12677build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12678build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12679build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12680SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12681Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12682GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12683EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12684FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12685LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12686NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12687LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12688max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12689ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12690exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12691lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12692lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12693lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12694reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12695reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
b214d478 12696OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
12697deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12698file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12699AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12700AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12701STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12702RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12703old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12704old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12705old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12706CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12707CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12708compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12709GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12710lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12711lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12712lt_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 12713lt_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
12714objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12715SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12716ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12717MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12718lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12719lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12720lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12721lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12722lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12723need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
b214d478
SE
12724DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12725NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12726LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12727OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12728OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
12729libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12730shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12731extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12732archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12733enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12734export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12735whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12736compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12737old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12738old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12739archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12740archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12741module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12742module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12743with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12744allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12745no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12746hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12747hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12748hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12749hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12750hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12751hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12752hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12753hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12754inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12755link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12756fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12757always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12758export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12759exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12760include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12761prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12762file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12763variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12764need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12765need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12766version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12767runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12768shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12769shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12770libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12771library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12772soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12773postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12774postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12775finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12776finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12777hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12778sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12779sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12780hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12781enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12782enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12783enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12784old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12785striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12786
12787LTCC='$LTCC'
12788LTCFLAGS='$LTCFLAGS'
12789compiler='$compiler_DEFAULT'
12790
12791# Quote evaled strings.
12792for var in SED \
12793GREP \
12794EGREP \
12795FGREP \
12796LD \
12797NM \
12798LN_S \
12799lt_SP2NL \
12800lt_NL2SP \
12801reload_flag \
b214d478 12802OBJDUMP \
d7040cdb
SE
12803deplibs_check_method \
12804file_magic_cmd \
12805AR \
12806AR_FLAGS \
12807STRIP \
12808RANLIB \
12809CC \
12810CFLAGS \
12811compiler \
12812lt_cv_sys_global_symbol_pipe \
12813lt_cv_sys_global_symbol_to_cdecl \
12814lt_cv_sys_global_symbol_to_c_name_address \
b214d478 12815lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
12816SHELL \
12817ECHO \
12818lt_prog_compiler_no_builtin_flag \
12819lt_prog_compiler_wl \
12820lt_prog_compiler_pic \
12821lt_prog_compiler_static \
12822lt_cv_prog_compiler_c_o \
12823need_locks \
b214d478
SE
12824DSYMUTIL \
12825NMEDIT \
12826LIPO \
12827OTOOL \
12828OTOOL64 \
d7040cdb
SE
12829shrext_cmds \
12830export_dynamic_flag_spec \
12831whole_archive_flag_spec \
12832compiler_needs_object \
12833with_gnu_ld \
12834allow_undefined_flag \
12835no_undefined_flag \
12836hardcode_libdir_flag_spec \
12837hardcode_libdir_flag_spec_ld \
12838hardcode_libdir_separator \
12839fix_srcfile_path \
12840exclude_expsyms \
12841include_expsyms \
12842file_list_spec \
12843variables_saved_for_relink \
12844libname_spec \
12845library_names_spec \
12846soname_spec \
12847finish_eval \
12848old_striplib \
12849striplib; do
12850 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12851 *[\\\\\\\`\\"\\\$]*)
12852 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12853 ;;
12854 *)
12855 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12856 ;;
12857 esac
12858done
12859
12860# Double-quote double-evaled strings.
12861for var in reload_cmds \
12862old_postinstall_cmds \
12863old_postuninstall_cmds \
12864old_archive_cmds \
12865extract_expsyms_cmds \
12866old_archive_from_new_cmds \
12867old_archive_from_expsyms_cmds \
12868archive_cmds \
12869archive_expsym_cmds \
12870module_cmds \
12871module_expsym_cmds \
12872export_symbols_cmds \
12873prelink_cmds \
12874postinstall_cmds \
12875postuninstall_cmds \
12876finish_cmds \
12877sys_lib_search_path_spec \
12878sys_lib_dlsearch_path_spec; do
12879 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12880 *[\\\\\\\`\\"\\\$]*)
12881 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12882 ;;
12883 *)
12884 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12885 ;;
12886 esac
12887done
12888
12889# Fix-up fallback echo if it was mangled by the above quoting rules.
12890case \$lt_ECHO in
12891*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12892 ;;
12893esac
12894
12895ac_aux_dir='$ac_aux_dir'
12896xsi_shell='$xsi_shell'
12897lt_shell_append='$lt_shell_append'
12898
12899# See if we are running on zsh, and set the options which allow our
12900# commands through without removal of \ escapes INIT.
12901if test -n "\${ZSH_VERSION+set}" ; then
12902 setopt NO_GLOB_SUBST
12903fi
12904
12905
12906 PACKAGE='$PACKAGE'
12907 VERSION='$VERSION'
12908 TIMESTAMP='$TIMESTAMP'
12909 RM='$RM'
12910 ofile='$ofile'
12911
12912
12913
20e95c23
DJ
12914# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12915 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12916 # from automake.
12917 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12918 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12919 LINGUAS="${LINGUAS-%UNSET%}"
6bf9431b
BE
12920
12921
12922_ACEOF
12923
81ecdfbb 12924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1b9750d6 12925
81ecdfbb 12926# Handling of arguments.
6bf9431b 12927for ac_config_target in $ac_config_targets
252b5132 12928do
81ecdfbb
RW
12929 case $ac_config_target in
12930 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12931 "gconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
12932 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12933 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12934 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12935 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12936
12937 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
12938 esac
12939done
12940
81ecdfbb 12941
6bf9431b
BE
12942# If the user did not use the arguments to specify the items to instantiate,
12943# then the envvar interface is used. Set only those that are not.
12944# We use the long form for the default assignment because of an extremely
12945# bizarre bug on SunOS 4.1.3.
12946if $ac_need_defaults; then
12947 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12948 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12949 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12950fi
12951
12952# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 12953# simply because there is no reason against having it here, and in addition,
6bf9431b 12954# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
12955# Hook for its removal unless debugging.
12956# Note that there is a small window in which the directory will not be cleaned:
12957# after its creation but before its name has been assigned to `$tmp'.
6bf9431b
BE
12958$debug ||
12959{
81ecdfbb
RW
12960 tmp=
12961 trap 'exit_status=$?
12962 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12963' 0
12964 trap 'as_fn_exit 1' 1 2 13 15
6bf9431b 12965}
6bf9431b 12966# Create a (secure) tmp directory for tmp files.
252b5132 12967
6bf9431b 12968{
81ecdfbb 12969 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6bf9431b
BE
12970 test -n "$tmp" && test -d "$tmp"
12971} ||
12972{
81ecdfbb
RW
12973 tmp=./conf$$-$RANDOM
12974 (umask 077 && mkdir "$tmp")
12975} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12976
12977# Set up the scripts for CONFIG_FILES section.
12978# No need to generate them if there are no CONFIG_FILES.
12979# This happens for instance with `./config.status config.h'.
12980if test -n "$CONFIG_FILES"; then
12981
12982
12983ac_cr=`echo X | tr X '\015'`
12984# On cygwin, bash can eat \r inside `` if the user requested igncr.
12985# But we know of no other shell where ac_cr would be empty at this
12986# point, so we can use a bashism as a fallback.
12987if test "x$ac_cr" = x; then
12988 eval ac_cr=\$\'\\r\'
12989fi
12990ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12991if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12992 ac_cs_awk_cr='\r'
12993else
12994 ac_cs_awk_cr=$ac_cr
12995fi
12996
12997echo 'BEGIN {' >"$tmp/subs1.awk" &&
12998_ACEOF
12999
13000
13001{
13002 echo "cat >conf$$subs.awk <<_ACEOF" &&
13003 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13004 echo "_ACEOF"
13005} >conf$$subs.sh ||
13006 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13007ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13008ac_delim='%!_!# '
13009for ac_last_try in false false false false false :; do
13010 . ./conf$$subs.sh ||
13011 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13012
13013 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13014 if test $ac_delim_n = $ac_delim_num; then
13015 break
13016 elif $ac_last_try; then
13017 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13018 else
13019 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13020 fi
13021done
13022rm -f conf$$subs.sh
13023
13024cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13025cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13026_ACEOF
13027sed -n '
13028h
13029s/^/S["/; s/!.*/"]=/
13030p
13031g
13032s/^[^!]*!//
13033:repl
13034t repl
13035s/'"$ac_delim"'$//
13036t delim
13037:nl
13038h
13039s/\(.\{148\}\).*/\1/
13040t more1
13041s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13042p
13043n
13044b repl
13045:more1
13046s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13047p
13048g
13049s/.\{148\}//
13050t nl
13051:delim
13052h
13053s/\(.\{148\}\).*/\1/
13054t more2
13055s/["\\]/\\&/g; s/^/"/; s/$/"/
13056p
13057b
13058:more2
13059s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13060p
13061g
13062s/.\{148\}//
13063t delim
13064' <conf$$subs.awk | sed '
13065/^[^""]/{
13066 N
13067 s/\n//
13068}
13069' >>$CONFIG_STATUS || ac_write_fail=1
13070rm -f conf$$subs.awk
13071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13072_ACAWK
13073cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13074 for (key in S) S_is_set[key] = 1
13075 FS = "\a"
13076
13077}
6bf9431b 13078{
81ecdfbb
RW
13079 line = $ 0
13080 nfields = split(line, field, "@")
13081 substed = 0
13082 len = length(field[1])
13083 for (i = 2; i < nfields; i++) {
13084 key = field[i]
13085 keylen = length(key)
13086 if (S_is_set[key]) {
13087 value = S[key]
13088 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13089 len += length(value) + length(field[++i])
13090 substed = 1
13091 } else
13092 len += 1 + keylen
13093 }
13094
13095 print line
6bf9431b 13096}
252b5132 13097
81ecdfbb
RW
13098_ACAWK
13099_ACEOF
13100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13101if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13102 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13103else
13104 cat
13105fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13106 || as_fn_error "could not setup config files machinery" "$LINENO" 5
0ab6f085
AM
13107_ACEOF
13108
81ecdfbb
RW
13109# VPATH may cause trouble with some makes, so we remove $(srcdir),
13110# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13111# trailing colons and then remove the whole line if VPATH becomes empty
13112# (actually we leave an empty line to preserve line numbers).
13113if test "x$srcdir" = x.; then
13114 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13115s/:*\$(srcdir):*/:/
13116s/:*\${srcdir}:*/:/
13117s/:*@srcdir@:*/:/
13118s/^\([^=]*=[ ]*\):*/\1/
13119s/:*$//
13120s/^[^=]*=[ ]*$//
13121}'
13122fi
13123
13124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13125fi # test -n "$CONFIG_FILES"
0ab6f085 13126
81ecdfbb
RW
13127# Set up the scripts for CONFIG_HEADERS section.
13128# No need to generate them if there are no CONFIG_HEADERS.
13129# This happens for instance with `./config.status Makefile'.
13130if test -n "$CONFIG_HEADERS"; then
13131cat >"$tmp/defines.awk" <<\_ACAWK ||
13132BEGIN {
13133_ACEOF
6bf9431b 13134
81ecdfbb
RW
13135# Transform confdefs.h into an awk script `defines.awk', embedded as
13136# here-document in config.status, that substitutes the proper values into
13137# config.h.in to produce config.h.
1b9750d6 13138
81ecdfbb
RW
13139# Create a delimiter string that does not exist in confdefs.h, to ease
13140# handling of long lines.
13141ac_delim='%!_!# '
13142for ac_last_try in false false :; do
13143 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13144 if test -z "$ac_t"; then
13145 break
13146 elif $ac_last_try; then
13147 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13148 else
13149 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13150 fi
13151done
13152
13153# For the awk script, D is an array of macro values keyed by name,
13154# likewise P contains macro parameters if any. Preserve backslash
13155# newline sequences.
13156
13157ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13158sed -n '
13159s/.\{148\}/&'"$ac_delim"'/g
13160t rset
13161:rset
13162s/^[ ]*#[ ]*define[ ][ ]*/ /
13163t def
13164d
13165:def
13166s/\\$//
13167t bsnl
13168s/["\\]/\\&/g
13169s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13170D["\1"]=" \3"/p
13171s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13172d
13173:bsnl
13174s/["\\]/\\&/g
13175s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13176D["\1"]=" \3\\\\\\n"\\/p
13177t cont
13178s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13179t cont
13180d
13181:cont
13182n
13183s/.\{148\}/&'"$ac_delim"'/g
13184t clear
13185:clear
13186s/\\$//
13187t bsnlc
13188s/["\\]/\\&/g; s/^/"/; s/$/"/p
13189d
13190:bsnlc
13191s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13192b cont
13193' <confdefs.h | sed '
13194s/'"$ac_delim"'/"\\\
13195"/g' >>$CONFIG_STATUS || ac_write_fail=1
13196
13197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13198 for (key in D) D_is_set[key] = 1
13199 FS = "\a"
13200}
13201/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13202 line = \$ 0
13203 split(line, arg, " ")
13204 if (arg[1] == "#") {
13205 defundef = arg[2]
13206 mac1 = arg[3]
13207 } else {
13208 defundef = substr(arg[1], 2)
13209 mac1 = arg[2]
13210 }
13211 split(mac1, mac2, "(") #)
13212 macro = mac2[1]
13213 prefix = substr(line, 1, index(line, defundef) - 1)
13214 if (D_is_set[macro]) {
13215 # Preserve the white space surrounding the "#".
13216 print prefix "define", macro P[macro] D[macro]
13217 next
13218 } else {
13219 # Replace #undef with comments. This is necessary, for example,
13220 # in the case of _POSIX_SOURCE, which is predefined and required
13221 # on some systems where configure will not decide to define it.
13222 if (defundef == "undef") {
13223 print "/*", prefix defundef, macro, "*/"
13224 next
13225 }
13226 }
13227}
13228{ print }
13229_ACAWK
1b9750d6 13230_ACEOF
81ecdfbb
RW
13231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13232 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13233fi # test -n "$CONFIG_HEADERS"
1b9750d6 13234
81ecdfbb
RW
13235
13236eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13237shift
13238for ac_tag
13239do
13240 case $ac_tag in
13241 :[FHLC]) ac_mode=$ac_tag; continue;;
13242 esac
13243 case $ac_mode$ac_tag in
13244 :[FHL]*:*);;
13245 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13246 :[FH]-) ac_tag=-:-;;
13247 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13248 esac
13249 ac_save_IFS=$IFS
13250 IFS=:
13251 set x $ac_tag
13252 IFS=$ac_save_IFS
13253 shift
13254 ac_file=$1
13255 shift
13256
13257 case $ac_mode in
13258 :L) ac_source=$1;;
13259 :[FH])
13260 ac_file_inputs=
13261 for ac_f
13262 do
13263 case $ac_f in
13264 -) ac_f="$tmp/stdin";;
13265 *) # Look for the file first in the build tree, then in the source tree
13266 # (if the path is not absolute). The absolute path cannot be DOS-style,
13267 # because $ac_f cannot contain `:'.
13268 test -f "$ac_f" ||
13269 case $ac_f in
13270 [\\/$]*) false;;
13271 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13272 esac ||
13273 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13274 esac
13275 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13276 as_fn_append ac_file_inputs " '$ac_f'"
13277 done
13278
13279 # Let's still pretend it is `configure' which instantiates (i.e., don't
13280 # use $as_me), people would be surprised to read:
13281 # /* config.h. Generated by config.status. */
13282 configure_input='Generated from '`
13283 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13284 `' by configure.'
13285 if test x"$ac_file" != x-; then
13286 configure_input="$ac_file. $configure_input"
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13288$as_echo "$as_me: creating $ac_file" >&6;}
0ab6f085 13289 fi
81ecdfbb
RW
13290 # Neutralize special characters interpreted by sed in replacement strings.
13291 case $configure_input in #(
13292 *\&* | *\|* | *\\* )
13293 ac_sed_conf_input=`$as_echo "$configure_input" |
13294 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13295 *) ac_sed_conf_input=$configure_input;;
13296 esac
1b9750d6 13297
81ecdfbb
RW
13298 case $ac_tag in
13299 *:-:* | *:-) cat >"$tmp/stdin" \
13300 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13301 esac
13302 ;;
252b5132
RH
13303 esac
13304
81ecdfbb 13305 ac_dir=`$as_dirname -- "$ac_file" ||
6bf9431b
BE
13306$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13307 X"$ac_file" : 'X\(//\)[^/]' \| \
13308 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
13309 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13310$as_echo X"$ac_file" |
13311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13312 s//\1/
13313 q
13314 }
13315 /^X\(\/\/\)[^/].*/{
13316 s//\1/
13317 q
13318 }
13319 /^X\(\/\/\)$/{
13320 s//\1/
13321 q
13322 }
13323 /^X\(\/\).*/{
13324 s//\1/
13325 q
13326 }
13327 s/.*/./; q'`
13328 as_dir="$ac_dir"; as_fn_mkdir_p
6bf9431b
BE
13329 ac_builddir=.
13330
81ecdfbb
RW
13331case "$ac_dir" in
13332.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13333*)
13334 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13335 # A ".." for each directory in $ac_dir_suffix.
13336 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13337 case $ac_top_builddir_sub in
13338 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13339 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13340 esac ;;
13341esac
13342ac_abs_top_builddir=$ac_pwd
13343ac_abs_builddir=$ac_pwd$ac_dir_suffix
13344# for backward compatibility:
13345ac_top_builddir=$ac_top_build_prefix
252b5132 13346
6bf9431b 13347case $srcdir in
81ecdfbb 13348 .) # We are building in place.
6bf9431b 13349 ac_srcdir=.
81ecdfbb
RW
13350 ac_top_srcdir=$ac_top_builddir_sub
13351 ac_abs_top_srcdir=$ac_pwd ;;
13352 [\\/]* | ?:[\\/]* ) # Absolute name.
6bf9431b 13353 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
13354 ac_top_srcdir=$srcdir
13355 ac_abs_top_srcdir=$srcdir ;;
13356 *) # Relative name.
13357 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13358 ac_top_srcdir=$ac_top_build_prefix$srcdir
13359 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6bf9431b 13360esac
81ecdfbb 13361ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 13362
252b5132 13363
81ecdfbb
RW
13364 case $ac_mode in
13365 :F)
13366 #
13367 # CONFIG_FILE
13368 #
6bf9431b
BE
13369
13370 case $INSTALL in
13371 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
13372 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13373 esac
13374 ac_MKDIR_P=$MKDIR_P
13375 case $MKDIR_P in
13376 [\\/$]* | ?:[\\/]* ) ;;
13377 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
252b5132 13378 esac
81ecdfbb 13379_ACEOF
1b9750d6 13380
81ecdfbb
RW
13381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13382# If the template does not know about datarootdir, expand it.
13383# FIXME: This hack should be removed a few years after 2.60.
13384ac_datarootdir_hack=; ac_datarootdir_seen=
13385ac_sed_dataroot='
13386/datarootdir/ {
13387 p
13388 q
13389}
13390/@datadir@/p
13391/@docdir@/p
13392/@infodir@/p
13393/@localedir@/p
13394/@mandir@/p'
13395case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13396*datarootdir*) ac_datarootdir_seen=yes;;
13397*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13399$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13400_ACEOF
13401cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13402 ac_datarootdir_hack='
13403 s&@datadir@&$datadir&g
13404 s&@docdir@&$docdir&g
13405 s&@infodir@&$infodir&g
13406 s&@localedir@&$localedir&g
13407 s&@mandir@&$mandir&g
13408 s&\\\${datarootdir}&$datarootdir&g' ;;
13409esac
6bf9431b 13410_ACEOF
81ecdfbb
RW
13411
13412# Neutralize VPATH when `$srcdir' = `.'.
13413# Shell code in configure.ac might set extrasub.
13414# FIXME: do we really want to maintain this feature?
13415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13416ac_sed_extra="$ac_vpsub
6bf9431b
BE
13417$extrasub
13418_ACEOF
81ecdfbb 13419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6bf9431b
BE
13420:t
13421/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
13422s|@configure_input@|$ac_sed_conf_input|;t t
13423s&@top_builddir@&$ac_top_builddir_sub&;t t
13424s&@top_build_prefix@&$ac_top_build_prefix&;t t
13425s&@srcdir@&$ac_srcdir&;t t
13426s&@abs_srcdir@&$ac_abs_srcdir&;t t
13427s&@top_srcdir@&$ac_top_srcdir&;t t
13428s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13429s&@builddir@&$ac_builddir&;t t
13430s&@abs_builddir@&$ac_abs_builddir&;t t
13431s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13432s&@INSTALL@&$ac_INSTALL&;t t
13433s&@MKDIR_P@&$ac_MKDIR_P&;t t
13434$ac_datarootdir_hack
13435"
13436eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13437 || as_fn_error "could not create $ac_file" "$LINENO" 5
13438
13439test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13440 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13441 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13443which seems to be undefined. Please make sure it is defined." >&5
13444$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13445which seems to be undefined. Please make sure it is defined." >&2;}
13446
13447 rm -f "$tmp/stdin"
6bf9431b 13448 case $ac_file in
81ecdfbb
RW
13449 -) cat "$tmp/out" && rm -f "$tmp/out";;
13450 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13451 esac \
13452 || as_fn_error "could not create $ac_file" "$LINENO" 5
13453 ;;
13454 :H)
13455 #
13456 # CONFIG_HEADER
13457 #
6bf9431b 13458 if test x"$ac_file" != x-; then
81ecdfbb
RW
13459 {
13460 $as_echo "/* $configure_input */" \
13461 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13462 } >"$tmp/config.h" \
13463 || as_fn_error "could not create $ac_file" "$LINENO" 5
13464 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13466$as_echo "$as_me: $ac_file is unchanged" >&6;}
6bf9431b 13467 else
81ecdfbb
RW
13468 rm -f "$ac_file"
13469 mv "$tmp/config.h" "$ac_file" \
13470 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 13471 fi
6bf9431b 13472 else
81ecdfbb
RW
13473 $as_echo "/* $configure_input */" \
13474 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13475 || as_fn_error "could not create -" "$LINENO" 5
252b5132 13476 fi
81ecdfbb
RW
13477# Compute "$ac_file"'s index in $config_headers.
13478_am_arg="$ac_file"
6bf9431b
BE
13479_am_stamp_count=1
13480for _am_header in $config_headers :; do
13481 case $_am_header in
81ecdfbb 13482 $_am_arg | $_am_arg:* )
6bf9431b
BE
13483 break ;;
13484 * )
13485 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13486 esac
13487done
81ecdfbb
RW
13488echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13489$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13490 X"$_am_arg" : 'X\(//\)[^/]' \| \
13491 X"$_am_arg" : 'X\(//\)$' \| \
13492 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13493$as_echo X"$_am_arg" |
13494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13495 s//\1/
13496 q
13497 }
13498 /^X\(\/\/\)[^/].*/{
13499 s//\1/
13500 q
13501 }
13502 /^X\(\/\/\)$/{
13503 s//\1/
13504 q
13505 }
13506 /^X\(\/\).*/{
13507 s//\1/
13508 q
13509 }
13510 s/.*/./; q'`/stamp-h$_am_stamp_count
13511 ;;
0ab6f085 13512
81ecdfbb
RW
13513 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13514$as_echo "$as_me: executing $ac_file commands" >&6;}
13515 ;;
13516 esac
6bf9431b
BE
13517
13518
81ecdfbb
RW
13519 case $ac_file$ac_mode in
13520 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13521 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13522 # are listed without --file. Let's play safe and only enable the eval
13523 # if we detect the quoting.
13524 case $CONFIG_FILES in
13525 *\'*) eval set x "$CONFIG_FILES" ;;
13526 *) set x $CONFIG_FILES ;;
13527 esac
13528 shift
13529 for mf
13530 do
13531 # Strip MF so we end up with the name of the file.
13532 mf=`echo "$mf" | sed -e 's/:.*$//'`
13533 # Check whether this is an Automake generated Makefile or not.
13534 # We used to match only the files named `Makefile.in', but
13535 # some people rename them; so instead we look at the file content.
13536 # Grep'ing the first line is not enough: some people post-process
13537 # each Makefile.in and add a new line on top of each file to say so.
13538 # Grep'ing the whole file is not good either: AIX grep has a line
13539 # limit of 2048, but all sed's we know have understand at least 4000.
13540 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13541 dirpart=`$as_dirname -- "$mf" ||
6bf9431b
BE
13542$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13543 X"$mf" : 'X\(//\)[^/]' \| \
13544 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
13545 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13546$as_echo X"$mf" |
13547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13548 s//\1/
13549 q
13550 }
13551 /^X\(\/\/\)[^/].*/{
13552 s//\1/
13553 q
13554 }
13555 /^X\(\/\/\)$/{
13556 s//\1/
13557 q
13558 }
13559 /^X\(\/\).*/{
13560 s//\1/
13561 q
13562 }
13563 s/.*/./; q'`
13564 else
13565 continue
13566 fi
13567 # Extract the definition of DEPDIR, am__include, and am__quote
13568 # from the Makefile without running `make'.
13569 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13570 test -z "$DEPDIR" && continue
13571 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13572 test -z "am__include" && continue
13573 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13574 # When using ansi2knr, U may be empty or an underscore; expand it
13575 U=`sed -n 's/^U = //p' < "$mf"`
13576 # Find all dependency output files, they are included files with
13577 # $(DEPDIR) in their names. We invoke sed twice because it is the
13578 # simplest approach to changing $(DEPDIR) to its actual value in the
13579 # expansion.
13580 for file in `sed -n "
13581 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13582 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13583 # Make sure the directory exists.
13584 test -f "$dirpart/$file" && continue
13585 fdir=`$as_dirname -- "$file" ||
6bf9431b
BE
13586$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13587 X"$file" : 'X\(//\)[^/]' \| \
13588 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
13589 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13590$as_echo X"$file" |
13591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13592 s//\1/
13593 q
13594 }
13595 /^X\(\/\/\)[^/].*/{
13596 s//\1/
13597 q
13598 }
13599 /^X\(\/\/\)$/{
13600 s//\1/
13601 q
13602 }
13603 /^X\(\/\).*/{
13604 s//\1/
13605 q
13606 }
13607 s/.*/./; q'`
13608 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13609 # echo "creating $dirpart/$file"
13610 echo '# dummy' > "$dirpart/$file"
6bf9431b 13611 done
6bf9431b 13612 done
81ecdfbb 13613}
d7040cdb 13614 ;;
81ecdfbb 13615 "libtool":C)
d7040cdb
SE
13616
13617 # See if we are running on zsh, and set the options which allow our
13618 # commands through without removal of \ escapes.
13619 if test -n "${ZSH_VERSION+set}" ; then
13620 setopt NO_GLOB_SUBST
13621 fi
13622
13623 cfgfile="${ofile}T"
13624 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13625 $RM "$cfgfile"
13626
13627 cat <<_LT_EOF >> "$cfgfile"
13628#! $SHELL
13629
13630# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 13631# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
13632# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13633# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13634#
b214d478
SE
13635# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13636# 2006, 2007, 2008 Free Software Foundation, Inc.
13637# Written by Gordon Matzigkeit, 1996
d7040cdb 13638#
b214d478 13639# This file is part of GNU Libtool.
d7040cdb 13640#
b214d478
SE
13641# GNU Libtool is free software; you can redistribute it and/or
13642# modify it under the terms of the GNU General Public License as
13643# published by the Free Software Foundation; either version 2 of
13644# the License, or (at your option) any later version.
d7040cdb 13645#
b214d478
SE
13646# As a special exception to the GNU General Public License,
13647# if you distribute this file as part of a program or library that
13648# is built using GNU Libtool, you may include this file under the
13649# same distribution terms that you use for the rest of that program.
d7040cdb 13650#
b214d478
SE
13651# GNU Libtool is distributed in the hope that it will be useful,
13652# but WITHOUT ANY WARRANTY; without even the implied warranty of
13653# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13654# GNU General Public License for more details.
d7040cdb 13655#
b214d478
SE
13656# You should have received a copy of the GNU General Public License
13657# along with GNU Libtool; see the file COPYING. If not, a copy
13658# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13659# obtained by writing to the Free Software Foundation, Inc.,
13660# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
13661
13662
13663# The names of the tagged configurations supported by this script.
13664available_tags=""
13665
13666# ### BEGIN LIBTOOL CONFIG
13667
13668# Which release of libtool.m4 was used?
13669macro_version=$macro_version
13670macro_revision=$macro_revision
13671
13672# Whether or not to build shared libraries.
13673build_libtool_libs=$enable_shared
13674
13675# Whether or not to build static libraries.
13676build_old_libs=$enable_static
13677
13678# What type of objects to build.
13679pic_mode=$pic_mode
13680
13681# Whether or not to optimize for fast installation.
13682fast_install=$enable_fast_install
13683
13684# The host system.
13685host_alias=$host_alias
13686host=$host
13687host_os=$host_os
13688
13689# The build system.
13690build_alias=$build_alias
13691build=$build
13692build_os=$build_os
13693
13694# A sed program that does not truncate output.
13695SED=$lt_SED
13696
13697# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13698Xsed="\$SED -e 1s/^X//"
13699
13700# A grep program that handles long lines.
13701GREP=$lt_GREP
13702
13703# An ERE matcher.
13704EGREP=$lt_EGREP
13705
13706# A literal string matcher.
13707FGREP=$lt_FGREP
13708
13709# A BSD- or MS-compatible name lister.
13710NM=$lt_NM
13711
13712# Whether we need soft or hard links.
13713LN_S=$lt_LN_S
13714
13715# What is the maximum length of a command?
13716max_cmd_len=$max_cmd_len
13717
13718# Object file suffix (normally "o").
13719objext=$ac_objext
13720
13721# Executable file suffix (normally "").
13722exeext=$exeext
13723
13724# whether the shell understands "unset".
13725lt_unset=$lt_unset
13726
13727# turn spaces into newlines.
13728SP2NL=$lt_lt_SP2NL
13729
13730# turn newlines into spaces.
13731NL2SP=$lt_lt_NL2SP
13732
13733# How to create reloadable object files.
13734reload_flag=$lt_reload_flag
13735reload_cmds=$lt_reload_cmds
13736
b214d478
SE
13737# An object symbol dumper.
13738OBJDUMP=$lt_OBJDUMP
13739
d7040cdb
SE
13740# Method to check whether dependent libraries are shared objects.
13741deplibs_check_method=$lt_deplibs_check_method
13742
13743# Command to use when deplibs_check_method == "file_magic".
13744file_magic_cmd=$lt_file_magic_cmd
13745
13746# The archiver.
13747AR=$lt_AR
13748AR_FLAGS=$lt_AR_FLAGS
13749
13750# A symbol stripping program.
13751STRIP=$lt_STRIP
13752
13753# Commands used to install an old-style archive.
13754RANLIB=$lt_RANLIB
13755old_postinstall_cmds=$lt_old_postinstall_cmds
13756old_postuninstall_cmds=$lt_old_postuninstall_cmds
13757
13758# A C compiler.
13759LTCC=$lt_CC
13760
13761# LTCC compiler flags.
13762LTCFLAGS=$lt_CFLAGS
13763
13764# Take the output of nm and produce a listing of raw symbols and C names.
13765global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13766
13767# Transform the output of nm in a proper C declaration.
13768global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13769
13770# Transform the output of nm in a C name address pair.
13771global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13772
b214d478
SE
13773# Transform the output of nm in a C name address pair when lib prefix is needed.
13774global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13775
d7040cdb
SE
13776# The name of the directory that contains temporary libtool files.
13777objdir=$objdir
13778
13779# Shell to use when invoking shell scripts.
13780SHELL=$lt_SHELL
13781
13782# An echo program that does not interpret backslashes.
13783ECHO=$lt_ECHO
13784
13785# Used to examine libraries when file_magic_cmd begins with "file".
13786MAGIC_CMD=$MAGIC_CMD
13787
13788# Must we lock files when doing compilation?
13789need_locks=$lt_need_locks
13790
b214d478
SE
13791# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13792DSYMUTIL=$lt_DSYMUTIL
13793
13794# Tool to change global to local symbols on Mac OS X.
13795NMEDIT=$lt_NMEDIT
13796
13797# Tool to manipulate fat objects and archives on Mac OS X.
13798LIPO=$lt_LIPO
13799
13800# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13801OTOOL=$lt_OTOOL
13802
13803# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13804OTOOL64=$lt_OTOOL64
13805
d7040cdb
SE
13806# Old archive suffix (normally "a").
13807libext=$libext
13808
13809# Shared library suffix (normally ".so").
13810shrext_cmds=$lt_shrext_cmds
13811
13812# The commands to extract the exported symbol list from a shared archive.
13813extract_expsyms_cmds=$lt_extract_expsyms_cmds
13814
13815# Variables whose values should be saved in libtool wrapper scripts and
13816# restored at link time.
13817variables_saved_for_relink=$lt_variables_saved_for_relink
13818
13819# Do we need the "lib" prefix for modules?
13820need_lib_prefix=$need_lib_prefix
13821
13822# Do we need a version for libraries?
13823need_version=$need_version
13824
13825# Library versioning type.
13826version_type=$version_type
13827
13828# Shared library runtime path variable.
13829runpath_var=$runpath_var
13830
13831# Shared library path variable.
13832shlibpath_var=$shlibpath_var
13833
13834# Is shlibpath searched before the hard-coded library search path?
13835shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13836
13837# Format of library name prefix.
13838libname_spec=$lt_libname_spec
13839
13840# List of archive names. First name is the real one, the rest are links.
13841# The last name is the one that the linker finds with -lNAME
13842library_names_spec=$lt_library_names_spec
13843
13844# The coded name of the library, if different from the real name.
13845soname_spec=$lt_soname_spec
13846
13847# Command to use after installation of a shared archive.
13848postinstall_cmds=$lt_postinstall_cmds
13849
13850# Command to use after uninstallation of a shared archive.
13851postuninstall_cmds=$lt_postuninstall_cmds
13852
13853# Commands used to finish a libtool library installation in a directory.
13854finish_cmds=$lt_finish_cmds
13855
13856# As "finish_cmds", except a single script fragment to be evaled but
13857# not shown.
13858finish_eval=$lt_finish_eval
13859
13860# Whether we should hardcode library paths into libraries.
13861hardcode_into_libs=$hardcode_into_libs
13862
13863# Compile-time system search path for libraries.
13864sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13865
13866# Run-time system search path for libraries.
13867sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13868
13869# Whether dlopen is supported.
13870dlopen_support=$enable_dlopen
13871
13872# Whether dlopen of programs is supported.
13873dlopen_self=$enable_dlopen_self
13874
13875# Whether dlopen of statically linked programs is supported.
13876dlopen_self_static=$enable_dlopen_self_static
13877
13878# Commands to strip libraries.
13879old_striplib=$lt_old_striplib
13880striplib=$lt_striplib
13881
13882
13883# The linker used to build libraries.
13884LD=$lt_LD
13885
13886# Commands used to build an old-style archive.
13887old_archive_cmds=$lt_old_archive_cmds
13888
13889# A language specific compiler.
13890CC=$lt_compiler
13891
13892# Is the compiler the GNU compiler?
13893with_gcc=$GCC
13894
13895# Compiler flag to turn off builtin functions.
13896no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13897
13898# How to pass a linker flag through the compiler.
13899wl=$lt_lt_prog_compiler_wl
13900
13901# Additional compiler flags for building library objects.
13902pic_flag=$lt_lt_prog_compiler_pic
13903
13904# Compiler flag to prevent dynamic linking.
13905link_static_flag=$lt_lt_prog_compiler_static
13906
13907# Does compiler simultaneously support -c and -o options?
13908compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13909
13910# Whether or not to add -lc for building shared libraries.
13911build_libtool_need_lc=$archive_cmds_need_lc
13912
13913# Whether or not to disallow shared libs when runtime libs are static.
13914allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13915
13916# Compiler flag to allow reflexive dlopens.
13917export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13918
13919# Compiler flag to generate shared objects directly from archives.
13920whole_archive_flag_spec=$lt_whole_archive_flag_spec
13921
13922# Whether the compiler copes with passing no objects directly.
13923compiler_needs_object=$lt_compiler_needs_object
13924
13925# Create an old-style archive from a shared archive.
13926old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13927
13928# Create a temporary old-style archive to link instead of a shared archive.
13929old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13930
13931# Commands used to build a shared archive.
13932archive_cmds=$lt_archive_cmds
13933archive_expsym_cmds=$lt_archive_expsym_cmds
13934
13935# Commands used to build a loadable module if different from building
13936# a shared archive.
13937module_cmds=$lt_module_cmds
13938module_expsym_cmds=$lt_module_expsym_cmds
13939
13940# Whether we are building with GNU ld or not.
13941with_gnu_ld=$lt_with_gnu_ld
13942
13943# Flag that allows shared libraries with undefined symbols to be built.
13944allow_undefined_flag=$lt_allow_undefined_flag
13945
13946# Flag that enforces no undefined symbols.
13947no_undefined_flag=$lt_no_undefined_flag
13948
13949# Flag to hardcode \$libdir into a binary during linking.
13950# This must work even if \$libdir does not exist
13951hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13952
13953# If ld is used when linking, flag to hardcode \$libdir into a binary
13954# during linking. This must work even if \$libdir does not exist.
13955hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13956
13957# Whether we need a single "-rpath" flag with a separated argument.
13958hardcode_libdir_separator=$lt_hardcode_libdir_separator
13959
13960# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13961# DIR into the resulting binary.
13962hardcode_direct=$hardcode_direct
13963
13964# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13965# DIR into the resulting binary and the resulting library dependency is
13966# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13967# library is relocated.
13968hardcode_direct_absolute=$hardcode_direct_absolute
13969
13970# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13971# into the resulting binary.
13972hardcode_minus_L=$hardcode_minus_L
13973
13974# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13975# into the resulting binary.
13976hardcode_shlibpath_var=$hardcode_shlibpath_var
13977
13978# Set to "yes" if building a shared library automatically hardcodes DIR
13979# into the library and all subsequent libraries and executables linked
13980# against it.
13981hardcode_automatic=$hardcode_automatic
13982
13983# Set to yes if linker adds runtime paths of dependent libraries
13984# to runtime path list.
13985inherit_rpath=$inherit_rpath
13986
13987# Whether libtool must link a program against all its dependency libraries.
13988link_all_deplibs=$link_all_deplibs
13989
13990# Fix the shell variable \$srcfile for the compiler.
13991fix_srcfile_path=$lt_fix_srcfile_path
13992
13993# Set to "yes" if exported symbols are required.
13994always_export_symbols=$always_export_symbols
13995
13996# The commands to list exported symbols.
13997export_symbols_cmds=$lt_export_symbols_cmds
13998
13999# Symbols that should not be listed in the preloaded symbols.
14000exclude_expsyms=$lt_exclude_expsyms
14001
14002# Symbols that must always be exported.
14003include_expsyms=$lt_include_expsyms
14004
14005# Commands necessary for linking programs (against libraries) with templates.
14006prelink_cmds=$lt_prelink_cmds
14007
14008# Specify filename containing input files.
14009file_list_spec=$lt_file_list_spec
14010
14011# How to hardcode a shared library path into an executable.
14012hardcode_action=$hardcode_action
14013
14014# ### END LIBTOOL CONFIG
14015
14016_LT_EOF
14017
14018 case $host_os in
14019 aix3*)
14020 cat <<\_LT_EOF >> "$cfgfile"
14021# AIX sometimes has problems with the GCC collect2 program. For some
14022# reason, if we set the COLLECT_NAMES environment variable, the problems
14023# vanish in a puff of smoke.
14024if test "X${COLLECT_NAMES+set}" != Xset; then
14025 COLLECT_NAMES=
14026 export COLLECT_NAMES
14027fi
14028_LT_EOF
14029 ;;
14030 esac
14031
14032
14033ltmain="$ac_aux_dir/ltmain.sh"
14034
14035
14036 # We use sed instead of cat because bash on DJGPP gets confused if
14037 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14038 # text mode, it properly converts lines to CR/LF. This bash problem
14039 # is reportedly fixed, but why not run on old versions too?
14040 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14041 || (rm -f "$cfgfile"; exit 1)
14042
14043 case $xsi_shell in
14044 yes)
14045 cat << \_LT_EOF >> "$cfgfile"
b214d478 14046
d7040cdb
SE
14047# func_dirname file append nondir_replacement
14048# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14049# otherwise set result to NONDIR_REPLACEMENT.
14050func_dirname ()
14051{
14052 case ${1} in
14053 */*) func_dirname_result="${1%/*}${2}" ;;
14054 * ) func_dirname_result="${3}" ;;
14055 esac
14056}
14057
14058# func_basename file
14059func_basename ()
14060{
14061 func_basename_result="${1##*/}"
14062}
14063
b214d478
SE
14064# func_dirname_and_basename file append nondir_replacement
14065# perform func_basename and func_dirname in a single function
14066# call:
14067# dirname: Compute the dirname of FILE. If nonempty,
14068# add APPEND to the result, otherwise set result
14069# to NONDIR_REPLACEMENT.
14070# value returned in "$func_dirname_result"
14071# basename: Compute filename of FILE.
14072# value retuned in "$func_basename_result"
14073# Implementation must be kept synchronized with func_dirname
14074# and func_basename. For efficiency, we do not delegate to
14075# those functions but instead duplicate the functionality here.
14076func_dirname_and_basename ()
14077{
14078 case ${1} in
14079 */*) func_dirname_result="${1%/*}${2}" ;;
14080 * ) func_dirname_result="${3}" ;;
14081 esac
14082 func_basename_result="${1##*/}"
14083}
14084
d7040cdb
SE
14085# func_stripname prefix suffix name
14086# strip PREFIX and SUFFIX off of NAME.
14087# PREFIX and SUFFIX must not contain globbing or regex special
14088# characters, hashes, percent signs, but SUFFIX may contain a leading
14089# dot (in which case that matches only a dot).
14090func_stripname ()
14091{
14092 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14093 # positional parameters, so assign one to ordinary parameter first.
14094 func_stripname_result=${3}
14095 func_stripname_result=${func_stripname_result#"${1}"}
14096 func_stripname_result=${func_stripname_result%"${2}"}
14097}
14098
14099# func_opt_split
14100func_opt_split ()
14101{
14102 func_opt_split_opt=${1%%=*}
14103 func_opt_split_arg=${1#*=}
14104}
14105
14106# func_lo2o object
14107func_lo2o ()
14108{
14109 case ${1} in
14110 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14111 *) func_lo2o_result=${1} ;;
14112 esac
14113}
b214d478
SE
14114
14115# func_xform libobj-or-source
14116func_xform ()
14117{
14118 func_xform_result=${1%.*}.lo
14119}
14120
14121# func_arith arithmetic-term...
14122func_arith ()
14123{
14124 func_arith_result=$(( $* ))
14125}
14126
14127# func_len string
14128# STRING may not start with a hyphen.
14129func_len ()
14130{
14131 func_len_result=${#1}
14132}
14133
d7040cdb
SE
14134_LT_EOF
14135 ;;
14136 *) # Bourne compatible functions.
14137 cat << \_LT_EOF >> "$cfgfile"
b214d478 14138
d7040cdb
SE
14139# func_dirname file append nondir_replacement
14140# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14141# otherwise set result to NONDIR_REPLACEMENT.
14142func_dirname ()
14143{
14144 # Extract subdirectory from the argument.
14145 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14146 if test "X$func_dirname_result" = "X${1}"; then
14147 func_dirname_result="${3}"
14148 else
14149 func_dirname_result="$func_dirname_result${2}"
14150 fi
14151}
14152
14153# func_basename file
14154func_basename ()
14155{
14156 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14157}
14158
b214d478 14159
d7040cdb
SE
14160# func_stripname prefix suffix name
14161# strip PREFIX and SUFFIX off of NAME.
14162# PREFIX and SUFFIX must not contain globbing or regex special
14163# characters, hashes, percent signs, but SUFFIX may contain a leading
14164# dot (in which case that matches only a dot).
14165# func_strip_suffix prefix name
14166func_stripname ()
14167{
14168 case ${2} in
14169 .*) func_stripname_result=`$ECHO "X${3}" \
14170 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14171 *) func_stripname_result=`$ECHO "X${3}" \
14172 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14173 esac
14174}
14175
14176# sed scripts:
14177my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14178my_sed_long_arg='1s/^-[^=]*=//'
14179
14180# func_opt_split
14181func_opt_split ()
14182{
14183 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14184 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14185}
14186
14187# func_lo2o object
14188func_lo2o ()
14189{
14190 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14191}
b214d478
SE
14192
14193# func_xform libobj-or-source
14194func_xform ()
14195{
14196 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14197}
14198
14199# func_arith arithmetic-term...
14200func_arith ()
14201{
14202 func_arith_result=`expr "$@"`
14203}
14204
14205# func_len string
14206# STRING may not start with a hyphen.
14207func_len ()
14208{
14209 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14210}
14211
d7040cdb
SE
14212_LT_EOF
14213esac
14214
14215case $lt_shell_append in
14216 yes)
14217 cat << \_LT_EOF >> "$cfgfile"
14218
14219# func_append var value
14220# Append VALUE to the end of shell variable VAR.
14221func_append ()
14222{
14223 eval "$1+=\$2"
14224}
14225_LT_EOF
14226 ;;
14227 *)
14228 cat << \_LT_EOF >> "$cfgfile"
14229
14230# func_append var value
14231# Append VALUE to the end of shell variable VAR.
14232func_append ()
14233{
14234 eval "$1=\$$1\$2"
14235}
b214d478 14236
d7040cdb
SE
14237_LT_EOF
14238 ;;
14239 esac
14240
14241
14242 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14243 || (rm -f "$cfgfile"; exit 1)
14244
14245 mv -f "$cfgfile" "$ofile" ||
14246 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14247 chmod +x "$ofile"
14248
6bf9431b 14249 ;;
81ecdfbb 14250 "default-1":C)
20e95c23
DJ
14251 for ac_file in $CONFIG_FILES; do
14252 # Support "outfile[:infile[:infile...]]"
14253 case "$ac_file" in
14254 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14255 esac
14256 # PO directories have a Makefile.in generated from Makefile.in.in.
14257 case "$ac_file" in */Makefile.in)
14258 # Adjust a relative srcdir.
14259 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14260 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14261 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14262 # In autoconf-2.13 it is called $ac_given_srcdir.
14263 # In autoconf-2.50 it is called $srcdir.
14264 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14265 case "$ac_given_srcdir" in
14266 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14267 /*) top_srcdir="$ac_given_srcdir" ;;
14268 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14269 esac
14270 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14271 rm -f "$ac_dir/POTFILES"
14272 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14273 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14274 POMAKEFILEDEPS="POTFILES.in"
14275 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14276 # on $ac_dir but don't depend on user-specified configuration
14277 # parameters.
14278 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14279 # The LINGUAS file contains the set of available languages.
14280 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14281 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14282 fi
14283 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14284 # Hide the ALL_LINGUAS assigment from automake.
14285 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14286 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14287 else
14288 # The set of available languages was given in configure.in.
14289 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14290 fi
14291 case "$ac_given_srcdir" in
14292 .) srcdirpre= ;;
14293 *) srcdirpre='$(srcdir)/' ;;
14294 esac
14295 POFILES=
14296 GMOFILES=
14297 UPDATEPOFILES=
14298 DUMMYPOFILES=
14299 for lang in $ALL_LINGUAS; do
14300 POFILES="$POFILES $srcdirpre$lang.po"
14301 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14302 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14303 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14304 done
14305 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14306 # environment variable.
14307 INST_LINGUAS=
14308 if test -n "$ALL_LINGUAS"; then
14309 for presentlang in $ALL_LINGUAS; do
14310 useit=no
14311 if test "%UNSET%" != "$LINGUAS"; then
14312 desiredlanguages="$LINGUAS"
14313 else
14314 desiredlanguages="$ALL_LINGUAS"
14315 fi
14316 for desiredlang in $desiredlanguages; do
14317 # Use the presentlang catalog if desiredlang is
14318 # a. equal to presentlang, or
14319 # b. a variant of presentlang (because in this case,
14320 # presentlang can be used as a fallback for messages
14321 # which are not translated in the desiredlang catalog).
14322 case "$desiredlang" in
14323 "$presentlang"*) useit=yes;;
14324 esac
14325 done
14326 if test $useit = yes; then
14327 INST_LINGUAS="$INST_LINGUAS $presentlang"
14328 fi
14329 done
14330 fi
14331 CATALOGS=
14332 if test -n "$INST_LINGUAS"; then
14333 for lang in $INST_LINGUAS; do
14334 CATALOGS="$CATALOGS $lang.gmo"
14335 done
14336 fi
14337 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14338 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"
14339 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14340 if test -f "$f"; then
14341 case "$f" in
14342 *.orig | *.bak | *~) ;;
14343 *) cat "$f" >> "$ac_dir/Makefile" ;;
14344 esac
14345 fi
14346 done
14347 fi
14348 ;;
14349 esac
14350 done ;;
81ecdfbb 14351
6bf9431b 14352 esac
81ecdfbb 14353done # for ac_tag
6bf9431b 14354
6bf9431b 14355
81ecdfbb 14356as_fn_exit 0
6bf9431b 14357_ACEOF
6bf9431b
BE
14358ac_clean_files=$ac_clean_files_save
14359
81ecdfbb
RW
14360test $ac_write_fail = 0 ||
14361 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14362
6bf9431b
BE
14363
14364# configure is writing to config.log, and then calls config.status.
14365# config.status does its own redirection, appending to config.log.
14366# Unfortunately, on DOS this fails, as config.log is still kept open
14367# by configure, so config.status won't be able to write to it; its
14368# output is simply discarded. So we exec the FD to /dev/null,
14369# effectively closing config.log, so it can be properly (re)opened and
14370# appended to by config.status. When coming back to configure, we
14371# need to make the FD available again.
14372if test "$no_create" != yes; then
14373 ac_cs_success=:
14374 ac_config_status_args=
14375 test "$silent" = yes &&
14376 ac_config_status_args="$ac_config_status_args --quiet"
14377 exec 5>/dev/null
14378 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14379 exec 5>>config.log
14380 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14381 # would make configure fail if this is the last instruction.
81ecdfbb
RW
14382 $ac_cs_success || as_fn_exit $?
14383fi
14384if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14386$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6bf9431b 14387fi
252b5132 14388
This page took 1.685299 seconds and 4 git commands to generate.