]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gprof/configure
* Makefile.am (INCLUDES, DEP_INCLUDES): Remove -D_GNU_SOURCE.
[thirdparty/binutils-gdb.git] / gprof / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
1b9750d6 3# Generated by GNU Autoconf 2.61.
252b5132 4#
1b9750d6
NC
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
252b5132
RH
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
6bf9431b
BE
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
1b9750d6
NC
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
6bf9431b
BE
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
1b9750d6
NC
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
6bf9431b 51fi
6bf9431b
BE
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
1b9750d6
NC
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
6bf9431b 94# Work around bugs in pre-3.0 UWIN ksh.
1b9750d6
NC
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
6bf9431b
BE
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
1b9750d6 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6bf9431b
BE
112 fi
113done
114
115# Required to use basename.
1b9750d6
NC
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6bf9431b
BE
118 as_expr=expr
119else
120 as_expr=false
121fi
122
1b9750d6 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6bf9431b
BE
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
1b9750d6 131as_me=`$as_basename -- "$0" ||
6bf9431b
BE
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
1b9750d6 134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6bf9431b 135echo X/"$0" |
1b9750d6
NC
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
6bf9431b 149
1b9750d6
NC
150# CDPATH.
151$as_unset CDPATH
6bf9431b 152
6bf9431b 153
1b9750d6
NC
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
6bf9431b
BE
159fi
160
1b9750d6
NC
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
6bf9431b 177
1b9750d6
NC
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
6bf9431b 185
1b9750d6
NC
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
6bf9431b
BE
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
1b9750d6 226 case $as_dir in
6bf9431b 227 /*)
1b9750d6
NC
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
6bf9431b
BE
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
6bf9431b 330 test "x$as_lineno_1" != "x$as_lineno_2" &&
1b9750d6
NC
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6bf9431b
BE
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
1b9750d6
NC
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
6bf9431b 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1b9750d6
NC
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
6bf9431b 442 sed '
1b9750d6
NC
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
6bf9431b 447 N
1b9750d6
NC
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6bf9431b 450 t loop
1b9750d6 451 s/-\n.*//
6bf9431b 452 ' >$as_me.lineno &&
1b9750d6 453 chmod +x "$as_me.lineno" ||
6bf9431b
BE
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
1b9750d6
NC
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
6bf9431b
BE
461 # Exit status is that of the last command.
462 exit
463}
464
465
1b9750d6
NC
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
6bf9431b
BE
481esac
482
1b9750d6
NC
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6bf9431b
BE
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
1b9750d6
NC
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
6bf9431b
BE
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
1b9750d6
NC
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6bf9431b 505 as_ln_s='cp -p'
6bf9431b
BE
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
1b9750d6
NC
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
6bf9431b
BE
513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
1b9750d6
NC
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541fi
542as_executable_p=$as_test_x
6bf9431b
BE
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
6bf9431b 551
d7040cdb
SE
552
553# Check that we are running under the correct shell.
554SHELL=${CONFIG_SHELL-/bin/sh}
555
556case X$lt_ECHO in
557X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561esac
562
563ECHO=${lt_ECHO-echo}
564if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
570elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
572 :
573else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576fi
577
578if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<_LT_EOF
582$*
583_LT_EOF
584 exit 0
585fi
586
587# The HP-UX ksh and POSIX shell print the target directory to stdout
588# if CDPATH is set.
589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598 then
599 break
600 fi
601 done
602 fi
603
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
607 :
608 else
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
612 #
613 # So, first we look for a working echo in the user's PATH.
614
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
617 IFS="$lt_save_ifs"
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
622 ECHO="$dir/echo"
623 break
624 fi
625 done
626 IFS="$lt_save_ifs"
627
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
634 ECHO='print -r'
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
641 export CONFIG_SHELL
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643 else
644 # Try using printf.
645 ECHO='printf %s\n'
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 # Cool, printf works
650 :
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656 export CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
658 export SHELL
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
665 else
666 # maybe with a smaller string...
667 prev=:
668
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671 then
672 break
673 fi
674 prev="$cmd"
675 done
676
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681 else
682 # Oops. We lost completely, so just stick with echo.
683 ECHO=echo
684 fi
685 fi
686 fi
687 fi
688 fi
689fi
690
691# Copy echo and quote the copy suitably for passing to libtool from
692# the Makefile, instead of quoting the original, which is used later.
693lt_ECHO=$ECHO
694if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696fi
697
698
699
700
1b9750d6
NC
701exec 7<&0 </dev/null 6>&1
702
6bf9431b
BE
703# Name of the host.
704# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705# so uname gets run too.
706ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 707
6bf9431b
BE
708#
709# Initializations.
710#
252b5132 711ac_default_prefix=/usr/local
1b9750d6 712ac_clean_files=
6bf9431b 713ac_config_libobj_dir=.
1b9750d6 714LIBOBJS=
6bf9431b
BE
715cross_compiling=no
716subdirs=
717MFLAGS=
718MAKEFLAGS=
719SHELL=${CONFIG_SHELL-/bin/sh}
720
6bf9431b
BE
721# Identity of this package.
722PACKAGE_NAME=
723PACKAGE_TARNAME=
724PACKAGE_VERSION=
725PACKAGE_STRING=
726PACKAGE_BUGREPORT=
727
728ac_unique_file="gprof.c"
729# Factoring default headers for most tests.
730ac_includes_default="\
731#include <stdio.h>
1b9750d6 732#ifdef HAVE_SYS_TYPES_H
6bf9431b
BE
733# include <sys/types.h>
734#endif
1b9750d6 735#ifdef HAVE_SYS_STAT_H
6bf9431b
BE
736# include <sys/stat.h>
737#endif
1b9750d6 738#ifdef STDC_HEADERS
6bf9431b
BE
739# include <stdlib.h>
740# include <stddef.h>
741#else
1b9750d6 742# ifdef HAVE_STDLIB_H
6bf9431b
BE
743# include <stdlib.h>
744# endif
745#endif
1b9750d6
NC
746#ifdef HAVE_STRING_H
747# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
6bf9431b
BE
748# include <memory.h>
749# endif
750# include <string.h>
751#endif
1b9750d6 752#ifdef HAVE_STRINGS_H
6bf9431b
BE
753# include <strings.h>
754#endif
1b9750d6 755#ifdef HAVE_INTTYPES_H
6bf9431b 756# include <inttypes.h>
6bf9431b 757#endif
1b9750d6
NC
758#ifdef HAVE_STDINT_H
759# include <stdint.h>
760#endif
761#ifdef HAVE_UNISTD_H
6bf9431b
BE
762# include <unistd.h>
763#endif"
764
1b9750d6
NC
765ac_subst_vars='SHELL
766PATH_SEPARATOR
767PACKAGE_NAME
768PACKAGE_TARNAME
769PACKAGE_VERSION
770PACKAGE_STRING
771PACKAGE_BUGREPORT
772exec_prefix
773prefix
774program_transform_name
775bindir
776sbindir
777libexecdir
778datarootdir
779datadir
780sysconfdir
781sharedstatedir
782localstatedir
783includedir
784oldincludedir
785docdir
786infodir
787htmldir
788dvidir
789pdfdir
790psdir
791libdir
792localedir
793mandir
794DEFS
795ECHO_C
796ECHO_N
797ECHO_T
798LIBS
799build_alias
800host_alias
801target_alias
802build
803build_cpu
804build_vendor
805build_os
806host
807host_cpu
808host_vendor
809host_os
810target
811target_cpu
812target_vendor
813target_os
814CC
815CFLAGS
816LDFLAGS
817CPPFLAGS
818ac_ct_CC
819EXEEXT
820OBJEXT
821INSTALL_PROGRAM
822INSTALL_SCRIPT
823INSTALL_DATA
824CYGPATH_W
825PACKAGE
826VERSION
827ACLOCAL
828AUTOCONF
829AUTOMAKE
830AUTOHEADER
831MAKEINFO
832install_sh
833STRIP
834INSTALL_STRIP_PROGRAM
835mkdir_p
836AWK
837SET_MAKE
838am__leading_dot
839AMTAR
840am__tar
841am__untar
842DEPDIR
843am__include
844am__quote
845AMDEP_TRUE
846AMDEP_FALSE
847AMDEPBACKSLASH
848CCDEPMODE
849am__fastdepCC_TRUE
850am__fastdepCC_FALSE
851LIBTOOL
852SED
853GREP
854EGREP
855FGREP
856LD
857DUMPBIN
858ac_ct_DUMPBIN
859NM
860LN_S
861AR
862RANLIB
863lt_ECHO
864CPP
865USE_NLS
866LIBINTL
867LIBINTL_DEP
868INCINTL
869XGETTEXT
870GMSGFMT
871POSUB
872CATALOGS
873DATADIRNAME
874INSTOBJEXT
875GENCAT
876CATOBJEXT
877MKINSTALLDIRS
878MSGFMT
879MSGMERGE
880MAINTAINER_MODE_TRUE
881MAINTAINER_MODE_FALSE
882MAINT
883GENINSRC_NEVER_TRUE
884GENINSRC_NEVER_FALSE
885WARN_CFLAGS
886NO_WERROR
887LIBOBJS
888LTLIBOBJS'
6bf9431b 889ac_subst_files=''
1b9750d6
NC
890 ac_precious_vars='build_alias
891host_alias
892target_alias
893CC
894CFLAGS
895LDFLAGS
896LIBS
897CPPFLAGS
898CPP'
899
252b5132
RH
900
901# Initialize some variables set by options.
6bf9431b
BE
902ac_init_help=
903ac_init_version=false
252b5132
RH
904# The variables have the same names as the options, with
905# dashes changed to underlines.
6bf9431b 906cache_file=/dev/null
252b5132 907exec_prefix=NONE
252b5132 908no_create=
252b5132
RH
909no_recursion=
910prefix=NONE
911program_prefix=NONE
912program_suffix=NONE
913program_transform_name=s,x,x,
914silent=
915site=
916srcdir=
252b5132
RH
917verbose=
918x_includes=NONE
919x_libraries=NONE
6bf9431b
BE
920
921# Installation directory options.
922# These are left unexpanded so users can "make install exec_prefix=/foo"
923# and all the variables that are supposed to be based on exec_prefix
924# by default will actually change.
925# Use braces instead of parens because sh, perl, etc. also accept them.
1b9750d6 926# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
927bindir='${exec_prefix}/bin'
928sbindir='${exec_prefix}/sbin'
929libexecdir='${exec_prefix}/libexec'
1b9750d6
NC
930datarootdir='${prefix}/share'
931datadir='${datarootdir}'
252b5132
RH
932sysconfdir='${prefix}/etc'
933sharedstatedir='${prefix}/com'
934localstatedir='${prefix}/var'
252b5132
RH
935includedir='${prefix}/include'
936oldincludedir='/usr/include'
1b9750d6
NC
937docdir='${datarootdir}/doc/${PACKAGE}'
938infodir='${datarootdir}/info'
939htmldir='${docdir}'
940dvidir='${docdir}'
941pdfdir='${docdir}'
942psdir='${docdir}'
943libdir='${exec_prefix}/lib'
944localedir='${datarootdir}/locale'
945mandir='${datarootdir}/man'
252b5132 946
252b5132 947ac_prev=
1b9750d6 948ac_dashdash=
252b5132
RH
949for ac_option
950do
252b5132
RH
951 # If the previous option needs an argument, assign it.
952 if test -n "$ac_prev"; then
1b9750d6 953 eval $ac_prev=\$ac_option
252b5132
RH
954 ac_prev=
955 continue
956 fi
957
1b9750d6
NC
958 case $ac_option in
959 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 *) ac_optarg=yes ;;
961 esac
252b5132
RH
962
963 # Accept the important Cygnus configure options, so we can diagnose typos.
964
1b9750d6
NC
965 case $ac_dashdash$ac_option in
966 --)
967 ac_dashdash=yes ;;
252b5132
RH
968
969 -bindir | --bindir | --bindi | --bind | --bin | --bi)
970 ac_prev=bindir ;;
971 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
6bf9431b 972 bindir=$ac_optarg ;;
252b5132
RH
973
974 -build | --build | --buil | --bui | --bu)
6bf9431b 975 ac_prev=build_alias ;;
252b5132 976 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
6bf9431b 977 build_alias=$ac_optarg ;;
252b5132
RH
978
979 -cache-file | --cache-file | --cache-fil | --cache-fi \
980 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
981 ac_prev=cache_file ;;
982 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
983 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6bf9431b
BE
984 cache_file=$ac_optarg ;;
985
986 --config-cache | -C)
987 cache_file=config.cache ;;
252b5132 988
1b9750d6 989 -datadir | --datadir | --datadi | --datad)
252b5132 990 ac_prev=datadir ;;
1b9750d6 991 -datadir=* | --datadir=* | --datadi=* | --datad=*)
6bf9431b 992 datadir=$ac_optarg ;;
252b5132 993
1b9750d6
NC
994 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
995 | --dataroo | --dataro | --datar)
996 ac_prev=datarootdir ;;
997 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
998 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
999 datarootdir=$ac_optarg ;;
1000
252b5132 1001 -disable-* | --disable-*)
6bf9431b 1002 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 1003 # Reject names that are not valid shell variable names.
1b9750d6 1004 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
6bf9431b
BE
1005 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1006 { (exit 1); exit 1; }; }
1b9750d6
NC
1007 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1008 eval enable_$ac_feature=no ;;
1009
1010 -docdir | --docdir | --docdi | --doc | --do)
1011 ac_prev=docdir ;;
1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013 docdir=$ac_optarg ;;
1014
1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016 ac_prev=dvidir ;;
1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018 dvidir=$ac_optarg ;;
252b5132
RH
1019
1020 -enable-* | --enable-*)
6bf9431b 1021 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 1022 # Reject names that are not valid shell variable names.
1b9750d6 1023 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
6bf9431b
BE
1024 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1025 { (exit 1); exit 1; }; }
1b9750d6
NC
1026 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1027 eval enable_$ac_feature=\$ac_optarg ;;
252b5132
RH
1028
1029 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031 | --exec | --exe | --ex)
1032 ac_prev=exec_prefix ;;
1033 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035 | --exec=* | --exe=* | --ex=*)
6bf9431b 1036 exec_prefix=$ac_optarg ;;
252b5132
RH
1037
1038 -gas | --gas | --ga | --g)
1039 # Obsolete; use --with-gas.
1040 with_gas=yes ;;
1041
6bf9431b
BE
1042 -help | --help | --hel | --he | -h)
1043 ac_init_help=long ;;
1044 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045 ac_init_help=recursive ;;
1046 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047 ac_init_help=short ;;
252b5132
RH
1048
1049 -host | --host | --hos | --ho)
6bf9431b 1050 ac_prev=host_alias ;;
252b5132 1051 -host=* | --host=* | --hos=* | --ho=*)
6bf9431b 1052 host_alias=$ac_optarg ;;
252b5132 1053
1b9750d6
NC
1054 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055 ac_prev=htmldir ;;
1056 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057 | --ht=*)
1058 htmldir=$ac_optarg ;;
1059
252b5132
RH
1060 -includedir | --includedir | --includedi | --included | --include \
1061 | --includ | --inclu | --incl | --inc)
1062 ac_prev=includedir ;;
1063 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064 | --includ=* | --inclu=* | --incl=* | --inc=*)
6bf9431b 1065 includedir=$ac_optarg ;;
252b5132
RH
1066
1067 -infodir | --infodir | --infodi | --infod | --info | --inf)
1068 ac_prev=infodir ;;
1069 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
6bf9431b 1070 infodir=$ac_optarg ;;
252b5132
RH
1071
1072 -libdir | --libdir | --libdi | --libd)
1073 ac_prev=libdir ;;
1074 -libdir=* | --libdir=* | --libdi=* | --libd=*)
6bf9431b 1075 libdir=$ac_optarg ;;
252b5132
RH
1076
1077 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078 | --libexe | --libex | --libe)
1079 ac_prev=libexecdir ;;
1080 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081 | --libexe=* | --libex=* | --libe=*)
6bf9431b 1082 libexecdir=$ac_optarg ;;
252b5132 1083
1b9750d6
NC
1084 -localedir | --localedir | --localedi | --localed | --locale)
1085 ac_prev=localedir ;;
1086 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087 localedir=$ac_optarg ;;
1088
252b5132 1089 -localstatedir | --localstatedir | --localstatedi | --localstated \
1b9750d6 1090 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1091 ac_prev=localstatedir ;;
1092 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1b9750d6 1093 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
6bf9431b 1094 localstatedir=$ac_optarg ;;
252b5132
RH
1095
1096 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097 ac_prev=mandir ;;
1098 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
6bf9431b 1099 mandir=$ac_optarg ;;
252b5132
RH
1100
1101 -nfp | --nfp | --nf)
1102 # Obsolete; use --without-fp.
1103 with_fp=no ;;
1104
1105 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
6bf9431b 1106 | --no-cr | --no-c | -n)
252b5132
RH
1107 no_create=yes ;;
1108
1109 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111 no_recursion=yes ;;
1112
1113 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115 | --oldin | --oldi | --old | --ol | --o)
1116 ac_prev=oldincludedir ;;
1117 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
6bf9431b 1120 oldincludedir=$ac_optarg ;;
252b5132
RH
1121
1122 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123 ac_prev=prefix ;;
1124 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6bf9431b 1125 prefix=$ac_optarg ;;
252b5132
RH
1126
1127 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128 | --program-pre | --program-pr | --program-p)
1129 ac_prev=program_prefix ;;
1130 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
6bf9431b 1132 program_prefix=$ac_optarg ;;
252b5132
RH
1133
1134 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135 | --program-suf | --program-su | --program-s)
1136 ac_prev=program_suffix ;;
1137 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
6bf9431b 1139 program_suffix=$ac_optarg ;;
252b5132
RH
1140
1141 -program-transform-name | --program-transform-name \
1142 | --program-transform-nam | --program-transform-na \
1143 | --program-transform-n | --program-transform- \
1144 | --program-transform | --program-transfor \
1145 | --program-transfo | --program-transf \
1146 | --program-trans | --program-tran \
1147 | --progr-tra | --program-tr | --program-t)
1148 ac_prev=program_transform_name ;;
1149 -program-transform-name=* | --program-transform-name=* \
1150 | --program-transform-nam=* | --program-transform-na=* \
1151 | --program-transform-n=* | --program-transform-=* \
1152 | --program-transform=* | --program-transfor=* \
1153 | --program-transfo=* | --program-transf=* \
1154 | --program-trans=* | --program-tran=* \
1155 | --progr-tra=* | --program-tr=* | --program-t=*)
6bf9431b 1156 program_transform_name=$ac_optarg ;;
252b5132 1157
1b9750d6
NC
1158 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159 ac_prev=pdfdir ;;
1160 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161 pdfdir=$ac_optarg ;;
1162
1163 -psdir | --psdir | --psdi | --psd | --ps)
1164 ac_prev=psdir ;;
1165 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166 psdir=$ac_optarg ;;
1167
252b5132
RH
1168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169 | -silent | --silent | --silen | --sile | --sil)
1170 silent=yes ;;
1171
1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173 ac_prev=sbindir ;;
1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175 | --sbi=* | --sb=*)
6bf9431b 1176 sbindir=$ac_optarg ;;
252b5132
RH
1177
1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180 | --sharedst | --shareds | --shared | --share | --shar \
1181 | --sha | --sh)
1182 ac_prev=sharedstatedir ;;
1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186 | --sha=* | --sh=*)
6bf9431b 1187 sharedstatedir=$ac_optarg ;;
252b5132
RH
1188
1189 -site | --site | --sit)
1190 ac_prev=site ;;
1191 -site=* | --site=* | --sit=*)
6bf9431b 1192 site=$ac_optarg ;;
093872ec 1193
252b5132
RH
1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195 ac_prev=srcdir ;;
1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6bf9431b 1197 srcdir=$ac_optarg ;;
252b5132
RH
1198
1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200 | --syscon | --sysco | --sysc | --sys | --sy)
1201 ac_prev=sysconfdir ;;
1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
6bf9431b 1204 sysconfdir=$ac_optarg ;;
252b5132
RH
1205
1206 -target | --target | --targe | --targ | --tar | --ta | --t)
6bf9431b 1207 ac_prev=target_alias ;;
252b5132 1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
6bf9431b 1209 target_alias=$ac_optarg ;;
252b5132
RH
1210
1211 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212 verbose=yes ;;
1213
6bf9431b
BE
1214 -version | --version | --versio | --versi | --vers | -V)
1215 ac_init_version=: ;;
252b5132
RH
1216
1217 -with-* | --with-*)
6bf9431b 1218 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1219 # Reject names that are not valid shell variable names.
1b9750d6 1220 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
6bf9431b
BE
1221 { echo "$as_me: error: invalid package name: $ac_package" >&2
1222 { (exit 1); exit 1; }; }
1b9750d6
NC
1223 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1224 eval with_$ac_package=\$ac_optarg ;;
252b5132
RH
1225
1226 -without-* | --without-*)
6bf9431b 1227 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1228 # Reject names that are not valid shell variable names.
1b9750d6 1229 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
6bf9431b
BE
1230 { echo "$as_me: error: invalid package name: $ac_package" >&2
1231 { (exit 1); exit 1; }; }
1b9750d6
NC
1232 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1233 eval with_$ac_package=no ;;
252b5132
RH
1234
1235 --x)
1236 # Obsolete; use --with-x.
1237 with_x=yes ;;
1238
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240 | --x-incl | --x-inc | --x-in | --x-i)
1241 ac_prev=x_includes ;;
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
6bf9431b 1244 x_includes=$ac_optarg ;;
252b5132
RH
1245
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248 ac_prev=x_libraries ;;
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
6bf9431b 1251 x_libraries=$ac_optarg ;;
252b5132 1252
6bf9431b
BE
1253 -*) { echo "$as_me: error: unrecognized option: $ac_option
1254Try \`$0 --help' for more information." >&2
1255 { (exit 1); exit 1; }; }
252b5132
RH
1256 ;;
1257
6bf9431b
BE
1258 *=*)
1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1262 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1263 { (exit 1); exit 1; }; }
1b9750d6 1264 eval $ac_envvar=\$ac_optarg
6bf9431b
BE
1265 export $ac_envvar ;;
1266
252b5132 1267 *)
6bf9431b
BE
1268 # FIXME: should be removed in autoconf 3.0.
1269 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1273 ;;
1274
1275 esac
1276done
1277
1278if test -n "$ac_prev"; then
6bf9431b
BE
1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280 { echo "$as_me: error: missing argument to $ac_option" >&2
1281 { (exit 1); exit 1; }; }
252b5132
RH
1282fi
1283
1b9750d6
NC
1284# Be sure to have absolute directory names.
1285for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286 datadir sysconfdir sharedstatedir localstatedir includedir \
1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288 libdir localedir mandir
252b5132 1289do
1b9750d6 1290 eval ac_val=\$$ac_var
6bf9431b 1291 case $ac_val in
1b9750d6
NC
1292 [\\/$]* | ?:[\\/]* ) continue;;
1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1294 esac
1b9750d6
NC
1295 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1296 { (exit 1); exit 1; }; }
252b5132
RH
1297done
1298
6bf9431b
BE
1299# There might be people who depend on the old broken behavior: `$host'
1300# used to hold the argument of --host etc.
1301# FIXME: To remove some day.
1302build=$build_alias
1303host=$host_alias
1304target=$target_alias
1305
1306# FIXME: To remove some day.
1307if test "x$host_alias" != x; then
1308 if test "x$build_alias" = x; then
1309 cross_compiling=maybe
1310 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1311 If a cross compiler is detected then cross compile mode will be used." >&2
1312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1314 fi
1315fi
252b5132 1316
6bf9431b
BE
1317ac_tool_prefix=
1318test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320test "$silent" = yes && exec 6>/dev/null
252b5132 1321
252b5132 1322
1b9750d6
NC
1323ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324ac_ls_di=`ls -di .` &&
1325ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 { echo "$as_me: error: Working directory cannot be determined" >&2
1327 { (exit 1); exit 1; }; }
1328test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 { echo "$as_me: error: pwd does not report name of working directory" >&2
1330 { (exit 1); exit 1; }; }
1331
1332
252b5132
RH
1333# Find the source files, if location was not specified.
1334if test -z "$srcdir"; then
1335 ac_srcdir_defaulted=yes
1b9750d6
NC
1336 # Try the directory containing this script, then the parent directory.
1337 ac_confdir=`$as_dirname -- "$0" ||
6bf9431b
BE
1338$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339 X"$0" : 'X\(//\)[^/]' \| \
1340 X"$0" : 'X\(//\)$' \| \
1b9750d6 1341 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6bf9431b 1342echo X"$0" |
1b9750d6
NC
1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)[^/].*/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\/\)$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\).*/{
1356 s//\1/
1357 q
1358 }
1359 s/.*/./; q'`
252b5132 1360 srcdir=$ac_confdir
1b9750d6 1361 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1362 srcdir=..
1363 fi
1364else
1365 ac_srcdir_defaulted=no
1366fi
1b9750d6
NC
1367if test ! -r "$srcdir/$ac_unique_file"; then
1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1369 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
6bf9431b 1370 { (exit 1); exit 1; }; }
252b5132 1371fi
1b9750d6
NC
1372ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373ac_abs_confdir=`(
1374 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
6bf9431b 1375 { (exit 1); exit 1; }; }
1b9750d6
NC
1376 pwd)`
1377# When building in place, set srcdir=.
1378if test "$ac_abs_confdir" = "$ac_pwd"; then
1379 srcdir=.
1380fi
1381# Remove unnecessary trailing slashes from srcdir.
1382# Double slashes in file names in object file debugging info
1383# mess up M-x gdb in Emacs.
1384case $srcdir in
1385*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386esac
1387for ac_var in $ac_precious_vars; do
1388 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_env_${ac_var}_value=\$${ac_var}
1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392done
252b5132 1393
6bf9431b
BE
1394#
1395# Report the --help message.
1396#
1397if test "$ac_init_help" = "long"; then
1398 # Omit some internal or obsolete options to make the list less imposing.
1399 # This message is too long to be a string in the A/UX 3.1 sh.
1400 cat <<_ACEOF
1401\`configure' configures this package to adapt to many kinds of systems.
252b5132 1402
6bf9431b 1403Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1404
6bf9431b
BE
1405To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1407
6bf9431b 1408Defaults for the options are specified in brackets.
ac48eca1 1409
6bf9431b
BE
1410Configuration:
1411 -h, --help display this help and exit
1412 --help=short display options specific to this package
1413 --help=recursive display the short help of all the included packages
1414 -V, --version display version information and exit
1415 -q, --quiet, --silent do not print \`checking...' messages
1416 --cache-file=FILE cache test results in FILE [disabled]
1417 -C, --config-cache alias for \`--cache-file=config.cache'
1418 -n, --no-create do not create output files
1419 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1420
6bf9431b
BE
1421Installation directories:
1422 --prefix=PREFIX install architecture-independent files in PREFIX
1423 [$ac_default_prefix]
1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1425 [PREFIX]
ac48eca1 1426
6bf9431b
BE
1427By default, \`make install' will install all the files in
1428\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1429an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430for instance \`--prefix=\$HOME'.
ac48eca1 1431
6bf9431b 1432For better control, use the options below.
ac48eca1 1433
6bf9431b
BE
1434Fine tuning of the installation directories:
1435 --bindir=DIR user executables [EPREFIX/bin]
1436 --sbindir=DIR system admin executables [EPREFIX/sbin]
1437 --libexecdir=DIR program executables [EPREFIX/libexec]
6bf9431b
BE
1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1441 --libdir=DIR object code libraries [EPREFIX/lib]
1442 --includedir=DIR C header files [PREFIX/include]
1443 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1b9750d6
NC
1444 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1445 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1446 --infodir=DIR info documentation [DATAROOTDIR/info]
1447 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1448 --mandir=DIR man documentation [DATAROOTDIR/man]
1449 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1450 --htmldir=DIR html documentation [DOCDIR]
1451 --dvidir=DIR dvi documentation [DOCDIR]
1452 --pdfdir=DIR pdf documentation [DOCDIR]
1453 --psdir=DIR ps documentation [DOCDIR]
6bf9431b 1454_ACEOF
ac48eca1 1455
6bf9431b 1456 cat <<\_ACEOF
252b5132 1457
6bf9431b
BE
1458Program names:
1459 --program-prefix=PREFIX prepend PREFIX to installed program names
1460 --program-suffix=SUFFIX append SUFFIX to installed program names
1461 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1462
6bf9431b
BE
1463System types:
1464 --build=BUILD configure for building on BUILD [guessed]
1465 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1466 --target=TARGET configure for building compilers for TARGET [HOST]
1467_ACEOF
252b5132 1468fi
252b5132 1469
6bf9431b 1470if test -n "$ac_init_help"; then
252b5132 1471
6bf9431b 1472 cat <<\_ACEOF
252b5132 1473
6bf9431b
BE
1474Optional Features:
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --disable-dependency-tracking speeds up one-time build
1478 --enable-dependency-tracking do not reject slow dependency extractors
1b9750d6
NC
1479 --enable-shared[=PKGS] build shared libraries [default=yes]
1480 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1481 --enable-fast-install[=PKGS]
1482 optimize for fast installation [default=yes]
6bf9431b
BE
1483 --disable-libtool-lock avoid locking (might break parallel builds)
1484 --disable-nls do not use Native Language Support
1485 --enable-maintainer-mode enable make rules and dependencies not useful
1486 (and sometimes confusing) to the casual installer
241a6c40
AM
1487 --enable-werror treat compile warnings as errors
1488 --enable-build-warnings enable build-time compiler warnings
6bf9431b
BE
1489
1490Optional Packages:
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1493 --with-pic try to use only PIC/non-PIC objects [default=use
1494 both]
1495 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
252b5132 1496
6bf9431b
BE
1497Some influential environment variables:
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
1b9750d6
NC
1502 LIBS libraries to pass to the linker, e.g. -l<library>
1503 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1504 you have headers in a nonstandard directory <include dir>
6bf9431b 1505 CPP C preprocessor
252b5132 1506
6bf9431b
BE
1507Use these variables to override the choices made by `configure' or to help
1508it to find libraries and programs with nonstandard names/locations.
1509
1510_ACEOF
1b9750d6 1511ac_status=$?
252b5132
RH
1512fi
1513
6bf9431b
BE
1514if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
6bf9431b 1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1b9750d6 1517 test -d "$ac_dir" || continue
6bf9431b 1518 ac_builddir=.
252b5132 1519
1b9750d6
NC
1520case "$ac_dir" in
1521.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522*)
6bf9431b 1523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1b9750d6
NC
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530esac
1531ac_abs_top_builddir=$ac_pwd
1532ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533# for backward compatibility:
1534ac_top_builddir=$ac_top_build_prefix
6bf9431b
BE
1535
1536case $srcdir in
1b9750d6 1537 .) # We are building in place.
6bf9431b 1538 ac_srcdir=.
1b9750d6
NC
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
6bf9431b 1542 ac_srcdir=$srcdir$ac_dir_suffix;
1b9750d6
NC
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6bf9431b 1549esac
1b9750d6
NC
1550ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
6bf9431b
BE
1560 else
1561 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1b9750d6
NC
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
6bf9431b
BE
1564 done
1565fi
252b5132 1566
1b9750d6 1567test -n "$ac_init_help" && exit $ac_status
6bf9431b
BE
1568if $ac_init_version; then
1569 cat <<\_ACEOF
1b9750d6
NC
1570configure
1571generated by GNU Autoconf 2.61
252b5132 1572
1b9750d6
NC
1573Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15742002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
6bf9431b
BE
1575This configure script is free software; the Free Software Foundation
1576gives unlimited permission to copy, distribute and modify it.
1577_ACEOF
1b9750d6 1578 exit
6bf9431b 1579fi
1b9750d6 1580cat >config.log <<_ACEOF
6bf9431b
BE
1581This file contains any messages produced by compilers while
1582running configure, to aid debugging if configure makes a mistake.
66477e87 1583
6bf9431b 1584It was created by $as_me, which was
1b9750d6 1585generated by GNU Autoconf 2.61. Invocation command line was
5d64ca4e 1586
6bf9431b 1587 $ $0 $@
5d64ca4e 1588
6bf9431b 1589_ACEOF
1b9750d6 1590exec 5>>config.log
6bf9431b
BE
1591{
1592cat <<_ASUNAME
1593## --------- ##
1594## Platform. ##
1595## --------- ##
1596
1597hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602
1603/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1605
1606/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1607/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1608/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1b9750d6 1609/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
6bf9431b
BE
1610/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1611/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1612/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1613
1614_ASUNAME
1615
1616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617for as_dir in $PATH
1618do
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 echo "PATH: $as_dir"
1622done
1b9750d6 1623IFS=$as_save_IFS
5d64ca4e 1624
6bf9431b 1625} >&5
093872ec 1626
6bf9431b 1627cat >&5 <<_ACEOF
252b5132 1628
6bf9431b
BE
1629
1630## ----------- ##
1631## Core tests. ##
1632## ----------- ##
1633
1634_ACEOF
1635
1636
1637# Keep a trace of the command line.
1638# Strip out --no-create and --no-recursion so they do not pile up.
1639# Strip out --silent because we don't want to record it for future runs.
1640# Also quote any args containing shell meta-characters.
1641# Make two passes to allow for proper duplicate-argument suppression.
1642ac_configure_args=
1643ac_configure_args0=
1644ac_configure_args1=
6bf9431b
BE
1645ac_must_keep_next=false
1646for ac_pass in 1 2
1647do
1648 for ac_arg
1649 do
1650 case $ac_arg in
1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653 | -silent | --silent | --silen | --sile | --sil)
1654 continue ;;
1b9750d6 1655 *\'*)
6bf9431b
BE
1656 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657 esac
1658 case $ac_pass in
1659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660 2)
1661 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662 if test $ac_must_keep_next = true; then
1663 ac_must_keep_next=false # Got value, back to normal.
1664 else
1665 case $ac_arg in
1666 *=* | --config-cache | -C | -disable-* | --disable-* \
1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669 | -with-* | --with-* | -without-* | --without-* | --x)
1670 case "$ac_configure_args0 " in
1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672 esac
1673 ;;
1674 -* ) ac_must_keep_next=true ;;
1675 esac
1676 fi
1b9750d6 1677 ac_configure_args="$ac_configure_args '$ac_arg'"
6bf9431b
BE
1678 ;;
1679 esac
1680 done
1681done
1682$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684
1685# When interrupted or exit'd, cleanup temporary files, and complete
1686# config.log. We remove comments because anyway the quotes in there
1687# would cause problems or look ugly.
1b9750d6
NC
1688# WARNING: Use '\'' to represent an apostrophe within the trap.
1689# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
6bf9431b
BE
1690trap 'exit_status=$?
1691 # Save into config.log some information that might help in debugging.
1692 {
1693 echo
1694
1695 cat <<\_ASBOX
1696## ---------------- ##
1697## Cache variables. ##
1698## ---------------- ##
1699_ASBOX
1700 echo
1701 # The following way of writing the cache mishandles newlines in values,
1b9750d6
NC
1702(
1703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704 eval ac_val=\$$ac_var
1705 case $ac_val in #(
1706 *${as_nl}*)
1707 case $ac_var in #(
1708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710 esac
1711 case $ac_var in #(
1712 _ | IFS | as_nl) ;; #(
1713 *) $as_unset $ac_var ;;
1714 esac ;;
1715 esac
1716 done
6bf9431b 1717 (set) 2>&1 |
1b9750d6
NC
1718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719 *${as_nl}ac_space=\ *)
6bf9431b 1720 sed -n \
1b9750d6
NC
1721 "s/'\''/'\''\\\\'\'''\''/g;
1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 ;; #(
6bf9431b 1724 *)
1b9750d6 1725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6bf9431b 1726 ;;
1b9750d6
NC
1727 esac |
1728 sort
1729)
6bf9431b
BE
1730 echo
1731
1732 cat <<\_ASBOX
1733## ----------------- ##
1734## Output variables. ##
1735## ----------------- ##
1736_ASBOX
1737 echo
1738 for ac_var in $ac_subst_vars
1739 do
1b9750d6
NC
1740 eval ac_val=\$$ac_var
1741 case $ac_val in
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743 esac
1744 echo "$ac_var='\''$ac_val'\''"
6bf9431b
BE
1745 done | sort
1746 echo
1747
1748 if test -n "$ac_subst_files"; then
1749 cat <<\_ASBOX
1b9750d6
NC
1750## ------------------- ##
1751## File substitutions. ##
1752## ------------------- ##
6bf9431b
BE
1753_ASBOX
1754 echo
1755 for ac_var in $ac_subst_files
1756 do
1b9750d6
NC
1757 eval ac_val=\$$ac_var
1758 case $ac_val in
1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760 esac
1761 echo "$ac_var='\''$ac_val'\''"
6bf9431b
BE
1762 done | sort
1763 echo
1764 fi
1765
1766 if test -s confdefs.h; then
1767 cat <<\_ASBOX
1768## ----------- ##
1769## confdefs.h. ##
1770## ----------- ##
1771_ASBOX
1772 echo
1b9750d6 1773 cat confdefs.h
6bf9431b
BE
1774 echo
1775 fi
1776 test "$ac_signal" != 0 &&
1777 echo "$as_me: caught signal $ac_signal"
1778 echo "$as_me: exit $exit_status"
1779 } >&5
1b9750d6
NC
1780 rm -f core *.core core.conftest.* &&
1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
6bf9431b 1782 exit $exit_status
1b9750d6 1783' 0
6bf9431b
BE
1784for ac_signal in 1 2 13 15; do
1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1786done
1787ac_signal=0
1788
1789# confdefs.h avoids OS command line length limits that DEFS can exceed.
1b9750d6 1790rm -f -r conftest* confdefs.h
6bf9431b
BE
1791
1792# Predefined preprocessor variables.
1793
1794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_NAME "$PACKAGE_NAME"
1796_ACEOF
1797
1798
1799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1801_ACEOF
1802
1803
1804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_VERSION "$PACKAGE_VERSION"
1806_ACEOF
1807
1808
1809cat >>confdefs.h <<_ACEOF
1810#define PACKAGE_STRING "$PACKAGE_STRING"
1811_ACEOF
1812
1813
1814cat >>confdefs.h <<_ACEOF
1815#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1816_ACEOF
1817
1818
1819# Let the site file select an alternate cache file if it wants to.
1820# Prefer explicitly selected file to automatically selected ones.
1b9750d6
NC
1821if test -n "$CONFIG_SITE"; then
1822 set x "$CONFIG_SITE"
1823elif test "x$prefix" != xNONE; then
1824 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825else
1826 set x "$ac_default_prefix/share/config.site" \
1827 "$ac_default_prefix/etc/config.site"
6bf9431b 1828fi
1b9750d6
NC
1829shift
1830for ac_site_file
1831do
6bf9431b
BE
1832 if test -r "$ac_site_file"; then
1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834echo "$as_me: loading site script $ac_site_file" >&6;}
1835 sed 's/^/| /' "$ac_site_file" >&5
1836 . "$ac_site_file"
1837 fi
1838done
1839
1840if test -r "$cache_file"; then
1841 # Some versions of bash will fail to source /dev/null (special
1842 # files actually), so we avoid doing that.
1843 if test -f "$cache_file"; then
1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845echo "$as_me: loading cache $cache_file" >&6;}
1846 case $cache_file in
1b9750d6
NC
1847 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848 *) . "./$cache_file";;
6bf9431b
BE
1849 esac
1850 fi
1851else
1852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853echo "$as_me: creating cache $cache_file" >&6;}
1854 >$cache_file
1855fi
1856
1857# Check that the precious variables saved in the cache have kept the same
1858# value.
1859ac_cache_corrupted=false
1b9750d6 1860for ac_var in $ac_precious_vars; do
6bf9431b
BE
1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
1b9750d6
NC
1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
6bf9431b
BE
1865 case $ac_old_set,$ac_new_set in
1866 set,)
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1870 ,set)
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1874 ,);;
1875 *)
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1880echo "$as_me: former value: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1882echo "$as_me: current value: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
1884 fi;;
1885 esac
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1888 case $ac_new_val in
1b9750d6 1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
6bf9431b
BE
1890 *) ac_arg=$ac_var=$ac_new_val ;;
1891 esac
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1895 esac
1896 fi
1897done
1898if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1904fi
1905
6bf9431b
BE
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1b9750d6
NC
1922ac_ext=c
1923ac_cpp='$CPP $CPPFLAGS'
1924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926ac_compiler_gnu=$ac_cv_c_compiler_gnu
6bf9431b
BE
1927
1928
1929
1930
1931ac_aux_dir=
1b9750d6
NC
1932for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1933 if test -f "$ac_dir/install-sh"; then
6bf9431b
BE
1934 ac_aux_dir=$ac_dir
1935 ac_install_sh="$ac_aux_dir/install-sh -c"
1936 break
1b9750d6 1937 elif test -f "$ac_dir/install.sh"; then
6bf9431b
BE
1938 ac_aux_dir=$ac_dir
1939 ac_install_sh="$ac_aux_dir/install.sh -c"
1940 break
1b9750d6 1941 elif test -f "$ac_dir/shtool"; then
6bf9431b
BE
1942 ac_aux_dir=$ac_dir
1943 ac_install_sh="$ac_aux_dir/shtool install -c"
1944 break
1945 fi
1946done
1947if test -z "$ac_aux_dir"; then
1b9750d6
NC
1948 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1949echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
6bf9431b
BE
1950 { (exit 1); exit 1; }; }
1951fi
1b9750d6
NC
1952
1953# These three variables are undocumented and unsupported,
1954# and are intended to be withdrawn in a future Autoconf release.
1955# They can cause serious problems if a builder's source tree is in a directory
1956# whose full name contains unusual characters.
1957ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1958ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1959ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1960
6bf9431b
BE
1961
1962# Make sure we can run config.sub.
1b9750d6
NC
1963$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1964 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1965echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6bf9431b
BE
1966 { (exit 1); exit 1; }; }
1967
1b9750d6
NC
1968{ echo "$as_me:$LINENO: checking build system type" >&5
1969echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
6bf9431b
BE
1970if test "${ac_cv_build+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1b9750d6
NC
1973 ac_build_alias=$build_alias
1974test "x$ac_build_alias" = x &&
1975 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1976test "x$ac_build_alias" = x &&
6bf9431b
BE
1977 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1978echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1979 { (exit 1); exit 1; }; }
1b9750d6
NC
1980ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1981 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1982echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6bf9431b
BE
1983 { (exit 1); exit 1; }; }
1984
1985fi
1b9750d6
NC
1986{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1987echo "${ECHO_T}$ac_cv_build" >&6; }
1988case $ac_cv_build in
1989*-*-*) ;;
1990*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1991echo "$as_me: error: invalid value of canonical build" >&2;}
1992 { (exit 1); exit 1; }; };;
1993esac
6bf9431b 1994build=$ac_cv_build
1b9750d6
NC
1995ac_save_IFS=$IFS; IFS='-'
1996set x $ac_cv_build
1997shift
1998build_cpu=$1
1999build_vendor=$2
2000shift; shift
2001# Remember, the first character of IFS is used to create $*,
2002# except with old shells:
2003build_os=$*
2004IFS=$ac_save_IFS
2005case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2006
2007
2008{ echo "$as_me:$LINENO: checking host system type" >&5
2009echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
6bf9431b
BE
2010if test "${ac_cv_host+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012else
1b9750d6
NC
2013 if test "x$host_alias" = x; then
2014 ac_cv_host=$ac_cv_build
2015else
2016 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2017 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2018echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6bf9431b 2019 { (exit 1); exit 1; }; }
1b9750d6 2020fi
6bf9431b
BE
2021
2022fi
1b9750d6
NC
2023{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2024echo "${ECHO_T}$ac_cv_host" >&6; }
2025case $ac_cv_host in
2026*-*-*) ;;
2027*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2028echo "$as_me: error: invalid value of canonical host" >&2;}
2029 { (exit 1); exit 1; }; };;
2030esac
6bf9431b 2031host=$ac_cv_host
1b9750d6
NC
2032ac_save_IFS=$IFS; IFS='-'
2033set x $ac_cv_host
2034shift
2035host_cpu=$1
2036host_vendor=$2
2037shift; shift
2038# Remember, the first character of IFS is used to create $*,
2039# except with old shells:
2040host_os=$*
2041IFS=$ac_save_IFS
2042case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2043
2044
2045{ echo "$as_me:$LINENO: checking target system type" >&5
2046echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
6bf9431b
BE
2047if test "${ac_cv_target+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2049else
1b9750d6
NC
2050 if test "x$target_alias" = x; then
2051 ac_cv_target=$ac_cv_host
2052else
2053 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2054 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2055echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
6bf9431b 2056 { (exit 1); exit 1; }; }
1b9750d6 2057fi
6bf9431b
BE
2058
2059fi
1b9750d6
NC
2060{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2061echo "${ECHO_T}$ac_cv_target" >&6; }
2062case $ac_cv_target in
2063*-*-*) ;;
2064*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2065echo "$as_me: error: invalid value of canonical target" >&2;}
2066 { (exit 1); exit 1; }; };;
2067esac
6bf9431b 2068target=$ac_cv_target
1b9750d6
NC
2069ac_save_IFS=$IFS; IFS='-'
2070set x $ac_cv_target
2071shift
2072target_cpu=$1
2073target_vendor=$2
2074shift; shift
2075# Remember, the first character of IFS is used to create $*,
2076# except with old shells:
2077target_os=$*
2078IFS=$ac_save_IFS
2079case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6bf9431b
BE
2080
2081
2082# The aliases save the names the user supplied, while $host etc.
2083# will get canonicalized.
2084test -n "$target_alias" &&
2085 test "$program_prefix$program_suffix$program_transform_name" = \
2086 NONENONEs,x,x, &&
2087 program_prefix=${target_alias}-
2088ac_ext=c
2089ac_cpp='$CPP $CPPFLAGS'
2090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2092ac_compiler_gnu=$ac_cv_c_compiler_gnu
2093if test -n "$ac_tool_prefix"; then
2094 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2095set dummy ${ac_tool_prefix}gcc; ac_word=$2
1b9750d6
NC
2096{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6bf9431b
BE
2098if test "${ac_cv_prog_CC+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100else
2101 if test -n "$CC"; then
2102 ac_cv_prog_CC="$CC" # Let the user override the test.
2103else
2104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105for as_dir in $PATH
2106do
2107 IFS=$as_save_IFS
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 2110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b
BE
2111 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113 break 2
2114 fi
2115done
2116done
1b9750d6 2117IFS=$as_save_IFS
6bf9431b
BE
2118
2119fi
2120fi
2121CC=$ac_cv_prog_CC
2122if test -n "$CC"; then
1b9750d6
NC
2123 { echo "$as_me:$LINENO: result: $CC" >&5
2124echo "${ECHO_T}$CC" >&6; }
6bf9431b 2125else
1b9750d6
NC
2126 { echo "$as_me:$LINENO: result: no" >&5
2127echo "${ECHO_T}no" >&6; }
6bf9431b
BE
2128fi
2129
1b9750d6 2130
6bf9431b
BE
2131fi
2132if test -z "$ac_cv_prog_CC"; then
2133 ac_ct_CC=$CC
2134 # Extract the first word of "gcc", so it can be a program name with args.
2135set dummy gcc; ac_word=$2
1b9750d6
NC
2136{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6bf9431b
BE
2138if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2140else
2141 if test -n "$ac_ct_CC"; then
2142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2143else
2144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145for as_dir in $PATH
2146do
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 2150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b
BE
2151 ac_cv_prog_ac_ct_CC="gcc"
2152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153 break 2
2154 fi
2155done
2156done
1b9750d6 2157IFS=$as_save_IFS
6bf9431b
BE
2158
2159fi
2160fi
2161ac_ct_CC=$ac_cv_prog_ac_ct_CC
2162if test -n "$ac_ct_CC"; then
1b9750d6
NC
2163 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2164echo "${ECHO_T}$ac_ct_CC" >&6; }
6bf9431b 2165else
1b9750d6
NC
2166 { echo "$as_me:$LINENO: result: no" >&5
2167echo "${ECHO_T}no" >&6; }
6bf9431b
BE
2168fi
2169
1b9750d6
NC
2170 if test "x$ac_ct_CC" = x; then
2171 CC=""
2172 else
2173 case $cross_compiling:$ac_tool_warned in
2174yes:)
2175{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2176whose name does not start with the host triplet. If you think this
2177configuration is useful to you, please write to autoconf@gnu.org." >&5
2178echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2179whose name does not start with the host triplet. If you think this
2180configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2181ac_tool_warned=yes ;;
2182esac
2183 CC=$ac_ct_CC
2184 fi
6bf9431b
BE
2185else
2186 CC="$ac_cv_prog_CC"
2187fi
2188
2189if test -z "$CC"; then
1b9750d6
NC
2190 if test -n "$ac_tool_prefix"; then
2191 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6bf9431b 2192set dummy ${ac_tool_prefix}cc; ac_word=$2
1b9750d6
NC
2193{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6bf9431b
BE
2195if test "${ac_cv_prog_CC+set}" = set; then
2196 echo $ECHO_N "(cached) $ECHO_C" >&6
2197else
2198 if test -n "$CC"; then
2199 ac_cv_prog_CC="$CC" # Let the user override the test.
2200else
2201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202for as_dir in $PATH
2203do
2204 IFS=$as_save_IFS
2205 test -z "$as_dir" && as_dir=.
2206 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 2207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b
BE
2208 ac_cv_prog_CC="${ac_tool_prefix}cc"
2209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210 break 2
2211 fi
2212done
2213done
1b9750d6 2214IFS=$as_save_IFS
6bf9431b
BE
2215
2216fi
2217fi
2218CC=$ac_cv_prog_CC
2219if test -n "$CC"; then
1b9750d6
NC
2220 { echo "$as_me:$LINENO: result: $CC" >&5
2221echo "${ECHO_T}$CC" >&6; }
6bf9431b 2222else
1b9750d6
NC
2223 { echo "$as_me:$LINENO: result: no" >&5
2224echo "${ECHO_T}no" >&6; }
6bf9431b
BE
2225fi
2226
6bf9431b 2227
1b9750d6 2228 fi
6bf9431b
BE
2229fi
2230if test -z "$CC"; then
2231 # Extract the first word of "cc", so it can be a program name with args.
2232set dummy cc; ac_word=$2
1b9750d6
NC
2233{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6bf9431b
BE
2235if test "${ac_cv_prog_CC+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2237else
2238 if test -n "$CC"; then
2239 ac_cv_prog_CC="$CC" # Let the user override the test.
2240else
2241 ac_prog_rejected=no
2242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243for as_dir in $PATH
2244do
2245 IFS=$as_save_IFS
2246 test -z "$as_dir" && as_dir=.
2247 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 2248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b
BE
2249 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2250 ac_prog_rejected=yes
2251 continue
2252 fi
2253 ac_cv_prog_CC="cc"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 break 2
2256 fi
2257done
2258done
1b9750d6 2259IFS=$as_save_IFS
6bf9431b
BE
2260
2261if test $ac_prog_rejected = yes; then
2262 # We found a bogon in the path, so make sure we never use it.
2263 set dummy $ac_cv_prog_CC
2264 shift
2265 if test $# != 0; then
2266 # We chose a different compiler from the bogus one.
2267 # However, it has the same basename, so the bogon will be chosen
2268 # first if we set CC to just the basename; use the full file name.
2269 shift
2270 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2271 fi
2272fi
2273fi
2274fi
2275CC=$ac_cv_prog_CC
2276if test -n "$CC"; then
1b9750d6
NC
2277 { echo "$as_me:$LINENO: result: $CC" >&5
2278echo "${ECHO_T}$CC" >&6; }
6bf9431b 2279else
1b9750d6
NC
2280 { echo "$as_me:$LINENO: result: no" >&5
2281echo "${ECHO_T}no" >&6; }
6bf9431b
BE
2282fi
2283
1b9750d6 2284
6bf9431b
BE
2285fi
2286if test -z "$CC"; then
2287 if test -n "$ac_tool_prefix"; then
1b9750d6 2288 for ac_prog in cl.exe
6bf9431b
BE
2289 do
2290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2291set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1b9750d6
NC
2292{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6bf9431b
BE
2294if test "${ac_cv_prog_CC+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296else
2297 if test -n "$CC"; then
2298 ac_cv_prog_CC="$CC" # Let the user override the test.
2299else
2300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301for as_dir in $PATH
2302do
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b
BE
2307 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 break 2
2310 fi
2311done
2312done
1b9750d6 2313IFS=$as_save_IFS
6bf9431b
BE
2314
2315fi
2316fi
2317CC=$ac_cv_prog_CC
2318if test -n "$CC"; then
1b9750d6
NC
2319 { echo "$as_me:$LINENO: result: $CC" >&5
2320echo "${ECHO_T}$CC" >&6; }
6bf9431b 2321else
1b9750d6
NC
2322 { echo "$as_me:$LINENO: result: no" >&5
2323echo "${ECHO_T}no" >&6; }
6bf9431b
BE
2324fi
2325
1b9750d6 2326
6bf9431b
BE
2327 test -n "$CC" && break
2328 done
2329fi
2330if test -z "$CC"; then
2331 ac_ct_CC=$CC
1b9750d6 2332 for ac_prog in cl.exe
6bf9431b
BE
2333do
2334 # Extract the first word of "$ac_prog", so it can be a program name with args.
2335set dummy $ac_prog; ac_word=$2
1b9750d6
NC
2336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6bf9431b
BE
2338if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2340else
2341 if test -n "$ac_ct_CC"; then
2342 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2343else
2344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345for as_dir in $PATH
2346do
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
2349 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 2350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b
BE
2351 ac_cv_prog_ac_ct_CC="$ac_prog"
2352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 break 2
2354 fi
2355done
2356done
1b9750d6 2357IFS=$as_save_IFS
6bf9431b
BE
2358
2359fi
2360fi
2361ac_ct_CC=$ac_cv_prog_ac_ct_CC
2362if test -n "$ac_ct_CC"; then
1b9750d6
NC
2363 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2364echo "${ECHO_T}$ac_ct_CC" >&6; }
6bf9431b 2365else
1b9750d6
NC
2366 { echo "$as_me:$LINENO: result: no" >&5
2367echo "${ECHO_T}no" >&6; }
6bf9431b
BE
2368fi
2369
1b9750d6 2370
6bf9431b
BE
2371 test -n "$ac_ct_CC" && break
2372done
2373
1b9750d6
NC
2374 if test "x$ac_ct_CC" = x; then
2375 CC=""
2376 else
2377 case $cross_compiling:$ac_tool_warned in
2378yes:)
2379{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2380whose name does not start with the host triplet. If you think this
2381configuration is useful to you, please write to autoconf@gnu.org." >&5
2382echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2383whose name does not start with the host triplet. If you think this
2384configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2385ac_tool_warned=yes ;;
2386esac
2387 CC=$ac_ct_CC
2388 fi
6bf9431b
BE
2389fi
2390
2391fi
2392
2393
2394test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2395See \`config.log' for more details." >&5
2396echo "$as_me: error: no acceptable C compiler found in \$PATH
2397See \`config.log' for more details." >&2;}
2398 { (exit 1); exit 1; }; }
2399
2400# Provide some information about the compiler.
1b9750d6 2401echo "$as_me:$LINENO: checking for C compiler version" >&5
6bf9431b 2402ac_compiler=`set X $ac_compile; echo $2`
1b9750d6
NC
2403{ (ac_try="$ac_compiler --version >&5"
2404case "(($ac_try" in
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2407esac
2408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409 (eval "$ac_compiler --version >&5") 2>&5
6bf9431b
BE
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }
1b9750d6
NC
2413{ (ac_try="$ac_compiler -v >&5"
2414case "(($ac_try" in
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2417esac
2418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419 (eval "$ac_compiler -v >&5") 2>&5
6bf9431b
BE
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }
1b9750d6
NC
2423{ (ac_try="$ac_compiler -V >&5"
2424case "(($ac_try" in
2425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426 *) ac_try_echo=$ac_try;;
2427esac
2428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2429 (eval "$ac_compiler -V >&5") 2>&5
6bf9431b
BE
2430 ac_status=$?
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }
2433
2434cat >conftest.$ac_ext <<_ACEOF
2435/* confdefs.h. */
2436_ACEOF
2437cat confdefs.h >>conftest.$ac_ext
2438cat >>conftest.$ac_ext <<_ACEOF
2439/* end confdefs.h. */
2440
2441int
2442main ()
2443{
2444
2445 ;
2446 return 0;
2447}
2448_ACEOF
2449ac_clean_files_save=$ac_clean_files
2450ac_clean_files="$ac_clean_files a.out a.exe b.out"
2451# Try to create an executable without -o first, disregard a.out.
2452# It will help us diagnose broken compilers, and finding out an intuition
2453# of exeext.
1b9750d6
NC
2454{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2455echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
6bf9431b 2456ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1b9750d6
NC
2457#
2458# List of possible output files, starting from the most likely.
2459# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2460# only as a last resort. b.out is created by i960 compilers.
2461ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2462#
2463# The IRIX 6 linker writes into existing files which may not be
2464# executable, retaining their permissions. Remove them first so a
2465# subsequent execution test works.
2466ac_rmfiles=
2467for ac_file in $ac_files
2468do
2469 case $ac_file in
2470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2471 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2472 esac
2473done
2474rm -f $ac_rmfiles
2475
2476if { (ac_try="$ac_link_default"
2477case "(($ac_try" in
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2480esac
2481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2482 (eval "$ac_link_default") 2>&5
6bf9431b
BE
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; then
1b9750d6
NC
2486 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2487# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2488# in a Makefile. We should not override ac_cv_exeext if it was cached,
2489# so that the user can short-circuit this test for compilers unknown to
2490# Autoconf.
2491for ac_file in $ac_files ''
6bf9431b
BE
2492do
2493 test -f "$ac_file" || continue
2494 case $ac_file in
1b9750d6 2495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
6bf9431b
BE
2496 ;;
2497 [ab].out )
2498 # We found the default executable, but exeext='' is most
2499 # certainly right.
2500 break;;
2501 *.* )
1b9750d6
NC
2502 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2503 then :; else
2504 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2505 fi
2506 # We set ac_cv_exeext here because the later test for it is not
2507 # safe: cross compilers may not add the suffix if given an `-o'
2508 # argument, so we may need to know it at that point already.
2509 # Even if this section looks crufty: it has the advantage of
2510 # actually working.
6bf9431b
BE
2511 break;;
2512 * )
2513 break;;
2514 esac
2515done
1b9750d6
NC
2516test "$ac_cv_exeext" = no && ac_cv_exeext=
2517
6bf9431b 2518else
1b9750d6
NC
2519 ac_file=''
2520fi
2521
2522{ echo "$as_me:$LINENO: result: $ac_file" >&5
2523echo "${ECHO_T}$ac_file" >&6; }
2524if test -z "$ac_file"; then
6bf9431b
BE
2525 echo "$as_me: failed program was:" >&5
2526sed 's/^/| /' conftest.$ac_ext >&5
2527
2528{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2529See \`config.log' for more details." >&5
2530echo "$as_me: error: C compiler cannot create executables
2531See \`config.log' for more details." >&2;}
2532 { (exit 77); exit 77; }; }
2533fi
2534
2535ac_exeext=$ac_cv_exeext
6bf9431b 2536
1b9750d6 2537# Check that the compiler produces executables we can run. If not, either
6bf9431b 2538# the compiler is broken, or we cross compile.
1b9750d6
NC
2539{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2540echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
6bf9431b
BE
2541# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2542# If not cross compiling, check that we can run a simple program.
2543if test "$cross_compiling" != yes; then
2544 if { ac_try='./$ac_file'
1b9750d6
NC
2545 { (case "(($ac_try" in
2546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547 *) ac_try_echo=$ac_try;;
2548esac
2549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2550 (eval "$ac_try") 2>&5
6bf9431b
BE
2551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; }; then
2554 cross_compiling=no
2555 else
2556 if test "$cross_compiling" = maybe; then
2557 cross_compiling=yes
2558 else
2559 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2560If you meant to cross compile, use \`--host'.
2561See \`config.log' for more details." >&5
2562echo "$as_me: error: cannot run C compiled programs.
2563If you meant to cross compile, use \`--host'.
2564See \`config.log' for more details." >&2;}
2565 { (exit 1); exit 1; }; }
2566 fi
2567 fi
2568fi
1b9750d6
NC
2569{ echo "$as_me:$LINENO: result: yes" >&5
2570echo "${ECHO_T}yes" >&6; }
6bf9431b
BE
2571
2572rm -f a.out a.exe conftest$ac_cv_exeext b.out
2573ac_clean_files=$ac_clean_files_save
1b9750d6 2574# Check that the compiler produces executables we can run. If not, either
6bf9431b 2575# the compiler is broken, or we cross compile.
1b9750d6
NC
2576{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2577echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2578{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2579echo "${ECHO_T}$cross_compiling" >&6; }
2580
2581{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2582echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2583if { (ac_try="$ac_link"
2584case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2587esac
2588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_link") 2>&5
6bf9431b
BE
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; then
2593 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2594# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2595# work properly (i.e., refer to `conftest.exe'), while it won't with
2596# `rm'.
2597for ac_file in conftest.exe conftest conftest.*; do
2598 test -f "$ac_file" || continue
2599 case $ac_file in
1b9750d6 2600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
6bf9431b 2601 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6bf9431b
BE
2602 break;;
2603 * ) break;;
2604 esac
2605done
2606else
2607 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2608See \`config.log' for more details." >&5
2609echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2610See \`config.log' for more details." >&2;}
2611 { (exit 1); exit 1; }; }
2612fi
2613
2614rm -f conftest$ac_cv_exeext
1b9750d6
NC
2615{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2616echo "${ECHO_T}$ac_cv_exeext" >&6; }
6bf9431b
BE
2617
2618rm -f conftest.$ac_ext
2619EXEEXT=$ac_cv_exeext
2620ac_exeext=$EXEEXT
1b9750d6
NC
2621{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2622echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
6bf9431b
BE
2623if test "${ac_cv_objext+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625else
2626 cat >conftest.$ac_ext <<_ACEOF
2627/* confdefs.h. */
2628_ACEOF
2629cat confdefs.h >>conftest.$ac_ext
2630cat >>conftest.$ac_ext <<_ACEOF
2631/* end confdefs.h. */
2632
2633int
2634main ()
2635{
2636
2637 ;
2638 return 0;
2639}
2640_ACEOF
2641rm -f conftest.o conftest.obj
1b9750d6
NC
2642if { (ac_try="$ac_compile"
2643case "(($ac_try" in
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2646esac
2647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compile") 2>&5
6bf9431b
BE
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; then
1b9750d6
NC
2652 for ac_file in conftest.o conftest.obj conftest.*; do
2653 test -f "$ac_file" || continue;
6bf9431b 2654 case $ac_file in
1b9750d6 2655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
6bf9431b
BE
2656 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2657 break;;
2658 esac
2659done
2660else
2661 echo "$as_me: failed program was:" >&5
2662sed 's/^/| /' conftest.$ac_ext >&5
2663
2664{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2665See \`config.log' for more details." >&5
2666echo "$as_me: error: cannot compute suffix of object files: cannot compile
2667See \`config.log' for more details." >&2;}
2668 { (exit 1); exit 1; }; }
2669fi
2670
2671rm -f conftest.$ac_cv_objext conftest.$ac_ext
2672fi
1b9750d6
NC
2673{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2674echo "${ECHO_T}$ac_cv_objext" >&6; }
6bf9431b
BE
2675OBJEXT=$ac_cv_objext
2676ac_objext=$OBJEXT
1b9750d6
NC
2677{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2678echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
6bf9431b
BE
2679if test "${ac_cv_c_compiler_gnu+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681else
2682 cat >conftest.$ac_ext <<_ACEOF
2683/* confdefs.h. */
2684_ACEOF
2685cat confdefs.h >>conftest.$ac_ext
2686cat >>conftest.$ac_ext <<_ACEOF
2687/* end confdefs.h. */
2688
2689int
2690main ()
2691{
2692#ifndef __GNUC__
2693 choke me
2694#endif
2695
2696 ;
2697 return 0;
2698}
2699_ACEOF
2700rm -f conftest.$ac_objext
1b9750d6
NC
2701if { (ac_try="$ac_compile"
2702case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705esac
2706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compile") 2>conftest.er1
6bf9431b
BE
2708 ac_status=$?
2709 grep -v '^ *+' conftest.er1 >conftest.err
2710 rm -f conftest.er1
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
2713 (exit $ac_status); } && {
2714 test -z "$ac_c_werror_flag" ||
2715 test ! -s conftest.err
2716 } && test -s conftest.$ac_objext; then
6bf9431b
BE
2717 ac_compiler_gnu=yes
2718else
2719 echo "$as_me: failed program was:" >&5
2720sed 's/^/| /' conftest.$ac_ext >&5
2721
1b9750d6 2722 ac_compiler_gnu=no
6bf9431b 2723fi
1b9750d6
NC
2724
2725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b
BE
2726ac_cv_c_compiler_gnu=$ac_compiler_gnu
2727
2728fi
1b9750d6
NC
2729{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2730echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6bf9431b
BE
2731GCC=`test $ac_compiler_gnu = yes && echo yes`
2732ac_test_CFLAGS=${CFLAGS+set}
2733ac_save_CFLAGS=$CFLAGS
1b9750d6
NC
2734{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2735echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6bf9431b
BE
2736if test "${ac_cv_prog_cc_g+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2738else
1b9750d6
NC
2739 ac_save_c_werror_flag=$ac_c_werror_flag
2740 ac_c_werror_flag=yes
2741 ac_cv_prog_cc_g=no
2742 CFLAGS="-g"
2743 cat >conftest.$ac_ext <<_ACEOF
6bf9431b
BE
2744/* confdefs.h. */
2745_ACEOF
2746cat confdefs.h >>conftest.$ac_ext
2747cat >>conftest.$ac_ext <<_ACEOF
2748/* end confdefs.h. */
2749
2750int
2751main ()
2752{
2753
2754 ;
2755 return 0;
2756}
2757_ACEOF
2758rm -f conftest.$ac_objext
1b9750d6
NC
2759if { (ac_try="$ac_compile"
2760case "(($ac_try" in
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2763esac
2764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765 (eval "$ac_compile") 2>conftest.er1
6bf9431b
BE
2766 ac_status=$?
2767 grep -v '^ *+' conftest.er1 >conftest.err
2768 rm -f conftest.er1
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
2771 (exit $ac_status); } && {
2772 test -z "$ac_c_werror_flag" ||
2773 test ! -s conftest.err
2774 } && test -s conftest.$ac_objext; then
2775 ac_cv_prog_cc_g=yes
2776else
2777 echo "$as_me: failed program was:" >&5
2778sed 's/^/| /' conftest.$ac_ext >&5
2779
2780 CFLAGS=""
2781 cat >conftest.$ac_ext <<_ACEOF
2782/* confdefs.h. */
2783_ACEOF
2784cat confdefs.h >>conftest.$ac_ext
2785cat >>conftest.$ac_ext <<_ACEOF
2786/* end confdefs.h. */
2787
2788int
2789main ()
2790{
2791
2792 ;
2793 return 0;
2794}
2795_ACEOF
2796rm -f conftest.$ac_objext
2797if { (ac_try="$ac_compile"
2798case "(($ac_try" in
2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2801esac
2802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803 (eval "$ac_compile") 2>conftest.er1
6bf9431b 2804 ac_status=$?
1b9750d6
NC
2805 grep -v '^ *+' conftest.er1 >conftest.err
2806 rm -f conftest.er1
2807 cat conftest.err >&5
6bf9431b 2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
2809 (exit $ac_status); } && {
2810 test -z "$ac_c_werror_flag" ||
2811 test ! -s conftest.err
2812 } && test -s conftest.$ac_objext; then
2813 :
2814else
2815 echo "$as_me: failed program was:" >&5
2816sed 's/^/| /' conftest.$ac_ext >&5
2817
2818 ac_c_werror_flag=$ac_save_c_werror_flag
2819 CFLAGS="-g"
2820 cat >conftest.$ac_ext <<_ACEOF
2821/* confdefs.h. */
2822_ACEOF
2823cat confdefs.h >>conftest.$ac_ext
2824cat >>conftest.$ac_ext <<_ACEOF
2825/* end confdefs.h. */
2826
2827int
2828main ()
2829{
2830
2831 ;
2832 return 0;
2833}
2834_ACEOF
2835rm -f conftest.$ac_objext
2836if { (ac_try="$ac_compile"
2837case "(($ac_try" in
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2840esac
2841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2842 (eval "$ac_compile") 2>conftest.er1
6bf9431b 2843 ac_status=$?
1b9750d6
NC
2844 grep -v '^ *+' conftest.er1 >conftest.err
2845 rm -f conftest.er1
2846 cat conftest.err >&5
6bf9431b 2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
2848 (exit $ac_status); } && {
2849 test -z "$ac_c_werror_flag" ||
2850 test ! -s conftest.err
2851 } && test -s conftest.$ac_objext; then
6bf9431b
BE
2852 ac_cv_prog_cc_g=yes
2853else
2854 echo "$as_me: failed program was:" >&5
2855sed 's/^/| /' conftest.$ac_ext >&5
2856
1b9750d6
NC
2857
2858fi
2859
2860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2861fi
2862
2863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b 2864fi
1b9750d6
NC
2865
2866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867 ac_c_werror_flag=$ac_save_c_werror_flag
6bf9431b 2868fi
1b9750d6
NC
2869{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2870echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6bf9431b
BE
2871if test "$ac_test_CFLAGS" = set; then
2872 CFLAGS=$ac_save_CFLAGS
2873elif test $ac_cv_prog_cc_g = yes; then
2874 if test "$GCC" = yes; then
2875 CFLAGS="-g -O2"
2876 else
2877 CFLAGS="-g"
2878 fi
2879else
2880 if test "$GCC" = yes; then
2881 CFLAGS="-O2"
2882 else
2883 CFLAGS=
2884 fi
2885fi
1b9750d6
NC
2886{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2887echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2888if test "${ac_cv_prog_cc_c89+set}" = set; then
6bf9431b
BE
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890else
1b9750d6 2891 ac_cv_prog_cc_c89=no
6bf9431b
BE
2892ac_save_CC=$CC
2893cat >conftest.$ac_ext <<_ACEOF
2894/* confdefs.h. */
2895_ACEOF
2896cat confdefs.h >>conftest.$ac_ext
2897cat >>conftest.$ac_ext <<_ACEOF
2898/* end confdefs.h. */
2899#include <stdarg.h>
2900#include <stdio.h>
2901#include <sys/types.h>
2902#include <sys/stat.h>
2903/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2904struct buf { int x; };
2905FILE * (*rcsopen) (struct buf *, struct stat *, int);
2906static char *e (p, i)
2907 char **p;
2908 int i;
2909{
2910 return p[i];
2911}
2912static char *f (char * (*g) (char **, int), char **p, ...)
2913{
2914 char *s;
2915 va_list v;
2916 va_start (v,p);
2917 s = g (p, va_arg (v,int));
2918 va_end (v);
2919 return s;
2920}
2921
2922/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2923 function prototypes and stuff, but not '\xHH' hex character constants.
2924 These don't provoke an error unfortunately, instead are silently treated
1b9750d6 2925 as 'x'. The following induces an error, until -std is added to get
6bf9431b
BE
2926 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2927 array size at least. It's necessary to write '\x00'==0 to get something
1b9750d6 2928 that's true only with -std. */
6bf9431b
BE
2929int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2930
1b9750d6
NC
2931/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2932 inside strings and character constants. */
2933#define FOO(x) 'x'
2934int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2935
6bf9431b
BE
2936int test (int i, double x);
2937struct s1 {int (*f) (int a);};
2938struct s2 {int (*f) (double a);};
2939int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2940int argc;
2941char **argv;
2942int
2943main ()
2944{
2945return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2946 ;
2947 return 0;
2948}
2949_ACEOF
1b9750d6
NC
2950for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2951 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6bf9431b
BE
2952do
2953 CC="$ac_save_CC $ac_arg"
2954 rm -f conftest.$ac_objext
1b9750d6
NC
2955if { (ac_try="$ac_compile"
2956case "(($ac_try" in
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2959esac
2960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961 (eval "$ac_compile") 2>conftest.er1
6bf9431b
BE
2962 ac_status=$?
2963 grep -v '^ *+' conftest.er1 >conftest.err
2964 rm -f conftest.er1
2965 cat conftest.err >&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
2967 (exit $ac_status); } && {
2968 test -z "$ac_c_werror_flag" ||
2969 test ! -s conftest.err
2970 } && test -s conftest.$ac_objext; then
2971 ac_cv_prog_cc_c89=$ac_arg
6bf9431b
BE
2972else
2973 echo "$as_me: failed program was:" >&5
2974sed 's/^/| /' conftest.$ac_ext >&5
2975
1b9750d6 2976
6bf9431b 2977fi
1b9750d6
NC
2978
2979rm -f core conftest.err conftest.$ac_objext
2980 test "x$ac_cv_prog_cc_c89" != "xno" && break
6bf9431b 2981done
1b9750d6 2982rm -f conftest.$ac_ext
6bf9431b
BE
2983CC=$ac_save_CC
2984
2985fi
1b9750d6
NC
2986# AC_CACHE_VAL
2987case "x$ac_cv_prog_cc_c89" in
2988 x)
2989 { echo "$as_me:$LINENO: result: none needed" >&5
2990echo "${ECHO_T}none needed" >&6; } ;;
2991 xno)
2992 { echo "$as_me:$LINENO: result: unsupported" >&5
2993echo "${ECHO_T}unsupported" >&6; } ;;
6bf9431b 2994 *)
1b9750d6
NC
2995 CC="$CC $ac_cv_prog_cc_c89"
2996 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2997echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6bf9431b
BE
2998esac
2999
6bf9431b 3000
6bf9431b
BE
3001ac_ext=c
3002ac_cpp='$CPP $CPPFLAGS'
3003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006
3007
1b9750d6
NC
3008{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3009echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
6bf9431b
BE
3010if test "${ac_cv_search_strerror+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3012else
3013 ac_func_search_save_LIBS=$LIBS
6bf9431b
BE
3014cat >conftest.$ac_ext <<_ACEOF
3015/* confdefs.h. */
3016_ACEOF
3017cat confdefs.h >>conftest.$ac_ext
3018cat >>conftest.$ac_ext <<_ACEOF
3019/* end confdefs.h. */
3020
1b9750d6
NC
3021/* Override any GCC internal prototype to avoid an error.
3022 Use char because int might match the return type of a GCC
3023 builtin and then its argument prototype would still apply. */
6bf9431b
BE
3024#ifdef __cplusplus
3025extern "C"
3026#endif
6bf9431b
BE
3027char strerror ();
3028int
3029main ()
3030{
1b9750d6 3031return strerror ();
6bf9431b
BE
3032 ;
3033 return 0;
3034}
3035_ACEOF
1b9750d6
NC
3036for ac_lib in '' cposix; do
3037 if test -z "$ac_lib"; then
3038 ac_res="none required"
3039 else
3040 ac_res=-l$ac_lib
3041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3042 fi
3043 rm -f conftest.$ac_objext conftest$ac_exeext
3044if { (ac_try="$ac_link"
3045case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048esac
3049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_link") 2>conftest.er1
6bf9431b
BE
3051 ac_status=$?
3052 grep -v '^ *+' conftest.er1 >conftest.err
3053 rm -f conftest.er1
3054 cat conftest.err >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
3056 (exit $ac_status); } && {
3057 test -z "$ac_c_werror_flag" ||
3058 test ! -s conftest.err
3059 } && test -s conftest$ac_exeext &&
3060 $as_test_x conftest$ac_exeext; then
3061 ac_cv_search_strerror=$ac_res
6bf9431b
BE
3062else
3063 echo "$as_me: failed program was:" >&5
3064sed 's/^/| /' conftest.$ac_ext >&5
3065
6bf9431b 3066
1b9750d6 3067fi
6bf9431b 3068
1b9750d6
NC
3069rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3070 conftest$ac_exeext
3071 if test "${ac_cv_search_strerror+set}" = set; then
3072 break
6bf9431b 3073fi
1b9750d6
NC
3074done
3075if test "${ac_cv_search_strerror+set}" = set; then
3076 :
3077else
3078 ac_cv_search_strerror=no
6bf9431b 3079fi
1b9750d6 3080rm conftest.$ac_ext
6bf9431b
BE
3081LIBS=$ac_func_search_save_LIBS
3082fi
1b9750d6
NC
3083{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3084echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3085ac_res=$ac_cv_search_strerror
3086if test "$ac_res" != no; then
3087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6bf9431b
BE
3088
3089fi
3090
3091
3092BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
df76639a 3093am__api_version="1.9"
6bf9431b
BE
3094# Find a good install program. We prefer a C program (faster),
3095# so one script is as good as another. But avoid the broken or
3096# incompatible versions:
3097# SysV /etc/install, /usr/sbin/install
3098# SunOS /usr/etc/install
3099# IRIX /sbin/install
3100# AIX /bin/install
3101# AmigaOS /C/install, which installs bootblocks on floppy discs
3102# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3103# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3104# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3105# OS/2's system install, which has a completely different semantic
3106# ./install, which can be erroneously created by make from ./install.sh.
1b9750d6
NC
3107{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3108echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6bf9431b
BE
3109if test -z "$INSTALL"; then
3110if test "${ac_cv_path_install+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3112else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 # Account for people who put trailing slashes in PATH elements.
3119case $as_dir/ in
3120 ./ | .// | /cC/* | \
3121 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3122 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3123 /usr/ucb/* ) ;;
3124 *)
3125 # OSF1 and SCO ODT 3.0 have their own names for install.
3126 # Don't use installbsd from OSF since it installs stuff as root
3127 # by default.
3128 for ac_prog in ginstall scoinst install; do
3129 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 3130 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6bf9431b
BE
3131 if test $ac_prog = install &&
3132 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3133 # AIX install. It has an incompatible calling convention.
3134 :
3135 elif test $ac_prog = install &&
3136 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3137 # program-specific install script used by HP pwplus--don't use.
3138 :
252b5132 3139 else
6bf9431b
BE
3140 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3141 break 3
252b5132
RH
3142 fi
3143 fi
3144 done
6bf9431b
BE
3145 done
3146 ;;
3147esac
3148done
1b9750d6 3149IFS=$as_save_IFS
6bf9431b 3150
252b5132
RH
3151
3152fi
3153 if test "${ac_cv_path_install+set}" = set; then
6bf9431b 3154 INSTALL=$ac_cv_path_install
252b5132 3155 else
1b9750d6
NC
3156 # As a last resort, use the slow shell script. Don't cache a
3157 # value for INSTALL within a source directory, because that will
252b5132 3158 # break other packages using the cache if that directory is
1b9750d6 3159 # removed, or if the value is a relative name.
6bf9431b 3160 INSTALL=$ac_install_sh
252b5132
RH
3161 fi
3162fi
1b9750d6
NC
3163{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3164echo "${ECHO_T}$INSTALL" >&6; }
252b5132
RH
3165
3166# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3167# It thinks the first close brace ends the variable substitution.
3168test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3169
6bf9431b 3170test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3171
3172test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3173
1b9750d6
NC
3174{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3175echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
252b5132
RH
3176# Just in case
3177sleep 1
6bf9431b 3178echo timestamp > conftest.file
252b5132
RH
3179# Do `set' in a subshell so we don't clobber the current shell's
3180# arguments. Must try -L first in case configure is actually a
3181# symlink; some systems play weird games with the mod time of symlinks
3182# (eg FreeBSD returns the mod time of the symlink's containing
3183# directory).
3184if (
6bf9431b 3185 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
3186 if test "$*" = "X"; then
3187 # -L didn't work.
6bf9431b 3188 set X `ls -t $srcdir/configure conftest.file`
252b5132 3189 fi
6bf9431b
BE
3190 rm -f conftest.file
3191 if test "$*" != "X $srcdir/configure conftest.file" \
3192 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3193
3194 # If neither matched, then we have a broken ls. This can happen
3195 # if, for instance, CONFIG_SHELL is bash and it inherits a
3196 # broken ls alias from the environment. This has actually
3197 # happened. Such a system could not be considered "sane".
6bf9431b
BE
3198 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3199alias in your environment" >&5
3200echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3201alias in your environment" >&2;}
3202 { (exit 1); exit 1; }; }
252b5132
RH
3203 fi
3204
6bf9431b 3205 test "$2" = conftest.file
252b5132
RH
3206 )
3207then
3208 # Ok.
3209 :
3210else
6bf9431b
BE
3211 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3212Check your system clock" >&5
3213echo "$as_me: error: newly created file is older than distributed files!
3214Check your system clock" >&2;}
3215 { (exit 1); exit 1; }; }
252b5132 3216fi
1b9750d6
NC
3217{ echo "$as_me:$LINENO: result: yes" >&5
3218echo "${ECHO_T}yes" >&6; }
252b5132 3219test "$program_prefix" != NONE &&
1b9750d6 3220 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3221# Use a double $ so make ignores it.
3222test "$program_suffix" != NONE &&
1b9750d6 3223 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6bf9431b
BE
3224# Double any \ or $. echo might interpret backslashes.
3225# By default was `s,x,x', remove it if useless.
3226cat <<\_ACEOF >conftest.sed
3227s/[\\$]/&&/g;s/;s,x,x,$//
3228_ACEOF
3229program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1b9750d6 3230rm -f conftest.sed
6bf9431b
BE
3231
3232# expand $ac_aux_dir to an absolute path
3233am_aux_dir=`cd $ac_aux_dir && pwd`
3234
3235test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3236# Use eval to expand $SHELL
3237if eval "$MISSING --run true"; then
3238 am_missing_run="$MISSING --run "
3239else
3240 am_missing_run=
3241 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3242echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3243fi
3244
3245if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
df76639a
AM
3246 # We used to keeping the `.' as first argument, in order to
3247 # allow $(mkdir_p) to be used without argument. As in
6bf9431b 3248 # $(mkdir_p) $(somedir)
df76639a
AM
3249 # where $(somedir) is conditionally defined. However this is wrong
3250 # for two reasons:
3251 # 1. if the package is installed by a user who cannot write `.'
3252 # make install will fail,
3253 # 2. the above comment should most certainly read
3254 # $(mkdir_p) $(DESTDIR)$(somedir)
3255 # so it does not work when $(somedir) is undefined and
3256 # $(DESTDIR) is not.
3257 # To support the latter case, we have to write
3258 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3259 # so the `.' trick is pointless.
3260 mkdir_p='mkdir -p --'
6bf9431b
BE
3261else
3262 # On NextStep and OpenStep, the `mkdir' command does not
3263 # recognize any option. It will interpret all options as
3264 # directories to create, and then abort because `.' already
3265 # exists.
3266 for d in ./-p ./--version;
3267 do
3268 test -d $d && rmdir $d
3269 done
3270 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3271 if test -f "$ac_aux_dir/mkinstalldirs"; then
3272 mkdir_p='$(mkinstalldirs)'
3273 else
3274 mkdir_p='$(install_sh) -d'
3275 fi
3276fi
252b5132 3277
6bf9431b
BE
3278for ac_prog in gawk mawk nawk awk
3279do
3280 # Extract the first word of "$ac_prog", so it can be a program name with args.
3281set dummy $ac_prog; ac_word=$2
1b9750d6
NC
3282{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6bf9431b
BE
3284if test "${ac_cv_prog_AWK+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286else
3287 if test -n "$AWK"; then
3288 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3289else
3290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291for as_dir in $PATH
3292do
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b
BE
3297 ac_cv_prog_AWK="$ac_prog"
3298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 break 2
3300 fi
3301done
3302done
1b9750d6 3303IFS=$as_save_IFS
6bf9431b
BE
3304
3305fi
3306fi
3307AWK=$ac_cv_prog_AWK
3308if test -n "$AWK"; then
1b9750d6
NC
3309 { echo "$as_me:$LINENO: result: $AWK" >&5
3310echo "${ECHO_T}$AWK" >&6; }
6bf9431b 3311else
1b9750d6
NC
3312 { echo "$as_me:$LINENO: result: no" >&5
3313echo "${ECHO_T}no" >&6; }
6bf9431b
BE
3314fi
3315
1b9750d6 3316
6bf9431b
BE
3317 test -n "$AWK" && break
3318done
252b5132 3319
1b9750d6
NC
3320{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3321echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3322set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3323if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6bf9431b 3324 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3325else
6bf9431b 3326 cat >conftest.make <<\_ACEOF
1b9750d6 3327SHELL = /bin/sh
252b5132 3328all:
1b9750d6 3329 @echo '@@@%%%=$(MAKE)=@@@%%%'
6bf9431b 3330_ACEOF
252b5132 3331# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1b9750d6
NC
3332case `${MAKE-make} -f conftest.make 2>/dev/null` in
3333 *@@@%%%=?*=@@@%%%*)
3334 eval ac_cv_prog_make_${ac_make}_set=yes;;
3335 *)
3336 eval ac_cv_prog_make_${ac_make}_set=no;;
3337esac
6bf9431b 3338rm -f conftest.make
252b5132 3339fi
1b9750d6
NC
3340if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3341 { echo "$as_me:$LINENO: result: yes" >&5
3342echo "${ECHO_T}yes" >&6; }
252b5132
RH
3343 SET_MAKE=
3344else
1b9750d6
NC
3345 { echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6; }
252b5132
RH
3347 SET_MAKE="MAKE=${MAKE-make}"
3348fi
3349
6bf9431b
BE
3350rm -rf .tst 2>/dev/null
3351mkdir .tst 2>/dev/null
3352if test -d .tst; then
3353 am__leading_dot=.
3354else
3355 am__leading_dot=_
3356fi
3357rmdir .tst 2>/dev/null
3358
3359DEPDIR="${am__leading_dot}deps"
3360
1b9750d6 3361ac_config_commands="$ac_config_commands depfiles"
6bf9431b
BE
3362
3363
3364am_make=${MAKE-make}
3365cat > confinc << 'END'
3366am__doit:
3367 @echo done
3368.PHONY: am__doit
3369END
3370# If we don't find an include directive, just comment out the code.
1b9750d6
NC
3371{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3372echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
6bf9431b
BE
3373am__include="#"
3374am__quote=
3375_am_result=none
3376# First try GNU make style include.
3377echo "include confinc" > confmf
3378# We grep out `Entering directory' and `Leaving directory'
3379# messages which can occur if `w' ends up in MAKEFLAGS.
3380# In particular we don't look at `^make:' because GNU make might
3381# be invoked under some other name (usually "gmake"), in which
3382# case it prints its new name instead of `make'.
3383if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3384 am__include=include
3385 am__quote=
3386 _am_result=GNU
3387fi
3388# Now try BSD make style include.
3389if test "$am__include" = "#"; then
3390 echo '.include "confinc"' > confmf
3391 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3392 am__include=.include
3393 am__quote="\""
3394 _am_result=BSD
3395 fi
3396fi
3397
252b5132 3398
1b9750d6
NC
3399{ echo "$as_me:$LINENO: result: $_am_result" >&5
3400echo "${ECHO_T}$_am_result" >&6; }
6bf9431b 3401rm -f confinc confmf
252b5132 3402
1b9750d6 3403# Check whether --enable-dependency-tracking was given.
6bf9431b 3404if test "${enable_dependency_tracking+set}" = set; then
1b9750d6
NC
3405 enableval=$enable_dependency_tracking;
3406fi
252b5132 3407
6bf9431b
BE
3408if test "x$enable_dependency_tracking" != xno; then
3409 am_depcomp="$ac_aux_dir/depcomp"
3410 AMDEPBACKSLASH='\'
252b5132 3411fi
6bf9431b
BE
3412
3413
3414if test "x$enable_dependency_tracking" != xno; then
3415 AMDEP_TRUE=
3416 AMDEP_FALSE='#'
3417else
3418 AMDEP_TRUE='#'
3419 AMDEP_FALSE=
3420fi
3421
3422
3423
3424# test to see if srcdir already configured
3425if test "`cd $srcdir && pwd`" != "`pwd`" &&
3426 test -f $srcdir/config.status; then
3427 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3428echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3429 { (exit 1); exit 1; }; }
3430fi
3431
3432# test whether we have cygpath
3433if test -z "$CYGPATH_W"; then
3434 if (cygpath --version) >/dev/null 2>/dev/null; then
3435 CYGPATH_W='cygpath -w'
3436 else
3437 CYGPATH_W=echo
3438 fi
3439fi
3440
3441
3442# Define the identity of the package.
3443 PACKAGE=gprof
3444 VERSION=${BFD_VERSION}
3445
3446
3447cat >>confdefs.h <<_ACEOF
252b5132 3448#define PACKAGE "$PACKAGE"
6bf9431b
BE
3449_ACEOF
3450
252b5132 3451
6bf9431b 3452cat >>confdefs.h <<_ACEOF
252b5132 3453#define VERSION "$VERSION"
6bf9431b
BE
3454_ACEOF
3455
3456# Some tools Automake needs.
3457
3458ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3459
3460
3461AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3462
3463
3464AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3465
3466
3467AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3468
3469
3470MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3471
6bf9431b 3472install_sh=${install_sh-"$am_aux_dir/install-sh"}
252b5132 3473
6bf9431b
BE
3474# Installed binaries are usually stripped using `strip' when the user
3475# run `make install-strip'. However `strip' might not be the right
3476# tool to use in cross-compilation environments, therefore Automake
3477# will honor the `STRIP' environment variable to overrule this program.
3478if test "$cross_compiling" != no; then
3479 if test -n "$ac_tool_prefix"; then
3480 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3481set dummy ${ac_tool_prefix}strip; ac_word=$2
1b9750d6
NC
3482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6bf9431b
BE
3484if test "${ac_cv_prog_STRIP+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486else
3487 if test -n "$STRIP"; then
3488 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3489else
3490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491for as_dir in $PATH
3492do
3493 IFS=$as_save_IFS
3494 test -z "$as_dir" && as_dir=.
3495 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 3496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b
BE
3497 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 break 2
3500 fi
3501done
3502done
1b9750d6 3503IFS=$as_save_IFS
6bf9431b
BE
3504
3505fi
3506fi
3507STRIP=$ac_cv_prog_STRIP
3508if test -n "$STRIP"; then
1b9750d6
NC
3509 { echo "$as_me:$LINENO: result: $STRIP" >&5
3510echo "${ECHO_T}$STRIP" >&6; }
6bf9431b 3511else
1b9750d6
NC
3512 { echo "$as_me:$LINENO: result: no" >&5
3513echo "${ECHO_T}no" >&6; }
6bf9431b 3514fi
252b5132 3515
1b9750d6 3516
6bf9431b
BE
3517fi
3518if test -z "$ac_cv_prog_STRIP"; then
3519 ac_ct_STRIP=$STRIP
3520 # Extract the first word of "strip", so it can be a program name with args.
3521set dummy strip; ac_word=$2
1b9750d6
NC
3522{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6bf9431b
BE
3524if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526else
3527 if test -n "$ac_ct_STRIP"; then
3528 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3529else
3530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531for as_dir in $PATH
3532do
3533 IFS=$as_save_IFS
3534 test -z "$as_dir" && as_dir=.
3535 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 3536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b
BE
3537 ac_cv_prog_ac_ct_STRIP="strip"
3538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 break 2
3540 fi
3541done
3542done
1b9750d6 3543IFS=$as_save_IFS
252b5132 3544
6bf9431b
BE
3545fi
3546fi
3547ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3548if test -n "$ac_ct_STRIP"; then
1b9750d6
NC
3549 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3550echo "${ECHO_T}$ac_ct_STRIP" >&6; }
252b5132 3551else
1b9750d6
NC
3552 { echo "$as_me:$LINENO: result: no" >&5
3553echo "${ECHO_T}no" >&6; }
252b5132
RH
3554fi
3555
1b9750d6
NC
3556 if test "x$ac_ct_STRIP" = x; then
3557 STRIP=":"
3558 else
3559 case $cross_compiling:$ac_tool_warned in
3560yes:)
3561{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3562whose name does not start with the host triplet. If you think this
3563configuration is useful to you, please write to autoconf@gnu.org." >&5
3564echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3565whose name does not start with the host triplet. If you think this
3566configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3567ac_tool_warned=yes ;;
3568esac
3569 STRIP=$ac_ct_STRIP
3570 fi
252b5132 3571else
6bf9431b 3572 STRIP="$ac_cv_prog_STRIP"
252b5132
RH
3573fi
3574
6bf9431b
BE
3575fi
3576INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3577
3578# We need awk for the "check" target. The system "awk" is bad on
3579# some platforms.
df76639a
AM
3580# Always define AMTAR for backward compatibility.
3581
3582AMTAR=${AMTAR-"${am_missing_run}tar"}
3583
3584am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3585
3586
6bf9431b
BE
3587
3588
3589depcc="$CC" am_compiler_list=
3590
1b9750d6
NC
3591{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3592echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6bf9431b
BE
3593if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3595else
3596 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3597 # We make a subdir and do the tests there. Otherwise we can end up
3598 # making bogus files that we don't know about and never remove. For
3599 # instance it was reported that on HP-UX the gcc test will end up
3600 # making a dummy file named `D' -- because `-MD' means `put the output
3601 # in D'.
3602 mkdir conftest.dir
3603 # Copy depcomp to subdir because otherwise we won't find it if we're
3604 # using a relative directory.
3605 cp "$am_depcomp" conftest.dir
3606 cd conftest.dir
3607 # We will build objects and dependencies in a subdirectory because
3608 # it helps to detect inapplicable dependency modes. For instance
3609 # both Tru64's cc and ICC support -MD to output dependencies as a
3610 # side effect of compilation, but ICC will put the dependencies in
3611 # the current directory while Tru64 will put them in the object
3612 # directory.
3613 mkdir sub
3614
3615 am_cv_CC_dependencies_compiler_type=none
3616 if test "$am_compiler_list" = ""; then
3617 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3618 fi
3619 for depmode in $am_compiler_list; do
3620 # Setup a source with many dependencies, because some compilers
3621 # like to wrap large dependency lists on column 80 (with \), and
3622 # we should not choose a depcomp mode which is confused by this.
3623 #
3624 # We need to recreate these files for each test, as the compiler may
3625 # overwrite some of them when testing with obscure command lines.
3626 # This happens at least with the AIX C compiler.
3627 : > sub/conftest.c
3628 for i in 1 2 3 4 5 6; do
3629 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3630 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3631 # Solaris 8's {/usr,}/bin/sh.
3632 touch sub/conftst$i.h
3633 done
3634 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3635
3636 case $depmode in
3637 nosideeffect)
3638 # after this tag, mechanisms are not by side-effect, so they'll
3639 # only be used when explicitly requested
3640 if test "x$enable_dependency_tracking" = xyes; then
3641 continue
3642 else
3643 break
3644 fi
3645 ;;
3646 none) break ;;
3647 esac
3648 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3649 # mode. It turns out that the SunPro C++ compiler does not properly
3650 # handle `-M -o', and we need to detect this.
3651 if depmode=$depmode \
3652 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3653 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3654 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3655 >/dev/null 2>conftest.err &&
3656 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3657 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3658 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3659 # icc doesn't choke on unknown options, it will just issue warnings
3660 # or remarks (even with -Werror). So we grep stderr for any message
3661 # that says an option was ignored or not supported.
3662 # When given -MP, icc 7.0 and 7.1 complain thusly:
3663 # icc: Command line warning: ignoring option '-M'; no argument required
3664 # The diagnosis changed in icc 8.0:
3665 # icc: Command line remark: option '-MP' not supported
3666 if (grep 'ignoring option' conftest.err ||
3667 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3668 am_cv_CC_dependencies_compiler_type=$depmode
3669 break
3670 fi
3671 fi
3672 done
3673
3674 cd ..
3675 rm -rf conftest.dir
252b5132 3676else
6bf9431b 3677 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3678fi
3679
252b5132 3680fi
1b9750d6
NC
3681{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3682echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
6bf9431b
BE
3683CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3684
252b5132 3685
6bf9431b
BE
3686
3687if
3688 test "x$enable_dependency_tracking" != xno \
3689 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3690 am__fastdepCC_TRUE=
3691 am__fastdepCC_FALSE='#'
252b5132 3692else
6bf9431b
BE
3693 am__fastdepCC_TRUE='#'
3694 am__fastdepCC_FALSE=
252b5132
RH
3695fi
3696
3697
3698
6bf9431b 3699
d7040cdb
SE
3700
3701
3702macro_version='2.1a'
3703macro_revision='1.2435'
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716ltmain="$ac_aux_dir/ltmain.sh"
3717
3718# Set options
3719
3720enable_dlopen=no
3721
3722
3723enable_win32_dll=no
3724
3725
1b9750d6 3726# Check whether --enable-shared was given.
252b5132 3727if test "${enable_shared+set}" = set; then
1b9750d6 3728 enableval=$enable_shared; p=${PACKAGE-default}
d7040cdb
SE
3729 case $enableval in
3730 yes) enable_shared=yes ;;
3731 no) enable_shared=no ;;
3732 *)
3733 enable_shared=no
3734 # Look at the argument we got. We use all the common list separators.
3735 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3736 for pkg in $enableval; do
3737 IFS="$lt_save_ifs"
3738 if test "X$pkg" = "X$p"; then
3739 enable_shared=yes
3740 fi
3741 done
3742 IFS="$lt_save_ifs"
3743 ;;
3744 esac
252b5132
RH
3745else
3746 enable_shared=yes
1b9750d6
NC
3747fi
3748
d7040cdb
SE
3749
3750
3751
3752
3753
3754
3755
3756
1b9750d6 3757# Check whether --enable-static was given.
252b5132 3758if test "${enable_static+set}" = set; then
1b9750d6 3759 enableval=$enable_static; p=${PACKAGE-default}
d7040cdb
SE
3760 case $enableval in
3761 yes) enable_static=yes ;;
3762 no) enable_static=no ;;
3763 *)
3764 enable_static=no
3765 # Look at the argument we got. We use all the common list separators.
3766 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3767 for pkg in $enableval; do
3768 IFS="$lt_save_ifs"
3769 if test "X$pkg" = "X$p"; then
3770 enable_static=yes
3771 fi
3772 done
3773 IFS="$lt_save_ifs"
3774 ;;
3775 esac
252b5132
RH
3776else
3777 enable_static=yes
1b9750d6
NC
3778fi
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789# Check whether --with-pic was given.
3790if test "${with_pic+set}" = set; then
3791 withval=$with_pic; pic_mode="$withval"
3792else
3793 pic_mode=default
3794fi
3795
3796
3797test -z "$pic_mode" && pic_mode=default
3798
3799
3800
3801
d7040cdb
SE
3802
3803
3804
1b9750d6
NC
3805# Check whether --enable-fast-install was given.
3806if test "${enable_fast_install+set}" = set; then
3807 enableval=$enable_fast_install; p=${PACKAGE-default}
3808 case $enableval in
3809 yes) enable_fast_install=yes ;;
3810 no) enable_fast_install=no ;;
3811 *)
3812 enable_fast_install=no
3813 # Look at the argument we got. We use all the common list separators.
3814 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3815 for pkg in $enableval; do
3816 IFS="$lt_save_ifs"
3817 if test "X$pkg" = "X$p"; then
3818 enable_fast_install=yes
3819 fi
3820 done
3821 IFS="$lt_save_ifs"
3822 ;;
3823 esac
3824else
3825 enable_fast_install=yes
3826fi
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3837echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3838if test "${ac_cv_path_SED+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840else
3841 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3842 for ac_i in 1 2 3 4 5 6 7; do
3843 ac_script="$ac_script$as_nl$ac_script"
3844 done
3845 echo "$ac_script" | sed 99q >conftest.sed
3846 $as_unset ac_script || ac_script=
3847 # Extract the first word of "sed gsed" to use in msg output
3848if test -z "$SED"; then
3849set dummy sed gsed; ac_prog_name=$2
3850if test "${ac_cv_path_SED+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852else
3853 ac_path_SED_found=false
3854# Loop through the user's path and test for each of PROGNAME-LIST
3855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856for as_dir in $PATH
3857do
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_prog in sed gsed; do
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3863 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3864 # Check for GNU ac_path_SED and select it if it is found.
3865 # Check for GNU $ac_path_SED
3866case `"$ac_path_SED" --version 2>&1` in
3867*GNU*)
3868 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3869*)
3870 ac_count=0
3871 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3872 while :
3873 do
3874 cat "conftest.in" "conftest.in" >"conftest.tmp"
3875 mv "conftest.tmp" "conftest.in"
3876 cp "conftest.in" "conftest.nl"
3877 echo '' >> "conftest.nl"
3878 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3879 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3880 ac_count=`expr $ac_count + 1`
3881 if test $ac_count -gt ${ac_path_SED_max-0}; then
3882 # Best one so far, save it but keep looking for a better one
3883 ac_cv_path_SED="$ac_path_SED"
3884 ac_path_SED_max=$ac_count
3885 fi
3886 # 10*(2^10) chars as input seems more than enough
3887 test $ac_count -gt 10 && break
3888 done
3889 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3890esac
3891
3892
3893 $ac_path_SED_found && break 3
3894 done
3895done
3896
3897done
3898IFS=$as_save_IFS
3899
3900
3901fi
3902
3903SED="$ac_cv_path_SED"
3904if test -z "$SED"; then
3905 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3906echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3907 { (exit 1); exit 1; }; }
3908fi
3909
3910else
3911 ac_cv_path_SED=$SED
3912fi
3913
3914fi
3915{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3916echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3917 SED="$ac_cv_path_SED"
3918 rm -f conftest.sed
3919
3920test -z "$SED" && SED=sed
3921Xsed="$SED -e 1s/^X//"
d7040cdb
SE
3922
3923
3924
3925
3926
3927
d7040cdb 3928
d7040cdb
SE
3929
3930
3931
3932
1b9750d6
NC
3933{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3934echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3935if test "${ac_cv_path_GREP+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3937else
3938 # Extract the first word of "grep ggrep" to use in msg output
3939if test -z "$GREP"; then
3940set dummy grep ggrep; ac_prog_name=$2
3941if test "${ac_cv_path_GREP+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943else
3944 ac_path_GREP_found=false
3945# Loop through the user's path and test for each of PROGNAME-LIST
3946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3948do
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_prog in grep ggrep; do
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3954 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3955 # Check for GNU ac_path_GREP and select it if it is found.
3956 # Check for GNU $ac_path_GREP
3957case `"$ac_path_GREP" --version 2>&1` in
3958*GNU*)
3959 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3960*)
3961 ac_count=0
3962 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3963 while :
3964 do
3965 cat "conftest.in" "conftest.in" >"conftest.tmp"
3966 mv "conftest.tmp" "conftest.in"
3967 cp "conftest.in" "conftest.nl"
3968 echo 'GREP' >> "conftest.nl"
3969 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3971 ac_count=`expr $ac_count + 1`
3972 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3973 # Best one so far, save it but keep looking for a better one
3974 ac_cv_path_GREP="$ac_path_GREP"
3975 ac_path_GREP_max=$ac_count
3976 fi
3977 # 10*(2^10) chars as input seems more than enough
3978 test $ac_count -gt 10 && break
3979 done
3980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3981esac
d7040cdb
SE
3982
3983
1b9750d6
NC
3984 $ac_path_GREP_found && break 3
3985 done
3986done
d7040cdb 3987
1b9750d6
NC
3988done
3989IFS=$as_save_IFS
093872ec 3990
d7040cdb 3991
1b9750d6 3992fi
d7040cdb 3993
1b9750d6
NC
3994GREP="$ac_cv_path_GREP"
3995if test -z "$GREP"; then
3996 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3997echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3998 { (exit 1); exit 1; }; }
3999fi
d7040cdb 4000
1b9750d6
NC
4001else
4002 ac_cv_path_GREP=$GREP
4003fi
d7040cdb
SE
4004
4005
1b9750d6
NC
4006fi
4007{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4008echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4009 GREP="$ac_cv_path_GREP"
d7040cdb
SE
4010
4011
1b9750d6
NC
4012{ echo "$as_me:$LINENO: checking for egrep" >&5
4013echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4014if test "${ac_cv_path_EGREP+set}" = set; then
d7040cdb
SE
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016else
1b9750d6
NC
4017 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4018 then ac_cv_path_EGREP="$GREP -E"
4019 else
4020 # Extract the first word of "egrep" to use in msg output
4021if test -z "$EGREP"; then
4022set dummy egrep; ac_prog_name=$2
4023if test "${ac_cv_path_EGREP+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4025else
4026 ac_path_EGREP_found=false
4027# Loop through the user's path and test for each of PROGNAME-LIST
d7040cdb 4028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1b9750d6 4029for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
d7040cdb
SE
4030do
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
1b9750d6
NC
4033 for ac_prog in egrep; do
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4036 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4037 # Check for GNU ac_path_EGREP and select it if it is found.
4038 # Check for GNU $ac_path_EGREP
4039case `"$ac_path_EGREP" --version 2>&1` in
4040*GNU*)
4041 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4042*)
4043 ac_count=0
4044 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4045 while :
4046 do
4047 cat "conftest.in" "conftest.in" >"conftest.tmp"
4048 mv "conftest.tmp" "conftest.in"
4049 cp "conftest.in" "conftest.nl"
4050 echo 'EGREP' >> "conftest.nl"
4051 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4052 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4053 ac_count=`expr $ac_count + 1`
4054 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4055 # Best one so far, save it but keep looking for a better one
4056 ac_cv_path_EGREP="$ac_path_EGREP"
4057 ac_path_EGREP_max=$ac_count
d7040cdb 4058 fi
1b9750d6
NC
4059 # 10*(2^10) chars as input seems more than enough
4060 test $ac_count -gt 10 && break
4061 done
4062 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4063esac
4064
4065
4066 $ac_path_EGREP_found && break 3
d7040cdb
SE
4067 done
4068done
4069
1b9750d6
NC
4070done
4071IFS=$as_save_IFS
d7040cdb 4072
d7040cdb 4073
1b9750d6 4074fi
d7040cdb 4075
1b9750d6
NC
4076EGREP="$ac_cv_path_EGREP"
4077if test -z "$EGREP"; then
4078 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4079echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4080 { (exit 1); exit 1; }; }
4081fi
4082
4083else
4084 ac_cv_path_EGREP=$EGREP
4085fi
d7040cdb
SE
4086
4087
1b9750d6
NC
4088 fi
4089fi
4090{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4091echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4092 EGREP="$ac_cv_path_EGREP"
d7040cdb
SE
4093
4094
1b9750d6
NC
4095{ echo "$as_me:$LINENO: checking for fgrep" >&5
4096echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4097if test "${ac_cv_path_FGREP+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4099else
4100 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4101 then ac_cv_path_FGREP="$GREP -F"
4102 else
4103 # Extract the first word of "fgrep" to use in msg output
4104if test -z "$FGREP"; then
4105set dummy fgrep; ac_prog_name=$2
4106if test "${ac_cv_path_FGREP+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4108else
4109 ac_path_FGREP_found=false
4110# Loop through the user's path and test for each of PROGNAME-LIST
4111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4113do
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 for ac_prog in fgrep; do
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4119 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4120 # Check for GNU ac_path_FGREP and select it if it is found.
4121 # Check for GNU $ac_path_FGREP
4122case `"$ac_path_FGREP" --version 2>&1` in
4123*GNU*)
4124 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4125*)
4126 ac_count=0
4127 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4128 while :
4129 do
4130 cat "conftest.in" "conftest.in" >"conftest.tmp"
4131 mv "conftest.tmp" "conftest.in"
4132 cp "conftest.in" "conftest.nl"
4133 echo 'FGREP' >> "conftest.nl"
4134 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4135 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4136 ac_count=`expr $ac_count + 1`
4137 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4138 # Best one so far, save it but keep looking for a better one
4139 ac_cv_path_FGREP="$ac_path_FGREP"
4140 ac_path_FGREP_max=$ac_count
4141 fi
4142 # 10*(2^10) chars as input seems more than enough
4143 test $ac_count -gt 10 && break
4144 done
4145 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4146esac
d7040cdb
SE
4147
4148
1b9750d6
NC
4149 $ac_path_FGREP_found && break 3
4150 done
4151done
d7040cdb 4152
1b9750d6
NC
4153done
4154IFS=$as_save_IFS
d7040cdb
SE
4155
4156
1b9750d6 4157fi
d7040cdb 4158
1b9750d6
NC
4159FGREP="$ac_cv_path_FGREP"
4160if test -z "$FGREP"; then
4161 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4162echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4163 { (exit 1); exit 1; }; }
4164fi
d7040cdb 4165
d7040cdb 4166else
1b9750d6 4167 ac_cv_path_FGREP=$FGREP
d7040cdb 4168fi
d7040cdb
SE
4169
4170
1b9750d6 4171 fi
d7040cdb 4172fi
1b9750d6
NC
4173{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4174echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4175 FGREP="$ac_cv_path_FGREP"
d7040cdb
SE
4176
4177
4178test -z "$GREP" && GREP=grep
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
1b9750d6 4198# Check whether --with-gnu-ld was given.
252b5132 4199if test "${with_gnu_ld+set}" = set; then
1b9750d6 4200 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
252b5132
RH
4201else
4202 with_gnu_ld=no
1b9750d6
NC
4203fi
4204
252b5132 4205ac_prog=ld
6be7c12c 4206if test "$GCC" = yes; then
252b5132 4207 # Check if gcc -print-prog-name=ld gives a path.
1b9750d6
NC
4208 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4209echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
ac48eca1
AO
4210 case $host in
4211 *-*-mingw*)
4212 # gcc leaves a trailing carriage return which upsets mingw
4213 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4214 *)
4215 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4216 esac
6be7c12c 4217 case $ac_prog in
252b5132 4218 # Accept absolute paths.
d7040cdb 4219 [\\/]* | ?:[\\/]*)
252b5132 4220 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
4221 # Canonicalize the pathname of ld
4222 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4223 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4224 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
252b5132
RH
4225 done
4226 test -z "$LD" && LD="$ac_prog"
4227 ;;
4228 "")
4229 # If it fails, then pretend we aren't using GCC.
4230 ac_prog=ld
4231 ;;
4232 *)
4233 # If it is relative, then search for the first ld in PATH.
4234 with_gnu_ld=unknown
4235 ;;
4236 esac
4237elif test "$with_gnu_ld" = yes; then
1b9750d6
NC
4238 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4239echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
252b5132 4240else
1b9750d6
NC
4241 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4242echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
252b5132 4243fi
6bf9431b
BE
4244if test "${lt_cv_path_LD+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4246else
4247 if test -z "$LD"; then
d7040cdb 4248 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
252b5132 4249 for ac_dir in $PATH; do
d7040cdb 4250 IFS="$lt_save_ifs"
252b5132 4251 test -z "$ac_dir" && ac_dir=.
5af11cab 4252 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6be7c12c 4253 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132 4254 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 4255 # but apparently some variants of GNU ld only accept -v.
252b5132 4256 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
4257 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4258 *GNU* | *'with BFD'*)
252b5132 4259 test "$with_gnu_ld" != no && break
d7040cdb
SE
4260 ;;
4261 *)
252b5132 4262 test "$with_gnu_ld" != yes && break
d7040cdb
SE
4263 ;;
4264 esac
252b5132
RH
4265 fi
4266 done
d7040cdb 4267 IFS="$lt_save_ifs"
252b5132 4268else
6be7c12c 4269 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
4270fi
4271fi
4272
6be7c12c 4273LD="$lt_cv_path_LD"
252b5132 4274if test -n "$LD"; then
1b9750d6
NC
4275 { echo "$as_me:$LINENO: result: $LD" >&5
4276echo "${ECHO_T}$LD" >&6; }
252b5132 4277else
1b9750d6
NC
4278 { echo "$as_me:$LINENO: result: no" >&5
4279echo "${ECHO_T}no" >&6; }
252b5132 4280fi
6bf9431b
BE
4281test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4282echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4283 { (exit 1); exit 1; }; }
1b9750d6
NC
4284{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4285echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6bf9431b
BE
4286if test "${lt_cv_prog_gnu_ld+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4288else
d7040cdb
SE
4289 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4290case `$LD -v 2>&1 </dev/null` in
4291*GNU* | *'with BFD'*)
6be7c12c 4292 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
4293 ;;
4294*)
6be7c12c 4295 lt_cv_prog_gnu_ld=no
d7040cdb
SE
4296 ;;
4297esac
252b5132 4298fi
1b9750d6
NC
4299{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4300echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6be7c12c 4301with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132
RH
4302
4303
ac48eca1 4304
d7040cdb
SE
4305
4306
4307
4308
4309
4310
4311
1b9750d6
NC
4312{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4313echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
6bf9431b
BE
4314if test "${lt_cv_path_NM+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4316else
4317 if test -n "$NM"; then
4318 # Let the user override the test.
6be7c12c 4319 lt_cv_path_NM="$NM"
252b5132 4320else
d7040cdb
SE
4321 lt_nm_to_check="${ac_tool_prefix}nm"
4322 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4323 lt_nm_to_check="$lt_nm_to_check nm"
4324 fi
4325 for lt_tmp_nm in $lt_nm_to_check; do
4326 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4327 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4328 IFS="$lt_save_ifs"
4329 test -z "$ac_dir" && ac_dir=.
4330 tmp_nm="$ac_dir/$lt_tmp_nm"
4331 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4332 # Check to see if the nm accepts a BSD-compat flag.
4333 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4334 # nm: unknown option "B" ignored
4335 # Tru64's nm complains that /dev/null is an invalid object file
4336 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4337 */dev/null* | *'Invalid file or object type'*)
4338 lt_cv_path_NM="$tmp_nm -B"
4339 break
4340 ;;
4341 *)
4342 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4343 */dev/null*)
4344 lt_cv_path_NM="$tmp_nm -p"
4345 break
4346 ;;
4347 *)
4348 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4349 continue # so that we can try to find one that supports BSD flags
4350 ;;
4351 esac
4352 ;;
4353 esac
252b5132 4354 fi
d7040cdb
SE
4355 done
4356 IFS="$lt_save_ifs"
252b5132 4357 done
d7040cdb 4358 : ${lt_cv_path_NM=no}
252b5132
RH
4359fi
4360fi
1b9750d6
NC
4361{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4362echo "${ECHO_T}$lt_cv_path_NM" >&6; }
d7040cdb
SE
4363if test "$lt_cv_path_NM" != "no"; then
4364 NM="$lt_cv_path_NM"
252b5132 4365else
d7040cdb
SE
4366 # Didn't find any BSD compatible name lister, look for dumpbin.
4367 if test -n "$ac_tool_prefix"; then
4368 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4369 do
4370 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4371set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1b9750d6
NC
4372{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7040cdb
SE
4374if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4376else
d7040cdb
SE
4377 if test -n "$DUMPBIN"; then
4378 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4379else
4380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381for as_dir in $PATH
4382do
4383 IFS=$as_save_IFS
4384 test -z "$as_dir" && as_dir=.
4385 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 4386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb
SE
4387 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 break 2
4390 fi
4391done
4392done
1b9750d6 4393IFS=$as_save_IFS
ac48eca1 4394
d7040cdb
SE
4395fi
4396fi
4397DUMPBIN=$ac_cv_prog_DUMPBIN
4398if test -n "$DUMPBIN"; then
1b9750d6
NC
4399 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4400echo "${ECHO_T}$DUMPBIN" >&6; }
d7040cdb 4401else
1b9750d6
NC
4402 { echo "$as_me:$LINENO: result: no" >&5
4403echo "${ECHO_T}no" >&6; }
d7040cdb 4404fi
6be7c12c 4405
1b9750d6 4406
d7040cdb
SE
4407 test -n "$DUMPBIN" && break
4408 done
4409fi
4410if test -z "$DUMPBIN"; then
4411 ac_ct_DUMPBIN=$DUMPBIN
4412 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4413do
4414 # Extract the first word of "$ac_prog", so it can be a program name with args.
4415set dummy $ac_prog; ac_word=$2
1b9750d6
NC
4416{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7040cdb
SE
4418if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4420else
4421 if test -n "$ac_ct_DUMPBIN"; then
4422 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4423else
4424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425for as_dir in $PATH
4426do
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 4430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb
SE
4431 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 break 2
ac48eca1 4434 fi
d7040cdb
SE
4435done
4436done
1b9750d6 4437IFS=$as_save_IFS
ac48eca1 4438
d7040cdb
SE
4439fi
4440fi
4441ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4442if test -n "$ac_ct_DUMPBIN"; then
1b9750d6
NC
4443 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4444echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
d7040cdb 4445else
1b9750d6
NC
4446 { echo "$as_me:$LINENO: result: no" >&5
4447echo "${ECHO_T}no" >&6; }
d7040cdb 4448fi
ac48eca1 4449
1b9750d6 4450
d7040cdb
SE
4451 test -n "$ac_ct_DUMPBIN" && break
4452done
ac48eca1 4453
1b9750d6
NC
4454 if test "x$ac_ct_DUMPBIN" = x; then
4455 DUMPBIN=":"
4456 else
4457 case $cross_compiling:$ac_tool_warned in
4458yes:)
4459{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4460whose name does not start with the host triplet. If you think this
4461configuration is useful to you, please write to autoconf@gnu.org." >&5
4462echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4463whose name does not start with the host triplet. If you think this
4464configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4465ac_tool_warned=yes ;;
4466esac
4467 DUMPBIN=$ac_ct_DUMPBIN
4468 fi
d7040cdb 4469fi
ac48eca1 4470
ac48eca1 4471
d7040cdb
SE
4472 if test "$DUMPBIN" != ":"; then
4473 NM="$DUMPBIN"
ac48eca1 4474 fi
d7040cdb
SE
4475fi
4476test -z "$NM" && NM=nm
6be7c12c 4477
ac48eca1 4478
ac48eca1 4479
ac48eca1 4480
6be7c12c 4481
ac48eca1 4482
1b9750d6
NC
4483{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4484echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
d7040cdb
SE
4485if test "${lt_cv_nm_interface+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4487else
4488 lt_cv_nm_interface="BSD nm"
4489 echo "int some_variable = 0;" > conftest.$ac_ext
1b9750d6 4490 (eval echo "\"\$as_me:4490: $ac_compile\"" >&5)
d7040cdb
SE
4491 (eval "$ac_compile" 2>conftest.err)
4492 cat conftest.err >&5
1b9750d6 4493 (eval echo "\"\$as_me:4493: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
4494 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4495 cat conftest.err >&5
1b9750d6 4496 (eval echo "\"\$as_me:4496: output\"" >&5)
d7040cdb
SE
4497 cat conftest.out >&5
4498 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4499 lt_cv_nm_interface="MS dumpbin"
4500 fi
4501 rm -f conftest*
ac48eca1 4502fi
1b9750d6
NC
4503{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4504echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
ac48eca1 4505
1b9750d6
NC
4506{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4507echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d7040cdb
SE
4508LN_S=$as_ln_s
4509if test "$LN_S" = "ln -s"; then
1b9750d6
NC
4510 { echo "$as_me:$LINENO: result: yes" >&5
4511echo "${ECHO_T}yes" >&6; }
d7040cdb 4512else
1b9750d6
NC
4513 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4514echo "${ECHO_T}no, using $LN_S" >&6; }
d7040cdb 4515fi
ac48eca1 4516
108a6f8e 4517# find the maximum length of command line arguments
1b9750d6
NC
4518{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4519echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
108a6f8e
CD
4520if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522else
4523 i=0
4524 teststring="ABCD"
4525
4526 case $build_os in
4527 msdosdjgpp*)
4528 # On DJGPP, this test can blow up pretty badly due to problems in libc
4529 # (any single argument exceeding 2000 bytes causes a buffer overrun
4530 # during glob expansion). Even if it were fixed, the result of this
4531 # check would be larger than it should be.
4532 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4533 ;;
4534
d7040cdb
SE
4535 gnu*)
4536 # Under GNU Hurd, this test is not required because there is
4537 # no limit to the length of command line arguments.
4538 # Libtool will interpret -1 as no limit whatsoever
4539 lt_cv_sys_max_cmd_len=-1;
4540 ;;
4541
108a6f8e
CD
4542 cygwin* | mingw*)
4543 # On Win9x/ME, this test blows up -- it succeeds, but takes
4544 # about 5 minutes as the teststring grows exponentially.
4545 # Worse, since 9x/ME are not pre-emptively multitasking,
4546 # you end up with a "frozen" computer, even though with patience
4547 # the test eventually succeeds (with a max line length of 256k).
4548 # Instead, let's just punt: use the minimum linelength reported by
4549 # all of the supported platforms: 8192 (on NT/2K/XP).
4550 lt_cv_sys_max_cmd_len=8192;
4551 ;;
4552
4553 amigaos*)
4554 # On AmigaOS with pdksh, this test takes hours, literally.
4555 # So we just punt and use a minimum line length of 8192.
4556 lt_cv_sys_max_cmd_len=8192;
4557 ;;
4558
4559 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4560 # This has been around since 386BSD, at least. Likely further.
4561 if test -x /sbin/sysctl; then
4562 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4563 elif test -x /usr/sbin/sysctl; then
4564 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4565 else
d7040cdb 4566 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
108a6f8e
CD
4567 fi
4568 # And add a safety zone
4569 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4570 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4571 ;;
d7040cdb
SE
4572
4573 interix*)
4574 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4575 lt_cv_sys_max_cmd_len=196608
4576 ;;
4577
4578 osf*)
4579 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4580 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4581 # nice to cause kernel panics so lets avoid the loop below.
4582 # First set a reasonable default.
4583 lt_cv_sys_max_cmd_len=16384
4584 #
4585 if test -x /sbin/sysconfig; then
4586 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4587 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4588 esac
4589 fi
4590 ;;
4591 sco3.2v5*)
4592 lt_cv_sys_max_cmd_len=102400
4593 ;;
4594 sysv5* | sco5v6* | sysv4.2uw2*)
4595 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4596 if test -n "$kargmax"; then
4597 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4598 else
4599 lt_cv_sys_max_cmd_len=32768
4600 fi
4601 ;;
4602 *)
79887925
L
4603 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4604 if test -n $lt_cv_sys_max_cmd_len; then
4605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4607 else
4608 # Make teststring a little bigger before we do anything with it.
4609 # a 1K string should be a reasonable start.
4610 for i in 1 2 3 4 5 6 7 8 ; do
4611 teststring=$teststring$teststring
4612 done
4613 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4614 # If test is not a shell built-in, we'll probably end up computing a
4615 # maximum length that is only half of the actual maximum length, but
4616 # we can't tell.
4617 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4618 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4619 test $i != 17 # 1/2 MB should be enough
4620 do
4621 i=`expr $i + 1`
4622 teststring=$teststring$teststring
4623 done
4624 # Only check the string length outside the loop.
4625 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4626 teststring=
4627 # Add a significant safety factor because C++ compilers can tack on
4628 # massive amounts of additional arguments before passing them to the
4629 # linker. It appears as though 1/2 is a usable value.
4630 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4631 fi
d7040cdb 4632 ;;
108a6f8e
CD
4633 esac
4634
4635fi
4636
d7040cdb 4637if test -n $lt_cv_sys_max_cmd_len ; then
1b9750d6
NC
4638 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4639echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
108a6f8e 4640else
1b9750d6
NC
4641 { echo "$as_me:$LINENO: result: none" >&5
4642echo "${ECHO_T}none" >&6; }
108a6f8e 4643fi
d7040cdb 4644max_cmd_len=$lt_cv_sys_max_cmd_len
108a6f8e
CD
4645
4646
ac48eca1 4647
ac48eca1 4648
ac48eca1 4649
d7040cdb
SE
4650
4651
4652: ${CP="cp -f"}
4653: ${MV="mv -f"}
4654: ${RM="rm -f"}
4655
1b9750d6
NC
4656{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4657echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
d7040cdb
SE
4658# Try some XSI features
4659xsi_shell=no
4660( _lt_dummy="a/b/c"
4661 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4662 = c,a/b,, ) >/dev/null 2>&1 \
4663 && xsi_shell=yes
1b9750d6
NC
4664{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
4665echo "${ECHO_T}$xsi_shell" >&6; }
d7040cdb
SE
4666
4667
1b9750d6
NC
4668{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4669echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
d7040cdb
SE
4670lt_shell_append=no
4671( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4672 >/dev/null 2>&1 \
4673 && lt_shell_append=yes
1b9750d6
NC
4674{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4675echo "${ECHO_T}$lt_shell_append" >&6; }
d7040cdb
SE
4676
4677
4678if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4679 lt_unset=unset
ac48eca1 4680else
d7040cdb 4681 lt_unset=false
ac48eca1
AO
4682fi
4683
d7040cdb
SE
4684
4685
4686
4687
4688# test EBCDIC or ASCII
4689case `echo X|tr X '\101'` in
4690 A) # ASCII based system
4691 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4692 lt_SP2NL='tr \040 \012'
4693 lt_NL2SP='tr \015\012 \040\040'
4694 ;;
4695 *) # EBCDIC based system
4696 lt_SP2NL='tr \100 \n'
4697 lt_NL2SP='tr \r\n \100\100'
4698 ;;
4699esac
4700
4701
4702
4703
4704
4705
4706
4707
4708
1b9750d6
NC
4709{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4710echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
d7040cdb 4711if test "${lt_cv_ld_reload_flag+set}" = set; then
6bf9431b 4712 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4713else
d7040cdb
SE
4714 lt_cv_ld_reload_flag='-r'
4715fi
1b9750d6
NC
4716{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4717echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
d7040cdb
SE
4718reload_flag=$lt_cv_ld_reload_flag
4719case $reload_flag in
4720"" | " "*) ;;
4721*) reload_flag=" $reload_flag" ;;
4722esac
4723reload_cmds='$LD$reload_flag -o $output$reload_objs'
4724case $host_os in
4725 darwin*)
4726 if test "$GCC" = yes; then
4727 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4728 else
4729 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4730 fi
4731 ;;
4732esac
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
1b9750d6
NC
4743{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4744echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
d7040cdb
SE
4745if test "${lt_cv_deplibs_check_method+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747else
4748 lt_cv_file_magic_cmd='$MAGIC_CMD'
4749lt_cv_file_magic_test_file=
4750lt_cv_deplibs_check_method='unknown'
4751# Need to set the preceding variable on all platforms that support
4752# interlibrary dependencies.
4753# 'none' -- dependencies not supported.
4754# `unknown' -- same as none, but documents that we really don't know.
4755# 'pass_all' -- all dependencies passed with no checks.
4756# 'test_compile' -- check by making test program.
4757# 'file_magic [[regex]]' -- check by looking for files in library path
4758# which responds to the $file_magic_cmd with a given extended regex.
4759# If you have `file' or equivalent on your system and you're not sure
4760# whether `pass_all' will *always* work, you probably want this one.
4761
4762case $host_os in
4763aix4* | aix5*)
4764 lt_cv_deplibs_check_method=pass_all
4765 ;;
4766
4767beos*)
4768 lt_cv_deplibs_check_method=pass_all
ac48eca1 4769 ;;
d7040cdb
SE
4770
4771bsdi[45]*)
4772 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4773 lt_cv_file_magic_cmd='/usr/bin/file -L'
4774 lt_cv_file_magic_test_file=/shlib/libc.so
4775 ;;
4776
4777cygwin*)
4778 # func_win32_libid is a shell function defined in ltmain.sh
4779 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4780 lt_cv_file_magic_cmd='func_win32_libid'
4781 ;;
4782
4783mingw* | pw32*)
4784 # Base MSYS/MinGW do not provide the 'file' command needed by
4785 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4786 # unless we find 'file', for example because we are cross-compiling.
4787 if ( file / ) >/dev/null 2>&1; then
4788 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4789 lt_cv_file_magic_cmd='func_win32_libid'
4790 else
4791 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4792 lt_cv_file_magic_cmd='$OBJDUMP -f'
4793 fi
4794 ;;
4795
4796darwin* | rhapsody*)
4797 lt_cv_deplibs_check_method=pass_all
4798 ;;
4799
4800freebsd* | dragonfly*)
4801 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4802 case $host_cpu in
4803 i*86 )
4804 # Not sure whether the presence of OpenBSD here was a mistake.
4805 # Let's accept both of them until this is cleared up.
4806 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4807 lt_cv_file_magic_cmd=/usr/bin/file
4808 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4809 ;;
4810 esac
4811 else
4812 lt_cv_deplibs_check_method=pass_all
4813 fi
4814 ;;
4815
4816gnu*)
4817 lt_cv_deplibs_check_method=pass_all
ac48eca1 4818 ;;
d7040cdb
SE
4819
4820hpux10.20* | hpux11*)
4821 lt_cv_file_magic_cmd=/usr/bin/file
4822 case $host_cpu in
4823 ia64*)
4824 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4825 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4826 ;;
4827 hppa*64*)
4828 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]'
4829 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4830 ;;
ac48eca1 4831 *)
d7040cdb
SE
4832 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4833 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4834 ;;
4835 esac
4836 ;;
ac48eca1 4837
d7040cdb
SE
4838interix[3-9]*)
4839 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4840 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4841 ;;
ac48eca1 4842
d7040cdb
SE
4843irix5* | irix6* | nonstopux*)
4844 case $LD in
4845 *-32|*"-32 ") libmagic=32-bit;;
4846 *-n32|*"-n32 ") libmagic=N32;;
4847 *-64|*"-64 ") libmagic=64-bit;;
4848 *) libmagic=never-match;;
4849 esac
4850 lt_cv_deplibs_check_method=pass_all
ac48eca1 4851 ;;
ac48eca1 4852
d7040cdb
SE
4853# This must be Linux ELF.
4854linux* | k*bsd*-gnu)
4855 lt_cv_deplibs_check_method=pass_all
4856 ;;
ac48eca1 4857
d7040cdb
SE
4858netbsd*)
4859 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4860 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ac48eca1 4861 else
d7040cdb 4862 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
ac48eca1 4863 fi
d7040cdb
SE
4864 ;;
4865
4866newos6*)
4867 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4868 lt_cv_file_magic_cmd=/usr/bin/file
4869 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4870 ;;
4871
4872*nto* | *qnx*)
4873 lt_cv_deplibs_check_method=pass_all
4874 ;;
252b5132 4875
d7040cdb
SE
4876openbsd*)
4877 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4879 else
4880 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ac48eca1
AO
4881 fi
4882 ;;
d7040cdb
SE
4883
4884osf3* | osf4* | osf5*)
4885 lt_cv_deplibs_check_method=pass_all
4886 ;;
4887
4888rdos*)
4889 lt_cv_deplibs_check_method=pass_all
4890 ;;
4891
4892solaris*)
4893 lt_cv_deplibs_check_method=pass_all
4894 ;;
4895
4896sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4897 lt_cv_deplibs_check_method=pass_all
4898 ;;
4899
4900sysv4 | sysv4.3*)
4901 case $host_vendor in
4902 motorola)
4903 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]'
4904 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4905 ;;
4906 ncr)
4907 lt_cv_deplibs_check_method=pass_all
4908 ;;
4909 sequent)
4910 lt_cv_file_magic_cmd='/bin/file'
4911 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4912 ;;
4913 sni)
4914 lt_cv_file_magic_cmd='/bin/file'
4915 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4916 lt_cv_file_magic_test_file=/lib/libc.so
4917 ;;
4918 siemens)
4919 lt_cv_deplibs_check_method=pass_all
4920 ;;
4921 pc)
4922 lt_cv_deplibs_check_method=pass_all
4923 ;;
4924 esac
4925 ;;
4926
4927tpf*)
4928 lt_cv_deplibs_check_method=pass_all
4929 ;;
5af11cab 4930esac
252b5132 4931
d7040cdb 4932fi
1b9750d6
NC
4933{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4934echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
d7040cdb
SE
4935file_magic_cmd=$lt_cv_file_magic_cmd
4936deplibs_check_method=$lt_cv_deplibs_check_method
4937test -z "$deplibs_check_method" && deplibs_check_method=unknown
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
6bf9431b 4950if test -n "$ac_tool_prefix"; then
d7040cdb
SE
4951 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4952set dummy ${ac_tool_prefix}ar; ac_word=$2
1b9750d6
NC
4953{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7040cdb 4955if test "${ac_cv_prog_AR+set}" = set; then
6bf9431b 4956 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4957else
d7040cdb
SE
4958 if test -n "$AR"; then
4959 ac_cv_prog_AR="$AR" # Let the user override the test.
ac48eca1 4960else
6bf9431b
BE
4961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962for as_dir in $PATH
4963do
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 4967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 4968 ac_cv_prog_AR="${ac_tool_prefix}ar"
6bf9431b
BE
4969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4971 fi
4972done
4973done
1b9750d6 4974IFS=$as_save_IFS
6bf9431b 4975
ac48eca1
AO
4976fi
4977fi
d7040cdb
SE
4978AR=$ac_cv_prog_AR
4979if test -n "$AR"; then
1b9750d6
NC
4980 { echo "$as_me:$LINENO: result: $AR" >&5
4981echo "${ECHO_T}$AR" >&6; }
ac48eca1 4982else
1b9750d6
NC
4983 { echo "$as_me:$LINENO: result: no" >&5
4984echo "${ECHO_T}no" >&6; }
ac48eca1
AO
4985fi
4986
1b9750d6 4987
6bf9431b 4988fi
d7040cdb
SE
4989if test -z "$ac_cv_prog_AR"; then
4990 ac_ct_AR=$AR
4991 # Extract the first word of "ar", so it can be a program name with args.
4992set dummy ar; ac_word=$2
1b9750d6
NC
4993{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7040cdb 4995if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6bf9431b 4996 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4997else
d7040cdb
SE
4998 if test -n "$ac_ct_AR"; then
4999 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
ac48eca1 5000else
6bf9431b
BE
5001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002for as_dir in $PATH
5003do
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 5007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 5008 ac_cv_prog_ac_ct_AR="ar"
6bf9431b
BE
5009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 break 2
5011 fi
5012done
5013done
1b9750d6 5014IFS=$as_save_IFS
6bf9431b 5015
ac48eca1
AO
5016fi
5017fi
d7040cdb
SE
5018ac_ct_AR=$ac_cv_prog_ac_ct_AR
5019if test -n "$ac_ct_AR"; then
1b9750d6
NC
5020 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5021echo "${ECHO_T}$ac_ct_AR" >&6; }
ac48eca1 5022else
1b9750d6
NC
5023 { echo "$as_me:$LINENO: result: no" >&5
5024echo "${ECHO_T}no" >&6; }
ac48eca1
AO
5025fi
5026
1b9750d6
NC
5027 if test "x$ac_ct_AR" = x; then
5028 AR="false"
5029 else
5030 case $cross_compiling:$ac_tool_warned in
5031yes:)
5032{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5033whose name does not start with the host triplet. If you think this
5034configuration is useful to you, please write to autoconf@gnu.org." >&5
5035echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5036whose name does not start with the host triplet. If you think this
5037configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5038ac_tool_warned=yes ;;
5039esac
5040 AR=$ac_ct_AR
5041 fi
ac48eca1 5042else
d7040cdb 5043 AR="$ac_cv_prog_AR"
ac48eca1
AO
5044fi
5045
d7040cdb
SE
5046test -z "$AR" && AR=ar
5047test -z "$AR_FLAGS" && AR_FLAGS=cru
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
6bf9431b
BE
5059if test -n "$ac_tool_prefix"; then
5060 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 5061set dummy ${ac_tool_prefix}strip; ac_word=$2
1b9750d6
NC
5062{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6bf9431b
BE
5064if test "${ac_cv_prog_STRIP+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
5066else
5067 if test -n "$STRIP"; then
5068 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5069else
6bf9431b
BE
5070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071for as_dir in $PATH
5072do
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b
BE
5077 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5080 fi
5081done
5082done
1b9750d6 5083IFS=$as_save_IFS
6bf9431b 5084
ac48eca1
AO
5085fi
5086fi
6bf9431b 5087STRIP=$ac_cv_prog_STRIP
ac48eca1 5088if test -n "$STRIP"; then
1b9750d6
NC
5089 { echo "$as_me:$LINENO: result: $STRIP" >&5
5090echo "${ECHO_T}$STRIP" >&6; }
ac48eca1 5091else
1b9750d6
NC
5092 { echo "$as_me:$LINENO: result: no" >&5
5093echo "${ECHO_T}no" >&6; }
ac48eca1
AO
5094fi
5095
1b9750d6 5096
6bf9431b 5097fi
ac48eca1 5098if test -z "$ac_cv_prog_STRIP"; then
6bf9431b 5099 ac_ct_STRIP=$STRIP
ac48eca1
AO
5100 # Extract the first word of "strip", so it can be a program name with args.
5101set dummy strip; ac_word=$2
1b9750d6
NC
5102{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6bf9431b
BE
5104if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5106else
6bf9431b
BE
5107 if test -n "$ac_ct_STRIP"; then
5108 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 5109else
6bf9431b
BE
5110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111for as_dir in $PATH
5112do
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bf9431b
BE
5117 ac_cv_prog_ac_ct_STRIP="strip"
5118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 break 2
5120 fi
5121done
5122done
1b9750d6 5123IFS=$as_save_IFS
6bf9431b 5124
ac48eca1
AO
5125fi
5126fi
6bf9431b
BE
5127ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5128if test -n "$ac_ct_STRIP"; then
1b9750d6
NC
5129 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5130echo "${ECHO_T}$ac_ct_STRIP" >&6; }
ac48eca1 5131else
1b9750d6
NC
5132 { echo "$as_me:$LINENO: result: no" >&5
5133echo "${ECHO_T}no" >&6; }
ac48eca1
AO
5134fi
5135
1b9750d6
NC
5136 if test "x$ac_ct_STRIP" = x; then
5137 STRIP=":"
5138 else
5139 case $cross_compiling:$ac_tool_warned in
5140yes:)
5141{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5142whose name does not start with the host triplet. If you think this
5143configuration is useful to you, please write to autoconf@gnu.org." >&5
5144echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5145whose name does not start with the host triplet. If you think this
5146configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5147ac_tool_warned=yes ;;
5148esac
5149 STRIP=$ac_ct_STRIP
5150 fi
ac48eca1 5151else
6bf9431b 5152 STRIP="$ac_cv_prog_STRIP"
ac48eca1
AO
5153fi
5154
d7040cdb 5155test -z "$STRIP" && STRIP=:
ac48eca1 5156
252b5132 5157
5af11cab 5158
5af11cab 5159
5af11cab 5160
6bf9431b 5161
6bf9431b 5162if test -n "$ac_tool_prefix"; then
d7040cdb
SE
5163 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5164set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1b9750d6
NC
5165{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7040cdb 5167if test "${ac_cv_prog_RANLIB+set}" = set; then
6bf9431b
BE
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5169else
d7040cdb
SE
5170 if test -n "$RANLIB"; then
5171 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6bf9431b
BE
5172else
5173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174for as_dir in $PATH
5175do
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 5179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 5180 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6bf9431b
BE
5181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5183 fi
5184done
5185done
1b9750d6 5186IFS=$as_save_IFS
6bf9431b
BE
5187
5188fi
5189fi
d7040cdb
SE
5190RANLIB=$ac_cv_prog_RANLIB
5191if test -n "$RANLIB"; then
1b9750d6
NC
5192 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5193echo "${ECHO_T}$RANLIB" >&6; }
6bf9431b 5194else
1b9750d6
NC
5195 { echo "$as_me:$LINENO: result: no" >&5
5196echo "${ECHO_T}no" >&6; }
6bf9431b
BE
5197fi
5198
1b9750d6 5199
6bf9431b 5200fi
d7040cdb
SE
5201if test -z "$ac_cv_prog_RANLIB"; then
5202 ac_ct_RANLIB=$RANLIB
5203 # Extract the first word of "ranlib", so it can be a program name with args.
5204set dummy ranlib; ac_word=$2
1b9750d6
NC
5205{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7040cdb 5207if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6bf9431b
BE
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209else
d7040cdb
SE
5210 if test -n "$ac_ct_RANLIB"; then
5211 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6bf9431b
BE
5212else
5213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214for as_dir in $PATH
5215do
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 5220 ac_cv_prog_ac_ct_RANLIB="ranlib"
6bf9431b
BE
5221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5223 fi
5224done
5225done
1b9750d6 5226IFS=$as_save_IFS
6bf9431b
BE
5227
5228fi
5229fi
d7040cdb
SE
5230ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5231if test -n "$ac_ct_RANLIB"; then
1b9750d6
NC
5232 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5233echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6bf9431b 5234else
1b9750d6
NC
5235 { echo "$as_me:$LINENO: result: no" >&5
5236echo "${ECHO_T}no" >&6; }
6bf9431b
BE
5237fi
5238
1b9750d6
NC
5239 if test "x$ac_ct_RANLIB" = x; then
5240 RANLIB=":"
5241 else
5242 case $cross_compiling:$ac_tool_warned in
5243yes:)
5244{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5245whose name does not start with the host triplet. If you think this
5246configuration is useful to you, please write to autoconf@gnu.org." >&5
5247echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5248whose name does not start with the host triplet. If you think this
5249configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5250ac_tool_warned=yes ;;
5251esac
5252 RANLIB=$ac_ct_RANLIB
5253 fi
6bf9431b 5254else
d7040cdb 5255 RANLIB="$ac_cv_prog_RANLIB"
6bf9431b
BE
5256fi
5257
d7040cdb 5258test -z "$RANLIB" && RANLIB=:
6bf9431b 5259
6bf9431b 5260
6bf9431b 5261
6bf9431b 5262
252b5132 5263
6bf9431b 5264
d7040cdb
SE
5265# Determine commands to create old-style static archives.
5266old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5267old_postinstall_cmds='chmod 644 $oldlib'
5268old_postuninstall_cmds=
252b5132 5269
d7040cdb
SE
5270if test -n "$RANLIB"; then
5271 case $host_os in
5272 openbsd*)
5273 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5274 ;;
5275 *)
5276 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5277 ;;
5278 esac
5279 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6bf9431b 5280fi
6bf9431b 5281
252b5132 5282
6bf9431b 5283
252b5132 5284
252b5132 5285
6bf9431b 5286
6bf9431b
BE
5287
5288
6bf9431b 5289
d7040cdb
SE
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315# If no C compiler was specified, use CC.
5316LTCC=${LTCC-"$CC"}
5317
5318# If no C compiler flags were specified, use CFLAGS.
5319LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5320
5321# Allow CC to be a program name with arguments.
5322compiler=$CC
5323
5324
5325# Check for command to grab the raw symbol name followed by C symbol from nm.
1b9750d6
NC
5326{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5327echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
d7040cdb
SE
5328if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5330else
5331
5332# These are sane defaults that work on at least a few old systems.
5333# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5334
5335# Character class describing NM global symbol codes.
5336symcode='[BCDEGRST]'
5337
5338# Regexp to match symbols that can be accessed directly from C.
5339sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5340
5341# Define system-specific variables.
5342case $host_os in
5343aix*)
5344 symcode='[BCDT]'
5345 ;;
5346cygwin* | mingw* | pw32*)
5347 symcode='[ABCDGISTW]'
5348 ;;
5349hpux*)
5350 if test "$host_cpu" = ia64; then
5351 symcode='[ABCDEGRST]'
5352 fi
5353 ;;
5354irix* | nonstopux*)
5355 symcode='[BCDEGRST]'
5356 ;;
5357osf*)
5358 symcode='[BCDEGQRST]'
5359 ;;
5360solaris*)
5361 symcode='[BDRT]'
5362 ;;
5363sco3.2v5*)
5364 symcode='[DT]'
5365 ;;
5366sysv4.2uw2*)
5367 symcode='[DT]'
5368 ;;
5369sysv5* | sco5v6* | unixware* | OpenUNIX*)
5370 symcode='[ABDT]'
5371 ;;
5372sysv4)
5373 symcode='[DFNSTU]'
5374 ;;
5375esac
5376
5377# If we're using GNU nm, then use its standard symbol codes.
5378case `$NM -V 2>&1` in
5379*GNU* | *'with BFD'*)
5380 symcode='[ABCDGIRSTW]' ;;
5381esac
5382
5383# Transform an extracted symbol line into a proper C declaration.
5384# Some systems (esp. on ia64) link data and code symbols differently,
5385# so use this general approach.
5386lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5387
5388# Transform an extracted symbol line into symbol name and symbol address
5389lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5390
5391# Handle CRLF in mingw tool chain
5392opt_cr=
5393case $build_os in
5394mingw*)
5395 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5396 ;;
5397esac
5398
5399# Try without a prefix underscore, then with it.
5400for ac_symprfx in "" "_"; do
5401
5402 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5403 symxfrm="\\1 $ac_symprfx\\2 \\2"
5404
5405 # Write the raw and C identifiers.
5406 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5407 # Fake it for dumpbin and say T for any non-static function
5408 # and D for any global variable.
5409 # Also find C++ and __fastcall symbols from MSVC++,
5410 # which start with @ or ?.
5411 lt_cv_sys_global_symbol_pipe="$AWK '"\
5412" {last_section=section; section=\$ 3};"\
5413" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5414" \$ 0!~/External *\|/{next};"\
5415" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5416" {if(hide[section]) next};"\
5417" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5418" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5419" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5420" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5421" ' prfx=^$ac_symprfx"
5422 else
5423 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5424 fi
5425
5426 # Check to see that the pipe works correctly.
5427 pipe_works=no
5428
5429 rm -f conftest*
5430 cat > conftest.$ac_ext <<_LT_EOF
5431#ifdef __cplusplus
5432extern "C" {
5433#endif
5434char nm_test_var;
5435void nm_test_func(void);
5436void nm_test_func(void){}
5437#ifdef __cplusplus
5438}
5439#endif
5440int main(){nm_test_var='a';nm_test_func();return(0);}
5441_LT_EOF
5442
5443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5444 (eval $ac_compile) 2>&5
6bf9431b
BE
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5447 (exit $ac_status); }; then
5448 # Now try to grab the symbols.
5449 nlist=conftest.nm
5450 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5451 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6bf9431b
BE
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5454 (exit $ac_status); } && test -s "$nlist"; then
5455 # Try sorting and uniquifying the output.
5456 if sort "$nlist" | uniq > "$nlist"T; then
5457 mv -f "$nlist"T "$nlist"
5458 else
5459 rm -f "$nlist"T
5460 fi
5461
5462 # Make sure that we snagged all the symbols we need.
5463 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5464 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5465 cat <<_LT_EOF > conftest.$ac_ext
5466#ifdef __cplusplus
5467extern "C" {
5468#endif
5469
5470_LT_EOF
5471 # Now generate the symbol file.
5472 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5473
5474 cat <<_LT_EOF >> conftest.$ac_ext
5475
5476/* The mapping between symbol names and symbols. */
5477const struct {
5478 const char *name;
5479 void *address;
5480}
5481lt__PROGRAM__LTX_preloaded_symbols[] =
5482{
5483 { "@PROGRAM@", (void *) 0 },
5484_LT_EOF
5485 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5486 cat <<\_LT_EOF >> conftest.$ac_ext
5487 {0, (void *) 0}
5488};
5489
5490/* This works around a problem in FreeBSD linker */
5491#ifdef FREEBSD_WORKAROUND
5492static const void *lt_preloaded_setup() {
5493 return lt__PROGRAM__LTX_preloaded_symbols;
5494}
5495#endif
5496
5497#ifdef __cplusplus
5498}
5499#endif
5500_LT_EOF
5501 # Now try linking the two files.
5502 mv conftest.$ac_objext conftstm.$ac_objext
5503 lt_save_LIBS="$LIBS"
5504 lt_save_CFLAGS="$CFLAGS"
5505 LIBS="conftstm.$ac_objext"
5506 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5508 (eval $ac_link) 2>&5
6bf9431b
BE
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5511 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5512 pipe_works=yes
5513 fi
5514 LIBS="$lt_save_LIBS"
5515 CFLAGS="$lt_save_CFLAGS"
5516 else
5517 echo "cannot find nm_test_func in $nlist" >&5
5518 fi
5519 else
5520 echo "cannot find nm_test_var in $nlist" >&5
5521 fi
5522 else
5523 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5524 fi
5525 else
5526 echo "$progname: failed program was:" >&5
5527 cat conftest.$ac_ext >&5
5528 fi
5529 rm -f conftest* conftst*
6bf9431b 5530
d7040cdb
SE
5531 # Do not use the global_symbol_pipe unless it works.
5532 if test "$pipe_works" = yes; then
5533 break
5534 else
5535 lt_cv_sys_global_symbol_pipe=
5536 fi
5537done
5538
5539fi
5540
5541if test -z "$lt_cv_sys_global_symbol_pipe"; then
5542 lt_cv_sys_global_symbol_to_cdecl=
5543fi
5544if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1b9750d6
NC
5545 { echo "$as_me:$LINENO: result: failed" >&5
5546echo "${ECHO_T}failed" >&6; }
d7040cdb 5547else
1b9750d6
NC
5548 { echo "$as_me:$LINENO: result: ok" >&5
5549echo "${ECHO_T}ok" >&6; }
d7040cdb
SE
5550fi
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
1b9750d6 5568# Check whether --enable-libtool-lock was given.
d7040cdb 5569if test "${enable_libtool_lock+set}" = set; then
1b9750d6
NC
5570 enableval=$enable_libtool_lock;
5571fi
d7040cdb 5572
d7040cdb
SE
5573test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5574
5575# Some flags need to be propagated to the compiler or linker for good
5576# libtool support.
5577case $host in
5578ia64-*-hpux*)
5579 # Find out which ABI we are using.
5580 echo 'int i;' > conftest.$ac_ext
5581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5582 (eval $ac_compile) 2>&5
5583 ac_status=$?
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; then
5586 case `/usr/bin/file conftest.$ac_objext` in
5587 *ELF-32*)
5588 HPUX_IA64_MODE="32"
5589 ;;
5590 *ELF-64*)
5591 HPUX_IA64_MODE="64"
5592 ;;
5593 esac
5594 fi
5595 rm -rf conftest*
5596 ;;
5597*-*-irix6*)
5598 # Find out which ABI we are using.
1b9750d6 5599 echo '#line 5599 "configure"' > conftest.$ac_ext
d7040cdb
SE
5600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5601 (eval $ac_compile) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; then
5605 if test "$lt_cv_prog_gnu_ld" = yes; then
5606 case `/usr/bin/file conftest.$ac_objext` in
5607 *32-bit*)
5608 LD="${LD-ld} -melf32bsmip"
5609 ;;
5610 *N32*)
5611 LD="${LD-ld} -melf32bmipn32"
5612 ;;
5613 *64-bit*)
5614 LD="${LD-ld} -melf64bmip"
5615 ;;
5616 esac
5617 else
5618 case `/usr/bin/file conftest.$ac_objext` in
5619 *32-bit*)
5620 LD="${LD-ld} -32"
5621 ;;
5622 *N32*)
5623 LD="${LD-ld} -n32"
5624 ;;
5625 *64-bit*)
5626 LD="${LD-ld} -64"
5627 ;;
5628 esac
5629 fi
5630 fi
5631 rm -rf conftest*
5632 ;;
5633
5634x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5635s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5636 # Find out which ABI we are using.
5637 echo 'int i;' > conftest.$ac_ext
5638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5639 (eval $ac_compile) 2>&5
5640 ac_status=$?
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; then
5643 case `/usr/bin/file conftest.o` in
5644 *32-bit*)
5645 case $host in
5646 x86_64-*kfreebsd*-gnu)
5647 LD="${LD-ld} -m elf_i386_fbsd"
5648 ;;
5649 x86_64-*linux*)
5650 LD="${LD-ld} -m elf_i386"
5651 ;;
5652 ppc64-*linux*|powerpc64-*linux*)
5653 LD="${LD-ld} -m elf32ppclinux"
5654 ;;
5655 s390x-*linux*)
5656 LD="${LD-ld} -m elf_s390"
5657 ;;
5658 sparc64-*linux*)
5659 LD="${LD-ld} -m elf32_sparc"
5660 ;;
5661 esac
5662 ;;
5663 *64-bit*)
5664 case $host in
5665 x86_64-*kfreebsd*-gnu)
5666 LD="${LD-ld} -m elf_x86_64_fbsd"
5667 ;;
5668 x86_64-*linux*)
5669 LD="${LD-ld} -m elf_x86_64"
5670 ;;
5671 ppc*-*linux*|powerpc*-*linux*)
5672 LD="${LD-ld} -m elf64ppc"
5673 ;;
5674 s390*-*linux*|s390*-*tpf*)
5675 LD="${LD-ld} -m elf64_s390"
5676 ;;
5677 sparc*-*linux*)
5678 LD="${LD-ld} -m elf64_sparc"
5679 ;;
5680 esac
5681 ;;
5682 esac
5683 fi
5684 rm -rf conftest*
5685 ;;
5686
5687*-*-sco3.2v5*)
5688 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5689 SAVE_CFLAGS="$CFLAGS"
5690 CFLAGS="$CFLAGS -belf"
1b9750d6
NC
5691 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5692echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
d7040cdb 5693if test "${lt_cv_cc_needs_belf+set}" = set; then
6bf9431b
BE
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5695else
d7040cdb
SE
5696 ac_ext=c
5697ac_cpp='$CPP $CPPFLAGS'
5698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5700ac_compiler_gnu=$ac_cv_c_compiler_gnu
5701
5702 cat >conftest.$ac_ext <<_ACEOF
6bf9431b
BE
5703/* confdefs.h. */
5704_ACEOF
5705cat confdefs.h >>conftest.$ac_ext
5706cat >>conftest.$ac_ext <<_ACEOF
5707/* end confdefs.h. */
5708
5709int
5710main ()
5711{
252b5132 5712
6bf9431b
BE
5713 ;
5714 return 0;
5715}
5716_ACEOF
d7040cdb 5717rm -f conftest.$ac_objext conftest$ac_exeext
1b9750d6
NC
5718if { (ac_try="$ac_link"
5719case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722esac
5723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_link") 2>conftest.er1
6bf9431b
BE
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
5730 (exit $ac_status); } && {
5731 test -z "$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest$ac_exeext &&
5734 $as_test_x conftest$ac_exeext; then
d7040cdb 5735 lt_cv_cc_needs_belf=yes
6bf9431b
BE
5736else
5737 echo "$as_me: failed program was:" >&5
5738sed 's/^/| /' conftest.$ac_ext >&5
5739
1b9750d6 5740 lt_cv_cc_needs_belf=no
6bf9431b 5741fi
1b9750d6
NC
5742
5743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d7040cdb
SE
5744 conftest$ac_exeext conftest.$ac_ext
5745 ac_ext=c
5746ac_cpp='$CPP $CPPFLAGS'
5747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5749ac_compiler_gnu=$ac_cv_c_compiler_gnu
6bf9431b
BE
5750
5751fi
1b9750d6
NC
5752{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5753echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
d7040cdb
SE
5754 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5755 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5756 CFLAGS="$SAVE_CFLAGS"
5757 fi
5758 ;;
5759sparc*-*solaris*)
5760 # Find out which ABI we are using.
5761 echo 'int i;' > conftest.$ac_ext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763 (eval $ac_compile) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; then
5767 case `/usr/bin/file conftest.o` in
5768 *64-bit*)
5769 case $lt_cv_prog_gnu_ld in
5770 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5771 *) LD="${LD-ld} -64" ;;
5772 esac
5773 ;;
5774 esac
5775 fi
5776 rm -rf conftest*
5777 ;;
5778esac
5779
5780need_locks="$enable_libtool_lock"
5781
5782ac_ext=c
5783ac_cpp='$CPP $CPPFLAGS'
5784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5786ac_compiler_gnu=$ac_cv_c_compiler_gnu
1b9750d6
NC
5787{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5788echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d7040cdb
SE
5789# On Suns, sometimes $CPP names a directory.
5790if test -n "$CPP" && test -d "$CPP"; then
5791 CPP=
5792fi
5793if test -z "$CPP"; then
5794 if test "${ac_cv_prog_CPP+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796else
5797 # Double quotes because CPP needs to be expanded
5798 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5799 do
5800 ac_preproc_ok=false
5801for ac_c_preproc_warn_flag in '' yes
5802do
5803 # Use a header file that comes with gcc, so configuring glibc
5804 # with a fresh cross-compiler works.
5805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5806 # <limits.h> exists even on freestanding compilers.
5807 # On the NeXT, cc -E runs the code through the compiler's parser,
5808 # not just through cpp. "Syntax error" is here to catch this case.
5809 cat >conftest.$ac_ext <<_ACEOF
5810/* confdefs.h. */
6bf9431b
BE
5811_ACEOF
5812cat confdefs.h >>conftest.$ac_ext
5813cat >>conftest.$ac_ext <<_ACEOF
5814/* end confdefs.h. */
d7040cdb
SE
5815#ifdef __STDC__
5816# include <limits.h>
5817#else
5818# include <assert.h>
5819#endif
5820 Syntax error
6bf9431b 5821_ACEOF
1b9750d6
NC
5822if { (ac_try="$ac_cpp conftest.$ac_ext"
5823case "(($ac_try" in
5824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825 *) ac_try_echo=$ac_try;;
5826esac
5827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6bf9431b
BE
5829 ac_status=$?
5830 grep -v '^ *+' conftest.er1 >conftest.err
5831 rm -f conftest.er1
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
5834 (exit $ac_status); } >/dev/null && {
5835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5836 test ! -s conftest.err
5837 }; then
d7040cdb 5838 :
6bf9431b 5839else
d7040cdb
SE
5840 echo "$as_me: failed program was:" >&5
5841sed 's/^/| /' conftest.$ac_ext >&5
5842
5843 # Broken: fails on valid input.
5844continue
5845fi
1b9750d6 5846
d7040cdb
SE
5847rm -f conftest.err conftest.$ac_ext
5848
1b9750d6 5849 # OK, works on sane cases. Now check whether nonexistent headers
d7040cdb
SE
5850 # can be detected and how.
5851 cat >conftest.$ac_ext <<_ACEOF
6bf9431b
BE
5852/* confdefs.h. */
5853_ACEOF
5854cat confdefs.h >>conftest.$ac_ext
5855cat >>conftest.$ac_ext <<_ACEOF
5856/* end confdefs.h. */
d7040cdb 5857#include <ac_nonexistent.h>
6bf9431b 5858_ACEOF
1b9750d6
NC
5859if { (ac_try="$ac_cpp conftest.$ac_ext"
5860case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863esac
5864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6bf9431b
BE
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
5871 (exit $ac_status); } >/dev/null && {
5872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5873 test ! -s conftest.err
5874 }; then
d7040cdb
SE
5875 # Broken: success on invalid input.
5876continue
6bf9431b
BE
5877else
5878 echo "$as_me: failed program was:" >&5
5879sed 's/^/| /' conftest.$ac_ext >&5
5880
d7040cdb
SE
5881 # Passes both tests.
5882ac_preproc_ok=:
5883break
6bf9431b 5884fi
1b9750d6 5885
d7040cdb 5886rm -f conftest.err conftest.$ac_ext
6bf9431b 5887
d7040cdb
SE
5888done
5889# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5890rm -f conftest.err conftest.$ac_ext
5891if $ac_preproc_ok; then
5892 break
6bf9431b
BE
5893fi
5894
d7040cdb
SE
5895 done
5896 ac_cv_prog_CPP=$CPP
6bf9431b 5897
d7040cdb
SE
5898fi
5899 CPP=$ac_cv_prog_CPP
5900else
5901 ac_cv_prog_CPP=$CPP
5902fi
1b9750d6
NC
5903{ echo "$as_me:$LINENO: result: $CPP" >&5
5904echo "${ECHO_T}$CPP" >&6; }
d7040cdb
SE
5905ac_preproc_ok=false
5906for ac_c_preproc_warn_flag in '' yes
5907do
5908 # Use a header file that comes with gcc, so configuring glibc
5909 # with a fresh cross-compiler works.
5910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5911 # <limits.h> exists even on freestanding compilers.
5912 # On the NeXT, cc -E runs the code through the compiler's parser,
5913 # not just through cpp. "Syntax error" is here to catch this case.
5914 cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h. */
6bf9431b 5916_ACEOF
d7040cdb
SE
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h. */
5920#ifdef __STDC__
5921# include <limits.h>
5922#else
5923# include <assert.h>
5924#endif
5925 Syntax error
5926_ACEOF
1b9750d6
NC
5927if { (ac_try="$ac_cpp conftest.$ac_ext"
5928case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931esac
5932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6bf9431b
BE
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
5939 (exit $ac_status); } >/dev/null && {
5940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5941 test ! -s conftest.err
5942 }; then
d7040cdb
SE
5943 :
5944else
5945 echo "$as_me: failed program was:" >&5
5946sed 's/^/| /' conftest.$ac_ext >&5
5947
5948 # Broken: fails on valid input.
5949continue
5950fi
1b9750d6 5951
d7040cdb
SE
5952rm -f conftest.err conftest.$ac_ext
5953
1b9750d6 5954 # OK, works on sane cases. Now check whether nonexistent headers
d7040cdb
SE
5955 # can be detected and how.
5956 cat >conftest.$ac_ext <<_ACEOF
5957/* confdefs.h. */
5958_ACEOF
5959cat confdefs.h >>conftest.$ac_ext
5960cat >>conftest.$ac_ext <<_ACEOF
5961/* end confdefs.h. */
5962#include <ac_nonexistent.h>
5963_ACEOF
1b9750d6
NC
5964if { (ac_try="$ac_cpp conftest.$ac_ext"
5965case "(($ac_try" in
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5968esac
5969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6bf9431b 5971 ac_status=$?
d7040cdb
SE
5972 grep -v '^ *+' conftest.er1 >conftest.err
5973 rm -f conftest.er1
5974 cat conftest.err >&5
6bf9431b 5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
5976 (exit $ac_status); } >/dev/null && {
5977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5978 test ! -s conftest.err
5979 }; then
d7040cdb
SE
5980 # Broken: success on invalid input.
5981continue
5982else
5983 echo "$as_me: failed program was:" >&5
5984sed 's/^/| /' conftest.$ac_ext >&5
5985
5986 # Passes both tests.
5987ac_preproc_ok=:
5988break
5989fi
1b9750d6 5990
d7040cdb
SE
5991rm -f conftest.err conftest.$ac_ext
5992
5993done
5994# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5995rm -f conftest.err conftest.$ac_ext
5996if $ac_preproc_ok; then
5997 :
5998else
5999 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6000See \`config.log' for more details." >&5
6001echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6002See \`config.log' for more details." >&2;}
6003 { (exit 1); exit 1; }; }
6004fi
6005
6006ac_ext=c
6007ac_cpp='$CPP $CPPFLAGS'
6008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6010ac_compiler_gnu=$ac_cv_c_compiler_gnu
6011
6012
1b9750d6
NC
6013{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6014echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d7040cdb
SE
6015if test "${ac_cv_header_stdc+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6017else
6bf9431b
BE
6018 cat >conftest.$ac_ext <<_ACEOF
6019/* confdefs.h. */
6020_ACEOF
6021cat confdefs.h >>conftest.$ac_ext
6022cat >>conftest.$ac_ext <<_ACEOF
6023/* end confdefs.h. */
6bf9431b 6024#include <stdlib.h>
d7040cdb
SE
6025#include <stdarg.h>
6026#include <string.h>
6027#include <float.h>
6028
6bf9431b
BE
6029int
6030main ()
6031{
d7040cdb 6032
6bf9431b
BE
6033 ;
6034 return 0;
6035}
6036_ACEOF
6037rm -f conftest.$ac_objext
1b9750d6
NC
6038if { (ac_try="$ac_compile"
6039case "(($ac_try" in
6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041 *) ac_try_echo=$ac_try;;
6042esac
6043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6044 (eval "$ac_compile") 2>conftest.er1
6bf9431b
BE
6045 ac_status=$?
6046 grep -v '^ *+' conftest.er1 >conftest.err
6047 rm -f conftest.er1
6048 cat conftest.err >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
6050 (exit $ac_status); } && {
6051 test -z "$ac_c_werror_flag" ||
6052 test ! -s conftest.err
6053 } && test -s conftest.$ac_objext; then
d7040cdb 6054 ac_cv_header_stdc=yes
6bf9431b
BE
6055else
6056 echo "$as_me: failed program was:" >&5
6057sed 's/^/| /' conftest.$ac_ext >&5
6058
1b9750d6 6059 ac_cv_header_stdc=no
6bf9431b 6060fi
1b9750d6
NC
6061
6062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb
SE
6063
6064if test $ac_cv_header_stdc = yes; then
6065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6bf9431b
BE
6066 cat >conftest.$ac_ext <<_ACEOF
6067/* confdefs.h. */
6068_ACEOF
6069cat confdefs.h >>conftest.$ac_ext
6070cat >>conftest.$ac_ext <<_ACEOF
6071/* end confdefs.h. */
d7040cdb
SE
6072#include <string.h>
6073
6074_ACEOF
6075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6076 $EGREP "memchr" >/dev/null 2>&1; then
6077 :
6078else
6079 ac_cv_header_stdc=no
6080fi
6081rm -f conftest*
6082
6083fi
6084
6085if test $ac_cv_header_stdc = yes; then
6086 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6087 cat >conftest.$ac_ext <<_ACEOF
6088/* confdefs.h. */
6089_ACEOF
6090cat confdefs.h >>conftest.$ac_ext
6091cat >>conftest.$ac_ext <<_ACEOF
6092/* end confdefs.h. */
6093#include <stdlib.h>
6094
6095_ACEOF
6096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6097 $EGREP "free" >/dev/null 2>&1; then
6098 :
6099else
6100 ac_cv_header_stdc=no
6101fi
6102rm -f conftest*
6103
6104fi
6105
6106if test $ac_cv_header_stdc = yes; then
6107 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6108 if test "$cross_compiling" = yes; then
6109 :
6110else
6111 cat >conftest.$ac_ext <<_ACEOF
6112/* confdefs.h. */
6113_ACEOF
6114cat confdefs.h >>conftest.$ac_ext
6115cat >>conftest.$ac_ext <<_ACEOF
6116/* end confdefs.h. */
6117#include <ctype.h>
1b9750d6 6118#include <stdlib.h>
d7040cdb
SE
6119#if ((' ' & 0x0FF) == 0x020)
6120# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6121# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6122#else
6123# define ISLOWER(c) \
6124 (('a' <= (c) && (c) <= 'i') \
6125 || ('j' <= (c) && (c) <= 'r') \
6126 || ('s' <= (c) && (c) <= 'z'))
6127# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6128#endif
6129
6130#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6bf9431b
BE
6131int
6132main ()
6133{
d7040cdb
SE
6134 int i;
6135 for (i = 0; i < 256; i++)
6136 if (XOR (islower (i), ISLOWER (i))
6137 || toupper (i) != TOUPPER (i))
1b9750d6
NC
6138 return 2;
6139 return 0;
6bf9431b
BE
6140}
6141_ACEOF
d7040cdb 6142rm -f conftest$ac_exeext
1b9750d6
NC
6143if { (ac_try="$ac_link"
6144case "(($ac_try" in
6145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146 *) ac_try_echo=$ac_try;;
6147esac
6148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149 (eval "$ac_link") 2>&5
6bf9431b
BE
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb 6152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1b9750d6
NC
6153 { (case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6156esac
6157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_try") 2>&5
6bf9431b
BE
6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
d7040cdb 6162 :
6bf9431b 6163else
d7040cdb
SE
6164 echo "$as_me: program exited with status $ac_status" >&5
6165echo "$as_me: failed program was:" >&5
6bf9431b
BE
6166sed 's/^/| /' conftest.$ac_ext >&5
6167
d7040cdb
SE
6168( exit $ac_status )
6169ac_cv_header_stdc=no
6bf9431b 6170fi
1b9750d6 6171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6bf9431b 6172fi
1b9750d6
NC
6173
6174
d7040cdb
SE
6175fi
6176fi
1b9750d6
NC
6177{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6178echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d7040cdb
SE
6179if test $ac_cv_header_stdc = yes; then
6180
6181cat >>confdefs.h <<\_ACEOF
6182#define STDC_HEADERS 1
6183_ACEOF
6bf9431b
BE
6184
6185fi
252b5132 6186
d7040cdb 6187# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6bf9431b 6188
252b5132 6189
252b5132 6190
252b5132 6191
252b5132 6192
252b5132
RH
6193
6194
6bf9431b 6195
d7040cdb
SE
6196
6197for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6198 inttypes.h stdint.h unistd.h
5af11cab 6199do
d7040cdb 6200as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1b9750d6
NC
6201{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6bf9431b
BE
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6205else
6206 cat >conftest.$ac_ext <<_ACEOF
6207/* confdefs.h. */
6208_ACEOF
6209cat confdefs.h >>conftest.$ac_ext
6210cat >>conftest.$ac_ext <<_ACEOF
6211/* end confdefs.h. */
d7040cdb 6212$ac_includes_default
6bf9431b 6213
d7040cdb
SE
6214#include <$ac_header>
6215_ACEOF
6216rm -f conftest.$ac_objext
1b9750d6
NC
6217if { (ac_try="$ac_compile"
6218case "(($ac_try" in
6219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220 *) ac_try_echo=$ac_try;;
6221esac
6222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6223 (eval "$ac_compile") 2>conftest.er1
d7040cdb
SE
6224 ac_status=$?
6225 grep -v '^ *+' conftest.er1 >conftest.err
6226 rm -f conftest.er1
6227 cat conftest.err >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
6229 (exit $ac_status); } && {
6230 test -z "$ac_c_werror_flag" ||
6231 test ! -s conftest.err
6232 } && test -s conftest.$ac_objext; then
d7040cdb
SE
6233 eval "$as_ac_Header=yes"
6234else
6235 echo "$as_me: failed program was:" >&5
6236sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 6237
1b9750d6 6238 eval "$as_ac_Header=no"
d7040cdb 6239fi
1b9750d6
NC
6240
6241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 6242fi
1b9750d6
NC
6243ac_res=`eval echo '${'$as_ac_Header'}'`
6244 { echo "$as_me:$LINENO: result: $ac_res" >&5
6245echo "${ECHO_T}$ac_res" >&6; }
d7040cdb
SE
6246if test `eval echo '${'$as_ac_Header'}'` = yes; then
6247 cat >>confdefs.h <<_ACEOF
6248#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6249_ACEOF
6bf9431b 6250
d7040cdb 6251fi
6bf9431b 6252
d7040cdb 6253done
6bf9431b 6254
d7040cdb
SE
6255
6256
6257for ac_header in dlfcn.h
6258do
6259as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1b9750d6
NC
6260{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6262if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d7040cdb
SE
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264else
6265 cat >conftest.$ac_ext <<_ACEOF
6266/* confdefs.h. */
6bf9431b 6267_ACEOF
d7040cdb
SE
6268cat confdefs.h >>conftest.$ac_ext
6269cat >>conftest.$ac_ext <<_ACEOF
6270/* end confdefs.h. */
6271$ac_includes_default
6272
6273#include <$ac_header>
6274_ACEOF
6275rm -f conftest.$ac_objext
1b9750d6
NC
6276if { (ac_try="$ac_compile"
6277case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6280esac
6281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_compile") 2>conftest.er1
6bf9431b
BE
6283 ac_status=$?
6284 grep -v '^ *+' conftest.er1 >conftest.err
6285 rm -f conftest.er1
6286 cat conftest.err >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
6288 (exit $ac_status); } && {
6289 test -z "$ac_c_werror_flag" ||
6290 test ! -s conftest.err
6291 } && test -s conftest.$ac_objext; then
d7040cdb 6292 eval "$as_ac_Header=yes"
6bf9431b
BE
6293else
6294 echo "$as_me: failed program was:" >&5
6295sed 's/^/| /' conftest.$ac_ext >&5
6296
1b9750d6 6297 eval "$as_ac_Header=no"
6bf9431b 6298fi
1b9750d6
NC
6299
6300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6bf9431b 6301fi
1b9750d6
NC
6302ac_res=`eval echo '${'$as_ac_Header'}'`
6303 { echo "$as_me:$LINENO: result: $ac_res" >&5
6304echo "${ECHO_T}$ac_res" >&6; }
d7040cdb 6305if test `eval echo '${'$as_ac_Header'}'` = yes; then
6bf9431b 6306 cat >>confdefs.h <<_ACEOF
d7040cdb 6307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6bf9431b
BE
6308_ACEOF
6309
6310fi
d7040cdb 6311
6bf9431b
BE
6312done
6313
6314
221ca466 6315
d7040cdb
SE
6316# This can be used to rebuild libtool when needed
6317LIBTOOL_DEPS="$ltmain"
20e95c23 6318
d7040cdb
SE
6319# Always use our own libtool.
6320LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20e95c23
DJ
6321
6322
20e95c23
DJ
6323
6324
20e95c23 6325
20e95c23 6326
20e95c23 6327
20e95c23 6328
20e95c23 6329
20e95c23
DJ
6330
6331
6332
20e95c23
DJ
6333
6334
6335
6336
6337
6338
20e95c23 6339
d7040cdb
SE
6340
6341
6342
6343
6344
6345
6346test -z "$LN_S" && LN_S="ln -s"
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361if test -n "${ZSH_VERSION+set}" ; then
6362 setopt NO_GLOB_SUBST
20e95c23 6363fi
20e95c23 6364
1b9750d6
NC
6365{ echo "$as_me:$LINENO: checking for objdir" >&5
6366echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d7040cdb 6367if test "${lt_cv_objdir+set}" = set; then
6bf9431b
BE
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369else
d7040cdb
SE
6370 rm -f .libs 2>/dev/null
6371mkdir .libs 2>/dev/null
6372if test -d .libs; then
6373 lt_cv_objdir=.libs
6bf9431b 6374else
d7040cdb
SE
6375 # MS-DOS does not allow filenames that begin with a dot.
6376 lt_cv_objdir=_libs
6377fi
6378rmdir .libs 2>/dev/null
20e95c23 6379fi
1b9750d6
NC
6380{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6381echo "${ECHO_T}$lt_cv_objdir" >&6; }
d7040cdb 6382objdir=$lt_cv_objdir
20e95c23 6383
d7040cdb
SE
6384
6385
6386
6387
6388cat >>confdefs.h <<_ACEOF
6389#define LT_OBJDIR "$lt_cv_objdir/"
6390_ACEOF
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408case $host_os in
6409aix3*)
6410 # AIX sometimes has problems with the GCC collect2 program. For some
6411 # reason, if we set the COLLECT_NAMES environment variable, the problems
6412 # vanish in a puff of smoke.
6413 if test "X${COLLECT_NAMES+set}" != Xset; then
6414 COLLECT_NAMES=
6415 export COLLECT_NAMES
6416 fi
6417 ;;
6418esac
6419
6420# Sed substitution that helps us do robust quoting. It backslashifies
6421# metacharacters that are still active within double-quoted strings.
6422sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6423
6424# Same as above, but do not quote variable references.
6425double_quote_subst='s/\(["`\\]\)/\\\1/g'
6426
6427# Sed substitution to delay expansion of an escaped shell variable in a
6428# double_quote_subst'ed string.
6429delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6430
6431# Sed substitution to delay expansion of an escaped single quote.
6432delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6433
6434# Sed substitution to avoid accidental globbing in evaled expressions
6435no_glob_subst='s/\*/\\\*/g'
6436
6437# Global variables:
6438ofile=libtool
6439can_build_shared=yes
6440
6441# All known linkers require a `.a' archive for static linking (except MSVC,
6442# which needs '.lib').
6443libext=a
6444
6445with_gnu_ld="$lt_cv_prog_gnu_ld"
6446
6447old_CC="$CC"
6448old_CFLAGS="$CFLAGS"
6449
6450# Set sane defaults for various variables
6451test -z "$CC" && CC=cc
6452test -z "$LTCC" && LTCC=$CC
6453test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6454test -z "$LD" && LD=ld
6455test -z "$ac_objext" && ac_objext=o
6456
6457for cc_temp in $compiler""; do
6458 case $cc_temp in
6459 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6460 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6461 \-*) ;;
6462 *) break;;
6463 esac
6464done
6465cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6466
6467
6468# Only perform the check for file, if the check method requires it
6469test -z "$MAGIC_CMD" && MAGIC_CMD=file
6470case $deplibs_check_method in
6471file_magic*)
6472 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1b9750d6
NC
6473 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6474echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
d7040cdb 6475if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
20e95c23
DJ
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6477else
d7040cdb
SE
6478 case $MAGIC_CMD in
6479[\\/*] | ?:[\\/]*)
6480 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
20e95c23 6481 ;;
d7040cdb
SE
6482*)
6483 lt_save_MAGIC_CMD="$MAGIC_CMD"
6484 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6485 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6486 for ac_dir in $ac_dummy; do
6487 IFS="$lt_save_ifs"
6488 test -z "$ac_dir" && ac_dir=.
6489 if test -f $ac_dir/${ac_tool_prefix}file; then
6490 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6491 if test -n "$file_magic_test_file"; then
6492 case $deplibs_check_method in
6493 "file_magic "*)
6494 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6496 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6497 $EGREP "$file_magic_regex" > /dev/null; then
6498 :
6499 else
6500 cat <<_LT_EOF 1>&2
5af11cab 6501
d7040cdb
SE
6502*** Warning: the command libtool uses to detect shared libraries,
6503*** $file_magic_cmd, produces output that libtool cannot recognize.
6504*** The result is that libtool may fail to recognize shared libraries
6505*** as such. This will affect the creation of libtool libraries that
6506*** depend on shared libraries, but programs linked with such libtool
6507*** libraries will work regardless of this problem. Nevertheless, you
6508*** may want to report the problem to your system manager and/or to
6509*** bug-libtool@gnu.org
6510
6511_LT_EOF
6512 fi ;;
6513 esac
6514 fi
6515 break
6516 fi
6517 done
6518 IFS="$lt_save_ifs"
6519 MAGIC_CMD="$lt_save_MAGIC_CMD"
20e95c23
DJ
6520 ;;
6521esac
6bf9431b 6522fi
20e95c23 6523
d7040cdb
SE
6524MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6525if test -n "$MAGIC_CMD"; then
1b9750d6
NC
6526 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6527echo "${ECHO_T}$MAGIC_CMD" >&6; }
5af11cab 6528else
1b9750d6
NC
6529 { echo "$as_me:$LINENO: result: no" >&5
6530echo "${ECHO_T}no" >&6; }
5af11cab 6531fi
6bf9431b 6532
20e95c23
DJ
6533
6534
20e95c23 6535
20e95c23 6536
d7040cdb
SE
6537if test -z "$lt_cv_path_MAGIC_CMD"; then
6538 if test -n "$ac_tool_prefix"; then
1b9750d6
NC
6539 { echo "$as_me:$LINENO: checking for file" >&5
6540echo $ECHO_N "checking for file... $ECHO_C" >&6; }
d7040cdb 6541if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6bf9431b
BE
6542 echo $ECHO_N "(cached) $ECHO_C" >&6
6543else
d7040cdb
SE
6544 case $MAGIC_CMD in
6545[\\/*] | ?:[\\/]*)
6546 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6547 ;;
6548*)
6549 lt_save_MAGIC_CMD="$MAGIC_CMD"
6550 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6551 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6552 for ac_dir in $ac_dummy; do
6553 IFS="$lt_save_ifs"
6554 test -z "$ac_dir" && ac_dir=.
6555 if test -f $ac_dir/file; then
6556 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6557 if test -n "$file_magic_test_file"; then
6558 case $deplibs_check_method in
6559 "file_magic "*)
6560 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6562 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6563 $EGREP "$file_magic_regex" > /dev/null; then
6564 :
6565 else
6566 cat <<_LT_EOF 1>&2
6567
6568*** Warning: the command libtool uses to detect shared libraries,
6569*** $file_magic_cmd, produces output that libtool cannot recognize.
6570*** The result is that libtool may fail to recognize shared libraries
6571*** as such. This will affect the creation of libtool libraries that
6572*** depend on shared libraries, but programs linked with such libtool
6573*** libraries will work regardless of this problem. Nevertheless, you
6574*** may want to report the problem to your system manager and/or to
6575*** bug-libtool@gnu.org
6576
6577_LT_EOF
6578 fi ;;
6579 esac
6580 fi
6581 break
6582 fi
6583 done
6584 IFS="$lt_save_ifs"
6585 MAGIC_CMD="$lt_save_MAGIC_CMD"
6586 ;;
20e95c23
DJ
6587esac
6588fi
d7040cdb
SE
6589
6590MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6591if test -n "$MAGIC_CMD"; then
1b9750d6
NC
6592 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6593echo "${ECHO_T}$MAGIC_CMD" >&6; }
6bf9431b 6594else
1b9750d6
NC
6595 { echo "$as_me:$LINENO: result: no" >&5
6596echo "${ECHO_T}no" >&6; }
20e95c23
DJ
6597fi
6598
20e95c23 6599
20e95c23 6600 else
d7040cdb 6601 MAGIC_CMD=:
6bf9431b 6602 fi
20e95c23 6603fi
5af11cab 6604
d7040cdb
SE
6605 fi
6606 ;;
6607esac
20e95c23 6608
d7040cdb
SE
6609# Use C for the default configuration in the libtool script
6610
6611lt_save_CC="$CC"
6612ac_ext=c
6613ac_cpp='$CPP $CPPFLAGS'
6614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6616ac_compiler_gnu=$ac_cv_c_compiler_gnu
6617
6618
6619# Source file extension for C test sources.
6620ac_ext=c
6621
6622# Object file extension for compiled C test sources.
6623objext=o
6624objext=$objext
6625
6626# Code to be used in simple compile tests
6627lt_simple_compile_test_code="int some_variable = 0;"
6628
6629# Code to be used in simple link tests
6630lt_simple_link_test_code='int main(){return(0);}'
6631
6632
6633
6634
6635
6636
6637
6638# If no C compiler was specified, use CC.
6639LTCC=${LTCC-"$CC"}
6640
6641# If no C compiler flags were specified, use CFLAGS.
6642LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6643
6644# Allow CC to be a program name with arguments.
6645compiler=$CC
6646
6647# Save the default compiler, since it gets overwritten when the other
6648# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6649compiler_DEFAULT=$CC
6650
6651# save warnings/boilerplate of simple test code
6652ac_outfile=conftest.$ac_objext
6653echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6654eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6655_lt_compiler_boilerplate=`cat conftest.err`
6656$RM conftest*
6657
6658ac_outfile=conftest.$ac_objext
6659echo "$lt_simple_link_test_code" >conftest.$ac_ext
6660eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6661_lt_linker_boilerplate=`cat conftest.err`
6662$RM conftest*
6663
6664
6665## CAVEAT EMPTOR:
6666## There is no encapsulation within the following macros, do not change
6667## the running order or otherwise move them around unless you know exactly
6668## what you are doing...
6669if test -n "$compiler"; then
6670
6671lt_prog_compiler_no_builtin_flag=
6672
6673if test "$GCC" = yes; then
6674 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6675
1b9750d6
NC
6676 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6677echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d7040cdb 6678if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20e95c23
DJ
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6680else
d7040cdb
SE
6681 lt_cv_prog_compiler_rtti_exceptions=no
6682 ac_outfile=conftest.$ac_objext
6683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6684 lt_compiler_flag="-fno-rtti -fno-exceptions"
6685 # Insert the option either (1) after the last *FLAGS variable, or
6686 # (2) before a word containing "conftest.", or (3) at the end.
6687 # Note that $ac_compile itself does not contain backslashes and begins
6688 # with a dollar sign (not a hyphen), so the echo should work correctly.
6689 # The option is referenced via a variable to avoid confusing sed.
6690 lt_compile=`echo "$ac_compile" | $SED \
6691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6693 -e 's:$: $lt_compiler_flag:'`
1b9750d6 6694 (eval echo "\"\$as_me:6694: $lt_compile\"" >&5)
d7040cdb
SE
6695 (eval "$lt_compile" 2>conftest.err)
6696 ac_status=$?
6697 cat conftest.err >&5
1b9750d6 6698 echo "$as_me:6698: \$? = $ac_status" >&5
d7040cdb
SE
6699 if (exit $ac_status) && test -s "$ac_outfile"; then
6700 # The compiler can only warn and ignore the option if not recognized
6701 # So say no if there are warnings other than the usual output.
6702 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6704 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6705 lt_cv_prog_compiler_rtti_exceptions=yes
6706 fi
6707 fi
6708 $RM conftest*
6709
6bf9431b 6710fi
1b9750d6
NC
6711{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6712echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb
SE
6713
6714if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6715 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5af11cab 6716else
d7040cdb 6717 :
5af11cab 6718fi
5af11cab 6719
d7040cdb 6720fi
20e95c23 6721
20e95c23 6722
20e95c23 6723
20e95c23
DJ
6724
6725
6726
d7040cdb
SE
6727 lt_prog_compiler_wl=
6728lt_prog_compiler_pic=
6729lt_prog_compiler_static=
20e95c23 6730
1b9750d6
NC
6731{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6732echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20e95c23 6733
d7040cdb
SE
6734 if test "$GCC" = yes; then
6735 lt_prog_compiler_wl='-Wl,'
6736 lt_prog_compiler_static='-static'
6737
6738 case $host_os in
6739 aix*)
6740 # All AIX code is PIC.
6741 if test "$host_cpu" = ia64; then
6742 # AIX 5 now supports IA64 processor
6743 lt_prog_compiler_static='-Bstatic'
6744 fi
6745 ;;
252b5132 6746
d7040cdb
SE
6747 amigaos*)
6748 if test "$host_cpu" = m68k; then
6749 # FIXME: we need at least 68020 code to build shared libraries, but
6750 # adding the `-m68020' flag to GCC prevents building anything better,
6751 # like `-m68040'.
6752 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6753 fi
6754 ;;
20e95c23 6755
d7040cdb
SE
6756 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6757 # PIC is the default for these OSes.
6758 ;;
20e95c23 6759
d7040cdb
SE
6760 mingw* | cygwin* | pw32* | os2*)
6761 # This hack is so that the source file can tell whether it is being
6762 # built for inclusion in a dll (and should export symbols for example).
6763 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6764 # (--disable-auto-import) libraries
6765 lt_prog_compiler_pic='-DDLL_EXPORT'
6766 ;;
20e95c23 6767
d7040cdb
SE
6768 darwin* | rhapsody*)
6769 # PIC is the default on this platform
6770 # Common symbols not allowed in MH_DYLIB files
6771 lt_prog_compiler_pic='-fno-common'
6772 ;;
20e95c23 6773
d7040cdb
SE
6774 hpux*)
6775 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6776 # not for PA HP-UX.
6777 case $host_cpu in
6778 hppa*64*|ia64*)
6779 # +Z the default
6780 ;;
6781 *)
6782 lt_prog_compiler_pic='-fPIC'
6783 ;;
6784 esac
6785 ;;
d5fbea21 6786
d7040cdb
SE
6787 interix[3-9]*)
6788 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6789 # Instead, we relocate shared libraries at runtime.
6790 ;;
d5fbea21 6791
d7040cdb
SE
6792 msdosdjgpp*)
6793 # Just because we use GCC doesn't mean we suddenly get shared libraries
6794 # on systems that don't support them.
6795 lt_prog_compiler_can_build_shared=no
6796 enable_shared=no
6797 ;;
d5fbea21 6798
d7040cdb
SE
6799 *nto* | *qnx*)
6800 # QNX uses GNU C++, but need to define -shared option too, otherwise
6801 # it will coredump.
6802 lt_prog_compiler_pic='-fPIC -shared'
6803 ;;
6804
6805 sysv4*MP*)
6806 if test -d /usr/nec; then
6807 lt_prog_compiler_pic=-Kconform_pic
6808 fi
6809 ;;
6810
6811 *)
6812 lt_prog_compiler_pic='-fPIC'
6813 ;;
6814 esac
6bf9431b 6815 else
d7040cdb
SE
6816 # PORTME Check for flag to pass linker flags through the system compiler.
6817 case $host_os in
6818 aix*)
6819 lt_prog_compiler_wl='-Wl,'
6820 if test "$host_cpu" = ia64; then
6821 # AIX 5 now supports IA64 processor
6822 lt_prog_compiler_static='-Bstatic'
6823 else
6824 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6825 fi
6826 ;;
6827 darwin*)
6828 # PIC is the default on this platform
6829 # Common symbols not allowed in MH_DYLIB files
6830 case $cc_basename in
6831 xlc*)
6832 lt_prog_compiler_pic='-qnocommon'
6833 lt_prog_compiler_wl='-Wl,'
6834 ;;
6835 esac
6836 ;;
6837
6838 mingw* | cygwin* | pw32* | os2*)
6839 # This hack is so that the source file can tell whether it is being
6840 # built for inclusion in a dll (and should export symbols for example).
6841 lt_prog_compiler_pic='-DDLL_EXPORT'
6842 ;;
6843
6844 hpux9* | hpux10* | hpux11*)
6845 lt_prog_compiler_wl='-Wl,'
6846 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6847 # not for PA HP-UX.
6848 case $host_cpu in
6849 hppa*64*|ia64*)
6850 # +Z the default
6851 ;;
6852 *)
6853 lt_prog_compiler_pic='+Z'
6854 ;;
6855 esac
6856 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6857 lt_prog_compiler_static='${wl}-a ${wl}archive'
6858 ;;
6859
6860 irix5* | irix6* | nonstopux*)
6861 lt_prog_compiler_wl='-Wl,'
6862 # PIC (with -KPIC) is the default.
6863 lt_prog_compiler_static='-non_shared'
6864 ;;
6865
6866 linux* | k*bsd*-gnu)
6867 case $cc_basename in
6868 icc* | ecc*)
6869 lt_prog_compiler_wl='-Wl,'
6870 lt_prog_compiler_pic='-KPIC'
6871 lt_prog_compiler_static='-static'
6872 ;;
6873 pgcc* | pgf77* | pgf90* | pgf95*)
6874 # Portland Group compilers (*not* the Pentium gcc compiler,
6875 # which looks to be a dead project)
6876 lt_prog_compiler_wl='-Wl,'
6877 lt_prog_compiler_pic='-fpic'
6878 lt_prog_compiler_static='-Bstatic'
6879 ;;
6880 ccc*)
6881 lt_prog_compiler_wl='-Wl,'
6882 # All Alpha code is PIC.
6883 lt_prog_compiler_static='-non_shared'
6884 ;;
6885 *)
6886 case `$CC -V 2>&1 | sed 5q` in
6887 *Sun\ C*)
6888 # Sun C 5.9
6889 lt_prog_compiler_pic='-KPIC'
6890 lt_prog_compiler_static='-Bstatic'
6891 lt_prog_compiler_wl='-Wl,'
6892 ;;
6893 *Sun\ F*)
6894 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6895 lt_prog_compiler_pic='-KPIC'
6896 lt_prog_compiler_static='-Bstatic'
6897 lt_prog_compiler_wl=''
6898 ;;
6899 esac
6900 ;;
6901 esac
6902 ;;
6903
6904 newsos6)
6905 lt_prog_compiler_pic='-KPIC'
6906 lt_prog_compiler_static='-Bstatic'
6907 ;;
6908
6909 *nto* | *qnx*)
6910 # QNX uses GNU C++, but need to define -shared option too, otherwise
6911 # it will coredump.
6912 lt_prog_compiler_pic='-fPIC -shared'
6913 ;;
6914
6915 osf3* | osf4* | osf5*)
6916 lt_prog_compiler_wl='-Wl,'
6917 # All OSF/1 code is PIC.
6918 lt_prog_compiler_static='-non_shared'
6919 ;;
6920
6921 rdos*)
6922 lt_prog_compiler_static='-non_shared'
6923 ;;
6924
6925 solaris*)
6926 lt_prog_compiler_pic='-KPIC'
6927 lt_prog_compiler_static='-Bstatic'
6928 case $cc_basename in
6929 f77* | f90* | f95*)
6930 lt_prog_compiler_wl='-Qoption ld ';;
6931 *)
6932 lt_prog_compiler_wl='-Wl,';;
6933 esac
6934 ;;
6935
6936 sunos4*)
6937 lt_prog_compiler_wl='-Qoption ld '
6938 lt_prog_compiler_pic='-PIC'
6939 lt_prog_compiler_static='-Bstatic'
6940 ;;
6941
6942 sysv4 | sysv4.2uw2* | sysv4.3*)
6943 lt_prog_compiler_wl='-Wl,'
6944 lt_prog_compiler_pic='-KPIC'
6945 lt_prog_compiler_static='-Bstatic'
6946 ;;
6947
6948 sysv4*MP*)
6949 if test -d /usr/nec ;then
6950 lt_prog_compiler_pic='-Kconform_pic'
6951 lt_prog_compiler_static='-Bstatic'
6952 fi
6953 ;;
6954
6955 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6956 lt_prog_compiler_wl='-Wl,'
6957 lt_prog_compiler_pic='-KPIC'
6958 lt_prog_compiler_static='-Bstatic'
6959 ;;
6960
6961 unicos*)
6962 lt_prog_compiler_wl='-Wl,'
6963 lt_prog_compiler_can_build_shared=no
6964 ;;
6965
6966 uts4*)
6967 lt_prog_compiler_pic='-pic'
6968 lt_prog_compiler_static='-Bstatic'
6969 ;;
6970
6971 *)
6972 lt_prog_compiler_can_build_shared=no
6973 ;;
6974 esac
6bf9431b 6975 fi
d7040cdb
SE
6976
6977case $host_os in
6978 # For platforms which do not support PIC, -DPIC is meaningless:
6979 *djgpp*)
6980 lt_prog_compiler_pic=
6981 ;;
6982 *)
6983 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6984 ;;
6985esac
1b9750d6
NC
6986{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6987echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
6988
6989
6990
6991
6992
6993
6994#
6995# Check to make sure the PIC flag actually works.
6996#
6997if test -n "$lt_prog_compiler_pic"; then
1b9750d6
NC
6998 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6999echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
d7040cdb
SE
7000if test "${lt_prog_compiler_pic_works+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7002else
d7040cdb
SE
7003 lt_prog_compiler_pic_works=no
7004 ac_outfile=conftest.$ac_objext
7005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7006 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7007 # Insert the option either (1) after the last *FLAGS variable, or
7008 # (2) before a word containing "conftest.", or (3) at the end.
7009 # Note that $ac_compile itself does not contain backslashes and begins
7010 # with a dollar sign (not a hyphen), so the echo should work correctly.
7011 # The option is referenced via a variable to avoid confusing sed.
7012 lt_compile=`echo "$ac_compile" | $SED \
7013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7015 -e 's:$: $lt_compiler_flag:'`
1b9750d6 7016 (eval echo "\"\$as_me:7016: $lt_compile\"" >&5)
d7040cdb
SE
7017 (eval "$lt_compile" 2>conftest.err)
7018 ac_status=$?
7019 cat conftest.err >&5
1b9750d6 7020 echo "$as_me:7020: \$? = $ac_status" >&5
d7040cdb
SE
7021 if (exit $ac_status) && test -s "$ac_outfile"; then
7022 # The compiler can only warn and ignore the option if not recognized
7023 # So say no if there are warnings other than the usual output.
7024 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7026 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7027 lt_prog_compiler_pic_works=yes
7028 fi
7029 fi
7030 $RM conftest*
6bf9431b 7031
6bf9431b 7032fi
1b9750d6
NC
7033{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7034echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6bf9431b 7035
d7040cdb
SE
7036if test x"$lt_prog_compiler_pic_works" = xyes; then
7037 case $lt_prog_compiler_pic in
7038 "" | " "*) ;;
7039 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7040 esac
252b5132 7041else
d7040cdb
SE
7042 lt_prog_compiler_pic=
7043 lt_prog_compiler_can_build_shared=no
252b5132 7044fi
6bf9431b 7045
252b5132 7046fi
6bf9431b 7047
6bf9431b 7048
6bf9431b 7049
d7040cdb
SE
7050
7051
7052
7053#
7054# Check to make sure the static flag actually works.
7055#
7056wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1b9750d6
NC
7057{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7058echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d7040cdb
SE
7059if test "${lt_prog_compiler_static_works+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7061else
d7040cdb
SE
7062 lt_prog_compiler_static_works=no
7063 save_LDFLAGS="$LDFLAGS"
7064 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7065 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7066 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7067 # The linker can only warn and ignore the option if not recognized
7068 # So say no if there are warnings
7069 if test -s conftest.err; then
7070 # Append any errors to the config.log.
7071 cat conftest.err 1>&5
7072 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7074 if diff conftest.exp conftest.er2 >/dev/null; then
7075 lt_prog_compiler_static_works=yes
7076 fi
7077 else
7078 lt_prog_compiler_static_works=yes
7079 fi
7080 fi
7081 $RM conftest*
7082 LDFLAGS="$save_LDFLAGS"
7083
252b5132 7084fi
1b9750d6
NC
7085{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7086echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
d7040cdb
SE
7087
7088if test x"$lt_prog_compiler_static_works" = xyes; then
7089 :
ac48eca1 7090else
d7040cdb 7091 lt_prog_compiler_static=
6bf9431b 7092fi
d7040cdb
SE
7093
7094
7095
7096
7097
7098
7099
1b9750d6
NC
7100 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7101echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d7040cdb
SE
7102if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 7104else
d7040cdb
SE
7105 lt_cv_prog_compiler_c_o=no
7106 $RM -r conftest 2>/dev/null
7107 mkdir conftest
7108 cd conftest
7109 mkdir out
7110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7111
7112 lt_compiler_flag="-o out/conftest2.$ac_objext"
7113 # Insert the option either (1) after the last *FLAGS variable, or
7114 # (2) before a word containing "conftest.", or (3) at the end.
7115 # Note that $ac_compile itself does not contain backslashes and begins
7116 # with a dollar sign (not a hyphen), so the echo should work correctly.
7117 lt_compile=`echo "$ac_compile" | $SED \
7118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7120 -e 's:$: $lt_compiler_flag:'`
1b9750d6 7121 (eval echo "\"\$as_me:7121: $lt_compile\"" >&5)
d7040cdb
SE
7122 (eval "$lt_compile" 2>out/conftest.err)
7123 ac_status=$?
7124 cat out/conftest.err >&5
1b9750d6 7125 echo "$as_me:7125: \$? = $ac_status" >&5
d7040cdb
SE
7126 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7127 then
7128 # The compiler can only warn and ignore the option if not recognized
7129 # So say no if there are warnings
7130 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7131 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7132 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7133 lt_cv_prog_compiler_c_o=yes
7134 fi
7135 fi
7136 chmod u+w . 2>&5
7137 $RM conftest*
7138 # SGI C++ compiler will create directory out/ii_files/ for
7139 # template instantiation
7140 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7141 $RM out/* && rmdir out
7142 cd ..
7143 $RM -r conftest
7144 $RM conftest*
6bf9431b 7145
6bf9431b 7146fi
1b9750d6
NC
7147{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7148echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6bf9431b 7149
6bf9431b 7150
6bf9431b 7151
6bf9431b 7152
6bf9431b
BE
7153
7154
1b9750d6
NC
7155 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7156echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d7040cdb 7157if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6bf9431b 7158 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 7159else
d7040cdb
SE
7160 lt_cv_prog_compiler_c_o=no
7161 $RM -r conftest 2>/dev/null
7162 mkdir conftest
7163 cd conftest
7164 mkdir out
7165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7166
7167 lt_compiler_flag="-o out/conftest2.$ac_objext"
7168 # Insert the option either (1) after the last *FLAGS variable, or
7169 # (2) before a word containing "conftest.", or (3) at the end.
7170 # Note that $ac_compile itself does not contain backslashes and begins
7171 # with a dollar sign (not a hyphen), so the echo should work correctly.
7172 lt_compile=`echo "$ac_compile" | $SED \
7173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7175 -e 's:$: $lt_compiler_flag:'`
1b9750d6 7176 (eval echo "\"\$as_me:7176: $lt_compile\"" >&5)
d7040cdb
SE
7177 (eval "$lt_compile" 2>out/conftest.err)
7178 ac_status=$?
7179 cat out/conftest.err >&5
1b9750d6 7180 echo "$as_me:7180: \$? = $ac_status" >&5
d7040cdb
SE
7181 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7182 then
7183 # The compiler can only warn and ignore the option if not recognized
7184 # So say no if there are warnings
7185 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7186 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7187 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7188 lt_cv_prog_compiler_c_o=yes
7189 fi
7190 fi
7191 chmod u+w . 2>&5
7192 $RM conftest*
7193 # SGI C++ compiler will create directory out/ii_files/ for
7194 # template instantiation
7195 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7196 $RM out/* && rmdir out
7197 cd ..
7198 $RM -r conftest
7199 $RM conftest*
7200
7201fi
1b9750d6
NC
7202{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7203echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
7204
7205
7206
7207
7208hard_links="nottested"
7209if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7210 # do not overwrite the value of need_locks provided by the user
1b9750d6
NC
7211 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7212echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d7040cdb
SE
7213 hard_links=yes
7214 $RM conftest*
7215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7216 touch conftest.a
7217 ln conftest.a conftest.b 2>&5 || hard_links=no
7218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1b9750d6
NC
7219 { echo "$as_me:$LINENO: result: $hard_links" >&5
7220echo "${ECHO_T}$hard_links" >&6; }
d7040cdb
SE
7221 if test "$hard_links" = no; then
7222 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7223echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7224 need_locks=warn
7225 fi
7226else
7227 need_locks=no
7228fi
7229
7230
7231
7232
7233
7234
1b9750d6
NC
7235 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7236echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d7040cdb
SE
7237
7238 runpath_var=
7239 allow_undefined_flag=
7240 always_export_symbols=no
7241 archive_cmds=
7242 archive_expsym_cmds=
7243 compiler_needs_object=no
7244 enable_shared_with_static_runtimes=no
7245 export_dynamic_flag_spec=
7246 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7247 hardcode_automatic=no
7248 hardcode_direct=no
7249 hardcode_direct_absolute=no
7250 hardcode_libdir_flag_spec=
7251 hardcode_libdir_flag_spec_ld=
7252 hardcode_libdir_separator=
7253 hardcode_minus_L=no
7254 hardcode_shlibpath_var=unsupported
7255 inherit_rpath=no
7256 link_all_deplibs=unknown
7257 module_cmds=
7258 module_expsym_cmds=
7259 old_archive_from_new_cmds=
7260 old_archive_from_expsyms_cmds=
7261 thread_safe_flag_spec=
7262 whole_archive_flag_spec=
7263 # include_expsyms should be a list of space-separated symbols to be *always*
7264 # included in the symbol list
7265 include_expsyms=
7266 # exclude_expsyms can be an extended regexp of symbols to exclude
7267 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7268 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7269 # as well as any symbol that contains `d'.
7270 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7271 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7272 # platforms (ab)use it in PIC code, but their linkers get confused if
7273 # the symbol is explicitly referenced. Since portable code cannot
7274 # rely on this symbol name, it's probably fine to never include it in
7275 # preloaded symbol tables.
7276 extract_expsyms_cmds=
7277
7278 case $host_os in
7279 cygwin* | mingw* | pw32*)
7280 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7281 # When not using gcc, we currently assume that we are using
7282 # Microsoft Visual C++.
7283 if test "$GCC" != yes; then
7284 with_gnu_ld=no
6bf9431b 7285 fi
d7040cdb
SE
7286 ;;
7287 interix*)
7288 # we just hope/assume this is gcc and not c89 (= MSVC++)
7289 with_gnu_ld=yes
7290 ;;
7291 openbsd*)
7292 with_gnu_ld=no
7293 ;;
7294 esac
7295
7296 ld_shlibs=yes
7297 if test "$with_gnu_ld" = yes; then
7298 # If archive_cmds runs LD, not CC, wlarc should be empty
7299 wlarc='${wl}'
7300
7301 # Set some defaults for GNU ld with shared library support. These
7302 # are reset later if shared libraries are not supported. Putting them
7303 # here allows them to be overridden if necessary.
7304 runpath_var=LD_RUN_PATH
7305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7306 export_dynamic_flag_spec='${wl}--export-dynamic'
7307 # ancient GNU ld didn't support --whole-archive et. al.
7308 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7309 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7310 else
7311 whole_archive_flag_spec=
7312 fi
7313 supports_anon_versioning=no
7314 case `$LD -v 2>&1` in
7315 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7316 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7317 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7318 *\ 2.11.*) ;; # other 2.11 versions
7319 *) supports_anon_versioning=yes ;;
7320 esac
6bf9431b 7321
d7040cdb
SE
7322 # See if GNU ld supports shared libraries.
7323 case $host_os in
7324 aix3* | aix4* | aix5*)
7325 # On AIX/PPC, the GNU linker is very broken
7326 if test "$host_cpu" != ia64; then
7327 ld_shlibs=no
7328 cat <<_LT_EOF 1>&2
7329
7330*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7331*** to be unable to reliably create shared libraries on AIX.
7332*** Therefore, libtool is disabling shared libraries support. If you
7333*** really care for shared libraries, you may want to modify your PATH
7334*** so that a non-GNU linker is found, and then restart.
7335
7336_LT_EOF
7337 fi
7338 ;;
ac48eca1 7339
d7040cdb
SE
7340 amigaos*)
7341 if test "$host_cpu" = m68k; then
7342 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)'
7343 hardcode_libdir_flag_spec='-L$libdir'
7344 hardcode_minus_L=yes
7345 fi
7346
7347 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7348 # that the semantics of dynamic libraries on AmigaOS, at least up
7349 # to version 4, is to share data among multiple programs linked
7350 # with the same dynamic library. Since this doesn't match the
7351 # behavior of shared libraries on other platforms, we can't use
7352 # them.
7353 ld_shlibs=no
7354 ;;
7355
7356 beos*)
7357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7358 allow_undefined_flag=unsupported
7359 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7360 # support --undefined. This deserves some investigation. FIXME
7361 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7362 else
7363 ld_shlibs=no
7364 fi
7365 ;;
7366
7367 cygwin* | mingw* | pw32*)
7368 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7369 # as there is no search path for DLLs.
7370 hardcode_libdir_flag_spec='-L$libdir'
7371 allow_undefined_flag=unsupported
7372 always_export_symbols=no
7373 enable_shared_with_static_runtimes=yes
7374 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7375
7376 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7378 # If the export-symbols file already is a .def file (1st line
7379 # is EXPORTS), use it as is; otherwise, prepend...
7380 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7381 cp $export_symbols $output_objdir/$soname.def;
7382 else
7383 echo EXPORTS > $output_objdir/$soname.def;
7384 cat $export_symbols >> $output_objdir/$soname.def;
7385 fi~
7386 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7387 else
7388 ld_shlibs=no
7389 fi
7390 ;;
7391
7392 interix[3-9]*)
7393 hardcode_direct=no
7394 hardcode_shlibpath_var=no
7395 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7396 export_dynamic_flag_spec='${wl}-E'
7397 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7398 # Instead, shared libraries are loaded at an image base (0x10000000 by
7399 # default) and relocated if they conflict, which is a slow very memory
7400 # consuming and fragmenting process. To avoid this, we pick a random,
7401 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7402 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7403 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7404 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'
7405 ;;
7406
7407 gnu* | linux* | tpf* | k*bsd*-gnu)
7408 tmp_diet=no
7409 if test "$host_os" = linux-dietlibc; then
7410 case $cc_basename in
7411 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7412 esac
7413 fi
7414 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7415 && test "$tmp_diet" = no
7416 then
7417 tmp_addflag=
7418 case $cc_basename,$host_cpu in
7419 pgcc*) # Portland Group C compiler
7420 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'
7421 tmp_addflag=' $pic_flag'
7422 ;;
7423 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7424 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'
7425 tmp_addflag=' $pic_flag -Mnomain' ;;
7426 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7427 tmp_addflag=' -i_dynamic' ;;
7428 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7429 tmp_addflag=' -i_dynamic -nofor_main' ;;
7430 ifc* | ifort*) # Intel Fortran compiler
7431 tmp_addflag=' -nofor_main' ;;
7432 esac
7433 case `$CC -V 2>&1 | sed 5q` in
7434 *Sun\ C*) # Sun C 5.9
7435 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'
7436 compiler_needs_object=yes
7437 tmp_sharedflag='-G' ;;
7438 *Sun\ F*) # Sun Fortran 8.3
7439 tmp_sharedflag='-G' ;;
7440 *)
7441 tmp_sharedflag='-shared' ;;
7442 esac
7443 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7444
7445 if test "x$supports_anon_versioning" = xyes; then
7446 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7447 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7448 echo "local: *; };" >> $output_objdir/$libname.ver~
7449 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7450 fi
7451 else
7452 ld_shlibs=no
7453 fi
7454 ;;
7455
7456 netbsd*)
7457 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7458 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7459 wlarc=
7460 else
7461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7462 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7463 fi
7464 ;;
7465
7466 solaris*)
7467 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7468 ld_shlibs=no
7469 cat <<_LT_EOF 1>&2
7470
7471*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7472*** create shared libraries on Solaris systems. Therefore, libtool
7473*** is disabling shared libraries support. We urge you to upgrade GNU
7474*** binutils to release 2.9.1 or newer. Another option is to modify
7475*** your PATH or compiler configuration so that the native linker is
7476*** used, and then restart.
7477
7478_LT_EOF
7479 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7481 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7482 else
7483 ld_shlibs=no
7484 fi
7485 ;;
7486
7487 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7488 case `$LD -v 2>&1` in
7489 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7490 ld_shlibs=no
7491 cat <<_LT_EOF 1>&2
7492
7493*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7494*** reliably create shared libraries on SCO systems. Therefore, libtool
7495*** is disabling shared libraries support. We urge you to upgrade GNU
7496*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7497*** your PATH or compiler configuration so that the native linker is
7498*** used, and then restart.
7499
7500_LT_EOF
7501 ;;
7502 *)
7503 # For security reasons, it is highly recommended that you always
7504 # use absolute paths for naming shared libraries, and exclude the
7505 # DT_RUNPATH tag from executables and libraries. But doing so
7506 # requires that you compile everything twice, which is a pain.
7507 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7508 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7510 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7511 else
7512 ld_shlibs=no
7513 fi
7514 ;;
7515 esac
7516 ;;
7517
7518 sunos4*)
7519 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7520 wlarc=
7521 hardcode_direct=yes
7522 hardcode_shlibpath_var=no
7523 ;;
7524
7525 *)
7526 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7528 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7529 else
7530 ld_shlibs=no
7531 fi
7532 ;;
7533 esac
7534
7535 if test "$ld_shlibs" = no; then
7536 runpath_var=
7537 hardcode_libdir_flag_spec=
7538 export_dynamic_flag_spec=
7539 whole_archive_flag_spec=
7540 fi
7541 else
7542 # PORTME fill in a description of your system's linker (not GNU ld)
7543 case $host_os in
7544 aix3*)
7545 allow_undefined_flag=unsupported
7546 always_export_symbols=yes
7547 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'
7548 # Note: this linker hardcodes the directories in LIBPATH if there
7549 # are no directories specified by -L.
7550 hardcode_minus_L=yes
7551 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7552 # Neither direct hardcoding nor static linking is supported with a
7553 # broken collect2.
7554 hardcode_direct=unsupported
7555 fi
7556 ;;
7557
7558 aix4* | aix5*)
7559 if test "$host_cpu" = ia64; then
7560 # On IA64, the linker does run time linking by default, so we don't
7561 # have to do anything special.
7562 aix_use_runtimelinking=no
7563 exp_sym_flag='-Bexport'
7564 no_entry_flag=""
7565 else
7566 # If we're using GNU nm, then we don't want the "-C" option.
7567 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7568 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7569 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'
7570 else
7571 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'
7572 fi
7573 aix_use_runtimelinking=no
7574
7575 # Test if we are trying to use run time linking or normal
7576 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7577 # need to do runtime linking.
7578 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7579 for ld_flag in $LDFLAGS; do
7580 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7581 aix_use_runtimelinking=yes
7582 break
7583 fi
7584 done
7585 ;;
7586 esac
7587
7588 exp_sym_flag='-bexport'
7589 no_entry_flag='-bnoentry'
7590 fi
7591
7592 # When large executables or shared objects are built, AIX ld can
7593 # have problems creating the table of contents. If linking a library
7594 # or program results in "error TOC overflow" add -mminimal-toc to
7595 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7596 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7597
7598 archive_cmds=''
7599 hardcode_direct=yes
7600 hardcode_direct_absolute=yes
7601 hardcode_libdir_separator=':'
7602 link_all_deplibs=yes
7603 file_list_spec='${wl}-f,'
7604
7605 if test "$GCC" = yes; then
7606 case $host_os in aix4.[012]|aix4.[012].*)
7607 # We only want to do this on AIX 4.2 and lower, the check
7608 # below for broken collect2 doesn't work under 4.3+
7609 collect2name=`${CC} -print-prog-name=collect2`
7610 if test -f "$collect2name" &&
7611 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7612 then
7613 # We have reworked collect2
7614 :
7615 else
7616 # We have old collect2
7617 hardcode_direct=unsupported
7618 # It fails to find uninstalled libraries when the uninstalled
7619 # path is not listed in the libpath. Setting hardcode_minus_L
7620 # to unsupported forces relinking
7621 hardcode_minus_L=yes
7622 hardcode_libdir_flag_spec='-L$libdir'
7623 hardcode_libdir_separator=
7624 fi
7625 ;;
7626 esac
7627 shared_flag='-shared'
7628 if test "$aix_use_runtimelinking" = yes; then
7629 shared_flag="$shared_flag "'${wl}-G'
7630 fi
7631 else
7632 # not using gcc
7633 if test "$host_cpu" = ia64; then
7634 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7635 # chokes on -Wl,-G. The following line is correct:
7636 shared_flag='-G'
7637 else
7638 if test "$aix_use_runtimelinking" = yes; then
7639 shared_flag='${wl}-G'
7640 else
7641 shared_flag='${wl}-bM:SRE'
7642 fi
7643 fi
7644 fi
7645
7646 # It seems that -bexpall does not export symbols beginning with
7647 # underscore (_), so it is better to generate a list of symbols to export.
7648 always_export_symbols=yes
7649 if test "$aix_use_runtimelinking" = yes; then
7650 # Warning - without using the other runtime loading flags (-brtl),
7651 # -berok will link without error, but may produce a broken library.
7652 allow_undefined_flag='-berok'
7653 # Determine the default libpath from the value encoded in an
7654 # empty executable.
7655 cat >conftest.$ac_ext <<_ACEOF
6bf9431b
BE
7656/* confdefs.h. */
7657_ACEOF
7658cat confdefs.h >>conftest.$ac_ext
7659cat >>conftest.$ac_ext <<_ACEOF
7660/* end confdefs.h. */
20e95c23
DJ
7661
7662int
7663main ()
7664{
7665
7666 ;
7667 return 0;
7668}
6bf9431b 7669_ACEOF
d7040cdb 7670rm -f conftest.$ac_objext conftest$ac_exeext
1b9750d6
NC
7671if { (ac_try="$ac_link"
7672case "(($ac_try" in
7673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7674 *) ac_try_echo=$ac_try;;
7675esac
7676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7677 (eval "$ac_link") 2>conftest.er1
6bf9431b
BE
7678 ac_status=$?
7679 grep -v '^ *+' conftest.er1 >conftest.err
7680 rm -f conftest.er1
7681 cat conftest.err >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
7683 (exit $ac_status); } && {
7684 test -z "$ac_c_werror_flag" ||
7685 test ! -s conftest.err
7686 } && test -s conftest$ac_exeext &&
7687 $as_test_x conftest$ac_exeext; then
6bf9431b 7688
d7040cdb
SE
7689lt_aix_libpath_sed='
7690 /Import File Strings/,/^$/ {
7691 /^0/ {
7692 s/^0 *\(.*\)$/\1/
7693 p
7694 }
7695 }'
7696aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7697# Check for a 64-bit object if we didn't find anything.
7698if test -z "$aix_libpath"; then
7699 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
252b5132 7700fi
6bf9431b 7701else
d7040cdb
SE
7702 echo "$as_me: failed program was:" >&5
7703sed 's/^/| /' conftest.$ac_ext >&5
6bf9431b 7704
1b9750d6 7705
6bf9431b 7706fi
1b9750d6
NC
7707
7708rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d7040cdb
SE
7709 conftest$ac_exeext conftest.$ac_ext
7710if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20e95c23 7711
d7040cdb
SE
7712 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7713 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"
7714 else
7715 if test "$host_cpu" = ia64; then
7716 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7717 allow_undefined_flag="-z nodefs"
7718 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"
7719 else
7720 # Determine the default libpath from the value encoded in an
7721 # empty executable.
7722 cat >conftest.$ac_ext <<_ACEOF
20e95c23
DJ
7723/* confdefs.h. */
7724_ACEOF
7725cat confdefs.h >>conftest.$ac_ext
7726cat >>conftest.$ac_ext <<_ACEOF
7727/* end confdefs.h. */
20e95c23 7728
20e95c23
DJ
7729int
7730main ()
7731{
d7040cdb
SE
7732
7733 ;
7734 return 0;
20e95c23
DJ
7735}
7736_ACEOF
d7040cdb 7737rm -f conftest.$ac_objext conftest$ac_exeext
1b9750d6
NC
7738if { (ac_try="$ac_link"
7739case "(($ac_try" in
7740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741 *) ac_try_echo=$ac_try;;
7742esac
7743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744 (eval "$ac_link") 2>conftest.er1
d7040cdb
SE
7745 ac_status=$?
7746 grep -v '^ *+' conftest.er1 >conftest.err
7747 rm -f conftest.er1
7748 cat conftest.err >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
7750 (exit $ac_status); } && {
7751 test -z "$ac_c_werror_flag" ||
7752 test ! -s conftest.err
7753 } && test -s conftest$ac_exeext &&
7754 $as_test_x conftest$ac_exeext; then
d7040cdb
SE
7755
7756lt_aix_libpath_sed='
7757 /Import File Strings/,/^$/ {
7758 /^0/ {
7759 s/^0 *\(.*\)$/\1/
7760 p
7761 }
7762 }'
7763aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7764# Check for a 64-bit object if we didn't find anything.
7765if test -z "$aix_libpath"; then
7766 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7767fi
20e95c23 7768else
d7040cdb 7769 echo "$as_me: failed program was:" >&5
20e95c23 7770sed 's/^/| /' conftest.$ac_ext >&5
252b5132 7771
1b9750d6 7772
20e95c23 7773fi
1b9750d6
NC
7774
7775rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d7040cdb
SE
7776 conftest$ac_exeext conftest.$ac_ext
7777if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7778
7779 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7780 # Warning - without using the other run time loading flags,
7781 # -berok will link without error, but may produce a broken library.
7782 no_undefined_flag=' ${wl}-bernotok'
7783 allow_undefined_flag=' ${wl}-berok'
7784 # Exported symbols can be pulled into shared objects from archives
7785 whole_archive_flag_spec='$convenience'
7786 archive_cmds_need_lc=yes
7787 # This is similar to how AIX traditionally builds its shared libraries.
7788 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'
7789 fi
7790 fi
7791 ;;
252b5132 7792
d7040cdb
SE
7793 amigaos*)
7794 if test "$host_cpu" = m68k; then
7795 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)'
7796 hardcode_libdir_flag_spec='-L$libdir'
7797 hardcode_minus_L=yes
7798 fi
7799 # see comment about different semantics on the GNU ld section
7800 ld_shlibs=no
7801 ;;
6bf9431b 7802
d7040cdb
SE
7803 bsdi[45]*)
7804 export_dynamic_flag_spec=-rdynamic
7805 ;;
252b5132 7806
d7040cdb
SE
7807 cygwin* | mingw* | pw32*)
7808 # When not using gcc, we currently assume that we are using
7809 # Microsoft Visual C++.
7810 # hardcode_libdir_flag_spec is actually meaningless, as there is
7811 # no search path for DLLs.
7812 hardcode_libdir_flag_spec=' '
7813 allow_undefined_flag=unsupported
7814 # Tell ltmain to make .lib files, not .a files.
7815 libext=lib
7816 # Tell ltmain to make .dll files, not .so files.
7817 shrext_cmds=".dll"
7818 # FIXME: Setting linknames here is a bad hack.
7819 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7820 # The linker will automatically build a .lib file if we build a DLL.
7821 old_archive_from_new_cmds='true'
7822 # FIXME: Should let the user specify the lib program.
7823 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7824 fix_srcfile_path='`cygpath -w "$srcfile"`'
7825 enable_shared_with_static_runtimes=yes
7826 ;;
6bf9431b 7827
d7040cdb
SE
7828 darwin* | rhapsody*)
7829 case $host_os in
7830 rhapsody* | darwin1.[012])
7831 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7832 ;;
7833 *) # Darwin 1.3 on
7834 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7835 10.[012])
7836 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7837 ;;
7838 10.*)
7839 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7840 ;;
7841 esac
7842 ;;
7843 esac
7844 archive_cmds_need_lc=no
7845 hardcode_direct=no
7846 hardcode_automatic=yes
7847 hardcode_shlibpath_var=unsupported
7848 whole_archive_flag_spec=''
7849 link_all_deplibs=yes
7850 if test "$GCC" = yes ; then
7851 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7853else
7854 lt_cv_apple_cc_single_mod=no
7855 if test -z "${LT_MULTI_MODULE}"; then
7856 # By default we will add the -single_module flag. You can override
7857 # by either setting the environment variable LT_MULTI_MODULE
7858 # non-empty at configure time, or by adding -multi-module to the
7859 # link flags.
7860 echo "int foo(void){return 1;}" > conftest.c
7861 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7862 -dynamiclib ${wl}-single_module conftest.c
7863 if test -f libconftest.dylib; then
7864 lt_cv_apple_cc_single_mod=yes
7865 rm libconftest.dylib
7866 fi
7867 rm conftest.$ac_ext
7868 fi
7869fi
6bf9431b 7870
d7040cdb
SE
7871 output_verbose_link_cmd=echo
7872 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7873 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7874 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7875 else
7876 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7877 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7878 fi
7879 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7880 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7881 else
7882 case $cc_basename in
7883 xlc*)
7884 output_verbose_link_cmd=echo
7885 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7886 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7887 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7888 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7889 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7890 ;;
7891 *)
7892 ld_shlibs=no
7893 ;;
7894 esac
7895 fi
7896 ;;
252b5132 7897
d7040cdb
SE
7898 dgux*)
7899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7900 hardcode_libdir_flag_spec='-L$libdir'
7901 hardcode_shlibpath_var=no
7902 ;;
6bf9431b 7903
d7040cdb
SE
7904 freebsd1*)
7905 ld_shlibs=no
7906 ;;
252b5132 7907
d7040cdb
SE
7908 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7909 # support. Future versions do this automatically, but an explicit c++rt0.o
7910 # does not break anything, and helps significantly (at the cost of a little
7911 # extra space).
7912 freebsd2.2*)
7913 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7914 hardcode_libdir_flag_spec='-R$libdir'
7915 hardcode_direct=yes
7916 hardcode_shlibpath_var=no
7917 ;;
6bf9431b 7918
d7040cdb
SE
7919 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7920 freebsd2*)
7921 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7922 hardcode_direct=yes
7923 hardcode_minus_L=yes
7924 hardcode_shlibpath_var=no
7925 ;;
252b5132 7926
d7040cdb
SE
7927 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7928 freebsd* | dragonfly*)
7929 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7930 hardcode_libdir_flag_spec='-R$libdir'
7931 hardcode_direct=yes
7932 hardcode_shlibpath_var=no
7933 ;;
252b5132 7934
d7040cdb
SE
7935 hpux9*)
7936 if test "$GCC" = yes; then
7937 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'
7938 else
7939 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'
7940 fi
7941 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7942 hardcode_libdir_separator=:
7943 hardcode_direct=yes
7944
7945 # hardcode_minus_L: Not really in the search PATH,
7946 # but as the default location of the library.
7947 hardcode_minus_L=yes
7948 export_dynamic_flag_spec='${wl}-E'
7949 ;;
6bf9431b 7950
d7040cdb
SE
7951 hpux10*)
7952 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7953 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7954 else
7955 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7956 fi
7957 if test "$with_gnu_ld" = no; then
7958 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7959 hardcode_libdir_flag_spec_ld='+b $libdir'
7960 hardcode_libdir_separator=:
7961 hardcode_direct=yes
7962 hardcode_direct_absolute=yes
7963 export_dynamic_flag_spec='${wl}-E'
7964 # hardcode_minus_L: Not really in the search PATH,
7965 # but as the default location of the library.
7966 hardcode_minus_L=yes
7967 fi
7968 ;;
252b5132 7969
d7040cdb
SE
7970 hpux11*)
7971 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7972 case $host_cpu in
7973 hppa*64*)
7974 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7975 ;;
7976 ia64*)
7977 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7978 ;;
7979 *)
7980 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7981 ;;
7982 esac
7983 else
7984 case $host_cpu in
7985 hppa*64*)
7986 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7987 ;;
7988 ia64*)
7989 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7990 ;;
7991 *)
7992 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7993 ;;
7994 esac
7995 fi
7996 if test "$with_gnu_ld" = no; then
7997 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7998 hardcode_libdir_separator=:
7999
8000 case $host_cpu in
8001 hppa*64*|ia64*)
8002 hardcode_direct=no
8003 hardcode_shlibpath_var=no
8004 ;;
8005 *)
8006 hardcode_direct=yes
8007 hardcode_direct_absolute=yes
8008 export_dynamic_flag_spec='${wl}-E'
8009
8010 # hardcode_minus_L: Not really in the search PATH,
8011 # but as the default location of the library.
8012 hardcode_minus_L=yes
8013 ;;
8014 esac
8015 fi
8016 ;;
8017
8018 irix5* | irix6* | nonstopux*)
8019 if test "$GCC" = yes; then
8020 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'
8021 # Try to use the -exported_symbol ld option, if it does not
8022 # work, assume that -exports_file does not work either and
8023 # implicitly export all symbols.
8024 save_LDFLAGS="$LDFLAGS"
8025 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8026 cat >conftest.$ac_ext <<_ACEOF
8027int foo(void) {}
20e95c23 8028_ACEOF
d7040cdb 8029rm -f conftest.$ac_objext conftest$ac_exeext
1b9750d6
NC
8030if { (ac_try="$ac_link"
8031case "(($ac_try" in
8032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8033 *) ac_try_echo=$ac_try;;
8034esac
8035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8036 (eval "$ac_link") 2>conftest.er1
20e95c23
DJ
8037 ac_status=$?
8038 grep -v '^ *+' conftest.er1 >conftest.err
8039 rm -f conftest.er1
8040 cat conftest.err >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
8042 (exit $ac_status); } && {
8043 test -z "$ac_c_werror_flag" ||
8044 test ! -s conftest.err
8045 } && test -s conftest$ac_exeext &&
8046 $as_test_x conftest$ac_exeext; then
d7040cdb
SE
8047 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'
8048
8049else
8050 echo "$as_me: failed program was:" >&5
8051sed 's/^/| /' conftest.$ac_ext >&5
8052
1b9750d6 8053
d7040cdb 8054fi
1b9750d6
NC
8055
8056rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d7040cdb
SE
8057 conftest$ac_exeext conftest.$ac_ext
8058 LDFLAGS="$save_LDFLAGS"
8059 else
8060 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'
8061 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'
8062 fi
8063 archive_cmds_need_lc='no'
8064 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8065 hardcode_libdir_separator=:
8066 inherit_rpath=yes
8067 link_all_deplibs=yes
8068 ;;
8069
8070 netbsd*)
8071 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8072 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8073 else
8074 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8075 fi
8076 hardcode_libdir_flag_spec='-R$libdir'
8077 hardcode_direct=yes
8078 hardcode_shlibpath_var=no
8079 ;;
8080
8081 newsos6)
8082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8083 hardcode_direct=yes
8084 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8085 hardcode_libdir_separator=:
8086 hardcode_shlibpath_var=no
8087 ;;
8088
8089 *nto* | *qnx*)
8090 ;;
8091
8092 openbsd*)
8093 hardcode_direct=yes
8094 hardcode_shlibpath_var=no
8095 hardcode_direct_absolute=yes
8096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8097 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8098 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8099 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8100 export_dynamic_flag_spec='${wl}-E'
8101 else
8102 case $host_os in
8103 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8104 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8105 hardcode_libdir_flag_spec='-R$libdir'
8106 ;;
8107 *)
8108 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8109 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8110 ;;
8111 esac
8112 fi
8113 ;;
8114
8115 os2*)
8116 hardcode_libdir_flag_spec='-L$libdir'
8117 hardcode_minus_L=yes
8118 allow_undefined_flag=unsupported
8119 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'
8120 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8121 ;;
8122
8123 osf3*)
8124 if test "$GCC" = yes; then
8125 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8126 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'
8127 else
8128 allow_undefined_flag=' -expect_unresolved \*'
8129 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'
8130 fi
8131 archive_cmds_need_lc='no'
8132 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8133 hardcode_libdir_separator=:
8134 ;;
8135
8136 osf4* | osf5*) # as osf3* with the addition of -msym flag
8137 if test "$GCC" = yes; then
8138 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8139 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'
8140 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8141 else
8142 allow_undefined_flag=' -expect_unresolved \*'
8143 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'
8144 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~
8145 $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'
8146
8147 # Both c and cxx compiler support -rpath directly
8148 hardcode_libdir_flag_spec='-rpath $libdir'
8149 fi
8150 archive_cmds_need_lc='no'
8151 hardcode_libdir_separator=:
8152 ;;
8153
8154 solaris*)
8155 no_undefined_flag=' -z defs'
8156 if test "$GCC" = yes; then
8157 wlarc='${wl}'
8158 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8159 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8160 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8161 else
8162 case `$CC -V 2>&1` in
8163 *"Compilers 5.0"*)
8164 wlarc=''
8165 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8166 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8167 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8168 ;;
8169 *)
8170 wlarc='${wl}'
8171 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8172 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8173 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8174 ;;
8175 esac
8176 fi
8177 hardcode_libdir_flag_spec='-R$libdir'
8178 hardcode_shlibpath_var=no
8179 case $host_os in
8180 solaris2.[0-5] | solaris2.[0-5].*) ;;
8181 *)
8182 # The compiler driver will combine and reorder linker options,
8183 # but understands `-z linker_flag'. GCC discards it without `$wl',
8184 # but is careful enough not to reorder.
8185 # Supported since Solaris 2.6 (maybe 2.5.1?)
8186 if test "$GCC" = yes; then
8187 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8188 else
8189 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8190 fi
8191 ;;
8192 esac
8193 link_all_deplibs=yes
8194 ;;
8195
8196 sunos4*)
8197 if test "x$host_vendor" = xsequent; then
8198 # Use $CC to link under sequent, because it throws in some extra .o
8199 # files that make .init and .fini sections work.
8200 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8201 else
8202 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8203 fi
8204 hardcode_libdir_flag_spec='-L$libdir'
8205 hardcode_direct=yes
8206 hardcode_minus_L=yes
8207 hardcode_shlibpath_var=no
8208 ;;
8209
8210 sysv4)
8211 case $host_vendor in
8212 sni)
8213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8214 hardcode_direct=yes # is this really true???
8215 ;;
8216 siemens)
8217 ## LD is ld it makes a PLAMLIB
8218 ## CC just makes a GrossModule.
8219 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8220 reload_cmds='$CC -r -o $output$reload_objs'
8221 hardcode_direct=no
8222 ;;
8223 motorola)
8224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8225 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8226 ;;
8227 esac
8228 runpath_var='LD_RUN_PATH'
8229 hardcode_shlibpath_var=no
8230 ;;
8231
8232 sysv4.3*)
8233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8234 hardcode_shlibpath_var=no
8235 export_dynamic_flag_spec='-Bexport'
8236 ;;
8237
8238 sysv4*MP*)
8239 if test -d /usr/nec; then
8240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8241 hardcode_shlibpath_var=no
8242 runpath_var=LD_RUN_PATH
8243 hardcode_runpath_var=yes
8244 ld_shlibs=yes
8245 fi
8246 ;;
8247
8248 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8249 no_undefined_flag='${wl}-z,text'
8250 archive_cmds_need_lc=no
8251 hardcode_shlibpath_var=no
8252 runpath_var='LD_RUN_PATH'
8253
8254 if test "$GCC" = yes; then
8255 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8256 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8257 else
8258 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8259 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8260 fi
8261 ;;
8262
8263 sysv5* | sco3.2v5* | sco5v6*)
8264 # Note: We can NOT use -z defs as we might desire, because we do not
8265 # link with -lc, and that would cause any symbols used from libc to
8266 # always be unresolved, which means just about no library would
8267 # ever link correctly. If we're not using GNU ld we use -z text
8268 # though, which does catch some bad symbols but isn't as heavy-handed
8269 # as -z defs.
8270 no_undefined_flag='${wl}-z,text'
8271 allow_undefined_flag='${wl}-z,nodefs'
8272 archive_cmds_need_lc=no
8273 hardcode_shlibpath_var=no
8274 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8275 hardcode_libdir_separator=':'
8276 link_all_deplibs=yes
8277 export_dynamic_flag_spec='${wl}-Bexport'
8278 runpath_var='LD_RUN_PATH'
8279
8280 if test "$GCC" = yes; then
8281 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8282 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8283 else
8284 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8285 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8286 fi
8287 ;;
8288
8289 uts4*)
8290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8291 hardcode_libdir_flag_spec='-L$libdir'
8292 hardcode_shlibpath_var=no
8293 ;;
8294
8295 *)
8296 ld_shlibs=no
8297 ;;
8298 esac
8299
8300 if test x$host_vendor = xsni; then
8301 case $host in
8302 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8303 export_dynamic_flag_spec='${wl}-Blargedynsym'
8304 ;;
8305 esac
8306 fi
8307 fi
8308
1b9750d6
NC
8309{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8310echo "${ECHO_T}$ld_shlibs" >&6; }
d7040cdb
SE
8311test "$ld_shlibs" = no && can_build_shared=no
8312
8313with_gnu_ld=$with_gnu_ld
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329#
8330# Do we need to explicitly link libc?
8331#
8332case "x$archive_cmds_need_lc" in
8333x|xyes)
8334 # Assume -lc should be added
8335 archive_cmds_need_lc=yes
8336
8337 if test "$enable_shared" = yes && test "$GCC" = yes; then
8338 case $archive_cmds in
8339 *'~'*)
8340 # FIXME: we may have to deal with multi-command sequences.
8341 ;;
8342 '$CC '*)
8343 # Test whether the compiler implicitly links with -lc since on some
8344 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8345 # to ld, don't add -lc before -lgcc.
1b9750d6
NC
8346 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8347echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d7040cdb
SE
8348 $RM conftest*
8349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8350
8351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8352 (eval $ac_compile) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } 2>conftest.err; then
8356 soname=conftest
8357 lib=conftest
8358 libobjs=conftest.$ac_objext
8359 deplibs=
8360 wl=$lt_prog_compiler_wl
8361 pic_flag=$lt_prog_compiler_pic
8362 compiler_flags=-v
8363 linker_flags=-v
8364 verstring=
8365 output_objdir=.
8366 libname=conftest
8367 lt_save_allow_undefined_flag=$allow_undefined_flag
8368 allow_undefined_flag=
8369 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8370 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8371 ac_status=$?
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }
8374 then
8375 archive_cmds_need_lc=no
8376 else
8377 archive_cmds_need_lc=yes
8378 fi
8379 allow_undefined_flag=$lt_save_allow_undefined_flag
8380 else
8381 cat conftest.err 1>&5
8382 fi
8383 $RM conftest*
1b9750d6
NC
8384 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8385echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
d7040cdb
SE
8386 ;;
8387 esac
8388 fi
8389 ;;
8390esac
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
1b9750d6
NC
8548 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8549echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d7040cdb
SE
8550withGCC=$GCC
8551if test "$withGCC" = yes; then
8552 case $host_os in
8553 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8554 *) lt_awk_arg="/^libraries:/" ;;
8555 esac
8556 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8557 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8558 # if the path contains ";" then we assume it to be the separator
8559 # otherwise default to the standard path separator (i.e. ":") - it is
8560 # assumed that no part of a normal pathname contains ";" but that should
8561 # okay in the real world where ";" in dirpaths is itself problematic.
8562 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8563 else
8564 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8565 fi
8566 # Ok, now we have the path, separated by spaces, we can step through it
8567 # and add multilib dir if necessary.
8568 lt_tmp_lt_search_path_spec=
8569 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8570 for lt_sys_path in $lt_search_path_spec; do
8571 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8572 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8573 else
8574 test -d "$lt_sys_path" && \
8575 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8576 fi
8577 done
8578 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8579BEGIN {RS=" "; FS="/|\n";} {
8580 lt_foo="";
8581 lt_count=0;
8582 for (lt_i = NF; lt_i > 0; lt_i--) {
8583 if ($lt_i != "" && $lt_i != ".") {
8584 if ($lt_i == "..") {
8585 lt_count++;
8586 } else {
8587 if (lt_count == 0) {
8588 lt_foo="/" $lt_i lt_foo;
8589 } else {
8590 lt_count--;
8591 }
8592 }
8593 }
8594 }
8595 if (lt_foo != "") { lt_freq[lt_foo]++; }
8596 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8597}'`
8598 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8599else
8600 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8601fi
8602library_names_spec=
8603libname_spec='lib$name'
8604soname_spec=
8605shrext_cmds=".so"
8606postinstall_cmds=
8607postuninstall_cmds=
8608finish_cmds=
8609finish_eval=
8610shlibpath_var=
8611shlibpath_overrides_runpath=unknown
8612version_type=none
8613dynamic_linker="$host_os ld.so"
8614sys_lib_dlsearch_path_spec="/lib /usr/lib"
8615need_lib_prefix=unknown
8616hardcode_into_libs=no
8617
8618# when you set need_version to no, make sure it does not cause -set_version
8619# flags to be left without arguments
8620need_version=unknown
8621
8622case $host_os in
8623aix3*)
8624 version_type=linux
8625 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8626 shlibpath_var=LIBPATH
8627
8628 # AIX 3 has no versioning support, so we append a major version to the name.
8629 soname_spec='${libname}${release}${shared_ext}$major'
8630 ;;
8631
8632aix4* | aix5*)
8633 version_type=linux
8634 need_lib_prefix=no
8635 need_version=no
8636 hardcode_into_libs=yes
8637 if test "$host_cpu" = ia64; then
8638 # AIX 5 supports IA64
8639 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8640 shlibpath_var=LD_LIBRARY_PATH
8641 else
8642 # With GCC up to 2.95.x, collect2 would create an import file
8643 # for dependence libraries. The import file would start with
8644 # the line `#! .'. This would cause the generated library to
8645 # depend on `.', always an invalid library. This was fixed in
8646 # development snapshots of GCC prior to 3.0.
8647 case $host_os in
8648 aix4 | aix4.[01] | aix4.[01].*)
8649 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8650 echo ' yes '
8651 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8652 :
8653 else
8654 can_build_shared=no
8655 fi
8656 ;;
8657 esac
8658 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8659 # soname into executable. Probably we can add versioning support to
8660 # collect2, so additional links can be useful in future.
8661 if test "$aix_use_runtimelinking" = yes; then
8662 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8663 # instead of lib<name>.a to let people know that these are not
8664 # typical AIX shared libraries.
8665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8666 else
8667 # We preserve .a as extension for shared libraries through AIX4.2
8668 # and later when we are not doing run time linking.
8669 library_names_spec='${libname}${release}.a $libname.a'
8670 soname_spec='${libname}${release}${shared_ext}$major'
8671 fi
8672 shlibpath_var=LIBPATH
8673 fi
8674 ;;
8675
8676amigaos*)
8677 if test "$host_cpu" = m68k; then
8678 library_names_spec='$libname.ixlibrary $libname.a'
8679 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8680 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'
8681 else
8682 dynamic_linker=no
8683 fi
8684 ;;
8685
8686beos*)
8687 library_names_spec='${libname}${shared_ext}'
8688 dynamic_linker="$host_os ld.so"
8689 shlibpath_var=LIBRARY_PATH
8690 ;;
8691
8692bsdi[45]*)
8693 version_type=linux
8694 need_version=no
8695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8696 soname_spec='${libname}${release}${shared_ext}$major'
8697 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8698 shlibpath_var=LD_LIBRARY_PATH
8699 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8700 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8701 # the default ld.so.conf also contains /usr/contrib/lib and
8702 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8703 # libtool to hard-code these into programs
8704 ;;
8705
8706cygwin* | mingw* | pw32*)
8707 version_type=windows
8708 shrext_cmds=".dll"
8709 need_version=no
8710 need_lib_prefix=no
8711
8712 case $withGCC,$host_os in
8713 yes,cygwin* | yes,mingw* | yes,pw32*)
8714 library_names_spec='$libname.dll.a'
8715 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8716 postinstall_cmds='base_file=`basename \${file}`~
8717 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8718 dldir=$destdir/`dirname \$dlpath`~
8719 test -d \$dldir || mkdir -p \$dldir~
8720 $install_prog $dir/$dlname \$dldir/$dlname~
8721 chmod a+x \$dldir/$dlname~
8722 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8723 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8724 fi'
8725 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8726 dlpath=$dir/\$dldll~
8727 $RM \$dlpath'
8728 shlibpath_overrides_runpath=yes
8729
8730 case $host_os in
8731 cygwin*)
8732 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8733 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8734 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8735 ;;
8736 mingw*)
8737 # MinGW DLLs use traditional 'lib' prefix
8738 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8739 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8740 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8741 # It is most probably a Windows format PATH printed by
8742 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8743 # path with ; separators, and with drive letters. We can handle the
8744 # drive letters (cygwin fileutils understands them), so leave them,
8745 # especially as we might pass files found there to a mingw objdump,
8746 # which wouldn't understand a cygwinified path. Ahh.
8747 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8748 else
8749 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8750 fi
8751 ;;
8752 pw32*)
8753 # pw32 DLLs use 'pw' prefix rather than 'lib'
8754 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8755 ;;
8756 esac
8757 ;;
8758
8759 *)
8760 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8761 ;;
8762 esac
8763 dynamic_linker='Win32 ld.exe'
8764 # FIXME: first we should search . and the directory the executable is in
8765 shlibpath_var=PATH
8766 ;;
8767
8768darwin* | rhapsody*)
8769 dynamic_linker="$host_os dyld"
8770 version_type=darwin
8771 need_lib_prefix=no
8772 need_version=no
8773 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8774 soname_spec='${libname}${release}${major}$shared_ext'
8775 shlibpath_overrides_runpath=yes
8776 shlibpath_var=DYLD_LIBRARY_PATH
8777 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8778
8779 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8780 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8781 ;;
8782
8783dgux*)
8784 version_type=linux
8785 need_lib_prefix=no
8786 need_version=no
8787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8788 soname_spec='${libname}${release}${shared_ext}$major'
8789 shlibpath_var=LD_LIBRARY_PATH
8790 ;;
8791
8792freebsd1*)
8793 dynamic_linker=no
8794 ;;
8795
8796freebsd* | dragonfly*)
8797 # DragonFly does not have aout. When/if they implement a new
8798 # versioning mechanism, adjust this.
8799 if test -x /usr/bin/objformat; then
8800 objformat=`/usr/bin/objformat`
8801 else
8802 case $host_os in
8803 freebsd[123]*) objformat=aout ;;
8804 *) objformat=elf ;;
8805 esac
8806 fi
8807 version_type=freebsd-$objformat
8808 case $version_type in
8809 freebsd-elf*)
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8811 need_version=no
8812 need_lib_prefix=no
8813 ;;
8814 freebsd-*)
8815 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8816 need_version=yes
8817 ;;
8818 esac
8819 shlibpath_var=LD_LIBRARY_PATH
8820 case $host_os in
8821 freebsd2*)
8822 shlibpath_overrides_runpath=yes
8823 ;;
8824 freebsd3.[01]* | freebsdelf3.[01]*)
8825 shlibpath_overrides_runpath=yes
8826 hardcode_into_libs=yes
8827 ;;
8828 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8829 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8830 shlibpath_overrides_runpath=no
8831 hardcode_into_libs=yes
8832 ;;
8833 *) # from 4.6 on, and DragonFly
8834 shlibpath_overrides_runpath=yes
8835 hardcode_into_libs=yes
8836 ;;
8837 esac
8838 ;;
8839
8840gnu*)
8841 version_type=linux
8842 need_lib_prefix=no
8843 need_version=no
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8845 soname_spec='${libname}${release}${shared_ext}$major'
8846 shlibpath_var=LD_LIBRARY_PATH
8847 hardcode_into_libs=yes
8848 ;;
8849
8850hpux9* | hpux10* | hpux11*)
8851 # Give a soname corresponding to the major version so that dld.sl refuses to
8852 # link against other versions.
8853 version_type=sunos
8854 need_lib_prefix=no
8855 need_version=no
8856 case $host_cpu in
8857 ia64*)
8858 shrext_cmds='.so'
8859 hardcode_into_libs=yes
8860 dynamic_linker="$host_os dld.so"
8861 shlibpath_var=LD_LIBRARY_PATH
8862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8864 soname_spec='${libname}${release}${shared_ext}$major'
8865 if test "X$HPUX_IA64_MODE" = X32; then
8866 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8867 else
8868 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8869 fi
8870 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8871 ;;
8872 hppa*64*)
8873 shrext_cmds='.sl'
8874 hardcode_into_libs=yes
8875 dynamic_linker="$host_os dld.sl"
8876 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8877 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8879 soname_spec='${libname}${release}${shared_ext}$major'
8880 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8882 ;;
8883 *)
8884 shrext_cmds='.sl'
8885 dynamic_linker="$host_os dld.sl"
8886 shlibpath_var=SHLIB_PATH
8887 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8889 soname_spec='${libname}${release}${shared_ext}$major'
8890 ;;
8891 esac
8892 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8893 postinstall_cmds='chmod 555 $lib'
8894 ;;
8895
8896interix[3-9]*)
8897 version_type=linux
8898 need_lib_prefix=no
8899 need_version=no
8900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8901 soname_spec='${libname}${release}${shared_ext}$major'
8902 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8903 shlibpath_var=LD_LIBRARY_PATH
8904 shlibpath_overrides_runpath=no
8905 hardcode_into_libs=yes
8906 ;;
8907
8908irix5* | irix6* | nonstopux*)
8909 case $host_os in
8910 nonstopux*) version_type=nonstopux ;;
8911 *)
8912 if test "$lt_cv_prog_gnu_ld" = yes; then
8913 version_type=linux
8914 else
8915 version_type=irix
8916 fi ;;
8917 esac
8918 need_lib_prefix=no
8919 need_version=no
8920 soname_spec='${libname}${release}${shared_ext}$major'
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8922 case $host_os in
8923 irix5* | nonstopux*)
8924 libsuff= shlibsuff=
8925 ;;
8926 *)
8927 case $LD in # libtool.m4 will add one of these switches to LD
8928 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8929 libsuff= shlibsuff= libmagic=32-bit;;
8930 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8931 libsuff=32 shlibsuff=N32 libmagic=N32;;
8932 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8933 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8934 *) libsuff= shlibsuff= libmagic=never-match;;
8935 esac
8936 ;;
8937 esac
8938 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8939 shlibpath_overrides_runpath=no
8940 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8941 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8942 hardcode_into_libs=yes
8943 ;;
8944
8945# No shared lib support for Linux oldld, aout, or coff.
8946linux*oldld* | linux*aout* | linux*coff*)
8947 dynamic_linker=no
8948 ;;
8949
8950# This must be Linux ELF.
8951linux* | k*bsd*-gnu)
8952 version_type=linux
8953 need_lib_prefix=no
8954 need_version=no
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8956 soname_spec='${libname}${release}${shared_ext}$major'
8957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8958 shlibpath_var=LD_LIBRARY_PATH
8959 shlibpath_overrides_runpath=no
8960 # Some binutils ld are patched to set DT_RUNPATH
8961 save_LDFLAGS=$LDFLAGS
8962 save_libdir=$libdir
8963 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8964 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8965 cat >conftest.$ac_ext <<_ACEOF
8966/* confdefs.h. */
8967_ACEOF
8968cat confdefs.h >>conftest.$ac_ext
8969cat >>conftest.$ac_ext <<_ACEOF
8970/* end confdefs.h. */
8971
8972int
8973main ()
8974{
8975
8976 ;
8977 return 0;
8978}
8979_ACEOF
8980rm -f conftest.$ac_objext conftest$ac_exeext
1b9750d6
NC
8981if { (ac_try="$ac_link"
8982case "(($ac_try" in
8983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8984 *) ac_try_echo=$ac_try;;
8985esac
8986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8987 (eval "$ac_link") 2>conftest.er1
d7040cdb
SE
8988 ac_status=$?
8989 grep -v '^ *+' conftest.er1 >conftest.err
8990 rm -f conftest.er1
8991 cat conftest.err >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
8993 (exit $ac_status); } && {
8994 test -z "$ac_c_werror_flag" ||
8995 test ! -s conftest.err
8996 } && test -s conftest$ac_exeext &&
8997 $as_test_x conftest$ac_exeext; then
d7040cdb
SE
8998 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8999 shlibpath_overrides_runpath=yes
9000fi
9001
9002else
9003 echo "$as_me: failed program was:" >&5
9004sed 's/^/| /' conftest.$ac_ext >&5
9005
1b9750d6 9006
d7040cdb 9007fi
1b9750d6
NC
9008
9009rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d7040cdb
SE
9010 conftest$ac_exeext conftest.$ac_ext
9011 LDFLAGS=$save_LDFLAGS
9012 libdir=$save_libdir
9013
9014 # This implies no fast_install, which is unacceptable.
9015 # Some rework will be needed to allow for fast_install
9016 # before this can be enabled.
9017 hardcode_into_libs=yes
9018
9019 # Append ld.so.conf contents to the search path
9020 if test -f /etc/ld.so.conf; then
9021 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9022 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9023 fi
9024
9025 # We used to test for /lib/ld.so.1 and disable shared libraries on
9026 # powerpc, because MkLinux only supported shared libraries with the
9027 # GNU dynamic linker. Since this was broken with cross compilers,
9028 # most powerpc-linux boxes support dynamic linking these days and
9029 # people can always --disable-shared, the test was removed, and we
9030 # assume the GNU/Linux dynamic linker is in use.
9031 dynamic_linker='GNU/Linux ld.so'
9032 ;;
9033
9034netbsd*)
9035 version_type=sunos
9036 need_lib_prefix=no
9037 need_version=no
9038 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9041 dynamic_linker='NetBSD (a.out) ld.so'
9042 else
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9044 soname_spec='${libname}${release}${shared_ext}$major'
9045 dynamic_linker='NetBSD ld.elf_so'
9046 fi
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=yes
9049 hardcode_into_libs=yes
9050 ;;
9051
9052newsos6)
9053 version_type=linux
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055 shlibpath_var=LD_LIBRARY_PATH
9056 shlibpath_overrides_runpath=yes
9057 ;;
9058
9059*nto* | *qnx*)
9060 version_type=qnx
9061 need_lib_prefix=no
9062 need_version=no
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 shlibpath_overrides_runpath=no
9067 hardcode_into_libs=yes
9068 dynamic_linker='ldqnx.so'
9069 ;;
9070
9071openbsd*)
9072 version_type=sunos
9073 sys_lib_dlsearch_path_spec="/usr/lib"
9074 need_lib_prefix=no
9075 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9076 case $host_os in
9077 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9078 *) need_version=no ;;
9079 esac
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9082 shlibpath_var=LD_LIBRARY_PATH
9083 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9084 case $host_os in
9085 openbsd2.[89] | openbsd2.[89].*)
9086 shlibpath_overrides_runpath=no
9087 ;;
9088 *)
9089 shlibpath_overrides_runpath=yes
9090 ;;
9091 esac
9092 else
9093 shlibpath_overrides_runpath=yes
9094 fi
9095 ;;
9096
9097os2*)
9098 libname_spec='$name'
9099 shrext_cmds=".dll"
9100 need_lib_prefix=no
9101 library_names_spec='$libname${shared_ext} $libname.a'
9102 dynamic_linker='OS/2 ld.exe'
9103 shlibpath_var=LIBPATH
9104 ;;
9105
9106osf3* | osf4* | osf5*)
9107 version_type=osf
9108 need_lib_prefix=no
9109 need_version=no
9110 soname_spec='${libname}${release}${shared_ext}$major'
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112 shlibpath_var=LD_LIBRARY_PATH
9113 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9114 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9115 ;;
9116
9117rdos*)
9118 dynamic_linker=no
9119 ;;
9120
9121solaris*)
9122 version_type=linux
9123 need_lib_prefix=no
9124 need_version=no
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9127 shlibpath_var=LD_LIBRARY_PATH
9128 shlibpath_overrides_runpath=yes
9129 hardcode_into_libs=yes
9130 # ldd complains unless libraries are executable
9131 postinstall_cmds='chmod +x $lib'
9132 ;;
9133
9134sunos4*)
9135 version_type=sunos
9136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9137 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9138 shlibpath_var=LD_LIBRARY_PATH
9139 shlibpath_overrides_runpath=yes
9140 if test "$with_gnu_ld" = yes; then
9141 need_lib_prefix=no
9142 fi
9143 need_version=yes
9144 ;;
9145
9146sysv4 | sysv4.3*)
9147 version_type=linux
9148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9149 soname_spec='${libname}${release}${shared_ext}$major'
9150 shlibpath_var=LD_LIBRARY_PATH
9151 case $host_vendor in
9152 sni)
9153 shlibpath_overrides_runpath=no
9154 need_lib_prefix=no
9155 runpath_var=LD_RUN_PATH
9156 ;;
9157 siemens)
9158 need_lib_prefix=no
9159 ;;
9160 motorola)
9161 need_lib_prefix=no
9162 need_version=no
9163 shlibpath_overrides_runpath=no
9164 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9165 ;;
9166 esac
9167 ;;
9168
9169sysv4*MP*)
9170 if test -d /usr/nec ;then
9171 version_type=linux
9172 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9173 soname_spec='$libname${shared_ext}.$major'
9174 shlibpath_var=LD_LIBRARY_PATH
9175 fi
9176 ;;
9177
9178sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9179 version_type=freebsd-elf
9180 need_lib_prefix=no
9181 need_version=no
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 shlibpath_var=LD_LIBRARY_PATH
9185 shlibpath_overrides_runpath=yes
9186 hardcode_into_libs=yes
9187 if test "$with_gnu_ld" = yes; then
9188 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9189 else
9190 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9191 case $host_os in
9192 sco3.2v5*)
9193 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9194 ;;
9195 esac
9196 fi
9197 sys_lib_dlsearch_path_spec='/usr/lib'
9198 ;;
9199
9200tpf*)
9201 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9202 version_type=linux
9203 need_lib_prefix=no
9204 need_version=no
9205 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9206 shlibpath_var=LD_LIBRARY_PATH
9207 shlibpath_overrides_runpath=no
9208 hardcode_into_libs=yes
9209 ;;
9210
9211uts4*)
9212 version_type=linux
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9214 soname_spec='${libname}${release}${shared_ext}$major'
9215 shlibpath_var=LD_LIBRARY_PATH
9216 ;;
9217
9218*)
9219 dynamic_linker=no
9220 ;;
9221esac
1b9750d6
NC
9222{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9223echo "${ECHO_T}$dynamic_linker" >&6; }
d7040cdb
SE
9224test "$dynamic_linker" = no && can_build_shared=no
9225
9226variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9227if test "$GCC" = yes; then
9228 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9229fi
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
1b9750d6
NC
9317 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9318echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d7040cdb
SE
9319hardcode_action=
9320if test -n "$hardcode_libdir_flag_spec" ||
9321 test -n "$runpath_var" ||
9322 test "X$hardcode_automatic" = "Xyes" ; then
9323
9324 # We can hardcode non-existent directories.
9325 if test "$hardcode_direct" != no &&
9326 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9327 # have to relink, otherwise we might link with an installed library
9328 # when we should be linking with a yet-to-be-installed one
9329 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9330 test "$hardcode_minus_L" != no; then
9331 # Linking always hardcodes the temporary library directory.
9332 hardcode_action=relink
9333 else
9334 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9335 hardcode_action=immediate
9336 fi
9337else
9338 # We cannot hardcode anything, or else we can only hardcode existing
9339 # directories.
9340 hardcode_action=unsupported
9341fi
1b9750d6
NC
9342{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9343echo "${ECHO_T}$hardcode_action" >&6; }
d7040cdb
SE
9344
9345if test "$hardcode_action" = relink ||
9346 test "$inherit_rpath" = yes; then
9347 # Fast installation is not supported
9348 enable_fast_install=no
9349elif test "$shlibpath_overrides_runpath" = yes ||
9350 test "$enable_shared" = no; then
9351 # Fast installation is not necessary
9352 enable_fast_install=needless
9353fi
9354
9355
9356
9357
9358
9359
9360 if test "x$enable_dlopen" != xyes; then
9361 enable_dlopen=unknown
9362 enable_dlopen_self=unknown
9363 enable_dlopen_self_static=unknown
9364else
9365 lt_cv_dlopen=no
9366 lt_cv_dlopen_libs=
9367
9368 case $host_os in
9369 beos*)
9370 lt_cv_dlopen="load_add_on"
9371 lt_cv_dlopen_libs=
9372 lt_cv_dlopen_self=yes
9373 ;;
9374
9375 mingw* | pw32*)
9376 lt_cv_dlopen="LoadLibrary"
9377 lt_cv_dlopen_libs=
9378 ;;
9379
9380 cygwin*)
9381 lt_cv_dlopen="dlopen"
9382 lt_cv_dlopen_libs=
9383 ;;
9384
9385 darwin*)
9386 # if libdl is installed we need to link against it
1b9750d6
NC
9387 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9388echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d7040cdb
SE
9389if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
9391else
9392 ac_check_lib_save_LIBS=$LIBS
9393LIBS="-ldl $LIBS"
9394cat >conftest.$ac_ext <<_ACEOF
9395/* confdefs.h. */
9396_ACEOF
9397cat confdefs.h >>conftest.$ac_ext
9398cat >>conftest.$ac_ext <<_ACEOF
9399/* end confdefs.h. */
9400
1b9750d6
NC
9401/* Override any GCC internal prototype to avoid an error.
9402 Use char because int might match the return type of a GCC
9403 builtin and then its argument prototype would still apply. */
d7040cdb
SE
9404#ifdef __cplusplus
9405extern "C"
9406#endif
d7040cdb
SE
9407char dlopen ();
9408int
9409main ()
9410{
1b9750d6 9411return dlopen ();
d7040cdb
SE
9412 ;
9413 return 0;
9414}
9415_ACEOF
9416rm -f conftest.$ac_objext conftest$ac_exeext
1b9750d6
NC
9417if { (ac_try="$ac_link"
9418case "(($ac_try" in
9419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420 *) ac_try_echo=$ac_try;;
9421esac
9422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9423 (eval "$ac_link") 2>conftest.er1
d7040cdb
SE
9424 ac_status=$?
9425 grep -v '^ *+' conftest.er1 >conftest.err
9426 rm -f conftest.er1
9427 cat conftest.err >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
9429 (exit $ac_status); } && {
9430 test -z "$ac_c_werror_flag" ||
9431 test ! -s conftest.err
9432 } && test -s conftest$ac_exeext &&
9433 $as_test_x conftest$ac_exeext; then
d7040cdb
SE
9434 ac_cv_lib_dl_dlopen=yes
9435else
9436 echo "$as_me: failed program was:" >&5
9437sed 's/^/| /' conftest.$ac_ext >&5
9438
1b9750d6 9439 ac_cv_lib_dl_dlopen=no
d7040cdb 9440fi
1b9750d6
NC
9441
9442rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d7040cdb
SE
9443 conftest$ac_exeext conftest.$ac_ext
9444LIBS=$ac_check_lib_save_LIBS
9445fi
1b9750d6
NC
9446{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9447echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d7040cdb
SE
9448if test $ac_cv_lib_dl_dlopen = yes; then
9449 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9450else
9451
9452 lt_cv_dlopen="dyld"
9453 lt_cv_dlopen_libs=
9454 lt_cv_dlopen_self=yes
9455
9456fi
9457
9458 ;;
9459
9460 *)
1b9750d6
NC
9461 { echo "$as_me:$LINENO: checking for shl_load" >&5
9462echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d7040cdb
SE
9463if test "${ac_cv_func_shl_load+set}" = set; then
9464 echo $ECHO_N "(cached) $ECHO_C" >&6
9465else
9466 cat >conftest.$ac_ext <<_ACEOF
9467/* confdefs.h. */
9468_ACEOF
9469cat confdefs.h >>conftest.$ac_ext
9470cat >>conftest.$ac_ext <<_ACEOF
9471/* end confdefs.h. */
9472/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9474#define shl_load innocuous_shl_load
9475
9476/* System header to define __stub macros and hopefully few prototypes,
9477 which can conflict with char shl_load (); below.
9478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9479 <limits.h> exists even on freestanding compilers. */
9480
9481#ifdef __STDC__
9482# include <limits.h>
9483#else
9484# include <assert.h>
9485#endif
9486
9487#undef shl_load
9488
1b9750d6
NC
9489/* Override any GCC internal prototype to avoid an error.
9490 Use char because int might match the return type of a GCC
9491 builtin and then its argument prototype would still apply. */
d7040cdb
SE
9492#ifdef __cplusplus
9493extern "C"
d7040cdb 9494#endif
d7040cdb
SE
9495char shl_load ();
9496/* The GNU C library defines this for functions which it implements
9497 to always fail with ENOSYS. Some functions are actually named
9498 something starting with __ and the normal name is an alias. */
1b9750d6 9499#if defined __stub_shl_load || defined __stub___shl_load
d7040cdb 9500choke me
d7040cdb
SE
9501#endif
9502
9503int
9504main ()
9505{
1b9750d6 9506return shl_load ();
d7040cdb
SE
9507 ;
9508 return 0;
9509}
9510_ACEOF
9511rm -f conftest.$ac_objext conftest$ac_exeext
1b9750d6
NC
9512if { (ac_try="$ac_link"
9513case "(($ac_try" in
9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515 *) ac_try_echo=$ac_try;;
9516esac
9517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9518 (eval "$ac_link") 2>conftest.er1
d7040cdb
SE
9519 ac_status=$?
9520 grep -v '^ *+' conftest.er1 >conftest.err
9521 rm -f conftest.er1
9522 cat conftest.err >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
9524 (exit $ac_status); } && {
9525 test -z "$ac_c_werror_flag" ||
9526 test ! -s conftest.err
9527 } && test -s conftest$ac_exeext &&
9528 $as_test_x conftest$ac_exeext; then
d7040cdb
SE
9529 ac_cv_func_shl_load=yes
9530else
9531 echo "$as_me: failed program was:" >&5
9532sed 's/^/| /' conftest.$ac_ext >&5
9533
1b9750d6 9534 ac_cv_func_shl_load=no
d7040cdb 9535fi
1b9750d6
NC
9536
9537rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d7040cdb
SE
9538 conftest$ac_exeext conftest.$ac_ext
9539fi
1b9750d6
NC
9540{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9541echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d7040cdb
SE
9542if test $ac_cv_func_shl_load = yes; then
9543 lt_cv_dlopen="shl_load"
9544else
1b9750d6
NC
9545 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9546echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d7040cdb
SE
9547if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9549else
9550 ac_check_lib_save_LIBS=$LIBS
9551LIBS="-ldld $LIBS"
9552cat >conftest.$ac_ext <<_ACEOF
9553/* confdefs.h. */
9554_ACEOF
9555cat confdefs.h >>conftest.$ac_ext
9556cat >>conftest.$ac_ext <<_ACEOF
9557/* end confdefs.h. */
9558
1b9750d6
NC
9559/* Override any GCC internal prototype to avoid an error.
9560 Use char because int might match the return type of a GCC
9561 builtin and then its argument prototype would still apply. */
d7040cdb
SE
9562#ifdef __cplusplus
9563extern "C"
9564#endif
d7040cdb
SE
9565char shl_load ();
9566int
9567main ()
9568{
1b9750d6 9569return shl_load ();
d7040cdb
SE
9570 ;
9571 return 0;
9572}
9573_ACEOF
9574rm -f conftest.$ac_objext conftest$ac_exeext
1b9750d6
NC
9575if { (ac_try="$ac_link"
9576case "(($ac_try" in
9577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578 *) ac_try_echo=$ac_try;;
9579esac
9580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581 (eval "$ac_link") 2>conftest.er1
d7040cdb
SE
9582 ac_status=$?
9583 grep -v '^ *+' conftest.er1 >conftest.err
9584 rm -f conftest.er1
1b9750d6 9585 cat conftest.err >&5
d7040cdb 9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
9587 (exit $ac_status); } && {
9588 test -z "$ac_c_werror_flag" ||
9589 test ! -s conftest.err
9590 } && test -s conftest$ac_exeext &&
9591 $as_test_x conftest$ac_exeext; then
d7040cdb
SE
9592 ac_cv_lib_dld_shl_load=yes
9593else
9594 echo "$as_me: failed program was:" >&5
9595sed 's/^/| /' conftest.$ac_ext >&5
9596
1b9750d6 9597 ac_cv_lib_dld_shl_load=no
d7040cdb 9598fi
1b9750d6
NC
9599
9600rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d7040cdb
SE
9601 conftest$ac_exeext conftest.$ac_ext
9602LIBS=$ac_check_lib_save_LIBS
9603fi
1b9750d6
NC
9604{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9605echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d7040cdb
SE
9606if test $ac_cv_lib_dld_shl_load = yes; then
9607 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9608else
1b9750d6
NC
9609 { echo "$as_me:$LINENO: checking for dlopen" >&5
9610echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
d7040cdb
SE
9611if test "${ac_cv_func_dlopen+set}" = set; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9613else
9614 cat >conftest.$ac_ext <<_ACEOF
9615/* confdefs.h. */
9616_ACEOF
9617cat confdefs.h >>conftest.$ac_ext
9618cat >>conftest.$ac_ext <<_ACEOF
9619/* end confdefs.h. */
9620/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9622#define dlopen innocuous_dlopen
9623
9624/* System header to define __stub macros and hopefully few prototypes,
9625 which can conflict with char dlopen (); below.
9626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9627 <limits.h> exists even on freestanding compilers. */
9628
9629#ifdef __STDC__
9630# include <limits.h>
9631#else
9632# include <assert.h>
9633#endif
9634
9635#undef dlopen
9636
1b9750d6
NC
9637/* Override any GCC internal prototype to avoid an error.
9638 Use char because int might match the return type of a GCC
9639 builtin and then its argument prototype would still apply. */
d7040cdb
SE
9640#ifdef __cplusplus
9641extern "C"
d7040cdb 9642#endif
d7040cdb
SE
9643char dlopen ();
9644/* The GNU C library defines this for functions which it implements
9645 to always fail with ENOSYS. Some functions are actually named
9646 something starting with __ and the normal name is an alias. */
1b9750d6 9647#if defined __stub_dlopen || defined __stub___dlopen
d7040cdb 9648choke me
d7040cdb
SE
9649#endif
9650
9651int
9652main ()
9653{
1b9750d6 9654return dlopen ();
d7040cdb
SE
9655 ;
9656 return 0;
9657}
9658_ACEOF
9659rm -f conftest.$ac_objext conftest$ac_exeext
1b9750d6
NC
9660if { (ac_try="$ac_link"
9661case "(($ac_try" in
9662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9663 *) ac_try_echo=$ac_try;;
9664esac
9665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9666 (eval "$ac_link") 2>conftest.er1
d7040cdb
SE
9667 ac_status=$?
9668 grep -v '^ *+' conftest.er1 >conftest.err
9669 rm -f conftest.er1
9670 cat conftest.err >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
9672 (exit $ac_status); } && {
9673 test -z "$ac_c_werror_flag" ||
9674 test ! -s conftest.err
9675 } && test -s conftest$ac_exeext &&
9676 $as_test_x conftest$ac_exeext; then
d7040cdb
SE
9677 ac_cv_func_dlopen=yes
9678else
9679 echo "$as_me: failed program was:" >&5
9680sed 's/^/| /' conftest.$ac_ext >&5
9681
1b9750d6 9682 ac_cv_func_dlopen=no
d7040cdb 9683fi
1b9750d6
NC
9684
9685rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d7040cdb
SE
9686 conftest$ac_exeext conftest.$ac_ext
9687fi
1b9750d6
NC
9688{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9689echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
d7040cdb
SE
9690if test $ac_cv_func_dlopen = yes; then
9691 lt_cv_dlopen="dlopen"
9692else
1b9750d6
NC
9693 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9694echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d7040cdb
SE
9695if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9697else
9698 ac_check_lib_save_LIBS=$LIBS
9699LIBS="-ldl $LIBS"
9700cat >conftest.$ac_ext <<_ACEOF
9701/* confdefs.h. */
9702_ACEOF
9703cat confdefs.h >>conftest.$ac_ext
9704cat >>conftest.$ac_ext <<_ACEOF
9705/* end confdefs.h. */
9706
1b9750d6
NC
9707/* Override any GCC internal prototype to avoid an error.
9708 Use char because int might match the return type of a GCC
9709 builtin and then its argument prototype would still apply. */
d7040cdb
SE
9710#ifdef __cplusplus
9711extern "C"
9712#endif
d7040cdb
SE
9713char dlopen ();
9714int
9715main ()
9716{
1b9750d6 9717return dlopen ();
d7040cdb
SE
9718 ;
9719 return 0;
9720}
9721_ACEOF
9722rm -f conftest.$ac_objext conftest$ac_exeext
1b9750d6
NC
9723if { (ac_try="$ac_link"
9724case "(($ac_try" in
9725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726 *) ac_try_echo=$ac_try;;
9727esac
9728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_link") 2>conftest.er1
d7040cdb
SE
9730 ac_status=$?
9731 grep -v '^ *+' conftest.er1 >conftest.err
9732 rm -f conftest.er1
9733 cat conftest.err >&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
9735 (exit $ac_status); } && {
9736 test -z "$ac_c_werror_flag" ||
9737 test ! -s conftest.err
9738 } && test -s conftest$ac_exeext &&
9739 $as_test_x conftest$ac_exeext; then
d7040cdb
SE
9740 ac_cv_lib_dl_dlopen=yes
9741else
9742 echo "$as_me: failed program was:" >&5
9743sed 's/^/| /' conftest.$ac_ext >&5
9744
1b9750d6 9745 ac_cv_lib_dl_dlopen=no
d7040cdb 9746fi
1b9750d6
NC
9747
9748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d7040cdb
SE
9749 conftest$ac_exeext conftest.$ac_ext
9750LIBS=$ac_check_lib_save_LIBS
9751fi
1b9750d6
NC
9752{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9753echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d7040cdb
SE
9754if test $ac_cv_lib_dl_dlopen = yes; then
9755 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9756else
1b9750d6
NC
9757 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9758echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d7040cdb
SE
9759if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
9761else
9762 ac_check_lib_save_LIBS=$LIBS
9763LIBS="-lsvld $LIBS"
9764cat >conftest.$ac_ext <<_ACEOF
9765/* confdefs.h. */
9766_ACEOF
9767cat confdefs.h >>conftest.$ac_ext
9768cat >>conftest.$ac_ext <<_ACEOF
9769/* end confdefs.h. */
9770
1b9750d6
NC
9771/* Override any GCC internal prototype to avoid an error.
9772 Use char because int might match the return type of a GCC
9773 builtin and then its argument prototype would still apply. */
d7040cdb
SE
9774#ifdef __cplusplus
9775extern "C"
9776#endif
d7040cdb
SE
9777char dlopen ();
9778int
9779main ()
9780{
1b9750d6 9781return dlopen ();
d7040cdb
SE
9782 ;
9783 return 0;
9784}
9785_ACEOF
9786rm -f conftest.$ac_objext conftest$ac_exeext
1b9750d6
NC
9787if { (ac_try="$ac_link"
9788case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9791esac
9792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_link") 2>conftest.er1
d7040cdb
SE
9794 ac_status=$?
9795 grep -v '^ *+' conftest.er1 >conftest.err
9796 rm -f conftest.er1
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
9799 (exit $ac_status); } && {
9800 test -z "$ac_c_werror_flag" ||
9801 test ! -s conftest.err
9802 } && test -s conftest$ac_exeext &&
9803 $as_test_x conftest$ac_exeext; then
d7040cdb
SE
9804 ac_cv_lib_svld_dlopen=yes
9805else
9806 echo "$as_me: failed program was:" >&5
9807sed 's/^/| /' conftest.$ac_ext >&5
9808
1b9750d6 9809 ac_cv_lib_svld_dlopen=no
d7040cdb 9810fi
1b9750d6
NC
9811
9812rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d7040cdb
SE
9813 conftest$ac_exeext conftest.$ac_ext
9814LIBS=$ac_check_lib_save_LIBS
9815fi
1b9750d6
NC
9816{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9817echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d7040cdb
SE
9818if test $ac_cv_lib_svld_dlopen = yes; then
9819 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9820else
1b9750d6
NC
9821 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9822echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d7040cdb
SE
9823if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9825else
9826 ac_check_lib_save_LIBS=$LIBS
9827LIBS="-ldld $LIBS"
9828cat >conftest.$ac_ext <<_ACEOF
9829/* confdefs.h. */
9830_ACEOF
9831cat confdefs.h >>conftest.$ac_ext
9832cat >>conftest.$ac_ext <<_ACEOF
9833/* end confdefs.h. */
9834
1b9750d6
NC
9835/* Override any GCC internal prototype to avoid an error.
9836 Use char because int might match the return type of a GCC
9837 builtin and then its argument prototype would still apply. */
d7040cdb
SE
9838#ifdef __cplusplus
9839extern "C"
9840#endif
d7040cdb
SE
9841char dld_link ();
9842int
9843main ()
9844{
1b9750d6 9845return dld_link ();
d7040cdb
SE
9846 ;
9847 return 0;
9848}
9849_ACEOF
9850rm -f conftest.$ac_objext conftest$ac_exeext
1b9750d6
NC
9851if { (ac_try="$ac_link"
9852case "(($ac_try" in
9853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9854 *) ac_try_echo=$ac_try;;
9855esac
9856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9857 (eval "$ac_link") 2>conftest.er1
d7040cdb
SE
9858 ac_status=$?
9859 grep -v '^ *+' conftest.er1 >conftest.err
9860 rm -f conftest.er1
9861 cat conftest.err >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
9863 (exit $ac_status); } && {
9864 test -z "$ac_c_werror_flag" ||
9865 test ! -s conftest.err
9866 } && test -s conftest$ac_exeext &&
9867 $as_test_x conftest$ac_exeext; then
d7040cdb
SE
9868 ac_cv_lib_dld_dld_link=yes
9869else
9870 echo "$as_me: failed program was:" >&5
9871sed 's/^/| /' conftest.$ac_ext >&5
9872
1b9750d6 9873 ac_cv_lib_dld_dld_link=no
d7040cdb 9874fi
1b9750d6
NC
9875
9876rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d7040cdb
SE
9877 conftest$ac_exeext conftest.$ac_ext
9878LIBS=$ac_check_lib_save_LIBS
9879fi
1b9750d6
NC
9880{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9881echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d7040cdb
SE
9882if test $ac_cv_lib_dld_dld_link = yes; then
9883 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9884fi
9885
9886
9887fi
9888
9889
9890fi
9891
9892
9893fi
9894
9895
9896fi
9897
9898
9899fi
9900
9901 ;;
9902 esac
9903
9904 if test "x$lt_cv_dlopen" != xno; then
9905 enable_dlopen=yes
9906 else
9907 enable_dlopen=no
9908 fi
9909
9910 case $lt_cv_dlopen in
9911 dlopen)
9912 save_CPPFLAGS="$CPPFLAGS"
9913 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9914
9915 save_LDFLAGS="$LDFLAGS"
9916 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9917
9918 save_LIBS="$LIBS"
9919 LIBS="$lt_cv_dlopen_libs $LIBS"
9920
1b9750d6
NC
9921 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9922echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
d7040cdb
SE
9923if test "${lt_cv_dlopen_self+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9925else
9926 if test "$cross_compiling" = yes; then :
9927 lt_cv_dlopen_self=cross
9928else
9929 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9930 lt_status=$lt_dlunknown
9931 cat > conftest.$ac_ext <<_LT_EOF
1b9750d6 9932#line 9932 "configure"
d7040cdb
SE
9933#include "confdefs.h"
9934
9935#if HAVE_DLFCN_H
9936#include <dlfcn.h>
9937#endif
9938
9939#include <stdio.h>
9940
9941#ifdef RTLD_GLOBAL
9942# define LT_DLGLOBAL RTLD_GLOBAL
9943#else
9944# ifdef DL_GLOBAL
9945# define LT_DLGLOBAL DL_GLOBAL
9946# else
9947# define LT_DLGLOBAL 0
9948# endif
9949#endif
9950
9951/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9952 find out it does not work in some platform. */
9953#ifndef LT_DLLAZY_OR_NOW
9954# ifdef RTLD_LAZY
9955# define LT_DLLAZY_OR_NOW RTLD_LAZY
9956# else
9957# ifdef DL_LAZY
9958# define LT_DLLAZY_OR_NOW DL_LAZY
9959# else
9960# ifdef RTLD_NOW
9961# define LT_DLLAZY_OR_NOW RTLD_NOW
9962# else
9963# ifdef DL_NOW
9964# define LT_DLLAZY_OR_NOW DL_NOW
9965# else
9966# define LT_DLLAZY_OR_NOW 0
9967# endif
9968# endif
9969# endif
9970# endif
9971#endif
9972
9973#ifdef __cplusplus
9974extern "C" void exit (int);
9975#endif
9976
9977void fnord() { int i=42;}
9978int main ()
9979{
9980 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9981 int status = $lt_dlunknown;
9982
9983 if (self)
9984 {
9985 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9986 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9987 /* dlclose (self); */
9988 }
9989 else
9990 puts (dlerror ());
9991
9992 exit (status);
9993}
9994_LT_EOF
9995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9996 (eval $ac_link) 2>&5
9997 ac_status=$?
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10000 (./conftest; exit; ) >&5 2>/dev/null
10001 lt_status=$?
10002 case x$lt_status in
10003 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10004 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10005 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10006 esac
10007 else :
10008 # compilation failed
10009 lt_cv_dlopen_self=no
10010 fi
10011fi
10012rm -fr conftest*
10013
10014
10015fi
1b9750d6
NC
10016{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10017echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
d7040cdb
SE
10018
10019 if test "x$lt_cv_dlopen_self" = xyes; then
10020 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1b9750d6
NC
10021 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10022echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
d7040cdb
SE
10023if test "${lt_cv_dlopen_self_static+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10025else
10026 if test "$cross_compiling" = yes; then :
10027 lt_cv_dlopen_self_static=cross
10028else
10029 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10030 lt_status=$lt_dlunknown
10031 cat > conftest.$ac_ext <<_LT_EOF
1b9750d6 10032#line 10032 "configure"
d7040cdb
SE
10033#include "confdefs.h"
10034
10035#if HAVE_DLFCN_H
10036#include <dlfcn.h>
10037#endif
10038
10039#include <stdio.h>
10040
10041#ifdef RTLD_GLOBAL
10042# define LT_DLGLOBAL RTLD_GLOBAL
10043#else
10044# ifdef DL_GLOBAL
10045# define LT_DLGLOBAL DL_GLOBAL
10046# else
10047# define LT_DLGLOBAL 0
10048# endif
10049#endif
10050
10051/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10052 find out it does not work in some platform. */
10053#ifndef LT_DLLAZY_OR_NOW
10054# ifdef RTLD_LAZY
10055# define LT_DLLAZY_OR_NOW RTLD_LAZY
10056# else
10057# ifdef DL_LAZY
10058# define LT_DLLAZY_OR_NOW DL_LAZY
10059# else
10060# ifdef RTLD_NOW
10061# define LT_DLLAZY_OR_NOW RTLD_NOW
10062# else
10063# ifdef DL_NOW
10064# define LT_DLLAZY_OR_NOW DL_NOW
10065# else
10066# define LT_DLLAZY_OR_NOW 0
10067# endif
10068# endif
10069# endif
10070# endif
10071#endif
10072
10073#ifdef __cplusplus
10074extern "C" void exit (int);
10075#endif
10076
10077void fnord() { int i=42;}
10078int main ()
10079{
10080 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10081 int status = $lt_dlunknown;
10082
10083 if (self)
10084 {
10085 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10086 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10087 /* dlclose (self); */
10088 }
10089 else
10090 puts (dlerror ());
10091
10092 exit (status);
10093}
10094_LT_EOF
10095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10096 (eval $ac_link) 2>&5
10097 ac_status=$?
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10100 (./conftest; exit; ) >&5 2>/dev/null
10101 lt_status=$?
10102 case x$lt_status in
10103 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10104 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10105 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10106 esac
10107 else :
10108 # compilation failed
10109 lt_cv_dlopen_self_static=no
10110 fi
10111fi
10112rm -fr conftest*
10113
10114
10115fi
1b9750d6
NC
10116{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10117echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
d7040cdb
SE
10118 fi
10119
10120 CPPFLAGS="$save_CPPFLAGS"
10121 LDFLAGS="$save_LDFLAGS"
10122 LIBS="$save_LIBS"
10123 ;;
10124 esac
10125
10126 case $lt_cv_dlopen_self in
10127 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10128 *) enable_dlopen_self=unknown ;;
10129 esac
10130
10131 case $lt_cv_dlopen_self_static in
10132 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10133 *) enable_dlopen_self_static=unknown ;;
10134 esac
10135fi
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153striplib=
10154old_striplib=
1b9750d6
NC
10155{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10156echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
d7040cdb
SE
10157if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10158 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10159 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1b9750d6
NC
10160 { echo "$as_me:$LINENO: result: yes" >&5
10161echo "${ECHO_T}yes" >&6; }
d7040cdb
SE
10162else
10163# FIXME - insert some real tests, host_os isn't really good enough
10164 case $host_os in
10165 darwin*)
10166 if test -n "$STRIP" ; then
10167 striplib="$STRIP -x"
10168 old_striplib="$STRIP -S"
1b9750d6
NC
10169 { echo "$as_me:$LINENO: result: yes" >&5
10170echo "${ECHO_T}yes" >&6; }
d7040cdb 10171 else
1b9750d6
NC
10172 { echo "$as_me:$LINENO: result: no" >&5
10173echo "${ECHO_T}no" >&6; }
d7040cdb
SE
10174 fi
10175 ;;
10176 *)
1b9750d6
NC
10177 { echo "$as_me:$LINENO: result: no" >&5
10178echo "${ECHO_T}no" >&6; }
d7040cdb
SE
10179 ;;
10180 esac
10181fi
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194 # Report which library types will actually be built
1b9750d6
NC
10195 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10196echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10197 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10198echo "${ECHO_T}$can_build_shared" >&6; }
d7040cdb 10199
1b9750d6
NC
10200 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10201echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d7040cdb
SE
10202 test "$can_build_shared" = "no" && enable_shared=no
10203
10204 # On AIX, shared libraries and static libraries use the same namespace, and
10205 # are all built from PIC.
10206 case $host_os in
10207 aix3*)
10208 test "$enable_shared" = yes && enable_static=no
10209 if test -n "$RANLIB"; then
10210 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10211 postinstall_cmds='$RANLIB $lib'
10212 fi
10213 ;;
10214
10215 aix4* | aix5*)
10216 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10217 test "$enable_shared" = yes && enable_static=no
10218 fi
10219 ;;
10220 esac
1b9750d6
NC
10221 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10222echo "${ECHO_T}$enable_shared" >&6; }
d7040cdb 10223
1b9750d6
NC
10224 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10225echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d7040cdb
SE
10226 # Make sure either enable_shared or enable_static is yes.
10227 test "$enable_shared" = yes || enable_static=yes
1b9750d6
NC
10228 { echo "$as_me:$LINENO: result: $enable_static" >&5
10229echo "${ECHO_T}$enable_static" >&6; }
d7040cdb
SE
10230
10231
10232
10233
10234fi
10235ac_ext=c
10236ac_cpp='$CPP $CPPFLAGS'
10237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10239ac_compiler_gnu=$ac_cv_c_compiler_gnu
10240
10241CC="$lt_save_CC"
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
1b9750d6 10255 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
10256
10257
10258
10259
10260# Only expand once:
10261
10262
10263
1b9750d6 10264ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
d7040cdb
SE
10265
10266
10267ac_ext=c
10268ac_cpp='$CPP $CPPFLAGS'
10269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10271ac_compiler_gnu=$ac_cv_c_compiler_gnu
10272if test -n "$ac_tool_prefix"; then
10273 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10274set dummy ${ac_tool_prefix}gcc; ac_word=$2
1b9750d6
NC
10275{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7040cdb
SE
10277if test "${ac_cv_prog_CC+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10279else
10280 if test -n "$CC"; then
10281 ac_cv_prog_CC="$CC" # Let the user override the test.
10282else
10283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10284for as_dir in $PATH
10285do
10286 IFS=$as_save_IFS
10287 test -z "$as_dir" && as_dir=.
10288 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 10289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb
SE
10290 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10292 break 2
10293 fi
10294done
10295done
1b9750d6 10296IFS=$as_save_IFS
d7040cdb
SE
10297
10298fi
10299fi
10300CC=$ac_cv_prog_CC
10301if test -n "$CC"; then
1b9750d6
NC
10302 { echo "$as_me:$LINENO: result: $CC" >&5
10303echo "${ECHO_T}$CC" >&6; }
d7040cdb 10304else
1b9750d6
NC
10305 { echo "$as_me:$LINENO: result: no" >&5
10306echo "${ECHO_T}no" >&6; }
d7040cdb
SE
10307fi
10308
1b9750d6 10309
d7040cdb
SE
10310fi
10311if test -z "$ac_cv_prog_CC"; then
10312 ac_ct_CC=$CC
10313 # Extract the first word of "gcc", so it can be a program name with args.
10314set dummy gcc; ac_word=$2
1b9750d6
NC
10315{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7040cdb
SE
10317if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10319else
10320 if test -n "$ac_ct_CC"; then
10321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10322else
10323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10324for as_dir in $PATH
10325do
10326 IFS=$as_save_IFS
10327 test -z "$as_dir" && as_dir=.
10328 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 10329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb
SE
10330 ac_cv_prog_ac_ct_CC="gcc"
10331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10332 break 2
10333 fi
10334done
10335done
1b9750d6 10336IFS=$as_save_IFS
d7040cdb
SE
10337
10338fi
10339fi
10340ac_ct_CC=$ac_cv_prog_ac_ct_CC
10341if test -n "$ac_ct_CC"; then
1b9750d6
NC
10342 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10343echo "${ECHO_T}$ac_ct_CC" >&6; }
d7040cdb 10344else
1b9750d6
NC
10345 { echo "$as_me:$LINENO: result: no" >&5
10346echo "${ECHO_T}no" >&6; }
d7040cdb
SE
10347fi
10348
1b9750d6
NC
10349 if test "x$ac_ct_CC" = x; then
10350 CC=""
10351 else
10352 case $cross_compiling:$ac_tool_warned in
10353yes:)
10354{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10355whose name does not start with the host triplet. If you think this
10356configuration is useful to you, please write to autoconf@gnu.org." >&5
10357echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10358whose name does not start with the host triplet. If you think this
10359configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10360ac_tool_warned=yes ;;
10361esac
10362 CC=$ac_ct_CC
10363 fi
d7040cdb
SE
10364else
10365 CC="$ac_cv_prog_CC"
10366fi
10367
10368if test -z "$CC"; then
1b9750d6
NC
10369 if test -n "$ac_tool_prefix"; then
10370 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d7040cdb 10371set dummy ${ac_tool_prefix}cc; ac_word=$2
1b9750d6
NC
10372{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7040cdb
SE
10374if test "${ac_cv_prog_CC+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10376else
10377 if test -n "$CC"; then
10378 ac_cv_prog_CC="$CC" # Let the user override the test.
10379else
10380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381for as_dir in $PATH
10382do
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
10385 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 10386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb
SE
10387 ac_cv_prog_CC="${ac_tool_prefix}cc"
10388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10389 break 2
10390 fi
10391done
10392done
1b9750d6 10393IFS=$as_save_IFS
d7040cdb
SE
10394
10395fi
10396fi
10397CC=$ac_cv_prog_CC
10398if test -n "$CC"; then
1b9750d6
NC
10399 { echo "$as_me:$LINENO: result: $CC" >&5
10400echo "${ECHO_T}$CC" >&6; }
d7040cdb 10401else
1b9750d6
NC
10402 { echo "$as_me:$LINENO: result: no" >&5
10403echo "${ECHO_T}no" >&6; }
d7040cdb
SE
10404fi
10405
d7040cdb 10406
1b9750d6 10407 fi
d7040cdb
SE
10408fi
10409if test -z "$CC"; then
10410 # Extract the first word of "cc", so it can be a program name with args.
10411set dummy cc; ac_word=$2
1b9750d6
NC
10412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7040cdb
SE
10414if test "${ac_cv_prog_CC+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10416else
10417 if test -n "$CC"; then
10418 ac_cv_prog_CC="$CC" # Let the user override the test.
10419else
10420 ac_prog_rejected=no
10421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10422for as_dir in $PATH
10423do
10424 IFS=$as_save_IFS
10425 test -z "$as_dir" && as_dir=.
10426 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 10427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb
SE
10428 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10429 ac_prog_rejected=yes
10430 continue
10431 fi
10432 ac_cv_prog_CC="cc"
10433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10434 break 2
10435 fi
10436done
10437done
1b9750d6 10438IFS=$as_save_IFS
d7040cdb
SE
10439
10440if test $ac_prog_rejected = yes; then
10441 # We found a bogon in the path, so make sure we never use it.
10442 set dummy $ac_cv_prog_CC
10443 shift
10444 if test $# != 0; then
10445 # We chose a different compiler from the bogus one.
10446 # However, it has the same basename, so the bogon will be chosen
10447 # first if we set CC to just the basename; use the full file name.
10448 shift
10449 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10450 fi
10451fi
10452fi
10453fi
10454CC=$ac_cv_prog_CC
10455if test -n "$CC"; then
1b9750d6
NC
10456 { echo "$as_me:$LINENO: result: $CC" >&5
10457echo "${ECHO_T}$CC" >&6; }
d7040cdb 10458else
1b9750d6
NC
10459 { echo "$as_me:$LINENO: result: no" >&5
10460echo "${ECHO_T}no" >&6; }
d7040cdb
SE
10461fi
10462
1b9750d6 10463
d7040cdb
SE
10464fi
10465if test -z "$CC"; then
10466 if test -n "$ac_tool_prefix"; then
1b9750d6 10467 for ac_prog in cl.exe
d7040cdb
SE
10468 do
10469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10470set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1b9750d6
NC
10471{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7040cdb
SE
10473if test "${ac_cv_prog_CC+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10475else
10476 if test -n "$CC"; then
10477 ac_cv_prog_CC="$CC" # Let the user override the test.
10478else
10479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10480for as_dir in $PATH
10481do
10482 IFS=$as_save_IFS
10483 test -z "$as_dir" && as_dir=.
10484 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 10485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb
SE
10486 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10488 break 2
10489 fi
10490done
10491done
1b9750d6 10492IFS=$as_save_IFS
d7040cdb
SE
10493
10494fi
10495fi
10496CC=$ac_cv_prog_CC
10497if test -n "$CC"; then
1b9750d6
NC
10498 { echo "$as_me:$LINENO: result: $CC" >&5
10499echo "${ECHO_T}$CC" >&6; }
d7040cdb 10500else
1b9750d6
NC
10501 { echo "$as_me:$LINENO: result: no" >&5
10502echo "${ECHO_T}no" >&6; }
d7040cdb
SE
10503fi
10504
1b9750d6 10505
d7040cdb
SE
10506 test -n "$CC" && break
10507 done
10508fi
10509if test -z "$CC"; then
10510 ac_ct_CC=$CC
1b9750d6 10511 for ac_prog in cl.exe
d7040cdb
SE
10512do
10513 # Extract the first word of "$ac_prog", so it can be a program name with args.
10514set dummy $ac_prog; ac_word=$2
1b9750d6
NC
10515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7040cdb
SE
10517if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10519else
10520 if test -n "$ac_ct_CC"; then
10521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10522else
10523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10524for as_dir in $PATH
10525do
10526 IFS=$as_save_IFS
10527 test -z "$as_dir" && as_dir=.
10528 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 10529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb
SE
10530 ac_cv_prog_ac_ct_CC="$ac_prog"
10531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10532 break 2
10533 fi
10534done
10535done
1b9750d6 10536IFS=$as_save_IFS
d7040cdb
SE
10537
10538fi
10539fi
10540ac_ct_CC=$ac_cv_prog_ac_ct_CC
10541if test -n "$ac_ct_CC"; then
1b9750d6
NC
10542 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10543echo "${ECHO_T}$ac_ct_CC" >&6; }
d7040cdb 10544else
1b9750d6
NC
10545 { echo "$as_me:$LINENO: result: no" >&5
10546echo "${ECHO_T}no" >&6; }
d7040cdb
SE
10547fi
10548
1b9750d6 10549
d7040cdb
SE
10550 test -n "$ac_ct_CC" && break
10551done
10552
1b9750d6
NC
10553 if test "x$ac_ct_CC" = x; then
10554 CC=""
10555 else
10556 case $cross_compiling:$ac_tool_warned in
10557yes:)
10558{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10559whose name does not start with the host triplet. If you think this
10560configuration is useful to you, please write to autoconf@gnu.org." >&5
10561echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10562whose name does not start with the host triplet. If you think this
10563configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10564ac_tool_warned=yes ;;
10565esac
10566 CC=$ac_ct_CC
10567 fi
d7040cdb
SE
10568fi
10569
10570fi
10571
10572
10573test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10574See \`config.log' for more details." >&5
10575echo "$as_me: error: no acceptable C compiler found in \$PATH
10576See \`config.log' for more details." >&2;}
10577 { (exit 1); exit 1; }; }
10578
10579# Provide some information about the compiler.
1b9750d6 10580echo "$as_me:$LINENO: checking for C compiler version" >&5
d7040cdb 10581ac_compiler=`set X $ac_compile; echo $2`
1b9750d6
NC
10582{ (ac_try="$ac_compiler --version >&5"
10583case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10586esac
10587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588 (eval "$ac_compiler --version >&5") 2>&5
d7040cdb
SE
10589 ac_status=$?
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }
1b9750d6
NC
10592{ (ac_try="$ac_compiler -v >&5"
10593case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10596esac
10597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598 (eval "$ac_compiler -v >&5") 2>&5
d7040cdb
SE
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }
1b9750d6
NC
10602{ (ac_try="$ac_compiler -V >&5"
10603case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606esac
10607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_compiler -V >&5") 2>&5
d7040cdb
SE
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }
10612
1b9750d6
NC
10613{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10614echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
d7040cdb
SE
10615if test "${ac_cv_c_compiler_gnu+set}" = set; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10617else
10618 cat >conftest.$ac_ext <<_ACEOF
10619/* confdefs.h. */
10620_ACEOF
10621cat confdefs.h >>conftest.$ac_ext
10622cat >>conftest.$ac_ext <<_ACEOF
10623/* end confdefs.h. */
10624
10625int
10626main ()
10627{
10628#ifndef __GNUC__
10629 choke me
10630#endif
10631
10632 ;
10633 return 0;
10634}
10635_ACEOF
10636rm -f conftest.$ac_objext
1b9750d6
NC
10637if { (ac_try="$ac_compile"
10638case "(($ac_try" in
10639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10640 *) ac_try_echo=$ac_try;;
10641esac
10642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10643 (eval "$ac_compile") 2>conftest.er1
d7040cdb
SE
10644 ac_status=$?
10645 grep -v '^ *+' conftest.er1 >conftest.err
10646 rm -f conftest.er1
10647 cat conftest.err >&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
10649 (exit $ac_status); } && {
10650 test -z "$ac_c_werror_flag" ||
10651 test ! -s conftest.err
10652 } && test -s conftest.$ac_objext; then
d7040cdb
SE
10653 ac_compiler_gnu=yes
10654else
10655 echo "$as_me: failed program was:" >&5
10656sed 's/^/| /' conftest.$ac_ext >&5
10657
1b9750d6 10658 ac_compiler_gnu=no
d7040cdb 10659fi
1b9750d6
NC
10660
10661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb
SE
10662ac_cv_c_compiler_gnu=$ac_compiler_gnu
10663
10664fi
1b9750d6
NC
10665{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10666echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
d7040cdb
SE
10667GCC=`test $ac_compiler_gnu = yes && echo yes`
10668ac_test_CFLAGS=${CFLAGS+set}
10669ac_save_CFLAGS=$CFLAGS
1b9750d6
NC
10670{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10671echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
d7040cdb
SE
10672if test "${ac_cv_prog_cc_g+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674else
1b9750d6
NC
10675 ac_save_c_werror_flag=$ac_c_werror_flag
10676 ac_c_werror_flag=yes
10677 ac_cv_prog_cc_g=no
10678 CFLAGS="-g"
10679 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10680/* confdefs.h. */
10681_ACEOF
10682cat confdefs.h >>conftest.$ac_ext
10683cat >>conftest.$ac_ext <<_ACEOF
10684/* end confdefs.h. */
10685
10686int
10687main ()
10688{
10689
10690 ;
10691 return 0;
10692}
10693_ACEOF
10694rm -f conftest.$ac_objext
1b9750d6
NC
10695if { (ac_try="$ac_compile"
10696case "(($ac_try" in
10697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698 *) ac_try_echo=$ac_try;;
10699esac
10700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701 (eval "$ac_compile") 2>conftest.er1
d7040cdb
SE
10702 ac_status=$?
10703 grep -v '^ *+' conftest.er1 >conftest.err
10704 rm -f conftest.er1
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
10707 (exit $ac_status); } && {
10708 test -z "$ac_c_werror_flag" ||
10709 test ! -s conftest.err
10710 } && test -s conftest.$ac_objext; then
10711 ac_cv_prog_cc_g=yes
10712else
10713 echo "$as_me: failed program was:" >&5
10714sed 's/^/| /' conftest.$ac_ext >&5
10715
10716 CFLAGS=""
10717 cat >conftest.$ac_ext <<_ACEOF
10718/* confdefs.h. */
10719_ACEOF
10720cat confdefs.h >>conftest.$ac_ext
10721cat >>conftest.$ac_ext <<_ACEOF
10722/* end confdefs.h. */
10723
10724int
10725main ()
10726{
10727
10728 ;
10729 return 0;
10730}
10731_ACEOF
10732rm -f conftest.$ac_objext
10733if { (ac_try="$ac_compile"
10734case "(($ac_try" in
10735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10736 *) ac_try_echo=$ac_try;;
10737esac
10738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10739 (eval "$ac_compile") 2>conftest.er1
d7040cdb 10740 ac_status=$?
1b9750d6
NC
10741 grep -v '^ *+' conftest.er1 >conftest.err
10742 rm -f conftest.er1
10743 cat conftest.err >&5
d7040cdb 10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
10745 (exit $ac_status); } && {
10746 test -z "$ac_c_werror_flag" ||
10747 test ! -s conftest.err
10748 } && test -s conftest.$ac_objext; then
10749 :
10750else
10751 echo "$as_me: failed program was:" >&5
10752sed 's/^/| /' conftest.$ac_ext >&5
10753
10754 ac_c_werror_flag=$ac_save_c_werror_flag
10755 CFLAGS="-g"
10756 cat >conftest.$ac_ext <<_ACEOF
10757/* confdefs.h. */
10758_ACEOF
10759cat confdefs.h >>conftest.$ac_ext
10760cat >>conftest.$ac_ext <<_ACEOF
10761/* end confdefs.h. */
10762
10763int
10764main ()
10765{
10766
10767 ;
10768 return 0;
10769}
10770_ACEOF
10771rm -f conftest.$ac_objext
10772if { (ac_try="$ac_compile"
10773case "(($ac_try" in
10774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775 *) ac_try_echo=$ac_try;;
10776esac
10777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10778 (eval "$ac_compile") 2>conftest.er1
d7040cdb 10779 ac_status=$?
1b9750d6
NC
10780 grep -v '^ *+' conftest.er1 >conftest.err
10781 rm -f conftest.er1
10782 cat conftest.err >&5
d7040cdb 10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
10784 (exit $ac_status); } && {
10785 test -z "$ac_c_werror_flag" ||
10786 test ! -s conftest.err
10787 } && test -s conftest.$ac_objext; then
d7040cdb
SE
10788 ac_cv_prog_cc_g=yes
10789else
10790 echo "$as_me: failed program was:" >&5
10791sed 's/^/| /' conftest.$ac_ext >&5
10792
1b9750d6
NC
10793
10794fi
10795
10796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 10797fi
1b9750d6
NC
10798
10799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10800fi
10801
10802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10803 ac_c_werror_flag=$ac_save_c_werror_flag
d7040cdb 10804fi
1b9750d6
NC
10805{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10806echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
d7040cdb
SE
10807if test "$ac_test_CFLAGS" = set; then
10808 CFLAGS=$ac_save_CFLAGS
10809elif test $ac_cv_prog_cc_g = yes; then
10810 if test "$GCC" = yes; then
10811 CFLAGS="-g -O2"
10812 else
10813 CFLAGS="-g"
10814 fi
10815else
10816 if test "$GCC" = yes; then
10817 CFLAGS="-O2"
10818 else
10819 CFLAGS=
10820 fi
10821fi
1b9750d6
NC
10822{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
10823echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
10824if test "${ac_cv_prog_cc_c89+set}" = set; then
d7040cdb
SE
10825 echo $ECHO_N "(cached) $ECHO_C" >&6
10826else
1b9750d6 10827 ac_cv_prog_cc_c89=no
d7040cdb
SE
10828ac_save_CC=$CC
10829cat >conftest.$ac_ext <<_ACEOF
10830/* confdefs.h. */
10831_ACEOF
10832cat confdefs.h >>conftest.$ac_ext
10833cat >>conftest.$ac_ext <<_ACEOF
10834/* end confdefs.h. */
10835#include <stdarg.h>
10836#include <stdio.h>
10837#include <sys/types.h>
10838#include <sys/stat.h>
10839/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10840struct buf { int x; };
10841FILE * (*rcsopen) (struct buf *, struct stat *, int);
10842static char *e (p, i)
10843 char **p;
10844 int i;
10845{
10846 return p[i];
10847}
10848static char *f (char * (*g) (char **, int), char **p, ...)
10849{
10850 char *s;
10851 va_list v;
10852 va_start (v,p);
10853 s = g (p, va_arg (v,int));
10854 va_end (v);
10855 return s;
10856}
10857
10858/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10859 function prototypes and stuff, but not '\xHH' hex character constants.
10860 These don't provoke an error unfortunately, instead are silently treated
1b9750d6 10861 as 'x'. The following induces an error, until -std is added to get
d7040cdb
SE
10862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10863 array size at least. It's necessary to write '\x00'==0 to get something
1b9750d6 10864 that's true only with -std. */
d7040cdb
SE
10865int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10866
1b9750d6
NC
10867/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
10868 inside strings and character constants. */
10869#define FOO(x) 'x'
10870int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d7040cdb 10871
1b9750d6
NC
10872int test (int i, double x);
10873struct s1 {int (*f) (int a);};
10874struct s2 {int (*f) (double a);};
10875int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10876int argc;
10877char **argv;
d7040cdb
SE
10878int
10879main ()
10880{
1b9750d6 10881return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
d7040cdb
SE
10882 ;
10883 return 0;
10884}
10885_ACEOF
1b9750d6
NC
10886for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
10887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10888do
10889 CC="$ac_save_CC $ac_arg"
10890 rm -f conftest.$ac_objext
10891if { (ac_try="$ac_compile"
10892case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10895esac
10896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_compile") 2>conftest.er1
d7040cdb
SE
10898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest.$ac_objext; then
10907 ac_cv_prog_cc_c89=$ac_arg
d7040cdb
SE
10908else
10909 echo "$as_me: failed program was:" >&5
10910sed 's/^/| /' conftest.$ac_ext >&5
10911
1b9750d6 10912
d7040cdb 10913fi
1b9750d6
NC
10914
10915rm -f core conftest.err conftest.$ac_objext
10916 test "x$ac_cv_prog_cc_c89" != "xno" && break
d7040cdb 10917done
1b9750d6
NC
10918rm -f conftest.$ac_ext
10919CC=$ac_save_CC
10920
d7040cdb 10921fi
1b9750d6
NC
10922# AC_CACHE_VAL
10923case "x$ac_cv_prog_cc_c89" in
10924 x)
10925 { echo "$as_me:$LINENO: result: none needed" >&5
10926echo "${ECHO_T}none needed" >&6; } ;;
10927 xno)
10928 { echo "$as_me:$LINENO: result: unsupported" >&5
10929echo "${ECHO_T}unsupported" >&6; } ;;
10930 *)
10931 CC="$CC $ac_cv_prog_cc_c89"
10932 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
10933echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
10934esac
d7040cdb 10935
d7040cdb 10936
d7040cdb
SE
10937ac_ext=c
10938ac_cpp='$CPP $CPPFLAGS'
10939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10941ac_compiler_gnu=$ac_cv_c_compiler_gnu
10942
10943# Find a good install program. We prefer a C program (faster),
10944# so one script is as good as another. But avoid the broken or
10945# incompatible versions:
10946# SysV /etc/install, /usr/sbin/install
10947# SunOS /usr/etc/install
10948# IRIX /sbin/install
10949# AIX /bin/install
10950# AmigaOS /C/install, which installs bootblocks on floppy discs
10951# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10952# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10953# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10954# OS/2's system install, which has a completely different semantic
10955# ./install, which can be erroneously created by make from ./install.sh.
1b9750d6
NC
10956{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10957echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d7040cdb
SE
10958if test -z "$INSTALL"; then
10959if test "${ac_cv_path_install+set}" = set; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10961else
10962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10963for as_dir in $PATH
10964do
10965 IFS=$as_save_IFS
10966 test -z "$as_dir" && as_dir=.
10967 # Account for people who put trailing slashes in PATH elements.
10968case $as_dir/ in
10969 ./ | .// | /cC/* | \
10970 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10971 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10972 /usr/ucb/* ) ;;
10973 *)
10974 # OSF1 and SCO ODT 3.0 have their own names for install.
10975 # Don't use installbsd from OSF since it installs stuff as root
10976 # by default.
10977 for ac_prog in ginstall scoinst install; do
10978 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 10979 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d7040cdb
SE
10980 if test $ac_prog = install &&
10981 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10982 # AIX install. It has an incompatible calling convention.
10983 :
10984 elif test $ac_prog = install &&
10985 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10986 # program-specific install script used by HP pwplus--don't use.
10987 :
10988 else
10989 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10990 break 3
10991 fi
10992 fi
10993 done
10994 done
10995 ;;
10996esac
10997done
1b9750d6 10998IFS=$as_save_IFS
d7040cdb
SE
10999
11000
11001fi
11002 if test "${ac_cv_path_install+set}" = set; then
11003 INSTALL=$ac_cv_path_install
11004 else
1b9750d6
NC
11005 # As a last resort, use the slow shell script. Don't cache a
11006 # value for INSTALL within a source directory, because that will
d7040cdb 11007 # break other packages using the cache if that directory is
1b9750d6 11008 # removed, or if the value is a relative name.
d7040cdb
SE
11009 INSTALL=$ac_install_sh
11010 fi
11011fi
1b9750d6
NC
11012{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11013echo "${ECHO_T}$INSTALL" >&6; }
d7040cdb
SE
11014
11015# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11016# It thinks the first close brace ends the variable substitution.
11017test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11018
11019test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11020
11021test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11022
11023
11024
11025for ac_func in setmode
11026do
11027as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1b9750d6
NC
11028{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11029echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11030if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d7040cdb
SE
11031 echo $ECHO_N "(cached) $ECHO_C" >&6
11032else
11033 cat >conftest.$ac_ext <<_ACEOF
11034/* confdefs.h. */
11035_ACEOF
11036cat confdefs.h >>conftest.$ac_ext
11037cat >>conftest.$ac_ext <<_ACEOF
11038/* end confdefs.h. */
11039/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11041#define $ac_func innocuous_$ac_func
11042
11043/* System header to define __stub macros and hopefully few prototypes,
11044 which can conflict with char $ac_func (); below.
11045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11046 <limits.h> exists even on freestanding compilers. */
11047
11048#ifdef __STDC__
11049# include <limits.h>
11050#else
11051# include <assert.h>
11052#endif
11053
11054#undef $ac_func
11055
1b9750d6
NC
11056/* Override any GCC internal prototype to avoid an error.
11057 Use char because int might match the return type of a GCC
11058 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11059#ifdef __cplusplus
11060extern "C"
d7040cdb 11061#endif
d7040cdb
SE
11062char $ac_func ();
11063/* The GNU C library defines this for functions which it implements
11064 to always fail with ENOSYS. Some functions are actually named
11065 something starting with __ and the normal name is an alias. */
1b9750d6 11066#if defined __stub_$ac_func || defined __stub___$ac_func
d7040cdb 11067choke me
d7040cdb
SE
11068#endif
11069
11070int
11071main ()
11072{
1b9750d6 11073return $ac_func ();
d7040cdb
SE
11074 ;
11075 return 0;
11076}
11077_ACEOF
11078rm -f conftest.$ac_objext conftest$ac_exeext
1b9750d6
NC
11079if { (ac_try="$ac_link"
11080case "(($ac_try" in
11081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082 *) ac_try_echo=$ac_try;;
11083esac
11084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085 (eval "$ac_link") 2>conftest.er1
d7040cdb
SE
11086 ac_status=$?
11087 grep -v '^ *+' conftest.er1 >conftest.err
11088 rm -f conftest.er1
11089 cat conftest.err >&5
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
11091 (exit $ac_status); } && {
11092 test -z "$ac_c_werror_flag" ||
11093 test ! -s conftest.err
11094 } && test -s conftest$ac_exeext &&
11095 $as_test_x conftest$ac_exeext; then
d7040cdb
SE
11096 eval "$as_ac_var=yes"
11097else
11098 echo "$as_me: failed program was:" >&5
11099sed 's/^/| /' conftest.$ac_ext >&5
11100
1b9750d6 11101 eval "$as_ac_var=no"
d7040cdb 11102fi
1b9750d6
NC
11103
11104rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d7040cdb
SE
11105 conftest$ac_exeext conftest.$ac_ext
11106fi
1b9750d6
NC
11107ac_res=`eval echo '${'$as_ac_var'}'`
11108 { echo "$as_me:$LINENO: result: $ac_res" >&5
11109echo "${ECHO_T}$ac_res" >&6; }
d7040cdb
SE
11110if test `eval echo '${'$as_ac_var'}'` = yes; then
11111 cat >>confdefs.h <<_ACEOF
11112#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11113_ACEOF
11114
11115fi
11116done
11117
11118
19aec961 11119ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi"
d7040cdb
SE
11120# If we haven't got the data from the intl directory,
11121# assume NLS is disabled.
11122USE_NLS=no
11123LIBINTL=
11124LIBINTL_DEP=
11125INCINTL=
11126XGETTEXT=
11127GMSGFMT=
11128POSUB=
11129
11130if test -f ../intl/config.intl; then
11131 . ../intl/config.intl
11132fi
1b9750d6
NC
11133{ echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11134echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
d7040cdb 11135if test x"$USE_NLS" != xyes; then
1b9750d6
NC
11136 { echo "$as_me:$LINENO: result: no" >&5
11137echo "${ECHO_T}no" >&6; }
d7040cdb 11138else
1b9750d6
NC
11139 { echo "$as_me:$LINENO: result: yes" >&5
11140echo "${ECHO_T}yes" >&6; }
d7040cdb
SE
11141
11142cat >>confdefs.h <<\_ACEOF
11143#define ENABLE_NLS 1
11144_ACEOF
11145
11146
1b9750d6
NC
11147 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11148echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
d7040cdb
SE
11149 # Look for .po and .gmo files in the source directory.
11150 CATALOGS=
11151 XLINGUAS=
11152 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11153 # If there aren't any .gmo files the shell will give us the
11154 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11155 # weeded out.
11156 case "$cat" in *\**)
11157 continue;;
11158 esac
11159 # The quadruple backslash is collapsed to a double backslash
11160 # by the backticks, then collapsed again by the double quotes,
11161 # leaving us with one backslash in the sed expression (right
11162 # before the dot that mustn't act as a wildcard).
11163 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11164 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11165 # The user is allowed to set LINGUAS to a list of languages to
11166 # install catalogs for. If it's empty that means "all of them."
11167 if test "x$LINGUAS" = x; then
11168 CATALOGS="$CATALOGS $cat"
11169 XLINGUAS="$XLINGUAS $lang"
11170 else
11171 case "$LINGUAS" in *$lang*)
11172 CATALOGS="$CATALOGS $cat"
11173 XLINGUAS="$XLINGUAS $lang"
11174 ;;
11175 esac
11176 fi
11177 done
11178 LINGUAS="$XLINGUAS"
1b9750d6
NC
11179 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
11180echo "${ECHO_T}$LINGUAS" >&6; }
d7040cdb
SE
11181
11182
11183 DATADIRNAME=share
11184
11185 INSTOBJEXT=.mo
11186
11187 GENCAT=gencat
11188
11189 CATOBJEXT=.gmo
11190
11191fi
11192
11193 MKINSTALLDIRS=
11194 if test -n "$ac_aux_dir"; then
11195 case "$ac_aux_dir" in
11196 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11197 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11198 esac
11199 fi
11200 if test -z "$MKINSTALLDIRS"; then
11201 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11202 fi
11203
11204
11205
1b9750d6
NC
11206 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11207echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
11208 # Check whether --enable-nls was given.
d7040cdb 11209if test "${enable_nls+set}" = set; then
1b9750d6 11210 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
11211else
11212 USE_NLS=yes
1b9750d6
NC
11213fi
11214
11215 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
11216echo "${ECHO_T}$USE_NLS" >&6; }
d7040cdb
SE
11217
11218
11219
11220
11221
11222
11223# Prepare PATH_SEPARATOR.
11224# The user is always right.
11225if test "${PATH_SEPARATOR+set}" != set; then
11226 echo "#! /bin/sh" >conf$$.sh
11227 echo "exit 0" >>conf$$.sh
11228 chmod +x conf$$.sh
11229 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11230 PATH_SEPARATOR=';'
11231 else
11232 PATH_SEPARATOR=:
11233 fi
11234 rm -f conf$$.sh
11235fi
11236
11237# Find out how to test for executable files. Don't use a zero-byte file,
11238# as systems may use methods other than mode bits to determine executability.
11239cat >conf$$.file <<_ASEOF
11240#! /bin/sh
11241exit 0
11242_ASEOF
11243chmod +x conf$$.file
11244if test -x conf$$.file >/dev/null 2>&1; then
11245 ac_executable_p="test -x"
11246else
11247 ac_executable_p="test -f"
11248fi
11249rm -f conf$$.file
11250
11251# Extract the first word of "msgfmt", so it can be a program name with args.
11252set dummy msgfmt; ac_word=$2
1b9750d6
NC
11253{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7040cdb
SE
11255if test "${ac_cv_path_MSGFMT+set}" = set; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11257else
11258 case "$MSGFMT" in
11259 [\\/]* | ?:[\\/]*)
11260 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11261 ;;
11262 *)
11263 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11264 for ac_dir in $PATH; do
11265 IFS="$ac_save_IFS"
11266 test -z "$ac_dir" && ac_dir=.
11267 for ac_exec_ext in '' $ac_executable_extensions; do
11268 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11269 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11270 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11271 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11272 break 2
11273 fi
11274 fi
11275 done
11276 done
11277 IFS="$ac_save_IFS"
11278 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11279 ;;
11280esac
11281fi
11282MSGFMT="$ac_cv_path_MSGFMT"
11283if test "$MSGFMT" != ":"; then
1b9750d6
NC
11284 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
11285echo "${ECHO_T}$MSGFMT" >&6; }
d7040cdb 11286else
1b9750d6
NC
11287 { echo "$as_me:$LINENO: result: no" >&5
11288echo "${ECHO_T}no" >&6; }
d7040cdb
SE
11289fi
11290
11291 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11292set dummy gmsgfmt; ac_word=$2
1b9750d6
NC
11293{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7040cdb
SE
11295if test "${ac_cv_path_GMSGFMT+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11297else
11298 case $GMSGFMT in
11299 [\\/]* | ?:[\\/]*)
11300 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11301 ;;
11302 *)
11303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304for as_dir in $PATH
11305do
11306 IFS=$as_save_IFS
11307 test -z "$as_dir" && as_dir=.
11308 for ac_exec_ext in '' $ac_executable_extensions; do
1b9750d6 11309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb
SE
11310 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11312 break 2
11313 fi
11314done
11315done
1b9750d6 11316IFS=$as_save_IFS
d7040cdb
SE
11317
11318 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11319 ;;
11320esac
11321fi
11322GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 11323if test -n "$GMSGFMT"; then
1b9750d6
NC
11324 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11325echo "${ECHO_T}$GMSGFMT" >&6; }
d7040cdb 11326else
1b9750d6
NC
11327 { echo "$as_me:$LINENO: result: no" >&5
11328echo "${ECHO_T}no" >&6; }
d7040cdb
SE
11329fi
11330
11331
11332
1b9750d6 11333
d7040cdb
SE
11334# Prepare PATH_SEPARATOR.
11335# The user is always right.
11336if test "${PATH_SEPARATOR+set}" != set; then
11337 echo "#! /bin/sh" >conf$$.sh
11338 echo "exit 0" >>conf$$.sh
11339 chmod +x conf$$.sh
11340 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11341 PATH_SEPARATOR=';'
11342 else
11343 PATH_SEPARATOR=:
11344 fi
11345 rm -f conf$$.sh
11346fi
11347
11348# Find out how to test for executable files. Don't use a zero-byte file,
11349# as systems may use methods other than mode bits to determine executability.
11350cat >conf$$.file <<_ASEOF
11351#! /bin/sh
11352exit 0
11353_ASEOF
11354chmod +x conf$$.file
11355if test -x conf$$.file >/dev/null 2>&1; then
11356 ac_executable_p="test -x"
11357else
11358 ac_executable_p="test -f"
11359fi
11360rm -f conf$$.file
11361
11362# Extract the first word of "xgettext", so it can be a program name with args.
11363set dummy xgettext; ac_word=$2
1b9750d6
NC
11364{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7040cdb
SE
11366if test "${ac_cv_path_XGETTEXT+set}" = set; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368else
11369 case "$XGETTEXT" in
11370 [\\/]* | ?:[\\/]*)
11371 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11372 ;;
11373 *)
11374 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11375 for ac_dir in $PATH; do
11376 IFS="$ac_save_IFS"
11377 test -z "$ac_dir" && ac_dir=.
11378 for ac_exec_ext in '' $ac_executable_extensions; do
11379 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11380 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11381 (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
11382 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11383 break 2
11384 fi
11385 fi
11386 done
11387 done
11388 IFS="$ac_save_IFS"
11389 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11390 ;;
11391esac
11392fi
11393XGETTEXT="$ac_cv_path_XGETTEXT"
11394if test "$XGETTEXT" != ":"; then
1b9750d6
NC
11395 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11396echo "${ECHO_T}$XGETTEXT" >&6; }
d7040cdb 11397else
1b9750d6
NC
11398 { echo "$as_me:$LINENO: result: no" >&5
11399echo "${ECHO_T}no" >&6; }
d7040cdb
SE
11400fi
11401
11402 rm -f messages.po
11403
11404
11405# Prepare PATH_SEPARATOR.
11406# The user is always right.
11407if test "${PATH_SEPARATOR+set}" != set; then
11408 echo "#! /bin/sh" >conf$$.sh
11409 echo "exit 0" >>conf$$.sh
11410 chmod +x conf$$.sh
11411 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11412 PATH_SEPARATOR=';'
11413 else
11414 PATH_SEPARATOR=:
11415 fi
11416 rm -f conf$$.sh
11417fi
11418
11419# Find out how to test for executable files. Don't use a zero-byte file,
11420# as systems may use methods other than mode bits to determine executability.
11421cat >conf$$.file <<_ASEOF
11422#! /bin/sh
11423exit 0
11424_ASEOF
11425chmod +x conf$$.file
11426if test -x conf$$.file >/dev/null 2>&1; then
11427 ac_executable_p="test -x"
11428else
11429 ac_executable_p="test -f"
11430fi
11431rm -f conf$$.file
11432
11433# Extract the first word of "msgmerge", so it can be a program name with args.
11434set dummy msgmerge; ac_word=$2
1b9750d6
NC
11435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d7040cdb
SE
11437if test "${ac_cv_path_MSGMERGE+set}" = set; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11439else
11440 case "$MSGMERGE" in
11441 [\\/]* | ?:[\\/]*)
11442 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11443 ;;
11444 *)
11445 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11446 for ac_dir in $PATH; do
11447 IFS="$ac_save_IFS"
11448 test -z "$ac_dir" && ac_dir=.
11449 for ac_exec_ext in '' $ac_executable_extensions; do
11450 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11451 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11452 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11453 break 2
11454 fi
11455 fi
11456 done
11457 done
11458 IFS="$ac_save_IFS"
11459 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11460 ;;
11461esac
11462fi
11463MSGMERGE="$ac_cv_path_MSGMERGE"
11464if test "$MSGMERGE" != ":"; then
1b9750d6
NC
11465 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11466echo "${ECHO_T}$MSGMERGE" >&6; }
d7040cdb 11467else
1b9750d6
NC
11468 { echo "$as_me:$LINENO: result: no" >&5
11469echo "${ECHO_T}no" >&6; }
d7040cdb
SE
11470fi
11471
11472
11473 if test "$GMSGFMT" != ":"; then
11474 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11475 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11476 : ;
11477 else
11478 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
1b9750d6
NC
11479 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11480echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
11481 GMSGFMT=":"
11482 fi
11483 fi
11484
11485 if test "$XGETTEXT" != ":"; then
11486 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11487 (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
11488 : ;
11489 else
1b9750d6
NC
11490 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11491echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
11492 XGETTEXT=":"
11493 fi
11494 rm -f messages.po
11495 fi
11496
1b9750d6 11497 ac_config_commands="$ac_config_commands default-1"
d7040cdb
SE
11498
11499
11500
1b9750d6
NC
11501{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11502echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
11503 # Check whether --enable-maintainer-mode was given.
d7040cdb 11504if test "${enable_maintainer_mode+set}" = set; then
1b9750d6 11505 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 11506else
d7040cdb 11507 USE_MAINTAINER_MODE=no
1b9750d6
NC
11508fi
11509
11510 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11511echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
6bf9431b 11512
d7040cdb
SE
11513
11514if test $USE_MAINTAINER_MODE = yes; then
11515 MAINTAINER_MODE_TRUE=
11516 MAINTAINER_MODE_FALSE='#'
11517else
11518 MAINTAINER_MODE_TRUE='#'
11519 MAINTAINER_MODE_FALSE=
20e95c23 11520fi
6bf9431b 11521
d7040cdb
SE
11522 MAINT=$MAINTAINER_MODE_TRUE
11523
11524
11525
11526
11527if false; then
11528 GENINSRC_NEVER_TRUE=
11529 GENINSRC_NEVER_FALSE='#'
11530else
11531 GENINSRC_NEVER_TRUE='#'
11532 GENINSRC_NEVER_FALSE=
20e95c23 11533fi
6bf9431b
BE
11534
11535
11536
11537
11538for ac_header in sys/gmon_out.h
11539do
11540as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1b9750d6
NC
11541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11544if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6bf9431b
BE
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11546fi
1b9750d6
NC
11547ac_res=`eval echo '${'$as_ac_Header'}'`
11548 { echo "$as_me:$LINENO: result: $ac_res" >&5
11549echo "${ECHO_T}$ac_res" >&6; }
6bf9431b
BE
11550else
11551 # Is the header compilable?
1b9750d6
NC
11552{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11553echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6bf9431b
BE
11554cat >conftest.$ac_ext <<_ACEOF
11555/* confdefs.h. */
11556_ACEOF
11557cat confdefs.h >>conftest.$ac_ext
11558cat >>conftest.$ac_ext <<_ACEOF
11559/* end confdefs.h. */
11560$ac_includes_default
11561#include <$ac_header>
11562_ACEOF
11563rm -f conftest.$ac_objext
1b9750d6
NC
11564if { (ac_try="$ac_compile"
11565case "(($ac_try" in
11566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567 *) ac_try_echo=$ac_try;;
11568esac
11569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11570 (eval "$ac_compile") 2>conftest.er1
6bf9431b
BE
11571 ac_status=$?
11572 grep -v '^ *+' conftest.er1 >conftest.err
11573 rm -f conftest.er1
11574 cat conftest.err >&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
11576 (exit $ac_status); } && {
11577 test -z "$ac_c_werror_flag" ||
11578 test ! -s conftest.err
11579 } && test -s conftest.$ac_objext; then
6bf9431b
BE
11580 ac_header_compiler=yes
11581else
11582 echo "$as_me: failed program was:" >&5
11583sed 's/^/| /' conftest.$ac_ext >&5
11584
1b9750d6 11585 ac_header_compiler=no
6bf9431b 11586fi
1b9750d6
NC
11587
11588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11589{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11590echo "${ECHO_T}$ac_header_compiler" >&6; }
6bf9431b
BE
11591
11592# Is the header present?
1b9750d6
NC
11593{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11594echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6bf9431b
BE
11595cat >conftest.$ac_ext <<_ACEOF
11596/* confdefs.h. */
11597_ACEOF
11598cat confdefs.h >>conftest.$ac_ext
11599cat >>conftest.$ac_ext <<_ACEOF
11600/* end confdefs.h. */
11601#include <$ac_header>
11602_ACEOF
1b9750d6
NC
11603if { (ac_try="$ac_cpp conftest.$ac_ext"
11604case "(($ac_try" in
11605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11606 *) ac_try_echo=$ac_try;;
11607esac
11608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6bf9431b
BE
11610 ac_status=$?
11611 grep -v '^ *+' conftest.er1 >conftest.err
11612 rm -f conftest.er1
11613 cat conftest.err >&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
11615 (exit $ac_status); } >/dev/null && {
11616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11617 test ! -s conftest.err
11618 }; then
6bf9431b
BE
11619 ac_header_preproc=yes
11620else
11621 echo "$as_me: failed program was:" >&5
11622sed 's/^/| /' conftest.$ac_ext >&5
11623
11624 ac_header_preproc=no
11625fi
1b9750d6 11626
6bf9431b 11627rm -f conftest.err conftest.$ac_ext
1b9750d6
NC
11628{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11629echo "${ECHO_T}$ac_header_preproc" >&6; }
6bf9431b
BE
11630
11631# So? What about this header?
11632case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11633 yes:no: )
11634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11635echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11637echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11638 ac_header_preproc=yes
11639 ;;
11640 no:yes:* )
11641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11642echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11644echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11646echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11648echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11650echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11652echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1b9750d6 11653
6bf9431b
BE
11654 ;;
11655esac
1b9750d6
NC
11656{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6bf9431b
BE
11659 echo $ECHO_N "(cached) $ECHO_C" >&6
11660else
11661 eval "$as_ac_Header=\$ac_header_preproc"
11662fi
1b9750d6
NC
11663ac_res=`eval echo '${'$as_ac_Header'}'`
11664 { echo "$as_me:$LINENO: result: $ac_res" >&5
11665echo "${ECHO_T}$ac_res" >&6; }
6bf9431b
BE
11666
11667fi
11668if test `eval echo '${'$as_ac_Header'}'` = yes; then
11669 cat >>confdefs.h <<_ACEOF
11670#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11671_ACEOF
11672
11673fi
11674
11675done
11676
11677
1b9750d6
NC
11678{ echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
11679echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6; }
34875e64
NC
11680if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11682else
11683 cat >conftest.$ac_ext <<_ACEOF
11684/* confdefs.h. */
11685_ACEOF
11686cat confdefs.h >>conftest.$ac_ext
11687cat >>conftest.$ac_ext <<_ACEOF
11688/* end confdefs.h. */
11689#include <unistd.h>
11690int
11691main ()
11692{
11693extern int getopt (int, char *const*, const char *);
11694 ;
11695 return 0;
11696}
11697_ACEOF
11698rm -f conftest.$ac_objext
1b9750d6
NC
11699if { (ac_try="$ac_compile"
11700case "(($ac_try" in
11701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702 *) ac_try_echo=$ac_try;;
11703esac
11704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705 (eval "$ac_compile") 2>conftest.er1
34875e64
NC
11706 ac_status=$?
11707 grep -v '^ *+' conftest.er1 >conftest.err
11708 rm -f conftest.er1
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1b9750d6
NC
11711 (exit $ac_status); } && {
11712 test -z "$ac_c_werror_flag" ||
11713 test ! -s conftest.err
11714 } && test -s conftest.$ac_objext; then
34875e64
NC
11715 gprof_cv_decl_getopt_unistd_h=yes
11716else
11717 echo "$as_me: failed program was:" >&5
11718sed 's/^/| /' conftest.$ac_ext >&5
11719
1b9750d6 11720 gprof_cv_decl_getopt_unistd_h=no
34875e64 11721fi
1b9750d6
NC
11722
11723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
11724fi
11725
1b9750d6
NC
11726{ echo "$as_me:$LINENO: result: $gprof_cv_decl_getopt_unistd_h" >&5
11727echo "${ECHO_T}$gprof_cv_decl_getopt_unistd_h" >&6; }
34875e64
NC
11728if test $gprof_cv_decl_getopt_unistd_h = yes; then
11729
11730cat >>confdefs.h <<\_ACEOF
11731#define HAVE_DECL_GETOPT 1
11732_ACEOF
11733
11734fi
11735
1b9750d6
NC
11736# Some systems have fabs only in -lm, not in -lc.
11737{ echo "$as_me:$LINENO: checking for library containing fabs" >&5
11738echo $ECHO_N "checking for library containing fabs... $ECHO_C" >&6; }
11739if test "${ac_cv_search_fabs+set}" = set; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11741else
11742 ac_func_search_save_LIBS=$LIBS
11743cat >conftest.$ac_ext <<_ACEOF
11744/* confdefs.h. */
11745_ACEOF
11746cat confdefs.h >>conftest.$ac_ext
11747cat >>conftest.$ac_ext <<_ACEOF
11748/* end confdefs.h. */
11749
11750/* Override any GCC internal prototype to avoid an error.
11751 Use char because int might match the return type of a GCC
11752 builtin and then its argument prototype would still apply. */
11753#ifdef __cplusplus
11754extern "C"
11755#endif
11756char fabs ();
11757int
11758main ()
11759{
11760return fabs ();
11761 ;
11762 return 0;
11763}
11764_ACEOF
11765for ac_lib in '' m; do
11766 if test -z "$ac_lib"; then
11767 ac_res="none required"
11768 else
11769 ac_res=-l$ac_lib
11770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11771 fi
11772 rm -f conftest.$ac_objext conftest$ac_exeext
11773if { (ac_try="$ac_link"
11774case "(($ac_try" in
11775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11776 *) ac_try_echo=$ac_try;;
11777esac
11778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11779 (eval "$ac_link") 2>conftest.er1
11780 ac_status=$?
11781 grep -v '^ *+' conftest.er1 >conftest.err
11782 rm -f conftest.er1
11783 cat conftest.err >&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); } && {
11786 test -z "$ac_c_werror_flag" ||
11787 test ! -s conftest.err
11788 } && test -s conftest$ac_exeext &&
11789 $as_test_x conftest$ac_exeext; then
11790 ac_cv_search_fabs=$ac_res
11791else
11792 echo "$as_me: failed program was:" >&5
11793sed 's/^/| /' conftest.$ac_ext >&5
11794
11795
11796fi
11797
11798rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11799 conftest$ac_exeext
11800 if test "${ac_cv_search_fabs+set}" = set; then
11801 break
11802fi
11803done
11804if test "${ac_cv_search_fabs+set}" = set; then
11805 :
11806else
11807 ac_cv_search_fabs=no
11808fi
11809rm conftest.$ac_ext
11810LIBS=$ac_func_search_save_LIBS
11811fi
11812{ echo "$as_me:$LINENO: result: $ac_cv_search_fabs" >&5
11813echo "${ECHO_T}$ac_cv_search_fabs" >&6; }
11814ac_res=$ac_cv_search_fabs
11815if test "$ac_res" != no; then
11816 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11817
11818fi
11819
11820
9e9b66a9 11821
a541e3ce 11822GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 11823
1b9750d6 11824# Check whether --enable-werror was given.
569acd2c 11825if test "${enable_werror+set}" = set; then
1b9750d6 11826 enableval=$enable_werror; case "${enableval}" in
1ad12f97
NC
11827 yes | y) ERROR_ON_WARNING="yes" ;;
11828 no | n) ERROR_ON_WARNING="no" ;;
569acd2c
NC
11829 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11830echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
1ad12f97
NC
11831 { (exit 1); exit 1; }; } ;;
11832 esac
1b9750d6
NC
11833fi
11834
1ad12f97 11835
9e9b66a9
AM
11836# Enable -Werror by default when using gcc
11837if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11838 ERROR_ON_WARNING=yes
11839fi
11840
11841NO_WERROR=
11842if test "${ERROR_ON_WARNING}" = yes ; then
a541e3ce 11843 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9 11844 NO_WERROR="-Wno-error"
1ad12f97
NC
11845fi
11846
a541e3ce
SE
11847if test "${GCC}" = yes ; then
11848 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11849fi
11850
1b9750d6 11851# Check whether --enable-build-warnings was given.
6bf9431b 11852if test "${enable_build_warnings+set}" = set; then
1b9750d6 11853 enableval=$enable_build_warnings; case "${enableval}" in
a541e3ce
SE
11854 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11855 no) if test "${GCC}" = yes ; then
11856 WARN_CFLAGS="-w"
11857 fi;;
6bf9431b 11858 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 11859 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
6bf9431b 11860 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
a541e3ce 11861 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 11862 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6bf9431b 11863esac
1b9750d6
NC
11864fi
11865
9e9b66a9
AM
11866
11867if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11868 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
6bf9431b
BE
11869fi
11870
11871
9e9b66a9
AM
11872
11873
11874
108a6f8e
CD
11875
11876
11877
11878
1b9750d6 11879ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
6bf9431b 11880
6bf9431b
BE
11881cat >confcache <<\_ACEOF
11882# This file is a shell script that caches the results of configure
11883# tests run on this system so they can be shared between configure
11884# scripts and configure runs, see configure's option --config-cache.
11885# It is not useful on other systems. If it contains results you don't
11886# want to keep, you may remove or edit it.
11887#
11888# config.status only pays attention to the cache file if you give it
11889# the --recheck option to rerun configure.
11890#
11891# `ac_cv_env_foo' variables (set or unset) will be overridden when
11892# loading this file, other *unset* `ac_cv_foo' will be assigned the
11893# following values.
11894
11895_ACEOF
11896
11897# The following way of writing the cache mishandles newlines in values,
11898# but we know of no workaround that is simple, portable, and efficient.
1b9750d6 11899# So, we kill variables containing newlines.
6bf9431b
BE
11900# Ultrix sh set writes to stderr and can't be redirected directly,
11901# and sets the high bit in the cache file unless we assign to the vars.
1b9750d6
NC
11902(
11903 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11904 eval ac_val=\$$ac_var
11905 case $ac_val in #(
11906 *${as_nl}*)
11907 case $ac_var in #(
11908 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11909echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11910 esac
11911 case $ac_var in #(
11912 _ | IFS | as_nl) ;; #(
11913 *) $as_unset $ac_var ;;
11914 esac ;;
11915 esac
11916 done
11917
6bf9431b 11918 (set) 2>&1 |
1b9750d6
NC
11919 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11920 *${as_nl}ac_space=\ *)
6bf9431b
BE
11921 # `set' does not quote correctly, so add quotes (double-quote
11922 # substitution turns \\\\ into \\, and sed turns \\ into \).
11923 sed -n \
11924 "s/'/'\\\\''/g;
11925 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1b9750d6 11926 ;; #(
6bf9431b
BE
11927 *)
11928 # `set' quotes correctly as required by POSIX, so do not add quotes.
1b9750d6 11929 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6bf9431b 11930 ;;
1b9750d6
NC
11931 esac |
11932 sort
11933) |
6bf9431b 11934 sed '
1b9750d6 11935 /^ac_cv_env_/b end
6bf9431b 11936 t clear
1b9750d6 11937 :clear
6bf9431b
BE
11938 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11939 t end
1b9750d6
NC
11940 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11941 :end' >>confcache
11942if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11943 if test -w "$cache_file"; then
11944 test "x$cache_file" != "x/dev/null" &&
11945 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11946echo "$as_me: updating cache $cache_file" >&6;}
6bf9431b
BE
11947 cat confcache >$cache_file
11948 else
1b9750d6
NC
11949 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11950echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6bf9431b
BE
11951 fi
11952fi
11953rm -f confcache
11954
11955test "x$prefix" = xNONE && prefix=$ac_default_prefix
11956# Let make expand exec_prefix.
11957test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11958
6bf9431b
BE
11959DEFS=-DHAVE_CONFIG_H
11960
11961ac_libobjs=
11962ac_ltlibobjs=
11963for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11964 # 1. Remove the extension, and $U if already installed.
1b9750d6
NC
11965 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11966 ac_i=`echo "$ac_i" | sed "$ac_script"`
11967 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11968 # will be set to the directory where LIBOBJS objects are built.
11969 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11970 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6bf9431b
BE
11971done
11972LIBOBJS=$ac_libobjs
11973
11974LTLIBOBJS=$ac_ltlibobjs
11975
11976
11977if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11978 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11979Usually this means the macro was only invoked conditionally." >&5
11980echo "$as_me: error: conditional \"AMDEP\" was never defined.
11981Usually this means the macro was only invoked conditionally." >&2;}
11982 { (exit 1); exit 1; }; }
11983fi
11984if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11985 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11986Usually this means the macro was only invoked conditionally." >&5
11987echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11988Usually this means the macro was only invoked conditionally." >&2;}
11989 { (exit 1); exit 1; }; }
11990fi
11991if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11992 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11993Usually this means the macro was only invoked conditionally." >&5
11994echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11995Usually this means the macro was only invoked conditionally." >&2;}
11996 { (exit 1); exit 1; }; }
11997fi
d5fbea21
DJ
11998if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
11999 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
12000Usually this means the macro was only invoked conditionally." >&5
12001echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
12002Usually this means the macro was only invoked conditionally." >&2;}
12003 { (exit 1); exit 1; }; }
12004fi
6bf9431b
BE
12005
12006: ${CONFIG_STATUS=./config.status}
12007ac_clean_files_save=$ac_clean_files
12008ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12009{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12010echo "$as_me: creating $CONFIG_STATUS" >&6;}
12011cat >$CONFIG_STATUS <<_ACEOF
12012#! $SHELL
12013# Generated by $as_me.
12014# Run this file to recreate the current configuration.
12015# Compiler output produced by configure, useful for debugging
12016# configure, is in config.log if it exists.
12017
12018debug=false
12019ac_cs_recheck=false
12020ac_cs_silent=false
12021SHELL=\${CONFIG_SHELL-$SHELL}
12022_ACEOF
12023
12024cat >>$CONFIG_STATUS <<\_ACEOF
12025## --------------------- ##
12026## M4sh Initialization. ##
12027## --------------------- ##
12028
1b9750d6
NC
12029# Be more Bourne compatible
12030DUALCASE=1; export DUALCASE # for MKS sh
6bf9431b
BE
12031if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12032 emulate sh
12033 NULLCMD=:
12034 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12035 # is contrary to our usage. Disable this feature.
12036 alias -g '${1+"$@"}'='"$@"'
1b9750d6
NC
12037 setopt NO_GLOB_SUBST
12038else
12039 case `(set -o) 2>/dev/null` in
12040 *posix*) set -o posix ;;
12041esac
12042
12043fi
12044
12045
12046
12047
12048# PATH needs CR
12049# Avoid depending upon Character Ranges.
12050as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12051as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12052as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12053as_cr_digits='0123456789'
12054as_cr_alnum=$as_cr_Letters$as_cr_digits
12055
12056# The user is always right.
12057if test "${PATH_SEPARATOR+set}" != set; then
12058 echo "#! /bin/sh" >conf$$.sh
12059 echo "exit 0" >>conf$$.sh
12060 chmod +x conf$$.sh
12061 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12062 PATH_SEPARATOR=';'
12063 else
12064 PATH_SEPARATOR=:
12065 fi
12066 rm -f conf$$.sh
6bf9431b 12067fi
6bf9431b
BE
12068
12069# Support unset when possible.
12070if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12071 as_unset=unset
12072else
12073 as_unset=false
12074fi
12075
12076
1b9750d6
NC
12077# IFS
12078# We need space, tab and new line, in precisely that order. Quoting is
12079# there to prevent editors from complaining about space-tab.
12080# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12081# splitting by setting IFS to empty value.)
12082as_nl='
12083'
12084IFS=" "" $as_nl"
12085
12086# Find who we are. Look in the path if we contain no directory separator.
12087case $0 in
12088 *[\\/]* ) as_myself=$0 ;;
12089 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12090for as_dir in $PATH
12091do
12092 IFS=$as_save_IFS
12093 test -z "$as_dir" && as_dir=.
12094 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12095done
12096IFS=$as_save_IFS
12097
12098 ;;
12099esac
12100# We did not find ourselves, most probably we were run as `sh COMMAND'
12101# in which case we are not to be found in the path.
12102if test "x$as_myself" = x; then
12103 as_myself=$0
12104fi
12105if test ! -f "$as_myself"; then
12106 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12107 { (exit 1); exit 1; }
12108fi
12109
6bf9431b 12110# Work around bugs in pre-3.0 UWIN ksh.
1b9750d6
NC
12111for as_var in ENV MAIL MAILPATH
12112do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12113done
6bf9431b
BE
12114PS1='$ '
12115PS2='> '
12116PS4='+ '
12117
12118# NLS nuisances.
12119for as_var in \
12120 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12121 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12122 LC_TELEPHONE LC_TIME
12123do
12124 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12125 eval $as_var=C; export $as_var
12126 else
1b9750d6 12127 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6bf9431b
BE
12128 fi
12129done
12130
12131# Required to use basename.
1b9750d6
NC
12132if expr a : '\(a\)' >/dev/null 2>&1 &&
12133 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6bf9431b
BE
12134 as_expr=expr
12135else
12136 as_expr=false
12137fi
12138
1b9750d6 12139if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6bf9431b
BE
12140 as_basename=basename
12141else
12142 as_basename=false
252b5132 12143fi
252b5132 12144
252b5132 12145
6bf9431b 12146# Name of the executable.
1b9750d6 12147as_me=`$as_basename -- "$0" ||
6bf9431b
BE
12148$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12149 X"$0" : 'X\(//\)$' \| \
1b9750d6 12150 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6bf9431b 12151echo X/"$0" |
1b9750d6
NC
12152 sed '/^.*\/\([^/][^/]*\)\/*$/{
12153 s//\1/
12154 q
12155 }
12156 /^X\/\(\/\/\)$/{
12157 s//\1/
12158 q
12159 }
12160 /^X\/\(\/\).*/{
12161 s//\1/
12162 q
12163 }
12164 s/.*/./; q'`
6bf9431b 12165
1b9750d6
NC
12166# CDPATH.
12167$as_unset CDPATH
252b5132 12168
252b5132
RH
12169
12170
6bf9431b
BE
12171 as_lineno_1=$LINENO
12172 as_lineno_2=$LINENO
6bf9431b 12173 test "x$as_lineno_1" != "x$as_lineno_2" &&
1b9750d6 12174 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6bf9431b
BE
12175
12176 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12177 # uniformly replaced by the line number. The first 'sed' inserts a
1b9750d6
NC
12178 # line-number line after each line using $LINENO; the second 'sed'
12179 # does the real work. The second script uses 'N' to pair each
12180 # line-number line with the line containing $LINENO, and appends
12181 # trailing '-' during substitution so that $LINENO is not a special
12182 # case at line end.
6bf9431b 12183 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1b9750d6
NC
12184 # scripts with optimization help from Paolo Bonzini. Blame Lee
12185 # E. McMahon (1931-1989) for sed's syntax. :-)
12186 sed -n '
12187 p
12188 /[$]LINENO/=
12189 ' <$as_myself |
6bf9431b 12190 sed '
1b9750d6
NC
12191 s/[$]LINENO.*/&-/
12192 t lineno
12193 b
12194 :lineno
6bf9431b 12195 N
1b9750d6
NC
12196 :loop
12197 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6bf9431b 12198 t loop
1b9750d6 12199 s/-\n.*//
6bf9431b 12200 ' >$as_me.lineno &&
1b9750d6
NC
12201 chmod +x "$as_me.lineno" ||
12202 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6bf9431b
BE
12203 { (exit 1); exit 1; }; }
12204
12205 # Don't try to exec as it changes $[0], causing all sort of problems
12206 # (the dirname of $[0] is not the place where we might find the
1b9750d6
NC
12207 # original and so on. Autoconf is especially sensitive to this).
12208 . "./$as_me.lineno"
6bf9431b
BE
12209 # Exit status is that of the last command.
12210 exit
12211}
12212
12213
1b9750d6
NC
12214if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12215 as_dirname=dirname
12216else
12217 as_dirname=false
12218fi
12219
12220ECHO_C= ECHO_N= ECHO_T=
12221case `echo -n x` in
12222-n*)
12223 case `echo 'x\c'` in
12224 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12225 *) ECHO_C='\c';;
12226 esac;;
12227*)
12228 ECHO_N='-n';;
6bf9431b
BE
12229esac
12230
1b9750d6
NC
12231if expr a : '\(a\)' >/dev/null 2>&1 &&
12232 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6bf9431b 12233 as_expr=expr
0eee5820 12234else
6bf9431b 12235 as_expr=false
0eee5820 12236fi
6bf9431b
BE
12237
12238rm -f conf$$ conf$$.exe conf$$.file
1b9750d6
NC
12239if test -d conf$$.dir; then
12240 rm -f conf$$.dir/conf$$.file
12241else
12242 rm -f conf$$.dir
12243 mkdir conf$$.dir
12244fi
6bf9431b
BE
12245echo >conf$$.file
12246if ln -s conf$$.file conf$$ 2>/dev/null; then
1b9750d6
NC
12247 as_ln_s='ln -s'
12248 # ... but there are two gotchas:
12249 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12250 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12251 # In both cases, we have to default to `cp -p'.
12252 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6bf9431b 12253 as_ln_s='cp -p'
6bf9431b
BE
12254elif ln conf$$.file conf$$ 2>/dev/null; then
12255 as_ln_s=ln
12256else
12257 as_ln_s='cp -p'
0eee5820 12258fi
1b9750d6
NC
12259rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12260rmdir conf$$.dir 2>/dev/null
6bf9431b
BE
12261
12262if mkdir -p . 2>/dev/null; then
12263 as_mkdir_p=:
0eee5820 12264else
6bf9431b
BE
12265 test -d ./-p && rmdir ./-p
12266 as_mkdir_p=false
0eee5820 12267fi
0eee5820 12268
1b9750d6
NC
12269if test -x / >/dev/null 2>&1; then
12270 as_test_x='test -x'
12271else
12272 if ls -dL / >/dev/null 2>&1; then
12273 as_ls_L_option=L
12274 else
12275 as_ls_L_option=
12276 fi
12277 as_test_x='
12278 eval sh -c '\''
12279 if test -d "$1"; then
12280 test -d "$1/.";
12281 else
12282 case $1 in
12283 -*)set "./$1";;
12284 esac;
12285 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12286 ???[sx]*):;;*)false;;esac;fi
12287 '\'' sh
12288 '
12289fi
12290as_executable_p=$as_test_x
0eee5820 12291
6bf9431b
BE
12292# Sed expression to map a string onto a valid CPP name.
12293as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12294
12295# Sed expression to map a string onto a valid variable name.
12296as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12297
1b9750d6 12298
6bf9431b
BE
12299exec 6>&1
12300
1b9750d6 12301# Save the log message, to keep $[0] and so on meaningful, and to
6bf9431b 12302# report actual input values of CONFIG_FILES etc. instead of their
1b9750d6
NC
12303# values after options handling.
12304ac_log="
6bf9431b 12305This file was extended by $as_me, which was
1b9750d6 12306generated by GNU Autoconf 2.61. Invocation command line was
6bf9431b
BE
12307
12308 CONFIG_FILES = $CONFIG_FILES
12309 CONFIG_HEADERS = $CONFIG_HEADERS
12310 CONFIG_LINKS = $CONFIG_LINKS
12311 CONFIG_COMMANDS = $CONFIG_COMMANDS
12312 $ $0 $@
12313
1b9750d6
NC
12314on `(hostname || uname -n) 2>/dev/null | sed 1q`
12315"
12316
6bf9431b
BE
12317_ACEOF
12318
1b9750d6 12319cat >>$CONFIG_STATUS <<_ACEOF
6bf9431b 12320# Files that config.status was made for.
1b9750d6
NC
12321config_files="$ac_config_files"
12322config_headers="$ac_config_headers"
12323config_commands="$ac_config_commands"
a2d91340 12324
1b9750d6 12325_ACEOF
a2d91340 12326
6bf9431b 12327cat >>$CONFIG_STATUS <<\_ACEOF
6bf9431b
BE
12328ac_cs_usage="\
12329\`$as_me' instantiates files from templates according to the
12330current configuration.
12331
12332Usage: $0 [OPTIONS] [FILE]...
12333
12334 -h, --help print this help, then exit
1b9750d6 12335 -V, --version print version number and configuration settings, then exit
6bf9431b
BE
12336 -q, --quiet do not print progress messages
12337 -d, --debug don't remove temporary files
12338 --recheck update $as_me by reconfiguring in the same conditions
12339 --file=FILE[:TEMPLATE]
12340 instantiate the configuration file FILE
12341 --header=FILE[:TEMPLATE]
12342 instantiate the configuration header FILE
12343
12344Configuration files:
12345$config_files
12346
12347Configuration headers:
12348$config_headers
12349
12350Configuration commands:
12351$config_commands
12352
12353Report bugs to <bug-autoconf@gnu.org>."
6bf9431b 12354
1b9750d6 12355_ACEOF
6bf9431b
BE
12356cat >>$CONFIG_STATUS <<_ACEOF
12357ac_cs_version="\\
12358config.status
1b9750d6
NC
12359configured by $0, generated by GNU Autoconf 2.61,
12360 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6bf9431b 12361
1b9750d6 12362Copyright (C) 2006 Free Software Foundation, Inc.
6bf9431b
BE
12363This config.status script is free software; the Free Software Foundation
12364gives unlimited permission to copy, distribute and modify it."
1b9750d6
NC
12365
12366ac_pwd='$ac_pwd'
12367srcdir='$srcdir'
12368INSTALL='$INSTALL'
6bf9431b
BE
12369_ACEOF
12370
12371cat >>$CONFIG_STATUS <<\_ACEOF
12372# If no file are specified by the user, then we need to provide default
12373# value. By we need to know if files were specified by the user.
12374ac_need_defaults=:
12375while test $# != 0
12376do
12377 case $1 in
12378 --*=*)
1b9750d6
NC
12379 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12380 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6bf9431b 12381 ac_shift=:
252b5132 12382 ;;
1b9750d6 12383 *)
6bf9431b
BE
12384 ac_option=$1
12385 ac_optarg=$2
12386 ac_shift=shift
252b5132 12387 ;;
6bf9431b 12388 esac
252b5132 12389
6bf9431b
BE
12390 case $ac_option in
12391 # Handling of the options.
6bf9431b
BE
12392 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12393 ac_cs_recheck=: ;;
1b9750d6
NC
12394 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12395 echo "$ac_cs_version"; exit ;;
12396 --debug | --debu | --deb | --de | --d | -d )
6bf9431b
BE
12397 debug=: ;;
12398 --file | --fil | --fi | --f )
12399 $ac_shift
12400 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12401 ac_need_defaults=false;;
12402 --header | --heade | --head | --hea )
12403 $ac_shift
12404 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12405 ac_need_defaults=false;;
1b9750d6
NC
12406 --he | --h)
12407 # Conflict between --help and --header
12408 { echo "$as_me: error: ambiguous option: $1
12409Try \`$0 --help' for more information." >&2
12410 { (exit 1); exit 1; }; };;
12411 --help | --hel | -h )
12412 echo "$ac_cs_usage"; exit ;;
6bf9431b
BE
12413 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12414 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12415 ac_cs_silent=: ;;
252b5132 12416
6bf9431b 12417 # This is an error.
1b9750d6
NC
12418 -*) { echo "$as_me: error: unrecognized option: $1
12419Try \`$0 --help' for more information." >&2
6bf9431b 12420 { (exit 1); exit 1; }; } ;;
252b5132 12421
1b9750d6
NC
12422 *) ac_config_targets="$ac_config_targets $1"
12423 ac_need_defaults=false ;;
252b5132 12424
6bf9431b
BE
12425 esac
12426 shift
12427done
252b5132 12428
6bf9431b 12429ac_configure_extra_args=
252b5132 12430
6bf9431b
BE
12431if $ac_cs_silent; then
12432 exec 6>/dev/null
12433 ac_configure_extra_args="$ac_configure_extra_args --silent"
12434fi
252b5132 12435
6bf9431b
BE
12436_ACEOF
12437cat >>$CONFIG_STATUS <<_ACEOF
12438if \$ac_cs_recheck; then
1b9750d6
NC
12439 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12440 CONFIG_SHELL=$SHELL
12441 export CONFIG_SHELL
12442 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6bf9431b
BE
12443fi
12444
12445_ACEOF
1b9750d6
NC
12446cat >>$CONFIG_STATUS <<\_ACEOF
12447exec 5>>config.log
12448{
12449 echo
12450 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12451## Running $as_me. ##
12452_ASBOX
12453 echo "$ac_log"
12454} >&5
6bf9431b 12455
1b9750d6 12456_ACEOF
6bf9431b 12457cat >>$CONFIG_STATUS <<_ACEOF
252b5132 12458#
1b9750d6 12459# INIT-COMMANDS
252b5132 12460#
6bf9431b 12461AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
12462
12463
12464# The HP-UX ksh and POSIX shell print the target directory to stdout
12465# if CDPATH is set.
12466(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12467
12468sed_quote_subst='$sed_quote_subst'
12469double_quote_subst='$double_quote_subst'
12470delay_variable_subst='$delay_variable_subst'
12471macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12472macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12473enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12474enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12475pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12476enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12477host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12478host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12479host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12480build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12481build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12482build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12483SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12484Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12485GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12486EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12487FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12488LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12489NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12490LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12491max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12492ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12493exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12494lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12495lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12496lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12497reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12498reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12499deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12500file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12501AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12502AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12503STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12504RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12505old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12506old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12507old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12508CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12509CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12510compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12511GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12512lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12513lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12514lt_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"`'
12515objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12516SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12517ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12518MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12519lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12520lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12521lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12522lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12523lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12524need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12525libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12526shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12527extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12528archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12529enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12530export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12531whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12532compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12533old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12534old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12535archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12536archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12537module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12538module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12539with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12540allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12541no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12542hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12543hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12544hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12545hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12546hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12547hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12548hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12549hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12550inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12551link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12552fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12553always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12554export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12555exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12556include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12557prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12558file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12559variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12560need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12561need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12562version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12563runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12564shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12565shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12566libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12567library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12568soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12569postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12570postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12571finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12572finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12573hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12574sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12575sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12576hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12577enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12578enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12579enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12580old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12581striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12582
12583LTCC='$LTCC'
12584LTCFLAGS='$LTCFLAGS'
12585compiler='$compiler_DEFAULT'
12586
12587# Quote evaled strings.
12588for var in SED \
12589GREP \
12590EGREP \
12591FGREP \
12592LD \
12593NM \
12594LN_S \
12595lt_SP2NL \
12596lt_NL2SP \
12597reload_flag \
12598deplibs_check_method \
12599file_magic_cmd \
12600AR \
12601AR_FLAGS \
12602STRIP \
12603RANLIB \
12604CC \
12605CFLAGS \
12606compiler \
12607lt_cv_sys_global_symbol_pipe \
12608lt_cv_sys_global_symbol_to_cdecl \
12609lt_cv_sys_global_symbol_to_c_name_address \
12610SHELL \
12611ECHO \
12612lt_prog_compiler_no_builtin_flag \
12613lt_prog_compiler_wl \
12614lt_prog_compiler_pic \
12615lt_prog_compiler_static \
12616lt_cv_prog_compiler_c_o \
12617need_locks \
12618shrext_cmds \
12619export_dynamic_flag_spec \
12620whole_archive_flag_spec \
12621compiler_needs_object \
12622with_gnu_ld \
12623allow_undefined_flag \
12624no_undefined_flag \
12625hardcode_libdir_flag_spec \
12626hardcode_libdir_flag_spec_ld \
12627hardcode_libdir_separator \
12628fix_srcfile_path \
12629exclude_expsyms \
12630include_expsyms \
12631file_list_spec \
12632variables_saved_for_relink \
12633libname_spec \
12634library_names_spec \
12635soname_spec \
12636finish_eval \
12637old_striplib \
12638striplib; do
12639 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12640 *[\\\\\\\`\\"\\\$]*)
12641 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12642 ;;
12643 *)
12644 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12645 ;;
12646 esac
12647done
12648
12649# Double-quote double-evaled strings.
12650for var in reload_cmds \
12651old_postinstall_cmds \
12652old_postuninstall_cmds \
12653old_archive_cmds \
12654extract_expsyms_cmds \
12655old_archive_from_new_cmds \
12656old_archive_from_expsyms_cmds \
12657archive_cmds \
12658archive_expsym_cmds \
12659module_cmds \
12660module_expsym_cmds \
12661export_symbols_cmds \
12662prelink_cmds \
12663postinstall_cmds \
12664postuninstall_cmds \
12665finish_cmds \
12666sys_lib_search_path_spec \
12667sys_lib_dlsearch_path_spec; do
12668 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12669 *[\\\\\\\`\\"\\\$]*)
12670 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12671 ;;
12672 *)
12673 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12674 ;;
12675 esac
12676done
12677
12678# Fix-up fallback echo if it was mangled by the above quoting rules.
12679case \$lt_ECHO in
12680*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12681 ;;
12682esac
12683
12684ac_aux_dir='$ac_aux_dir'
12685xsi_shell='$xsi_shell'
12686lt_shell_append='$lt_shell_append'
12687
12688# See if we are running on zsh, and set the options which allow our
12689# commands through without removal of \ escapes INIT.
12690if test -n "\${ZSH_VERSION+set}" ; then
12691 setopt NO_GLOB_SUBST
12692fi
12693
12694
12695 PACKAGE='$PACKAGE'
12696 VERSION='$VERSION'
12697 TIMESTAMP='$TIMESTAMP'
12698 RM='$RM'
12699 ofile='$ofile'
12700
12701
12702
20e95c23
DJ
12703# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12704 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12705 # from automake.
12706 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12707 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12708 LINGUAS="${LINGUAS-%UNSET%}"
6bf9431b
BE
12709
12710
12711_ACEOF
12712
6bf9431b 12713cat >>$CONFIG_STATUS <<\_ACEOF
1b9750d6
NC
12714
12715# Handling of arguments.
6bf9431b 12716for ac_config_target in $ac_config_targets
252b5132 12717do
1b9750d6
NC
12718 case $ac_config_target in
12719 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12720 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12721 "gconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
12722 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12723 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12724 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12725
6bf9431b
BE
12726 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12727echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12728 { (exit 1); exit 1; }; };;
252b5132
RH
12729 esac
12730done
12731
1b9750d6 12732
6bf9431b
BE
12733# If the user did not use the arguments to specify the items to instantiate,
12734# then the envvar interface is used. Set only those that are not.
12735# We use the long form for the default assignment because of an extremely
12736# bizarre bug on SunOS 4.1.3.
12737if $ac_need_defaults; then
12738 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12739 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12740 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12741fi
12742
12743# Have a temporary directory for convenience. Make it in the build tree
1b9750d6 12744# simply because there is no reason against having it here, and in addition,
6bf9431b 12745# creating and moving files from /tmp can sometimes cause problems.
1b9750d6
NC
12746# Hook for its removal unless debugging.
12747# Note that there is a small window in which the directory will not be cleaned:
12748# after its creation but before its name has been assigned to `$tmp'.
6bf9431b
BE
12749$debug ||
12750{
1b9750d6
NC
12751 tmp=
12752 trap 'exit_status=$?
12753 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12754' 0
6bf9431b
BE
12755 trap '{ (exit 1); exit 1; }' 1 2 13 15
12756}
6bf9431b 12757# Create a (secure) tmp directory for tmp files.
252b5132 12758
6bf9431b 12759{
1b9750d6 12760 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6bf9431b
BE
12761 test -n "$tmp" && test -d "$tmp"
12762} ||
12763{
1b9750d6
NC
12764 tmp=./conf$$-$RANDOM
12765 (umask 077 && mkdir "$tmp")
6bf9431b
BE
12766} ||
12767{
12768 echo "$me: cannot create a temporary directory in ." >&2
12769 { (exit 1); exit 1; }
12770}
252b5132 12771
6bf9431b 12772#
1b9750d6 12773# Set up the sed scripts for CONFIG_FILES section.
6bf9431b
BE
12774#
12775
12776# No need to generate the scripts if there are no CONFIG_FILES.
12777# This happens for instance when ./config.status config.h
1b9750d6 12778if test -n "$CONFIG_FILES"; then
252b5132 12779
6bf9431b
BE
12780_ACEOF
12781
1b9750d6
NC
12782
12783
12784ac_delim='%!_!# '
12785for ac_last_try in false false false false false :; do
12786 cat >conf$$subs.sed <<_ACEOF
12787SHELL!$SHELL$ac_delim
12788PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12789PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12790PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12791PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12792PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12793PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12794exec_prefix!$exec_prefix$ac_delim
12795prefix!$prefix$ac_delim
12796program_transform_name!$program_transform_name$ac_delim
12797bindir!$bindir$ac_delim
12798sbindir!$sbindir$ac_delim
12799libexecdir!$libexecdir$ac_delim
12800datarootdir!$datarootdir$ac_delim
12801datadir!$datadir$ac_delim
12802sysconfdir!$sysconfdir$ac_delim
12803sharedstatedir!$sharedstatedir$ac_delim
12804localstatedir!$localstatedir$ac_delim
12805includedir!$includedir$ac_delim
12806oldincludedir!$oldincludedir$ac_delim
12807docdir!$docdir$ac_delim
12808infodir!$infodir$ac_delim
12809htmldir!$htmldir$ac_delim
12810dvidir!$dvidir$ac_delim
12811pdfdir!$pdfdir$ac_delim
12812psdir!$psdir$ac_delim
12813libdir!$libdir$ac_delim
12814localedir!$localedir$ac_delim
12815mandir!$mandir$ac_delim
12816DEFS!$DEFS$ac_delim
12817ECHO_C!$ECHO_C$ac_delim
12818ECHO_N!$ECHO_N$ac_delim
12819ECHO_T!$ECHO_T$ac_delim
12820LIBS!$LIBS$ac_delim
12821build_alias!$build_alias$ac_delim
12822host_alias!$host_alias$ac_delim
12823target_alias!$target_alias$ac_delim
12824build!$build$ac_delim
12825build_cpu!$build_cpu$ac_delim
12826build_vendor!$build_vendor$ac_delim
12827build_os!$build_os$ac_delim
12828host!$host$ac_delim
12829host_cpu!$host_cpu$ac_delim
12830host_vendor!$host_vendor$ac_delim
12831host_os!$host_os$ac_delim
12832target!$target$ac_delim
12833target_cpu!$target_cpu$ac_delim
12834target_vendor!$target_vendor$ac_delim
12835target_os!$target_os$ac_delim
12836CC!$CC$ac_delim
12837CFLAGS!$CFLAGS$ac_delim
12838LDFLAGS!$LDFLAGS$ac_delim
12839CPPFLAGS!$CPPFLAGS$ac_delim
12840ac_ct_CC!$ac_ct_CC$ac_delim
12841EXEEXT!$EXEEXT$ac_delim
12842OBJEXT!$OBJEXT$ac_delim
12843INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12844INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12845INSTALL_DATA!$INSTALL_DATA$ac_delim
12846CYGPATH_W!$CYGPATH_W$ac_delim
12847PACKAGE!$PACKAGE$ac_delim
12848VERSION!$VERSION$ac_delim
12849ACLOCAL!$ACLOCAL$ac_delim
12850AUTOCONF!$AUTOCONF$ac_delim
12851AUTOMAKE!$AUTOMAKE$ac_delim
12852AUTOHEADER!$AUTOHEADER$ac_delim
12853MAKEINFO!$MAKEINFO$ac_delim
12854install_sh!$install_sh$ac_delim
12855STRIP!$STRIP$ac_delim
12856INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
12857mkdir_p!$mkdir_p$ac_delim
12858AWK!$AWK$ac_delim
12859SET_MAKE!$SET_MAKE$ac_delim
12860am__leading_dot!$am__leading_dot$ac_delim
12861AMTAR!$AMTAR$ac_delim
12862am__tar!$am__tar$ac_delim
12863am__untar!$am__untar$ac_delim
12864DEPDIR!$DEPDIR$ac_delim
12865am__include!$am__include$ac_delim
12866am__quote!$am__quote$ac_delim
12867AMDEP_TRUE!$AMDEP_TRUE$ac_delim
12868AMDEP_FALSE!$AMDEP_FALSE$ac_delim
12869AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
12870CCDEPMODE!$CCDEPMODE$ac_delim
12871am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
12872am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
12873LIBTOOL!$LIBTOOL$ac_delim
12874SED!$SED$ac_delim
12875GREP!$GREP$ac_delim
12876EGREP!$EGREP$ac_delim
12877FGREP!$FGREP$ac_delim
12878LD!$LD$ac_delim
12879DUMPBIN!$DUMPBIN$ac_delim
12880ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
12881NM!$NM$ac_delim
12882LN_S!$LN_S$ac_delim
12883AR!$AR$ac_delim
12884_ACEOF
12885
12886 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12887 break
12888 elif $ac_last_try; then
12889 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12890echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12891 { (exit 1); exit 1; }; }
12892 else
12893 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
252b5132 12894 fi
1b9750d6
NC
12895done
12896
12897ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12898if test -n "$ac_eof"; then
12899 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12900 ac_eof=`expr $ac_eof + 1`
12901fi
12902
12903cat >>$CONFIG_STATUS <<_ACEOF
12904cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12905/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12906_ACEOF
12907sed '
12908s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12909s/^/s,@/; s/!/@,|#_!!_#|/
12910:n
12911t n
12912s/'"$ac_delim"'$/,g/; t
12913s/$/\\/; p
12914N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12915' >>$CONFIG_STATUS <conf$$subs.sed
12916rm -f conf$$subs.sed
12917cat >>$CONFIG_STATUS <<_ACEOF
12918CEOF$ac_eof
12919_ACEOF
12920
252b5132 12921
1b9750d6
NC
12922ac_delim='%!_!# '
12923for ac_last_try in false false false false false :; do
12924 cat >conf$$subs.sed <<_ACEOF
12925RANLIB!$RANLIB$ac_delim
12926lt_ECHO!$lt_ECHO$ac_delim
12927CPP!$CPP$ac_delim
12928USE_NLS!$USE_NLS$ac_delim
12929LIBINTL!$LIBINTL$ac_delim
12930LIBINTL_DEP!$LIBINTL_DEP$ac_delim
12931INCINTL!$INCINTL$ac_delim
12932XGETTEXT!$XGETTEXT$ac_delim
12933GMSGFMT!$GMSGFMT$ac_delim
12934POSUB!$POSUB$ac_delim
12935CATALOGS!$CATALOGS$ac_delim
12936DATADIRNAME!$DATADIRNAME$ac_delim
12937INSTOBJEXT!$INSTOBJEXT$ac_delim
12938GENCAT!$GENCAT$ac_delim
12939CATOBJEXT!$CATOBJEXT$ac_delim
12940MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
12941MSGFMT!$MSGFMT$ac_delim
12942MSGMERGE!$MSGMERGE$ac_delim
12943MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
12944MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
12945MAINT!$MAINT$ac_delim
12946GENINSRC_NEVER_TRUE!$GENINSRC_NEVER_TRUE$ac_delim
12947GENINSRC_NEVER_FALSE!$GENINSRC_NEVER_FALSE$ac_delim
12948WARN_CFLAGS!$WARN_CFLAGS$ac_delim
12949NO_WERROR!$NO_WERROR$ac_delim
12950LIBOBJS!$LIBOBJS$ac_delim
12951LTLIBOBJS!$LTLIBOBJS$ac_delim
6bf9431b 12952_ACEOF
1b9750d6
NC
12953
12954 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
12955 break
12956 elif $ac_last_try; then
12957 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12958echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12959 { (exit 1); exit 1; }; }
12960 else
12961 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12962 fi
12963done
12964
12965ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12966if test -n "$ac_eof"; then
12967 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12968 ac_eof=`expr $ac_eof + 1`
12969fi
12970
12971cat >>$CONFIG_STATUS <<_ACEOF
12972cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12973/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12974_ACEOF
12975sed '
12976s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12977s/^/s,@/; s/!/@,|#_!!_#|/
12978:n
12979t n
12980s/'"$ac_delim"'$/,g/; t
12981s/$/\\/; p
12982N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12983' >>$CONFIG_STATUS <conf$$subs.sed
12984rm -f conf$$subs.sed
12985cat >>$CONFIG_STATUS <<_ACEOF
12986:end
12987s/|#_!!_#|//g
12988CEOF$ac_eof
12989_ACEOF
12990
12991
12992# VPATH may cause trouble with some makes, so we remove $(srcdir),
12993# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12994# trailing colons and then remove the whole line if VPATH becomes empty
12995# (actually we leave an empty line to preserve line numbers).
12996if test "x$srcdir" = x.; then
12997 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12998s/:*\$(srcdir):*/:/
12999s/:*\${srcdir}:*/:/
13000s/:*@srcdir@:*/:/
13001s/^\([^=]*=[ ]*\):*/\1/
13002s/:*$//
13003s/^[^=]*=[ ]*$//
13004}'
13005fi
13006
6bf9431b 13007cat >>$CONFIG_STATUS <<\_ACEOF
1b9750d6
NC
13008fi # test -n "$CONFIG_FILES"
13009
13010
13011for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13012do
13013 case $ac_tag in
13014 :[FHLC]) ac_mode=$ac_tag; continue;;
13015 esac
13016 case $ac_mode$ac_tag in
13017 :[FHL]*:*);;
13018 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13019echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13020 { (exit 1); exit 1; }; };;
13021 :[FH]-) ac_tag=-:-;;
13022 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13023 esac
13024 ac_save_IFS=$IFS
13025 IFS=:
13026 set x $ac_tag
13027 IFS=$ac_save_IFS
13028 shift
13029 ac_file=$1
13030 shift
13031
13032 case $ac_mode in
13033 :L) ac_source=$1;;
13034 :[FH])
13035 ac_file_inputs=
13036 for ac_f
13037 do
13038 case $ac_f in
13039 -) ac_f="$tmp/stdin";;
13040 *) # Look for the file first in the build tree, then in the source tree
13041 # (if the path is not absolute). The absolute path cannot be DOS-style,
13042 # because $ac_f cannot contain `:'.
13043 test -f "$ac_f" ||
13044 case $ac_f in
13045 [\\/$]*) false;;
13046 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13047 esac ||
13048 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13049echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13050 { (exit 1); exit 1; }; };;
13051 esac
13052 ac_file_inputs="$ac_file_inputs $ac_f"
13053 done
13054
13055 # Let's still pretend it is `configure' which instantiates (i.e., don't
13056 # use $as_me), people would be surprised to read:
13057 # /* config.h. Generated by config.status. */
13058 configure_input="Generated from "`IFS=:
13059 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13060 if test x"$ac_file" != x-; then
13061 configure_input="$ac_file. $configure_input"
13062 { echo "$as_me:$LINENO: creating $ac_file" >&5
13063echo "$as_me: creating $ac_file" >&6;}
13064 fi
13065
13066 case $ac_tag in
13067 *:-:* | *:-) cat >"$tmp/stdin";;
13068 esac
13069 ;;
252b5132
RH
13070 esac
13071
1b9750d6 13072 ac_dir=`$as_dirname -- "$ac_file" ||
6bf9431b
BE
13073$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13074 X"$ac_file" : 'X\(//\)[^/]' \| \
13075 X"$ac_file" : 'X\(//\)$' \| \
1b9750d6 13076 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6bf9431b 13077echo X"$ac_file" |
1b9750d6
NC
13078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13079 s//\1/
13080 q
13081 }
13082 /^X\(\/\/\)[^/].*/{
13083 s//\1/
13084 q
13085 }
13086 /^X\(\/\/\)$/{
13087 s//\1/
13088 q
13089 }
13090 /^X\(\/\).*/{
13091 s//\1/
13092 q
13093 }
13094 s/.*/./; q'`
13095 { as_dir="$ac_dir"
13096 case $as_dir in #(
13097 -*) as_dir=./$as_dir;;
13098 esac
13099 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6bf9431b 13100 as_dirs=
1b9750d6
NC
13101 while :; do
13102 case $as_dir in #(
13103 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13104 *) as_qdir=$as_dir;;
13105 esac
13106 as_dirs="'$as_qdir' $as_dirs"
13107 as_dir=`$as_dirname -- "$as_dir" ||
6bf9431b
BE
13108$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13109 X"$as_dir" : 'X\(//\)[^/]' \| \
13110 X"$as_dir" : 'X\(//\)$' \| \
1b9750d6 13111 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6bf9431b 13112echo X"$as_dir" |
1b9750d6
NC
13113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13114 s//\1/
13115 q
13116 }
13117 /^X\(\/\/\)[^/].*/{
13118 s//\1/
13119 q
13120 }
13121 /^X\(\/\/\)$/{
13122 s//\1/
13123 q
13124 }
13125 /^X\(\/\).*/{
13126 s//\1/
13127 q
13128 }
13129 s/.*/./; q'`
13130 test -d "$as_dir" && break
6bf9431b 13131 done
1b9750d6
NC
13132 test -z "$as_dirs" || eval "mkdir $as_dirs"
13133 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13134echo "$as_me: error: cannot create directory $as_dir" >&2;}
6bf9431b 13135 { (exit 1); exit 1; }; }; }
6bf9431b
BE
13136 ac_builddir=.
13137
1b9750d6
NC
13138case "$ac_dir" in
13139.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13140*)
6bf9431b 13141 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1b9750d6
NC
13142 # A ".." for each directory in $ac_dir_suffix.
13143 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13144 case $ac_top_builddir_sub in
13145 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13146 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13147 esac ;;
13148esac
13149ac_abs_top_builddir=$ac_pwd
13150ac_abs_builddir=$ac_pwd$ac_dir_suffix
13151# for backward compatibility:
13152ac_top_builddir=$ac_top_build_prefix
252b5132 13153
6bf9431b 13154case $srcdir in
1b9750d6 13155 .) # We are building in place.
6bf9431b 13156 ac_srcdir=.
1b9750d6
NC
13157 ac_top_srcdir=$ac_top_builddir_sub
13158 ac_abs_top_srcdir=$ac_pwd ;;
13159 [\\/]* | ?:[\\/]* ) # Absolute name.
6bf9431b 13160 ac_srcdir=$srcdir$ac_dir_suffix;
1b9750d6
NC
13161 ac_top_srcdir=$srcdir
13162 ac_abs_top_srcdir=$srcdir ;;
13163 *) # Relative name.
13164 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13165 ac_top_srcdir=$ac_top_build_prefix$srcdir
13166 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6bf9431b 13167esac
1b9750d6 13168ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 13169
252b5132 13170
1b9750d6
NC
13171 case $ac_mode in
13172 :F)
13173 #
13174 # CONFIG_FILE
13175 #
6bf9431b
BE
13176
13177 case $INSTALL in
13178 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1b9750d6 13179 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
252b5132 13180 esac
1b9750d6 13181_ACEOF
252b5132 13182
1b9750d6
NC
13183cat >>$CONFIG_STATUS <<\_ACEOF
13184# If the template does not know about datarootdir, expand it.
13185# FIXME: This hack should be removed a few years after 2.60.
13186ac_datarootdir_hack=; ac_datarootdir_seen=
13187
13188case `sed -n '/datarootdir/ {
13189 p
13190 q
13191}
13192/@datadir@/p
13193/@docdir@/p
13194/@infodir@/p
13195/@localedir@/p
13196/@mandir@/p
13197' $ac_file_inputs` in
13198*datarootdir*) ac_datarootdir_seen=yes;;
13199*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13200 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13201echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13202_ACEOF
13203cat >>$CONFIG_STATUS <<_ACEOF
13204 ac_datarootdir_hack='
13205 s&@datadir@&$datadir&g
13206 s&@docdir@&$docdir&g
13207 s&@infodir@&$infodir&g
13208 s&@localedir@&$localedir&g
13209 s&@mandir@&$mandir&g
13210 s&\\\${datarootdir}&$datarootdir&g' ;;
13211esac
6bf9431b 13212_ACEOF
1b9750d6
NC
13213
13214# Neutralize VPATH when `$srcdir' = `.'.
13215# Shell code in configure.ac might set extrasub.
13216# FIXME: do we really want to maintain this feature?
6bf9431b
BE
13217cat >>$CONFIG_STATUS <<_ACEOF
13218 sed "$ac_vpsub
13219$extrasub
13220_ACEOF
13221cat >>$CONFIG_STATUS <<\_ACEOF
13222:t
13223/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1b9750d6
NC
13224s&@configure_input@&$configure_input&;t t
13225s&@top_builddir@&$ac_top_builddir_sub&;t t
13226s&@srcdir@&$ac_srcdir&;t t
13227s&@abs_srcdir@&$ac_abs_srcdir&;t t
13228s&@top_srcdir@&$ac_top_srcdir&;t t
13229s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13230s&@builddir@&$ac_builddir&;t t
13231s&@abs_builddir@&$ac_abs_builddir&;t t
13232s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13233s&@INSTALL@&$ac_INSTALL&;t t
13234$ac_datarootdir_hack
13235" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
13236
13237test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13238 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13239 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13240 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13241which seems to be undefined. Please make sure it is defined." >&5
13242echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13243which seems to be undefined. Please make sure it is defined." >&2;}
13244
13245 rm -f "$tmp/stdin"
6bf9431b 13246 case $ac_file in
1b9750d6
NC
13247 -) cat "$tmp/out"; rm -f "$tmp/out";;
13248 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
252b5132 13249 esac
1b9750d6
NC
13250 ;;
13251 :H)
13252 #
13253 # CONFIG_HEADER
13254 #
6bf9431b
BE
13255_ACEOF
13256
1b9750d6
NC
13257# Transform confdefs.h into a sed script `conftest.defines', that
13258# substitutes the proper values into config.h.in to produce config.h.
13259rm -f conftest.defines conftest.tail
13260# First, append a space to every undef/define line, to ease matching.
13261echo 's/$/ /' >conftest.defines
13262# Then, protect against being on the right side of a sed subst, or in
13263# an unquoted here document, in config.status. If some macros were
13264# called several times there might be several #defines for the same
13265# symbol, which is useless. But do not sort them, since the last
13266# AC_DEFINE must be honored.
13267ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13268# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13269# NAME is the cpp macro being defined, VALUE is the value it is being given.
13270# PARAMS is the parameter list in the macro definition--in most cases, it's
13271# just an empty string.
13272ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13273ac_dB='\\)[ (].*,\\1define\\2'
13274ac_dC=' '
13275ac_dD=' ,'
13276
13277uniq confdefs.h |
13278 sed -n '
13279 t rset
13280 :rset
13281 s/^[ ]*#[ ]*define[ ][ ]*//
13282 t ok
13283 d
13284 :ok
13285 s/[\\&,]/\\&/g
13286 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13287 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13288 ' >>conftest.defines
13289
13290# Remove the space that was appended to ease matching.
13291# Then replace #undef with comments. This is necessary, for
252b5132
RH
13292# example, in the case of _POSIX_SOURCE, which is predefined and required
13293# on some systems where configure will not decide to define it.
1b9750d6
NC
13294# (The regexp can be short, since the line contains either #define or #undef.)
13295echo 's/ $//
13296s,^[ #]*u.*,/* & */,' >>conftest.defines
13297
13298# Break up conftest.defines:
13299ac_max_sed_lines=50
13300
13301# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13302# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13303# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13304# et cetera.
13305ac_in='$ac_file_inputs'
13306ac_out='"$tmp/out1"'
13307ac_nxt='"$tmp/out2"'
13308
13309while :
6bf9431b 13310do
1b9750d6
NC
13311 # Write a here document:
13312 cat >>$CONFIG_STATUS <<_ACEOF
13313 # First, check the format of the line:
13314 cat >"\$tmp/defines.sed" <<\\CEOF
13315/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13316/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13317b
13318:def
13319_ACEOF
13320 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
6bf9431b 13321 echo 'CEOF
1b9750d6
NC
13322 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13323 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13324 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13325 grep . conftest.tail >/dev/null || break
6bf9431b
BE
13326 rm -f conftest.defines
13327 mv conftest.tail conftest.defines
13328done
1b9750d6 13329rm -f conftest.defines conftest.tail
6bf9431b 13330
1b9750d6 13331echo "ac_result=$ac_in" >>$CONFIG_STATUS
6bf9431b 13332cat >>$CONFIG_STATUS <<\_ACEOF
6bf9431b 13333 if test x"$ac_file" != x-; then
1b9750d6
NC
13334 echo "/* $configure_input */" >"$tmp/config.h"
13335 cat "$ac_result" >>"$tmp/config.h"
13336 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
6bf9431b
BE
13337 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13338echo "$as_me: $ac_file is unchanged" >&6;}
13339 else
6bf9431b 13340 rm -f $ac_file
1b9750d6 13341 mv "$tmp/config.h" $ac_file
252b5132 13342 fi
6bf9431b 13343 else
1b9750d6
NC
13344 echo "/* $configure_input */"
13345 cat "$ac_result"
252b5132 13346 fi
1b9750d6 13347 rm -f "$tmp/out12"
6bf9431b
BE
13348# Compute $ac_file's index in $config_headers.
13349_am_stamp_count=1
13350for _am_header in $config_headers :; do
13351 case $_am_header in
13352 $ac_file | $ac_file:* )
13353 break ;;
13354 * )
13355 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13356 esac
13357done
1b9750d6 13358echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
6bf9431b
BE
13359$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13360 X$ac_file : 'X\(//\)[^/]' \| \
13361 X$ac_file : 'X\(//\)$' \| \
1b9750d6 13362 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
6bf9431b 13363echo X$ac_file |
1b9750d6
NC
13364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13365 s//\1/
13366 q
13367 }
13368 /^X\(\/\/\)[^/].*/{
13369 s//\1/
13370 q
13371 }
13372 /^X\(\/\/\)$/{
13373 s//\1/
13374 q
13375 }
13376 /^X\(\/\).*/{
13377 s//\1/
13378 q
13379 }
13380 s/.*/./; q'`/stamp-h$_am_stamp_count
13381 ;;
6bf9431b 13382
1b9750d6
NC
13383 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13384echo "$as_me: executing $ac_file commands" >&6;}
13385 ;;
13386 esac
6bf9431b
BE
13387
13388
1b9750d6
NC
13389 case $ac_file$ac_mode in
13390 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6bf9431b
BE
13391 # Strip MF so we end up with the name of the file.
13392 mf=`echo "$mf" | sed -e 's/:.*$//'`
13393 # Check whether this is an Automake generated Makefile or not.
13394 # We used to match only the files named `Makefile.in', but
13395 # some people rename them; so instead we look at the file content.
13396 # Grep'ing the first line is not enough: some people post-process
13397 # each Makefile.in and add a new line on top of each file to say so.
13398 # So let's grep whole file.
13399 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
1b9750d6 13400 dirpart=`$as_dirname -- "$mf" ||
6bf9431b
BE
13401$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13402 X"$mf" : 'X\(//\)[^/]' \| \
13403 X"$mf" : 'X\(//\)$' \| \
1b9750d6 13404 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6bf9431b 13405echo X"$mf" |
1b9750d6
NC
13406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13407 s//\1/
13408 q
13409 }
13410 /^X\(\/\/\)[^/].*/{
13411 s//\1/
13412 q
13413 }
13414 /^X\(\/\/\)$/{
13415 s//\1/
13416 q
13417 }
13418 /^X\(\/\).*/{
13419 s//\1/
13420 q
13421 }
13422 s/.*/./; q'`
6bf9431b
BE
13423 else
13424 continue
13425 fi
df76639a
AM
13426 # Extract the definition of DEPDIR, am__include, and am__quote
13427 # from the Makefile without running `make'.
6bf9431b
BE
13428 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13429 test -z "$DEPDIR" && continue
df76639a
AM
13430 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13431 test -z "am__include" && continue
13432 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6bf9431b
BE
13433 # When using ansi2knr, U may be empty or an underscore; expand it
13434 U=`sed -n 's/^U = //p' < "$mf"`
df76639a
AM
13435 # Find all dependency output files, they are included files with
13436 # $(DEPDIR) in their names. We invoke sed twice because it is the
13437 # simplest approach to changing $(DEPDIR) to its actual value in the
13438 # expansion.
13439 for file in `sed -n "
13440 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6bf9431b
BE
13441 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13442 # Make sure the directory exists.
13443 test -f "$dirpart/$file" && continue
1b9750d6 13444 fdir=`$as_dirname -- "$file" ||
6bf9431b
BE
13445$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13446 X"$file" : 'X\(//\)[^/]' \| \
13447 X"$file" : 'X\(//\)$' \| \
1b9750d6 13448 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6bf9431b 13449echo X"$file" |
1b9750d6
NC
13450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13451 s//\1/
13452 q
13453 }
13454 /^X\(\/\/\)[^/].*/{
13455 s//\1/
13456 q
13457 }
13458 /^X\(\/\/\)$/{
13459 s//\1/
13460 q
13461 }
13462 /^X\(\/\).*/{
13463 s//\1/
13464 q
13465 }
13466 s/.*/./; q'`
13467 { as_dir=$dirpart/$fdir
13468 case $as_dir in #(
13469 -*) as_dir=./$as_dir;;
13470 esac
13471 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6bf9431b 13472 as_dirs=
1b9750d6
NC
13473 while :; do
13474 case $as_dir in #(
13475 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13476 *) as_qdir=$as_dir;;
13477 esac
13478 as_dirs="'$as_qdir' $as_dirs"
13479 as_dir=`$as_dirname -- "$as_dir" ||
6bf9431b
BE
13480$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13481 X"$as_dir" : 'X\(//\)[^/]' \| \
13482 X"$as_dir" : 'X\(//\)$' \| \
1b9750d6 13483 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6bf9431b 13484echo X"$as_dir" |
1b9750d6
NC
13485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13486 s//\1/
13487 q
13488 }
13489 /^X\(\/\/\)[^/].*/{
13490 s//\1/
13491 q
13492 }
13493 /^X\(\/\/\)$/{
13494 s//\1/
13495 q
13496 }
13497 /^X\(\/\).*/{
13498 s//\1/
13499 q
13500 }
13501 s/.*/./; q'`
13502 test -d "$as_dir" && break
6bf9431b 13503 done
1b9750d6
NC
13504 test -z "$as_dirs" || eval "mkdir $as_dirs"
13505 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13506echo "$as_me: error: cannot create directory $as_dir" >&2;}
6bf9431b 13507 { (exit 1); exit 1; }; }; }
6bf9431b
BE
13508 # echo "creating $dirpart/$file"
13509 echo '# dummy' > "$dirpart/$file"
13510 done
13511done
d7040cdb 13512 ;;
1b9750d6 13513 "libtool":C)
d7040cdb
SE
13514
13515 # See if we are running on zsh, and set the options which allow our
13516 # commands through without removal of \ escapes.
13517 if test -n "${ZSH_VERSION+set}" ; then
13518 setopt NO_GLOB_SUBST
13519 fi
13520
13521 cfgfile="${ofile}T"
13522 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13523 $RM "$cfgfile"
13524
13525 cat <<_LT_EOF >> "$cfgfile"
13526#! $SHELL
13527
13528# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13529# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
13530# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13531# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13532#
13533# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13534# 2006, 2007 Free Software Foundation, Inc.
13535#
13536# This file is part of GNU Libtool:
13537# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13538#
13539# This program is free software; you can redistribute it and/or modify
13540# it under the terms of the GNU General Public License as published by
13541# the Free Software Foundation; either version 2 of the License, or
13542# (at your option) any later version.
13543#
13544# This program is distributed in the hope that it will be useful, but
13545# WITHOUT ANY WARRANTY; without even the implied warranty of
13546# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13547# General Public License for more details.
13548#
13549# You should have received a copy of the GNU General Public License
13550# along with this program; if not, a copy can be downloaded from
13551# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
13552# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
13553# MA 02110-1301, USA.
13554#
13555# As a special exception to the GNU General Public License, if you
13556# distribute this file as part of a program that contains a
13557# configuration script generated by Autoconf, you may include it under
13558# the same distribution terms that you use for the rest of that program.
13559
13560
13561# The names of the tagged configurations supported by this script.
13562available_tags=""
13563
13564# ### BEGIN LIBTOOL CONFIG
13565
13566# Which release of libtool.m4 was used?
13567macro_version=$macro_version
13568macro_revision=$macro_revision
13569
13570# Whether or not to build shared libraries.
13571build_libtool_libs=$enable_shared
13572
13573# Whether or not to build static libraries.
13574build_old_libs=$enable_static
13575
13576# What type of objects to build.
13577pic_mode=$pic_mode
13578
13579# Whether or not to optimize for fast installation.
13580fast_install=$enable_fast_install
13581
13582# The host system.
13583host_alias=$host_alias
13584host=$host
13585host_os=$host_os
13586
13587# The build system.
13588build_alias=$build_alias
13589build=$build
13590build_os=$build_os
13591
13592# A sed program that does not truncate output.
13593SED=$lt_SED
13594
13595# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13596Xsed="\$SED -e 1s/^X//"
13597
13598# A grep program that handles long lines.
13599GREP=$lt_GREP
13600
13601# An ERE matcher.
13602EGREP=$lt_EGREP
13603
13604# A literal string matcher.
13605FGREP=$lt_FGREP
13606
13607# A BSD- or MS-compatible name lister.
13608NM=$lt_NM
13609
13610# Whether we need soft or hard links.
13611LN_S=$lt_LN_S
13612
13613# What is the maximum length of a command?
13614max_cmd_len=$max_cmd_len
13615
13616# Object file suffix (normally "o").
13617objext=$ac_objext
13618
13619# Executable file suffix (normally "").
13620exeext=$exeext
13621
13622# whether the shell understands "unset".
13623lt_unset=$lt_unset
13624
13625# turn spaces into newlines.
13626SP2NL=$lt_lt_SP2NL
13627
13628# turn newlines into spaces.
13629NL2SP=$lt_lt_NL2SP
13630
13631# How to create reloadable object files.
13632reload_flag=$lt_reload_flag
13633reload_cmds=$lt_reload_cmds
13634
13635# Method to check whether dependent libraries are shared objects.
13636deplibs_check_method=$lt_deplibs_check_method
13637
13638# Command to use when deplibs_check_method == "file_magic".
13639file_magic_cmd=$lt_file_magic_cmd
13640
13641# The archiver.
13642AR=$lt_AR
13643AR_FLAGS=$lt_AR_FLAGS
13644
13645# A symbol stripping program.
13646STRIP=$lt_STRIP
13647
13648# Commands used to install an old-style archive.
13649RANLIB=$lt_RANLIB
13650old_postinstall_cmds=$lt_old_postinstall_cmds
13651old_postuninstall_cmds=$lt_old_postuninstall_cmds
13652
13653# A C compiler.
13654LTCC=$lt_CC
13655
13656# LTCC compiler flags.
13657LTCFLAGS=$lt_CFLAGS
13658
13659# Take the output of nm and produce a listing of raw symbols and C names.
13660global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13661
13662# Transform the output of nm in a proper C declaration.
13663global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13664
13665# Transform the output of nm in a C name address pair.
13666global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13667
13668# The name of the directory that contains temporary libtool files.
13669objdir=$objdir
13670
13671# Shell to use when invoking shell scripts.
13672SHELL=$lt_SHELL
13673
13674# An echo program that does not interpret backslashes.
13675ECHO=$lt_ECHO
13676
13677# Used to examine libraries when file_magic_cmd begins with "file".
13678MAGIC_CMD=$MAGIC_CMD
13679
13680# Must we lock files when doing compilation?
13681need_locks=$lt_need_locks
13682
13683# Old archive suffix (normally "a").
13684libext=$libext
13685
13686# Shared library suffix (normally ".so").
13687shrext_cmds=$lt_shrext_cmds
13688
13689# The commands to extract the exported symbol list from a shared archive.
13690extract_expsyms_cmds=$lt_extract_expsyms_cmds
13691
13692# Variables whose values should be saved in libtool wrapper scripts and
13693# restored at link time.
13694variables_saved_for_relink=$lt_variables_saved_for_relink
13695
13696# Do we need the "lib" prefix for modules?
13697need_lib_prefix=$need_lib_prefix
13698
13699# Do we need a version for libraries?
13700need_version=$need_version
13701
13702# Library versioning type.
13703version_type=$version_type
13704
13705# Shared library runtime path variable.
13706runpath_var=$runpath_var
13707
13708# Shared library path variable.
13709shlibpath_var=$shlibpath_var
13710
13711# Is shlibpath searched before the hard-coded library search path?
13712shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13713
13714# Format of library name prefix.
13715libname_spec=$lt_libname_spec
13716
13717# List of archive names. First name is the real one, the rest are links.
13718# The last name is the one that the linker finds with -lNAME
13719library_names_spec=$lt_library_names_spec
13720
13721# The coded name of the library, if different from the real name.
13722soname_spec=$lt_soname_spec
13723
13724# Command to use after installation of a shared archive.
13725postinstall_cmds=$lt_postinstall_cmds
13726
13727# Command to use after uninstallation of a shared archive.
13728postuninstall_cmds=$lt_postuninstall_cmds
13729
13730# Commands used to finish a libtool library installation in a directory.
13731finish_cmds=$lt_finish_cmds
13732
13733# As "finish_cmds", except a single script fragment to be evaled but
13734# not shown.
13735finish_eval=$lt_finish_eval
13736
13737# Whether we should hardcode library paths into libraries.
13738hardcode_into_libs=$hardcode_into_libs
13739
13740# Compile-time system search path for libraries.
13741sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13742
13743# Run-time system search path for libraries.
13744sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13745
13746# Whether dlopen is supported.
13747dlopen_support=$enable_dlopen
13748
13749# Whether dlopen of programs is supported.
13750dlopen_self=$enable_dlopen_self
13751
13752# Whether dlopen of statically linked programs is supported.
13753dlopen_self_static=$enable_dlopen_self_static
13754
13755# Commands to strip libraries.
13756old_striplib=$lt_old_striplib
13757striplib=$lt_striplib
13758
13759
13760# The linker used to build libraries.
13761LD=$lt_LD
13762
13763# Commands used to build an old-style archive.
13764old_archive_cmds=$lt_old_archive_cmds
13765
13766# A language specific compiler.
13767CC=$lt_compiler
13768
13769# Is the compiler the GNU compiler?
13770with_gcc=$GCC
13771
13772# Compiler flag to turn off builtin functions.
13773no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13774
13775# How to pass a linker flag through the compiler.
13776wl=$lt_lt_prog_compiler_wl
13777
13778# Additional compiler flags for building library objects.
13779pic_flag=$lt_lt_prog_compiler_pic
13780
13781# Compiler flag to prevent dynamic linking.
13782link_static_flag=$lt_lt_prog_compiler_static
13783
13784# Does compiler simultaneously support -c and -o options?
13785compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13786
13787# Whether or not to add -lc for building shared libraries.
13788build_libtool_need_lc=$archive_cmds_need_lc
13789
13790# Whether or not to disallow shared libs when runtime libs are static.
13791allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13792
13793# Compiler flag to allow reflexive dlopens.
13794export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13795
13796# Compiler flag to generate shared objects directly from archives.
13797whole_archive_flag_spec=$lt_whole_archive_flag_spec
13798
13799# Whether the compiler copes with passing no objects directly.
13800compiler_needs_object=$lt_compiler_needs_object
13801
13802# Create an old-style archive from a shared archive.
13803old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13804
13805# Create a temporary old-style archive to link instead of a shared archive.
13806old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13807
13808# Commands used to build a shared archive.
13809archive_cmds=$lt_archive_cmds
13810archive_expsym_cmds=$lt_archive_expsym_cmds
13811
13812# Commands used to build a loadable module if different from building
13813# a shared archive.
13814module_cmds=$lt_module_cmds
13815module_expsym_cmds=$lt_module_expsym_cmds
13816
13817# Whether we are building with GNU ld or not.
13818with_gnu_ld=$lt_with_gnu_ld
13819
13820# Flag that allows shared libraries with undefined symbols to be built.
13821allow_undefined_flag=$lt_allow_undefined_flag
13822
13823# Flag that enforces no undefined symbols.
13824no_undefined_flag=$lt_no_undefined_flag
13825
13826# Flag to hardcode \$libdir into a binary during linking.
13827# This must work even if \$libdir does not exist
13828hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13829
13830# If ld is used when linking, flag to hardcode \$libdir into a binary
13831# during linking. This must work even if \$libdir does not exist.
13832hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13833
13834# Whether we need a single "-rpath" flag with a separated argument.
13835hardcode_libdir_separator=$lt_hardcode_libdir_separator
13836
13837# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13838# DIR into the resulting binary.
13839hardcode_direct=$hardcode_direct
13840
13841# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13842# DIR into the resulting binary and the resulting library dependency is
13843# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13844# library is relocated.
13845hardcode_direct_absolute=$hardcode_direct_absolute
13846
13847# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13848# into the resulting binary.
13849hardcode_minus_L=$hardcode_minus_L
13850
13851# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13852# into the resulting binary.
13853hardcode_shlibpath_var=$hardcode_shlibpath_var
13854
13855# Set to "yes" if building a shared library automatically hardcodes DIR
13856# into the library and all subsequent libraries and executables linked
13857# against it.
13858hardcode_automatic=$hardcode_automatic
13859
13860# Set to yes if linker adds runtime paths of dependent libraries
13861# to runtime path list.
13862inherit_rpath=$inherit_rpath
13863
13864# Whether libtool must link a program against all its dependency libraries.
13865link_all_deplibs=$link_all_deplibs
13866
13867# Fix the shell variable \$srcfile for the compiler.
13868fix_srcfile_path=$lt_fix_srcfile_path
13869
13870# Set to "yes" if exported symbols are required.
13871always_export_symbols=$always_export_symbols
13872
13873# The commands to list exported symbols.
13874export_symbols_cmds=$lt_export_symbols_cmds
13875
13876# Symbols that should not be listed in the preloaded symbols.
13877exclude_expsyms=$lt_exclude_expsyms
13878
13879# Symbols that must always be exported.
13880include_expsyms=$lt_include_expsyms
13881
13882# Commands necessary for linking programs (against libraries) with templates.
13883prelink_cmds=$lt_prelink_cmds
13884
13885# Specify filename containing input files.
13886file_list_spec=$lt_file_list_spec
13887
13888# How to hardcode a shared library path into an executable.
13889hardcode_action=$hardcode_action
13890
13891# ### END LIBTOOL CONFIG
13892
13893_LT_EOF
13894
13895 case $host_os in
13896 aix3*)
13897 cat <<\_LT_EOF >> "$cfgfile"
13898# AIX sometimes has problems with the GCC collect2 program. For some
13899# reason, if we set the COLLECT_NAMES environment variable, the problems
13900# vanish in a puff of smoke.
13901if test "X${COLLECT_NAMES+set}" != Xset; then
13902 COLLECT_NAMES=
13903 export COLLECT_NAMES
13904fi
13905_LT_EOF
13906 ;;
13907 esac
13908
13909
13910ltmain="$ac_aux_dir/ltmain.sh"
13911
13912
13913 # We use sed instead of cat because bash on DJGPP gets confused if
13914 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13915 # text mode, it properly converts lines to CR/LF. This bash problem
13916 # is reportedly fixed, but why not run on old versions too?
13917 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13918 || (rm -f "$cfgfile"; exit 1)
13919
13920 case $xsi_shell in
13921 yes)
13922 cat << \_LT_EOF >> "$cfgfile"
13923# func_dirname file append nondir_replacement
13924# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13925# otherwise set result to NONDIR_REPLACEMENT.
13926func_dirname ()
13927{
13928 case ${1} in
13929 */*) func_dirname_result="${1%/*}${2}" ;;
13930 * ) func_dirname_result="${3}" ;;
13931 esac
13932}
13933
13934# func_basename file
13935func_basename ()
13936{
13937 func_basename_result="${1##*/}"
13938}
13939
13940# func_stripname prefix suffix name
13941# strip PREFIX and SUFFIX off of NAME.
13942# PREFIX and SUFFIX must not contain globbing or regex special
13943# characters, hashes, percent signs, but SUFFIX may contain a leading
13944# dot (in which case that matches only a dot).
13945func_stripname ()
13946{
13947 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13948 # positional parameters, so assign one to ordinary parameter first.
13949 func_stripname_result=${3}
13950 func_stripname_result=${func_stripname_result#"${1}"}
13951 func_stripname_result=${func_stripname_result%"${2}"}
13952}
13953
13954# func_opt_split
13955func_opt_split ()
13956{
13957 func_opt_split_opt=${1%%=*}
13958 func_opt_split_arg=${1#*=}
13959}
13960
13961# func_lo2o object
13962func_lo2o ()
13963{
13964 case ${1} in
13965 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13966 *) func_lo2o_result=${1} ;;
13967 esac
13968}
13969_LT_EOF
13970 ;;
13971 *) # Bourne compatible functions.
13972 cat << \_LT_EOF >> "$cfgfile"
13973# func_dirname file append nondir_replacement
13974# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13975# otherwise set result to NONDIR_REPLACEMENT.
13976func_dirname ()
13977{
13978 # Extract subdirectory from the argument.
13979 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13980 if test "X$func_dirname_result" = "X${1}"; then
13981 func_dirname_result="${3}"
13982 else
13983 func_dirname_result="$func_dirname_result${2}"
13984 fi
13985}
13986
13987# func_basename file
13988func_basename ()
13989{
13990 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13991}
13992
13993# func_stripname prefix suffix name
13994# strip PREFIX and SUFFIX off of NAME.
13995# PREFIX and SUFFIX must not contain globbing or regex special
13996# characters, hashes, percent signs, but SUFFIX may contain a leading
13997# dot (in which case that matches only a dot).
13998# func_strip_suffix prefix name
13999func_stripname ()
14000{
14001 case ${2} in
14002 .*) func_stripname_result=`$ECHO "X${3}" \
14003 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14004 *) func_stripname_result=`$ECHO "X${3}" \
14005 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14006 esac
14007}
14008
14009# sed scripts:
14010my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14011my_sed_long_arg='1s/^-[^=]*=//'
14012
14013# func_opt_split
14014func_opt_split ()
14015{
14016 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14017 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14018}
14019
14020# func_lo2o object
14021func_lo2o ()
14022{
14023 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14024}
14025_LT_EOF
14026esac
14027
14028case $lt_shell_append in
14029 yes)
14030 cat << \_LT_EOF >> "$cfgfile"
14031
14032# func_append var value
14033# Append VALUE to the end of shell variable VAR.
14034func_append ()
14035{
14036 eval "$1+=\$2"
14037}
14038_LT_EOF
14039 ;;
14040 *)
14041 cat << \_LT_EOF >> "$cfgfile"
14042
14043# func_append var value
14044# Append VALUE to the end of shell variable VAR.
14045func_append ()
14046{
14047 eval "$1=\$$1\$2"
14048}
14049_LT_EOF
14050 ;;
14051 esac
14052
14053
14054 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14055 || (rm -f "$cfgfile"; exit 1)
14056
14057 mv -f "$cfgfile" "$ofile" ||
14058 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14059 chmod +x "$ofile"
14060
6bf9431b 14061 ;;
1b9750d6 14062 "default-1":C)
20e95c23
DJ
14063 for ac_file in $CONFIG_FILES; do
14064 # Support "outfile[:infile[:infile...]]"
14065 case "$ac_file" in
14066 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14067 esac
14068 # PO directories have a Makefile.in generated from Makefile.in.in.
14069 case "$ac_file" in */Makefile.in)
14070 # Adjust a relative srcdir.
14071 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14072 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14073 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14074 # In autoconf-2.13 it is called $ac_given_srcdir.
14075 # In autoconf-2.50 it is called $srcdir.
14076 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14077 case "$ac_given_srcdir" in
14078 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14079 /*) top_srcdir="$ac_given_srcdir" ;;
14080 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14081 esac
14082 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14083 rm -f "$ac_dir/POTFILES"
14084 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14085 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14086 POMAKEFILEDEPS="POTFILES.in"
14087 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14088 # on $ac_dir but don't depend on user-specified configuration
14089 # parameters.
14090 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14091 # The LINGUAS file contains the set of available languages.
14092 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14093 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14094 fi
14095 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14096 # Hide the ALL_LINGUAS assigment from automake.
14097 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14098 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14099 else
14100 # The set of available languages was given in configure.in.
14101 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14102 fi
14103 case "$ac_given_srcdir" in
14104 .) srcdirpre= ;;
14105 *) srcdirpre='$(srcdir)/' ;;
14106 esac
14107 POFILES=
14108 GMOFILES=
14109 UPDATEPOFILES=
14110 DUMMYPOFILES=
14111 for lang in $ALL_LINGUAS; do
14112 POFILES="$POFILES $srcdirpre$lang.po"
14113 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14114 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14115 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14116 done
14117 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14118 # environment variable.
14119 INST_LINGUAS=
14120 if test -n "$ALL_LINGUAS"; then
14121 for presentlang in $ALL_LINGUAS; do
14122 useit=no
14123 if test "%UNSET%" != "$LINGUAS"; then
14124 desiredlanguages="$LINGUAS"
14125 else
14126 desiredlanguages="$ALL_LINGUAS"
14127 fi
14128 for desiredlang in $desiredlanguages; do
14129 # Use the presentlang catalog if desiredlang is
14130 # a. equal to presentlang, or
14131 # b. a variant of presentlang (because in this case,
14132 # presentlang can be used as a fallback for messages
14133 # which are not translated in the desiredlang catalog).
14134 case "$desiredlang" in
14135 "$presentlang"*) useit=yes;;
14136 esac
14137 done
14138 if test $useit = yes; then
14139 INST_LINGUAS="$INST_LINGUAS $presentlang"
14140 fi
14141 done
14142 fi
14143 CATALOGS=
14144 if test -n "$INST_LINGUAS"; then
14145 for lang in $INST_LINGUAS; do
14146 CATALOGS="$CATALOGS $lang.gmo"
14147 done
14148 fi
14149 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14150 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"
14151 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14152 if test -f "$f"; then
14153 case "$f" in
14154 *.orig | *.bak | *~) ;;
14155 *) cat "$f" >> "$ac_dir/Makefile" ;;
14156 esac
14157 fi
14158 done
14159 fi
14160 ;;
14161 esac
14162 done ;;
1b9750d6 14163
6bf9431b 14164 esac
1b9750d6 14165done # for ac_tag
6bf9431b 14166
6bf9431b
BE
14167
14168{ (exit 0); exit 0; }
14169_ACEOF
252b5132 14170chmod +x $CONFIG_STATUS
6bf9431b
BE
14171ac_clean_files=$ac_clean_files_save
14172
14173
14174# configure is writing to config.log, and then calls config.status.
14175# config.status does its own redirection, appending to config.log.
14176# Unfortunately, on DOS this fails, as config.log is still kept open
14177# by configure, so config.status won't be able to write to it; its
14178# output is simply discarded. So we exec the FD to /dev/null,
14179# effectively closing config.log, so it can be properly (re)opened and
14180# appended to by config.status. When coming back to configure, we
14181# need to make the FD available again.
14182if test "$no_create" != yes; then
14183 ac_cs_success=:
14184 ac_config_status_args=
14185 test "$silent" = yes &&
14186 ac_config_status_args="$ac_config_status_args --quiet"
14187 exec 5>/dev/null
14188 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14189 exec 5>>config.log
14190 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14191 # would make configure fail if this is the last instruction.
14192 $ac_cs_success || { (exit 1); exit 1; }
14193fi
252b5132 14194