/[pcre]/code/trunk/configure
ViewVC logotype

Contents of /code/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 93 - (show annotations) (download)
Sat Feb 24 21:41:42 2007 UTC (7 years, 5 months ago) by nigel
File size: 723196 byte(s)
Load pcre-7.0 into code/trunk.

1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 setopt NO_GLOB_SUBST
21 else
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23 fi
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
40 chmod +x conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42 PATH_SEPARATOR=';'
43 else
44 PATH_SEPARATOR=:
45 fi
46 rm -f conf$$.sh
47 fi
48
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51 as_unset=unset
52 else
53 as_unset=false
54 fi
55
56
57 # IFS
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
63 '
64 IFS=" "" $as_nl"
65
66 # Find who we are. Look in the path if we contain no directory separator.
67 case $0 in
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
71 do
72 IFS=$as_save_IFS
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
77
78 ;;
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83 as_myself=$0
84 fi
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87 { (exit 1); exit 1; }
88 fi
89
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
97
98 # NLS nuisances.
99 for as_var in \
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102 LC_TELEPHONE LC_TIME
103 do
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
106 else
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108 fi
109 done
110
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
114 as_expr=expr
115 else
116 as_expr=false
117 fi
118
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120 as_basename=basename
121 else
122 as_basename=false
123 fi
124
125
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
133 s//\1/
134 q
135 }
136 /^X\/\(\/\/\)$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\).*/{
141 s//\1/
142 q
143 }
144 s/.*/./; q'`
145
146 # CDPATH.
147 $as_unset CDPATH
148
149
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
152 as_have_required=yes
153 else
154 as_have_required=no
155 fi
156
157 if test $as_have_required = yes && (eval ":
158 (as_func_return () {
159 (exit \$1)
160 }
161 as_func_success () {
162 as_func_return 0
163 }
164 as_func_failure () {
165 as_func_return 1
166 }
167 as_func_ret_success () {
168 return 0
169 }
170 as_func_ret_failure () {
171 return 1
172 }
173
174 exitcode=0
175 if as_func_success; then
176 :
177 else
178 exitcode=1
179 echo as_func_success failed.
180 fi
181
182 if as_func_failure; then
183 exitcode=1
184 echo as_func_failure succeeded.
185 fi
186
187 if as_func_ret_success; then
188 :
189 else
190 exitcode=1
191 echo as_func_ret_success failed.
192 fi
193
194 if as_func_ret_failure; then
195 exitcode=1
196 echo as_func_ret_failure succeeded.
197 fi
198
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200 :
201 else
202 exitcode=1
203 echo positional parameters were not saved.
204 fi
205
206 test \$exitcode = 0) || { (exit 1); exit 1; }
207
208 (
209 as_lineno_1=\$LINENO
210 as_lineno_2=\$LINENO
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
214 :
215 else
216 as_candidate_shells=
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 case $as_dir in
223 /*)
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226 done;;
227 esac
228 done
229 IFS=$as_save_IFS
230
231
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238 emulate sh
239 NULLCMD=:
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
243 setopt NO_GLOB_SUBST
244 else
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246 fi
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
249
250 :
251 _ASEOF
252 }; then
253 CONFIG_SHELL=$as_shell
254 as_have_required=yes
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258 emulate sh
259 NULLCMD=:
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
263 setopt NO_GLOB_SUBST
264 else
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266 fi
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
269
270 :
271 (as_func_return () {
272 (exit $1)
273 }
274 as_func_success () {
275 as_func_return 0
276 }
277 as_func_failure () {
278 as_func_return 1
279 }
280 as_func_ret_success () {
281 return 0
282 }
283 as_func_ret_failure () {
284 return 1
285 }
286
287 exitcode=0
288 if as_func_success; then
289 :
290 else
291 exitcode=1
292 echo as_func_success failed.
293 fi
294
295 if as_func_failure; then
296 exitcode=1
297 echo as_func_failure succeeded.
298 fi
299
300 if as_func_ret_success; then
301 :
302 else
303 exitcode=1
304 echo as_func_ret_success failed.
305 fi
306
307 if as_func_ret_failure; then
308 exitcode=1
309 echo as_func_ret_failure succeeded.
310 fi
311
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
313 :
314 else
315 exitcode=1
316 echo positional parameters were not saved.
317 fi
318
319 test $exitcode = 0) || { (exit 1); exit 1; }
320
321 (
322 as_lineno_1=$LINENO
323 as_lineno_2=$LINENO
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327 _ASEOF
328 }; then
329 break
330 fi
331
332 fi
333
334 done
335
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339 done
340 export CONFIG_SHELL
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342 fi
343
344
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
351 fi
352
353
354 fi
355
356 fi
357
358
359
360 (eval "as_func_return () {
361 (exit \$1)
362 }
363 as_func_success () {
364 as_func_return 0
365 }
366 as_func_failure () {
367 as_func_return 1
368 }
369 as_func_ret_success () {
370 return 0
371 }
372 as_func_ret_failure () {
373 return 1
374 }
375
376 exitcode=0
377 if as_func_success; then
378 :
379 else
380 exitcode=1
381 echo as_func_success failed.
382 fi
383
384 if as_func_failure; then
385 exitcode=1
386 echo as_func_failure succeeded.
387 fi
388
389 if as_func_ret_success; then
390 :
391 else
392 exitcode=1
393 echo as_func_ret_success failed.
394 fi
395
396 if as_func_ret_failure; then
397 exitcode=1
398 echo as_func_ret_failure succeeded.
399 fi
400
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402 :
403 else
404 exitcode=1
405 echo positional parameters were not saved.
406 fi
407
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
412 echo message
413 }
414
415
416
417 as_lineno_1=$LINENO
418 as_lineno_2=$LINENO
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
428 # case at line end.
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
450
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
454 . "./$as_me.lineno"
455 # Exit status is that of the last command.
456 exit
457 }
458
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
464 fi
465
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469 case `echo 'x\c'` in
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
471 *) ECHO_C='\c';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
479 as_expr=expr
480 else
481 as_expr=false
482 fi
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir
490 fi
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p=:
510 else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513 fi
514
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
524 else
525 as_executable_p=:
526 fi
527 rm -f conf$$.file
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
540
541 case X$ECHO in
542 X*--fallback-echo)
543 # Remove one level of quotation (which was required for Make).
544 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
545 ;;
546 esac
547
548 echo=${ECHO-echo}
549 if test "X$1" = X--no-reexec; then
550 # Discard the --no-reexec flag, and continue.
551 shift
552 elif test "X$1" = X--fallback-echo; then
553 # Avoid inline document here, it may be left over
554 :
555 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556 # Yippee, $echo works!
557 :
558 else
559 # Restart under the correct shell.
560 exec $SHELL "$0" --no-reexec ${1+"$@"}
561 fi
562
563 if test "X$1" = X--fallback-echo; then
564 # used as fallback echo
565 shift
566 cat <<EOF
567 $*
568 EOF
569 exit 0
570 fi
571
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
573 # if CDPATH is set.
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
575
576 if test -z "$ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582 echo_test_string=`eval $cmd` &&
583 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
584 then
585 break
586 fi
587 done
588 fi
589
590 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592 test "X$echo_testing_string" = "X$echo_test_string"; then
593 :
594 else
595 # The Solaris, AIX, and Digital Unix default echo programs unquote
596 # backslashes. This makes it impossible to quote backslashes using
597 # echo "$something" | sed 's/\\/\\\\/g'
598 #
599 # So, first we look for a working echo in the user's PATH.
600
601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602 for dir in $PATH /usr/ucb; do
603 IFS="$lt_save_ifs"
604 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 echo="$dir/echo"
609 break
610 fi
611 done
612 IFS="$lt_save_ifs"
613
614 if test "X$echo" = Xecho; then
615 # We didn't find a better echo, so look for alternatives.
616 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618 test "X$echo_testing_string" = "X$echo_test_string"; then
619 # This shell has a builtin print -r that does the trick.
620 echo='print -r'
621 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622 test "X$CONFIG_SHELL" != X/bin/ksh; then
623 # If we have ksh, try running configure again with it.
624 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625 export ORIGINAL_CONFIG_SHELL
626 CONFIG_SHELL=/bin/ksh
627 export CONFIG_SHELL
628 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
629 else
630 # Try using printf.
631 echo='printf %s\n'
632 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # Cool, printf works
636 :
637 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
642 export CONFIG_SHELL
643 SHELL="$CONFIG_SHELL"
644 export SHELL
645 echo="$CONFIG_SHELL $0 --fallback-echo"
646 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647 test "X$echo_testing_string" = 'X\t' &&
648 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 echo="$CONFIG_SHELL $0 --fallback-echo"
651 else
652 # maybe with a smaller string...
653 prev=:
654
655 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
657 then
658 break
659 fi
660 prev="$cmd"
661 done
662
663 if test "$prev" != 'sed 50q "$0"'; then
664 echo_test_string=`eval $prev`
665 export echo_test_string
666 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
667 else
668 # Oops. We lost completely, so just stick with echo.
669 echo=echo
670 fi
671 fi
672 fi
673 fi
674 fi
675 fi
676
677 # Copy echo and quote the copy suitably for passing to libtool from
678 # the Makefile, instead of quoting the original, which is used later.
679 ECHO=$echo
680 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
682 fi
683
684
685
686
687 tagnames=${tagnames+${tagnames},}CXX
688
689 tagnames=${tagnames+${tagnames},}F77
690
691 exec 7<&0 </dev/null 6>&1
692
693 # Name of the host.
694 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695 # so uname gets run too.
696 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
697
698 #
699 # Initializations.
700 #
701 ac_default_prefix=/usr/local
702 ac_clean_files=
703 ac_config_libobj_dir=.
704 LIBOBJS=
705 cross_compiling=no
706 subdirs=
707 MFLAGS=
708 MAKEFLAGS=
709 SHELL=${CONFIG_SHELL-/bin/sh}
710
711 # Identity of this package.
712 PACKAGE_NAME=
713 PACKAGE_TARNAME=
714 PACKAGE_VERSION=
715 PACKAGE_STRING=
716 PACKAGE_BUGREPORT=
717
718 ac_unique_file="dftables.c"
719 ac_unique_file="pcre.h"
720 # Factoring default headers for most tests.
721 ac_includes_default="\
722 #include <stdio.h>
723 #if HAVE_SYS_TYPES_H
724 # include <sys/types.h>
725 #endif
726 #if HAVE_SYS_STAT_H
727 # include <sys/stat.h>
728 #endif
729 #if STDC_HEADERS
730 # include <stdlib.h>
731 # include <stddef.h>
732 #else
733 # if HAVE_STDLIB_H
734 # include <stdlib.h>
735 # endif
736 #endif
737 #if HAVE_STRING_H
738 # if !STDC_HEADERS && HAVE_MEMORY_H
739 # include <memory.h>
740 # endif
741 # include <string.h>
742 #endif
743 #if HAVE_STRINGS_H
744 # include <strings.h>
745 #endif
746 #if HAVE_INTTYPES_H
747 # include <inttypes.h>
748 #endif
749 #if HAVE_STDINT_H
750 # include <stdint.h>
751 #endif
752 #if HAVE_UNISTD_H
753 # include <unistd.h>
754 #endif"
755
756 ac_subst_vars='SHELL
757 PATH_SEPARATOR
758 PACKAGE_NAME
759 PACKAGE_TARNAME
760 PACKAGE_VERSION
761 PACKAGE_STRING
762 PACKAGE_BUGREPORT
763 exec_prefix
764 prefix
765 program_transform_name
766 bindir
767 sbindir
768 libexecdir
769 datarootdir
770 datadir
771 sysconfdir
772 sharedstatedir
773 localstatedir
774 includedir
775 oldincludedir
776 docdir
777 infodir
778 htmldir
779 dvidir
780 pdfdir
781 psdir
782 libdir
783 localedir
784 mandir
785 DEFS
786 ECHO_C
787 ECHO_N
788 ECHO_T
789 LIBS
790 build_alias
791 host_alias
792 target_alias
793 CC
794 CFLAGS
795 LDFLAGS
796 CPPFLAGS
797 ac_ct_CC
798 EXEEXT
799 OBJEXT
800 CXX
801 CXXFLAGS
802 ac_ct_CXX
803 INSTALL_PROGRAM
804 INSTALL_SCRIPT
805 INSTALL_DATA
806 build
807 build_cpu
808 build_vendor
809 build_os
810 host
811 host_cpu
812 host_vendor
813 host_os
814 GREP
815 EGREP
816 LN_S
817 ECHO
818 AR
819 RANLIB
820 STRIP
821 DLLTOOL
822 AS
823 OBJDUMP
824 CPP
825 CXXCPP
826 F77
827 FFLAGS
828 ac_ct_F77
829 LIBTOOL
830 pcre_have_bits_type_traits
831 pcre_have_type_traits
832 MAYBE_CPP_TARGETS
833 HAVE_CPP
834 pcre_have_long_long
835 pcre_have_ulong_long
836 BUILD_EXEEXT
837 BUILD_OBJEXT
838 CC_FOR_BUILD
839 CXX_FOR_BUILD
840 CFLAGS_FOR_BUILD
841 CXXFLAGS_FOR_BUILD
842 CXXLDFLAGS
843 EBCDIC
844 HAVE_MEMMOVE
845 HAVE_STRERROR
846 LINK_SIZE
847 MATCH_LIMIT
848 MATCH_LIMIT_RECURSION
849 NEWLINE
850 NO_RECURSE
851 PCRE_LIB_VERSION
852 PCRE_POSIXLIB_VERSION
853 PCRE_CPPLIB_VERSION
854 PCRE_VERSION
855 POSIX_MALLOC_THRESHOLD
856 UCP
857 UTF8
858 WIN_PREFIX
859 ON_WINDOWS
860 NOT_ON_WINDOWS
861 POSIX_OBJ
862 POSIX_LOBJ
863 POSIX_LIB
864 LIBOBJS
865 LTLIBOBJS'
866 ac_subst_files=''
867 ac_precious_vars='build_alias
868 host_alias
869 target_alias
870 CC
871 CFLAGS
872 LDFLAGS
873 CPPFLAGS
874 CXX
875 CXXFLAGS
876 CCC
877 CPP
878 CXXCPP
879 F77
880 FFLAGS'
881
882
883 # Initialize some variables set by options.
884 ac_init_help=
885 ac_init_version=false
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
888 cache_file=/dev/null
889 exec_prefix=NONE
890 no_create=
891 no_recursion=
892 prefix=NONE
893 program_prefix=NONE
894 program_suffix=NONE
895 program_transform_name=s,x,x,
896 silent=
897 site=
898 srcdir=
899 verbose=
900 x_includes=NONE
901 x_libraries=NONE
902
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir='${exec_prefix}/bin'
910 sbindir='${exec_prefix}/sbin'
911 libexecdir='${exec_prefix}/libexec'
912 datarootdir='${prefix}/share'
913 datadir='${datarootdir}'
914 sysconfdir='${prefix}/etc'
915 sharedstatedir='${prefix}/com'
916 localstatedir='${prefix}/var'
917 includedir='${prefix}/include'
918 oldincludedir='/usr/include'
919 docdir='${datarootdir}/doc/${PACKAGE}'
920 infodir='${datarootdir}/info'
921 htmldir='${docdir}'
922 dvidir='${docdir}'
923 pdfdir='${docdir}'
924 psdir='${docdir}'
925 libdir='${exec_prefix}/lib'
926 localedir='${datarootdir}/locale'
927 mandir='${datarootdir}/man'
928
929 ac_prev=
930 ac_dashdash=
931 for ac_option
932 do
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
935 eval $ac_prev=\$ac_option
936 ac_prev=
937 continue
938 fi
939
940 case $ac_option in
941 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 *) ac_optarg=yes ;;
943 esac
944
945 # Accept the important Cygnus configure options, so we can diagnose typos.
946
947 case $ac_dashdash$ac_option in
948 --)
949 ac_dashdash=yes ;;
950
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
952 ac_prev=bindir ;;
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954 bindir=$ac_optarg ;;
955
956 -build | --build | --buil | --bui | --bu)
957 ac_prev=build_alias ;;
958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959 build_alias=$ac_optarg ;;
960
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966 cache_file=$ac_optarg ;;
967
968 --config-cache | -C)
969 cache_file=config.cache ;;
970
971 -datadir | --datadir | --datadi | --datad)
972 ac_prev=datadir ;;
973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
974 datadir=$ac_optarg ;;
975
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
982
983 -disable-* | --disable-*)
984 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
987 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
988 { (exit 1); exit 1; }; }
989 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
990 eval enable_$ac_feature=no ;;
991
992 -docdir | --docdir | --docdi | --doc | --do)
993 ac_prev=docdir ;;
994 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
995 docdir=$ac_optarg ;;
996
997 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
998 ac_prev=dvidir ;;
999 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000 dvidir=$ac_optarg ;;
1001
1002 -enable-* | --enable-*)
1003 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1006 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007 { (exit 1); exit 1; }; }
1008 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1009 eval enable_$ac_feature=\$ac_optarg ;;
1010
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1019
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1022 with_gas=yes ;;
1023
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1030
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1035
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037 ac_prev=htmldir ;;
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039 | --ht=*)
1040 htmldir=$ac_optarg ;;
1041
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1048
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1050 ac_prev=infodir ;;
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1053
1054 -libdir | --libdir | --libdi | --libd)
1055 ac_prev=libdir ;;
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1058
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1065
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1070
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1077
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079 ac_prev=mandir ;;
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1082
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1085 with_fp=no ;;
1086
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1089 no_create=yes ;;
1090
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 no_recursion=yes ;;
1094
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1103
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105 ac_prev=prefix ;;
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1108
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1115
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1122
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1139
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141 ac_prev=pdfdir ;;
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1144
1145 -psdir | --psdir | --psdi | --psd | --ps)
1146 ac_prev=psdir ;;
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 psdir=$ac_optarg ;;
1149
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1152 silent=yes ;;
1153
1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155 ac_prev=sbindir ;;
1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157 | --sbi=* | --sb=*)
1158 sbindir=$ac_optarg ;;
1159
1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162 | --sharedst | --shareds | --shared | --share | --shar \
1163 | --sha | --sh)
1164 ac_prev=sharedstatedir ;;
1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168 | --sha=* | --sh=*)
1169 sharedstatedir=$ac_optarg ;;
1170
1171 -site | --site | --sit)
1172 ac_prev=site ;;
1173 -site=* | --site=* | --sit=*)
1174 site=$ac_optarg ;;
1175
1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177 ac_prev=srcdir ;;
1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179 srcdir=$ac_optarg ;;
1180
1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182 | --syscon | --sysco | --sysc | --sys | --sy)
1183 ac_prev=sysconfdir ;;
1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186 sysconfdir=$ac_optarg ;;
1187
1188 -target | --target | --targe | --targ | --tar | --ta | --t)
1189 ac_prev=target_alias ;;
1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191 target_alias=$ac_optarg ;;
1192
1193 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194 verbose=yes ;;
1195
1196 -version | --version | --versio | --versi | --vers | -V)
1197 ac_init_version=: ;;
1198
1199 -with-* | --with-*)
1200 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1203 { echo "$as_me: error: invalid package name: $ac_package" >&2
1204 { (exit 1); exit 1; }; }
1205 ac_package=`echo $ac_package| sed 's/-/_/g'`
1206 eval with_$ac_package=\$ac_optarg ;;
1207
1208 -without-* | --without-*)
1209 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1212 { echo "$as_me: error: invalid package name: $ac_package" >&2
1213 { (exit 1); exit 1; }; }
1214 ac_package=`echo $ac_package | sed 's/-/_/g'`
1215 eval with_$ac_package=no ;;
1216
1217 --x)
1218 # Obsolete; use --with-x.
1219 with_x=yes ;;
1220
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1227
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1234
1235 -*) { echo "$as_me: error: unrecognized option: $ac_option
1236 Try \`$0 --help' for more information." >&2
1237 { (exit 1); exit 1; }; }
1238 ;;
1239
1240 *=*)
1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1244 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1245 { (exit 1); exit 1; }; }
1246 eval $ac_envvar=\$ac_optarg
1247 export $ac_envvar ;;
1248
1249 *)
1250 # FIXME: should be removed in autoconf 3.0.
1251 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255 ;;
1256
1257 esac
1258 done
1259
1260 if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262 { echo "$as_me: error: missing argument to $ac_option" >&2
1263 { (exit 1); exit 1; }; }
1264 fi
1265
1266 # Be sure to have absolute directory names.
1267 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
1271 do
1272 eval ac_val=\$$ac_var
1273 case $ac_val in
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276 esac
1277 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1278 { (exit 1); exit 1; }; }
1279 done
1280
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1284 build=$build_alias
1285 host=$host_alias
1286 target=$target_alias
1287
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1293 If a cross compiler is detected then cross compile mode will be used." >&2
1294 elif test "x$build_alias" != "x$host_alias"; then
1295 cross_compiling=yes
1296 fi
1297 fi
1298
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302 test "$silent" = yes && exec 6>/dev/null
1303
1304
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 { echo "$as_me: error: Working directory cannot be determined" >&2
1309 { (exit 1); exit 1; }; }
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 { echo "$as_me: error: pwd does not report name of working directory" >&2
1312 { (exit 1); exit 1; }; }
1313
1314
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$0" ||
1320 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$0" : 'X\(//\)[^/]' \| \
1322 X"$0" : 'X\(//\)$' \| \
1323 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1324 echo X"$0" |
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)[^/].*/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\).*/{
1338 s//\1/
1339 q
1340 }
1341 s/.*/./; q'`
1342 srcdir=$ac_confdir
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 srcdir=..
1345 fi
1346 else
1347 ac_srcdir_defaulted=no
1348 fi
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1352 { (exit 1); exit 1; }; }
1353 fi
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1357 { (exit 1); exit 1; }; }
1358 pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1362 fi
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1375
1376 #
1377 # Report the --help message.
1378 #
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383 \`configure' configures this package to adapt to many kinds of systems.
1384
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1389
1390 Defaults for the options are specified in brackets.
1391
1392 Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 [PREFIX]
1408
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1413
1414 For better control, use the options below.
1415
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1436 _ACEOF
1437
1438 cat <<\_ACEOF
1439
1440 System types:
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 _ACEOF
1444 fi
1445
1446 if test -n "$ac_init_help"; then
1447
1448 cat <<\_ACEOF
1449
1450 Optional Features:
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --disable-cpp disable C++ support
1454 --enable-shared[=PKGS] build shared libraries [default=yes]
1455 --enable-static[=PKGS] build static libraries [default=yes]
1456 --enable-fast-install[=PKGS]
1457 optimize for fast installation [default=yes]
1458 --disable-libtool-lock avoid locking (might break parallel builds)
1459 --enable-utf8 enable UTF8 support
1460 --enable-unicode-properties enable Unicode properties support
1461 --enable-newline-is-cr use CR as the newline character
1462 --enable-newline-is-lf use LF as the newline character
1463 --enable-newline-is-crlf use CRLF as the newline sequence
1464 --enable-newline-is-any use any Unicode newline sequence
1465 --enable-ebcdic assume EBCDIC coding rather than ASCII
1466 --disable-stack-for-recursion disable use of stack recursion when matching
1467
1468 Optional Packages:
1469 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1470 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1471 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1472 --with-pic try to use only PIC/non-PIC objects [default=use
1473 both]
1474 --with-tags[=TAGS] include additional configurations [automatic]
1475 --with-posix-malloc-threshold=10 threshold for POSIX malloc usage
1476 --with-link-size=2 internal link size (2, 3, or 4 allowed)
1477 --with-match-limit=10000000 default limit on internal looping
1478 --with-match-limit-recursion=10000000 default limit on internal recursion
1479
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1486 you have headers in a nonstandard directory <include dir>
1487 CXX C++ compiler command
1488 CXXFLAGS C++ compiler flags
1489 CPP C preprocessor
1490 CXXCPP C++ preprocessor
1491 F77 Fortran 77 compiler command
1492 FFLAGS Fortran 77 compiler flags
1493
1494 Use these variables to override the choices made by `configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1496
1497 _ACEOF
1498 ac_status=$?
1499 fi
1500
1501 if test "$ac_init_help" = "recursive"; then
1502 # If there are subdirs, report their specific --help.
1503 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504 test -d "$ac_dir" || continue
1505 ac_builddir=.
1506
1507 case "$ac_dir" in
1508 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *)
1510 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1511 # A ".." for each directory in $ac_dir_suffix.
1512 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1513 case $ac_top_builddir_sub in
1514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1516 esac ;;
1517 esac
1518 ac_abs_top_builddir=$ac_pwd
1519 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1520 # for backward compatibility:
1521 ac_top_builddir=$ac_top_build_prefix
1522
1523 case $srcdir in
1524 .) # We are building in place.
1525 ac_srcdir=.
1526 ac_top_srcdir=$ac_top_builddir_sub
1527 ac_abs_top_srcdir=$ac_pwd ;;
1528 [\\/]* | ?:[\\/]* ) # Absolute name.
1529 ac_srcdir=$srcdir$ac_dir_suffix;
1530 ac_top_srcdir=$srcdir
1531 ac_abs_top_srcdir=$srcdir ;;
1532 *) # Relative name.
1533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1534 ac_top_srcdir=$ac_top_build_prefix$srcdir
1535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1536 esac
1537 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538
1539 cd "$ac_dir" || { ac_status=$?; continue; }
1540 # Check for guested configure.
1541 if test -f "$ac_srcdir/configure.gnu"; then
1542 echo &&
1543 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1544 elif test -f "$ac_srcdir/configure"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure" --help=recursive
1547 else
1548 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549 fi || ac_status=$?
1550 cd "$ac_pwd" || { ac_status=$?; break; }
1551 done
1552 fi
1553
1554 test -n "$ac_init_help" && exit $ac_status
1555 if $ac_init_version; then
1556 cat <<\_ACEOF
1557 configure
1558 generated by GNU Autoconf 2.60
1559
1560 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1561 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1562 This configure script is free software; the Free Software Foundation
1563 gives unlimited permission to copy, distribute and modify it.
1564 _ACEOF
1565 exit
1566 fi
1567 cat >config.log <<_ACEOF
1568 This file contains any messages produced by compilers while
1569 running configure, to aid debugging if configure makes a mistake.
1570
1571 It was created by $as_me, which was
1572 generated by GNU Autoconf 2.60. Invocation command line was
1573
1574 $ $0 $@
1575
1576 _ACEOF
1577 exec 5>>config.log
1578 {
1579 cat <<_ASUNAME
1580 ## --------- ##
1581 ## Platform. ##
1582 ## --------- ##
1583
1584 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1585 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1586 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1587 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1588 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1589
1590 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1591 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1592
1593 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1594 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1595 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1596 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1597 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1598 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1599 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1600
1601 _ASUNAME
1602
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 for as_dir in $PATH
1605 do
1606 IFS=$as_save_IFS
1607 test -z "$as_dir" && as_dir=.
1608 echo "PATH: $as_dir"
1609 done
1610 IFS=$as_save_IFS
1611
1612 } >&5
1613
1614 cat >&5 <<_ACEOF
1615
1616
1617 ## ----------- ##
1618 ## Core tests. ##
1619 ## ----------- ##
1620
1621 _ACEOF
1622
1623
1624 # Keep a trace of the command line.
1625 # Strip out --no-create and --no-recursion so they do not pile up.
1626 # Strip out --silent because we don't want to record it for future runs.
1627 # Also quote any args containing shell meta-characters.
1628 # Make two passes to allow for proper duplicate-argument suppression.
1629 ac_configure_args=
1630 ac_configure_args0=
1631 ac_configure_args1=
1632 ac_must_keep_next=false
1633 for ac_pass in 1 2
1634 do
1635 for ac_arg
1636 do
1637 case $ac_arg in
1638 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1639 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1640 | -silent | --silent | --silen | --sile | --sil)
1641 continue ;;
1642 *\'*)
1643 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1644 esac
1645 case $ac_pass in
1646 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1647 2)
1648 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1649 if test $ac_must_keep_next = true; then
1650 ac_must_keep_next=false # Got value, back to normal.
1651 else
1652 case $ac_arg in
1653 *=* | --config-cache | -C | -disable-* | --disable-* \
1654 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1655 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1656 | -with-* | --with-* | -without-* | --without-* | --x)
1657 case "$ac_configure_args0 " in
1658 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1659 esac
1660 ;;
1661 -* ) ac_must_keep_next=true ;;
1662 esac
1663 fi
1664 ac_configure_args="$ac_configure_args '$ac_arg'"
1665 ;;
1666 esac
1667 done
1668 done
1669 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1670 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1671
1672 # When interrupted or exit'd, cleanup temporary files, and complete
1673 # config.log. We remove comments because anyway the quotes in there
1674 # would cause problems or look ugly.
1675 # WARNING: Use '\'' to represent an apostrophe within the trap.
1676 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1677 trap 'exit_status=$?
1678 # Save into config.log some information that might help in debugging.
1679 {
1680 echo
1681
1682 cat <<\_ASBOX
1683 ## ---------------- ##
1684 ## Cache variables. ##
1685 ## ---------------- ##
1686 _ASBOX
1687 echo
1688 # The following way of writing the cache mishandles newlines in values,
1689 (
1690 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1691 eval ac_val=\$$ac_var
1692 case $ac_val in #(
1693 *${as_nl}*)
1694 case $ac_var in #(
1695 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1696 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1697 esac
1698 case $ac_var in #(
1699 _ | IFS | as_nl) ;; #(
1700 *) $as_unset $ac_var ;;
1701 esac ;;
1702 esac
1703 done
1704 (set) 2>&1 |
1705 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1706 *${as_nl}ac_space=\ *)
1707 sed -n \
1708 "s/'\''/'\''\\\\'\'''\''/g;
1709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1710 ;; #(
1711 *)
1712 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1713 ;;
1714 esac |
1715 sort
1716 )
1717 echo
1718
1719 cat <<\_ASBOX
1720 ## ----------------- ##
1721 ## Output variables. ##
1722 ## ----------------- ##
1723 _ASBOX
1724 echo
1725 for ac_var in $ac_subst_vars
1726 do
1727 eval ac_val=\$$ac_var
1728 case $ac_val in
1729 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1730 esac
1731 echo "$ac_var='\''$ac_val'\''"
1732 done | sort
1733 echo
1734
1735 if test -n "$ac_subst_files"; then
1736 cat <<\_ASBOX
1737 ## ------------------- ##
1738 ## File substitutions. ##
1739 ## ------------------- ##
1740 _ASBOX
1741 echo
1742 for ac_var in $ac_subst_files
1743 do
1744 eval ac_val=\$$ac_var
1745 case $ac_val in
1746 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1747 esac
1748 echo "$ac_var='\''$ac_val'\''"
1749 done | sort
1750 echo
1751 fi
1752
1753 if test -s confdefs.h; then
1754 cat <<\_ASBOX
1755 ## ----------- ##
1756 ## confdefs.h. ##
1757 ## ----------- ##
1758 _ASBOX
1759 echo
1760 cat confdefs.h
1761 echo
1762 fi
1763 test "$ac_signal" != 0 &&
1764 echo "$as_me: caught signal $ac_signal"
1765 echo "$as_me: exit $exit_status"
1766 } >&5
1767 rm -f core *.core core.conftest.* &&
1768 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1769 exit $exit_status
1770 ' 0
1771 for ac_signal in 1 2 13 15; do
1772 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1773 done
1774 ac_signal=0
1775
1776 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1777 rm -f -r conftest* confdefs.h
1778
1779 # Predefined preprocessor variables.
1780
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_NAME "$PACKAGE_NAME"
1783 _ACEOF
1784
1785
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1788 _ACEOF
1789
1790
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1793 _ACEOF
1794
1795
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_STRING "$PACKAGE_STRING"
1798 _ACEOF
1799
1800
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1803 _ACEOF
1804
1805
1806 # Let the site file select an alternate cache file if it wants to.
1807 # Prefer explicitly selected file to automatically selected ones.
1808 if test -n "$CONFIG_SITE"; then
1809 set x "$CONFIG_SITE"
1810 elif test "x$prefix" != xNONE; then
1811 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1812 else
1813 set x "$ac_default_prefix/share/config.site" \
1814 "$ac_default_prefix/etc/config.site"
1815 fi
1816 shift
1817 for ac_site_file
1818 do
1819 if test -r "$ac_site_file"; then
1820 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1821 echo "$as_me: loading site script $ac_site_file" >&6;}
1822 sed 's/^/| /' "$ac_site_file" >&5
1823 . "$ac_site_file"
1824 fi
1825 done
1826
1827 if test -r "$cache_file"; then
1828 # Some versions of bash will fail to source /dev/null (special
1829 # files actually), so we avoid doing that.
1830 if test -f "$cache_file"; then
1831 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1832 echo "$as_me: loading cache $cache_file" >&6;}
1833 case $cache_file in
1834 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1835 *) . "./$cache_file";;
1836 esac
1837 fi
1838 else
1839 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1840 echo "$as_me: creating cache $cache_file" >&6;}
1841 >$cache_file
1842 fi
1843
1844 # Check that the precious variables saved in the cache have kept the same
1845 # value.
1846 ac_cache_corrupted=false
1847 for ac_var in $ac_precious_vars; do
1848 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1849 eval ac_new_set=\$ac_env_${ac_var}_set
1850 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1851 eval ac_new_val=\$ac_env_${ac_var}_value
1852 case $ac_old_set,$ac_new_set in
1853 set,)
1854 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1855 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1856 ac_cache_corrupted=: ;;
1857 ,set)
1858 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1859 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1860 ac_cache_corrupted=: ;;
1861 ,);;
1862 *)
1863 if test "x$ac_old_val" != "x$ac_new_val"; then
1864 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1865 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1866 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1867 echo "$as_me: former value: $ac_old_val" >&2;}
1868 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1869 echo "$as_me: current value: $ac_new_val" >&2;}
1870 ac_cache_corrupted=:
1871 fi;;
1872 esac
1873 # Pass precious variables to config.status.
1874 if test "$ac_new_set" = set; then
1875 case $ac_new_val in
1876 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1877 *) ac_arg=$ac_var=$ac_new_val ;;
1878 esac
1879 case " $ac_configure_args " in
1880 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1881 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1882 esac
1883 fi
1884 done
1885 if $ac_cache_corrupted; then
1886 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1887 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1888 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1889 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1890 { (exit 1); exit 1; }; }
1891 fi
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909 ac_ext=c
1910 ac_cpp='$CPP $CPPFLAGS'
1911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1914
1915
1916
1917
1918
1919
1920
1921 ac_config_headers="$ac_config_headers config.h"
1922
1923
1924
1925 POSIX_MALLOC_THRESHOLD=-DPOSIX_MALLOC_THRESHOLD=10
1926
1927
1928 PCRE_LIB_VERSION=0:1:0
1929 PCRE_POSIXLIB_VERSION=0:0:0
1930 PCRE_CPPLIB_VERSION=0:0:0
1931
1932
1933 PCRE_MAJOR=`grep '#define PCRE_MAJOR' ${srcdir}/pcre.h | cut -c 29-`
1934 PCRE_MINOR=`grep '#define PCRE_MINOR' ${srcdir}/pcre.h | cut -c 29-`
1935 PCRE_PRERELEASE=`grep '#define PCRE_PRERELEASE' ${srcdir}/pcre.h | cut -c 29-`
1936 PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}${PCRE_PRERELEASE}
1937
1938
1939 # Check whether --enable-cpp was given.
1940 if test "${enable_cpp+set}" = set; then
1941 enableval=$enable_cpp; want_cpp="$enableval"
1942 else
1943 want_cpp=yes
1944 fi
1945
1946
1947
1948 ac_ext=c
1949 ac_cpp='$CPP $CPPFLAGS'
1950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1953 if test -n "$ac_tool_prefix"; then
1954 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1955 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1958 if test "${ac_cv_prog_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961 if test -n "$CC"; then
1962 ac_cv_prog_CC="$CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967 IFS=$as_save_IFS
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1971 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 break 2
1974 fi
1975 done
1976 done
1977 IFS=$as_save_IFS
1978
1979 fi
1980 fi
1981 CC=$ac_cv_prog_CC
1982 if test -n "$CC"; then
1983 { echo "$as_me:$LINENO: result: $CC" >&5
1984 echo "${ECHO_T}$CC" >&6; }
1985 else
1986 { echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6; }
1988 fi
1989
1990
1991 fi
1992 if test -z "$ac_cv_prog_CC"; then
1993 ac_ct_CC=$CC
1994 # Extract the first word of "gcc", so it can be a program name with args.
1995 set dummy gcc; ac_word=$2
1996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1998 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 if test -n "$ac_ct_CC"; then
2002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007 IFS=$as_save_IFS
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2011 ac_cv_prog_ac_ct_CC="gcc"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 break 2
2014 fi
2015 done
2016 done
2017 IFS=$as_save_IFS
2018
2019 fi
2020 fi
2021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2022 if test -n "$ac_ct_CC"; then
2023 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2024 echo "${ECHO_T}$ac_ct_CC" >&6; }
2025 else
2026 { echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6; }
2028 fi
2029
2030 if test "x$ac_ct_CC" = x; then
2031 CC=""
2032 else
2033 case $cross_compiling:$ac_tool_warned in
2034 yes:)
2035 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2036 whose name does not start with the host triplet. If you think this
2037 configuration is useful to you, please write to autoconf@gnu.org." >&5
2038 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2039 whose name does not start with the host triplet. If you think this
2040 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2041 ac_tool_warned=yes ;;
2042 esac
2043 CC=$ac_ct_CC
2044 fi
2045 else
2046 CC="$ac_cv_prog_CC"
2047 fi
2048
2049 if test -z "$CC"; then
2050 if test -n "$ac_tool_prefix"; then
2051 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2052 set dummy ${ac_tool_prefix}cc; ac_word=$2
2053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058 if test -n "$CC"; then
2059 ac_cv_prog_CC="$CC" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064 IFS=$as_save_IFS
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2068 ac_cv_prog_CC="${ac_tool_prefix}cc"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 break 2
2071 fi
2072 done
2073 done
2074 IFS=$as_save_IFS
2075
2076 fi
2077 fi
2078 CC=$ac_cv_prog_CC
2079 if test -n "$CC"; then
2080 { echo "$as_me:$LINENO: result: $CC" >&5
2081 echo "${ECHO_T}$CC" >&6; }
2082 else
2083 { echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6; }
2085 fi
2086
2087
2088 fi
2089 fi
2090 if test -z "$CC"; then
2091 # Extract the first word of "cc", so it can be a program name with args.
2092 set dummy cc; ac_word=$2
2093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2095 if test "${ac_cv_prog_CC+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098 if test -n "$CC"; then
2099 ac_cv_prog_CC="$CC" # Let the user override the test.
2100 else
2101 ac_prog_rejected=no
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2104 do
2105 IFS=$as_save_IFS
2106 test -z "$as_dir" && as_dir=.
2107 for ac_exec_ext in '' $ac_executable_extensions; do
2108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2109 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2110 ac_prog_rejected=yes
2111 continue
2112 fi
2113 ac_cv_prog_CC="cc"
2114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115 break 2
2116 fi
2117 done
2118 done
2119 IFS=$as_save_IFS
2120
2121 if test $ac_prog_rejected = yes; then
2122 # We found a bogon in the path, so make sure we never use it.
2123 set dummy $ac_cv_prog_CC
2124 shift
2125 if test $# != 0; then
2126 # We chose a different compiler from the bogus one.
2127 # However, it has the same basename, so the bogon will be chosen
2128 # first if we set CC to just the basename; use the full file name.
2129 shift
2130 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2131 fi
2132 fi
2133 fi
2134 fi
2135 CC=$ac_cv_prog_CC
2136 if test -n "$CC"; then
2137 { echo "$as_me:$LINENO: result: $CC" >&5
2138 echo "${ECHO_T}$CC" >&6; }
2139 else
2140 { echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6; }
2142 fi
2143
2144
2145 fi
2146 if test -z "$CC"; then
2147 if test -n "$ac_tool_prefix"; then
2148 for ac_prog in cl.exe
2149 do
2150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2154 if test "${ac_cv_prog_CC+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157 if test -n "$CC"; then
2158 ac_cv_prog_CC="$CC" # Let the user override the test.
2159 else
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH
2162 do
2163 IFS=$as_save_IFS
2164 test -z "$as_dir" && as_dir=.
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2167 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169 break 2
2170 fi
2171 done
2172 done
2173 IFS=$as_save_IFS
2174
2175 fi
2176 fi
2177 CC=$ac_cv_prog_CC
2178 if test -n "$CC"; then
2179 { echo "$as_me:$LINENO: result: $CC" >&5
2180 echo "${ECHO_T}$CC" >&6; }
2181 else
2182 { echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6; }
2184 fi
2185
2186
2187 test -n "$CC" && break
2188 done
2189 fi
2190 if test -z "$CC"; then
2191 ac_ct_CC=$CC
2192 for ac_prog in cl.exe
2193 do
2194 # Extract the first word of "$ac_prog", so it can be a program name with args.
2195 set dummy $ac_prog; ac_word=$2
2196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2198 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201 if test -n "$ac_ct_CC"; then
2202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2203 else
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2206 do
2207 IFS=$as_save_IFS
2208 test -z "$as_dir" && as_dir=.
2209 for ac_exec_ext in '' $ac_executable_extensions; do
2210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2211 ac_cv_prog_ac_ct_CC="$ac_prog"
2212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213 break 2
2214 fi
2215 done
2216 done
2217 IFS=$as_save_IFS
2218
2219 fi
2220 fi
2221 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2222 if test -n "$ac_ct_CC"; then
2223 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2224 echo "${ECHO_T}$ac_ct_CC" >&6; }
2225 else
2226 { echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6; }
2228 fi
2229
2230
2231 test -n "$ac_ct_CC" && break
2232 done
2233
2234 if test "x$ac_ct_CC" = x; then
2235 CC=""
2236 else
2237 case $cross_compiling:$ac_tool_warned in
2238 yes:)
2239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2240 whose name does not start with the host triplet. If you think this
2241 configuration is useful to you, please write to autoconf@gnu.org." >&5
2242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2243 whose name does not start with the host triplet. If you think this
2244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2245 ac_tool_warned=yes ;;
2246 esac
2247 CC=$ac_ct_CC
2248 fi
2249 fi
2250
2251 fi
2252
2253
2254 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2255 See \`config.log' for more details." >&5
2256 echo "$as_me: error: no acceptable C compiler found in \$PATH
2257 See \`config.log' for more details." >&2;}
2258 { (exit 1); exit 1; }; }
2259
2260 # Provide some information about the compiler.
2261 echo "$as_me:$LINENO: checking for C compiler version" >&5
2262 ac_compiler=`set X $ac_compile; echo $2`
2263 { (ac_try="$ac_compiler --version >&5"
2264 case "(($ac_try" in
2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266 *) ac_try_echo=$ac_try;;
2267 esac
2268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2269 (eval "$ac_compiler --version >&5") 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }
2273 { (ac_try="$ac_compiler -v >&5"
2274 case "(($ac_try" in
2275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2276 *) ac_try_echo=$ac_try;;
2277 esac
2278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2279 (eval "$ac_compiler -v >&5") 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }
2283 { (ac_try="$ac_compiler -V >&5"
2284 case "(($ac_try" in
2285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2286 *) ac_try_echo=$ac_try;;
2287 esac
2288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2289 (eval "$ac_compiler -V >&5") 2>&5
2290 ac_status=$?
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }
2293
2294 cat >conftest.$ac_ext <<_ACEOF
2295 /* confdefs.h. */
2296 _ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h. */
2300
2301 int
2302 main ()
2303 {
2304
2305 ;
2306 return 0;
2307 }
2308 _ACEOF
2309 ac_clean_files_save=$ac_clean_files
2310 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2311 # Try to create an executable without -o first, disregard a.out.
2312 # It will help us diagnose broken compilers, and finding out an intuition
2313 # of exeext.
2314 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2315 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2316 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2317 #
2318 # List of possible output files, starting from the most likely.
2319 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2320 # only as a last resort. b.out is created by i960 compilers.
2321 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2322 #
2323 # The IRIX 6 linker writes into existing files which may not be
2324 # executable, retaining their permissions. Remove them first so a
2325 # subsequent execution test works.
2326 ac_rmfiles=
2327 for ac_file in $ac_files
2328 do
2329 case $ac_file in
2330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2331 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2332 esac
2333 done
2334 rm -f $ac_rmfiles
2335
2336 if { (ac_try="$ac_link_default"
2337 case "(($ac_try" in
2338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2339 *) ac_try_echo=$ac_try;;
2340 esac
2341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2342 (eval "$ac_link_default") 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; then
2346 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2347 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2348 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2349 # so that the user can short-circuit this test for compilers unknown to
2350 # Autoconf.
2351 for ac_file in $ac_files
2352 do
2353 test -f "$ac_file" || continue
2354 case $ac_file in
2355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2356 ;;
2357 [ab].out )
2358 # We found the default executable, but exeext='' is most
2359 # certainly right.
2360 break;;
2361 *.* )
2362 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2363 then :; else
2364 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2365 fi
2366 # We set ac_cv_exeext here because the later test for it is not
2367 # safe: cross compilers may not add the suffix if given an `-o'
2368 # argument, so we may need to know it at that point already.
2369 # Even if this section looks crufty: it has the advantage of
2370 # actually working.
2371 break;;
2372 * )
2373 break;;
2374 esac
2375 done
2376 test "$ac_cv_exeext" = no && ac_cv_exeext=
2377
2378 else
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381
2382 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2383 See \`config.log' for more details." >&5
2384 echo "$as_me: error: C compiler cannot create executables
2385 See \`config.log' for more details." >&2;}
2386 { (exit 77); exit 77; }; }
2387 fi
2388
2389 ac_exeext=$ac_cv_exeext
2390 { echo "$as_me:$LINENO: result: $ac_file" >&5
2391 echo "${ECHO_T}$ac_file" >&6; }
2392
2393 # Check that the compiler produces executables we can run. If not, either
2394 # the compiler is broken, or we cross compile.
2395 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2396 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2397 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2398 # If not cross compiling, check that we can run a simple program.
2399 if test "$cross_compiling" != yes; then
2400 if { ac_try='./$ac_file'
2401 { (case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2404 esac
2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_try") 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
2410 cross_compiling=no
2411 else
2412 if test "$cross_compiling" = maybe; then
2413 cross_compiling=yes
2414 else
2415 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2416 If you meant to cross compile, use \`--host'.
2417 See \`config.log' for more details." >&5
2418 echo "$as_me: error: cannot run C compiled programs.
2419 If you meant to cross compile, use \`--host'.
2420 See \`config.log' for more details." >&2;}
2421 { (exit 1); exit 1; }; }
2422 fi
2423 fi
2424 fi
2425 { echo "$as_me:$LINENO: result: yes" >&5
2426 echo "${ECHO_T}yes" >&6; }
2427
2428 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2429 ac_clean_files=$ac_clean_files_save
2430 # Check that the compiler produces executables we can run. If not, either
2431 # the compiler is broken, or we cross compile.
2432 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2433 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2434 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2435 echo "${ECHO_T}$cross_compiling" >&6; }
2436
2437 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2438 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2439 if { (ac_try="$ac_link"
2440 case "(($ac_try" in
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2443 esac
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_link") 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; then
2449 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2450 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2451 # work properly (i.e., refer to `conftest.exe'), while it won't with
2452 # `rm'.
2453 for ac_file in conftest.exe conftest conftest.*; do
2454 test -f "$ac_file" || continue
2455 case $ac_file in
2456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2457 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2458 break;;
2459 * ) break;;
2460 esac
2461 done
2462 else
2463 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2464 See \`config.log' for more details." >&5
2465 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2466 See \`config.log' for more details." >&2;}
2467 { (exit 1); exit 1; }; }
2468 fi
2469
2470 rm -f conftest$ac_cv_exeext
2471 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2472 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2473
2474 rm -f conftest.$ac_ext
2475 EXEEXT=$ac_cv_exeext
2476 ac_exeext=$EXEEXT
2477 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2478 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2479 if test "${ac_cv_objext+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482 cat >conftest.$ac_ext <<_ACEOF
2483 /* confdefs.h. */
2484 _ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2488
2489 int
2490 main ()
2491 {
2492
2493 ;
2494 return 0;
2495 }
2496 _ACEOF
2497 rm -f conftest.o conftest.obj
2498 if { (ac_try="$ac_compile"
2499 case "(($ac_try" in
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2502 esac
2503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504 (eval "$ac_compile") 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; then
2508 for ac_file in conftest.o conftest.obj conftest.*; do
2509 test -f "$ac_file" || continue;
2510 case $ac_file in
2511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2512 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2513 break;;
2514 esac
2515 done
2516 else
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2519
2520 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2521 See \`config.log' for more details." >&5
2522 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2523 See \`config.log' for more details." >&2;}
2524 { (exit 1); exit 1; }; }
2525 fi
2526
2527 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2528 fi
2529 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2530 echo "${ECHO_T}$ac_cv_objext" >&6; }
2531 OBJEXT=$ac_cv_objext
2532 ac_objext=$OBJEXT
2533 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2534 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2535 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 else
2538 cat >conftest.$ac_ext <<_ACEOF
2539 /* confdefs.h. */
2540 _ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h. */
2544
2545 int
2546 main ()
2547 {
2548 #ifndef __GNUC__
2549 choke me
2550 #endif
2551
2552 ;
2553 return 0;
2554 }
2555 _ACEOF
2556 rm -f conftest.$ac_objext
2557 if { (ac_try="$ac_compile"
2558 case "(($ac_try" in
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2561 esac
2562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2563 (eval "$ac_compile") 2>conftest.er1
2564 ac_status=$?
2565 grep -v '^ *+' conftest.er1 >conftest.err
2566 rm -f conftest.er1
2567 cat conftest.err >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2571 { (case "(($ac_try" in
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2574 esac
2575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576 (eval "$ac_try") 2>&5
2577 ac_status=$?
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; } &&
2580 { ac_try='test -s conftest.$ac_objext'
2581 { (case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2584 esac
2585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586 (eval "$ac_try") 2>&5
2587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2590 ac_compiler_gnu=yes
2591 else
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2594
2595 ac_compiler_gnu=no
2596 fi
2597
2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2600
2601 fi
2602 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2603 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2604 GCC=`test $ac_compiler_gnu = yes && echo yes`
2605 ac_test_CFLAGS=${CFLAGS+set}
2606 ac_save_CFLAGS=$CFLAGS
2607 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2608 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2609 if test "${ac_cv_prog_cc_g+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612 ac_save_c_werror_flag=$ac_c_werror_flag
2613 ac_c_werror_flag=yes
2614 ac_cv_prog_cc_g=no
2615 CFLAGS="-g"
2616 cat >conftest.$ac_ext <<_ACEOF
2617 /* confdefs.h. */
2618 _ACEOF
2619 cat confdefs.h >>conftest.$ac_ext
2620 cat >>conftest.$ac_ext <<_ACEOF
2621 /* end confdefs.h. */
2622
2623 int
2624 main ()
2625 {
2626
2627 ;
2628 return 0;
2629 }
2630 _ACEOF
2631 rm -f conftest.$ac_objext
2632 if { (ac_try="$ac_compile"
2633 case "(($ac_try" in
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2636 esac
2637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2638 (eval "$ac_compile") 2>conftest.er1
2639 ac_status=$?
2640 grep -v '^ *+' conftest.er1 >conftest.err
2641 rm -f conftest.er1
2642 cat conftest.err >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
2645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2646 { (case "(($ac_try" in
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2649 esac
2650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651 (eval "$ac_try") 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; } &&
2655 { ac_try='test -s conftest.$ac_objext'
2656 { (case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659 esac
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_try") 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2665 ac_cv_prog_cc_g=yes
2666 else
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2669
2670 CFLAGS=""
2671 cat >conftest.$ac_ext <<_ACEOF
2672 /* confdefs.h. */
2673 _ACEOF
2674 cat confdefs.h >>conftest.$ac_ext
2675 cat >>conftest.$ac_ext <<_ACEOF
2676 /* end confdefs.h. */
2677
2678 int
2679 main ()
2680 {
2681
2682 ;
2683 return 0;
2684 }
2685 _ACEOF
2686 rm -f conftest.$ac_objext
2687 if { (ac_try="$ac_compile"
2688 case "(($ac_try" in
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2691 esac
2692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2693 (eval "$ac_compile") 2>conftest.er1
2694 ac_status=$?
2695 grep -v '^ *+' conftest.er1 >conftest.err
2696 rm -f conftest.er1
2697 cat conftest.err >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } &&
2700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2701 { (case "(($ac_try" in
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2704 esac
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_try") 2>&5
2707 ac_status=$?
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; } &&
2710 { ac_try='test -s conftest.$ac_objext'
2711 { (case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2714 esac
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_try") 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2720 :
2721 else
2722 echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2724
2725 ac_c_werror_flag=$ac_save_c_werror_flag
2726 CFLAGS="-g"
2727 cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h. */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2733
2734 int
2735 main ()
2736 {
2737
2738 ;
2739 return 0;
2740 }
2741 _ACEOF
2742 rm -f conftest.$ac_objext
2743 if { (ac_try="$ac_compile"
2744 case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747 esac
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_compile") 2>conftest.er1
2750 ac_status=$?
2751 grep -v '^ *+' conftest.er1 >conftest.err
2752 rm -f conftest.er1
2753 cat conftest.err >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } &&
2756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2757 { (case "(($ac_try" in
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2760 esac
2761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762 (eval "$ac_try") 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; } &&
2766 { ac_try='test -s conftest.$ac_objext'
2767 { (case "(($ac_try" in
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2770 esac
2771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772 (eval "$ac_try") 2>&5
2773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; }; then
2776 ac_cv_prog_cc_g=yes
2777 else
2778 echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2780
2781
2782 fi
2783
2784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2785 fi
2786
2787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2788 fi
2789
2790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2791 ac_c_werror_flag=$ac_save_c_werror_flag
2792 fi
2793 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2794 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2795 if test "$ac_test_CFLAGS" = set; then
2796 CFLAGS=$ac_save_CFLAGS
2797 elif test $ac_cv_prog_cc_g = yes; then
2798 if test "$GCC" = yes; then
2799 CFLAGS="-g -O2"
2800 else
2801 CFLAGS="-g"
2802 fi
2803 else
2804 if test "$GCC" = yes; then
2805 CFLAGS="-O2"
2806 else
2807 CFLAGS=
2808 fi
2809 fi
2810 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2811 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2812 if test "${ac_cv_prog_cc_c89+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2814 else
2815 ac_cv_prog_cc_c89=no
2816 ac_save_CC=$CC
2817 cat >conftest.$ac_ext <<_ACEOF
2818 /* confdefs.h. */
2819 _ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h. */
2823 #include <stdarg.h>
2824 #include <stdio.h>
2825 #include <sys/types.h>
2826 #include <sys/stat.h>
2827 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2828 struct buf { int x; };
2829 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2830 static char *e (p, i)
2831 char **p;
2832 int i;
2833 {
2834 return p[i];
2835 }
2836 static char *f (char * (*g) (char **, int), char **p, ...)
2837 {
2838 char *s;
2839 va_list v;
2840 va_start (v,p);
2841 s = g (p, va_arg (v,int));
2842 va_end (v);
2843 return s;
2844 }
2845
2846 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2847 function prototypes and stuff, but not '\xHH' hex character constants.
2848 These don't provoke an error unfortunately, instead are silently treated
2849 as 'x'. The following induces an error, until -std is added to get
2850 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2851 array size at least. It's necessary to write '\x00'==0 to get something
2852 that's true only with -std. */
2853 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2854
2855 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2856 inside strings and character constants. */
2857 #define FOO(x) 'x'
2858 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2859
2860 int test (int i, double x);
2861 struct s1 {int (*f) (int a);};
2862 struct s2 {int (*f) (double a);};
2863 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2864 int argc;
2865 char **argv;
2866 int
2867 main ()
2868 {
2869 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2870 ;
2871 return 0;
2872 }
2873 _ACEOF
2874 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2875 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2876 do
2877 CC="$ac_save_CC $ac_arg"
2878 rm -f conftest.$ac_objext
2879 if { (ac_try="$ac_compile"
2880 case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2883 esac
2884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885 (eval "$ac_compile") 2>conftest.er1
2886 ac_status=$?
2887 grep -v '^ *+' conftest.er1 >conftest.err
2888 rm -f conftest.er1
2889 cat conftest.err >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } &&
2892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2893 { (case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896 esac
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_try") 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; } &&
2902 { ac_try='test -s conftest.$ac_objext'
2903 { (case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906 esac
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_try") 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 ac_cv_prog_cc_c89=$ac_arg
2913 else
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2916
2917
2918 fi
2919
2920 rm -f core conftest.err conftest.$ac_objext
2921 test "x$ac_cv_prog_cc_c89" != "xno" && break
2922 done
2923 rm -f conftest.$ac_ext
2924 CC=$ac_save_CC
2925
2926 fi
2927 # AC_CACHE_VAL
2928 case "x$ac_cv_prog_cc_c89" in
2929 x)
2930 { echo "$as_me:$LINENO: result: none needed" >&5
2931 echo "${ECHO_T}none needed" >&6; } ;;
2932 xno)
2933 { echo "$as_me:$LINENO: result: unsupported" >&5
2934 echo "${ECHO_T}unsupported" >&6; } ;;
2935 *)
2936 CC="$CC $ac_cv_prog_cc_c89"
2937 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2938 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2939 esac
2940
2941
2942 ac_ext=c
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947
2948
2949
2950 ac_ext=cpp
2951 ac_cpp='$CXXCPP $CPPFLAGS'
2952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2955 if test -z "$CXX"; then
2956 if test -n "$CCC"; then
2957 CXX=$CCC
2958 else
2959 if test -n "$ac_tool_prefix"; then
2960 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2961 do
2962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2966 if test "${ac_cv_prog_CXX+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969 if test -n "$CXX"; then
2970 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2979 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2982 fi
2983 done
2984 done
2985 IFS=$as_save_IFS
2986
2987 fi
2988 fi
2989 CXX=$ac_cv_prog_CXX
2990 if test -n "$CXX"; then
2991 { echo "$as_me:$LINENO: result: $CXX" >&5
2992 echo "${ECHO_T}$CXX" >&6; }
2993 else
2994 { echo "$as_me:$LINENO: result: no" >&5
2995 echo "${ECHO_T}no" >&6; }
2996 fi
2997
2998
2999 test -n "$CXX" && break
3000 done
3001 fi
3002 if test -z "$CXX"; then
3003 ac_ct_CXX=$CXX
3004 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3005 do
3006 # Extract the first word of "$ac_prog", so it can be a program name with args.
3007 set dummy $ac_prog; ac_word=$2
3008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3010 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013 if test -n "$ac_ct_CXX"; then
3014 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3018 do
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_ac_ct_CXX="$ac_prog"
3024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 break 2
3026 fi
3027 done
3028 done
3029 IFS=$as_save_IFS
3030
3031 fi
3032 fi
3033 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3034 if test -n "$ac_ct_CXX"; then
3035 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3036 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3037 else
3038 { echo "$as_me:$LINENO: result: no" >&5
3039 echo "${ECHO_T}no" >&6; }
3040 fi
3041
3042
3043 test -n "$ac_ct_CXX" && break
3044 done
3045
3046 if test "x$ac_ct_CXX" = x; then
3047 CXX="g++"
3048 else
3049 case $cross_compiling:$ac_tool_warned in
3050 yes:)
3051 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3052 whose name does not start with the host triplet. If you think this
3053 configuration is useful to you, please write to autoconf@gnu.org." >&5
3054 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3055 whose name does not start with the host triplet. If you think this
3056 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3057 ac_tool_warned=yes ;;
3058 esac
3059 CXX=$ac_ct_CXX
3060 fi
3061 fi
3062
3063 fi
3064 fi
3065 # Provide some information about the compiler.
3066 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3067 ac_compiler=`set X $ac_compile; echo $2`
3068 { (ac_try="$ac_compiler --version >&5"
3069 case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_compiler --version >&5") 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }
3078 { (ac_try="$ac_compiler -v >&5"
3079 case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082 esac
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_compiler -v >&5") 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }
3088 { (ac_try="$ac_compiler -V >&5"
3089 case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compiler -V >&5") 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }
3098
3099 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3100 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3101 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3103 else
3104 cat >conftest.$ac_ext <<_ACEOF
3105 /* confdefs.h. */
3106 _ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3110
3111 int
3112 main ()
3113 {
3114 #ifndef __GNUC__
3115 choke me
3116 #endif
3117
3118 ;
3119 return 0;
3120 }
3121 _ACEOF
3122 rm -f conftest.$ac_objext
3123 if { (ac_try="$ac_compile"
3124 case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compile") 2>conftest.er1
3130 ac_status=$?
3131 grep -v '^ *+' conftest.er1 >conftest.err
3132 rm -f conftest.er1
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } &&
3136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3137 { (case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; } &&
3146 { ac_try='test -s conftest.$ac_objext'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150 esac
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; }; then
3156 ac_compiler_gnu=yes
3157 else
3158 echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3160
3161 ac_compiler_gnu=no
3162 fi
3163
3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3166
3167 fi
3168 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3169 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3170 GXX=`test $ac_compiler_gnu = yes && echo yes`
3171 ac_test_CXXFLAGS=${CXXFLAGS+set}
3172 ac_save_CXXFLAGS=$CXXFLAGS
3173 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3174 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3175 if test "${ac_cv_prog_cxx_g+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 else
3178 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3179 ac_cxx_werror_flag=yes
3180 ac_cv_prog_cxx_g=no
3181 CXXFLAGS="-g"
3182 cat >conftest.$ac_ext <<_ACEOF
3183 /* confdefs.h. */
3184 _ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3188
3189 int
3190 main ()
3191 {
3192
3193 ;
3194 return 0;
3195 }
3196 _ACEOF
3197 rm -f conftest.$ac_objext
3198 if { (ac_try="$ac_compile"
3199 case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_compile") 2>conftest.er1
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } &&
3211 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3212 { (case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215 esac
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_try") 2>&5
3218 ac_status=$?
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }; } &&
3221 { ac_try='test -s conftest.$ac_objext'
3222 { (case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225 esac
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_try") 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; }; then
3231 ac_cv_prog_cxx_g=yes
3232 else
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3235
3236 CXXFLAGS=""
3237 cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h. */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3243
3244 int
3245 main ()
3246 {
3247
3248 ;
3249 return 0;
3250 }
3251 _ACEOF
3252 rm -f conftest.$ac_objext
3253 if { (ac_try="$ac_compile"
3254 case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3257 esac
3258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259 (eval "$ac_compile") 2>conftest.er1
3260 ac_status=$?
3261 grep -v '^ *+' conftest.er1 >conftest.err
3262 rm -f conftest.er1
3263 cat conftest.err >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } &&
3266 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3267 { (case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_try") 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }; } &&
3276 { ac_try='test -s conftest.$ac_objext'
3277 { (case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_try") 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; }; then
3286 :
3287 else
3288 echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3290
3291 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3292 CXXFLAGS="-g"
3293 cat >conftest.$ac_ext <<_ACEOF
3294 /* confdefs.h. */
3295 _ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3299
3300 int
3301 main ()
3302 {
3303
3304 ;
3305 return 0;
3306 }
3307 _ACEOF
3308 rm -f conftest.$ac_objext
3309 if { (ac_try="$ac_compile"
3310 case "(($ac_try" in
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3313 esac
3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315 (eval "$ac_compile") 2>conftest.er1
3316 ac_status=$?
3317 grep -v '^ *+' conftest.er1 >conftest.err
3318 rm -f conftest.er1
3319 cat conftest.err >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); } &&
3322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3323 { (case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326 esac
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_try") 2>&5
3329 ac_status=$?
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; } &&
3332 { ac_try='test -s conftest.$ac_objext'
3333 { (case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336 esac
3337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338 (eval "$ac_try") 2>&5
3339 ac_status=$?
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; }; then
3342 ac_cv_prog_cxx_g=yes
3343 else
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3346
3347
3348 fi
3349
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 fi
3352
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 fi
3355
3356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3358 fi
3359 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3360 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3361 if test "$ac_test_CXXFLAGS" = set; then
3362 CXXFLAGS=$ac_save_CXXFLAGS
3363 elif test $ac_cv_prog_cxx_g = yes; then
3364 if test "$GXX" = yes; then
3365 CXXFLAGS="-g -O2"
3366 else
3367 CXXFLAGS="-g"
3368 fi
3369 else
3370 if test "$GXX" = yes; then
3371 CXXFLAGS="-O2"
3372 else
3373 CXXFLAGS=
3374 fi
3375 fi
3376 ac_ext=c
3377 ac_cpp='$CPP $CPPFLAGS'
3378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3381
3382
3383
3384 ac_aux_dir=
3385 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3386 if test -f "$ac_dir/install-sh"; then
3387 ac_aux_dir=$ac_dir
3388 ac_install_sh="$ac_aux_dir/install-sh -c"
3389 break
3390 elif test -f "$ac_dir/install.sh"; then
3391 ac_aux_dir=$ac_dir
3392 ac_install_sh="$ac_aux_dir/install.sh -c"
3393 break
3394 elif test -f "$ac_dir/shtool"; then
3395 ac_aux_dir=$ac_dir
3396 ac_install_sh="$ac_aux_dir/shtool install -c"
3397 break
3398 fi
3399 done
3400 if test -z "$ac_aux_dir"; then
3401 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3402 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3403 { (exit 1); exit 1; }; }
3404 fi
3405
3406 # These three variables are undocumented and unsupported,
3407 # and are intended to be withdrawn in a future Autoconf release.
3408 # They can cause serious problems if a builder's source tree is in a directory
3409 # whose full name contains unusual characters.
3410 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3411 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3412 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3413
3414
3415 # Find a good install program. We prefer a C program (faster),
3416 # so one script is as good as another. But avoid the broken or
3417 # incompatible versions:
3418 # SysV /etc/install, /usr/sbin/install
3419 # SunOS /usr/etc/install
3420 # IRIX /sbin/install
3421 # AIX /bin/install
3422 # AmigaOS /C/install, which installs bootblocks on floppy discs
3423 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3424 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3425 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3426 # OS/2's system install, which has a completely different semantic
3427 # ./install, which can be erroneously created by make from ./install.sh.
3428 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3429 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3430 if test -z "$INSTALL"; then
3431 if test "${ac_cv_path_install+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 else
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 for as_dir in $PATH
3436 do
3437 IFS=$as_save_IFS
3438 test -z "$as_dir" && as_dir=.
3439 # Account for people who put trailing slashes in PATH elements.
3440 case $as_dir/ in
3441 ./ | .// | /cC/* | \
3442 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3443 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3444 /usr/ucb/* ) ;;
3445 *)
3446 # OSF1 and SCO ODT 3.0 have their own names for install.
3447 # Don't use installbsd from OSF since it installs stuff as root
3448 # by default.
3449 for ac_prog in ginstall scoinst install; do
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
3452 if test $ac_prog = install &&
3453 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3454 # AIX install. It has an incompatible calling convention.
3455 :
3456 elif test $ac_prog = install &&
3457 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3458 # program-specific install script used by HP pwplus--don't use.
3459 :
3460 else
3461 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3462 break 3
3463 fi
3464 fi
3465 done
3466 done
3467 ;;
3468 esac
3469 done
3470 IFS=$as_save_IFS
3471
3472
3473 fi
3474 if test "${ac_cv_path_install+set}" = set; then
3475 INSTALL=$ac_cv_path_install
3476 else
3477 # As a last resort, use the slow shell script. Don't cache a
3478 # value for INSTALL within a source directory, because that will
3479 # break other packages using the cache if that directory is
3480 # removed, or if the value is a relative name.
3481 INSTALL=$ac_install_sh
3482 fi
3483 fi
3484 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3485 echo "${ECHO_T}$INSTALL" >&6; }
3486
3487 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3488 # It thinks the first close brace ends the variable substitution.
3489 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3490
3491 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3492
3493 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3494
3495
3496
3497 # Check whether --enable-shared was given.
3498 if test "${enable_shared+set}" = set; then
3499 enableval=$enable_shared; p=${PACKAGE-default}
3500 case $enableval in
3501 yes) enable_shared=yes ;;
3502 no) enable_shared=no ;;
3503 *)
3504 enable_shared=no
3505 # Look at the argument we got. We use all the common list separators.
3506 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3507 for pkg in $enableval; do
3508 IFS="$lt_save_ifs"
3509 if test "X$pkg" = "X$p"; then
3510 enable_shared=yes
3511 fi
3512 done
3513 IFS="$lt_save_ifs"
3514 ;;
3515 esac
3516 else
3517 enable_shared=yes
3518 fi
3519
3520
3521 # Check whether --enable-static was given.
3522 if test "${enable_static+set}" = set; then
3523 enableval=$enable_static; p=${PACKAGE-default}
3524 case $enableval in
3525 yes) enable_static=yes ;;
3526 no) enable_static=no ;;
3527 *)
3528 enable_static=no
3529 # Look at the argument we got. We use all the common list separators.
3530 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3531 for pkg in $enableval; do
3532 IFS="$lt_save_ifs"
3533 if test "X$pkg" = "X$p"; then
3534 enable_static=yes
3535 fi
3536 done
3537 IFS="$lt_save_ifs"
3538 ;;
3539 esac
3540 else
3541 enable_static=yes
3542 fi
3543
3544
3545 # Check whether --enable-fast-install was given.
3546 if test "${enable_fast_install+set}" = set; then
3547 enableval=$enable_fast_install; p=${PACKAGE-default}
3548 case $enableval in
3549 yes) enable_fast_install=yes ;;
3550 no) enable_fast_install=no ;;
3551 *)
3552 enable_fast_install=no
3553 # Look at the argument we got. We use all the common list separators.
3554 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3555 for pkg in $enableval; do
3556 IFS="$lt_save_ifs"
3557 if test "X$pkg" = "X$p"; then
3558 enable_fast_install=yes
3559 fi
3560 done
3561 IFS="$lt_save_ifs"
3562 ;;
3563 esac
3564 else
3565 enable_fast_install=yes
3566 fi
3567
3568
3569 # Make sure we can run config.sub.
3570 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3571 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3572 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3573 { (exit 1); exit 1; }; }
3574
3575 { echo "$as_me:$LINENO: checking build system type" >&5
3576 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3577 if test "${ac_cv_build+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580 ac_build_alias=$build_alias
3581 test "x$ac_build_alias" = x &&
3582 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3583 test "x$ac_build_alias" = x &&
3584 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3585 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3586 { (exit 1); exit 1; }; }
3587 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3588 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3589 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3590 { (exit 1); exit 1; }; }
3591
3592 fi
3593 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3594 echo "${ECHO_T}$ac_cv_build" >&6; }
3595 case $ac_cv_build in
3596 *-*-*) ;;
3597 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3598 echo "$as_me: error: invalid value of canonical build" >&2;}
3599 { (exit 1); exit 1; }; };;
3600 esac
3601 build=$ac_cv_build
3602 ac_save_IFS=$IFS; IFS='-'
3603 set x $ac_cv_build
3604 shift
3605 build_cpu=$1
3606 build_vendor=$2
3607 shift; shift
3608 # Remember, the first character of IFS is used to create $*,
3609 # except with old shells:
3610 build_os=$*
3611 IFS=$ac_save_IFS
3612 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3613
3614
3615 { echo "$as_me:$LINENO: checking host system type" >&5
3616 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3617 if test "${ac_cv_host+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620 if test "x$host_alias" = x; then
3621 ac_cv_host=$ac_cv_build
3622 else
3623 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3624 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3625 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3626 { (exit 1); exit 1; }; }
3627 fi
3628
3629 fi
3630 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3631 echo "${ECHO_T}$ac_cv_host" >&6; }
3632 case $ac_cv_host in
3633 *-*-*) ;;
3634 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3635 echo "$as_me: error: invalid value of canonical host" >&2;}
3636 { (exit 1); exit 1; }; };;
3637 esac
3638 host=$ac_cv_host
3639 ac_save_IFS=$IFS; IFS='-'
3640 set x $ac_cv_host
3641 shift
3642 host_cpu=$1
3643 host_vendor=$2
3644 shift; shift
3645 # Remember, the first character of IFS is used to create $*,
3646 # except with old shells:
3647 host_os=$*
3648 IFS=$ac_save_IFS
3649 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3650
3651
3652 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3653 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3654 if test "${lt_cv_path_SED+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657 # Loop through the user's path and test for sed and gsed.
3658 # Then use that list of sed's as ones to test for truncation.
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for lt_ac_prog in sed gsed; do
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3667 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3668 fi
3669 done
3670 done
3671 done
3672 lt_ac_max=0
3673 lt_ac_count=0
3674 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3675 # along with /bin/sed that truncates output.
3676 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3677 test ! -f $lt_ac_sed && continue
3678 cat /dev/null > conftest.in
3679 lt_ac_count=0
3680 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3681 # Check for GNU sed and select it if it is found.
3682 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3683 lt_cv_path_SED=$lt_ac_sed
3684 break
3685 fi
3686 while true; do
3687 cat conftest.in conftest.in >conftest.tmp
3688 mv conftest.tmp conftest.in
3689 cp conftest.in conftest.nl
3690 echo >>conftest.nl
3691 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3692 cmp -s conftest.out conftest.nl || break
3693 # 10000 chars as input seems more than enough
3694 test $lt_ac_count -gt 10 && break
3695 lt_ac_count=`expr $lt_ac_count + 1`
3696 if test $lt_ac_count -gt $lt_ac_max; then
3697 lt_ac_max=$lt_ac_count
3698 lt_cv_path_SED=$lt_ac_sed
3699 fi
3700 done
3701 done
3702
3703 fi
3704
3705 SED=$lt_cv_path_SED
3706 { echo "$as_me:$LINENO: result: $SED" >&5
3707 echo "${ECHO_T}$SED" >&6; }
3708
3709 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3710 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3711 if test "${ac_cv_path_GREP+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714 # Extract the first word of "grep ggrep" to use in msg output
3715 if test -z "$GREP"; then
3716 set dummy grep ggrep; ac_prog_name=$2
3717 if test "${ac_cv_path_GREP+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720 ac_path_GREP_found=false
3721 # Loop through the user's path and test for each of PROGNAME-LIST
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3724 do
3725 IFS=$as_save_IFS
3726 test -z "$as_dir" && as_dir=.
3727 for ac_prog in grep ggrep; do
3728 for ac_exec_ext in '' $ac_executable_extensions; do
3729 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3730 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3731 # Check for GNU ac_path_GREP and select it if it is found.
3732 # Check for GNU $ac_path_GREP
3733 case `"$ac_path_GREP" --version 2>&1` in
3734 *GNU*)
3735 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3736 *)
3737 ac_count=0
3738 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3739 while :
3740 do
3741 cat "conftest.in" "conftest.in" >"conftest.tmp"
3742 mv "conftest.tmp" "conftest.in"
3743 cp "conftest.in" "conftest.nl"
3744 echo 'GREP' >> "conftest.nl"
3745 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3746 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3747 ac_count=`expr $ac_count + 1`
3748 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3749 # Best one so far, save it but keep looking for a better one
3750 ac_cv_path_GREP="$ac_path_GREP"
3751 ac_path_GREP_max=$ac_count
3752 fi
3753 # 10*(2^10) chars as input seems more than enough
3754 test $ac_count -gt 10 && break
3755 done
3756 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3757 esac
3758
3759
3760 $ac_path_GREP_found && break 3
3761 done
3762 done
3763
3764 done
3765 IFS=$as_save_IFS
3766
3767
3768 fi
3769
3770 GREP="$ac_cv_path_GREP"
3771 if test -z "$GREP"; then
3772 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3773 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3774 { (exit 1); exit 1; }; }
3775 fi
3776
3777 else
3778 ac_cv_path_GREP=$GREP
3779 fi
3780
3781
3782 fi
3783 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3784 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3785 GREP="$ac_cv_path_GREP"
3786
3787
3788 { echo "$as_me:$LINENO: checking for egrep" >&5
3789 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3790 if test "${ac_cv_path_EGREP+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3794 then ac_cv_path_EGREP="$GREP -E"
3795 else
3796 # Extract the first word of "egrep" to use in msg output
3797 if test -z "$EGREP"; then
3798 set dummy egrep; ac_prog_name=$2
3799 if test "${ac_cv_path_EGREP+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802 ac_path_EGREP_found=false
3803 # Loop through the user's path and test for each of PROGNAME-LIST
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3806 do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_prog in egrep; do
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3812 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3813 # Check for GNU ac_path_EGREP and select it if it is found.
3814 # Check for GNU $ac_path_EGREP
3815 case `"$ac_path_EGREP" --version 2>&1` in
3816 *GNU*)
3817 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3818 *)
3819 ac_count=0
3820 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3821 while :
3822 do
3823 cat "conftest.in" "conftest.in" >"conftest.tmp"
3824 mv "conftest.tmp" "conftest.in"
3825 cp "conftest.in" "conftest.nl"
3826 echo 'EGREP' >> "conftest.nl"
3827 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3828 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3829 ac_count=`expr $ac_count + 1`
3830 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3831 # Best one so far, save it but keep looking for a better one
3832 ac_cv_path_EGREP="$ac_path_EGREP"
3833 ac_path_EGREP_max=$ac_count
3834 fi
3835 # 10*(2^10) chars as input seems more than enough
3836 test $ac_count -gt 10 && break
3837 done
3838 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3839 esac
3840
3841
3842 $ac_path_EGREP_found && break 3
3843 done
3844 done
3845
3846 done
3847 IFS=$as_save_IFS
3848
3849
3850 fi
3851
3852 EGREP="$ac_cv_path_EGREP"
3853 if test -z "$EGREP"; then
3854 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3855 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3856 { (exit 1); exit 1; }; }
3857 fi
3858
3859 else
3860 ac_cv_path_EGREP=$EGREP
3861 fi
3862
3863
3864 fi
3865 fi
3866 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3867 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3868 EGREP="$ac_cv_path_EGREP"
3869
3870
3871
3872 # Check whether --with-gnu-ld was given.
3873 if test "${with_gnu_ld+set}" = set; then
3874 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3875 else
3876 with_gnu_ld=no
3877 fi
3878
3879 ac_prog=ld
3880 if test "$GCC" = yes; then
3881 # Check if gcc -print-prog-name=ld gives a path.
3882 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3883 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3884 case $host in
3885 *-*-mingw*)
3886 # gcc leaves a trailing carriage return which upsets mingw
3887 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3888 *)
3889 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3890 esac
3891 case $ac_prog in
3892 # Accept absolute paths.
3893 [\\/]* | ?:[\\/]*)
3894 re_direlt='/[^/][^/]*/\.\./'
3895 # Canonicalize the pathname of ld
3896 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3897 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3898 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3899 done
3900 test -z "$LD" && LD="$ac_prog"
3901 ;;
3902 "")
3903 # If it fails, then pretend we aren't using GCC.
3904 ac_prog=ld
3905 ;;
3906 *)
3907 # If it is relative, then search for the first ld in PATH.
3908 with_gnu_ld=unknown
3909 ;;
3910 esac
3911 elif test "$with_gnu_ld" = yes; then
3912 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3913 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3914 else
3915 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3916 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3917 fi
3918 if test "${lt_cv_path_LD+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 else
3921 if test -z "$LD"; then
3922 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3923 for ac_dir in $PATH; do
3924 IFS="$lt_save_ifs"
3925 test -z "$ac_dir" && ac_dir=.
3926 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3927 lt_cv_path_LD="$ac_dir/$ac_prog"
3928 # Check to see if the program is GNU ld. I'd rather use --version,
3929 # but apparently some variants of GNU ld only accept -v.
3930 # Break only if it was the GNU/non-GNU ld that we prefer.
3931 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3932 *GNU* | *'with BFD'*)
3933 test "$with_gnu_ld" != no && break
3934 ;;
3935 *)
3936 test "$with_gnu_ld" != yes && break
3937 ;;
3938 esac
3939 fi
3940 done
3941 IFS="$lt_save_ifs"
3942 else
3943 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3944 fi
3945 fi
3946
3947 LD="$lt_cv_path_LD"
3948 if test -n "$LD"; then
3949 { echo "$as_me:$LINENO: result: $LD" >&5
3950 echo "${ECHO_T}$LD" >&6; }
3951 else
3952 { echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6; }
3954 fi
3955 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3956 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3957 { (exit 1); exit 1; }; }
3958 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3959 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3960 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3964 case `$LD -v 2>&1 </dev/null` in
3965 *GNU* | *'with BFD'*)
3966 lt_cv_prog_gnu_ld=yes
3967 ;;
3968 *)
3969 lt_cv_prog_gnu_ld=no
3970 ;;
3971 esac
3972 fi
3973 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3974 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3975 with_gnu_ld=$lt_cv_prog_gnu_ld
3976
3977
3978 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3979 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3980 if test "${lt_cv_ld_reload_flag+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983 lt_cv_ld_reload_flag='-r'
3984 fi
3985 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3986 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3987 reload_flag=$lt_cv_ld_reload_flag
3988 case $reload_flag in
3989 "" | " "*) ;;
3990 *) reload_flag=" $reload_flag" ;;
3991 esac
3992 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3993 case $host_os in
3994 darwin*)
3995 if test "$GCC" = yes; then
3996 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3997 else
3998 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3999 fi
4000 ;;
4001 esac
4002
4003 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4004 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4005 if test "${lt_cv_path_NM+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008 if test -n "$NM"; then
4009 # Let the user override the test.
4010 lt_cv_path_NM="$NM"
4011 else
4012 lt_nm_to_check="${ac_tool_prefix}nm"
4013 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4014 lt_nm_to_check="$lt_nm_to_check nm"
4015 fi
4016 for lt_tmp_nm in $lt_nm_to_check; do
4017 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4018 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4019 IFS="$lt_save_ifs"
4020 test -z "$ac_dir" && ac_dir=.
4021 tmp_nm="$ac_dir/$lt_tmp_nm"
4022 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4023 # Check to see if the nm accepts a BSD-compat flag.
4024 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4025 # nm: unknown option "B" ignored
4026 # Tru64's nm complains that /dev/null is an invalid object file
4027 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4028 */dev/null* | *'Invalid file or object type'*)
4029 lt_cv_path_NM="$tmp_nm -B"
4030 break
4031 ;;
4032 *)
4033 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4034 */dev/null*)
4035 lt_cv_path_NM="$tmp_nm -p"
4036 break
4037 ;;
4038 *)
4039 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4040 continue # so that we can try to find one that supports BSD flags
4041 ;;
4042 esac
4043 ;;
4044 esac
4045 fi
4046 done
4047 IFS="$lt_save_ifs"
4048 done
4049 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4050 fi
4051 fi
4052 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4053 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4054 NM="$lt_cv_path_NM"
4055
4056 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4057 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4058 LN_S=$as_ln_s
4059 if test "$LN_S" = "ln -s"; then
4060 { echo "$as_me:$LINENO: result: yes" >&5
4061 echo "${ECHO_T}yes" >&6; }
4062 else
4063 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4064 echo "${ECHO_T}no, using $LN_S" >&6; }
4065 fi
4066
4067 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4068 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4069 if test "${lt_cv_deplibs_check_method+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072 lt_cv_file_magic_cmd='$MAGIC_CMD'
4073 lt_cv_file_magic_test_file=
4074 lt_cv_deplibs_check_method='unknown'
4075 # Need to set the preceding variable on all platforms that support
4076 # interlibrary dependencies.
4077 # 'none' -- dependencies not supported.
4078 # `unknown' -- same as none, but documents that we really don't know.
4079 # 'pass_all' -- all dependencies passed with no checks.
4080 # 'test_compile' -- check by making test program.
4081 # 'file_magic [[regex]]' -- check by looking for files in library path
4082 # which responds to the $file_magic_cmd with a given extended regex.
4083 # If you have `file' or equivalent on your system and you're not sure
4084 # whether `pass_all' will *always* work, you probably want this one.
4085
4086 case $host_os in
4087 aix4* | aix5*)
4088 lt_cv_deplibs_check_method=pass_all
4089 ;;
4090
4091 beos*)
4092 lt_cv_deplibs_check_method=pass_all
4093 ;;
4094
4095 bsdi[45]*)
4096 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4097 lt_cv_file_magic_cmd='/usr/bin/file -L'
4098 lt_cv_file_magic_test_file=/shlib/libc.so
4099 ;;
4100
4101 cygwin*)
4102 # func_win32_libid is a shell function defined in ltmain.sh
4103 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4104 lt_cv_file_magic_cmd='func_win32_libid'
4105 ;;
4106
4107 mingw* | pw32*)
4108 # Base MSYS/MinGW do not provide the 'file' command needed by
4109 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4110 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4111 lt_cv_file_magic_cmd='$OBJDUMP -f'
4112 ;;
4113
4114 darwin* | rhapsody*)
4115 lt_cv_deplibs_check_method=pass_all
4116 ;;
4117
4118 freebsd* | kfreebsd*-gnu | dragonfly*)
4119 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4120 case $host_cpu in
4121 i*86 )
4122 # Not sure whether the presence of OpenBSD here was a mistake.
4123 # Let's accept both of them until this is cleared up.
4124 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4125 lt_cv_file_magic_cmd=/usr/bin/file
4126 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4127 ;;
4128 esac
4129 else
4130 lt_cv_deplibs_check_method=pass_all
4131 fi
4132 ;;
4133
4134 gnu*)
4135 lt_cv_deplibs_check_method=pass_all
4136 ;;
4137
4138 hpux10.20* | hpux11*)
4139 lt_cv_file_magic_cmd=/usr/bin/file
4140 case $host_cpu in
4141 ia64*)
4142 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4143 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4144 ;;
4145 hppa*64*)
4146 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]'
4147 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4148 ;;
4149 *)
4150 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4151 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4152 ;;
4153 esac
4154 ;;
4155
4156 interix3*)
4157 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4158 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4159 ;;
4160
4161 irix5* | irix6* | nonstopux*)
4162 case $LD in
4163 *-32|*"-32 ") libmagic=32-bit;;
4164 *-n32|*"-n32 ") libmagic=N32;;
4165 *-64|*"-64 ") libmagic=64-bit;;
4166 *) libmagic=never-match;;
4167 esac
4168 lt_cv_deplibs_check_method=pass_all
4169 ;;
4170
4171 # This must be Linux ELF.
4172 linux*)
4173 lt_cv_deplibs_check_method=pass_all
4174 ;;
4175
4176 netbsd*)
4177 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4178 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4179 else
4180 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4181 fi
4182 ;;
4183
4184 newos6*)
4185 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4186 lt_cv_file_magic_cmd=/usr/bin/file
4187 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4188 ;;
4189
4190 nto-qnx*)
4191 lt_cv_deplibs_check_method=unknown
4192 ;;
4193
4194 openbsd*)
4195 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4197 else
4198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4199 fi
4200 ;;
4201
4202 osf3* | osf4* | osf5*)
4203 lt_cv_deplibs_check_method=pass_all
4204 ;;
4205
4206 solaris*)
4207 lt_cv_deplibs_check_method=pass_all
4208 ;;
4209
4210 sysv4 | sysv4.3*)
4211 case $host_vendor in
4212 motorola)
4213 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]'
4214 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4215 ;;
4216 ncr)
4217 lt_cv_deplibs_check_method=pass_all
4218 ;;
4219 sequent)
4220 lt_cv_file_magic_cmd='/bin/file'
4221 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4222 ;;
4223 sni)
4224 lt_cv_file_magic_cmd='/bin/file'
4225 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4226 lt_cv_file_magic_test_file=/lib/libc.so
4227 ;;
4228 siemens)
4229 lt_cv_deplibs_check_method=pass_all
4230 ;;
4231 pc)
4232 lt_cv_deplibs_check_method=pass_all
4233 ;;
4234 esac
4235 ;;
4236
4237 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4238 lt_cv_deplibs_check_method=pass_all
4239 ;;
4240 esac
4241
4242 fi
4243 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4244 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4245 file_magic_cmd=$lt_cv_file_magic_cmd
4246 deplibs_check_method=$lt_cv_deplibs_check_method
4247 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4248
4249
4250
4251
4252 # If no C compiler was specified, use CC.
4253 LTCC=${LTCC-"$CC"}
4254
4255 # If no C compiler flags were specified, use CFLAGS.
4256 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4257
4258 # Allow CC to be a program name with arguments.
4259 compiler=$CC
4260
4261
4262 # Check whether --enable-libtool-lock was given.
4263 if test "${enable_libtool_lock+set}" = set; then
4264 enableval=$enable_libtool_lock;
4265 fi
4266
4267 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4268
4269 # Some flags need to be propagated to the compiler or linker for good
4270 # libtool support.
4271 case $host in
4272 ia64-*-hpux*)
4273 # Find out which ABI we are using.
4274 echo 'int i;' > conftest.$ac_ext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4276 (eval $ac_compile) 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; then
4280 case `/usr/bin/file conftest.$ac_objext` in
4281 *ELF-32*)
4282 HPUX_IA64_MODE="32"
4283 ;;
4284 *ELF-64*)
4285 HPUX_IA64_MODE="64"
4286 ;;
4287 esac
4288 fi
4289 rm -rf conftest*
4290 ;;
4291 *-*-irix6*)
4292 # Find out which ABI we are using.
4293 echo '#line 4293 "configure"' > conftest.$ac_ext
4294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4295 (eval $ac_compile) 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; then
4299 if test "$lt_cv_prog_gnu_ld" = yes; then
4300 case `/usr/bin/file conftest.$ac_objext` in
4301 *32-bit*)
4302 LD="${LD-ld} -melf32bsmip"
4303 ;;
4304 *N32*)
4305 LD="${LD-ld} -melf32bmipn32"
4306 ;;
4307 *64-bit*)
4308 LD="${LD-ld} -melf64bmip"
4309 ;;
4310 esac
4311 else
4312 case `/usr/bin/file conftest.$ac_objext` in
4313 *32-bit*)
4314 LD="${LD-ld} -32"
4315 ;;
4316 *N32*)
4317 LD="${LD-ld} -n32"
4318 ;;
4319 *64-bit*)
4320 LD="${LD-ld} -64"
4321 ;;
4322 esac
4323 fi
4324 fi
4325 rm -rf conftest*
4326 ;;
4327
4328 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4329 # Find out which ABI we are using.
4330 echo 'int i;' > conftest.$ac_ext
4331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4332 (eval $ac_compile) 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; then
4336 case `/usr/bin/file conftest.o` in
4337 *32-bit*)
4338 case $host in
4339 x86_64-*linux*)
4340 LD="${LD-ld} -m elf_i386"
4341 ;;
4342 ppc64-*linux*|powerpc64-*linux*)
4343 LD="${LD-ld} -m elf32ppclinux"
4344 ;;
4345 s390x-*linux*)
4346 LD="${LD-ld} -m elf_s390"
4347 ;;
4348 sparc64-*linux*)
4349 LD="${LD-ld} -m elf32_sparc"
4350 ;;
4351 esac
4352 ;;
4353 *64-bit*)
4354 case $host in
4355 x86_64-*linux*)
4356 LD="${LD-ld} -m elf_x86_64"
4357 ;;
4358 ppc*-*linux*|powerpc*-*linux*)
4359 LD="${LD-ld} -m elf64ppc"
4360 ;;
4361 s390*-*linux*)
4362 LD="${LD-ld} -m elf64_s390"
4363 ;;
4364 sparc*-*linux*)
4365 LD="${LD-ld} -m elf64_sparc"
4366 ;;
4367 esac
4368 ;;
4369 esac
4370 fi
4371 rm -rf conftest*
4372 ;;
4373
4374 *-*-sco3.2v5*)
4375 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4376 SAVE_CFLAGS="$CFLAGS"
4377 CFLAGS="$CFLAGS -belf"
4378 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4379 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4380 if test "${lt_cv_cc_needs_belf+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 else
4383 ac_ext=c
4384 ac_cpp='$CPP $CPPFLAGS'
4385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4388
4389 cat >conftest.$ac_ext <<_ACEOF
4390 /* confdefs.h. */
4391 _ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h. */
4395
4396 int
4397 main ()
4398 {
4399
4400 ;
4401 return 0;
4402 }
4403 _ACEOF
4404 rm -f conftest.$ac_objext conftest$ac_exeext
4405 if { (ac_try="$ac_link"
4406 case "(($ac_try" in
4407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408 *) ac_try_echo=$ac_try;;
4409 esac
4410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4411 (eval "$ac_link") 2>conftest.er1
4412 ac_status=$?
4413 grep -v '^ *+' conftest.er1 >conftest.err
4414 rm -f conftest.er1
4415 cat conftest.err >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } &&
4418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4419 { (case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422 esac
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_try") 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; } &&
4428 { ac_try='test -s conftest$ac_exeext'
4429 { (case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4432 esac
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434 (eval "$ac_try") 2>&5
4435 ac_status=$?
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; }; then
4438 lt_cv_cc_needs_belf=yes
4439 else
4440 echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4442
4443 lt_cv_cc_needs_belf=no
4444 fi
4445
4446 rm -f core conftest.err conftest.$ac_objext \
4447 conftest$ac_exeext conftest.$ac_ext
4448 ac_ext=c
4449 ac_cpp='$CPP $CPPFLAGS'
4450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453
4454 fi
4455 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4456 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4457 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4458 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4459 CFLAGS="$SAVE_CFLAGS"
4460 fi
4461 ;;
4462 sparc*-*solaris*)
4463 # Find out which ABI we are using.
4464 echo 'int i;' > conftest.$ac_ext
4465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4466 (eval $ac_compile) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; then
4470 case `/usr/bin/file conftest.o` in
4471 *64-bit*)
4472 case $lt_cv_prog_gnu_ld in
4473 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4474 *) LD="${LD-ld} -64" ;;
4475 esac
4476 ;;
4477 esac
4478 fi
4479 rm -rf conftest*
4480 ;;
4481
4482 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4483 if test -n "$ac_tool_prefix"; then
4484 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4485 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4488 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491 if test -n "$DLLTOOL"; then
4492 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4493 else
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH
4496 do
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4501 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4504 fi
4505 done
4506 done
4507 IFS=$as_save_IFS
4508
4509 fi
4510 fi
4511 DLLTOOL=$ac_cv_prog_DLLTOOL
4512 if test -n "$DLLTOOL"; then
4513 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4514 echo "${ECHO_T}$DLLTOOL" >&6; }
4515 else
4516 { echo "$as_me:$LINENO: result: no" >&5
4517 echo "${ECHO_T}no" >&6; }
4518 fi
4519
4520
4521 fi
4522 if test -z "$ac_cv_prog_DLLTOOL"; then
4523 ac_ct_DLLTOOL=$DLLTOOL
4524 # Extract the first word of "dlltool", so it can be a program name with args.
4525 set dummy dlltool; ac_word=$2
4526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4528 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531 if test -n "$ac_ct_DLLTOOL"; then
4532 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4533 else
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in $PATH
4536 do
4537 IFS=$as_save_IFS
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4541 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 break 2
4544 fi
4545 done
4546 done
4547 IFS=$as_save_IFS
4548
4549 fi
4550 fi
4551 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4552 if test -n "$ac_ct_DLLTOOL"; then
4553 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4554 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4555 else
4556 { echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6; }
4558 fi
4559
4560 if test "x$ac_ct_DLLTOOL" = x; then
4561 DLLTOOL="false"
4562 else
4563 case $cross_compiling:$ac_tool_warned in
4564 yes:)
4565 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4566 whose name does not start with the host triplet. If you think this
4567 configuration is useful to you, please write to autoconf@gnu.org." >&5
4568 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4569 whose name does not start with the host triplet. If you think this
4570 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4571 ac_tool_warned=yes ;;
4572 esac
4573 DLLTOOL=$ac_ct_DLLTOOL
4574 fi
4575 else
4576 DLLTOOL="$ac_cv_prog_DLLTOOL"
4577 fi
4578
4579 if test -n "$ac_tool_prefix"; then
4580 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4581 set dummy ${ac_tool_prefix}as; ac_word=$2
4582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4584 if test "${ac_cv_prog_AS+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587 if test -n "$AS"; then
4588 ac_cv_prog_AS="$AS" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4592 do
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4597 ac_cv_prog_AS="${ac_tool_prefix}as"
4598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4600 fi
4601 done
4602 done
4603 IFS=$as_save_IFS
4604
4605 fi
4606 fi
4607 AS=$ac_cv_prog_AS
4608 if test -n "$AS"; then
4609 { echo "$as_me:$LINENO: result: $AS" >&5
4610 echo "${ECHO_T}$AS" >&6; }
4611 else
4612 { echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6; }
4614 fi
4615
4616
4617 fi
4618 if test -z "$ac_cv_prog_AS"; then
4619 ac_ct_AS=$AS
4620 # Extract the first word of "as", so it can be a program name with args.
4621 set dummy as; ac_word=$2
4622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4624 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627 if test -n "$ac_ct_AS"; then
4628 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4629 else
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4632 do
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_prog_ac_ct_AS="as"
4638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 break 2
4640 fi
4641 done
4642 done
4643 IFS=$as_save_IFS
4644
4645 fi
4646 fi
4647 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4648 if test -n "$ac_ct_AS"; then
4649 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4650 echo "${ECHO_T}$ac_ct_AS" >&6; }
4651 else
4652 { echo "$as_me:$LINENO: result: no" >&5
4653 echo "${ECHO_T}no" >&6; }
4654 fi
4655
4656 if test "x$ac_ct_AS" = x; then
4657 AS="false"
4658 else
4659 case $cross_compiling:$ac_tool_warned in
4660 yes:)
4661 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4662 whose name does not start with the host triplet. If you think this
4663 configuration is useful to you, please write to autoconf@gnu.org." >&5
4664 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4665 whose name does not start with the host triplet. If you think this
4666 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4667 ac_tool_warned=yes ;;
4668 esac
4669 AS=$ac_ct_AS
4670 fi
4671 else
4672 AS="$ac_cv_prog_AS"
4673 fi
4674
4675 if test -n "$ac_tool_prefix"; then
4676 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4677 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4680 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683 if test -n "$OBJDUMP"; then
4684 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4696 fi
4697 done
4698 done
4699 IFS=$as_save_IFS
4700
4701 fi
4702 fi
4703 OBJDUMP=$ac_cv_prog_OBJDUMP
4704 if test -n "$OBJDUMP"; then
4705 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4706 echo "${ECHO_T}$OBJDUMP" >&6; }
4707 else
4708 { echo "$as_me:$LINENO: result: no" >&5
4709 echo "${ECHO_T}no" >&6; }
4710 fi
4711
4712
4713 fi
4714 if test -z "$ac_cv_prog_OBJDUMP"; then
4715 ac_ct_OBJDUMP=$OBJDUMP
4716 # Extract the first word of "objdump", so it can be a program name with args.
4717 set dummy objdump; ac_word=$2
4718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4720 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723 if test -n "$ac_ct_OBJDUMP"; then
4724 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4733 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4736 fi
4737 done
4738 done
4739 IFS=$as_save_IFS
4740
4741 fi
4742 fi
4743 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4744 if test -n "$ac_ct_OBJDUMP"; then
4745 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4746 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4747 else
4748 { echo "$as_me:$LINENO: result: no" >&5
4749 echo "${ECHO_T}no" >&6; }
4750 fi
4751
4752 if test "x$ac_ct_OBJDUMP" = x; then
4753 OBJDUMP="false"
4754 else
4755 case $cross_compiling:$ac_tool_warned in
4756 yes:)
4757 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4758 whose name does not start with the host triplet. If you think this
4759 configuration is useful to you, please write to autoconf@gnu.org." >&5
4760 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4761 whose name does not start with the host triplet. If you think this
4762 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4763 ac_tool_warned=yes ;;
4764 esac
4765 OBJDUMP=$ac_ct_OBJDUMP
4766 fi
4767 else
4768 OBJDUMP="$ac_cv_prog_OBJDUMP"
4769 fi
4770
4771 ;;
4772
4773 esac
4774
4775 need_locks="$enable_libtool_lock"
4776
4777
4778 ac_ext=c
4779 ac_cpp='$CPP $CPPFLAGS'
4780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4783 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4784 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4785 # On Suns, sometimes $CPP names a directory.
4786 if test -n "$CPP" && test -d "$CPP"; then
4787 CPP=
4788 fi
4789 if test -z "$CPP"; then
4790 if test "${ac_cv_prog_CPP+set}" = set; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 else
4793 # Double quotes because CPP needs to be expanded
4794 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4795 do
4796 ac_preproc_ok=false
4797 for ac_c_preproc_warn_flag in '' yes
4798 do
4799 # Use a header file that comes with gcc, so configuring glibc
4800 # with a fresh cross-compiler works.
4801 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4802 # <limits.h> exists even on freestanding compilers.
4803 # On the NeXT, cc -E runs the code through the compiler's parser,
4804 # not just through cpp. "Syntax error" is here to catch this case.
4805 cat >conftest.$ac_ext <<_ACEOF
4806 /* confdefs.h. */
4807 _ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4811 #ifdef __STDC__
4812 # include <limits.h>
4813 #else
4814 # include <assert.h>
4815 #endif
4816 Syntax error
4817 _ACEOF
4818 if { (ac_try="$ac_cpp conftest.$ac_ext"
4819 case "(($ac_try" in
4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
4822 esac
4823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4825 ac_status=$?
4826 grep -v '^ *+' conftest.er1 >conftest.err
4827 rm -f conftest.er1
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } >/dev/null; then
4831 if test -s conftest.err; then
4832 ac_cpp_err=$ac_c_preproc_warn_flag
4833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4834 else
4835 ac_cpp_err=
4836 fi
4837 else
4838 ac_cpp_err=yes
4839 fi
4840 if test -z "$ac_cpp_err"; then
4841 :
4842 else
4843 echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4845
4846 # Broken: fails on valid input.
4847 continue
4848 fi
4849
4850 rm -f conftest.err conftest.$ac_ext
4851
4852 # OK, works on sane cases. Now check whether nonexistent headers
4853 # can be detected and how.
4854 cat >conftest.$ac_ext <<_ACEOF
4855 /* confdefs.h. */
4856 _ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h. */
4860 #include <ac_nonexistent.h>
4861 _ACEOF
4862 if { (ac_try="$ac_cpp conftest.$ac_ext"
4863 case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4866 esac
4867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } >/dev/null; then
4875 if test -s conftest.err; then
4876 ac_cpp_err=$ac_c_preproc_warn_flag
4877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4878 else
4879 ac_cpp_err=
4880 fi
4881 else
4882 ac_cpp_err=yes
4883 fi
4884 if test -z "$ac_cpp_err"; then
4885 # Broken: success on invalid input.
4886 continue
4887 else
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4890
4891 # Passes both tests.
4892 ac_preproc_ok=:
4893 break
4894 fi
4895
4896 rm -f conftest.err conftest.$ac_ext
4897
4898 done
4899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4900 rm -f conftest.err conftest.$ac_ext
4901 if $ac_preproc_ok; then
4902 break
4903 fi
4904
4905 done
4906 ac_cv_prog_CPP=$CPP
4907
4908 fi
4909 CPP=$ac_cv_prog_CPP
4910 else
4911 ac_cv_prog_CPP=$CPP
4912 fi
4913 { echo "$as_me:$LINENO: result: $CPP" >&5
4914 echo "${ECHO_T}$CPP" >&6; }
4915 ac_preproc_ok=false
4916 for ac_c_preproc_warn_flag in '' yes
4917 do
4918 # Use a header file that comes with gcc, so configuring glibc
4919 # with a fresh cross-compiler works.
4920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4921 # <limits.h> exists even on freestanding compilers.
4922 # On the NeXT, cc -E runs the code through the compiler's parser,
4923 # not just through cpp. "Syntax error" is here to catch this case.
4924 cat >conftest.$ac_ext <<_ACEOF
4925 /* confdefs.h. */
4926 _ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h. */
4930 #ifdef __STDC__
4931 # include <limits.h>
4932 #else
4933 # include <assert.h>
4934 #endif
4935 Syntax error
4936 _ACEOF
4937 if { (ac_try="$ac_cpp conftest.$ac_ext"
4938 case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941 esac
4942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4944 ac_status=$?
4945 grep -v '^ *+' conftest.er1 >conftest.err
4946 rm -f conftest.er1
4947 cat conftest.err >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } >/dev/null; then
4950 if test -s conftest.err; then
4951 ac_cpp_err=$ac_c_preproc_warn_flag
4952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4953 else
4954 ac_cpp_err=
4955 fi
4956 else
4957 ac_cpp_err=yes
4958 fi
4959 if test -z "$ac_cpp_err"; then
4960 :
4961 else
4962 echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4964
4965 # Broken: fails on valid input.
4966 continue
4967 fi
4968
4969 rm -f conftest.err conftest.$ac_ext
4970
4971 # OK, works on sane cases. Now check whether nonexistent headers
4972 # can be detected and how.
4973 cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h. */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4979 #include <ac_nonexistent.h>
4980 _ACEOF
4981 if { (ac_try="$ac_cpp conftest.$ac_ext"
4982 case "(($ac_try" in
4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4985 esac
4986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4988 ac_status=$?
4989 grep -v '^ *+' conftest.er1 >conftest.err
4990 rm -f conftest.er1
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } >/dev/null; then
4994 if test -s conftest.err; then
4995 ac_cpp_err=$ac_c_preproc_warn_flag
4996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4997 else
4998 ac_cpp_err=
4999 fi
5000 else
5001 ac_cpp_err=yes
5002 fi
5003 if test -z "$ac_cpp_err"; then
5004 # Broken: success on invalid input.
5005 continue
5006 else
5007 echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5009
5010 # Passes both tests.
5011 ac_preproc_ok=:
5012 break
5013 fi
5014
5015 rm -f conftest.err conftest.$ac_ext
5016
5017 done
5018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5019 rm -f conftest.err conftest.$ac_ext
5020 if $ac_preproc_ok; then
5021 :
5022 else
5023 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5024 See \`config.log' for more details." >&5
5025 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5026 See \`config.log' for more details." >&2;}
5027 { (exit 1); exit 1; }; }
5028 fi
5029
5030 ac_ext=c
5031 ac_cpp='$CPP $CPPFLAGS'
5032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5035
5036
5037 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5038 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5039 if test "${ac_cv_header_stdc+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042 cat >conftest.$ac_ext <<_ACEOF
5043 /* confdefs.h. */
5044 _ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5048 #include <stdlib.h>
5049 #include <stdarg.h>
5050 #include <string.h>
5051 #include <float.h>
5052
5053 int
5054 main ()
5055 {
5056
5057 ;
5058 return 0;
5059 }
5060 _ACEOF
5061 rm -f conftest.$ac_objext
5062 if { (ac_try="$ac_compile"
5063 case "(($ac_try" in
5064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065 *) ac_try_echo=$ac_try;;
5066 esac
5067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5068 (eval "$ac_compile") 2>conftest.er1
5069 ac_status=$?
5070 grep -v '^ *+' conftest.er1 >conftest.err
5071 rm -f conftest.er1
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } &&
5075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5076 { (case "(($ac_try" in
5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078 *) ac_try_echo=$ac_try;;
5079 esac
5080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5081 (eval "$ac_try") 2>&5
5082 ac_status=$?
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; } &&
5085 { ac_try='test -s conftest.$ac_objext'
5086 { (case "(($ac_try" in
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5089 esac
5090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091 (eval "$ac_try") 2>&5
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; }; then
5095 ac_cv_header_stdc=yes
5096 else
5097 echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5099
5100 ac_cv_header_stdc=no
5101 fi
5102
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5104
5105 if test $ac_cv_header_stdc = yes; then
5106 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5107 cat >conftest.$ac_ext <<_ACEOF
5108 /* confdefs.h. */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5113 #include <string.h>
5114
5115 _ACEOF
5116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5117 $EGREP "memchr" >/dev/null 2>&1; then
5118 :
5119 else
5120 ac_cv_header_stdc=no
5121 fi
5122 rm -f conftest*
5123
5124 fi
5125
5126 if test $ac_cv_header_stdc = yes; then
5127 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5128 cat >conftest.$ac_ext <<_ACEOF
5129 /* confdefs.h. */
5130 _ACEOF
5131 cat confdefs.h >>conftest.$ac_ext
5132 cat >>conftest.$ac_ext <<_ACEOF
5133 /* end confdefs.h. */
5134 #include <stdlib.h>
5135
5136 _ACEOF
5137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5138 $EGREP "free" >/dev/null 2>&1; then
5139 :
5140 else
5141 ac_cv_header_stdc=no
5142 fi
5143 rm -f conftest*
5144
5145 fi
5146
5147 if test $ac_cv_header_stdc = yes; then
5148 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5149 if test "$cross_compiling" = yes; then
5150 :
5151 else
5152 cat >conftest.$ac_ext <<_ACEOF
5153 /* confdefs.h. */
5154 _ACEOF
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h. */
5158 #include <ctype.h>
5159 #include <stdlib.h>
5160 #if ((' ' & 0x0FF) == 0x020)
5161 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5162 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5163 #else
5164 # define ISLOWER(c) \
5165 (('a' <= (c) && (c) <= 'i') \
5166 || ('j' <= (c) && (c) <= 'r') \
5167 || ('s' <= (c) && (c) <= 'z'))
5168 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5169 #endif
5170
5171 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5172 int
5173 main ()
5174 {
5175 int i;
5176 for (i = 0; i < 256; i++)
5177 if (XOR (islower (i), ISLOWER (i))
5178 || toupper (i) != TOUPPER (i))
5179 return 2;
5180 return 0;
5181 }
5182 _ACEOF
5183 rm -f conftest$ac_exeext
5184 if { (ac_try="$ac_link"
5185 case "(($ac_try" in
5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187 *) ac_try_echo=$ac_try;;
5188 esac
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190 (eval "$ac_link") 2>&5
5191 ac_status=$?
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5194 { (case "(($ac_try" in
5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5197 esac
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199 (eval "$ac_try") 2>&5
5200 ac_status=$?
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; }; then
5203 :
5204 else
5205 echo "$as_me: program exited with status $ac_status" >&5
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5208
5209 ( exit $ac_status )
5210 ac_cv_header_stdc=no
5211 fi
5212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5213 fi
5214
5215
5216 fi
5217 fi
5218 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5219 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5220 if test $ac_cv_header_stdc = yes; then
5221
5222 cat >>confdefs.h <<\_ACEOF
5223 #define STDC_HEADERS 1
5224 _ACEOF
5225
5226 fi
5227
5228 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5239 inttypes.h stdint.h unistd.h
5240 do
5241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247 cat >conftest.$ac_ext <<_ACEOF
5248 /* confdefs.h. */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5253 $ac_includes_default
5254
5255 #include <$ac_header>
5256 _ACEOF
5257 rm -f conftest.$ac_objext
5258 if { (ac_try="$ac_compile"
5259 case "(($ac_try" in
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5262 esac
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_compile") 2>conftest.er1
5265 ac_status=$?
5266 grep -v '^ *+' conftest.er1 >conftest.err
5267 rm -f conftest.er1
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } &&
5271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5272 { (case "(($ac_try" in
5273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274 *) ac_try_echo=$ac_try;;
5275 esac
5276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5277 (eval "$ac_try") 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; } &&
5281 { ac_try='test -s conftest.$ac_objext'
5282 { (case "(($ac_try" in
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5285 esac
5286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_try") 2>&5
5288 ac_status=$?
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; }; then
5291 eval "$as_ac_Header=yes"
5292 else
5293 echo "$as_me: failed program was:" >&5
5294 sed 's/^/| /' conftest.$ac_ext >&5
5295
5296 eval "$as_ac_Header=no"
5297 fi
5298
5299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300 fi
5301 ac_res=`eval echo '${'$as_ac_Header'}'`
5302 { echo "$as_me:$LINENO: result: $ac_res" >&5
5303 echo "${ECHO_T}$ac_res" >&6; }
5304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5305 cat >>confdefs.h <<_ACEOF
5306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5307 _ACEOF
5308
5309 fi
5310
5311 done
5312
5313
5314
5315 for ac_header in dlfcn.h
5316 do
5317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 fi
5324 ac_res=`eval echo '${'$as_ac_Header'}'`
5325 { echo "$as_me:$LINENO: result: $ac_res" >&5
5326 echo "${ECHO_T}$ac_res" >&6; }
5327 else
5328 # Is the header compilable?
5329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5331 cat >conftest.$ac_ext <<_ACEOF
5332 /* confdefs.h. */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5337 $ac_includes_default
5338 #include <$ac_header>
5339 _ACEOF
5340 rm -f conftest.$ac_objext
5341 if { (ac_try="$ac_compile"
5342 case "(($ac_try" in
5343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344 *) ac_try_echo=$ac_try;;
5345 esac
5346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5347 (eval "$ac_compile") 2>conftest.er1
5348 ac_status=$?
5349 grep -v '^ *+' conftest.er1 >conftest.err
5350 rm -f conftest.er1
5351 cat conftest.err >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); } &&
5354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5355 { (case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5358 esac
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_try") 2>&5
5361 ac_status=$?
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; } &&
5364 { ac_try='test -s conftest.$ac_objext'
5365 { (case "(($ac_try" in
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5368 esac
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_try") 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; }; then
5374 ac_header_compiler=yes
5375 else
5376 echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5378
5379 ac_header_compiler=no
5380 fi
5381
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5384 echo "${ECHO_T}$ac_header_compiler" >&6; }
5385
5386 # Is the header present?
5387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5389 cat >conftest.$ac_ext <<_ACEOF
5390 /* confdefs.h. */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5395 #include <$ac_header>
5396 _ACEOF
5397 if { (ac_try="$ac_cpp conftest.$ac_ext"
5398 case "(($ac_try" in
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5401 esac
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5404 ac_status=$?
5405 grep -v '^ *+' conftest.er1 >conftest.err
5406 rm -f conftest.er1
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } >/dev/null; then
5410 if test -s conftest.err; then
5411 ac_cpp_err=$ac_c_preproc_warn_flag
5412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5413 else
5414 ac_cpp_err=
5415 fi
5416 else
5417 ac_cpp_err=yes
5418 fi
5419 if test -z "$ac_cpp_err"; then
5420 ac_header_preproc=yes
5421 else
5422 echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5424
5425 ac_header_preproc=no
5426 fi
5427
5428 rm -f conftest.err conftest.$ac_ext
5429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5430 echo "${ECHO_T}$ac_header_preproc" >&6; }
5431
5432 # So? What about this header?
5433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5434 yes:no: )
5435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5439 ac_header_preproc=yes
5440 ;;
5441 no:yes:* )
5442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5454
5455 ;;
5456 esac
5457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 else
5462 eval "$as_ac_Header=\$ac_header_preproc"
5463 fi
5464 ac_res=`eval echo '${'$as_ac_Header'}'`
5465 { echo "$as_me:$LINENO: result: $ac_res" >&5
5466 echo "${ECHO_T}$ac_res" >&6; }
5467
5468 fi
5469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5470 cat >>confdefs.h <<_ACEOF
5471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5472 _ACEOF
5473
5474 fi
5475
5476 done
5477
5478
5479
5480 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5481 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5482 (test "X$CXX" != "Xg++"))) ; then
5483 ac_ext=cpp
5484 ac_cpp='$CXXCPP $CPPFLAGS'
5485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5488 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5489 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5490 if test -z "$CXXCPP"; then
5491 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5493 else
5494 # Double quotes because CXXCPP needs to be expanded
5495 for CXXCPP in "$CXX -E" "/lib/cpp"
5496 do
5497 ac_preproc_ok=false
5498 for ac_cxx_preproc_warn_flag in '' yes
5499 do
5500 # Use a header file that comes with gcc, so configuring glibc
5501 # with a fresh cross-compiler works.
5502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5503 # <limits.h> exists even on freestanding compilers.
5504 # On the NeXT, cc -E runs the code through the compiler's parser,
5505 # not just through cpp. "Syntax error" is here to catch this case.
5506 cat >conftest.$ac_ext <<_ACEOF
5507 /* confdefs.h. */
5508 _ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5512 #ifdef __STDC__
5513 # include <limits.h>
5514 #else
5515 # include <assert.h>
5516 #endif
5517 Syntax error
5518 _ACEOF
5519 if { (ac_try="$ac_cpp conftest.$ac_ext"
5520 case "(($ac_try" in
5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522 *) ac_try_echo=$ac_try;;
5523 esac
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5526 ac_status=$?
5527 grep -v '^ *+' conftest.er1 >conftest.err
5528 rm -f conftest.er1
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } >/dev/null; then
5532 if test -s conftest.err; then
5533 ac_cpp_err=$ac_cxx_preproc_warn_flag
5534 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5535 else
5536 ac_cpp_err=
5537 fi
5538 else
5539 ac_cpp_err=yes
5540 fi
5541 if test -z "$ac_cpp_err"; then
5542 :
5543 else
5544 echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5546
5547 # Broken: fails on valid input.
5548 continue
5549 fi
5550
5551 rm -f conftest.err conftest.$ac_ext
5552
5553 # OK, works on sane cases. Now check whether nonexistent headers
5554 # can be detected and how.
5555 cat >conftest.$ac_ext <<_ACEOF
5556 /* confdefs.h. */
5557 _ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5561 #include <ac_nonexistent.h>
5562 _ACEOF
5563 if { (ac_try="$ac_cpp conftest.$ac_ext"
5564 case "(($ac_try" in
5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566 *) ac_try_echo=$ac_try;;
5567 esac
5568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5570 ac_status=$?
5571 grep -v '^ *+' conftest.er1 >conftest.err
5572 rm -f conftest.er1
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } >/dev/null; then
5576 if test -s conftest.err; then
5577 ac_cpp_err=$ac_cxx_preproc_warn_flag
5578 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5579 else
5580 ac_cpp_err=
5581 fi
5582 else
5583 ac_cpp_err=yes
5584 fi
5585 if test -z "$ac_cpp_err"; then
5586 # Broken: success on invalid input.
5587 continue
5588 else
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5591
5592 # Passes both tests.
5593 ac_preproc_ok=:
5594 break
5595 fi
5596
5597 rm -f conftest.err conftest.$ac_ext
5598
5599 done
5600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5601 rm -f conftest.err conftest.$ac_ext
5602 if $ac_preproc_ok; then
5603 break
5604 fi
5605
5606 done
5607 ac_cv_prog_CXXCPP=$CXXCPP
5608
5609 fi
5610 CXXCPP=$ac_cv_prog_CXXCPP
5611 else
5612 ac_cv_prog_CXXCPP=$CXXCPP
5613 fi
5614 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5615 echo "${ECHO_T}$CXXCPP" >&6; }
5616 ac_preproc_ok=false
5617 for ac_cxx_preproc_warn_flag in '' yes
5618 do
5619 # Use a header file that comes with gcc, so configuring glibc
5620 # with a fresh cross-compiler works.
5621 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5622 # <limits.h> exists even on freestanding compilers.
5623 # On the NeXT, cc -E runs the code through the compiler's parser,
5624 # not just through cpp. "Syntax error" is here to catch this case.
5625 cat >conftest.$ac_ext <<_ACEOF
5626 /* confdefs.h. */
5627 _ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h. */
5631 #ifdef __STDC__
5632 # include <limits.h>
5633 #else
5634 # include <assert.h>
5635 #endif
5636 Syntax error
5637 _ACEOF
5638 if { (ac_try="$ac_cpp conftest.$ac_ext"
5639 case "(($ac_try" in
5640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5641 *) ac_try_echo=$ac_try;;
5642 esac
5643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5645 ac_status=$?
5646 grep -v '^ *+' conftest.er1 >conftest.err
5647 rm -f conftest.er1
5648 cat conftest.err >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } >/dev/null; then
5651 if test -s conftest.err; then
5652 ac_cpp_err=$ac_cxx_preproc_warn_flag
5653 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5654 else
5655 ac_cpp_err=
5656 fi
5657 else
5658 ac_cpp_err=yes
5659 fi
5660 if test -z "$ac_cpp_err"; then
5661 :
5662 else
5663 echo "$as_me: failed program was:" >&5
5664 sed 's/^/| /' conftest.$ac_ext >&5
5665
5666 # Broken: fails on valid input.
5667 continue
5668 fi
5669
5670 rm -f conftest.err conftest.$ac_ext
5671
5672 # OK, works on sane cases. Now check whether nonexistent headers
5673 # can be detected and how.
5674 cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h. */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680 #include <ac_nonexistent.h>
5681 _ACEOF
5682 if { (ac_try="$ac_cpp conftest.$ac_ext"
5683 case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5686 esac
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5689 ac_status=$?
5690 grep -v '^ *+' conftest.er1 >conftest.err
5691 rm -f conftest.er1
5692 cat conftest.err >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } >/dev/null; then
5695 if test -s conftest.err; then
5696 ac_cpp_err=$ac_cxx_preproc_warn_flag
5697 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5698 else
5699 ac_cpp_err=
5700 fi
5701 else
5702 ac_cpp_err=yes
5703 fi
5704 if test -z "$ac_cpp_err"; then
5705 # Broken: success on invalid input.
5706 continue
5707 else
5708 echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5710
5711 # Passes both tests.
5712 ac_preproc_ok=:
5713 break
5714 fi
5715
5716 rm -f conftest.err conftest.$ac_ext
5717
5718 done
5719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5720 rm -f conftest.err conftest.$ac_ext
5721 if $ac_preproc_ok; then
5722 :
5723 else
5724 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5725 See \`config.log' for more details." >&5
5726 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5727 See \`config.log' for more details." >&2;}
5728 { (exit 1); exit 1; }; }
5729 fi
5730
5731 ac_ext=cpp
5732 ac_cpp='$CXXCPP $CPPFLAGS'
5733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5736
5737 fi
5738
5739
5740 ac_ext=f
5741 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5742 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5743 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5744 if test -n "$ac_tool_prefix"; then
5745 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5746 do
5747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5751 if test "${ac_cv_prog_F77+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754 if test -n "$F77"; then
5755 ac_cv_prog_F77="$F77" # Let the user override the test.
5756 else
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5759 do
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5764 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 break 2
5767 fi
5768 done
5769 done
5770 IFS=$as_save_IFS
5771
5772 fi
5773 fi
5774 F77=$ac_cv_prog_F77
5775 if test -n "$F77"; then
5776 { echo "$as_me:$LINENO: result: $F77" >&5
5777 echo "${ECHO_T}$F77" >&6; }
5778 else
5779 { echo "$as_me:$LINENO: result: no" >&5
5780 echo "${ECHO_T}no" >&6; }
5781 fi
5782
5783
5784 test -n "$F77" && break
5785 done
5786 fi
5787 if test -z "$F77"; then
5788 ac_ct_F77=$F77
5789 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5790 do
5791 # Extract the first word of "$ac_prog", so it can be a program name with args.
5792 set dummy $ac_prog; ac_word=$2
5793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5795 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798 if test -n "$ac_ct_F77"; then
5799 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5800 else
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH
5803 do
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5808 ac_cv_prog_ac_ct_F77="$ac_prog"
5809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 break 2
5811 fi
5812 done
5813 done
5814 IFS=$as_save_IFS
5815
5816 fi
5817 fi
5818 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5819 if test -n "$ac_ct_F77"; then
5820 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5821 echo "${ECHO_T}$ac_ct_F77" >&6; }
5822 else
5823 { echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6; }
5825 fi
5826
5827
5828 test -n "$ac_ct_F77" && break
5829 done
5830
5831 if test "x$ac_ct_F77" = x; then
5832 F77=""
5833 else
5834 case $cross_compiling:$ac_tool_warned in
5835 yes:)
5836 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5837 whose name does not start with the host triplet. If you think this
5838 configuration is useful to you, please write to autoconf@gnu.org." >&5
5839 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5840 whose name does not start with the host triplet. If you think this
5841 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5842 ac_tool_warned=yes ;;
5843 esac
5844 F77=$ac_ct_F77
5845 fi
5846 fi
5847
5848
5849 # Provide some information about the compiler.
5850 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5851 ac_compiler=`set X $ac_compile; echo $2`
5852 { (ac_try="$ac_compiler --version >&5"
5853 case "(($ac_try" in
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5856 esac
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858 (eval "$ac_compiler --version >&5") 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }
5862 { (ac_try="$ac_compiler -v >&5"
5863 case "(($ac_try" in
5864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5866 esac
5867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868 (eval "$ac_compiler -v >&5") 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }
5872 { (ac_try="$ac_compiler -V >&5"
5873 case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876 esac
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_compiler -V >&5") 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }
5882 rm -f a.out
5883
5884 # If we don't use `.F' as extension, the preprocessor is not run on the
5885 # input file. (Note that this only needs to work for GNU compilers.)
5886 ac_save_ext=$ac_ext
5887 ac_ext=F
5888 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5889 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5890 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893 cat >conftest.$ac_ext <<_ACEOF
5894 program main
5895 #ifndef __GNUC__
5896 choke me
5897 #endif
5898
5899 end
5900 _ACEOF
5901 rm -f conftest.$ac_objext
5902 if { (ac_try="$ac_compile"
5903 case "(($ac_try" in
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5906 esac
5907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5908 (eval "$ac_compile") 2>conftest.er1
5909 ac_status=$?
5910 grep -v '^ *+' conftest.er1 >conftest.err
5911 rm -f conftest.er1
5912 cat conftest.err >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } &&
5915 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5916 { (case "(($ac_try" in
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5919 esac
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921 (eval "$ac_try") 2>&5
5922 ac_status=$?
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; } &&
5925 { ac_try='test -s conftest.$ac_objext'
5926 { (case "(($ac_try" in
5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928 *) ac_try_echo=$ac_try;;
5929 esac
5930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931 (eval "$ac_try") 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; }; then
5935 ac_compiler_gnu=yes
5936 else
5937 echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5939
5940 ac_compiler_gnu=no
5941 fi
5942
5943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5944 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5945
5946 fi
5947 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5948 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5949 ac_ext=$ac_save_ext
5950 ac_test_FFLAGS=${FFLAGS+set}
5951 ac_save_FFLAGS=$FFLAGS
5952 FFLAGS=
5953 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5954 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5955 if test "${ac_cv_prog_f77_g+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958 FFLAGS=-g
5959 cat >conftest.$ac_ext <<_ACEOF
5960 program main
5961
5962 end
5963 _ACEOF
5964 rm -f conftest.$ac_objext
5965 if { (ac_try="$ac_compile"
5966 case "(($ac_try" in
5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968 *) ac_try_echo=$ac_try;;
5969 esac
5970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5971 (eval "$ac_compile") 2>conftest.er1
5972 ac_status=$?
5973 grep -v '^ *+' conftest.er1 >conftest.err
5974 rm -f conftest.er1
5975 cat conftest.err >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } &&
5978 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5979 { (case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5982 esac
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_try") 2>&5
5985 ac_status=$?
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; } &&
5988 { ac_try='test -s conftest.$ac_objext'
5989 { (case "(($ac_try" in
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5992 esac
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994 (eval "$ac_try") 2>&5
5995 ac_status=$?
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; }; then
5998 ac_cv_prog_f77_g=yes
5999 else
6000 echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6002
6003 ac_cv_prog_f77_g=no
6004 fi
6005
6006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007
6008 fi
6009 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6010 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6011 if test "$ac_test_FFLAGS" = set; then
6012 FFLAGS=$ac_save_FFLAGS
6013 elif test $ac_cv_prog_f77_g = yes; then
6014 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6015 FFLAGS="-g -O2"
6016 else
6017 FFLAGS="-g"
6018 fi
6019 else
6020 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6021 FFLAGS="-O2"
6022 else
6023 FFLAGS=
6024 fi
6025 fi
6026
6027 G77=`test $ac_compiler_gnu = yes && echo yes`
6028 ac_ext=c
6029 ac_cpp='$CPP $CPPFLAGS'
6030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6033
6034
6035
6036 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6037
6038 # find the maximum length of command line arguments
6039 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6040 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6041 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 else
6044 i=0
6045 teststring="ABCD"
6046
6047 case $build_os in
6048 msdosdjgpp*)
6049 # On DJGPP, this test can blow up pretty badly due to problems in libc
6050 # (any single argument exceeding 2000 bytes causes a buffer overrun
6051 # during glob expansion). Even if it were fixed, the result of this
6052 # check would be larger than it should be.
6053 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6054 ;;
6055
6056 gnu*)
6057 # Under GNU Hurd, this test is not required because there is
6058 # no limit to the length of command line arguments.
6059 # Libtool will interpret -1 as no limit whatsoever
6060 lt_cv_sys_max_cmd_len=-1;
6061 ;;
6062
6063 cygwin* | mingw*)
6064 # On Win9x/ME, this test blows up -- it succeeds, but takes
6065 # about 5 minutes as the teststring grows exponentially.
6066 # Worse, since 9x/ME are not pre-emptively multitasking,
6067 # you end up with a "frozen" computer, even though with patience
6068 # the test eventually succeeds (with a max line length of 256k).
6069 # Instead, let's just punt: use the minimum linelength reported by
6070 # all of the supported platforms: 8192 (on NT/2K/XP).
6071 lt_cv_sys_max_cmd_len=8192;
6072 ;;
6073
6074 amigaos*)
6075 # On AmigaOS with pdksh, this test takes hours, literally.
6076 # So we just punt and use a minimum line length of 8192.
6077 lt_cv_sys_max_cmd_len=8192;
6078 ;;
6079
6080 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6081 # This has been around since 386BSD, at least. Likely further.
6082 if test -x /sbin/sysctl; then
6083 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6084 elif test -x /usr/sbin/sysctl; then
6085 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6086 else
6087 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6088 fi
6089 # And add a safety zone
6090 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6091 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6092 ;;
6093
6094 interix*)
6095 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6096 lt_cv_sys_max_cmd_len=196608
6097 ;;
6098
6099 osf*)
6100 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6101 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6102 # nice to cause kernel panics so lets avoid the loop below.
6103 # First set a reasonable default.
6104 lt_cv_sys_max_cmd_len=16384
6105 #
6106 if test -x /sbin/sysconfig; then
6107 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6108 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6109 esac
6110 fi
6111 ;;
6112 sco3.2v5*)
6113 lt_cv_sys_max_cmd_len=102400
6114 ;;
6115 sysv5* | sco5v6* | sysv4.2uw2*)
6116 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6117 if test -n "$kargmax"; then
6118 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6119 else
6120 lt_cv_sys_max_cmd_len=32768
6121 fi
6122 ;;
6123 *)
6124 # If test is not a shell built-in, we'll probably end up computing a
6125 # maximum length that is only half of the actual maximum length, but
6126 # we can't tell.
6127 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6128 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6129 = "XX$teststring") >/dev/null 2>&1 &&
6130 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6131 lt_cv_sys_max_cmd_len=$new_result &&
6132 test $i != 17 # 1/2 MB should be enough
6133 do
6134 i=`expr $i + 1`
6135 teststring=$teststring$teststring
6136 done
6137 teststring=
6138 # Add a significant safety factor because C++ compilers can tack on massive
6139 # amounts of additional arguments before passing them to the linker.
6140 # It appears as though 1/2 is a usable value.
6141 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6142 ;;
6143 esac
6144
6145 fi
6146
6147 if test -n $lt_cv_sys_max_cmd_len ; then
6148 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6149 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6150 else
6151 { echo "$as_me:$LINENO: result: none" >&5
6152 echo "${ECHO_T}none" >&6; }
6153 fi
6154
6155
6156
6157
6158 # Check for command to grab the raw symbol name followed by C symbol from nm.
6159 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6160 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6161 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164
6165 # These are sane defaults that work on at least a few old systems.
6166 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6167
6168 # Character class describing NM global symbol codes.
6169 symcode='[BCDEGRST]'
6170
6171 # Regexp to match symbols that can be accessed directly from C.
6172 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6173
6174 # Transform an extracted symbol line into a proper C declaration
6175 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6176
6177 # Transform an extracted symbol line into symbol name and symbol address
6178 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6179
6180 # Define system-specific variables.
6181 case $host_os in
6182 aix*)
6183 symcode='[BCDT]'
6184 ;;
6185 cygwin* | mingw* | pw32*)
6186 symcode='[ABCDGISTW]'
6187 ;;
6188 hpux*) # Its linker distinguishes data from code symbols
6189 if test "$host_cpu" = ia64; then
6190 symcode='[ABCDEGRST]'
6191 fi
6192 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6193 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6194 ;;
6195 linux*)
6196 if test "$host_cpu" = ia64; then
6197 symcode='[ABCDGIRSTW]'
6198 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6199 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6200 fi
6201 ;;
6202 irix* | nonstopux*)
6203 symcode='[BCDEGRST]'
6204 ;;
6205 osf*)
6206 symcode='[BCDEGQRST]'
6207 ;;
6208 solaris*)
6209 symcode='[BDRT]'
6210 ;;
6211 sco3.2v5*)
6212 symcode='[DT]'
6213 ;;
6214 sysv4.2uw2*)
6215 symcode='[DT]'
6216 ;;
6217 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6218 symcode='[ABDT]'
6219 ;;
6220 sysv4)
6221 symcode='[DFNSTU]'
6222 ;;
6223 esac
6224
6225 # Handle CRLF in mingw tool chain
6226 opt_cr=
6227 case $build_os in
6228 mingw*)
6229 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6230 ;;
6231 esac
6232
6233 # If we're using GNU nm, then use its standard symbol codes.
6234 case `$NM -V 2>&1` in
6235 *GNU* | *'with BFD'*)
6236 symcode='[ABCDGIRSTW]' ;;
6237 esac
6238
6239 # Try without a prefix undercore, then with it.
6240 for ac_symprfx in "" "_"; do
6241
6242 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6243 symxfrm="\\1 $ac_symprfx\\2 \\2"
6244
6245 # Write the raw and C identifiers.
6246 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6247
6248 # Check to see that the pipe works correctly.
6249 pipe_works=no
6250
6251 rm -f conftest*
6252 cat > conftest.$ac_ext <<EOF
6253 #ifdef __cplusplus
6254 extern "C" {
6255 #endif
6256 char nm_test_var;
6257 void nm_test_func(){}
6258 #ifdef __cplusplus
6259 }
6260 #endif
6261 int main(){nm_test_var='a';nm_test_func();return(0);}
6262 EOF
6263
6264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6265 (eval $ac_compile) 2>&5
6266 ac_status=$?
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; then
6269 # Now try to grab the symbols.
6270 nlist=conftest.nm
6271 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6272 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } && test -s "$nlist"; then
6276 # Try sorting and uniquifying the output.
6277 if sort "$nlist" | uniq > "$nlist"T; then
6278 mv -f "$nlist"T "$nlist"
6279 else
6280 rm -f "$nlist"T
6281 fi
6282
6283 # Make sure that we snagged all the symbols we need.
6284 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6285 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6286 cat <<EOF > conftest.$ac_ext
6287 #ifdef __cplusplus
6288 extern "C" {
6289 #endif
6290
6291 EOF
6292 # Now generate the symbol file.
6293 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6294
6295 cat <<EOF >> conftest.$ac_ext
6296 #if defined (__STDC__) && __STDC__
6297 # define lt_ptr_t void *
6298 #else
6299 # define lt_ptr_t char *
6300 # define const
6301 #endif
6302
6303 /* The mapping between symbol names and symbols. */
6304 const struct {
6305 const char *name;
6306 lt_ptr_t address;
6307 }
6308 lt_preloaded_symbols[] =
6309 {
6310 EOF
6311 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6312 cat <<\EOF >> conftest.$ac_ext
6313 {0, (lt_ptr_t) 0}
6314 };
6315
6316 #ifdef __cplusplus
6317 }
6318 #endif
6319 EOF
6320 # Now try linking the two files.
6321 mv conftest.$ac_objext conftstm.$ac_objext
6322 lt_save_LIBS="$LIBS"
6323 lt_save_CFLAGS="$CFLAGS"
6324 LIBS="conftstm.$ac_objext"
6325 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6327 (eval $ac_link) 2>&5
6328 ac_status=$?
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6331 pipe_works=yes
6332 fi
6333 LIBS="$lt_save_LIBS"
6334 CFLAGS="$lt_save_CFLAGS"
6335 else
6336 echo "cannot find nm_test_func in $nlist" >&5
6337 fi
6338 else
6339 echo "cannot find nm_test_var in $nlist" >&5
6340 fi
6341 else
6342 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6343 fi
6344 else
6345 echo "$progname: failed program was:" >&5
6346 cat conftest.$ac_ext >&5
6347 fi
6348 rm -f conftest* conftst*
6349
6350 # Do not use the global_symbol_pipe unless it works.
6351 if test "$pipe_works" = yes; then
6352 break
6353 else
6354 lt_cv_sys_global_symbol_pipe=
6355 fi
6356 done
6357
6358 fi
6359
6360 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6361 lt_cv_sys_global_symbol_to_cdecl=
6362 fi
6363 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6364 { echo "$as_me:$LINENO: result: failed" >&5
6365 echo "${ECHO_T}failed" >&6; }
6366 else
6367 { echo "$as_me:$LINENO: result: ok" >&5
6368 echo "${ECHO_T}ok" >&6; }
6369 fi
6370
6371 { echo "$as_me:$LINENO: checking for objdir" >&5
6372 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6373 if test "${lt_cv_objdir+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 else
6376 rm -f .libs 2>/dev/null
6377 mkdir .libs 2>/dev/null
6378 if test -d .libs; then
6379 lt_cv_objdir=.libs
6380 else
6381 # MS-DOS does not allow filenames that begin with a dot.
6382 lt_cv_objdir=_libs
6383 fi
6384 rmdir .libs 2>/dev/null
6385 fi
6386 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6387 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6388 objdir=$lt_cv_objdir
6389
6390
6391
6392
6393
6394 case $host_os in
6395 aix3*)
6396 # AIX sometimes has problems with the GCC collect2 program. For some
6397 # reason, if we set the COLLECT_NAMES environment variable, the problems
6398 # vanish in a puff of smoke.
6399 if test "X${COLLECT_NAMES+set}" != Xset; then
6400 COLLECT_NAMES=
6401 export COLLECT_NAMES
6402 fi
6403 ;;
6404 esac
6405
6406 # Sed substitution that helps us do robust quoting. It backslashifies
6407 # metacharacters that are still active within double-quoted strings.
6408 Xsed='sed -e 1s/^X//'
6409 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6410
6411 # Same as above, but do not quote variable references.
6412 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6413
6414 # Sed substitution to delay expansion of an escaped shell variable in a
6415 # double_quote_subst'ed string.
6416 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6417
6418 # Sed substitution to avoid accidental globbing in evaled expressions
6419 no_glob_subst='s/\*/\\\*/g'
6420
6421 # Constants:
6422 rm="rm -f"
6423
6424 # Global variables:
6425 default_ofile=libtool
6426 can_build_shared=yes
6427
6428 # All known linkers require a `.a' archive for static linking (except MSVC,
6429 # which needs '.lib').
6430 libext=a
6431 ltmain="$ac_aux_dir/ltmain.sh"
6432 ofile="$default_ofile"
6433 with_gnu_ld="$lt_cv_prog_gnu_ld"
6434
6435 if test -n "$ac_tool_prefix"; then
6436 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6437 set dummy ${ac_tool_prefix}ar; ac_word=$2
6438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6440 if test "${ac_cv_prog_AR+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443 if test -n "$AR"; then
6444 ac_cv_prog_AR="$AR" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6448 do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6453 ac_cv_prog_AR="${ac_tool_prefix}ar"
6454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 break 2
6456 fi
6457 done
6458 done
6459 IFS=$as_save_IFS
6460
6461 fi
6462 fi
6463 AR=$ac_cv_prog_AR
6464 if test -n "$AR"; then
6465 { echo "$as_me:$LINENO: result: $AR" >&5
6466 echo "${ECHO_T}$AR" >&6; }
6467 else
6468 { echo "$as_me:$LINENO: result: no" >&5
6469 echo "${ECHO_T}no" >&6; }
6470 fi
6471
6472
6473 fi
6474 if test -z "$ac_cv_prog_AR"; then
6475 ac_ct_AR=$AR
6476 # Extract the first word of "ar", so it can be a program name with args.
6477 set dummy ar; ac_word=$2
6478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6480 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483 if test -n "$ac_ct_AR"; then
6484 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489 IFS=$as_save_IFS
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6493 ac_cv_prog_ac_ct_AR="ar"
6494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 break 2
6496 fi
6497 done
6498 done
6499 IFS=$as_save_IFS
6500
6501 fi
6502 fi
6503 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6504 if test -n "$ac_ct_AR"; then
6505 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6506 echo "${ECHO_T}$ac_ct_AR" >&6; }
6507 else
6508 { echo "$as_me:$LINENO: result: no" >&5
6509 echo "${ECHO_T}no" >&6; }
6510 fi
6511
6512 if test "x$ac_ct_AR" = x; then
6513 AR="false"
6514 else
6515 case $cross_compiling:$ac_tool_warned in
6516 yes:)
6517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6518 whose name does not start with the host triplet. If you think this
6519 configuration is useful to you, please write to autoconf@gnu.org." >&5
6520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6521 whose name does not start with the host triplet. If you think this
6522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6523 ac_tool_warned=yes ;;
6524 esac
6525 AR=$ac_ct_AR
6526 fi
6527 else
6528 AR="$ac_cv_prog_AR"
6529 fi
6530
6531 if test -n "$ac_tool_prefix"; then
6532 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6533 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6536 if test "${ac_cv_prog_RANLIB+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539 if test -n "$RANLIB"; then
6540 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6541 else
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 for as_dir in $PATH
6544 do
6545 IFS=$as_save_IFS
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6549 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 break 2
6552 fi
6553 done
6554 done
6555 IFS=$as_save_IFS
6556
6557 fi
6558 fi
6559 RANLIB=$ac_cv_prog_RANLIB
6560 if test -n "$RANLIB"; then
6561 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6562 echo "${ECHO_T}$RANLIB" >&6; }
6563 else
6564 { echo "$as_me:$LINENO: result: no" >&5
6565 echo "${ECHO_T}no" >&6; }
6566 fi
6567
6568
6569 fi
6570 if test -z "$ac_cv_prog_RANLIB"; then
6571 ac_ct_RANLIB=$RANLIB
6572 # Extract the first word of "ranlib", so it can be a program name with args.
6573 set dummy ranlib; ac_word=$2
6574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579 if test -n "$ac_ct_RANLIB"; then
6580 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6581 else
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6584 do
6585 IFS=$as_save_IFS
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6589 ac_cv_prog_ac_ct_RANLIB="ranlib"
6590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 break 2
6592 fi
6593 done
6594 done
6595 IFS=$as_save_IFS
6596
6597 fi
6598 fi
6599 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6600 if test -n "$ac_ct_RANLIB"; then
6601 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6602 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6603 else
6604 { echo "$as_me:$LINENO: result: no" >&5
6605 echo "${ECHO_T}no" >&6; }
6606 fi
6607
6608 if test "x$ac_ct_RANLIB" = x; then
6609 RANLIB=":"
6610 else
6611 case $cross_compiling:$ac_tool_warned in
6612 yes:)
6613 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6614 whose name does not start with the host triplet. If you think this
6615 configuration is useful to you, please write to autoconf@gnu.org." >&5
6616 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6617 whose name does not start with the host triplet. If you think this
6618 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6619 ac_tool_warned=yes ;;
6620 esac
6621 RANLIB=$ac_ct_RANLIB
6622 fi
6623 else
6624 RANLIB="$ac_cv_prog_RANLIB"
6625 fi
6626
6627 if test -n "$ac_tool_prefix"; then
6628 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6629 set dummy ${ac_tool_prefix}strip; ac_word=$2
6630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6632 if test "${ac_cv_prog_STRIP+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 else
6635 if test -n "$STRIP"; then
6636 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6637 else
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6640 do
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6645 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 break 2
6648 fi
6649 done
6650 done
6651 IFS=$as_save_IFS
6652
6653 fi
6654 fi
6655 STRIP=$ac_cv_prog_STRIP
6656 if test -n "$STRIP"; then
6657 { echo "$as_me:$LINENO: result: $STRIP" >&5
6658 echo "${ECHO_T}$STRIP" >&6; }
6659 else
6660 { echo "$as_me:$LINENO: result: no" >&5
6661 echo "${ECHO_T}no" >&6; }
6662 fi
6663
6664
666