1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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 more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 # include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 # include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='SHELL
616 PATH_SEPARATOR
617 PACKAGE_NAME
618 PACKAGE_TARNAME
619 PACKAGE_VERSION
620 PACKAGE_STRING
621 PACKAGE_BUGREPORT
622 exec_prefix
623 prefix
624 program_transform_name
625 bindir
626 sbindir
627 libexecdir
628 datarootdir
629 datadir
630 sysconfdir
631 sharedstatedir
632 localstatedir
633 includedir
634 oldincludedir
635 docdir
636 infodir
637 htmldir
638 dvidir
639 pdfdir
640 psdir
641 libdir
642 localedir
643 mandir
644 DEFS
645 ECHO_C
646 ECHO_N
647 ECHO_T
648 LIBS
649 build_alias
650 host_alias
651 target_alias
652 CC
653 CFLAGS
654 LDFLAGS
655 CPPFLAGS
656 ac_ct_CC
657 EXEEXT
658 OBJEXT
659 PKGCONFIG_PATH
660 BISON_PATH
661 FLEX_PATH
662 CPP
663 GREP
664 EGREP
665 LIBOBJS
666 LTLIBOBJS'
667 ac_subst_files=''
668 ac_precious_vars='build_alias
669 host_alias
670 target_alias
671 CC
672 CFLAGS
673 LDFLAGS
674 LIBS
675 CPPFLAGS
676 CPP'
677
678
679 # Initialize some variables set by options.
680 ac_init_help=
681 ac_init_version=false
682 # The variables have the same names as the options, with
683 # dashes changed to underlines.
684 cache_file=/dev/null
685 exec_prefix=NONE
686 no_create=
687 no_recursion=
688 prefix=NONE
689 program_prefix=NONE
690 program_suffix=NONE
691 program_transform_name=s,x,x,
692 silent=
693 site=
694 srcdir=
695 verbose=
696 x_includes=NONE
697 x_libraries=NONE
698
699 # Installation directory options.
700 # These are left unexpanded so users can "make install exec_prefix=/foo"
701 # and all the variables that are supposed to be based on exec_prefix
702 # by default will actually change.
703 # Use braces instead of parens because sh, perl, etc. also accept them.
704 # (The list follows the same order as the GNU Coding Standards.)
705 bindir='${exec_prefix}/bin'
706 sbindir='${exec_prefix}/sbin'
707 libexecdir='${exec_prefix}/libexec'
708 datarootdir='${prefix}/share'
709 datadir='${datarootdir}'
710 sysconfdir='${prefix}/etc'
711 sharedstatedir='${prefix}/com'
712 localstatedir='${prefix}/var'
713 includedir='${prefix}/include'
714 oldincludedir='/usr/include'
715 docdir='${datarootdir}/doc/${PACKAGE}'
716 infodir='${datarootdir}/info'
717 htmldir='${docdir}'
718 dvidir='${docdir}'
719 pdfdir='${docdir}'
720 psdir='${docdir}'
721 libdir='${exec_prefix}/lib'
722 localedir='${datarootdir}/locale'
723 mandir='${datarootdir}/man'
724
725 ac_prev=
726 ac_dashdash=
727 for ac_option
728 do
729 # If the previous option needs an argument, assign it.
730 if test -n "$ac_prev"; then
731 eval $ac_prev=\$ac_option
732 ac_prev=
733 continue
734 fi
735
736 case $ac_option in
737 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
738 *) ac_optarg=yes ;;
739 esac
740
741 # Accept the important Cygnus configure options, so we can diagnose typos.
742
743 case $ac_dashdash$ac_option in
744 --)
745 ac_dashdash=yes ;;
746
747 -bindir | --bindir | --bindi | --bind | --bin | --bi)
748 ac_prev=bindir ;;
749 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
750 bindir=$ac_optarg ;;
751
752 -build | --build | --buil | --bui | --bu)
753 ac_prev=build_alias ;;
754 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
755 build_alias=$ac_optarg ;;
756
757 -cache-file | --cache-file | --cache-fil | --cache-fi \
758 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
759 ac_prev=cache_file ;;
760 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
761 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
762 cache_file=$ac_optarg ;;
763
764 --config-cache | -C)
765 cache_file=config.cache ;;
766
767 -datadir | --datadir | --datadi | --datad)
768 ac_prev=datadir ;;
769 -datadir=* | --datadir=* | --datadi=* | --datad=*)
770 datadir=$ac_optarg ;;
771
772 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
773 | --dataroo | --dataro | --datar)
774 ac_prev=datarootdir ;;
775 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
776 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
777 datarootdir=$ac_optarg ;;
778
779 -disable-* | --disable-*)
780 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
781 # Reject names that are not valid shell variable names.
782 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
783 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
784 { (exit 1); exit 1; }; }
785 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
786 eval enable_$ac_feature=no ;;
787
788 -docdir | --docdir | --docdi | --doc | --do)
789 ac_prev=docdir ;;
790 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
791 docdir=$ac_optarg ;;
792
793 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
794 ac_prev=dvidir ;;
795 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
796 dvidir=$ac_optarg ;;
797
798 -enable-* | --enable-*)
799 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
803 { (exit 1); exit 1; }; }
804 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
805 eval enable_$ac_feature=\$ac_optarg ;;
806
807 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
808 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
809 | --exec | --exe | --ex)
810 ac_prev=exec_prefix ;;
811 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
812 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
813 | --exec=* | --exe=* | --ex=*)
814 exec_prefix=$ac_optarg ;;
815
816 -gas | --gas | --ga | --g)
817 # Obsolete; use --with-gas.
818 with_gas=yes ;;
819
820 -help | --help | --hel | --he | -h)
821 ac_init_help=long ;;
822 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
823 ac_init_help=recursive ;;
824 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
825 ac_init_help=short ;;
826
827 -host | --host | --hos | --ho)
828 ac_prev=host_alias ;;
829 -host=* | --host=* | --hos=* | --ho=*)
830 host_alias=$ac_optarg ;;
831
832 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
833 ac_prev=htmldir ;;
834 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
835 | --ht=*)
836 htmldir=$ac_optarg ;;
837
838 -includedir | --includedir | --includedi | --included | --include \
839 | --includ | --inclu | --incl | --inc)
840 ac_prev=includedir ;;
841 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
842 | --includ=* | --inclu=* | --incl=* | --inc=*)
843 includedir=$ac_optarg ;;
844
845 -infodir | --infodir | --infodi | --infod | --info | --inf)
846 ac_prev=infodir ;;
847 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
848 infodir=$ac_optarg ;;
849
850 -libdir | --libdir | --libdi | --libd)
851 ac_prev=libdir ;;
852 -libdir=* | --libdir=* | --libdi=* | --libd=*)
853 libdir=$ac_optarg ;;
854
855 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
856 | --libexe | --libex | --libe)
857 ac_prev=libexecdir ;;
858 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
859 | --libexe=* | --libex=* | --libe=*)
860 libexecdir=$ac_optarg ;;
861
862 -localedir | --localedir | --localedi | --localed | --locale)
863 ac_prev=localedir ;;
864 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
865 localedir=$ac_optarg ;;
866
867 -localstatedir | --localstatedir | --localstatedi | --localstated \
868 | --localstate | --localstat | --localsta | --localst | --locals)
869 ac_prev=localstatedir ;;
870 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
871 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
872 localstatedir=$ac_optarg ;;
873
874 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
875 ac_prev=mandir ;;
876 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
877 mandir=$ac_optarg ;;
878
879 -nfp | --nfp | --nf)
880 # Obsolete; use --without-fp.
881 with_fp=no ;;
882
883 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
884 | --no-cr | --no-c | -n)
885 no_create=yes ;;
886
887 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
888 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
889 no_recursion=yes ;;
890
891 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
892 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
893 | --oldin | --oldi | --old | --ol | --o)
894 ac_prev=oldincludedir ;;
895 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
896 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
897 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
898 oldincludedir=$ac_optarg ;;
899
900 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
901 ac_prev=prefix ;;
902 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
903 prefix=$ac_optarg ;;
904
905 -program-prefix | --program-prefix | --program-prefi | --program-pref \
906 | --program-pre | --program-pr | --program-p)
907 ac_prev=program_prefix ;;
908 -program-prefix=* | --program-prefix=* | --program-prefi=* \
909 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
910 program_prefix=$ac_optarg ;;
911
912 -program-suffix | --program-suffix | --program-suffi | --program-suff \
913 | --program-suf | --program-su | --program-s)
914 ac_prev=program_suffix ;;
915 -program-suffix=* | --program-suffix=* | --program-suffi=* \
916 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
917 program_suffix=$ac_optarg ;;
918
919 -program-transform-name | --program-transform-name \
920 | --program-transform-nam | --program-transform-na \
921 | --program-transform-n | --program-transform- \
922 | --program-transform | --program-transfor \
923 | --program-transfo | --program-transf \
924 | --program-trans | --program-tran \
925 | --progr-tra | --program-tr | --program-t)
926 ac_prev=program_transform_name ;;
927 -program-transform-name=* | --program-transform-name=* \
928 | --program-transform-nam=* | --program-transform-na=* \
929 | --program-transform-n=* | --program-transform-=* \
930 | --program-transform=* | --program-transfor=* \
931 | --program-transfo=* | --program-transf=* \
932 | --program-trans=* | --program-tran=* \
933 | --progr-tra=* | --program-tr=* | --program-t=*)
934 program_transform_name=$ac_optarg ;;
935
936 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
937 ac_prev=pdfdir ;;
938 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
939 pdfdir=$ac_optarg ;;
940
941 -psdir | --psdir | --psdi | --psd | --ps)
942 ac_prev=psdir ;;
943 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
944 psdir=$ac_optarg ;;
945
946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
947 | -silent | --silent | --silen | --sile | --sil)
948 silent=yes ;;
949
950 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
951 ac_prev=sbindir ;;
952 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
953 | --sbi=* | --sb=*)
954 sbindir=$ac_optarg ;;
955
956 -sharedstatedir | --sharedstatedir | --sharedstatedi \
957 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
958 | --sharedst | --shareds | --shared | --share | --shar \
959 | --sha | --sh)
960 ac_prev=sharedstatedir ;;
961 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
962 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
963 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
964 | --sha=* | --sh=*)
965 sharedstatedir=$ac_optarg ;;
966
967 -site | --site | --sit)
968 ac_prev=site ;;
969 -site=* | --site=* | --sit=*)
970 site=$ac_optarg ;;
971
972 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
973 ac_prev=srcdir ;;
974 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
975 srcdir=$ac_optarg ;;
976
977 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
978 | --syscon | --sysco | --sysc | --sys | --sy)
979 ac_prev=sysconfdir ;;
980 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
981 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
982 sysconfdir=$ac_optarg ;;
983
984 -target | --target | --targe | --targ | --tar | --ta | --t)
985 ac_prev=target_alias ;;
986 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
987 target_alias=$ac_optarg ;;
988
989 -v | -verbose | --verbose | --verbos | --verbo | --verb)
990 verbose=yes ;;
991
992 -version | --version | --versio | --versi | --vers | -V)
993 ac_init_version=: ;;
994
995 -with-* | --with-*)
996 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
999 { echo "$as_me: error: invalid package name: $ac_package" >&2
1000 { (exit 1); exit 1; }; }
1001 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1002 eval with_$ac_package=\$ac_optarg ;;
1003
1004 -without-* | --without-*)
1005 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1008 { echo "$as_me: error: invalid package name: $ac_package" >&2
1009 { (exit 1); exit 1; }; }
1010 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1011 eval with_$ac_package=no ;;
1012
1013 --x)
1014 # Obsolete; use --with-x.
1015 with_x=yes ;;
1016
1017 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1018 | --x-incl | --x-inc | --x-in | --x-i)
1019 ac_prev=x_includes ;;
1020 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1021 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1022 x_includes=$ac_optarg ;;
1023
1024 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1025 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1026 ac_prev=x_libraries ;;
1027 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1028 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1029 x_libraries=$ac_optarg ;;
1030
1031 -*) { echo "$as_me: error: unrecognized option: $ac_option
1032 Try \`$0 --help' for more information." >&2
1033 { (exit 1); exit 1; }; }
1034 ;;
1035
1036 *=*)
1037 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1040 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1041 { (exit 1); exit 1; }; }
1042 eval $ac_envvar=\$ac_optarg
1043 export $ac_envvar ;;
1044
1045 *)
1046 # FIXME: should be removed in autoconf 3.0.
1047 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1048 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1050 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1051 ;;
1052
1053 esac
1054 done
1055
1056 if test -n "$ac_prev"; then
1057 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1058 { echo "$as_me: error: missing argument to $ac_option" >&2
1059 { (exit 1); exit 1; }; }
1060 fi
1061
1062 # Be sure to have absolute directory names.
1063 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1064 datadir sysconfdir sharedstatedir localstatedir includedir \
1065 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1066 libdir localedir mandir
1067 do
1068 eval ac_val=\$$ac_var
1069 case $ac_val in
1070 [\\/$]* | ?:[\\/]* ) continue;;
1071 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1072 esac
1073 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1074 { (exit 1); exit 1; }; }
1075 done
1076
1077 # There might be people who depend on the old broken behavior: `$host'
1078 # used to hold the argument of --host etc.
1079 # FIXME: To remove some day.
1080 build=$build_alias
1081 host=$host_alias
1082 target=$target_alias
1083
1084 # FIXME: To remove some day.
1085 if test "x$host_alias" != x; then
1086 if test "x$build_alias" = x; then
1087 cross_compiling=maybe
1088 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1089 If a cross compiler is detected then cross compile mode will be used." >&2
1090 elif test "x$build_alias" != "x$host_alias"; then
1091 cross_compiling=yes
1092 fi
1093 fi
1094
1095 ac_tool_prefix=
1096 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1097
1098 test "$silent" = yes && exec 6>/dev/null
1099
1100
1101 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1102 ac_ls_di=`ls -di .` &&
1103 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1104 { echo "$as_me: error: Working directory cannot be determined" >&2
1105 { (exit 1); exit 1; }; }
1106 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1107 { echo "$as_me: error: pwd does not report name of working directory" >&2
1108 { (exit 1); exit 1; }; }
1109
1110
1111 # Find the source files, if location was not specified.
1112 if test -z "$srcdir"; then
1113 ac_srcdir_defaulted=yes
1114 # Try the directory containing this script, then the parent directory.
1115 ac_confdir=`$as_dirname -- "$0" ||
1116 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1117 X"$0" : 'X\(//\)[^/]' \| \
1118 X"$0" : 'X\(//\)$' \| \
1119 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1120 echo X"$0" |
1121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1122 s//\1/
1123 q
1124 }
1125 /^X\(\/\/\)[^/].*/{
1126 s//\1/
1127 q
1128 }
1129 /^X\(\/\/\)$/{
1130 s//\1/
1131 q
1132 }
1133 /^X\(\/\).*/{
1134 s//\1/
1135 q
1136 }
1137 s/.*/./; q'`
1138 srcdir=$ac_confdir
1139 if test ! -r "$srcdir/$ac_unique_file"; then
1140 srcdir=..
1141 fi
1142 else
1143 ac_srcdir_defaulted=no
1144 fi
1145 if test ! -r "$srcdir/$ac_unique_file"; then
1146 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1147 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1148 { (exit 1); exit 1; }; }
1149 fi
1150 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1151 ac_abs_confdir=`(
1152 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1153 { (exit 1); exit 1; }; }
1154 pwd)`
1155 # When building in place, set srcdir=.
1156 if test "$ac_abs_confdir" = "$ac_pwd"; then
1157 srcdir=.
1158 fi
1159 # Remove unnecessary trailing slashes from srcdir.
1160 # Double slashes in file names in object file debugging info
1161 # mess up M-x gdb in Emacs.
1162 case $srcdir in
1163 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1164 esac
1165 for ac_var in $ac_precious_vars; do
1166 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1167 eval ac_env_${ac_var}_value=\$${ac_var}
1168 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1169 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1170 done
1171
1172 #
1173 # Report the --help message.
1174 #
1175 if test "$ac_init_help" = "long"; then
1176 # Omit some internal or obsolete options to make the list less imposing.
1177 # This message is too long to be a string in the A/UX 3.1 sh.
1178 cat <<_ACEOF
1179 \`configure' configures this package to adapt to many kinds of systems.
1180
1181 Usage: $0 [OPTION]... [VAR=VALUE]...
1182
1183 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1184 VAR=VALUE. See below for descriptions of some of the useful variables.
1185
1186 Defaults for the options are specified in brackets.
1187
1188 Configuration:
1189 -h, --help display this help and exit
1190 --help=short display options specific to this package
1191 --help=recursive display the short help of all the included packages
1192 -V, --version display version information and exit
1193 -q, --quiet, --silent do not print \`checking...' messages
1194 --cache-file=FILE cache test results in FILE [disabled]
1195 -C, --config-cache alias for \`--cache-file=config.cache'
1196 -n, --no-create do not create output files
1197 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1198
1199 Installation directories:
1200 --prefix=PREFIX install architecture-independent files in PREFIX
1201 [$ac_default_prefix]
1202 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1203 [PREFIX]
1204
1205 By default, \`make install' will install all the files in
1206 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1207 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1208 for instance \`--prefix=\$HOME'.
1209
1210 For better control, use the options below.
1211
1212 Fine tuning of the installation directories:
1213 --bindir=DIR user executables [EPREFIX/bin]
1214 --sbindir=DIR system admin executables [EPREFIX/sbin]
1215 --libexecdir=DIR program executables [EPREFIX/libexec]
1216 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1217 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1218 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1219 --libdir=DIR object code libraries [EPREFIX/lib]
1220 --includedir=DIR C header files [PREFIX/include]
1221 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1222 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1223 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1224 --infodir=DIR info documentation [DATAROOTDIR/info]
1225 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1226 --mandir=DIR man documentation [DATAROOTDIR/man]
1227 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1228 --htmldir=DIR html documentation [DOCDIR]
1229 --dvidir=DIR dvi documentation [DOCDIR]
1230 --pdfdir=DIR pdf documentation [DOCDIR]
1231 --psdir=DIR ps documentation [DOCDIR]
1232 _ACEOF
1233
1234 cat <<\_ACEOF
1235 _ACEOF
1236 fi
1237
1238 if test -n "$ac_init_help"; then
1239
1240 cat <<\_ACEOF
1241
1242 Some influential environment variables:
1243 CC C compiler command
1244 CFLAGS C compiler flags
1245 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1246 nonstandard directory <lib dir>
1247 LIBS libraries to pass to the linker, e.g. -l<library>
1248 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1249 you have headers in a nonstandard directory <include dir>
1250 CPP C preprocessor
1251
1252 Use these variables to override the choices made by `configure' or to help
1253 it to find libraries and programs with nonstandard names/locations.
1254
1255 _ACEOF
1256 ac_status=$?
1257 fi
1258
1259 if test "$ac_init_help" = "recursive"; then
1260 # If there are subdirs, report their specific --help.
1261 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1262 test -d "$ac_dir" || continue
1263 ac_builddir=.
1264
1265 case "$ac_dir" in
1266 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1267 *)
1268 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1269 # A ".." for each directory in $ac_dir_suffix.
1270 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1271 case $ac_top_builddir_sub in
1272 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1273 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1274 esac ;;
1275 esac
1276 ac_abs_top_builddir=$ac_pwd
1277 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1278 # for backward compatibility:
1279 ac_top_builddir=$ac_top_build_prefix
1280
1281 case $srcdir in
1282 .) # We are building in place.
1283 ac_srcdir=.
1284 ac_top_srcdir=$ac_top_builddir_sub
1285 ac_abs_top_srcdir=$ac_pwd ;;
1286 [\\/]* | ?:[\\/]* ) # Absolute name.
1287 ac_srcdir=$srcdir$ac_dir_suffix;
1288 ac_top_srcdir=$srcdir
1289 ac_abs_top_srcdir=$srcdir ;;
1290 *) # Relative name.
1291 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1292 ac_top_srcdir=$ac_top_build_prefix$srcdir
1293 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1294 esac
1295 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1296
1297 cd "$ac_dir" || { ac_status=$?; continue; }
1298 # Check for guested configure.
1299 if test -f "$ac_srcdir/configure.gnu"; then
1300 echo &&
1301 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1302 elif test -f "$ac_srcdir/configure"; then
1303 echo &&
1304 $SHELL "$ac_srcdir/configure" --help=recursive
1305 else
1306 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1307 fi || ac_status=$?
1308 cd "$ac_pwd" || { ac_status=$?; break; }
1309 done
1310 fi
1311
1312 test -n "$ac_init_help" && exit $ac_status
1313 if $ac_init_version; then
1314 cat <<\_ACEOF
1315 configure
1316 generated by GNU Autoconf 2.61
1317
1318 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1319 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1320 This configure script is free software; the Free Software Foundation
1321 gives unlimited permission to copy, distribute and modify it.
1322 _ACEOF
1323 exit
1324 fi
1325 cat >config.log <<_ACEOF
1326 This file contains any messages produced by compilers while
1327 running configure, to aid debugging if configure makes a mistake.
1328
1329 It was created by $as_me, which was
1330 generated by GNU Autoconf 2.61. Invocation command line was
1331
1332 $ $0 $@
1333
1334 _ACEOF
1335 exec 5>>config.log
1336 {
1337 cat <<_ASUNAME
1338 ## --------- ##
1339 ## Platform. ##
1340 ## --------- ##
1341
1342 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1343 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1344 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1345 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1346 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1347
1348 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1349 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1350
1351 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1352 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1353 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1354 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1355 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1356 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1357 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1358
1359 _ASUNAME
1360
1361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1362 for as_dir in $PATH
1363 do
1364 IFS=$as_save_IFS
1365 test -z "$as_dir" && as_dir=.
1366 echo "PATH: $as_dir"
1367 done
1368 IFS=$as_save_IFS
1369
1370 } >&5
1371
1372 cat >&5 <<_ACEOF
1373
1374
1375 ## ----------- ##
1376 ## Core tests. ##
1377 ## ----------- ##
1378
1379 _ACEOF
1380
1381
1382 # Keep a trace of the command line.
1383 # Strip out --no-create and --no-recursion so they do not pile up.
1384 # Strip out --silent because we don't want to record it for future runs.
1385 # Also quote any args containing shell meta-characters.
1386 # Make two passes to allow for proper duplicate-argument suppression.
1387 ac_configure_args=
1388 ac_configure_args0=
1389 ac_configure_args1=
1390 ac_must_keep_next=false
1391 for ac_pass in 1 2
1392 do
1393 for ac_arg
1394 do
1395 case $ac_arg in
1396 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1397 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1398 | -silent | --silent | --silen | --sile | --sil)
1399 continue ;;
1400 *\'*)
1401 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1402 esac
1403 case $ac_pass in
1404 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1405 2)
1406 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1407 if test $ac_must_keep_next = true; then
1408 ac_must_keep_next=false # Got value, back to normal.
1409 else
1410 case $ac_arg in
1411 *=* | --config-cache | -C | -disable-* | --disable-* \
1412 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1413 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1414 | -with-* | --with-* | -without-* | --without-* | --x)
1415 case "$ac_configure_args0 " in
1416 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1417 esac
1418 ;;
1419 -* ) ac_must_keep_next=true ;;
1420 esac
1421 fi
1422 ac_configure_args="$ac_configure_args '$ac_arg'"
1423 ;;
1424 esac
1425 done
1426 done
1427 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1428 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1429
1430 # When interrupted or exit'd, cleanup temporary files, and complete
1431 # config.log. We remove comments because anyway the quotes in there
1432 # would cause problems or look ugly.
1433 # WARNING: Use '\'' to represent an apostrophe within the trap.
1434 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1435 trap 'exit_status=$?
1436 # Save into config.log some information that might help in debugging.
1437 {
1438 echo
1439
1440 cat <<\_ASBOX
1441 ## ---------------- ##
1442 ## Cache variables. ##
1443 ## ---------------- ##
1444 _ASBOX
1445 echo
1446 # The following way of writing the cache mishandles newlines in values,
1447 (
1448 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1449 eval ac_val=\$$ac_var
1450 case $ac_val in #(
1451 *${as_nl}*)
1452 case $ac_var in #(
1453 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1454 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1455 esac
1456 case $ac_var in #(
1457 _ | IFS | as_nl) ;; #(
1458 *) $as_unset $ac_var ;;
1459 esac ;;
1460 esac
1461 done
1462 (set) 2>&1 |
1463 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1464 *${as_nl}ac_space=\ *)
1465 sed -n \
1466 "s/'\''/'\''\\\\'\'''\''/g;
1467 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1468 ;; #(
1469 *)
1470 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1471 ;;
1472 esac |
1473 sort
1474 )
1475 echo
1476
1477 cat <<\_ASBOX
1478 ## ----------------- ##
1479 ## Output variables. ##
1480 ## ----------------- ##
1481 _ASBOX
1482 echo
1483 for ac_var in $ac_subst_vars
1484 do
1485 eval ac_val=\$$ac_var
1486 case $ac_val in
1487 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1488 esac
1489 echo "$ac_var='\''$ac_val'\''"
1490 done | sort
1491 echo
1492
1493 if test -n "$ac_subst_files"; then
1494 cat <<\_ASBOX
1495 ## ------------------- ##
1496 ## File substitutions. ##
1497 ## ------------------- ##
1498 _ASBOX
1499 echo
1500 for ac_var in $ac_subst_files
1501 do
1502 eval ac_val=\$$ac_var
1503 case $ac_val in
1504 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1505 esac
1506 echo "$ac_var='\''$ac_val'\''"
1507 done | sort
1508 echo
1509 fi
1510
1511 if test -s confdefs.h; then
1512 cat <<\_ASBOX
1513 ## ----------- ##
1514 ## confdefs.h. ##
1515 ## ----------- ##
1516 _ASBOX
1517 echo
1518 cat confdefs.h
1519 echo
1520 fi
1521 test "$ac_signal" != 0 &&
1522 echo "$as_me: caught signal $ac_signal"
1523 echo "$as_me: exit $exit_status"
1524 } >&5
1525 rm -f core *.core core.conftest.* &&
1526 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1527 exit $exit_status
1528 ' 0
1529 for ac_signal in 1 2 13 15; do
1530 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1531 done
1532 ac_signal=0
1533
1534 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1535 rm -f -r conftest* confdefs.h
1536
1537 # Predefined preprocessor variables.
1538
1539 cat >>confdefs.h <<_ACEOF
1540 #define PACKAGE_NAME "$PACKAGE_NAME"
1541 _ACEOF
1542
1543
1544 cat >>confdefs.h <<_ACEOF
1545 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1546 _ACEOF
1547
1548
1549 cat >>confdefs.h <<_ACEOF
1550 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1551 _ACEOF
1552
1553
1554 cat >>confdefs.h <<_ACEOF
1555 #define PACKAGE_STRING "$PACKAGE_STRING"
1556 _ACEOF
1557
1558
1559 cat >>confdefs.h <<_ACEOF
1560 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1561 _ACEOF
1562
1563
1564 # Let the site file select an alternate cache file if it wants to.
1565 # Prefer explicitly selected file to automatically selected ones.
1566 if test -n "$CONFIG_SITE"; then
1567 set x "$CONFIG_SITE"
1568 elif test "x$prefix" != xNONE; then
1569 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1570 else
1571 set x "$ac_default_prefix/share/config.site" \
1572 "$ac_default_prefix/etc/config.site"
1573 fi
1574 shift
1575 for ac_site_file
1576 do
1577 if test -r "$ac_site_file"; then
1578 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1579 echo "$as_me: loading site script $ac_site_file" >&6;}
1580 sed 's/^/| /' "$ac_site_file" >&5
1581 . "$ac_site_file"
1582 fi
1583 done
1584
1585 if test -r "$cache_file"; then
1586 # Some versions of bash will fail to source /dev/null (special
1587 # files actually), so we avoid doing that.
1588 if test -f "$cache_file"; then
1589 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1590 echo "$as_me: loading cache $cache_file" >&6;}
1591 case $cache_file in
1592 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1593 *) . "./$cache_file";;
1594 esac
1595 fi
1596 else
1597 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1598 echo "$as_me: creating cache $cache_file" >&6;}
1599 >$cache_file
1600 fi
1601
1602 # Check that the precious variables saved in the cache have kept the same
1603 # value.
1604 ac_cache_corrupted=false
1605 for ac_var in $ac_precious_vars; do
1606 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1607 eval ac_new_set=\$ac_env_${ac_var}_set
1608 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1609 eval ac_new_val=\$ac_env_${ac_var}_value
1610 case $ac_old_set,$ac_new_set in
1611 set,)
1612 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1613 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1614 ac_cache_corrupted=: ;;
1615 ,set)
1616 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1617 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1618 ac_cache_corrupted=: ;;
1619 ,);;
1620 *)
1621 if test "x$ac_old_val" != "x$ac_new_val"; then
1622 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1623 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1624 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1625 echo "$as_me: former value: $ac_old_val" >&2;}
1626 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1627 echo "$as_me: current value: $ac_new_val" >&2;}
1628 ac_cache_corrupted=:
1629 fi;;
1630 esac
1631 # Pass precious variables to config.status.
1632 if test "$ac_new_set" = set; then
1633 case $ac_new_val in
1634 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1635 *) ac_arg=$ac_var=$ac_new_val ;;
1636 esac
1637 case " $ac_configure_args " in
1638 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1639 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1640 esac
1641 fi
1642 done
1643 if $ac_cache_corrupted; then
1644 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1645 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1646 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1647 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1648 { (exit 1); exit 1; }; }
1649 fi
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667 ac_ext=c
1668 ac_cpp='$CPP $CPPFLAGS'
1669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1672
1673
1674
1675 ac_config_headers="$ac_config_headers make/config.h:make/config.hin"
1676
1677
1678 ac_ext=c
1679 ac_cpp='$CPP $CPPFLAGS'
1680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1683
1684
1685 ac_ext=c
1686 ac_cpp='$CPP $CPPFLAGS'
1687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1690 if test -n "$ac_tool_prefix"; then
1691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1692 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1695 if test "${ac_cv_prog_CC+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 else
1698 if test -n "$CC"; then
1699 ac_cv_prog_CC="$CC" # Let the user override the test.
1700 else
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1703 do
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1708 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710 break 2
1711 fi
1712 done
1713 done
1714 IFS=$as_save_IFS
1715
1716 fi
1717 fi
1718 CC=$ac_cv_prog_CC
1719 if test -n "$CC"; then
1720 { echo "$as_me:$LINENO: result: $CC" >&5
1721 echo "${ECHO_T}$CC" >&6; }
1722 else
1723 { echo "$as_me:$LINENO: result: no" >&5
1724 echo "${ECHO_T}no" >&6; }
1725 fi
1726
1727
1728 fi
1729 if test -z "$ac_cv_prog_CC"; then
1730 ac_ct_CC=$CC
1731 # Extract the first word of "gcc", so it can be a program name with args.
1732 set dummy gcc; ac_word=$2
1733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1736 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 else
1738 if test -n "$ac_ct_CC"; then
1739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1740 else
1741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742 for as_dir in $PATH
1743 do
1744 IFS=$as_save_IFS
1745 test -z "$as_dir" && as_dir=.
1746 for ac_exec_ext in '' $ac_executable_extensions; do
1747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1748 ac_cv_prog_ac_ct_CC="gcc"
1749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1750 break 2
1751 fi
1752 done
1753 done
1754 IFS=$as_save_IFS
1755
1756 fi
1757 fi
1758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759 if test -n "$ac_ct_CC"; then
1760 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761 echo "${ECHO_T}$ac_ct_CC" >&6; }
1762 else
1763 { echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6; }
1765 fi
1766
1767 if test "x$ac_ct_CC" = x; then
1768 CC=""
1769 else
1770 case $cross_compiling:$ac_tool_warned in
1771 yes:)
1772 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1773 whose name does not start with the host triplet. If you think this
1774 configuration is useful to you, please write to autoconf@gnu.org." >&5
1775 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1776 whose name does not start with the host triplet. If you think this
1777 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1778 ac_tool_warned=yes ;;
1779 esac
1780 CC=$ac_ct_CC
1781 fi
1782 else
1783 CC="$ac_cv_prog_CC"
1784 fi
1785
1786 if test -z "$CC"; then
1787 if test -n "$ac_tool_prefix"; then
1788 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1789 set dummy ${ac_tool_prefix}cc; ac_word=$2
1790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1792 if test "${ac_cv_prog_CC+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795 if test -n "$CC"; then
1796 ac_cv_prog_CC="$CC" # Let the user override the test.
1797 else
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1800 do
1801 IFS=$as_save_IFS
1802 test -z "$as_dir" && as_dir=.
1803 for ac_exec_ext in '' $ac_executable_extensions; do
1804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1805 ac_cv_prog_CC="${ac_tool_prefix}cc"
1806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807 break 2
1808 fi
1809 done
1810 done
1811 IFS=$as_save_IFS
1812
1813 fi
1814 fi
1815 CC=$ac_cv_prog_CC
1816 if test -n "$CC"; then
1817 { echo "$as_me:$LINENO: result: $CC" >&5
1818 echo "${ECHO_T}$CC" >&6; }
1819 else
1820 { echo "$as_me:$LINENO: result: no" >&5
1821 echo "${ECHO_T}no" >&6; }
1822 fi
1823
1824
1825 fi
1826 fi
1827 if test -z "$CC"; then
1828 # Extract the first word of "cc", so it can be a program name with args.
1829 set dummy cc; ac_word=$2
1830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1832 if test "${ac_cv_prog_CC+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1834 else
1835 if test -n "$CC"; then
1836 ac_cv_prog_CC="$CC" # Let the user override the test.
1837 else
1838 ac_prog_rejected=no
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 for as_dir in $PATH
1841 do
1842 IFS=$as_save_IFS
1843 test -z "$as_dir" && as_dir=.
1844 for ac_exec_ext in '' $ac_executable_extensions; do
1845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1846 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1847 ac_prog_rejected=yes
1848 continue
1849 fi
1850 ac_cv_prog_CC="cc"
1851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852 break 2
1853 fi
1854 done
1855 done
1856 IFS=$as_save_IFS
1857
1858 if test $ac_prog_rejected = yes; then
1859 # We found a bogon in the path, so make sure we never use it.
1860 set dummy $ac_cv_prog_CC
1861 shift
1862 if test $# != 0; then
1863 # We chose a different compiler from the bogus one.
1864 # However, it has the same basename, so the bogon will be chosen
1865 # first if we set CC to just the basename; use the full file name.
1866 shift
1867 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1868 fi
1869 fi
1870 fi
1871 fi
1872 CC=$ac_cv_prog_CC
1873 if test -n "$CC"; then
1874 { echo "$as_me:$LINENO: result: $CC" >&5
1875 echo "${ECHO_T}$CC" >&6; }
1876 else
1877 { echo "$as_me:$LINENO: result: no" >&5
1878 echo "${ECHO_T}no" >&6; }
1879 fi
1880
1881
1882 fi
1883 if test -z "$CC"; then
1884 if test -n "$ac_tool_prefix"; then
1885 for ac_prog in cl.exe
1886 do
1887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1888 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1891 if test "${ac_cv_prog_CC+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 else
1894 if test -n "$CC"; then
1895 ac_cv_prog_CC="$CC" # Let the user override the test.
1896 else
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 for as_dir in $PATH
1899 do
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
1902 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1904 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 break 2
1907 fi
1908 done
1909 done
1910 IFS=$as_save_IFS
1911
1912 fi
1913 fi
1914 CC=$ac_cv_prog_CC
1915 if test -n "$CC"; then
1916 { echo "$as_me:$LINENO: result: $CC" >&5
1917 echo "${ECHO_T}$CC" >&6; }
1918 else
1919 { echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6; }
1921 fi
1922
1923
1924 test -n "$CC" && break
1925 done
1926 fi
1927 if test -z "$CC"; then
1928 ac_ct_CC=$CC
1929 for ac_prog in cl.exe
1930 do
1931 # Extract the first word of "$ac_prog", so it can be a program name with args.
1932 set dummy $ac_prog; ac_word=$2
1933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1935 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 else
1938 if test -n "$ac_ct_CC"; then
1939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1940 else
1941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942 for as_dir in $PATH
1943 do
1944 IFS=$as_save_IFS
1945 test -z "$as_dir" && as_dir=.
1946 for ac_exec_ext in '' $ac_executable_extensions; do
1947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1948 ac_cv_prog_ac_ct_CC="$ac_prog"
1949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 break 2
1951 fi
1952 done
1953 done
1954 IFS=$as_save_IFS
1955
1956 fi
1957 fi
1958 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1959 if test -n "$ac_ct_CC"; then
1960 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1961 echo "${ECHO_T}$ac_ct_CC" >&6; }
1962 else
1963 { echo "$as_me:$LINENO: result: no" >&5
1964 echo "${ECHO_T}no" >&6; }
1965 fi
1966
1967
1968 test -n "$ac_ct_CC" && break
1969 done
1970
1971 if test "x$ac_ct_CC" = x; then
1972 CC=""
1973 else
1974 case $cross_compiling:$ac_tool_warned in
1975 yes:)
1976 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1977 whose name does not start with the host triplet. If you think this
1978 configuration is useful to you, please write to autoconf@gnu.org." >&5
1979 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1980 whose name does not start with the host triplet. If you think this
1981 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1982 ac_tool_warned=yes ;;
1983 esac
1984 CC=$ac_ct_CC
1985 fi
1986 fi
1987
1988 fi
1989
1990
1991 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1992 See \`config.log' for more details." >&5
1993 echo "$as_me: error: no acceptable C compiler found in \$PATH
1994 See \`config.log' for more details." >&2;}
1995 { (exit 1); exit 1; }; }
1996
1997 # Provide some information about the compiler.
1998 echo "$as_me:$LINENO: checking for C compiler version" >&5
1999 ac_compiler=`set X $ac_compile; echo $2`
2000 { (ac_try="$ac_compiler --version >&5"
2001 case "(($ac_try" in
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2004 esac
2005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2006 (eval "$ac_compiler --version >&5") 2>&5
2007 ac_status=$?
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }
2010 { (ac_try="$ac_compiler -v >&5"
2011 case "(($ac_try" in
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2014 esac
2015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2016 (eval "$ac_compiler -v >&5") 2>&5
2017 ac_status=$?
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); }
2020 { (ac_try="$ac_compiler -V >&5"
2021 case "(($ac_try" in
2022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2023 *) ac_try_echo=$ac_try;;
2024 esac
2025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2026 (eval "$ac_compiler -V >&5") 2>&5
2027 ac_status=$?
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }
2030
2031 cat >conftest.$ac_ext <<_ACEOF
2032 /* confdefs.h. */
2033 _ACEOF
2034 cat confdefs.h >>conftest.$ac_ext
2035 cat >>conftest.$ac_ext <<_ACEOF
2036 /* end confdefs.h. */
2037
2038 int
2039 main ()
2040 {
2041
2042 ;
2043 return 0;
2044 }
2045 _ACEOF
2046 ac_clean_files_save=$ac_clean_files
2047 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2048 # Try to create an executable without -o first, disregard a.out.
2049 # It will help us diagnose broken compilers, and finding out an intuition
2050 # of exeext.
2051 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2052 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2053 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2054 #
2055 # List of possible output files, starting from the most likely.
2056 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2057 # only as a last resort. b.out is created by i960 compilers.
2058 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2059 #
2060 # The IRIX 6 linker writes into existing files which may not be
2061 # executable, retaining their permissions. Remove them first so a
2062 # subsequent execution test works.
2063 ac_rmfiles=
2064 for ac_file in $ac_files
2065 do
2066 case $ac_file in
2067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2068 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2069 esac
2070 done
2071 rm -f $ac_rmfiles
2072
2073 if { (ac_try="$ac_link_default"
2074 case "(($ac_try" in
2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076 *) ac_try_echo=$ac_try;;
2077 esac
2078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2079 (eval "$ac_link_default") 2>&5
2080 ac_status=$?
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }; then
2083 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2084 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2085 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2086 # so that the user can short-circuit this test for compilers unknown to
2087 # Autoconf.
2088 for ac_file in $ac_files ''
2089 do
2090 test -f "$ac_file" || continue
2091 case $ac_file in
2092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2093 ;;
2094 [ab].out )
2095 # We found the default executable, but exeext='' is most
2096 # certainly right.
2097 break;;
2098 *.* )
2099 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2100 then :; else
2101 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2102 fi
2103 # We set ac_cv_exeext here because the later test for it is not
2104 # safe: cross compilers may not add the suffix if given an `-o'
2105 # argument, so we may need to know it at that point already.
2106 # Even if this section looks crufty: it has the advantage of
2107 # actually working.
2108 break;;
2109 * )
2110 break;;
2111 esac
2112 done
2113 test "$ac_cv_exeext" = no && ac_cv_exeext=
2114
2115 else
2116 ac_file=''
2117 fi
2118
2119 { echo "$as_me:$LINENO: result: $ac_file" >&5
2120 echo "${ECHO_T}$ac_file" >&6; }
2121 if test -z "$ac_file"; then
2122 echo "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.$ac_ext >&5
2124
2125 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2126 See \`config.log' for more details." >&5
2127 echo "$as_me: error: C compiler cannot create executables
2128 See \`config.log' for more details." >&2;}
2129 { (exit 77); exit 77; }; }
2130 fi
2131
2132 ac_exeext=$ac_cv_exeext
2133
2134 # Check that the compiler produces executables we can run. If not, either
2135 # the compiler is broken, or we cross compile.
2136 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2137 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2138 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2139 # If not cross compiling, check that we can run a simple program.
2140 if test "$cross_compiling" != yes; then
2141 if { ac_try='./$ac_file'
2142 { (case "(($ac_try" in
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2145 esac
2146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2147 (eval "$ac_try") 2>&5
2148 ac_status=$?
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; }; then
2151 cross_compiling=no
2152 else
2153 if test "$cross_compiling" = maybe; then
2154 cross_compiling=yes
2155 else
2156 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2157 If you meant to cross compile, use \`--host'.
2158 See \`config.log' for more details." >&5
2159 echo "$as_me: error: cannot run C compiled programs.
2160 If you meant to cross compile, use \`--host'.
2161 See \`config.log' for more details." >&2;}
2162 { (exit 1); exit 1; }; }
2163 fi
2164 fi
2165 fi
2166 { echo "$as_me:$LINENO: result: yes" >&5
2167 echo "${ECHO_T}yes" >&6; }
2168
2169 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2170 ac_clean_files=$ac_clean_files_save
2171 # Check that the compiler produces executables we can run. If not, either
2172 # the compiler is broken, or we cross compile.
2173 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2174 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2175 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2176 echo "${ECHO_T}$cross_compiling" >&6; }
2177
2178 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2179 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2180 if { (ac_try="$ac_link"
2181 case "(($ac_try" in
2182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183 *) ac_try_echo=$ac_try;;
2184 esac
2185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2186 (eval "$ac_link") 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; then
2190 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2191 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2192 # work properly (i.e., refer to `conftest.exe'), while it won't with
2193 # `rm'.
2194 for ac_file in conftest.exe conftest conftest.*; do
2195 test -f "$ac_file" || continue
2196 case $ac_file in
2197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2198 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2199 break;;
2200 * ) break;;
2201 esac
2202 done
2203 else
2204 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2205 See \`config.log' for more details." >&5
2206 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2207 See \`config.log' for more details." >&2;}
2208 { (exit 1); exit 1; }; }
2209 fi
2210
2211 rm -f conftest$ac_cv_exeext
2212 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2213 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2214
2215 rm -f conftest.$ac_ext
2216 EXEEXT=$ac_cv_exeext
2217 ac_exeext=$EXEEXT
2218 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2219 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2220 if test "${ac_cv_objext+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223 cat >conftest.$ac_ext <<_ACEOF
2224 /* confdefs.h. */
2225 _ACEOF
2226 cat confdefs.h >>conftest.$ac_ext
2227 cat >>conftest.$ac_ext <<_ACEOF
2228 /* end confdefs.h. */
2229
2230 int
2231 main ()
2232 {
2233
2234 ;
2235 return 0;
2236 }
2237 _ACEOF
2238 rm -f conftest.o conftest.obj
2239 if { (ac_try="$ac_compile"
2240 case "(($ac_try" in
2241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2242 *) ac_try_echo=$ac_try;;
2243 esac
2244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2245 (eval "$ac_compile") 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; then
2249 for ac_file in conftest.o conftest.obj conftest.*; do
2250 test -f "$ac_file" || continue;
2251 case $ac_file in
2252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2253 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2254 break;;
2255 esac
2256 done
2257 else
2258 echo "$as_me: failed program was:" >&5
2259 sed 's/^/| /' conftest.$ac_ext >&5
2260
2261 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2262 See \`config.log' for more details." >&5
2263 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2264 See \`config.log' for more details." >&2;}
2265 { (exit 1); exit 1; }; }
2266 fi
2267
2268 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2269 fi
2270 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2271 echo "${ECHO_T}$ac_cv_objext" >&6; }
2272 OBJEXT=$ac_cv_objext
2273 ac_objext=$OBJEXT
2274 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2275 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2276 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279 cat >conftest.$ac_ext <<_ACEOF
2280 /* confdefs.h. */
2281 _ACEOF
2282 cat confdefs.h >>conftest.$ac_ext
2283 cat >>conftest.$ac_ext <<_ACEOF
2284 /* end confdefs.h. */
2285
2286 int
2287 main ()
2288 {
2289 #ifndef __GNUC__
2290 choke me
2291 #endif
2292
2293 ;
2294 return 0;
2295 }
2296 _ACEOF
2297 rm -f conftest.$ac_objext
2298 if { (ac_try="$ac_compile"
2299 case "(($ac_try" in
2300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2301 *) ac_try_echo=$ac_try;;
2302 esac
2303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2304 (eval "$ac_compile") 2>conftest.er1
2305 ac_status=$?
2306 grep -v '^ *+' conftest.er1 >conftest.err
2307 rm -f conftest.er1
2308 cat conftest.err >&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); } && {
2311 test -z "$ac_c_werror_flag" ||
2312 test ! -s conftest.err
2313 } && test -s conftest.$ac_objext; then
2314 ac_compiler_gnu=yes
2315 else
2316 echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.$ac_ext >&5
2318
2319 ac_compiler_gnu=no
2320 fi
2321
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2324
2325 fi
2326 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2327 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2328 GCC=`test $ac_compiler_gnu = yes && echo yes`
2329 ac_test_CFLAGS=${CFLAGS+set}
2330 ac_save_CFLAGS=$CFLAGS
2331 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2332 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2333 if test "${ac_cv_prog_cc_g+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336 ac_save_c_werror_flag=$ac_c_werror_flag
2337 ac_c_werror_flag=yes
2338 ac_cv_prog_cc_g=no
2339 CFLAGS="-g"
2340 cat >conftest.$ac_ext <<_ACEOF
2341 /* confdefs.h. */
2342 _ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h. */
2346
2347 int
2348 main ()
2349 {
2350
2351 ;
2352 return 0;
2353 }
2354 _ACEOF
2355 rm -f conftest.$ac_objext
2356 if { (ac_try="$ac_compile"
2357 case "(($ac_try" in
2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2360 esac
2361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2362 (eval "$ac_compile") 2>conftest.er1
2363 ac_status=$?
2364 grep -v '^ *+' conftest.er1 >conftest.err
2365 rm -f conftest.er1
2366 cat conftest.err >&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); } && {
2369 test -z "$ac_c_werror_flag" ||
2370 test ! -s conftest.err
2371 } && test -s conftest.$ac_objext; then
2372 ac_cv_prog_cc_g=yes
2373 else
2374 echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2376
2377 CFLAGS=""
2378 cat >conftest.$ac_ext <<_ACEOF
2379 /* confdefs.h. */
2380 _ACEOF
2381 cat confdefs.h >>conftest.$ac_ext
2382 cat >>conftest.$ac_ext <<_ACEOF
2383 /* end confdefs.h. */
2384
2385 int
2386 main ()
2387 {
2388
2389 ;
2390 return 0;
2391 }
2392 _ACEOF
2393 rm -f conftest.$ac_objext
2394 if { (ac_try="$ac_compile"
2395 case "(($ac_try" in
2396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397 *) ac_try_echo=$ac_try;;
2398 esac
2399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2400 (eval "$ac_compile") 2>conftest.er1
2401 ac_status=$?
2402 grep -v '^ *+' conftest.er1 >conftest.err
2403 rm -f conftest.er1
2404 cat conftest.err >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } && {
2407 test -z "$ac_c_werror_flag" ||
2408 test ! -s conftest.err
2409 } && test -s conftest.$ac_objext; then
2410 :
2411 else
2412 echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
2414
2415 ac_c_werror_flag=$ac_save_c_werror_flag
2416 CFLAGS="-g"
2417 cat >conftest.$ac_ext <<_ACEOF
2418 /* confdefs.h. */
2419 _ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h. */
2423
2424 int
2425 main ()
2426 {
2427
2428 ;
2429 return 0;
2430 }
2431 _ACEOF
2432 rm -f conftest.$ac_objext
2433 if { (ac_try="$ac_compile"
2434 case "(($ac_try" in
2435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2436 *) ac_try_echo=$ac_try;;
2437 esac
2438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2439 (eval "$ac_compile") 2>conftest.er1
2440 ac_status=$?
2441 grep -v '^ *+' conftest.er1 >conftest.err
2442 rm -f conftest.er1
2443 cat conftest.err >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); } && {
2446 test -z "$ac_c_werror_flag" ||
2447 test ! -s conftest.err
2448 } && test -s conftest.$ac_objext; then
2449 ac_cv_prog_cc_g=yes
2450 else
2451 echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2453
2454
2455 fi
2456
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 fi
2459
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 fi
2462
2463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2464 ac_c_werror_flag=$ac_save_c_werror_flag
2465 fi
2466 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2467 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2468 if test "$ac_test_CFLAGS" = set; then
2469 CFLAGS=$ac_save_CFLAGS
2470 elif test $ac_cv_prog_cc_g = yes; then
2471 if test "$GCC" = yes; then
2472 CFLAGS="-g -O2"
2473 else
2474 CFLAGS="-g"
2475 fi
2476 else
2477 if test "$GCC" = yes; then
2478 CFLAGS="-O2"
2479 else
2480 CFLAGS=
2481 fi
2482 fi
2483 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2484 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2485 if test "${ac_cv_prog_cc_c89+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488 ac_cv_prog_cc_c89=no
2489 ac_save_CC=$CC
2490 cat >conftest.$ac_ext <<_ACEOF
2491 /* confdefs.h. */
2492 _ACEOF
2493 cat confdefs.h >>conftest.$ac_ext
2494 cat >>conftest.$ac_ext <<_ACEOF
2495 /* end confdefs.h. */
2496 #include <stdarg.h>
2497 #include <stdio.h>
2498 #include <sys/types.h>
2499 #include <sys/stat.h>
2500 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2501 struct buf { int x; };
2502 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2503 static char *e (p, i)
2504 char **p;
2505 int i;
2506 {
2507 return p[i];
2508 }
2509 static char *f (char * (*g) (char **, int), char **p, ...)
2510 {
2511 char *s;
2512 va_list v;
2513 va_start (v,p);
2514 s = g (p, va_arg (v,int));
2515 va_end (v);
2516 return s;
2517 }
2518
2519 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2520 function prototypes and stuff, but not '\xHH' hex character constants.
2521 These don't provoke an error unfortunately, instead are silently treated
2522 as 'x'. The following induces an error, until -std is added to get
2523 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2524 array size at least. It's necessary to write '\x00'==0 to get something
2525 that's true only with -std. */
2526 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2527
2528 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2529 inside strings and character constants. */
2530 #define FOO(x) 'x'
2531 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2532
2533 int test (int i, double x);
2534 struct s1 {int (*f) (int a);};
2535 struct s2 {int (*f) (double a);};
2536 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2537 int argc;
2538 char **argv;
2539 int
2540 main ()
2541 {
2542 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2543 ;
2544 return 0;
2545 }
2546 _ACEOF
2547 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2548 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2549 do
2550 CC="$ac_save_CC $ac_arg"
2551 rm -f conftest.$ac_objext
2552 if { (ac_try="$ac_compile"
2553 case "(($ac_try" in
2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555 *) ac_try_echo=$ac_try;;
2556 esac
2557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2558 (eval "$ac_compile") 2>conftest.er1
2559 ac_status=$?
2560 grep -v '^ *+' conftest.er1 >conftest.err
2561 rm -f conftest.er1
2562 cat conftest.err >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } && {
2565 test -z "$ac_c_werror_flag" ||
2566 test ! -s conftest.err
2567 } && test -s conftest.$ac_objext; then
2568 ac_cv_prog_cc_c89=$ac_arg
2569 else
2570 echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2572
2573
2574 fi
2575
2576 rm -f core conftest.err conftest.$ac_objext
2577 test "x$ac_cv_prog_cc_c89" != "xno" && break
2578 done
2579 rm -f conftest.$ac_ext
2580 CC=$ac_save_CC
2581
2582 fi
2583 # AC_CACHE_VAL
2584 case "x$ac_cv_prog_cc_c89" in
2585 x)
2586 { echo "$as_me:$LINENO: result: none needed" >&5
2587 echo "${ECHO_T}none needed" >&6; } ;;
2588 xno)
2589 { echo "$as_me:$LINENO: result: unsupported" >&5
2590 echo "${ECHO_T}unsupported" >&6; } ;;
2591 *)
2592 CC="$CC $ac_cv_prog_cc_c89"
2593 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2594 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2595 esac
2596
2597
2598 ac_ext=c
2599 ac_cpp='$CPP $CPPFLAGS'
2600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2603
2604
2605 GOOD_GCC_VERSION=3.0
2606
2607 EM_DEFINE=""
2608
2609 list_prereq_msg() {
2610 echo ""
2611 echo ""
2612 echo "*** Be sure to install the following required packages ***"
2613 echo " libglib2.0-dev"
2614 echo " pkg-config"
2615 echo " bison"
2616 echo " flex"
2617 echo ""
2618 echo "Other optional packages required for portions of emstar:"
2619 echo " libgsl0 (for localization software)"
2620 echo " libgtk2.0-dev (for emview)"
2621 echo " libcurl3-dev (for HTTP server)"
2622 echo " libreadline5-dev (for rbsh)"
2623 echo " libflac-dev (for compression in record_from)"
2624 echo " libsndfile-dev (for reading/writing wav files)"
2625 echo ""
2626 }
2627
2628 list_prereq() {
2629 list_prereq_msg
2630 exit 1
2631 }
2632
2633 if test -n "$ac_tool_prefix"; then
2634 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2635 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_PKGCONFIG_PATH+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641 if test -n "$PKGCONFIG_PATH"; then
2642 ac_cv_prog_PKGCONFIG_PATH="$PKGCONFIG_PATH" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2646 do
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2651 ac_cv_prog_PKGCONFIG_PATH="${ac_tool_prefix}pkg-config"
2652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 break 2
2654 fi
2655 done
2656 done
2657 IFS=$as_save_IFS
2658
2659 fi
2660 fi
2661 PKGCONFIG_PATH=$ac_cv_prog_PKGCONFIG_PATH
2662 if test -n "$PKGCONFIG_PATH"; then
2663 { echo "$as_me:$LINENO: result: $PKGCONFIG_PATH" >&5
2664 echo "${ECHO_T}$PKGCONFIG_PATH" >&6; }
2665 else
2666 { echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6; }
2668 fi
2669
2670
2671 fi
2672 if test -z "$ac_cv_prog_PKGCONFIG_PATH"; then
2673 ac_ct_PKGCONFIG_PATH=$PKGCONFIG_PATH
2674 # Extract the first word of "pkg-config", so it can be a program name with args.
2675 set dummy pkg-config; ac_word=$2
2676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2678 if test "${ac_cv_prog_ac_ct_PKGCONFIG_PATH+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 else
2681 if test -n "$ac_ct_PKGCONFIG_PATH"; then
2682 ac_cv_prog_ac_ct_PKGCONFIG_PATH="$ac_ct_PKGCONFIG_PATH" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 ac_cv_prog_ac_ct_PKGCONFIG_PATH="pkg-config"
2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695 done
2696 done
2697 IFS=$as_save_IFS
2698
2699 fi
2700 fi
2701 ac_ct_PKGCONFIG_PATH=$ac_cv_prog_ac_ct_PKGCONFIG_PATH
2702 if test -n "$ac_ct_PKGCONFIG_PATH"; then
2703 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG_PATH" >&5
2704 echo "${ECHO_T}$ac_ct_PKGCONFIG_PATH" >&6; }
2705 else
2706 { echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6; }
2708 fi
2709
2710 if test "x$ac_ct_PKGCONFIG_PATH" = x; then
2711 PKGCONFIG_PATH="MISSING"
2712 else
2713 case $cross_compiling:$ac_tool_warned in
2714 yes:)
2715 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2716 whose name does not start with the host triplet. If you think this
2717 configuration is useful to you, please write to autoconf@gnu.org." >&5
2718 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2719 whose name does not start with the host triplet. If you think this
2720 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2721 ac_tool_warned=yes ;;
2722 esac
2723 PKGCONFIG_PATH=$ac_ct_PKGCONFIG_PATH
2724 fi
2725 else
2726 PKGCONFIG_PATH="$ac_cv_prog_PKGCONFIG_PATH"
2727 fi
2728
2729 if test $PKGCONFIG_PATH = MISSING; then
2730 { echo "$as_me:$LINENO: WARNING: ***pkg-config and glib REQUIRED***, please install" >&5
2731 echo "$as_me: WARNING: ***pkg-config and glib REQUIRED***, please install" >&2;}
2732 list_prereq
2733 fi
2734
2735
2736 export CFLAGS=`pkg-config --cflags gtk+-2.0 gdk-2.0 atk`
2737 export LDFLAGS=`pkg-config --cflags gtk+-2.0 gdk-2.0 atk`
2738 export C_INCLUDE_PATH=`pkg-config --cflags-only-I gtk+-2.0 gdk-2.0 atk | cut -b3- | sed -e 's/ -I/:/g'`
2739
2740
2741 { echo "$as_me:$LINENO: checking $CC version" >&5
2742 echo $ECHO_N "checking $CC version... $ECHO_C" >&6; }
2743
2744 cat >conftest.$ac_ext <<_ACEOF
2745 /* confdefs.h. */
2746 _ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h. */
2750
2751 int
2752 main ()
2753 {
2754 #if __GNUC__ < 4
2755 error
2756 #endif
2757
2758 ;
2759 return 0;
2760 }
2761 _ACEOF
2762 rm -f conftest.$ac_objext
2763 if { (ac_try="$ac_compile"
2764 case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2767 esac
2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 (eval "$ac_compile") 2>conftest.er1
2770 ac_status=$?
2771 grep -v '^ *+' conftest.er1 >conftest.err
2772 rm -f conftest.er1
2773 cat conftest.err >&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); } && {
2776 test -z "$ac_c_werror_flag" ||
2777 test ! -s conftest.err
2778 } && test -s conftest.$ac_objext; then
2779
2780 cat >>confdefs.h <<\_ACEOF
2781 #define HAVE_GCC_4 1
2782 _ACEOF
2783
2784 { echo "$as_me:$LINENO: result: >=4" >&5
2785 echo "${ECHO_T}>=4" >&6; }
2786 else
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2789
2790 { echo "$as_me:$LINENO: result: <4" >&5
2791 echo "${ECHO_T}<4" >&6; }
2792 fi
2793
2794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2795
2796
2797 { echo "$as_me:$LINENO: checking for g_main_context_new in -lglib-2.0" >&5
2798 echo $ECHO_N "checking for g_main_context_new in -lglib-2.0... $ECHO_C" >&6; }
2799 if test "${ac_cv_lib_glib_2_0_g_main_context_new+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802 ac_check_lib_save_LIBS=$LIBS
2803 LIBS="-lglib-2.0 $LIBS"
2804 cat >conftest.$ac_ext <<_ACEOF
2805 /* confdefs.h. */
2806 _ACEOF
2807 cat confdefs.h >>conftest.$ac_ext
2808 cat >>conftest.$ac_ext <<_ACEOF
2809 /* end confdefs.h. */
2810
2811 /* Override any GCC internal prototype to avoid an error.
2812 Use char because int might match the return type of a GCC
2813 builtin and then its argument prototype would still apply. */
2814 #ifdef __cplusplus
2815 extern "C"
2816 #endif
2817 char g_main_context_new ();
2818 int
2819 main ()
2820 {
2821 return g_main_context_new ();
2822 ;
2823 return 0;
2824 }
2825 _ACEOF
2826 rm -f conftest.$ac_objext conftest$ac_exeext
2827 if { (ac_try="$ac_link"
2828 case "(($ac_try" in
2829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830 *) ac_try_echo=$ac_try;;
2831 esac
2832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2833 (eval "$ac_link") 2>conftest.er1
2834 ac_status=$?
2835 grep -v '^ *+' conftest.er1 >conftest.err
2836 rm -f conftest.er1
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } && {
2840 test -z "$ac_c_werror_flag" ||
2841 test ! -s conftest.err
2842 } && test -s conftest$ac_exeext &&
2843 $as_test_x conftest$ac_exeext; then
2844 ac_cv_lib_glib_2_0_g_main_context_new=yes
2845 else
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2848
2849 ac_cv_lib_glib_2_0_g_main_context_new=no
2850 fi
2851
2852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2853 conftest$ac_exeext conftest.$ac_ext
2854 LIBS=$ac_check_lib_save_LIBS
2855 fi
2856 { echo "$as_me:$LINENO: result: $ac_cv_lib_glib_2_0_g_main_context_new" >&5
2857 echo "${ECHO_T}$ac_cv_lib_glib_2_0_g_main_context_new" >&6; }
2858 if test $ac_cv_lib_glib_2_0_g_main_context_new = yes; then
2859 HAVE_LIBGLIB=yes
2860 else
2861 HAVE_LIBGLIB=no
2862 fi
2863
2864 if test $HAVE_LIBGLIB = no ; then
2865 { echo "$as_me:$LINENO: WARNING: ***GLib 2.0 REQUIRED***, please install" >&5
2866 echo "$as_me: WARNING: ***GLib 2.0 REQUIRED***, please install" >&2;}
2867 list_prereq
2868 fi
2869
2870
2871 if test -n "$ac_tool_prefix"; then
2872 # Extract the first word of "${ac_tool_prefix}bison", so it can be a program name with args.
2873 set dummy ${ac_tool_prefix}bison; ac_word=$2
2874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2876 if test "${ac_cv_prog_BISON_PATH+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879 if test -n "$BISON_PATH"; then
2880 ac_cv_prog_BISON_PATH="$BISON_PATH" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2884 do
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889 ac_cv_prog_BISON_PATH="${ac_tool_prefix}bison"
2890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2892 fi
2893 done
2894 done
2895 IFS=$as_save_IFS
2896
2897 fi
2898 fi
2899 BISON_PATH=$ac_cv_prog_BISON_PATH
2900 if test -n "$BISON_PATH"; then
2901 { echo "$as_me:$LINENO: result: $BISON_PATH" >&5
2902 echo "${ECHO_T}$BISON_PATH" >&6; }
2903 else
2904 { echo "$as_me:$LINENO: result: no" >&5
2905 echo "${ECHO_T}no" >&6; }
2906 fi
2907
2908
2909 fi
2910 if test -z "$ac_cv_prog_BISON_PATH"; then
2911 ac_ct_BISON_PATH=$BISON_PATH
2912 # Extract the first word of "bison", so it can be a program name with args.
2913 set dummy bison; ac_word=$2
2914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2916 if test "${ac_cv_prog_ac_ct_BISON_PATH+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919 if test -n "$ac_ct_BISON_PATH"; then
2920 ac_cv_prog_ac_ct_BISON_PATH="$ac_ct_BISON_PATH" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2929 ac_cv_prog_ac_ct_BISON_PATH="bison"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933 done
2934 done
2935 IFS=$as_save_IFS
2936
2937 fi
2938 fi
2939 ac_ct_BISON_PATH=$ac_cv_prog_ac_ct_BISON_PATH
2940 if test -n "$ac_ct_BISON_PATH"; then
2941 { echo "$as_me:$LINENO: result: $ac_ct_BISON_PATH" >&5
2942 echo "${ECHO_T}$ac_ct_BISON_PATH" >&6; }
2943 else
2944 { echo "$as_me:$LINENO: result: no" >&5
2945 echo "${ECHO_T}no" >&6; }
2946 fi
2947
2948 if test "x$ac_ct_BISON_PATH" = x; then
2949 BISON_PATH="MISSING"
2950 else
2951 case $cross_compiling:$ac_tool_warned in
2952 yes:)
2953 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2954 whose name does not start with the host triplet. If you think this
2955 configuration is useful to you, please write to autoconf@gnu.org." >&5
2956 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2957 whose name does not start with the host triplet. If you think this
2958 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2959 ac_tool_warned=yes ;;
2960 esac
2961 BISON_PATH=$ac_ct_BISON_PATH
2962 fi
2963 else
2964 BISON_PATH="$ac_cv_prog_BISON_PATH"
2965 fi
2966
2967 if test $BISON_PATH = MISSING; then
2968 { echo "$as_me:$LINENO: WARNING: ***Bison REQUIRED***, please install" >&5
2969 echo "$as_me: WARNING: ***Bison REQUIRED***, please install" >&2;}
2970 list_prereq
2971 fi
2972
2973 if test -n "$ac_tool_prefix"; then
2974 # Extract the first word of "${ac_tool_prefix}flex", so it can be a program name with args.
2975 set dummy ${ac_tool_prefix}flex; ac_word=$2
2976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2978 if test "${ac_cv_prog_FLEX_PATH+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 else
2981 if test -n "$FLEX_PATH"; then
2982 ac_cv_prog_FLEX_PATH="$FLEX_PATH" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2986 do
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991 ac_cv_prog_FLEX_PATH="${ac_tool_prefix}flex"
2992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 break 2
2994 fi
2995 done
2996 done
2997 IFS=$as_save_IFS
2998
2999 fi
3000 fi
3001 FLEX_PATH=$ac_cv_prog_FLEX_PATH
3002 if test -n "$FLEX_PATH"; then
3003 { echo "$as_me:$LINENO: result: $FLEX_PATH" >&5
3004 echo "${ECHO_T}$FLEX_PATH" >&6; }
3005 else
3006 { echo "$as_me:$LINENO: result: no" >&5
3007 echo "${ECHO_T}no" >&6; }
3008 fi
3009
3010
3011 fi
3012 if test -z "$ac_cv_prog_FLEX_PATH"; then
3013 ac_ct_FLEX_PATH=$FLEX_PATH
3014 # Extract the first word of "flex", so it can be a program name with args.
3015 set dummy flex; ac_word=$2
3016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3018 if test "${ac_cv_prog_ac_ct_FLEX_PATH+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3020 else
3021 if test -n "$ac_ct_FLEX_PATH"; then
3022 ac_cv_prog_ac_ct_FLEX_PATH="$ac_ct_FLEX_PATH" # Let the user override the test.
3023 else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3026 do
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031 ac_cv_prog_ac_ct_FLEX_PATH="flex"
3032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 break 2
3034 fi
3035 done
3036 done
3037 IFS=$as_save_IFS
3038
3039 fi
3040 fi
3041 ac_ct_FLEX_PATH=$ac_cv_prog_ac_ct_FLEX_PATH
3042 if test -n "$ac_ct_FLEX_PATH"; then
3043 { echo "$as_me:$LINENO: result: $ac_ct_FLEX_PATH" >&5
3044 echo "${ECHO_T}$ac_ct_FLEX_PATH" >&6; }
3045 else
3046 { echo "$as_me:$LINENO: result: no" >&5
3047 echo "${ECHO_T}no" >&6; }
3048 fi
3049
3050 if test "x$ac_ct_FLEX_PATH" = x; then
3051 FLEX_PATH="MISSING"
3052 else
3053 case $cross_compiling:$ac_tool_warned in
3054 yes:)
3055 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3056 whose name does not start with the host triplet. If you think this
3057 configuration is useful to you, please write to autoconf@gnu.org." >&5
3058 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3059 whose name does not start with the host triplet. If you think this
3060 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3061 ac_tool_warned=yes ;;
3062 esac
3063 FLEX_PATH=$ac_ct_FLEX_PATH
3064 fi
3065 else
3066 FLEX_PATH="$ac_cv_prog_FLEX_PATH"
3067 fi
3068
3069 if test $FLEX_PATH = MISSING; then
3070 { echo "$as_me:$LINENO: WARNING: ***Flex REQUIRED***, please install" >&5
3071 echo "$as_me: WARNING: ***Flex REQUIRED***, please install" >&2;}
3072 list_prereq
3073 fi
3074
3075
3076 { echo "$as_me:$LINENO: checking for main in -lgtk-x11-2.0" >&5
3077 echo $ECHO_N "checking for main in -lgtk-x11-2.0... $ECHO_C" >&6; }
3078 if test "${ac_cv_lib_gtk_x11_2_0_main+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081 ac_check_lib_save_LIBS=$LIBS
3082 LIBS="-lgtk-x11-2.0 $LIBS"
3083 cat >conftest.$ac_ext <<_ACEOF
3084 /* confdefs.h. */
3085 _ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h. */
3089
3090
3091 int
3092 main ()
3093 {
3094 return main ();
3095 ;
3096 return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext conftest$ac_exeext
3100 if { (ac_try="$ac_link"
3101 case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_link") 2>conftest.er1
3107 ac_status=$?
3108 grep -v '^ *+' conftest.er1 >conftest.err
3109 rm -f conftest.er1
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } && {
3113 test -z "$ac_c_werror_flag" ||
3114 test ! -s conftest.err
3115 } && test -s conftest$ac_exeext &&
3116 $as_test_x conftest$ac_exeext; then
3117 ac_cv_lib_gtk_x11_2_0_main=yes
3118 else
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3121
3122 ac_cv_lib_gtk_x11_2_0_main=no
3123 fi
3124
3125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3126 conftest$ac_exeext conftest.$ac_ext
3127 LIBS=$ac_check_lib_save_LIBS
3128 fi
3129 { echo "$as_me:$LINENO: result: $ac_cv_lib_gtk_x11_2_0_main" >&5
3130 echo "${ECHO_T}$ac_cv_lib_gtk_x11_2_0_main" >&6; }
3131 if test $ac_cv_lib_gtk_x11_2_0_main = yes; then
3132 HAVE_LIBGTK=yes
3133 else
3134 HAVE_LIBGTK=no
3135 fi
3136
3137 ac_ext=c
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3143 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3144 # On Suns, sometimes $CPP names a directory.
3145 if test -n "$CPP" && test -d "$CPP"; then
3146 CPP=
3147 fi
3148 if test -z "$CPP"; then
3149 if test "${ac_cv_prog_CPP+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152 # Double quotes because CPP needs to be expanded
3153 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3154 do
3155 ac_preproc_ok=false
3156 for ac_c_preproc_warn_flag in '' yes
3157 do
3158 # Use a header file that comes with gcc, so configuring glibc
3159 # with a fresh cross-compiler works.
3160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3161 # <limits.h> exists even on freestanding compilers.
3162 # On the NeXT, cc -E runs the code through the compiler's parser,
3163 # not just through cpp. "Syntax error" is here to catch this case.
3164 cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h. */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3170 #ifdef __STDC__
3171 # include <limits.h>
3172 #else
3173 # include <assert.h>
3174 #endif
3175 Syntax error
3176 _ACEOF
3177 if { (ac_try="$ac_cpp conftest.$ac_ext"
3178 case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3184 ac_status=$?
3185 grep -v '^ *+' conftest.er1 >conftest.err
3186 rm -f conftest.er1
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } >/dev/null && {
3190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3191 test ! -s conftest.err
3192 }; then
3193 :
3194 else
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198 # Broken: fails on valid input.
3199 continue
3200 fi
3201
3202 rm -f conftest.err conftest.$ac_ext
3203
3204 # OK, works on sane cases. Now check whether nonexistent headers
3205 # can be detected and how.
3206 cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h. */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3212 #include <ac_nonexistent.h>
3213 _ACEOF
3214 if { (ac_try="$ac_cpp conftest.$ac_ext"
3215 case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3218 esac
3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3221 ac_status=$?
3222 grep -v '^ *+' conftest.er1 >conftest.err
3223 rm -f conftest.er1
3224 cat conftest.err >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } >/dev/null && {
3227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3228 test ! -s conftest.err
3229 }; then
3230 # Broken: success on invalid input.
3231 continue
3232 else
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3235
3236 # Passes both tests.
3237 ac_preproc_ok=:
3238 break
3239 fi
3240
3241 rm -f conftest.err conftest.$ac_ext
3242
3243 done
3244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3245 rm -f conftest.err conftest.$ac_ext
3246 if $ac_preproc_ok; then
3247 break
3248 fi
3249
3250 done
3251 ac_cv_prog_CPP=$CPP
3252
3253 fi
3254 CPP=$ac_cv_prog_CPP
3255 else
3256 ac_cv_prog_CPP=$CPP
3257 fi
3258 { echo "$as_me:$LINENO: result: $CPP" >&5
3259 echo "${ECHO_T}$CPP" >&6; }
3260 ac_preproc_ok=false
3261 for ac_c_preproc_warn_flag in '' yes
3262 do
3263 # Use a header file that comes with gcc, so configuring glibc
3264 # with a fresh cross-compiler works.
3265 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3266 # <limits.h> exists even on freestanding compilers.
3267 # On the NeXT, cc -E runs the code through the compiler's parser,
3268 # not just through cpp. "Syntax error" is here to catch this case.
3269 cat >conftest.$ac_ext <<_ACEOF
3270 /* confdefs.h. */
3271 _ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3275 #ifdef __STDC__
3276 # include <limits.h>
3277 #else
3278 # include <assert.h>
3279 #endif
3280 Syntax error
3281 _ACEOF
3282 if { (ac_try="$ac_cpp conftest.$ac_ext"
3283 case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286 esac
3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3289 ac_status=$?
3290 grep -v '^ *+' conftest.er1 >conftest.err
3291 rm -f conftest.er1
3292 cat conftest.err >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } >/dev/null && {
3295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3296 test ! -s conftest.err
3297 }; then
3298 :
3299 else
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3302
3303 # Broken: fails on valid input.
3304 continue
3305 fi
3306
3307 rm -f conftest.err conftest.$ac_ext
3308
3309 # OK, works on sane cases. Now check whether nonexistent headers
3310 # can be detected and how.
3311 cat >conftest.$ac_ext <<_ACEOF
3312 /* confdefs.h. */
3313 _ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h. */
3317 #include <ac_nonexistent.h>
3318 _ACEOF
3319 if { (ac_try="$ac_cpp conftest.$ac_ext"
3320 case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323 esac
3324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3326 ac_status=$?
3327 grep -v '^ *+' conftest.er1 >conftest.err
3328 rm -f conftest.er1
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } >/dev/null && {
3332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3333 test ! -s conftest.err
3334 }; then
3335 # Broken: success on invalid input.
3336 continue
3337 else
3338 echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3340
3341 # Passes both tests.
3342 ac_preproc_ok=:
3343 break
3344 fi
3345
3346 rm -f conftest.err conftest.$ac_ext
3347
3348 done
3349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3350 rm -f conftest.err conftest.$ac_ext
3351 if $ac_preproc_ok; then
3352 :
3353 else
3354 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3355 See \`config.log' for more details." >&5
3356 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3357 See \`config.log' for more details." >&2;}
3358 { (exit 1); exit 1; }; }
3359 fi
3360
3361 ac_ext=c
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366
3367
3368 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3369 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3370 if test "${ac_cv_path_GREP+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 else
3373 # Extract the first word of "grep ggrep" to use in msg output
3374 if test -z "$GREP"; then
3375 set dummy grep ggrep; ac_prog_name=$2
3376 if test "${ac_cv_path_GREP+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 else
3379 ac_path_GREP_found=false
3380 # Loop through the user's path and test for each of PROGNAME-LIST
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3383 do
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
3386 for ac_prog in grep ggrep; do
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3389 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3390 # Check for GNU ac_path_GREP and select it if it is found.
3391 # Check for GNU $ac_path_GREP
3392 case `"$ac_path_GREP" --version 2>&1` in
3393 *GNU*)
3394 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3395 *)
3396 ac_count=0
3397 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3398 while :
3399 do
3400 cat "conftest.in" "conftest.in" >"conftest.tmp"
3401 mv "conftest.tmp" "conftest.in"
3402 cp "conftest.in" "conftest.nl"
3403 echo 'GREP' >> "conftest.nl"
3404 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3405 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3406 ac_count=`expr $ac_count + 1`
3407 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3408 # Best one so far, save it but keep looking for a better one
3409 ac_cv_path_GREP="$ac_path_GREP"
3410 ac_path_GREP_max=$ac_count
3411 fi
3412 # 10*(2^10) chars as input seems more than enough
3413 test $ac_count -gt 10 && break
3414 done
3415 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3416 esac
3417
3418
3419 $ac_path_GREP_found && break 3
3420 done
3421 done
3422
3423 done
3424 IFS=$as_save_IFS
3425
3426
3427 fi
3428
3429 GREP="$ac_cv_path_GREP"
3430 if test -z "$GREP"; then
3431 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3432 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3433 { (exit 1); exit 1; }; }
3434 fi
3435
3436 else
3437 ac_cv_path_GREP=$GREP
3438 fi
3439
3440
3441 fi
3442 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3443 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3444 GREP="$ac_cv_path_GREP"
3445
3446
3447 { echo "$as_me:$LINENO: checking for egrep" >&5
3448 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3449 if test "${ac_cv_path_EGREP+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3453 then ac_cv_path_EGREP="$GREP -E"
3454 else
3455 # Extract the first word of "egrep" to use in msg output
3456 if test -z "$EGREP"; then
3457 set dummy egrep; ac_prog_name=$2
3458 if test "${ac_cv_path_EGREP+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461 ac_path_EGREP_found=false
3462 # Loop through the user's path and test for each of PROGNAME-LIST
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3465 do
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
3468 for ac_prog in egrep; do
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3471 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3472 # Check for GNU ac_path_EGREP and select it if it is found.
3473 # Check for GNU $ac_path_EGREP
3474 case `"$ac_path_EGREP" --version 2>&1` in
3475 *GNU*)
3476 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3477 *)
3478 ac_count=0
3479 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3480 while :
3481 do
3482 cat "conftest.in" "conftest.in" >"conftest.tmp"
3483 mv "conftest.tmp" "conftest.in"
3484 cp "conftest.in" "conftest.nl"
3485 echo 'EGREP' >> "conftest.nl"
3486 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3487 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3488 ac_count=`expr $ac_count + 1`
3489 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3490 # Best one so far, save it but keep looking for a better one
3491 ac_cv_path_EGREP="$ac_path_EGREP"
3492 ac_path_EGREP_max=$ac_count
3493 fi
3494 # 10*(2^10) chars as input seems more than enough
3495 test $ac_count -gt 10 && break
3496 done
3497 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3498 esac
3499
3500
3501 $ac_path_EGREP_found && break 3
3502 done
3503 done
3504
3505 done
3506 IFS=$as_save_IFS
3507
3508
3509 fi
3510
3511 EGREP="$ac_cv_path_EGREP"
3512 if test -z "$EGREP"; then
3513 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3514 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3515 { (exit 1); exit 1; }; }
3516 fi
3517
3518 else
3519 ac_cv_path_EGREP=$EGREP
3520 fi
3521
3522
3523 fi
3524 fi
3525 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3526 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3527 EGREP="$ac_cv_path_EGREP"
3528
3529
3530 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3531 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3532 if test "${ac_cv_header_stdc+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 else
3535 cat >conftest.$ac_ext <<_ACEOF
3536 /* confdefs.h. */
3537 _ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3541 #include <stdlib.h>
3542 #include <stdarg.h>
3543 #include <string.h>
3544 #include <float.h>
3545
3546 int
3547 main ()
3548 {
3549
3550 ;
3551 return 0;
3552 }
3553 _ACEOF
3554 rm -f conftest.$ac_objext
3555 if { (ac_try="$ac_compile"
3556 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_compile") 2>conftest.er1
3562 ac_status=$?
3563 grep -v '^ *+' conftest.er1 >conftest.err
3564 rm -f conftest.er1
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } && {
3568 test -z "$ac_c_werror_flag" ||
3569 test ! -s conftest.err
3570 } && test -s conftest.$ac_objext; then
3571 ac_cv_header_stdc=yes
3572 else
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3575
3576 ac_cv_header_stdc=no
3577 fi
3578
3579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580
3581 if test $ac_cv_header_stdc = yes; then
3582 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h. */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589 #include <string.h>
3590
3591 _ACEOF
3592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3593 $EGREP "memchr" >/dev/null 2>&1; then
3594 :
3595 else
3596 ac_cv_header_stdc=no
3597 fi
3598 rm -f conftest*
3599
3600 fi
3601
3602 if test $ac_cv_header_stdc = yes; then
3603 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3604 cat >conftest.$ac_ext <<_ACEOF
3605 /* confdefs.h. */
3606 _ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3610 #include <stdlib.h>
3611
3612 _ACEOF
3613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3614 $EGREP "free" >/dev/null 2>&1; then
3615 :
3616 else
3617 ac_cv_header_stdc=no
3618 fi
3619 rm -f conftest*
3620
3621 fi
3622
3623 if test $ac_cv_header_stdc = yes; then
3624 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3625 if test "$cross_compiling" = yes; then
3626 :
3627 else
3628 cat >conftest.$ac_ext <<_ACEOF
3629 /* confdefs.h. */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3634 #include <ctype.h>
3635 #include <stdlib.h>
3636 #if ((' ' & 0x0FF) == 0x020)
3637 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3638 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3639 #else
3640 # define ISLOWER(c) \
3641 (('a' <= (c) && (c) <= 'i') \
3642 || ('j' <= (c) && (c) <= 'r') \
3643 || ('s' <= (c) && (c) <= 'z'))
3644 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3645 #endif
3646
3647 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3648 int
3649 main ()
3650 {
3651 int i;
3652 for (i = 0; i < 256; i++)
3653 if (XOR (islower (i), ISLOWER (i))
3654 || toupper (i) != TOUPPER (i))
3655 return 2;
3656 return 0;
3657 }
3658 _ACEOF
3659 rm -f conftest$ac_exeext
3660 if { (ac_try="$ac_link"
3661 case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664 esac
3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666 (eval "$ac_link") 2>&5
3667 ac_status=$?
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3670 { (case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3673 esac
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_try") 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 :
3680 else
3681 echo "$as_me: program exited with status $ac_status" >&5
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3684
3685 ( exit $ac_status )
3686 ac_cv_header_stdc=no
3687 fi
3688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3689 fi
3690
3691
3692 fi
3693 fi
3694 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3695 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3696 if test $ac_cv_header_stdc = yes; then
3697
3698 cat >>confdefs.h <<\_ACEOF
3699 #define STDC_HEADERS 1
3700 _ACEOF
3701
3702 fi
3703
3704 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3715 inttypes.h stdint.h unistd.h
3716 do
3717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3718 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723 cat >conftest.$ac_ext <<_ACEOF
3724 /* confdefs.h. */
3725 _ACEOF
3726 cat confdefs.h >>conftest.$ac_ext
3727 cat >>conftest.$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3729 $ac_includes_default
3730
3731 #include <$ac_header>
3732 _ACEOF
3733 rm -f conftest.$ac_objext
3734 if { (ac_try="$ac_compile"
3735 case "(($ac_try" in
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3738 esac
3739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3740 (eval "$ac_compile") 2>conftest.er1
3741 ac_status=$?
3742 grep -v '^ *+' conftest.er1 >conftest.err
3743 rm -f conftest.er1
3744 cat conftest.err >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } && {
3747 test -z "$ac_c_werror_flag" ||
3748 test ! -s conftest.err
3749 } && test -s conftest.$ac_objext; then
3750 eval "$as_ac_Header=yes"
3751 else
3752 echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3754
3755 eval "$as_ac_Header=no"
3756 fi
3757
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 fi
3760 ac_res=`eval echo '${'$as_ac_Header'}'`
3761 { echo "$as_me:$LINENO: result: $ac_res" >&5
3762 echo "${ECHO_T}$ac_res" >&6; }
3763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3764 cat >>confdefs.h <<_ACEOF
3765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3766 _ACEOF
3767
3768 fi
3769
3770 done
3771
3772
3773
3774 for ac_header in gtk/gtk.h
3775 do
3776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 fi
3783 ac_res=`eval echo '${'$as_ac_Header'}'`
3784 { echo "$as_me:$LINENO: result: $ac_res" >&5
3785 echo "${ECHO_T}$ac_res" >&6; }
3786 else
3787 # Is the header compilable?
3788 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3790 cat >conftest.$ac_ext <<_ACEOF
3791 /* confdefs.h. */
3792 _ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3796 $ac_includes_default
3797 #include <$ac_header>
3798 _ACEOF
3799 rm -f conftest.$ac_objext
3800 if { (ac_try="$ac_compile"
3801 case "(($ac_try" in
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3804 esac
3805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3806 (eval "$ac_compile") 2>conftest.er1
3807 ac_status=$?
3808 grep -v '^ *+' conftest.er1 >conftest.err
3809 rm -f conftest.er1
3810 cat conftest.err >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } && {
3813 test -z "$ac_c_werror_flag" ||
3814 test ! -s conftest.err
3815 } && test -s conftest.$ac_objext; then
3816 ac_header_compiler=yes
3817 else
3818 echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3820
3821 ac_header_compiler=no
3822 fi
3823
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3826 echo "${ECHO_T}$ac_header_compiler" >&6; }
3827
3828 # Is the header present?
3829 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3831 cat >conftest.$ac_ext <<_ACEOF
3832 /* confdefs.h. */
3833 _ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3837 #include <$ac_header>
3838 _ACEOF
3839 if { (ac_try="$ac_cpp conftest.$ac_ext"
3840 case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843 esac
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3846 ac_status=$?
3847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } >/dev/null && {
3852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3853 test ! -s conftest.err
3854 }; then
3855 ac_header_preproc=yes
3856 else
3857 echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3859
3860 ac_header_preproc=no
3861 fi
3862
3863 rm -f conftest.err conftest.$ac_ext
3864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3865 echo "${ECHO_T}$ac_header_preproc" >&6; }
3866
3867 # So? What about this header?
3868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3869 yes:no: )
3870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3874 ac_header_preproc=yes
3875 ;;
3876 no:yes:* )
3877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3884 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3889
3890 ;;
3891 esac
3892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897 eval "$as_ac_Header=\$ac_header_preproc"
3898 fi
3899 ac_res=`eval echo '${'$as_ac_Header'}'`
3900 { echo "$as_me:$LINENO: result: $ac_res" >&5
3901 echo "${ECHO_T}$ac_res" >&6; }
3902
3903 fi
3904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3905 cat >>confdefs.h <<_ACEOF
3906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3907 _ACEOF
3908 HAVE_LIBGTK_H=yes
3909 else
3910 HAVE_LIBGTK_H=no
3911 fi
3912
3913 done
3914
3915
3916 if test $HAVE_LIBGTK = yes -a $HAVE_LIBGTK_H = yes ; then
3917
3918 cat >>confdefs.h <<\_ACEOF
3919 #define HAVE_GTK 1
3920 _ACEOF
3921
3922 { echo "$as_me:$LINENO: result: ====> Please ignore the warning above --- GTK found!" >&5
3923 echo "${ECHO_T}====> Please ignore the warning above --- GTK found!" >&6; }
3924 else
3925 { echo "$as_me:$LINENO: result: GTK-2.0 not found **EmView won't build!" >&5
3926 echo "${ECHO_T}GTK-2.0 not found **EmView won't build!" >&6; }
3927 fi
3928
3929
3930 { echo "$as_me:$LINENO: checking for curl_version_info in -lcurl" >&5
3931 echo $ECHO_N "checking for curl_version_info in -lcurl... $ECHO_C" >&6; }
3932 if test "${ac_cv_lib_curl_curl_version_info+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935 ac_check_lib_save_LIBS=$LIBS
3936 LIBS="-lcurl $LIBS"
3937 cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h. */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3943
3944 /* Override any GCC internal prototype to avoid an error.
3945 Use char because int might match the return type of a GCC
3946 builtin and then its argument prototype would still apply. */
3947 #ifdef __cplusplus
3948 extern "C"
3949 #endif
3950 char curl_version_info ();
3951 int
3952 main ()
3953 {
3954 return curl_version_info ();
3955 ;
3956 return 0;
3957 }
3958 _ACEOF
3959 rm -f conftest.$ac_objext conftest$ac_exeext
3960 if { (ac_try="$ac_link"
3961 case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964 esac
3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 (eval "$ac_link") 2>conftest.er1
3967 ac_status=$?
3968 grep -v '^ *+' conftest.er1 >conftest.err
3969 rm -f conftest.er1
3970 cat conftest.err >&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } && {
3973 test -z "$ac_c_werror_flag" ||
3974 test ! -s conftest.err
3975 } && test -s conftest$ac_exeext &&
3976 $as_test_x conftest$ac_exeext; then
3977 ac_cv_lib_curl_curl_version_info=yes
3978 else
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3981
3982 ac_cv_lib_curl_curl_version_info=no
3983 fi
3984
3985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3986 conftest$ac_exeext conftest.$ac_ext
3987 LIBS=$ac_check_lib_save_LIBS
3988 fi
3989 { echo "$as_me:$LINENO: result: $ac_cv_lib_curl_curl_version_info" >&5
3990 echo "${ECHO_T}$ac_cv_lib_curl_curl_version_info" >&6; }
3991 if test $ac_cv_lib_curl_curl_version_info = yes; then
3992 HAVE_LIBCURL=yes
3993 else
3994 HAVE_LIBCURL=no
3995 fi
3996
3997
3998 for ac_header in curl/curl.h
3999 do
4000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 fi
4007 ac_res=`eval echo '${'$as_ac_Header'}'`
4008 { echo "$as_me:$LINENO: result: $ac_res" >&5
4009 echo "${ECHO_T}$ac_res" >&6; }
4010 else
4011 # Is the header compilable?
4012 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4014 cat >conftest.$ac_ext <<_ACEOF
4015 /* confdefs.h. */
4016 _ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4020 $ac_includes_default
4021 #include <$ac_header>
4022 _ACEOF
4023 rm -f conftest.$ac_objext
4024 if { (ac_try="$ac_compile"
4025 case "(($ac_try" in
4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027 *) ac_try_echo=$ac_try;;
4028 esac
4029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4030 (eval "$ac_compile") 2>conftest.er1
4031 ac_status=$?
4032 grep -v '^ *+' conftest.er1 >conftest.err
4033 rm -f conftest.er1
4034 cat conftest.err >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } && {
4037 test -z "$ac_c_werror_flag" ||
4038 test ! -s conftest.err
4039 } && test -s conftest.$ac_objext; then
4040 ac_header_compiler=yes
4041 else
4042 echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4044
4045 ac_header_compiler=no
4046 fi
4047
4048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4050 echo "${ECHO_T}$ac_header_compiler" >&6; }
4051
4052 # Is the header present?
4053 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4055 cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h. */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4061 #include <$ac_header>
4062 _ACEOF
4063 if { (ac_try="$ac_cpp conftest.$ac_ext"
4064 case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067 esac
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4070 ac_status=$?
4071 grep -v '^ *+' conftest.er1 >conftest.err
4072 rm -f conftest.er1
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } >/dev/null && {
4076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4077 test ! -s conftest.err
4078 }; then
4079 ac_header_preproc=yes
4080 else
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4083
4084 ac_header_preproc=no
4085 fi
4086
4087 rm -f conftest.err conftest.$ac_ext
4088 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4089 echo "${ECHO_T}$ac_header_preproc" >&6; }
4090
4091 # So? What about this header?
4092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4093 yes:no: )
4094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4098 ac_header_preproc=yes
4099 ;;
4100 no:yes:* )
4101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4104 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4105 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4106 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4107 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4108 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4111 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4112 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4113
4114 ;;
4115 esac
4116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121 eval "$as_ac_Header=\$ac_header_preproc"
4122 fi
4123 ac_res=`eval echo '${'$as_ac_Header'}'`
4124 { echo "$as_me:$LINENO: result: $ac_res" >&5
4125 echo "${ECHO_T}$ac_res" >&6; }
4126
4127 fi
4128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4129 cat >>confdefs.h <<_ACEOF
4130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4131 _ACEOF
4132 HAVE_LIBCURL_H=yes
4133 else
4134 HAVE_LIBCURL_H=no
4135 fi
4136
4137 done
4138
4139
4140 if test $HAVE_LIBCURL = yes -a $HAVE_LIBCURL_H = yes ; then
4141
4142 cat >>confdefs.h <<\_ACEOF
4143 #define HAVE_CURL 1
4144 _ACEOF
4145
4146 else
4147 { echo "$as_me:$LINENO: result: libcurl not found **HTTP server won't build!" >&5
4148 echo "${ECHO_T}libcurl not found **HTTP server won't build!" >&6; }
4149 fi
4150
4151
4152 { echo "$as_me:$LINENO: checking for main in -lasound" >&5
4153 echo $ECHO_N "checking for main in -lasound... $ECHO_C" >&6; }
4154 if test "${ac_cv_lib_asound_main+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157 ac_check_lib_save_LIBS=$LIBS
4158 LIBS="-lasound $LIBS"
4159 cat >conftest.$ac_ext <<_ACEOF
4160 /* confdefs.h. */
4161 _ACEOF
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h. */
4165
4166
4167 int
4168 main ()
4169 {
4170 return main ();
4171 ;
4172 return 0;
4173 }
4174 _ACEOF
4175 rm -f conftest.$ac_objext conftest$ac_exeext
4176 if { (ac_try="$ac_link"
4177 case "(($ac_try" in
4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4180 esac
4181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4182 (eval "$ac_link") 2>conftest.er1
4183 ac_status=$?
4184 grep -v '^ *+' conftest.er1 >conftest.err
4185 rm -f conftest.er1
4186 cat conftest.err >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } && {
4189 test -z "$ac_c_werror_flag" ||
4190 test ! -s conftest.err
4191 } && test -s conftest$ac_exeext &&
4192 $as_test_x conftest$ac_exeext; then
4193 ac_cv_lib_asound_main=yes
4194 else
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4197
4198 ac_cv_lib_asound_main=no
4199 fi
4200
4201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4202 conftest$ac_exeext conftest.$ac_ext
4203 LIBS=$ac_check_lib_save_LIBS
4204 fi
4205 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_main" >&5
4206 echo "${ECHO_T}$ac_cv_lib_asound_main" >&6; }
4207 if test $ac_cv_lib_asound_main = yes; then
4208 HAVE_LIBASOUND=yes
4209 else
4210 HAVE_LIBASOUND=no
4211 fi
4212
4213
4214 for ac_header in alsa/version.h
4215 do
4216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 fi
4223 ac_res=`eval echo '${'$as_ac_Header'}'`
4224 { echo "$as_me:$LINENO: result: $ac_res" >&5
4225 echo "${ECHO_T}$ac_res" >&6; }
4226 else
4227 # Is the header compilable?
4228 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4230 cat >conftest.$ac_ext <<_ACEOF
4231 /* confdefs.h. */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 $ac_includes_default
4237 #include <$ac_header>
4238 _ACEOF
4239 rm -f conftest.$ac_objext
4240 if { (ac_try="$ac_compile"
4241 case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244 esac
4245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4246 (eval "$ac_compile") 2>conftest.er1
4247 ac_status=$?
4248 grep -v '^ *+' conftest.er1 >conftest.err
4249 rm -f conftest.er1
4250 cat conftest.err >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); } && {
4253 test -z "$ac_c_werror_flag" ||
4254 test ! -s conftest.err
4255 } && test -s conftest.$ac_objext; then
4256 ac_header_compiler=yes
4257 else
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4260
4261 ac_header_compiler=no
4262 fi
4263
4264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4266 echo "${ECHO_T}$ac_header_compiler" >&6; }
4267
4268 # Is the header present?
4269 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4271 cat >conftest.$ac_ext <<_ACEOF
4272 /* confdefs.h. */
4273 _ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277 #include <$ac_header>
4278 _ACEOF
4279 if { (ac_try="$ac_cpp conftest.$ac_ext"
4280 case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4283 esac
4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4286 ac_status=$?
4287 grep -v '^ *+' conftest.er1 >conftest.err
4288 rm -f conftest.er1
4289 cat conftest.err >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } >/dev/null && {
4292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4293 test ! -s conftest.err
4294 }; then
4295 ac_header_preproc=yes
4296 else
4297 echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4299
4300 ac_header_preproc=no
4301 fi
4302
4303 rm -f conftest.err conftest.$ac_ext
4304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4305 echo "${ECHO_T}$ac_header_preproc" >&6; }
4306
4307 # So? What about this header?
4308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4309 yes:no: )
4310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4314 ac_header_preproc=yes
4315 ;;
4316 no:yes:* )
4317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4329
4330 ;;
4331 esac
4332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 else
4337 eval "$as_ac_Header=\$ac_header_preproc"
4338 fi
4339 ac_res=`eval echo '${'$as_ac_Header'}'`
4340 { echo "$as_me:$LINENO: result: $ac_res" >&5
4341 echo "${ECHO_T}$ac_res" >&6; }
4342
4343 fi
4344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4345 cat >>confdefs.h <<_ACEOF
4346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4347 _ACEOF
4348 HAVE_ALSA_H=yes
4349 else
4350 HAVE_ALSA_H=no
4351 fi
4352
4353 done
4354
4355
4356 if test $HAVE_LIBASOUND = yes -a $HAVE_ALSA_H = yes ; then
4357
4358 cat >>confdefs.h <<\_ACEOF
4359 #define HAVE_ALSA 1
4360 _ACEOF
4361
4362 else
4363 { echo "$as_me:$LINENO: result: ALSA not found **vxpcd server won't build!" >&5
4364 echo "${ECHO_T}ALSA not found **vxpcd server won't build!" >&6; }
4365 fi
4366
4367
4368 { echo "$as_me:$LINENO: checking for main in -lsndfile" >&5
4369 echo $ECHO_N "checking for main in -lsndfile... $ECHO_C" >&6; }
4370 if test "${ac_cv_lib_sndfile_main+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 else
4373 ac_check_lib_save_LIBS=$LIBS
4374 LIBS="-lsndfile $LIBS"
4375 cat >conftest.$ac_ext <<_ACEOF
4376 /* confdefs.h. */
4377 _ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4381
4382
4383 int
4384 main ()
4385 {
4386 return main ();
4387 ;
4388 return 0;
4389 }
4390 _ACEOF
4391 rm -f conftest.$ac_objext conftest$ac_exeext
4392 if { (ac_try="$ac_link"
4393 case "(($ac_try" in
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4396 esac
4397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4398 (eval "$ac_link") 2>conftest.er1
4399 ac_status=$?
4400 grep -v '^ *+' conftest.er1 >conftest.err
4401 rm -f conftest.er1
4402 cat conftest.err >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } && {
4405 test -z "$ac_c_werror_flag" ||
4406 test ! -s conftest.err
4407 } && test -s conftest$ac_exeext &&
4408 $as_test_x conftest$ac_exeext; then
4409 ac_cv_lib_sndfile_main=yes
4410 else
4411 echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4413
4414 ac_cv_lib_sndfile_main=no
4415 fi
4416
4417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4418 conftest$ac_exeext conftest.$ac_ext
4419 LIBS=$ac_check_lib_save_LIBS
4420 fi
4421 { echo "$as_me:$LINENO: result: $ac_cv_lib_sndfile_main" >&5
4422 echo "${ECHO_T}$ac_cv_lib_sndfile_main" >&6; }
4423 if test $ac_cv_lib_sndfile_main = yes; then
4424 HAVE_LIBSNDFILE=yes
4425 else
4426 HAVE_LIBSNDFILE=no
4427 fi
4428
4429
4430 for ac_header in sndfile.h
4431 do
4432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4434 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 fi
4439 ac_res=`eval echo '${'$as_ac_Header'}'`
4440 { echo "$as_me:$LINENO: result: $ac_res" >&5
4441 echo "${ECHO_T}$ac_res" >&6; }
4442 else
4443 # Is the header compilable?
4444 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4445 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4446 cat >conftest.$ac_ext <<_ACEOF
4447 /* confdefs.h. */
4448 _ACEOF
4449 cat confdefs.h >>conftest.$ac_ext
4450 cat >>conftest.$ac_ext <<_ACEOF
4451 /* end confdefs.h. */
4452 $ac_includes_default
4453 #include <$ac_header>
4454 _ACEOF
4455 rm -f conftest.$ac_objext
4456 if { (ac_try="$ac_compile"
4457 case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460 esac
4461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462 (eval "$ac_compile") 2>conftest.er1
4463 ac_status=$?
4464 grep -v '^ *+' conftest.er1 >conftest.err
4465 rm -f conftest.er1
4466 cat conftest.err >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } && {
4469 test -z "$ac_c_werror_flag" ||
4470 test ! -s conftest.err
4471 } && test -s conftest.$ac_objext; then
4472 ac_header_compiler=yes
4473 else
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4476
4477 ac_header_compiler=no
4478 fi
4479
4480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4482 echo "${ECHO_T}$ac_header_compiler" >&6; }
4483
4484 # Is the header present?
4485 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4487 cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h. */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 #include <$ac_header>
4494 _ACEOF
4495 if { (ac_try="$ac_cpp conftest.$ac_ext"
4496 case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4499 esac
4500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4502 ac_status=$?
4503 grep -v '^ *+' conftest.er1 >conftest.err
4504 rm -f conftest.er1
4505 cat conftest.err >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); } >/dev/null && {
4508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4509 test ! -s conftest.err
4510 }; then
4511 ac_header_preproc=yes
4512 else
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4515
4516 ac_header_preproc=no
4517 fi
4518
4519 rm -f conftest.err conftest.$ac_ext
4520 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4521 echo "${ECHO_T}$ac_header_preproc" >&6; }
4522
4523 # So? What about this header?
4524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4525 yes:no: )
4526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4527 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4529 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4530 ac_header_preproc=yes
4531 ;;
4532 no:yes:* )
4533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4537 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4538 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4539 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4540 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4543 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4544 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4545
4546 ;;
4547 esac
4548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553 eval "$as_ac_Header=\$ac_header_preproc"
4554 fi
4555 ac_res=`eval echo '${'$as_ac_Header'}'`
4556 { echo "$as_me:$LINENO: result: $ac_res" >&5
4557 echo "${ECHO_T}$ac_res" >&6; }
4558
4559 fi
4560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4561 cat >>confdefs.h <<_ACEOF
4562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4563 _ACEOF
4564 HAVE_SNDFILE_H=yes
4565 else
4566 HAVE_SNDFILE_H=no
4567 fi
4568
4569 done
4570
4571
4572 if test $HAVE_LIBSNDFILE = yes -a $HAVE_SNDFILE_H = yes ; then
4573
4574 cat >>confdefs.h <<\_ACEOF
4575 #define HAVE_LIBSNDFILE 1
4576 _ACEOF
4577
4578 else
4579 { echo "$as_me:$LINENO: result: libsndfile not found **makechirp won't build!" >&5
4580 echo "${ECHO_T}libsndfile not found **makechirp won't build!" >&6; }
4581 fi
4582
4583
4584 { echo "$as_me:$LINENO: checking for main in -lFLAC" >&5
4585 echo $ECHO_N "checking for main in -lFLAC... $ECHO_C" >&6; }
4586 if test "${ac_cv_lib_FLAC_main+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589 ac_check_lib_save_LIBS=$LIBS
4590 LIBS="-lFLAC $LIBS"
4591 cat >conftest.$ac_ext <<_ACEOF
4592 /* confdefs.h. */
4593 _ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4597
4598
4599 int
4600 main ()
4601 {
4602 return main ();
4603 ;
4604 return 0;
4605 }
4606 _ACEOF
4607 rm -f conftest.$ac_objext conftest$ac_exeext
4608 if { (ac_try="$ac_link"
4609 case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612 esac
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614 (eval "$ac_link") 2>conftest.er1
4615 ac_status=$?
4616 grep -v '^ *+' conftest.er1 >conftest.err
4617 rm -f conftest.er1
4618 cat conftest.err >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } && {
4621 test -z "$ac_c_werror_flag" ||
4622 test ! -s conftest.err
4623 } && test -s conftest$ac_exeext &&
4624 $as_test_x conftest$ac_exeext; then
4625 ac_cv_lib_FLAC_main=yes
4626 else
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630 ac_cv_lib_FLAC_main=no
4631 fi
4632
4633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4634 conftest$ac_exeext conftest.$ac_ext
4635 LIBS=$ac_check_lib_save_LIBS
4636 fi
4637 { echo "$as_me:$LINENO: result: $ac_cv_lib_FLAC_main" >&5
4638 echo "${ECHO_T}$ac_cv_lib_FLAC_main" >&6; }
4639 if test $ac_cv_lib_FLAC_main = yes; then
4640 HAVE_LIBFLAC=yes
4641 else
4642 HAVE_LIBFLAC=no
4643 fi
4644
4645
4646 for ac_header in FLAC/stream_encoder.h
4647 do
4648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 fi
4655 ac_res=`eval echo '${'$as_ac_Header'}'`
4656 { echo "$as_me:$LINENO: result: $ac_res" >&5
4657 echo "${ECHO_T}$ac_res" >&6; }
4658 else
4659 # Is the header compilable?
4660 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4662 cat >conftest.$ac_ext <<_ACEOF
4663 /* confdefs.h. */
4664 _ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h. */
4668 $ac_includes_default
4669 #include <$ac_header>
4670 _ACEOF
4671 rm -f conftest.$ac_objext
4672 if { (ac_try="$ac_compile"
4673 case "(($ac_try" in
4674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675 *) ac_try_echo=$ac_try;;
4676 esac
4677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4678 (eval "$ac_compile") 2>conftest.er1
4679 ac_status=$?
4680 grep -v '^ *+' conftest.er1 >conftest.err
4681 rm -f conftest.er1
4682 cat conftest.err >&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } && {
4685 test -z "$ac_c_werror_flag" ||
4686 test ! -s conftest.err
4687 } && test -s conftest.$ac_objext; then
4688 ac_header_compiler=yes
4689 else
4690 echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4692
4693 ac_header_compiler=no
4694 fi
4695
4696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4698 echo "${ECHO_T}$ac_header_compiler" >&6; }
4699
4700 # Is the header present?
4701 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4703 cat >conftest.$ac_ext <<_ACEOF
4704 /* confdefs.h. */
4705 _ACEOF
4706 cat confdefs.h >>conftest.$ac_ext
4707 cat >>conftest.$ac_ext <<_ACEOF
4708 /* end confdefs.h. */
4709 #include <$ac_header>
4710 _ACEOF
4711 if { (ac_try="$ac_cpp conftest.$ac_ext"
4712 case "(($ac_try" in
4713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714 *) ac_try_echo=$ac_try;;
4715 esac
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4718 ac_status=$?
4719 grep -v '^ *+' conftest.er1 >conftest.err
4720 rm -f conftest.er1
4721 cat conftest.err >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } >/dev/null && {
4724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4725 test ! -s conftest.err
4726 }; then
4727 ac_header_preproc=yes
4728 else
4729 echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4731
4732 ac_header_preproc=no
4733 fi
4734
4735 rm -f conftest.err conftest.$ac_ext
4736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4737 echo "${ECHO_T}$ac_header_preproc" >&6; }
4738
4739 # So? What about this header?
4740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4741 yes:no: )
4742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4746 ac_header_preproc=yes
4747 ;;
4748 no:yes:* )
4749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4756 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4761
4762 ;;
4763 esac
4764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769 eval "$as_ac_Header=\$ac_header_preproc"
4770 fi
4771 ac_res=`eval echo '${'$as_ac_Header'}'`
4772 { echo "$as_me:$LINENO: result: $ac_res" >&5
4773 echo "${ECHO_T}$ac_res" >&6; }
4774
4775 fi
4776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4777 cat >>confdefs.h <<_ACEOF
4778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4779 _ACEOF
4780 HAVE_FLAC_H=yes
4781 else
4782 HAVE_FLAC_H=no
4783 fi
4784
4785 done
4786
4787
4788 if test $HAVE_LIBFLAC = yes -a $HAVE_FLAC_H = yes ; then
4789
4790 cat >>confdefs.h <<\_ACEOF
4791 #define HAVE_FLAC 1
4792 _ACEOF
4793
4794 else
4795 { echo "$as_me:$LINENO: result: libFLAC not found **record_from won't include compression support!" >&5
4796 echo "${ECHO_T}libFLAC not found **record_from won't include compression support!" >&6; }
4797 fi
4798
4799
4800 { echo "$as_me:$LINENO: checking for main in -ltermcap" >&5
4801 echo $ECHO_N "checking for main in -ltermcap... $ECHO_C" >&6; }
4802 if test "${ac_cv_lib_termcap_main+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805 ac_check_lib_save_LIBS=$LIBS
4806 LIBS="-ltermcap $LIBS"
4807 cat >conftest.$ac_ext <<_ACEOF
4808 /* confdefs.h. */
4809 _ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4813
4814
4815 int
4816 main ()
4817 {
4818 return main ();
4819 ;
4820 return 0;
4821 }
4822 _ACEOF
4823 rm -f conftest.$ac_objext conftest$ac_exeext
4824 if { (ac_try="$ac_link"
4825 case "(($ac_try" in
4826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827 *) ac_try_echo=$ac_try;;
4828 esac
4829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4830 (eval "$ac_link") 2>conftest.er1
4831 ac_status=$?
4832 grep -v '^ *+' conftest.er1 >conftest.err
4833 rm -f conftest.er1
4834 cat conftest.err >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } && {
4837 test -z "$ac_c_werror_flag" ||
4838 test ! -s conftest.err
4839 } && test -s conftest$ac_exeext &&
4840 $as_test_x conftest$ac_exeext; then
4841 ac_cv_lib_termcap_main=yes
4842 else
4843 echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4845
4846 ac_cv_lib_termcap_main=no
4847 fi
4848
4849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4850 conftest$ac_exeext conftest.$ac_ext
4851 LIBS=$ac_check_lib_save_LIBS
4852 fi
4853 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_main" >&5
4854 echo "${ECHO_T}$ac_cv_lib_termcap_main" >&6; }
4855 if test $ac_cv_lib_termcap_main = yes; then
4856 HAVE_LIBTERMCAP=yes
4857 else
4858 HAVE_LIBTERMCAP=no
4859 fi
4860
4861 { echo "$as_me:$LINENO: checking for main in -ltermcap -lreadline" >&5
4862 echo $ECHO_N "checking for main in -ltermcap -lreadline... $ECHO_C" >&6; }
4863 if test "${ac_cv_lib_termcap__lreadline_main+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866 ac_check_lib_save_LIBS=$LIBS
4867 LIBS="-ltermcap -lreadline $LIBS"
4868 cat >conftest.$ac_ext <<_ACEOF
4869 /* confdefs.h. */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4874
4875
4876 int
4877 main ()
4878 {
4879 return main ();
4880 ;
4881 return 0;
4882 }
4883 _ACEOF
4884 rm -f conftest.$ac_objext conftest$ac_exeext
4885 if { (ac_try="$ac_link"
4886 case "(($ac_try" in
4887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888 *) ac_try_echo=$ac_try;;
4889 esac
4890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4891 (eval "$ac_link") 2>conftest.er1
4892 ac_status=$?
4893 grep -v '^ *+' conftest.er1 >conftest.err
4894 rm -f conftest.er1
4895 cat conftest.err >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } && {
4898 test -z "$ac_c_werror_flag" ||
4899 test ! -s conftest.err
4900 } && test -s conftest$ac_exeext &&
4901 $as_test_x conftest$ac_exeext; then
4902 ac_cv_lib_termcap__lreadline_main=yes
4903 else
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4906
4907 ac_cv_lib_termcap__lreadline_main=no
4908 fi
4909
4910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4911 conftest$ac_exeext conftest.$ac_ext
4912 LIBS=$ac_check_lib_save_LIBS
4913 fi
4914 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap__lreadline_main" >&5
4915 echo "${ECHO_T}$ac_cv_lib_termcap__lreadline_main" >&6; }
4916 if test $ac_cv_lib_termcap__lreadline_main = yes; then
4917 HAVE_LIBREADLINE=yes
4918 else
4919 HAVE_LIBREADLINE=no
4920 fi
4921
4922
4923 for ac_header in readline/readline.h
4924 do
4925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 fi
4932 ac_res=`eval echo '${'$as_ac_Header'}'`
4933 { echo "$as_me:$LINENO: result: $ac_res" >&5
4934 echo "${ECHO_T}$ac_res" >&6; }
4935 else
4936 # Is the header compilable?
4937 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4939 cat >conftest.$ac_ext <<_ACEOF
4940 /* confdefs.h. */
4941 _ACEOF
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4945 $ac_includes_default
4946 #include <$ac_header>
4947 _ACEOF
4948 rm -f conftest.$ac_objext
4949 if { (ac_try="$ac_compile"
4950 case "(($ac_try" in
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4953 esac
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955 (eval "$ac_compile") 2>conftest.er1
4956 ac_status=$?
4957 grep -v '^ *+' conftest.er1 >conftest.err
4958 rm -f conftest.er1
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } && {
4962 test -z "$ac_c_werror_flag" ||
4963 test ! -s conftest.err
4964 } && test -s conftest.$ac_objext; then
4965 ac_header_compiler=yes
4966 else
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4969
4970 ac_header_compiler=no
4971 fi
4972
4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4975 echo "${ECHO_T}$ac_header_compiler" >&6; }
4976
4977 # Is the header present?
4978 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4980 cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h. */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4986 #include <$ac_header>
4987 _ACEOF
4988 if { (ac_try="$ac_cpp conftest.$ac_ext"
4989 case "(($ac_try" in
4990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4992 esac
4993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4995 ac_status=$?
4996 grep -v '^ *+' conftest.er1 >conftest.err
4997 rm -f conftest.er1
4998 cat conftest.err >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } >/dev/null && {
5001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5002 test ! -s conftest.err
5003 }; then
5004 ac_header_preproc=yes
5005 else
5006 echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5008
5009 ac_header_preproc=no
5010 fi
5011
5012 rm -f conftest.err conftest.$ac_ext
5013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5014 echo "${ECHO_T}$ac_header_preproc" >&6; }
5015
5016 # So? What about this header?
5017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5018 yes:no: )
5019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5023 ac_header_preproc=yes
5024 ;;
5025 no:yes:* )
5026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5033 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5038
5039 ;;
5040 esac
5041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046 eval "$as_ac_Header=\$ac_header_preproc"
5047 fi
5048 ac_res=`eval echo '${'$as_ac_Header'}'`
5049 { echo "$as_me:$LINENO: result: $ac_res" >&5
5050 echo "${ECHO_T}$ac_res" >&6; }
5051
5052 fi
5053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5054 cat >>confdefs.h <<_ACEOF
5055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5056 _ACEOF
5057 HAVE_READLINE_H=yes
5058 else
5059 HAVE_READLINE_H=no
5060 fi
5061
5062 done
5063
5064
5065 if test $HAVE_LIBTERMCAP = yes -a $HAVE_LIBREADLINE = yes -a $HAVE_READLINE_H = yes ; then
5066
5067 cat >>confdefs.h <<\_ACEOF
5068 #define HAVE_READLINE 1
5069 _ACEOF
5070
5071 else
5072 { echo "$as_me:$LINENO: result: libreadline not found **rbsh won't build!" >&5
5073 echo "${ECHO_T}libreadline not found **rbsh won't build!" >&6; }
5074 fi
5075
5076
5077 { echo "$as_me:$LINENO: checking for main in -lpng" >&5
5078 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6; }
5079 if test "${ac_cv_lib_png_main+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5081 else
5082 ac_check_lib_save_LIBS=$LIBS
5083 LIBS="-lpng $LIBS"
5084 cat >conftest.$ac_ext <<_ACEOF
5085 /* confdefs.h. */
5086 _ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5090
5091
5092 int
5093 main ()
5094 {
5095 return main ();
5096 ;
5097 return 0;
5098 }
5099 _ACEOF
5100 rm -f conftest.$ac_objext conftest$ac_exeext
5101 if { (ac_try="$ac_link"
5102 case "(($ac_try" in
5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104 *) ac_try_echo=$ac_try;;
5105 esac
5106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107 (eval "$ac_link") 2>conftest.er1
5108 ac_status=$?
5109 grep -v '^ *+' conftest.er1 >conftest.err
5110 rm -f conftest.er1
5111 cat conftest.err >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } && {
5114 test -z "$ac_c_werror_flag" ||
5115 test ! -s conftest.err
5116 } && test -s conftest$ac_exeext &&
5117 $as_test_x conftest$ac_exeext; then
5118 ac_cv_lib_png_main=yes
5119 else
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5122
5123 ac_cv_lib_png_main=no
5124 fi
5125
5126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5127 conftest$ac_exeext conftest.$ac_ext
5128 LIBS=$ac_check_lib_save_LIBS
5129 fi
5130 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
5131 echo "${ECHO_T}$ac_cv_lib_png_main" >&6; }
5132 if test $ac_cv_lib_png_main = yes; then
5133 HAVE_LIBPNG=yes
5134 else
5135 HAVE_LIBPNG=no
5136 fi
5137
5138
5139 for ac_header in png.h
5140 do
5141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 fi
5148 ac_res=`eval echo '${'$as_ac_Header'}'`
5149 { echo "$as_me:$LINENO: result: $ac_res" >&5
5150 echo "${ECHO_T}$ac_res" >&6; }
5151 else
5152 # Is the header compilable?
5153 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5155 cat >conftest.$ac_ext <<_ACEOF
5156 /* confdefs.h. */
5157 _ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h. */
5161 $ac_includes_default
5162 #include <$ac_header>
5163 _ACEOF
5164 rm -f conftest.$ac_objext
5165 if { (ac_try="$ac_compile"
5166 case "(($ac_try" in
5167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168 *) ac_try_echo=$ac_try;;
5169 esac
5170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5171 (eval "$ac_compile") 2>conftest.er1
5172 ac_status=$?
5173 grep -v '^ *+' conftest.er1 >conftest.err
5174 rm -f conftest.er1
5175 cat conftest.err >&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } && {
5178 test -z "$ac_c_werror_flag" ||
5179 test ! -s conftest.err
5180 } && test -s conftest.$ac_objext; then
5181 ac_header_compiler=yes
5182 else
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5185
5186 ac_header_compiler=no
5187 fi
5188
5189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5190 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5191 echo "${ECHO_T}$ac_header_compiler" >&6; }
5192
5193 # Is the header present?
5194 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5196 cat >conftest.$ac_ext <<_ACEOF
5197 /* confdefs.h. */
5198 _ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5202 #include <$ac_header>
5203 _ACEOF
5204 if { (ac_try="$ac_cpp conftest.$ac_ext"
5205 case "(($ac_try" in
5206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5208 esac
5209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5211 ac_status=$?
5212 grep -v '^ *+' conftest.er1 >conftest.err
5213 rm -f conftest.er1
5214 cat conftest.err >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } >/dev/null && {
5217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5218 test ! -s conftest.err
5219 }; then
5220 ac_header_preproc=yes
5221 else
5222 echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.$ac_ext >&5
5224
5225 ac_header_preproc=no
5226 fi
5227
5228 rm -f conftest.err conftest.$ac_ext
5229 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5230 echo "${ECHO_T}$ac_header_preproc" >&6; }
5231
5232 # So? What about this header?
5233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5234 yes:no: )
5235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5236 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5238 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5239 ac_header_preproc=yes
5240 ;;
5241 no:yes:* )
5242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5243 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5245 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5246 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5247 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5248 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5249 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5252 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5253 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5254
5255 ;;
5256 esac
5257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262 eval "$as_ac_Header=\$ac_header_preproc"
5263 fi
5264 ac_res=`eval echo '${'$as_ac_Header'}'`
5265 { echo "$as_me:$LINENO: result: $ac_res" >&5
5266 echo "${ECHO_T}$ac_res" >&6; }
5267
5268 fi
5269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5270 cat >>confdefs.h <<_ACEOF
5271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5272 _ACEOF
5273 HAVE_PNG_H=yes
5274 else
5275 HAVE_PNG_H=no
5276 fi
5277
5278 done
5279
5280
5281 if test $HAVE_LIBPNG = yes -a $HAVE_PNG_H = yes ; then
5282
5283 cat >>confdefs.h <<\_ACEOF
5284 #define HAVE_PNG 1
5285 _ACEOF
5286
5287 else
5288 { echo "$as_me:$LINENO: result: libpng not found ** aml and loc plots won't build!" >&5
5289 echo "${ECHO_T}libpng not found ** aml and loc plots won't build!" >&6; }
5290 fi
5291
5292
5293
5294 { echo "$as_me:$LINENO: checking for main in -lm" >&5
5295 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
5296 if test "${ac_cv_lib_m_main+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 else
5299 ac_check_lib_save_LIBS=$LIBS
5300 LIBS="-lm $LIBS"
5301 cat >conftest.$ac_ext <<_ACEOF
5302 /* confdefs.h. */
5303 _ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h. */
5307
5308
5309 int
5310 main ()
5311 {
5312 return main ();
5313 ;
5314 return 0;
5315 }
5316 _ACEOF
5317 rm -f conftest.$ac_objext conftest$ac_exeext
5318 if { (ac_try="$ac_link"
5319 case "(($ac_try" in
5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5322 esac
5323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324 (eval "$ac_link") 2>conftest.er1
5325 ac_status=$?
5326 grep -v '^ *+' conftest.er1 >conftest.err
5327 rm -f conftest.er1
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } && {
5331 test -z "$ac_c_werror_flag" ||
5332 test ! -s conftest.err
5333 } && test -s conftest$ac_exeext &&
5334 $as_test_x conftest$ac_exeext; then
5335 ac_cv_lib_m_main=yes
5336 else
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5339
5340 ac_cv_lib_m_main=no
5341 fi
5342
5343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5344 conftest$ac_exeext conftest.$ac_ext
5345 LIBS=$ac_check_lib_save_LIBS
5346 fi
5347 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5348 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
5349 if test $ac_cv_lib_m_main = yes; then
5350 cat >>confdefs.h <<_ACEOF
5351 #define HAVE_LIBM 1
5352 _ACEOF
5353
5354 LIBS="-lm $LIBS"
5355
5356 fi
5357
5358 { echo "$as_me:$LINENO: checking for main in -lgslcblas" >&5
5359 echo $ECHO_N "checking for main in -lgslcblas... $ECHO_C" >&6; }
5360 if test "${ac_cv_lib_gslcblas_main+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 else
5363 ac_check_lib_save_LIBS=$LIBS
5364 LIBS="-lgslcblas $LIBS"
5365 cat >conftest.$ac_ext <<_ACEOF
5366 /* confdefs.h. */
5367 _ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h. */
5371
5372
5373 int
5374 main ()
5375 {
5376 return main ();
5377 ;
5378 return 0;
5379 }
5380 _ACEOF
5381 rm -f conftest.$ac_objext conftest$ac_exeext
5382 if { (ac_try="$ac_link"
5383 case "(($ac_try" in
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5386 esac
5387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388 (eval "$ac_link") 2>conftest.er1
5389 ac_status=$?
5390 grep -v '^ *+' conftest.er1 >conftest.err
5391 rm -f conftest.er1
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } && {
5395 test -z "$ac_c_werror_flag" ||
5396 test ! -s conftest.err
5397 } && test -s conftest$ac_exeext &&
5398 $as_test_x conftest$ac_exeext; then
5399 ac_cv_lib_gslcblas_main=yes
5400 else
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404 ac_cv_lib_gslcblas_main=no
5405 fi
5406
5407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5408 conftest$ac_exeext conftest.$ac_ext
5409 LIBS=$ac_check_lib_save_LIBS
5410 fi
5411 { echo "$as_me:$LINENO: result: $ac_cv_lib_gslcblas_main" >&5
5412 echo "${ECHO_T}$ac_cv_lib_gslcblas_main" >&6; }
5413 if test $ac_cv_lib_gslcblas_main = yes; then
5414 HAVE_GSLCBLAS=yes
5415 else
5416 HAVE_GSLCBLAS=no
5417 fi
5418
5419
5420 { echo "$as_me:$LINENO: checking for main in -lgslcblas" >&5
5421 echo $ECHO_N "checking for main in -lgslcblas... $ECHO_C" >&6; }
5422 if test "${ac_cv_lib_gslcblas_main+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 else
5425 ac_check_lib_save_LIBS=$LIBS
5426 LIBS="-lgslcblas $LIBS"
5427 cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h. */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433
5434
5435 int
5436 main ()
5437 {
5438 return main ();
5439 ;
5440 return 0;
5441 }
5442 _ACEOF
5443 rm -f conftest.$ac_objext conftest$ac_exeext
5444 if { (ac_try="$ac_link"
5445 case "(($ac_try" in
5446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447 *) ac_try_echo=$ac_try;;
5448 esac
5449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5450 (eval "$ac_link") 2>conftest.er1
5451 ac_status=$?
5452 grep -v '^ *+' conftest.er1 >conftest.err
5453 rm -f conftest.er1
5454 cat conftest.err >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); } && {
5457 test -z "$ac_c_werror_flag" ||
5458 test ! -s conftest.err
5459 } && test -s conftest$ac_exeext &&
5460 $as_test_x conftest$ac_exeext; then
5461 ac_cv_lib_gslcblas_main=yes
5462 else
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5465
5466 ac_cv_lib_gslcblas_main=no
5467 fi
5468
5469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5470 conftest$ac_exeext conftest.$ac_ext
5471 LIBS=$ac_check_lib_save_LIBS
5472 fi
5473 { echo "$as_me:$LINENO: result: $ac_cv_lib_gslcblas_main" >&5
5474 echo "${ECHO_T}$ac_cv_lib_gslcblas_main" >&6; }
5475 if test $ac_cv_lib_gslcblas_main = yes; then
5476 cat >>confdefs.h <<_ACEOF
5477 #define HAVE_LIBGSLCBLAS 1
5478 _ACEOF
5479
5480 LIBS="-lgslcblas $LIBS"
5481
5482 fi
5483
5484 { echo "$as_me:$LINENO: checking for main in -lgsl" >&5
5485 echo $ECHO_N "checking for main in -lgsl... $ECHO_C" >&6; }
5486 if test "${ac_cv_lib_gsl_main+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489 ac_check_lib_save_LIBS=$LIBS
5490 LIBS="-lgsl $LIBS"
5491 cat >conftest.$ac_ext <<_ACEOF
5492 /* confdefs.h. */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5497
5498
5499 int
5500 main ()
5501 {
5502 return main ();
5503 ;
5504 return 0;
5505 }
5506 _ACEOF
5507 rm -f conftest.$ac_objext conftest$ac_exeext
5508 if { (ac_try="$ac_link"
5509 case "(($ac_try" in
5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511 *) ac_try_echo=$ac_try;;
5512 esac
5513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5514 (eval "$ac_link") 2>conftest.er1
5515 ac_status=$?
5516 grep -v '^ *+' conftest.er1 >conftest.err
5517 rm -f conftest.er1
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } && {
5521 test -z "$ac_c_werror_flag" ||
5522 test ! -s conftest.err
5523 } && test -s conftest$ac_exeext &&
5524 $as_test_x conftest$ac_exeext; then
5525 ac_cv_lib_gsl_main=yes
5526 else
5527 echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5529
5530 ac_cv_lib_gsl_main=no
5531 fi
5532
5533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5534 conftest$ac_exeext conftest.$ac_ext
5535 LIBS=$ac_check_lib_save_LIBS
5536 fi
5537 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsl_main" >&5
5538 echo "${ECHO_T}$ac_cv_lib_gsl_main" >&6; }
5539 if test $ac_cv_lib_gsl_main = yes; then
5540 HAVE_GSL=yes
5541 else
5542 HAVE_GSL=no
5543 fi
5544
5545
5546 for ac_header in gsl/gsl_version.h
5547 do
5548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 fi
5555 ac_res=`eval echo '${'$as_ac_Header'}'`
5556 { echo "$as_me:$LINENO: result: $ac_res" >&5
5557 echo "${ECHO_T}$ac_res" >&6; }
5558 else
5559 # Is the header compilable?
5560 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5561 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5562 cat >conftest.$ac_ext <<_ACEOF
5563 /* confdefs.h. */
5564 _ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5568 $ac_includes_default
5569 #include <$ac_header>
5570 _ACEOF
5571 rm -f conftest.$ac_objext
5572 if { (ac_try="$ac_compile"
5573 case "(($ac_try" in
5574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5575 *) ac_try_echo=$ac_try;;
5576 esac
5577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5578 (eval "$ac_compile") 2>conftest.er1
5579 ac_status=$?
5580 grep -v '^ *+' conftest.er1 >conftest.err
5581 rm -f conftest.er1
5582 cat conftest.err >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } && {
5585 test -z "$ac_c_werror_flag" ||
5586 test ! -s conftest.err
5587 } && test -s conftest.$ac_objext; then
5588 ac_header_compiler=yes
5589 else
5590 echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5592
5593 ac_header_compiler=no
5594 fi
5595
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5598 echo "${ECHO_T}$ac_header_compiler" >&6; }
5599
5600 # Is the header present?
5601 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5603 cat >conftest.$ac_ext <<_ACEOF
5604 /* confdefs.h. */
5605 _ACEOF
5606 cat confdefs.h >>conftest.$ac_ext
5607 cat >>conftest.$ac_ext <<_ACEOF
5608 /* end confdefs.h. */
5609 #include <$ac_header>
5610 _ACEOF
5611 if { (ac_try="$ac_cpp conftest.$ac_ext"
5612 case "(($ac_try" in
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5615 esac
5616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5618 ac_status=$?
5619 grep -v '^ *+' conftest.er1 >conftest.err
5620 rm -f conftest.er1
5621 cat conftest.err >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } >/dev/null && {
5624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5625 test ! -s conftest.err
5626 }; then
5627 ac_header_preproc=yes
5628 else
5629 echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5631
5632 ac_header_preproc=no
5633 fi
5634
5635 rm -f conftest.err conftest.$ac_ext
5636 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5637 echo "${ECHO_T}$ac_header_preproc" >&6; }
5638
5639 # So? What about this header?
5640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5641 yes:no: )
5642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5646 ac_header_preproc=yes
5647 ;;
5648 no:yes:* )
5649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5661
5662 ;;
5663 esac
5664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 else
5669 eval "$as_ac_Header=\$ac_header_preproc"
5670 fi
5671 ac_res=`eval echo '${'$as_ac_Header'}'`
5672 { echo "$as_me:$LINENO: result: $ac_res" >&5
5673 echo "${ECHO_T}$ac_res" >&6; }
5674
5675 fi
5676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5677 cat >>confdefs.h <<_ACEOF
5678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5679 _ACEOF
5680 HAVE_GSL_H=yes
5681 else
5682 HAVE_GSL_H=no
5683 fi
5684
5685 done
5686
5687
5688 if test $HAVE_GSL = yes -a $HAVE_GSLCBLAS = yes -a $HAVE_GSL_H = yes ; then
5689
5690 cat >>confdefs.h <<\_ACEOF
5691 #define HAVE_GSL 1
5692 _ACEOF
5693
5694 else
5695 { echo "$as_me:$LINENO: result: libgsl not found **Localization won't build!" >&5
5696 echo "${ECHO_T}libgsl not found **Localization won't build!" >&6; }
5697 fi
5698
5699
5700
5701 cat >confcache <<\_ACEOF
5702 # This file is a shell script that caches the results of configure
5703 # tests run on this system so they can be shared between configure
5704 # scripts and configure runs, see configure's option --config-cache.
5705 # It is not useful on other systems. If it contains results you don't
5706 # want to keep, you may remove or edit it.
5707 #
5708 # config.status only pays attention to the cache file if you give it
5709 # the --recheck option to rerun configure.
5710 #
5711 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5712 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5713 # following values.
5714
5715 _ACEOF
5716
5717 # The following way of writing the cache mishandles newlines in values,
5718 # but we know of no workaround that is simple, portable, and efficient.
5719 # So, we kill variables containing newlines.
5720 # Ultrix sh set writes to stderr and can't be redirected directly,
5721 # and sets the high bit in the cache file unless we assign to the vars.
5722 (
5723 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5724 eval ac_val=\$$ac_var
5725 case $ac_val in #(
5726 *${as_nl}*)
5727 case $ac_var in #(
5728 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5729 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5730 esac
5731 case $ac_var in #(
5732 _ | IFS | as_nl) ;; #(
5733 *) $as_unset $ac_var ;;
5734 esac ;;
5735 esac
5736 done
5737
5738 (set) 2>&1 |
5739 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5740 *${as_nl}ac_space=\ *)
5741 # `set' does not quote correctly, so add quotes (double-quote
5742 # substitution turns \\\\ into \\, and sed turns \\ into \).
5743 sed -n \
5744 "s/'/'\\\\''/g;
5745 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5746 ;; #(
5747 *)
5748 # `set' quotes correctly as required by POSIX, so do not add quotes.
5749 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5750 ;;
5751 esac |
5752 sort
5753 ) |
5754 sed '
5755 /^ac_cv_env_/b end
5756 t clear
5757 :clear
5758 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5759 t end
5760 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5761 :end' >>confcache
5762 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5763 if test -w "$cache_file"; then
5764 test "x$cache_file" != "x/dev/null" &&
5765 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5766 echo "$as_me: updating cache $cache_file" >&6;}
5767 cat confcache >$cache_file
5768 else
5769 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5770 echo "$as_me: n